@comfyorg/ingest-types 1.7.3 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/types.gen.d.ts +282 -16
- package/dist/zod.gen.d.ts +387 -23
- package/dist/zod.gen.js +108 -12
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -650,7 +650,7 @@ export type AgentMessageDoneFrame = {
|
|
|
650
650
|
type: 'agent_message_done';
|
|
651
651
|
};
|
|
652
652
|
/**
|
|
653
|
-
* The immutable model selection receipt for an accepted turn.
|
|
653
|
+
* The immutable model selection receipt for an accepted exact-id turn (a `model_selection` with no `option_id`); no other send gets one.
|
|
654
654
|
*/
|
|
655
655
|
export type AgentModelReceipt = {
|
|
656
656
|
contract: 'v1';
|
|
@@ -659,7 +659,7 @@ export type AgentModelReceipt = {
|
|
|
659
659
|
*/
|
|
660
660
|
model_id: string;
|
|
661
661
|
/**
|
|
662
|
-
* The supplied model_selection object,
|
|
662
|
+
* The supplied model_selection object, verbatim. Servers before this contract revision sent null for an omitted selector.
|
|
663
663
|
*/
|
|
664
664
|
requested: AgentModelSelection | null;
|
|
665
665
|
source: 'request' | 'deployment_default';
|
|
@@ -667,7 +667,7 @@ export type AgentModelReceipt = {
|
|
|
667
667
|
wire: 'anthropic_messages' | 'openai_chat' | 'openai_responses';
|
|
668
668
|
};
|
|
669
669
|
/**
|
|
670
|
-
*
|
|
670
|
+
* The model for this send. With `option_id` it is a selection's `send` object from GET /api/agent/features, posted verbatim; without it, an exact model id (an eval or a script). Unknown properties are refused with 400 so a newer intent is never silently ignored by an older server. The role name `title` is refused with 422 `model_unavailable`.
|
|
671
671
|
*/
|
|
672
672
|
export type AgentModelSelection = {
|
|
673
673
|
/**
|
|
@@ -675,7 +675,7 @@ export type AgentModelSelection = {
|
|
|
675
675
|
*/
|
|
676
676
|
model_id: string;
|
|
677
677
|
/**
|
|
678
|
-
*
|
|
678
|
+
* The id of one of the caller's selections from GET /api/agent/features. When present, the server uses its own binding for that selection and does not consult `model_id`, and the 202 carries no receipt. An `option_id` that is not one of the caller's current selections, including any `option_id` from a caller for whom selection is not enabled, is refused with 422 `model_unavailable`.
|
|
679
679
|
*/
|
|
680
680
|
option_id?: string;
|
|
681
681
|
};
|
|
@@ -1161,7 +1161,7 @@ export type AgentToolCallFrame = {
|
|
|
1161
1161
|
type: 'agent_tool_call';
|
|
1162
1162
|
};
|
|
1163
1163
|
/**
|
|
1164
|
-
* 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.
|
|
1164
|
+
* 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. `model_selection`, the receipt, answers an exact-id request (a `model_selection` with no `option_id`, as an eval sends) and nothing else: the 202 for a send with no `model_selection`, or with an `option_id` (a selection from GET /api/agent/features), has no `model_selection` key. A client that sent an exact-id request must treat a missing receipt as selection not applied (a backend that predates the contract). The frontend needs no receipt: the next features read shows the thread's selection.
|
|
1165
1165
|
*/
|
|
1166
1166
|
export type AgentTurnAccepted = {
|
|
1167
1167
|
/**
|
|
@@ -2355,13 +2355,6 @@ export type BillingCapabilities = {
|
|
|
2355
2355
|
* Effective billing UI guidance for one authenticated user and workspace.
|
|
2356
2356
|
*/
|
|
2357
2357
|
export type BillingCapabilitiesResponse = {
|
|
2358
|
-
/**
|
|
2359
|
-
* Whether billing-web may offer hosted methods for a one-off top-up.
|
|
2360
|
-
* Evaluated for the authenticated actor; missing or failed evaluation
|
|
2361
|
-
* is false. Does not grant payment permission or guarantee wallet availability.
|
|
2362
|
-
*
|
|
2363
|
-
*/
|
|
2364
|
-
billing_web_topup_hosted_methods?: boolean;
|
|
2365
2358
|
/**
|
|
2366
2359
|
* Whether auto top-up is rolled out to this user: the auto_top_up_enabled
|
|
2367
2360
|
* rollout flag, evaluated by ingest the same way GET /api/features
|
|
@@ -2401,6 +2394,13 @@ export type BillingCapabilitiesResponse = {
|
|
|
2401
2394
|
*
|
|
2402
2395
|
*/
|
|
2403
2396
|
billing_web_checkout_ui: 'embedded' | 'full_page';
|
|
2397
|
+
/**
|
|
2398
|
+
* Whether billing-web may offer hosted methods for a one-off top-up.
|
|
2399
|
+
* Evaluated for the authenticated actor; missing or failed evaluation
|
|
2400
|
+
* is false. Does not grant payment permission or guarantee wallet availability.
|
|
2401
|
+
*
|
|
2402
|
+
*/
|
|
2403
|
+
billing_web_topup_hosted_methods?: boolean;
|
|
2404
2404
|
/**
|
|
2405
2405
|
* Whether a cancel requested now ends the plan today instead of at the
|
|
2406
2406
|
* end of the billing period. True only when can_cancel is true, the
|
|
@@ -2440,6 +2440,10 @@ export type BillingCapabilitiesResponse = {
|
|
|
2440
2440
|
* Whether any workspace billing operation needs support reconciliation (paid_ungrantable or supersede_uncancelled), across all operation types including automatic top-ups, and independent of an active plan. Shown only when can_manage_billing is true; true requests the payment support banner, not proof of a charge. False means the local read found no parked operation. Omitted for non-managers, unavailable reads, older servers or disabled billing; omission means unknown, not a healthy payment state.
|
|
2441
2441
|
*/
|
|
2442
2442
|
has_parked_billing_operation?: boolean;
|
|
2443
|
+
/**
|
|
2444
|
+
* Whether POST /api/billing/budgets/held-jobs/resume with no job_ids would find at least one job held by a budget that this caller may resume: for a workspace owner, any member's held job in the workspace; for anyone else, only their own. Jobs in a named project count only where the caller may queue work in that project now. Answers whether to show the "Resume all" notice; it does not predict the outcome, since a resume asks the budget again and a job can stay held as budget_exceeded. It carries no count. False means the read found no such job, or that this credential cannot call the resume (a billing handoff session, or an OAuth grant without comfy-cloud:jobs:write where scopes are enforced). Omitted when the read failed, with billing disabled, or on older servers; omission means unknown, so show no notice. The response may be cached for up to 30 seconds, so refetch after a resume.
|
|
2445
|
+
*/
|
|
2446
|
+
has_resumable_held_jobs?: boolean;
|
|
2443
2447
|
/**
|
|
2444
2448
|
* Whether this actor may use payment management to recover an outstanding
|
|
2445
2449
|
* subscription payment. True only when can_manage_billing is true, the
|
|
@@ -3526,6 +3530,10 @@ export type BillingOpStatusResponse = {
|
|
|
3526
3530
|
* List of available billing plans for subscription.
|
|
3527
3531
|
*/
|
|
3528
3532
|
export type BillingPlansResponse = {
|
|
3533
|
+
/**
|
|
3534
|
+
* What Cancel plan does to the workspace's projects once the subscription ends. Present only when the workspace has a subscription and Projects is on for it.
|
|
3535
|
+
*/
|
|
3536
|
+
cancel_project_change?: PlanProjectChange;
|
|
3529
3537
|
/**
|
|
3530
3538
|
* Current plan slug if subscribed
|
|
3531
3539
|
*/
|
|
@@ -4091,6 +4099,28 @@ export type BudgetWriteResult = {
|
|
|
4091
4099
|
*/
|
|
4092
4100
|
auto_top_up_conflict: boolean;
|
|
4093
4101
|
budget: Budget;
|
|
4102
|
+
/**
|
|
4103
|
+
* Answers one UI question after a budget is changed: how many jobs
|
|
4104
|
+
* does this budget still hold that this caller may resume? A held job
|
|
4105
|
+
* never resumes on its own, so raising a cap leaves them held.
|
|
4106
|
+
* Counts the workspace's jobs in `held_budget` whose hold was made
|
|
4107
|
+
* by this budget (a job held because the budget check was
|
|
4108
|
+
* unavailable names no budget and is not counted), limited as POST
|
|
4109
|
+
* /api/billing/budgets/held-jobs/resume limits a workspace owner:
|
|
4110
|
+
* with Projects on, a job in a named project counts only where the
|
|
4111
|
+
* caller may queue work in that project now, and every named-project
|
|
4112
|
+
* job counts as none while Projects is off. Read in the same request,
|
|
4113
|
+
* after the change.
|
|
4114
|
+
* 0 means no such job, or that this credential cannot call the
|
|
4115
|
+
* resume (an OAuth grant without comfy-cloud:jobs:write where scopes
|
|
4116
|
+
* are enforced). Omitted when the read failed, on older servers, and
|
|
4117
|
+
* on budget create; omission means unknown, so show no count.
|
|
4118
|
+
* Served on PATCH /api/billing/budgets/{id} only. It does not
|
|
4119
|
+
* predict a resume: the resume asks the budget again, and a job can
|
|
4120
|
+
* stay held as budget_exceeded. Render it as received.
|
|
4121
|
+
*
|
|
4122
|
+
*/
|
|
4123
|
+
held_jobs_count?: number;
|
|
4094
4124
|
};
|
|
4095
4125
|
/**
|
|
4096
4126
|
* Response after bulk-revoking API keys for a workspace member.
|
|
@@ -7168,11 +7198,27 @@ export type ListMembersResponse = {
|
|
|
7168
7198
|
members: Array<Member>;
|
|
7169
7199
|
pagination: PaginationInfo;
|
|
7170
7200
|
};
|
|
7201
|
+
/**
|
|
7202
|
+
* The people the caller may add to a project.
|
|
7203
|
+
*/
|
|
7204
|
+
export type ListProjectMemberCandidatesResponse = {
|
|
7205
|
+
/**
|
|
7206
|
+
* Workspace members not in the project, in the order they joined the workspace. Someone left out cannot be added by this caller: a `PUT` for a person outside the workspace answers 422 `not_workspace_member`.
|
|
7207
|
+
*/
|
|
7208
|
+
candidates: Array<ProjectMemberCandidate>;
|
|
7209
|
+
};
|
|
7171
7210
|
/**
|
|
7172
7211
|
* The people in a project.
|
|
7173
7212
|
*/
|
|
7174
7213
|
export type ListProjectMembersResponse = {
|
|
7214
|
+
/**
|
|
7215
|
+
* The people who hold a membership in the project, with their project role. It does not list everyone who can open the project: owners and Workspace admins reach it without a membership (`workspace_access`).
|
|
7216
|
+
*/
|
|
7175
7217
|
members: Array<ProjectMember>;
|
|
7218
|
+
/**
|
|
7219
|
+
* Everyone who reaches the project through their workspace role, the owners and Workspace admins, whether or not they also hold a membership (someone who does is in `members` too). They carry no project role and no member actions. Absent for the default project, which every workspace member is in.
|
|
7220
|
+
*/
|
|
7221
|
+
workspace_access?: Array<ProjectWorkspaceAccessMember>;
|
|
7176
7222
|
};
|
|
7177
7223
|
/**
|
|
7178
7224
|
* The projects the caller can view, with the workspace's project quota.
|
|
@@ -7970,6 +8016,10 @@ export type Plan = {
|
|
|
7970
8016
|
* Per-member price in cents (base + one seat)
|
|
7971
8017
|
*/
|
|
7972
8018
|
price_cents: number;
|
|
8019
|
+
/**
|
|
8020
|
+
* What moving the workspace to this plan does to its projects. For a per-credit Team plan it answers for the credit stop this plan's action targets (the current stop on the current plan, otherwise the slider's default); team_credit_stops carries the answer for every stop. Absent where Projects is off for the workspace.
|
|
8021
|
+
*/
|
|
8022
|
+
project_change?: PlanProjectChange;
|
|
7973
8023
|
seat_summary: PlanSeatSummary;
|
|
7974
8024
|
/**
|
|
7975
8025
|
* Plan identifier (e.g., "pro-monthly", "team-standard-annual")
|
|
@@ -8014,6 +8064,19 @@ export type PlanAvailability = {
|
|
|
8014
8064
|
* requires_team and requires_personal are part of this enum but are not reported today.
|
|
8015
8065
|
*/
|
|
8016
8066
|
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';
|
|
8067
|
+
/**
|
|
8068
|
+
* A project named by a plan change.
|
|
8069
|
+
*/
|
|
8070
|
+
export type PlanChangeProject = {
|
|
8071
|
+
/**
|
|
8072
|
+
* Project ID
|
|
8073
|
+
*/
|
|
8074
|
+
id: string;
|
|
8075
|
+
/**
|
|
8076
|
+
* Project name
|
|
8077
|
+
*/
|
|
8078
|
+
name: string;
|
|
8079
|
+
};
|
|
8017
8080
|
export type PlanFeatureItem = {
|
|
8018
8081
|
/**
|
|
8019
8082
|
* Stable semantic display identifier; additions appear in generated client types.
|
|
@@ -8037,6 +8100,19 @@ export type PlanFeatureItem = {
|
|
|
8037
8100
|
*/
|
|
8038
8101
|
text: string;
|
|
8039
8102
|
};
|
|
8103
|
+
/**
|
|
8104
|
+
* What a plan change does to the workspace's projects, judged by the same rule that freezes them. It answers whether the downgrade confirmation must name projects that freeze, or say that nothing freezes and only new projects are blocked. The change applies when the plan change takes effect (effective_at on the preview, the end date for a cancellation). Both fields empty or false means the change does nothing to projects and needs no projects confirmation. It is not a permission: subscribe and cancel do not check it, and it does not say who may manage projects.
|
|
8105
|
+
*/
|
|
8106
|
+
export type PlanProjectChange = {
|
|
8107
|
+
/**
|
|
8108
|
+
* The projects the caller can view (as GET /api/projects lists them) that take changes now and would freeze on the target plan, oldest first. The workspace owner and Workspace admins see every one; a member sees only the projects they belong to, so the list can be shorter than what freezes. A frozen project stays readable and nothing in it is deleted. The default project never freezes. Empty when none the caller can view would, including projects that are frozen already.
|
|
8109
|
+
*/
|
|
8110
|
+
freezes_projects: Array<PlanChangeProject>;
|
|
8111
|
+
/**
|
|
8112
|
+
* True when, after this change, new projects are blocked and nothing freezes: the target plan includes Projects and the workspace has at least as many projects as it allows, where the current plan has room for another, as on a move to a lower Team level. Creating a project is refused while the workspace stays at or over the limit. False when creating is already refused on the current plan (at or over its limit, or Projects frozen), and whenever freezes_projects is not empty.
|
|
8113
|
+
*/
|
|
8114
|
+
over_project_limit: boolean;
|
|
8115
|
+
};
|
|
8040
8116
|
/**
|
|
8041
8117
|
* Summary of seat costs based on current workspace members
|
|
8042
8118
|
*/
|
|
@@ -8235,6 +8311,10 @@ export type PreviewSubscribeResponse = {
|
|
|
8235
8311
|
*
|
|
8236
8312
|
*/
|
|
8237
8313
|
payment_method_configuration_id?: string;
|
|
8314
|
+
/**
|
|
8315
|
+
* What this change does to the workspace's projects, for the plan and team_credit_stop_id previewed. Absent where Projects is off for the workspace.
|
|
8316
|
+
*/
|
|
8317
|
+
project_change?: PlanProjectChange;
|
|
8238
8318
|
/**
|
|
8239
8319
|
* Normalized promotion code accepted by Stripe.
|
|
8240
8320
|
*/
|
|
@@ -8363,6 +8443,10 @@ export type Project = {
|
|
|
8363
8443
|
* Whether this is the workspace's default project, which holds work that names no project. Every workspace member is in it, and it cannot be renamed or given members.
|
|
8364
8444
|
*/
|
|
8365
8445
|
is_default: boolean;
|
|
8446
|
+
/**
|
|
8447
|
+
* How many people were added to the project as its members, the people `GET /api/projects/{id}/members` lists. It does not count workspace owners and Workspace admins, who reach every project through their workspace role, so do not read it as everyone who can open the project. Absent on the default project, which has no member list: every workspace member is in it.
|
|
8448
|
+
*/
|
|
8449
|
+
member_count?: number;
|
|
8366
8450
|
/**
|
|
8367
8451
|
* The caller's project role. Absent when the caller's access comes from their workspace role (an owner or Workspace admin) or the project is the default one. Use `permissions`, not this, to decide what to show.
|
|
8368
8452
|
*/
|
|
@@ -8391,10 +8475,18 @@ export type ProjectMember = {
|
|
|
8391
8475
|
* User who added them. Absent when that user is no longer known.
|
|
8392
8476
|
*/
|
|
8393
8477
|
added_by_user_id?: string;
|
|
8478
|
+
/**
|
|
8479
|
+
* What the caller may do to this member. Present on each row of `GET /api/projects/{id}/members`; absent from the `PUT` answer. Absent means unknown, not permission.
|
|
8480
|
+
*/
|
|
8481
|
+
capabilities?: ProjectMemberCapabilities;
|
|
8394
8482
|
/**
|
|
8395
8483
|
* When they were added to the project
|
|
8396
8484
|
*/
|
|
8397
8485
|
create_time: string;
|
|
8486
|
+
/**
|
|
8487
|
+
* Why a capability of this row is false, keyed by the capability. Absent when every capability is true.
|
|
8488
|
+
*/
|
|
8489
|
+
denied_reasons?: ProjectMemberDenials;
|
|
8398
8490
|
/**
|
|
8399
8491
|
* The member's email address, or an empty string if none is on file.
|
|
8400
8492
|
*/
|
|
@@ -8406,6 +8498,52 @@ export type ProjectMember = {
|
|
|
8406
8498
|
role: ProjectRole;
|
|
8407
8499
|
user_id: string;
|
|
8408
8500
|
};
|
|
8501
|
+
/**
|
|
8502
|
+
* A workspace member the caller may add to the project.
|
|
8503
|
+
*/
|
|
8504
|
+
export type ProjectMemberCandidate = {
|
|
8505
|
+
/**
|
|
8506
|
+
* Their email address, or an empty string if none is on file.
|
|
8507
|
+
*/
|
|
8508
|
+
email: string;
|
|
8509
|
+
/**
|
|
8510
|
+
* Their display name
|
|
8511
|
+
*/
|
|
8512
|
+
name: string;
|
|
8513
|
+
/**
|
|
8514
|
+
* The project roles the caller may give this person, least first. Offer only these.
|
|
8515
|
+
*/
|
|
8516
|
+
roles: Array<ProjectRole>;
|
|
8517
|
+
user_id: string;
|
|
8518
|
+
/**
|
|
8519
|
+
* Present when this person already reaches the project through their workspace role. Adding them is accepted and changes nothing they can do there while they hold that role. Absent for an ordinary member.
|
|
8520
|
+
*/
|
|
8521
|
+
workspace_access?: ProjectWorkspaceAccess;
|
|
8522
|
+
};
|
|
8523
|
+
/**
|
|
8524
|
+
* What the caller may do to one project member, from the same checks the member routes make. Render each as received; do not rebuild them from `my_role`, `permissions` or the workspace role. Read them per row: a rule may depend on the member. Neither is permission to add someone; that is `GET /api/projects/{id}/member-candidates`.
|
|
8525
|
+
*/
|
|
8526
|
+
export type ProjectMemberCapabilities = {
|
|
8527
|
+
/**
|
|
8528
|
+
* Whether `PUT /api/projects/{id}/members/{userId}` would give this member another role. False in a frozen project. A Project admin may change their own role, the project's last Project admin included: owners and Workspace admins always reach the project. Not permission to remove them.
|
|
8529
|
+
*/
|
|
8530
|
+
can_change_role: boolean;
|
|
8531
|
+
/**
|
|
8532
|
+
* Whether `DELETE /api/projects/{id}/members/{userId}` would remove this member. Still true in a frozen project, which keeps accepting removals. True for the caller's own row and for the last Project admin when the caller manages members. Not permission to change their role.
|
|
8533
|
+
*/
|
|
8534
|
+
can_remove: boolean;
|
|
8535
|
+
};
|
|
8536
|
+
/**
|
|
8537
|
+
* `permission_denied`: the caller does not manage the project's members (`project.members` write). `project_frozen`: the project is frozen and takes no role changes; it still takes removals. New values may be added.
|
|
8538
|
+
*/
|
|
8539
|
+
export type ProjectMemberDenialReason = 'permission_denied' | 'project_frozen';
|
|
8540
|
+
/**
|
|
8541
|
+
* Why a capability is false, keyed by the capability. The value names the rule that refused, not wording: the client owns the message. A missing key is not a grant.
|
|
8542
|
+
*/
|
|
8543
|
+
export type ProjectMemberDenials = {
|
|
8544
|
+
can_change_role?: ProjectMemberDenialReason;
|
|
8545
|
+
can_remove?: ProjectMemberDenialReason;
|
|
8546
|
+
};
|
|
8409
8547
|
/**
|
|
8410
8548
|
* A workspace member to add to a project, with their project role.
|
|
8411
8549
|
*/
|
|
@@ -8459,18 +8597,51 @@ export type ProjectQuota = {
|
|
|
8459
8597
|
*/
|
|
8460
8598
|
active: number;
|
|
8461
8599
|
/**
|
|
8462
|
-
* Whether to offer the caller "New project": true when the caller holds `workspace.projects` write and the workspace is under its limit. Do not rebuild it from `max_active` and `active`.
|
|
8600
|
+
* Whether to offer the caller "New project": true when the caller holds `workspace.projects` write and the workspace is under its limit. Do not rebuild it from `max_active` and `active`. This, not `denied_reasons`, answers whether the caller may create.
|
|
8463
8601
|
*/
|
|
8464
8602
|
can_create: boolean;
|
|
8603
|
+
/**
|
|
8604
|
+
* Why `can_create` is false, keyed by the fact it explains. Present exactly when `can_create` is false.
|
|
8605
|
+
*/
|
|
8606
|
+
denied_reasons?: ProjectQuotaDenials;
|
|
8465
8607
|
/**
|
|
8466
8608
|
* The most projects the workspace's plan allows, not counting the default project.
|
|
8467
8609
|
*/
|
|
8468
8610
|
max_active: number;
|
|
8469
8611
|
};
|
|
8612
|
+
/**
|
|
8613
|
+
* Why the caller may not create a project. `permission_denied`: the caller does not hold `workspace.projects` write (only owners and Workspace admins do), whatever the workspace's limit; hide "New project" rather than show a limit. A create answers 403 `permission_denied`. `limit_reached`: the caller may create projects but the workspace has as many as its plan allows; show the project limit and a way to change plans. A create answers 409 `project_limit_reached`. `frozen`: the caller may create projects but the workspace's plan no longer includes Projects, so its projects are read-only and none can be created until the plan includes Projects again. A create answers 403 `projects_not_available`. A caller without permission is answered `permission_denied` even when the workspace is also at its limit or frozen. Treat a value not listed here as "may not create".
|
|
8614
|
+
*/
|
|
8615
|
+
export type ProjectQuotaCreateDenialReason = 'permission_denied' | 'limit_reached' | 'frozen';
|
|
8616
|
+
/**
|
|
8617
|
+
* Why a quota fact is false, keyed by the fact. The value names the rule that refused, not wording: the client owns the message. A missing key is not a grant.
|
|
8618
|
+
*/
|
|
8619
|
+
export type ProjectQuotaDenials = {
|
|
8620
|
+
can_create?: ProjectQuotaCreateDenialReason;
|
|
8621
|
+
};
|
|
8470
8622
|
/**
|
|
8471
8623
|
* A person's role in one project. A Runner runs existing workflows. A Builder also creates and edits workflows. A Project admin also manages the project, its members and its deployments.
|
|
8472
8624
|
*/
|
|
8473
8625
|
export type ProjectRole = 'runner' | 'builder' | 'project_admin';
|
|
8626
|
+
/**
|
|
8627
|
+
* How someone reaches every project of the workspace through their workspace role: as an owner, or as a Workspace admin. Either acts as a Project admin in the project. Not a project role, and not a membership: they cannot be removed from the project or given a role there; that is a change to their workspace role.
|
|
8628
|
+
*/
|
|
8629
|
+
export type ProjectWorkspaceAccess = 'workspace_owner' | 'workspace_admin';
|
|
8630
|
+
/**
|
|
8631
|
+
* A person who reaches the project through their workspace role.
|
|
8632
|
+
*/
|
|
8633
|
+
export type ProjectWorkspaceAccessMember = {
|
|
8634
|
+
access: ProjectWorkspaceAccess;
|
|
8635
|
+
/**
|
|
8636
|
+
* Their email address, or an empty string if none is on file.
|
|
8637
|
+
*/
|
|
8638
|
+
email: string;
|
|
8639
|
+
/**
|
|
8640
|
+
* Their display name
|
|
8641
|
+
*/
|
|
8642
|
+
name: string;
|
|
8643
|
+
user_id: string;
|
|
8644
|
+
};
|
|
8474
8645
|
/**
|
|
8475
8646
|
* Error response for ComfyUI prompt execution.
|
|
8476
8647
|
*/
|
|
@@ -9638,6 +9809,10 @@ export type TeamCreditStopPrice = {
|
|
|
9638
9809
|
* Post-discount (bold) price in cents
|
|
9639
9810
|
*/
|
|
9640
9811
|
price_cents: number;
|
|
9812
|
+
/**
|
|
9813
|
+
* What moving the workspace to the per-credit Team plan at this stop and billing period does to its projects. Absent where Projects is off for the workspace.
|
|
9814
|
+
*/
|
|
9815
|
+
project_change?: PlanProjectChange;
|
|
9641
9816
|
};
|
|
9642
9817
|
/**
|
|
9643
9818
|
* The team credit stop a workspace is currently subscribed to: the
|
|
@@ -12342,7 +12517,7 @@ export type AgentPostMessageErrors = {
|
|
|
12342
12517
|
*/
|
|
12343
12518
|
403: ErrorResponse | AgentError;
|
|
12344
12519
|
/**
|
|
12345
|
-
* The selected model is unavailable, or one or more attachments name a file type the agent does not accept. A model refusal writes no thread or message row and does not substitute another model. An attachment refusal names the offending references and carries the full accepted policy, so the client can explain the refusal without hardcoding the list.
|
|
12520
|
+
* The selected model is unavailable (including an `option_id` that is not one of the caller's selections, and the role name `title`), or one or more attachments name a file type the agent does not accept. A model refusal writes no thread or message row and does not substitute another model. An attachment refusal names the offending references and carries the full accepted policy, so the client can explain the refusal without hardcoding the list.
|
|
12346
12521
|
*/
|
|
12347
12522
|
422: AgentAttachmentError | AgentModelUnavailable;
|
|
12348
12523
|
/**
|
|
@@ -13109,6 +13284,10 @@ export type GetAssetContentErrors = {
|
|
|
13109
13284
|
* Internal server error
|
|
13110
13285
|
*/
|
|
13111
13286
|
500: ErrorResponse;
|
|
13287
|
+
/**
|
|
13288
|
+
* The credential could not be checked because a store read failed, such as the session, user or workspace membership read timing out. Nothing was done, so the request is safe to resend after the Retry-After seconds. `code` is `SERVICE_UNAVAILABLE` and `message` is `authentication service unavailable`.
|
|
13289
|
+
*/
|
|
13290
|
+
503: ErrorResponse;
|
|
13112
13291
|
};
|
|
13113
13292
|
export type GetAssetContentError = GetAssetContentErrors[keyof GetAssetContentErrors];
|
|
13114
13293
|
export type GetAssetContentResponses = {
|
|
@@ -18515,7 +18694,7 @@ export type ListProjectsErrors = {
|
|
|
18515
18694
|
export type ListProjectsError = ListProjectsErrors[keyof ListProjectsErrors];
|
|
18516
18695
|
export type ListProjectsResponses = {
|
|
18517
18696
|
/**
|
|
18518
|
-
* Projects the caller can view. Also answered to a workspace whose plan no longer includes Projects (a lapsed or downgraded plan) but that still has projects other than the default: those projects are frozen and read-only, each with `writable: false`, and the quota has `max_active: 0` and `can_create:
|
|
18697
|
+
* Projects the caller can view. Also answered to a workspace whose plan no longer includes Projects (a lapsed or downgraded plan) but that still has projects other than the default: those projects are frozen and read-only, each with `writable: false`, and the quota has `max_active: 0`, `can_create: false` and, for a caller who could otherwise create, `denied_reasons: {can_create: frozen}`. Do not read a 200 as the plan including Projects; read `writable` on each project and `quota.can_create`.
|
|
18519
18698
|
*/
|
|
18520
18699
|
200: ListProjectsResponse;
|
|
18521
18700
|
};
|
|
@@ -18650,6 +18829,47 @@ export type UpdateProjectResponses = {
|
|
|
18650
18829
|
200: Project;
|
|
18651
18830
|
};
|
|
18652
18831
|
export type UpdateProjectResponse = UpdateProjectResponses[keyof UpdateProjectResponses];
|
|
18832
|
+
export type ListProjectMemberCandidatesData = {
|
|
18833
|
+
body?: never;
|
|
18834
|
+
path: {
|
|
18835
|
+
/**
|
|
18836
|
+
* Project ID
|
|
18837
|
+
*/
|
|
18838
|
+
id: string;
|
|
18839
|
+
};
|
|
18840
|
+
query?: never;
|
|
18841
|
+
url: '/api/projects/{id}/member-candidates';
|
|
18842
|
+
};
|
|
18843
|
+
export type ListProjectMemberCandidatesErrors = {
|
|
18844
|
+
/**
|
|
18845
|
+
* `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.
|
|
18846
|
+
*/
|
|
18847
|
+
400: ErrorResponse;
|
|
18848
|
+
/**
|
|
18849
|
+
* Unauthorized
|
|
18850
|
+
*/
|
|
18851
|
+
401: ErrorResponse;
|
|
18852
|
+
/**
|
|
18853
|
+
* `permission_denied`: the caller lacks `project.members` write; `details.permission` names it. `project_frozen`: the project is frozen and takes no new members. Or `projects_not_available`: the workspace's plan does not include Projects, or Projects is turned off
|
|
18854
|
+
*/
|
|
18855
|
+
403: ErrorResponse;
|
|
18856
|
+
/**
|
|
18857
|
+
* `not_found`: the project does not exist, or the caller may not view it. The two look the same.
|
|
18858
|
+
*/
|
|
18859
|
+
404: ErrorResponse;
|
|
18860
|
+
/**
|
|
18861
|
+
* Internal server error
|
|
18862
|
+
*/
|
|
18863
|
+
500: ErrorResponse;
|
|
18864
|
+
};
|
|
18865
|
+
export type ListProjectMemberCandidatesError = ListProjectMemberCandidatesErrors[keyof ListProjectMemberCandidatesErrors];
|
|
18866
|
+
export type ListProjectMemberCandidatesResponses = {
|
|
18867
|
+
/**
|
|
18868
|
+
* The people the caller may add
|
|
18869
|
+
*/
|
|
18870
|
+
200: ListProjectMemberCandidatesResponse;
|
|
18871
|
+
};
|
|
18872
|
+
export type ListProjectMemberCandidatesResponse2 = ListProjectMemberCandidatesResponses[keyof ListProjectMemberCandidatesResponses];
|
|
18653
18873
|
export type ListProjectMembersData = {
|
|
18654
18874
|
body?: never;
|
|
18655
18875
|
path: {
|
|
@@ -22108,6 +22328,32 @@ export type GetCccWebsiteRootPresentationResponses = {
|
|
|
22108
22328
|
200: CccWebsiteRootPresentation;
|
|
22109
22329
|
};
|
|
22110
22330
|
export type GetCccWebsiteRootPresentationResponse = GetCccWebsiteRootPresentationResponses[keyof GetCccWebsiteRootPresentationResponses];
|
|
22331
|
+
export type GetCccWebsiteRootPublicUidsData = {
|
|
22332
|
+
body?: never;
|
|
22333
|
+
path?: never;
|
|
22334
|
+
query?: never;
|
|
22335
|
+
url: '/api/v1/catalog/root-public-uids';
|
|
22336
|
+
};
|
|
22337
|
+
export type GetCccWebsiteRootPublicUidsErrors = {
|
|
22338
|
+
/**
|
|
22339
|
+
* Any query parameter
|
|
22340
|
+
*/
|
|
22341
|
+
400: unknown;
|
|
22342
|
+
/**
|
|
22343
|
+
* Catalog unavailable, or more than 200000 public records
|
|
22344
|
+
*/
|
|
22345
|
+
503: unknown;
|
|
22346
|
+
};
|
|
22347
|
+
export type GetCccWebsiteRootPublicUidsResponses = {
|
|
22348
|
+
/**
|
|
22349
|
+
* Current Live revision and the public uids
|
|
22350
|
+
*/
|
|
22351
|
+
200: {
|
|
22352
|
+
revision_id: number;
|
|
22353
|
+
uids: Array<string>;
|
|
22354
|
+
};
|
|
22355
|
+
};
|
|
22356
|
+
export type GetCccWebsiteRootPublicUidsResponse = GetCccWebsiteRootPublicUidsResponses[keyof GetCccWebsiteRootPublicUidsResponses];
|
|
22111
22357
|
export type GetCccTypeSchemaData = {
|
|
22112
22358
|
body?: never;
|
|
22113
22359
|
path: {
|
|
@@ -22338,6 +22584,10 @@ export type GetVhsQueryVideoErrors = {
|
|
|
22338
22584
|
* Internal server error, such as the auth policy failing to look up the workspace `workspace_id` names.
|
|
22339
22585
|
*/
|
|
22340
22586
|
500: ErrorResponse;
|
|
22587
|
+
/**
|
|
22588
|
+
* The credential could not be checked because a store read failed, such as the session, user or workspace membership read timing out. Nothing was done, so the request is safe to resend after the Retry-After seconds. `code` is `SERVICE_UNAVAILABLE` and `message` is `authentication service unavailable`.
|
|
22589
|
+
*/
|
|
22590
|
+
503: ErrorResponse;
|
|
22341
22591
|
};
|
|
22342
22592
|
export type GetVhsQueryVideoError = GetVhsQueryVideoErrors[keyof GetVhsQueryVideoErrors];
|
|
22343
22593
|
export type GetVhsQueryVideoResponses = {
|
|
@@ -22433,6 +22683,10 @@ export type GetVhsViewAudioErrors = {
|
|
|
22433
22683
|
* Internal server error
|
|
22434
22684
|
*/
|
|
22435
22685
|
500: ErrorResponse;
|
|
22686
|
+
/**
|
|
22687
|
+
* The credential could not be checked because a store read failed, such as the session, user or workspace membership read timing out. Nothing was done, so the request is safe to resend after the Retry-After seconds. `code` is `SERVICE_UNAVAILABLE` and `message` is `authentication service unavailable`.
|
|
22688
|
+
*/
|
|
22689
|
+
503: ErrorResponse;
|
|
22436
22690
|
};
|
|
22437
22691
|
export type GetVhsViewAudioError = GetVhsViewAudioErrors[keyof GetVhsViewAudioErrors];
|
|
22438
22692
|
export type GetVhsViewAudioResponses = {
|
|
@@ -22506,6 +22760,10 @@ export type GetVhsViewVideoErrors = {
|
|
|
22506
22760
|
* Internal server error
|
|
22507
22761
|
*/
|
|
22508
22762
|
500: ErrorResponse;
|
|
22763
|
+
/**
|
|
22764
|
+
* The credential could not be checked because a store read failed, such as the session, user or workspace membership read timing out. Nothing was done, so the request is safe to resend after the Retry-After seconds. `code` is `SERVICE_UNAVAILABLE` and `message` is `authentication service unavailable`.
|
|
22765
|
+
*/
|
|
22766
|
+
503: ErrorResponse;
|
|
22509
22767
|
};
|
|
22510
22768
|
export type GetVhsViewVideoError = GetVhsViewVideoErrors[keyof GetVhsViewVideoErrors];
|
|
22511
22769
|
export type GetVhsViewVideoResponses = {
|
|
@@ -22607,7 +22865,7 @@ export type ViewFileErrors = {
|
|
|
22607
22865
|
*/
|
|
22608
22866
|
500: ErrorResponse;
|
|
22609
22867
|
/**
|
|
22610
|
-
* With `channel` or `res`: the pod's upload buffer budget, which the image's bytes and decoded pixels are charged to, is exhausted; retry after the Retry-After seconds. `code` is `UPLOAD_BUDGET_EXHAUSTED`.
|
|
22868
|
+
* With `channel` or `res`: the pod's upload buffer budget, which the image's bytes and decoded pixels are charged to, is exhausted; retry after the Retry-After seconds. `code` is `UPLOAD_BUDGET_EXHAUSTED`. Also answered, with `code` `SERVICE_UNAVAILABLE` and `message` `authentication service unavailable`, when a store read failed while checking the credential; nothing was done, so the request is safe to resend.
|
|
22611
22869
|
*/
|
|
22612
22870
|
503: ErrorResponse;
|
|
22613
22871
|
};
|
|
@@ -22689,6 +22947,10 @@ export type GetApiViewVideoAliasErrors = {
|
|
|
22689
22947
|
* Internal server error
|
|
22690
22948
|
*/
|
|
22691
22949
|
500: ErrorResponse;
|
|
22950
|
+
/**
|
|
22951
|
+
* The credential could not be checked because a store read failed, such as the session, user or workspace membership read timing out. Nothing was done, so the request is safe to resend after the Retry-After seconds. `code` is `SERVICE_UNAVAILABLE` and `message` is `authentication service unavailable`.
|
|
22952
|
+
*/
|
|
22953
|
+
503: ErrorResponse;
|
|
22692
22954
|
};
|
|
22693
22955
|
export type GetApiViewVideoAliasError = GetApiViewVideoAliasErrors[keyof GetApiViewVideoAliasErrors];
|
|
22694
22956
|
export type GetApiViewVideoAliasResponses = {
|
|
@@ -25561,6 +25823,10 @@ export type GetViewCompatAliasErrors = {
|
|
|
25561
25823
|
* Internal server error
|
|
25562
25824
|
*/
|
|
25563
25825
|
500: ErrorResponse;
|
|
25826
|
+
/**
|
|
25827
|
+
* The credential could not be checked because a store read failed, such as the session, user or workspace membership read timing out. Nothing was done, so the request is safe to resend after the Retry-After seconds. `code` is `SERVICE_UNAVAILABLE` and `message` is `authentication service unavailable`.
|
|
25828
|
+
*/
|
|
25829
|
+
503: ErrorResponse;
|
|
25564
25830
|
};
|
|
25565
25831
|
export type GetViewCompatAliasError = GetViewCompatAliasErrors[keyof GetViewCompatAliasErrors];
|
|
25566
25832
|
export type GetViewCompatAliasResponses = {
|