@comfyorg/ingest-types 1.5.0 → 1.7.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 +1438 -74
- package/dist/zod.gen.d.ts +1743 -132
- package/dist/zod.gen.js +678 -38
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -14,6 +14,21 @@ export type AcceptInviteResponse = {
|
|
|
14
14
|
*/
|
|
15
15
|
workspace_name: string;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* The auto top-up settings a purchase was accepted with, echoed so checkout and its done state show exactly what turns on. Present only on a purchase sent with auto_top_up.
|
|
19
|
+
*/
|
|
20
|
+
export type AcceptedAutoTopUpSettings = {
|
|
21
|
+
/**
|
|
22
|
+
* The stored monthly limit; the ceiling when the owner set no limit.
|
|
23
|
+
*/
|
|
24
|
+
monthly_budget_cents: number;
|
|
25
|
+
/**
|
|
26
|
+
* True when the owner set no limit and the ceiling was stored.
|
|
27
|
+
*/
|
|
28
|
+
monthly_budget_is_default: boolean;
|
|
29
|
+
target_credits: number;
|
|
30
|
+
threshold_credits: number;
|
|
31
|
+
};
|
|
17
32
|
/**
|
|
18
33
|
* Returned when a request to run the agent is declined before the turn starts, because of a billing or account condition on the workspace. The `error` object carries a `message` you can show the user, a `type` that matches the HTTP status, and a more specific `reason` you can branch on to offer the right next step.
|
|
19
34
|
*/
|
|
@@ -411,6 +426,43 @@ export type AgentMessageDoneFrame = {
|
|
|
411
426
|
data: AgentMessageDoneData;
|
|
412
427
|
type: 'agent_message_done';
|
|
413
428
|
};
|
|
429
|
+
/**
|
|
430
|
+
* The immutable model selection receipt for an accepted turn.
|
|
431
|
+
*/
|
|
432
|
+
export type AgentModelReceipt = {
|
|
433
|
+
contract: 'v1';
|
|
434
|
+
/**
|
|
435
|
+
* Exact model ID to which the turn is pinned.
|
|
436
|
+
*/
|
|
437
|
+
model_id: string;
|
|
438
|
+
/**
|
|
439
|
+
* Profile revision pinned for the turn (bootstrap for the configured default profile).
|
|
440
|
+
*/
|
|
441
|
+
profile_revision: string;
|
|
442
|
+
/**
|
|
443
|
+
* The supplied model_selection object, or null when omitted.
|
|
444
|
+
*/
|
|
445
|
+
requested: AgentModelSelection | null;
|
|
446
|
+
source: 'request' | 'deployment_default';
|
|
447
|
+
strategy: 'anthropic';
|
|
448
|
+
wire: 'anthropic_messages' | 'openai_chat';
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* An explicit exact model selection. Unknown properties are refused with 400 so a newer intent is never silently ignored by an older server.
|
|
452
|
+
*/
|
|
453
|
+
export type AgentModelSelection = {
|
|
454
|
+
/**
|
|
455
|
+
* Exact model ID, using the agent-llm v1 ID grammar.
|
|
456
|
+
*/
|
|
457
|
+
model_id: string;
|
|
458
|
+
/**
|
|
459
|
+
* Reserved dial option ID. It is accepted and recorded in requested while the dial is off, but does not affect resolution.
|
|
460
|
+
*/
|
|
461
|
+
option_id?: string;
|
|
462
|
+
};
|
|
463
|
+
export type AgentModelUnavailable = AgentError & {
|
|
464
|
+
code: 'model_unavailable';
|
|
465
|
+
};
|
|
414
466
|
/**
|
|
415
467
|
* The `context` of a `paused` ask.
|
|
416
468
|
*/
|
|
@@ -550,6 +602,7 @@ export type AgentPostMessageRequest = {
|
|
|
550
602
|
[key: string]: unknown;
|
|
551
603
|
};
|
|
552
604
|
};
|
|
605
|
+
model_selection?: AgentModelSelection;
|
|
553
606
|
/**
|
|
554
607
|
* Snapshot of the client's open editor tabs in editor order. Advisory context, not a grant — entries outside the caller's workspace are ignored. With workflow_references present, only the editable target and explicit references enter the model's workflow context.
|
|
555
608
|
*/
|
|
@@ -854,13 +907,14 @@ export type AgentToolCallFrame = {
|
|
|
854
907
|
type: 'agent_tool_call';
|
|
855
908
|
};
|
|
856
909
|
/**
|
|
857
|
-
* 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.
|
|
910
|
+
* 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. The model selection receipt is present when the backend supports its configured wire. A client that requested selection must treat a missing receipt as selection not applied.
|
|
858
911
|
*/
|
|
859
912
|
export type AgentTurnAccepted = {
|
|
860
913
|
/**
|
|
861
914
|
* ID of the assistant message that will stream the reply.
|
|
862
915
|
*/
|
|
863
916
|
message_id: string;
|
|
917
|
+
model_selection?: AgentModelReceipt;
|
|
864
918
|
thread_id: string;
|
|
865
919
|
};
|
|
866
920
|
/**
|
|
@@ -881,7 +935,7 @@ export type AgentTurnRefusal = {
|
|
|
881
935
|
reason?: string;
|
|
882
936
|
};
|
|
883
937
|
/**
|
|
884
|
-
* Usage of a completed turn, as carried on agent_message_done. Mirrors `$defs.agent_message_done.data.usage` in services/agent/api/agent_events.schema.json; TestMessageDoneFrameMatchesContract holds the two definitions to the same fields and constraints. charge_micro_usd appears only when the server durably captured priced billing for at least one round. It is the exact charge in millionths of a US dollar; clients convert that denomination to catalog credits for display and must not read its absence as a zero charge.
|
|
938
|
+
* Usage of a completed turn, as carried on agent_message_done. Mirrors `$defs.agent_message_done.data.usage` in services/agent/api/agent_events.schema.json; TestMessageDoneFrameMatchesContract holds the two definitions to the same fields and constraints. charge_micro_usd appears only when the server durably captured priced billing for at least one round. It is the exact charge in millionths of a US dollar; clients convert that denomination to catalog credits for display and must not read its absence as a zero charge. On a local-agent turn it is the proxy-reported lower bound, and priced_rounds / unpriced_rounds count the rounds that did and did not report a price.
|
|
885
939
|
*/
|
|
886
940
|
export type AgentTurnUsage = {
|
|
887
941
|
cache_creation_input_tokens: number;
|
|
@@ -889,7 +943,9 @@ export type AgentTurnUsage = {
|
|
|
889
943
|
charge_micro_usd?: number;
|
|
890
944
|
input_tokens: number;
|
|
891
945
|
output_tokens: number;
|
|
946
|
+
priced_rounds?: number;
|
|
892
947
|
total_tokens: number;
|
|
948
|
+
unpriced_rounds?: number;
|
|
893
949
|
};
|
|
894
950
|
export type AgentUsageStatusResponse = {
|
|
895
951
|
/**
|
|
@@ -1398,6 +1454,14 @@ export type AutoReloadSettingsRequest = {
|
|
|
1398
1454
|
target_credits?: number;
|
|
1399
1455
|
threshold_credits: number;
|
|
1400
1456
|
};
|
|
1457
|
+
/**
|
|
1458
|
+
* Did auto top-up turn on with a purchase sent with auto_top_up; absent otherwise, so absence is not "off". pending: payment or activation has not finished; keep polling. on: on with auto_top_up's settings. failed: payment and credits stand but auto top-up did not turn on; send the owner to set it up in Billing. not_attempted: the payment did not succeed (or the checkout expired). Not the current status; read GET /api/billing/auto-reload.
|
|
1459
|
+
*/
|
|
1460
|
+
export type AutoTopUpActivation = 'pending' | 'on' | 'failed' | 'not_attempted';
|
|
1461
|
+
/**
|
|
1462
|
+
* Only when auto_top_up_activation is failed. An auto_top_up_setup reason (GET /api/billing/capabilities) or activation_error. For support and analytics, not copy.
|
|
1463
|
+
*/
|
|
1464
|
+
export type AutoTopUpActivationReason = string;
|
|
1401
1465
|
/**
|
|
1402
1466
|
* Read-only auto top-up display for non-owner workspace members. Omitted when unavailable, hidden, or unsupported by an older server; keep the member discoverability notice as the fallback. Never grants management access and contains no limit amounts, spending or payment details.
|
|
1403
1467
|
*/
|
|
@@ -1424,8 +1488,8 @@ export type AutoTopUpMemberView = {
|
|
|
1424
1488
|
* means setup is not available. Owner read/disable authority remains separate.
|
|
1425
1489
|
* These states do not determine surface visibility. Unified billing settings
|
|
1426
1490
|
* show the auto top-up card only when capabilities.can_view_auto_top_up is
|
|
1427
|
-
* true
|
|
1428
|
-
*
|
|
1491
|
+
* true. Paused or payment-failed billing hides it; the manual-purchase
|
|
1492
|
+
* switch does not.
|
|
1429
1493
|
* Ready does not authorize a charge or guarantee an off-session payment method.
|
|
1430
1494
|
* This fact ignores saved consent and monthly budget. An absent fact is unknown.
|
|
1431
1495
|
*
|
|
@@ -1879,13 +1943,16 @@ export type BillingCapabilities = {
|
|
|
1879
1943
|
can_upgrade: boolean;
|
|
1880
1944
|
/**
|
|
1881
1945
|
* - Answers: should the client show the owner auto top-up card?
|
|
1882
|
-
* - True:
|
|
1883
|
-
*
|
|
1946
|
+
* - True: owner management authority and top-up eligibility, except
|
|
1947
|
+
* that stopped manual purchases do not hide this card. Paused and
|
|
1948
|
+
* past-due billing still hide it. Render this fact as received.
|
|
1884
1949
|
* - False: denied_reasons.can_view_auto_top_up names the first refusal,
|
|
1885
|
-
* the can_manage_auto_top_up reason before the can_top_up reason
|
|
1950
|
+
* the can_manage_auto_top_up reason before the can_top_up reason,
|
|
1951
|
+
* excluding topup_purchases_paused.
|
|
1886
1952
|
* - When billing-api omits this field, ingest serves
|
|
1887
1953
|
* can_manage_auto_top_up and can_top_up as served here, and takes the
|
|
1888
|
-
* reason from their denied_reasons in the same order.
|
|
1954
|
+
* reason from their denied_reasons in the same order. This fallback
|
|
1955
|
+
* stays closed whenever can_top_up is false.
|
|
1889
1956
|
* - Not: authorization to enable, edit or charge auto top-up, and not
|
|
1890
1957
|
* setup readiness, which auto_top_up_setup reports. auto_top_up_enabled
|
|
1891
1958
|
* still gates the rollout.
|
|
@@ -1896,9 +1963,9 @@ export type BillingCapabilities = {
|
|
|
1896
1963
|
* - Answers: should the client show the member auto top-up notice that
|
|
1897
1964
|
* sends a non-owner to a workspace owner?
|
|
1898
1965
|
* - True: the actor is a member but not an owner, and the workspace
|
|
1899
|
-
* passes
|
|
1900
|
-
*
|
|
1901
|
-
*
|
|
1966
|
+
* passes workspace eligibility checks other than stopped manual
|
|
1967
|
+
* purchases. Paused and past-due billing still hide it.
|
|
1968
|
+
* Render it as received; never derive
|
|
1902
1969
|
* it from can_top_up, can_manage_auto_top_up or their reasons.
|
|
1903
1970
|
* - False: denied_reasons.can_view_auto_top_up_member_notice names the
|
|
1904
1971
|
* first refusal.
|
|
@@ -1956,6 +2023,30 @@ export type BillingCapabilitiesResponse = {
|
|
|
1956
2023
|
*
|
|
1957
2024
|
*/
|
|
1958
2025
|
billing_notice_audience?: 'none' | 'team' | 'personal';
|
|
2026
|
+
/**
|
|
2027
|
+
* Which checkout UI billing-web renders for this user: the
|
|
2028
|
+
* billing_web_checkout_ui rollout flag, evaluated by ingest the same
|
|
2029
|
+
* way GET /api/features evaluates it. Any evaluation failure reads as
|
|
2030
|
+
* embedded. It lets a caller that cannot read /api/features, such as
|
|
2031
|
+
* a billing handoff's scoped session, render the same checkout.
|
|
2032
|
+
*
|
|
2033
|
+
*/
|
|
2034
|
+
billing_web_checkout_ui: 'embedded' | 'full_page';
|
|
2035
|
+
/**
|
|
2036
|
+
* Whether a cancel requested now ends the plan today instead of at the
|
|
2037
|
+
* end of the billing period. True only when can_cancel is true, the
|
|
2038
|
+
* workspace payment state is payment_failed or paused, and the provider
|
|
2039
|
+
* confirms its bound live Stripe subscription is past_due or unpaid: the
|
|
2040
|
+
* cancel then ends it immediately, stops payment retries, and bills no
|
|
2041
|
+
* unpaid period. False when can_cancel is false or the cancel is
|
|
2042
|
+
* scheduled for period end, including a provider-paused subscription.
|
|
2043
|
+
* No denied_reasons key explains it. Absent when the live binding or
|
|
2044
|
+
* provider state cannot be verified, on older servers, or when billing
|
|
2045
|
+
* is disabled; absence means unknown. Not authorization: the cancel
|
|
2046
|
+
* route rechecks the provider and its cancel_at is the result.
|
|
2047
|
+
*
|
|
2048
|
+
*/
|
|
2049
|
+
cancel_takes_effect_immediately?: boolean;
|
|
1959
2050
|
capabilities: BillingCapabilities;
|
|
1960
2051
|
denied_reason_params?: BillingCapabilityDenialParams;
|
|
1961
2052
|
denied_reasons?: BillingCapabilityDenials;
|
|
@@ -2010,6 +2101,26 @@ export type BillingCapabilitiesResponse = {
|
|
|
2010
2101
|
*
|
|
2011
2102
|
*/
|
|
2012
2103
|
plan_kind?: 'none' | 'self_serve' | 'sales_managed';
|
|
2104
|
+
/**
|
|
2105
|
+
* The single billing action for this actor in the Cloud profile menu's
|
|
2106
|
+
* credits row. Render as received, not derived from other capabilities.
|
|
2107
|
+
* Members and unknown subscription/payment-recovery state receive none.
|
|
2108
|
+
* Enterprise owners receive only permitted Add credits, including on
|
|
2109
|
+
* reserved rows. Reserved self-serve signup rows receive none; use
|
|
2110
|
+
* subscription_payment_recovery on plans for their Finish payment.
|
|
2111
|
+
* For other eligible owners, verified payment recovery wins, then
|
|
2112
|
+
* Subscribe/Resubscribe without a running paid plan, then Add credits
|
|
2113
|
+
* for a running paid plan (even with zero credits), then permitted
|
|
2114
|
+
* Resubscribe for an ending plan. FREE uses Subscribe, not Resubscribe.
|
|
2115
|
+
* A no-plan Subscribe refusal never falls back to Add credits.
|
|
2116
|
+
* This is not global top-up eligibility, other surfaces' button emphasis
|
|
2117
|
+
* or write authorization. can_top_up still permits purchases without
|
|
2118
|
+
* a plan; local clients retain existing guidance. Older servers and
|
|
2119
|
+
* disabled billing omit the field. Absent, invalid or failed reads
|
|
2120
|
+
* must show no row action.
|
|
2121
|
+
*
|
|
2122
|
+
*/
|
|
2123
|
+
primary_billing_action?: 'update_payment' | 'subscribe' | 'resubscribe' | 'add_credits' | 'none';
|
|
2013
2124
|
/**
|
|
2014
2125
|
* Where the customer goes when the plan has ended. Rendered as received;
|
|
2015
2126
|
* never derive it from tier names or slugs.
|
|
@@ -2460,7 +2571,7 @@ export type BillingCapabilityDenials = {
|
|
|
2460
2571
|
* - payment_past_due: The failed subscription payment must be resolved before credits can be bought.
|
|
2461
2572
|
* - tier_not_self_serve: The existing subscription tier is unrecognized.
|
|
2462
2573
|
* - subscription_status_unrecognized: The subscription status is unrecognized.
|
|
2463
|
-
* - topup_purchases_paused:
|
|
2574
|
+
* - topup_purchases_paused: Accepted from older billing servers only; current policy does not emit this visibility refusal.
|
|
2464
2575
|
*
|
|
2465
2576
|
*/
|
|
2466
2577
|
can_view_auto_top_up?: 'not_a_member' | 'not_workspace_owner' | 'creator_only_provisioning' | 'payment_past_due' | 'tier_not_self_serve' | 'subscription_status_unrecognized' | 'topup_purchases_paused';
|
|
@@ -2471,7 +2582,7 @@ export type BillingCapabilityDenials = {
|
|
|
2471
2582
|
* - payment_past_due: The failed subscription payment must be resolved before credits can be bought, including a paused workspace.
|
|
2472
2583
|
* - tier_not_self_serve: The existing subscription tier is unrecognized.
|
|
2473
2584
|
* - subscription_status_unrecognized: The subscription status is unrecognized.
|
|
2474
|
-
* - topup_purchases_paused:
|
|
2585
|
+
* - topup_purchases_paused: Accepted from older billing servers only; current policy does not emit this visibility refusal.
|
|
2475
2586
|
*
|
|
2476
2587
|
*/
|
|
2477
2588
|
can_view_auto_top_up_member_notice?: 'not_a_member' | 'workspace_owner' | 'payment_past_due' | 'tier_not_self_serve' | 'subscription_status_unrecognized' | 'topup_purchases_paused';
|
|
@@ -2616,6 +2727,102 @@ export type BillingEventsResponse = {
|
|
|
2616
2727
|
*/
|
|
2617
2728
|
totalPages: number;
|
|
2618
2729
|
};
|
|
2730
|
+
/**
|
|
2731
|
+
* Asks for a one-time handoff that signs a billing receiver tab in as the caller.
|
|
2732
|
+
*/
|
|
2733
|
+
export type BillingHandoffCreateRequest = {
|
|
2734
|
+
/**
|
|
2735
|
+
* Version of the issuing app, for logs.
|
|
2736
|
+
*/
|
|
2737
|
+
client_version: string;
|
|
2738
|
+
/**
|
|
2739
|
+
* Billing app that will exchange the handoff; its origin is the only one the exchange accepts.
|
|
2740
|
+
*/
|
|
2741
|
+
receiver: 'billing_web' | 'platform';
|
|
2742
|
+
/**
|
|
2743
|
+
* Client-asserted; stages the rollout, not a security boundary.
|
|
2744
|
+
*/
|
|
2745
|
+
surface: 'local_web' | 'desktop';
|
|
2746
|
+
/**
|
|
2747
|
+
* Workspace the handoff and its session are bound to. An OAuth access token may name only its own workspace.
|
|
2748
|
+
*/
|
|
2749
|
+
workspace_id: string;
|
|
2750
|
+
};
|
|
2751
|
+
/**
|
|
2752
|
+
* An issued handoff. The token is single use and expires within 60 seconds.
|
|
2753
|
+
*/
|
|
2754
|
+
export type BillingHandoffCreateResponse = {
|
|
2755
|
+
/**
|
|
2756
|
+
* The receiver's handoff page with the token in the fragment. Open it, never display it.
|
|
2757
|
+
*/
|
|
2758
|
+
entry_url: string;
|
|
2759
|
+
/**
|
|
2760
|
+
* When the handoff can no longer be exchanged.
|
|
2761
|
+
*/
|
|
2762
|
+
expires_at: string;
|
|
2763
|
+
/**
|
|
2764
|
+
* Id of the stored handoff, for support and logs.
|
|
2765
|
+
*/
|
|
2766
|
+
request_id: string;
|
|
2767
|
+
};
|
|
2768
|
+
/**
|
|
2769
|
+
* The handoff token a receiver read from its URL fragment.
|
|
2770
|
+
*/
|
|
2771
|
+
export type BillingHandoffExchangeRequest = {
|
|
2772
|
+
/**
|
|
2773
|
+
* The raw handoff token from the entry URL fragment.
|
|
2774
|
+
*/
|
|
2775
|
+
token: string;
|
|
2776
|
+
};
|
|
2777
|
+
/**
|
|
2778
|
+
* A scoped billing session for the handoff's user and workspace.
|
|
2779
|
+
*/
|
|
2780
|
+
export type BillingHandoffExchangeResponse = {
|
|
2781
|
+
/**
|
|
2782
|
+
* When the session ends; it is never extended. At most 30 minutes, and never after the source sign-in expires.
|
|
2783
|
+
*/
|
|
2784
|
+
expires_at: string;
|
|
2785
|
+
/**
|
|
2786
|
+
* The user's role in the workspace at exchange time.
|
|
2787
|
+
*/
|
|
2788
|
+
role: 'owner' | 'member';
|
|
2789
|
+
/**
|
|
2790
|
+
* Bearer for billing routes of the bound workspace only.
|
|
2791
|
+
*/
|
|
2792
|
+
session_token: string;
|
|
2793
|
+
user: BillingHandoffUser;
|
|
2794
|
+
workspace: BillingHandoffWorkspace;
|
|
2795
|
+
};
|
|
2796
|
+
/**
|
|
2797
|
+
* The user a scoped billing session acts as.
|
|
2798
|
+
*/
|
|
2799
|
+
export type BillingHandoffUser = {
|
|
2800
|
+
/**
|
|
2801
|
+
* The user's email address.
|
|
2802
|
+
*/
|
|
2803
|
+
email: string;
|
|
2804
|
+
/**
|
|
2805
|
+
* Comfy user id.
|
|
2806
|
+
*/
|
|
2807
|
+
id: string;
|
|
2808
|
+
};
|
|
2809
|
+
/**
|
|
2810
|
+
* The workspace a scoped billing session is bound to.
|
|
2811
|
+
*/
|
|
2812
|
+
export type BillingHandoffWorkspace = {
|
|
2813
|
+
/**
|
|
2814
|
+
* Workspace id.
|
|
2815
|
+
*/
|
|
2816
|
+
id: string;
|
|
2817
|
+
/**
|
|
2818
|
+
* Workspace display name.
|
|
2819
|
+
*/
|
|
2820
|
+
name: string;
|
|
2821
|
+
/**
|
|
2822
|
+
* Workspace type, personal or team.
|
|
2823
|
+
*/
|
|
2824
|
+
type: string;
|
|
2825
|
+
};
|
|
2619
2826
|
export type BillingOpCancelResponse = {
|
|
2620
2827
|
billing_op_id: string;
|
|
2621
2828
|
/**
|
|
@@ -2766,6 +2973,9 @@ export type BillingOpStatusResponse = {
|
|
|
2766
2973
|
*
|
|
2767
2974
|
*/
|
|
2768
2975
|
authentication_state?: 'requires_action' | 'processing' | 'failed_retryable' | 'succeeded' | 'reconciliation_needed';
|
|
2976
|
+
auto_top_up?: AcceptedAutoTopUpSettings;
|
|
2977
|
+
auto_top_up_activation?: AutoTopUpActivation;
|
|
2978
|
+
auto_top_up_activation_reason?: AutoTopUpActivationReason;
|
|
2769
2979
|
/**
|
|
2770
2980
|
* true exactly when POST /api/billing/ops/{id}/cancel would deliver
|
|
2771
2981
|
* the abandon for this caller: a pending plan change or initial
|
|
@@ -3005,6 +3215,7 @@ export type BillingStatusResponse = {
|
|
|
3005
3215
|
[key: string]: boolean;
|
|
3006
3216
|
};
|
|
3007
3217
|
subscription_duration?: SubscriptionDuration;
|
|
3218
|
+
subscription_payment_recovery?: SubscriptionPaymentRecovery;
|
|
3008
3219
|
/**
|
|
3009
3220
|
* 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.
|
|
3010
3221
|
*/
|
|
@@ -3044,10 +3255,116 @@ export type BulkRevokeApiKeysResponse = {
|
|
|
3044
3255
|
*/
|
|
3045
3256
|
revoked_count: number;
|
|
3046
3257
|
};
|
|
3258
|
+
export type CccActivityItem = {
|
|
3259
|
+
/**
|
|
3260
|
+
* Account ID of the person who saved, published, discarded or reverted
|
|
3261
|
+
*/
|
|
3262
|
+
actor_uid: string;
|
|
3263
|
+
at: string;
|
|
3264
|
+
/**
|
|
3265
|
+
* save only; status of the catalog revision that holds the save
|
|
3266
|
+
*/
|
|
3267
|
+
catalog_status?: 'draft' | 'published' | 'reverted' | 'archived';
|
|
3268
|
+
/**
|
|
3269
|
+
* save only
|
|
3270
|
+
*/
|
|
3271
|
+
changed_fields?: Array<string>;
|
|
3272
|
+
/**
|
|
3273
|
+
* publish only
|
|
3274
|
+
*/
|
|
3275
|
+
file_count?: number;
|
|
3276
|
+
/**
|
|
3277
|
+
* save only; the save archives or removes the page
|
|
3278
|
+
*/
|
|
3279
|
+
is_deleted?: boolean;
|
|
3280
|
+
/**
|
|
3281
|
+
* save only
|
|
3282
|
+
*/
|
|
3283
|
+
is_new?: boolean;
|
|
3284
|
+
kind: 'save' | 'publish' | 'discard' | 'revert';
|
|
3285
|
+
page?: CccActivityPageRef;
|
|
3286
|
+
/**
|
|
3287
|
+
* publish only
|
|
3288
|
+
*/
|
|
3289
|
+
page_count?: number;
|
|
3290
|
+
/**
|
|
3291
|
+
* publish only
|
|
3292
|
+
*/
|
|
3293
|
+
pages?: Array<CccActivityPageRef>;
|
|
3294
|
+
/**
|
|
3295
|
+
* save only; absent for a first save
|
|
3296
|
+
*/
|
|
3297
|
+
previous_revision_uid?: string;
|
|
3298
|
+
/**
|
|
3299
|
+
* publish only; the revision this publication restored, absent when not set
|
|
3300
|
+
*/
|
|
3301
|
+
restored_from?: number;
|
|
3302
|
+
/**
|
|
3303
|
+
* revert only; the publication Live moved back to
|
|
3304
|
+
*/
|
|
3305
|
+
restored_revision?: number;
|
|
3306
|
+
/**
|
|
3307
|
+
* publish only; Live later moved back before this publication
|
|
3308
|
+
*/
|
|
3309
|
+
reverted?: boolean;
|
|
3310
|
+
/**
|
|
3311
|
+
* revert only; the publication taken off Live
|
|
3312
|
+
*/
|
|
3313
|
+
reverted_revision?: number;
|
|
3314
|
+
/**
|
|
3315
|
+
* publish only
|
|
3316
|
+
*/
|
|
3317
|
+
revision?: number;
|
|
3318
|
+
/**
|
|
3319
|
+
* save only
|
|
3320
|
+
*/
|
|
3321
|
+
revision_uid?: string;
|
|
3322
|
+
};
|
|
3323
|
+
export type CccActivityPage = {
|
|
3324
|
+
has_more: boolean;
|
|
3325
|
+
items: Array<CccActivityItem>;
|
|
3326
|
+
/**
|
|
3327
|
+
* Newest publication, ignoring filters; null before any publication
|
|
3328
|
+
*/
|
|
3329
|
+
last_publish: {
|
|
3330
|
+
actor_uid: string;
|
|
3331
|
+
at: string;
|
|
3332
|
+
/**
|
|
3333
|
+
* Live later moved back before this publication
|
|
3334
|
+
*/
|
|
3335
|
+
reverted: boolean;
|
|
3336
|
+
revision: number;
|
|
3337
|
+
} | null;
|
|
3338
|
+
next_cursor?: string;
|
|
3339
|
+
};
|
|
3340
|
+
export type CccActivityPageRef = {
|
|
3341
|
+
/**
|
|
3342
|
+
* Authored page address; empty when not set
|
|
3343
|
+
*/
|
|
3344
|
+
slug: string;
|
|
3345
|
+
/**
|
|
3346
|
+
* Authored title of the save; empty when not set
|
|
3347
|
+
*/
|
|
3348
|
+
title: string;
|
|
3349
|
+
type: 'model' | 'workflow' | 'app';
|
|
3350
|
+
uid: string;
|
|
3351
|
+
};
|
|
3047
3352
|
export type CccAuthoringContext = {
|
|
3048
3353
|
actor_uid: string;
|
|
3354
|
+
/**
|
|
3355
|
+
* Whether this session may enter website administration
|
|
3356
|
+
*/
|
|
3357
|
+
can_access_catalog: boolean;
|
|
3049
3358
|
can_apply: boolean;
|
|
3050
3359
|
can_edit: boolean;
|
|
3360
|
+
/**
|
|
3361
|
+
* Whether this verified interactive session has Catalog Admin status and may manage website users and permissions
|
|
3362
|
+
*/
|
|
3363
|
+
can_manage_users: boolean;
|
|
3364
|
+
/**
|
|
3365
|
+
* Whether this account may use raw Catalog transfer
|
|
3366
|
+
*/
|
|
3367
|
+
can_transfer: boolean;
|
|
3051
3368
|
owner_uid: string;
|
|
3052
3369
|
state: CccCatalogState;
|
|
3053
3370
|
};
|
|
@@ -3094,6 +3411,30 @@ export type CccCreatorsPage = {
|
|
|
3094
3411
|
items: Array<CccCreatorSummary>;
|
|
3095
3412
|
next_cursor?: string;
|
|
3096
3413
|
};
|
|
3414
|
+
/**
|
|
3415
|
+
* One immutable save: the flat CCCJSON read plus the status of the catalog revision that holds it and its save time.
|
|
3416
|
+
*/
|
|
3417
|
+
export type CccHistoryItem = Cccjson & {
|
|
3418
|
+
/**
|
|
3419
|
+
* Status of the catalog revision that holds this save.
|
|
3420
|
+
*/
|
|
3421
|
+
catalog_status: 'draft' | 'published' | 'reverted' | 'archived';
|
|
3422
|
+
/**
|
|
3423
|
+
* RFC3339 UTC save time of this exact edit.
|
|
3424
|
+
*/
|
|
3425
|
+
saved_at: string;
|
|
3426
|
+
};
|
|
3427
|
+
/**
|
|
3428
|
+
* One page of save history, newest edit_sequence first. next_cursor is present only when has_more is true. There is no total.
|
|
3429
|
+
*/
|
|
3430
|
+
export type CccHistoryPage = {
|
|
3431
|
+
has_more: boolean;
|
|
3432
|
+
items: Array<CccHistoryItem>;
|
|
3433
|
+
/**
|
|
3434
|
+
* Opaque cursor bound to this UID; pass it back as cursor.
|
|
3435
|
+
*/
|
|
3436
|
+
next_cursor?: string;
|
|
3437
|
+
};
|
|
3097
3438
|
/**
|
|
3098
3439
|
* Flat type-versioned CCC JSON. Domain schemas (/api/v1/catalog/schemas/{type}/{version}) constrain authored fields. The readOnly properties are server metadata returned by reads; a save may send them back unchanged and they are ignored, never applied. expected_draft_rev and expected_revision_uid are the save concurrency tokens.
|
|
3099
3440
|
*/
|
|
@@ -3133,32 +3474,345 @@ export type Cccjson = {
|
|
|
3133
3474
|
*/
|
|
3134
3475
|
readonly saved_by_uid?: string;
|
|
3135
3476
|
/**
|
|
3136
|
-
* Server-assigned logical resource UID.
|
|
3477
|
+
* Server-assigned logical resource UID.
|
|
3478
|
+
*/
|
|
3479
|
+
readonly uid?: string;
|
|
3480
|
+
[key: string]: unknown;
|
|
3481
|
+
};
|
|
3482
|
+
/**
|
|
3483
|
+
* Current Hub page that replaces an old public URL
|
|
3484
|
+
*/
|
|
3485
|
+
export type CccLegacyTarget = {
|
|
3486
|
+
/**
|
|
3487
|
+
* Website path of the Hub page, for example /hub/workflows/<slug>/
|
|
3488
|
+
*/
|
|
3489
|
+
path: string;
|
|
3490
|
+
/**
|
|
3491
|
+
* Current slug of the record
|
|
3492
|
+
*/
|
|
3493
|
+
slug: string;
|
|
3494
|
+
type: 'workflow' | 'app' | 'model';
|
|
3495
|
+
};
|
|
3496
|
+
export type CccMediaConstraint = {
|
|
3497
|
+
max_bytes?: number;
|
|
3498
|
+
max_height?: number;
|
|
3499
|
+
max_width?: number;
|
|
3500
|
+
mime_type: string;
|
|
3501
|
+
min_bytes?: number;
|
|
3502
|
+
};
|
|
3503
|
+
/**
|
|
3504
|
+
* Matching pages per type. Every filter applies except types.
|
|
3505
|
+
*/
|
|
3506
|
+
export type CccPageCounts = {
|
|
3507
|
+
app: number;
|
|
3508
|
+
model: number;
|
|
3509
|
+
workflow: number;
|
|
3510
|
+
};
|
|
3511
|
+
/**
|
|
3512
|
+
* Display data for the row.
|
|
3513
|
+
*/
|
|
3514
|
+
export type CccPagePresentation = {
|
|
3515
|
+
preview?: CccPagePreview;
|
|
3516
|
+
};
|
|
3517
|
+
/**
|
|
3518
|
+
* Card picture. Absent when the page has none, which is what missing=cover selects.
|
|
3519
|
+
*/
|
|
3520
|
+
export type CccPagePreview = {
|
|
3521
|
+
kind: 'image' | 'video';
|
|
3522
|
+
/**
|
|
3523
|
+
* Path under /api/v1/catalog for staff preview bytes.
|
|
3524
|
+
*/
|
|
3525
|
+
src: string;
|
|
3526
|
+
};
|
|
3527
|
+
/**
|
|
3528
|
+
* One model, workflow or app page at its Draft head.
|
|
3529
|
+
*/
|
|
3530
|
+
export type CccPageRow = {
|
|
3531
|
+
/**
|
|
3532
|
+
* Credited account, not the saver.
|
|
3533
|
+
*/
|
|
3534
|
+
author_uid: string;
|
|
3535
|
+
description: string;
|
|
3536
|
+
/**
|
|
3537
|
+
* Show on the Hub in the Draft head; false when unset.
|
|
3538
|
+
*/
|
|
3539
|
+
enabled: boolean;
|
|
3540
|
+
has_draft_edits: boolean;
|
|
3541
|
+
has_live: boolean;
|
|
3542
|
+
/**
|
|
3543
|
+
* The Draft head start time is later than as_of, so the page is held until then whatever status says. False when no start time is set and for a removed page.
|
|
3544
|
+
*/
|
|
3545
|
+
held_until_start: boolean;
|
|
3546
|
+
/**
|
|
3547
|
+
* Deleted in Draft.
|
|
3548
|
+
*/
|
|
3549
|
+
is_deleted: boolean;
|
|
3550
|
+
/**
|
|
3551
|
+
* The Draft head lists hub in available_surfaces. The website serves only such pages.
|
|
3552
|
+
*/
|
|
3553
|
+
on_hub: boolean;
|
|
3554
|
+
presentation: CccPagePresentation;
|
|
3555
|
+
/**
|
|
3556
|
+
* The Draft head edit.
|
|
3557
|
+
*/
|
|
3558
|
+
revision_uid: string;
|
|
3559
|
+
/**
|
|
3560
|
+
* Save time of the Draft head.
|
|
3561
|
+
*/
|
|
3562
|
+
saved_at: string;
|
|
3563
|
+
/**
|
|
3564
|
+
* Account that saved the Draft head. An account ID, not a display name.
|
|
3565
|
+
*/
|
|
3566
|
+
saved_by_uid: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* Empty when the page has no address yet.
|
|
3569
|
+
*/
|
|
3570
|
+
slug: string;
|
|
3571
|
+
/**
|
|
3572
|
+
* The first that applies, in this order. hidden also covers a page that is not on the hub surface.
|
|
3573
|
+
*/
|
|
3574
|
+
status: 'removed' | 'not_live' | 'unpublished' | 'hidden' | 'scheduled' | 'live';
|
|
3575
|
+
title: string;
|
|
3576
|
+
type: 'model' | 'workflow' | 'app';
|
|
3577
|
+
uid: string;
|
|
3578
|
+
/**
|
|
3579
|
+
* Audience in the Draft head, for example public or staff. status ignores it.
|
|
3580
|
+
*/
|
|
3581
|
+
visibility: string;
|
|
3582
|
+
/**
|
|
3583
|
+
* Draft head start time as RFC3339, or an empty string when unset.
|
|
3584
|
+
*/
|
|
3585
|
+
visible_from: string;
|
|
3586
|
+
};
|
|
3587
|
+
/**
|
|
3588
|
+
* One page of the staff page list.
|
|
3589
|
+
*/
|
|
3590
|
+
export type CccPagesPage = {
|
|
3591
|
+
/**
|
|
3592
|
+
* Time that decides scheduled; continuations keep the first page's value.
|
|
3593
|
+
*/
|
|
3594
|
+
as_of: string;
|
|
3595
|
+
counts: CccPageCounts;
|
|
3596
|
+
has_more: boolean;
|
|
3597
|
+
items: Array<CccPageRow>;
|
|
3598
|
+
/**
|
|
3599
|
+
* Opaque; send it back with the same filters, sort and limit.
|
|
3600
|
+
*/
|
|
3601
|
+
next_cursor?: string;
|
|
3602
|
+
state: CccPagesState;
|
|
3603
|
+
};
|
|
3604
|
+
/**
|
|
3605
|
+
* Live and Draft revisions this page was read from.
|
|
3606
|
+
*/
|
|
3607
|
+
export type CccPagesState = {
|
|
3608
|
+
draft_generation: number;
|
|
3609
|
+
draft_rev: number;
|
|
3610
|
+
live_rev: number;
|
|
3611
|
+
next_rev: number;
|
|
3612
|
+
previous_live_rev: number | null;
|
|
3613
|
+
};
|
|
3614
|
+
export type CccPublicItemsPage = ContentCatalogProjection & {
|
|
3615
|
+
has_more: boolean;
|
|
3616
|
+
/**
|
|
3617
|
+
* Opaque continuation bound to this query and publication identity; omitted on the last page.
|
|
3618
|
+
*/
|
|
3619
|
+
next_cursor?: string;
|
|
3620
|
+
page_size: number;
|
|
3621
|
+
};
|
|
3622
|
+
/**
|
|
3623
|
+
* Holds when field equals equals (a bool or string). if_absent decides when field is absent or null; a value of another shape holds.
|
|
3624
|
+
*/
|
|
3625
|
+
export type CccPublicationCondition = {
|
|
3626
|
+
/**
|
|
3627
|
+
* A boolean or string.
|
|
3628
|
+
*/
|
|
3629
|
+
equals: unknown;
|
|
3630
|
+
field: string;
|
|
3631
|
+
if_absent?: CccPublicationCondition;
|
|
3632
|
+
};
|
|
3633
|
+
/**
|
|
3634
|
+
* One publish-time field rule. Publish enforces required levels, media constraints and resolves_to references; recommended levels are advice only.
|
|
3635
|
+
*/
|
|
3636
|
+
export type CccPublicationRule = {
|
|
3637
|
+
/**
|
|
3638
|
+
* Document paths such as $.title or $.workflow_versions[0].api. A level is met when any one is filled; [*] matches every array index.
|
|
3639
|
+
*/
|
|
3640
|
+
fields: Array<string>;
|
|
3641
|
+
/**
|
|
3642
|
+
* Absent means the rule only constrains a value that is set.
|
|
3643
|
+
*/
|
|
3644
|
+
level?: 'required' | 'recommended';
|
|
3645
|
+
media?: CccMediaConstraint;
|
|
3646
|
+
/**
|
|
3647
|
+
* Display text. Required and media faults return it.
|
|
3648
|
+
*/
|
|
3649
|
+
message: string;
|
|
3650
|
+
/**
|
|
3651
|
+
* Content type a referenced UID must resolve to as enabled public content; "content" means any type.
|
|
3652
|
+
*/
|
|
3653
|
+
resolves_to?: string;
|
|
3654
|
+
/**
|
|
3655
|
+
* Content types the rule applies to; absent means every type.
|
|
3656
|
+
*/
|
|
3657
|
+
types?: Array<'model' | 'workflow' | 'app' | 'template_set'>;
|
|
3658
|
+
when?: CccPublicationCondition;
|
|
3659
|
+
};
|
|
3660
|
+
/**
|
|
3661
|
+
* Every tag on the eligible hub model and workflow pages, most used first
|
|
3662
|
+
*/
|
|
3663
|
+
export type CccSiteTagUsage = {
|
|
3664
|
+
/**
|
|
3665
|
+
* Draft generation, returned for both views
|
|
3666
|
+
*/
|
|
3667
|
+
generation: number;
|
|
3668
|
+
/**
|
|
3669
|
+
* Draft revision for DRAFT, Live revision for LIVE
|
|
3670
|
+
*/
|
|
3671
|
+
revision_id: number;
|
|
3672
|
+
tags: Array<CccSiteTagUsageItem>;
|
|
3673
|
+
};
|
|
3674
|
+
/**
|
|
3675
|
+
* One tag and the number of eligible model and workflow pages that carry it
|
|
3676
|
+
*/
|
|
3677
|
+
export type CccSiteTagUsageItem = {
|
|
3678
|
+
/**
|
|
3679
|
+
* Number of eligible model and workflow pages that carry the tag
|
|
3680
|
+
*/
|
|
3681
|
+
count: number;
|
|
3682
|
+
/**
|
|
3683
|
+
* Tag text with surrounding whitespace trimmed; case is kept
|
|
3684
|
+
*/
|
|
3685
|
+
tag: string;
|
|
3686
|
+
};
|
|
3687
|
+
export type CccStaffPermissions = {
|
|
3688
|
+
account_id: string;
|
|
3689
|
+
/**
|
|
3690
|
+
* Optional HTTPS Catalog profile avatar on permission lists; render an initials icon when absent
|
|
3691
|
+
*/
|
|
3692
|
+
avatar_url?: string;
|
|
3693
|
+
can_edit: boolean;
|
|
3694
|
+
can_manage_users: boolean;
|
|
3695
|
+
can_publish: boolean;
|
|
3696
|
+
can_transfer: boolean;
|
|
3697
|
+
/**
|
|
3698
|
+
* Display-only name on permission lists; empty when no safe name is available; never grants authority
|
|
3699
|
+
*/
|
|
3700
|
+
display_name?: string;
|
|
3701
|
+
updated_at: string;
|
|
3702
|
+
updated_by: string;
|
|
3703
|
+
version: number;
|
|
3704
|
+
};
|
|
3705
|
+
export type CccStagingMediaUse = {
|
|
3706
|
+
/**
|
|
3707
|
+
* True when the pinned version is not the newest file version.
|
|
3708
|
+
*/
|
|
3709
|
+
differs_from_head: boolean;
|
|
3710
|
+
/**
|
|
3711
|
+
* Exact file version the page pins, when it pins one.
|
|
3712
|
+
*/
|
|
3713
|
+
file_version_uid?: string;
|
|
3714
|
+
is_deleted: boolean;
|
|
3715
|
+
mime_type?: string;
|
|
3716
|
+
name?: string;
|
|
3717
|
+
/**
|
|
3718
|
+
* True when the page is the upload's recorded origin (legacy imports only).
|
|
3719
|
+
*/
|
|
3720
|
+
origin: boolean;
|
|
3721
|
+
slug?: string;
|
|
3722
|
+
title: string;
|
|
3723
|
+
type: 'model' | 'workflow' | 'app' | 'template_set';
|
|
3724
|
+
uid: string;
|
|
3725
|
+
};
|
|
3726
|
+
export type CccStagingPresentation = {
|
|
3727
|
+
media_name?: string;
|
|
3728
|
+
preview?: {
|
|
3729
|
+
kind: 'image' | 'video';
|
|
3730
|
+
src: string;
|
|
3731
|
+
};
|
|
3732
|
+
/**
|
|
3733
|
+
* Draft pages that reference this media row.
|
|
3734
|
+
*/
|
|
3735
|
+
uses?: Array<CccStagingMediaUse>;
|
|
3736
|
+
[key: string]: unknown;
|
|
3737
|
+
};
|
|
3738
|
+
export type CccStagingResource = {
|
|
3739
|
+
/**
|
|
3740
|
+
* Credited author at this version; not the saver.
|
|
3741
|
+
*/
|
|
3742
|
+
author_uid: string;
|
|
3743
|
+
/**
|
|
3744
|
+
* Sparse display fields on page and selection rows (title, name, slug, provider, change_id, visible_from, visibility, enabled); the full document on detail rows.
|
|
3745
|
+
*/
|
|
3746
|
+
document: {
|
|
3747
|
+
change_id?: string;
|
|
3748
|
+
enabled?: boolean;
|
|
3749
|
+
name?: string;
|
|
3750
|
+
provider?: string;
|
|
3751
|
+
slug?: string;
|
|
3752
|
+
title?: string;
|
|
3753
|
+
/**
|
|
3754
|
+
* Audience of the page as saved in this change.
|
|
3755
|
+
*/
|
|
3756
|
+
visibility?: string;
|
|
3757
|
+
visible_from?: string;
|
|
3758
|
+
[key: string]: unknown;
|
|
3759
|
+
};
|
|
3760
|
+
is_deleted: boolean;
|
|
3761
|
+
revision_uid: string;
|
|
3762
|
+
/**
|
|
3763
|
+
* Account that saved this exact change. Absent on before rows.
|
|
3137
3764
|
*/
|
|
3138
|
-
|
|
3765
|
+
saved_by_uid?: string;
|
|
3766
|
+
type: 'model' | 'workflow' | 'app' | 'media' | 'template_set';
|
|
3767
|
+
uid: string;
|
|
3139
3768
|
[key: string]: unknown;
|
|
3140
3769
|
};
|
|
3141
3770
|
/**
|
|
3142
|
-
*
|
|
3771
|
+
* Staging read. Page and selection rows are sparse; detail and the legacy read return full content.
|
|
3143
3772
|
*/
|
|
3144
|
-
export type
|
|
3773
|
+
export type CccStagingReview = {
|
|
3774
|
+
items?: Array<CccStagingRow>;
|
|
3775
|
+
representation?: 'page' | 'selection' | 'detail';
|
|
3776
|
+
selection_digest?: string;
|
|
3777
|
+
state?: CccCatalogState;
|
|
3778
|
+
unresolved_count?: number;
|
|
3779
|
+
[key: string]: unknown;
|
|
3780
|
+
};
|
|
3781
|
+
export type CccStagingRow = {
|
|
3782
|
+
before?: CccStagingResource;
|
|
3783
|
+
content: CccStagingResource;
|
|
3784
|
+
decision: 'NEW' | 'APPROVED' | 'DEFERRED' | 'DELETED';
|
|
3785
|
+
presentation?: CccStagingPresentation;
|
|
3145
3786
|
/**
|
|
3146
|
-
*
|
|
3787
|
+
* RFC3339 UTC save time of this exact change.
|
|
3147
3788
|
*/
|
|
3148
|
-
|
|
3789
|
+
saved_at?: string;
|
|
3790
|
+
status: 'NEW' | 'APPROVED' | 'DEFERRED' | 'DELETED';
|
|
3791
|
+
summary: string;
|
|
3792
|
+
[key: string]: unknown;
|
|
3793
|
+
};
|
|
3794
|
+
export type CccTypeSchema = {
|
|
3795
|
+
contract_version: string;
|
|
3796
|
+
environment: string;
|
|
3797
|
+
format: 'openapi-3.0-schema';
|
|
3149
3798
|
/**
|
|
3150
|
-
*
|
|
3799
|
+
* Content types only.
|
|
3151
3800
|
*/
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
};
|
|
3155
|
-
export type CccPublicItemsPage = ContentCatalogProjection & {
|
|
3156
|
-
has_more: boolean;
|
|
3801
|
+
publication?: {
|
|
3802
|
+
rules: Array<CccPublicationRule>;
|
|
3803
|
+
};
|
|
3157
3804
|
/**
|
|
3158
|
-
*
|
|
3805
|
+
* OpenAPI 3.0 schema the save validator applies.
|
|
3159
3806
|
*/
|
|
3160
|
-
|
|
3161
|
-
|
|
3807
|
+
schema: {
|
|
3808
|
+
[key: string]: unknown;
|
|
3809
|
+
};
|
|
3810
|
+
schema_version: number;
|
|
3811
|
+
/**
|
|
3812
|
+
* Content types only. The readOnly CCCJSON properties; a save never applies them.
|
|
3813
|
+
*/
|
|
3814
|
+
server_fields?: Array<string>;
|
|
3815
|
+
type: 'model' | 'workflow' | 'app' | 'template_set' | 'media';
|
|
3162
3816
|
};
|
|
3163
3817
|
export type CccWebsiteCardFacet = {
|
|
3164
3818
|
/**
|
|
@@ -3388,6 +4042,10 @@ export type ContentCatalogRecord = {
|
|
|
3388
4042
|
edit_version: string;
|
|
3389
4043
|
enabled: boolean;
|
|
3390
4044
|
kind: 'MODEL' | 'WORKFLOW' | 'APP' | 'TEMPLATE_SET';
|
|
4045
|
+
/**
|
|
4046
|
+
* When the page's public content last changed: its publication or a later revert. Set on LIVE card reads only.
|
|
4047
|
+
*/
|
|
4048
|
+
last_modified?: string;
|
|
3391
4049
|
/**
|
|
3392
4050
|
* Integer revision supplying this entity; may precede the requested catalog revision.
|
|
3393
4051
|
*/
|
|
@@ -3479,6 +4137,7 @@ export type CreateTopupCheckoutRequest = {
|
|
|
3479
4137
|
*
|
|
3480
4138
|
*/
|
|
3481
4139
|
amount_cents: number;
|
|
4140
|
+
auto_top_up?: TopupAutoTopUpSettings;
|
|
3482
4141
|
/**
|
|
3483
4142
|
* Optional client-provided key. Forwarded to Stripe so a double-submit
|
|
3484
4143
|
* collapses onto one session instead of minting two payable links.
|
|
@@ -3520,7 +4179,7 @@ export type CreateTopupQuoteRequest = {
|
|
|
3520
4179
|
amount_cents: number;
|
|
3521
4180
|
};
|
|
3522
4181
|
/**
|
|
3523
|
-
* Legacy on-file top-up. Explicit payment authority
|
|
4182
|
+
* Legacy on-file top-up. Explicit payment authority, save/default fields and auto_top_up require the dedicated interactive route and are rejected here, including null or false values.
|
|
3524
4183
|
*/
|
|
3525
4184
|
export type CreateTopupRequest = {
|
|
3526
4185
|
/**
|
|
@@ -4072,7 +4731,7 @@ export type ExecutionError = {
|
|
|
4072
4731
|
*/
|
|
4073
4732
|
node_type: string;
|
|
4074
4733
|
/**
|
|
4075
|
-
* Array of traceback lines (empty array if not available)
|
|
4734
|
+
* Array of traceback lines (empty array if not available). In a job's detail (GET /api/jobs/{job_id}) for a failed run on a deployment, read by a member of the job's workspace, the last item may instead hold the end of what the run printed, opening with the line `What this run printed (up to the last 8 KB):`. The jobs list never carries that item.
|
|
4076
4735
|
*/
|
|
4077
4736
|
traceback: Array<string>;
|
|
4078
4737
|
};
|
|
@@ -4373,6 +5032,9 @@ export type HostedTopupCheckout = {
|
|
|
4373
5032
|
* Original credit purchase amount before promotions, not the settled payment amount.
|
|
4374
5033
|
*/
|
|
4375
5034
|
amount_cents: number;
|
|
5035
|
+
auto_top_up?: AcceptedAutoTopUpSettings;
|
|
5036
|
+
auto_top_up_activation?: AutoTopUpActivation;
|
|
5037
|
+
auto_top_up_activation_reason?: AutoTopUpActivationReason;
|
|
4376
5038
|
/**
|
|
4377
5039
|
* Actual USD Stripe total after promotions, including a confirmed fully discounted zero. Null when unavailable; use this for payment messages, not amount_cents.
|
|
4378
5040
|
*/
|
|
@@ -4758,6 +5420,7 @@ export type InteractiveTopupRequest = {
|
|
|
4758
5420
|
* Nominal credit purchase in USD cents, excluding tax and discounts; at most `max_topup_cents` on GET /api/billing/balance. Actual payment and credit grant are asynchronous.
|
|
4759
5421
|
*/
|
|
4760
5422
|
amount_cents: number;
|
|
5423
|
+
auto_top_up?: TopupAutoTopUpSettings;
|
|
4761
5424
|
/**
|
|
4762
5425
|
* Client-minted identifier for one checkout attempt, generated when
|
|
4763
5426
|
* the customer starts checkout and sent on every request and
|
|
@@ -5448,34 +6111,84 @@ export type ModelFolder = {
|
|
|
5448
6111
|
*/
|
|
5449
6112
|
name: string;
|
|
5450
6113
|
};
|
|
6114
|
+
/**
|
|
6115
|
+
* Optional client observations. Invalid values are discarded without refusing the upload.
|
|
6116
|
+
* Unknown or absent client becomes unknown. Missing resumed stays unknown; choosing resumable mode
|
|
6117
|
+
* does not mean recovery. Start ignores resumed. Older servers ignore this entire object.
|
|
6118
|
+
*
|
|
6119
|
+
*/
|
|
6120
|
+
export type ModelUploadAnalytics = {
|
|
6121
|
+
/**
|
|
6122
|
+
* editor, comfy_cli or platform; other values normalize to unknown.
|
|
6123
|
+
*/
|
|
6124
|
+
client?: string;
|
|
6125
|
+
/**
|
|
6126
|
+
* True only after recovery continued from a nonzero stored offset; false for an observed fresh transfer. Omit when unknown.
|
|
6127
|
+
*/
|
|
6128
|
+
resumed?: boolean;
|
|
6129
|
+
};
|
|
5451
6130
|
/**
|
|
5452
6131
|
* Where and how the browser sends a model file's bytes (POST /api/assets/uploads).
|
|
5453
6132
|
*/
|
|
5454
6133
|
export type ModelUploadStarted = {
|
|
5455
6134
|
/**
|
|
5456
|
-
*
|
|
6135
|
+
* Suggested piece size, 67108864 (64 MiB), only for resumable sessions. The last piece may be shorter.
|
|
6136
|
+
*/
|
|
6137
|
+
chunk_size_bytes?: number;
|
|
6138
|
+
/**
|
|
6139
|
+
* When `upload_url` stops working (15 minutes for a signed URL, seven days for a resumable session).
|
|
5457
6140
|
*/
|
|
5458
6141
|
expires_at: string;
|
|
5459
6142
|
/**
|
|
5460
|
-
*
|
|
6143
|
+
* Empty for a resumable session, whose pieces send `Content-Range`. Otherwise every header the PUT must send, with exactly these values (`Content-Type`, `x-goog-content-length-range` and `x-goog-if-generation-match` set to `0`, which makes storage refuse a second write to the object).
|
|
5461
6144
|
*/
|
|
5462
6145
|
headers: {
|
|
5463
6146
|
[key: string]: string;
|
|
5464
6147
|
};
|
|
5465
6148
|
/**
|
|
5466
|
-
* The largest file
|
|
6149
|
+
* The largest file the answered mode accepts, 2147483648 (2 GiB) or 26843545600 (25 GiB).
|
|
5467
6150
|
*/
|
|
5468
6151
|
max_size_bytes: number;
|
|
5469
6152
|
method: 'PUT';
|
|
6153
|
+
/**
|
|
6154
|
+
* Version 1 accepts optional metadata and terminal client reports. Absence means unsupported.
|
|
6155
|
+
*/
|
|
6156
|
+
upload_analytics_version?: number;
|
|
5470
6157
|
/**
|
|
5471
6158
|
* Names this upload in `POST /api/assets/uploads/{upload_id}/complete`.
|
|
5472
6159
|
*/
|
|
5473
6160
|
upload_id: string;
|
|
5474
6161
|
/**
|
|
5475
|
-
*
|
|
6162
|
+
* Present only for a resumable session. Clients must tolerate unknown values and refuse unsupported modes without sending bytes. When absent, send one PUT with the returned headers.
|
|
6163
|
+
*/
|
|
6164
|
+
upload_mode?: 'resumable';
|
|
6165
|
+
/**
|
|
6166
|
+
* Signed URL or GCS resumable session for exactly one staged object; works until `expires_at`. Treat it as a credential.
|
|
5476
6167
|
*/
|
|
5477
6168
|
upload_url: string;
|
|
5478
6169
|
};
|
|
6170
|
+
export type ModelUploadTransferReport = {
|
|
6171
|
+
/**
|
|
6172
|
+
* editor, comfy_cli or platform; other values normalize to unknown.
|
|
6173
|
+
*/
|
|
6174
|
+
client: string;
|
|
6175
|
+
/**
|
|
6176
|
+
* One folder from model_upload_folders in GET /api/features.
|
|
6177
|
+
*/
|
|
6178
|
+
model_folder: string;
|
|
6179
|
+
/**
|
|
6180
|
+
* Terminal transfer failure; canceled reports a user cancellation.
|
|
6181
|
+
*/
|
|
6182
|
+
reason: 'network' | 'http' | 'session_expired' | 'file_changed' | 'file_unreadable' | 'canceled' | 'unknown';
|
|
6183
|
+
/**
|
|
6184
|
+
* Actual recovery from a nonzero stored offset; omit when unknown.
|
|
6185
|
+
*/
|
|
6186
|
+
resumed?: boolean;
|
|
6187
|
+
/**
|
|
6188
|
+
* Client-reported file size.
|
|
6189
|
+
*/
|
|
6190
|
+
size_bytes: number;
|
|
6191
|
+
};
|
|
5479
6192
|
/**
|
|
5480
6193
|
* The next charge to the card on file, as Stripe's invoice preview reported it, after proration, discounts, tax and account credit.
|
|
5481
6194
|
*/
|
|
@@ -5969,6 +6682,10 @@ export type Plan = {
|
|
|
5969
6682
|
credits_cents: number;
|
|
5970
6683
|
denied_reason?: PlanActionDeniedReason;
|
|
5971
6684
|
denied_reason_params?: PlanActionDeniedReasonParams;
|
|
6685
|
+
/**
|
|
6686
|
+
* Display-only whole percentage saved by this personal annual offer against list_price_cents, rounded down from 100 * (list_price_cents - price_cents) / list_price_cents. Present together with list_price_cents only when the rounded saving is at least 1%; clients render this value instead of deriving it.
|
|
6687
|
+
*/
|
|
6688
|
+
discount_percent?: number;
|
|
5972
6689
|
duration: SubscriptionDuration;
|
|
5973
6690
|
/**
|
|
5974
6691
|
* Optional ordered localization companion selected by the server. Only available items appear in the existing features strings; coming-soon items remain separate. Key is a stable semantic identifier, not a client locale path. Clients map known keys to translations and may use text as an English fallback according to their locale policy. Unknown keys never imply entitlements. Omitted for older string-only metadata. Team count uses the resolved max_seats.
|
|
@@ -5978,6 +6695,10 @@ export type Plan = {
|
|
|
5978
6695
|
* Optional ordered English feature copy for this offer, for display only. Omitted when metadata is unavailable. Team member count uses max_seats. Does not grant entitlements or change plan actions or availability.
|
|
5979
6696
|
*/
|
|
5980
6697
|
features?: Array<string>;
|
|
6698
|
+
/**
|
|
6699
|
+
* Display-only yearly total of the matching personal monthly offer (its served price_cents multiplied by 12). Present together with discount_percent only for priced Standard, Creator and Pro annual offers with at least a 1% saving. Omitted for monthly offers, missing monthly counterparts, unpriced annual offers and smaller or no savings. Not an invoice quote.
|
|
6700
|
+
*/
|
|
6701
|
+
list_price_cents?: number;
|
|
5981
6702
|
/**
|
|
5982
6703
|
* Maximum number of seats allowed for this plan
|
|
5983
6704
|
*/
|
|
@@ -6185,6 +6906,16 @@ export type PreviewSubscribeResponse = {
|
|
|
6185
6906
|
*
|
|
6186
6907
|
*/
|
|
6187
6908
|
balance_applied_cents?: number;
|
|
6909
|
+
/**
|
|
6910
|
+
* The date the current subscription is set to end because a
|
|
6911
|
+
* cancellation is scheduled. Present only when a cancellation is
|
|
6912
|
+
* scheduled, which is exactly when requires_reactivation_confirmation
|
|
6913
|
+
* is true. Use this, not current_plan.period_end, for the
|
|
6914
|
+
* reactivation banner: period_end is the provider's billing-period
|
|
6915
|
+
* boundary and can differ from a mid-period cancellation date.
|
|
6916
|
+
*
|
|
6917
|
+
*/
|
|
6918
|
+
cancel_at?: string;
|
|
6188
6919
|
/**
|
|
6189
6920
|
* Amount that will be charged at next billing period in cents
|
|
6190
6921
|
*/
|
|
@@ -6313,9 +7044,10 @@ export type PreviewSubscribeResponse = {
|
|
|
6313
7044
|
requires_reactivation_charge_confirmation?: boolean;
|
|
6314
7045
|
/**
|
|
6315
7046
|
* Whether this previewed change requires explicit reactivation
|
|
6316
|
-
* consent.
|
|
6317
|
-
*
|
|
6318
|
-
*
|
|
7047
|
+
* consent. Present on every successful preview, with or without
|
|
7048
|
+
* embedded checkout. Computed from the persisted subscription and a
|
|
7049
|
+
* short-lived cache of Stripe lifecycle state. The subscribe
|
|
7050
|
+
* enforcement path performs its own uncached Stripe lifecycle read.
|
|
6319
7051
|
*
|
|
6320
7052
|
*/
|
|
6321
7053
|
requires_reactivation_confirmation?: boolean;
|
|
@@ -7453,6 +8185,27 @@ export type TopUpPurchaseAmount = {
|
|
|
7453
8185
|
amount_cents: number;
|
|
7454
8186
|
currency: 'usd';
|
|
7455
8187
|
};
|
|
8188
|
+
/**
|
|
8189
|
+
* Turns auto top-up on after this purchase's payment succeeds; the server does it, so never follow with PUT /api/billing/auto-reload. Absent leaves auto top-up unchanged. Owner who may manage auto top-up only. Hosted checkout shows a $0.00 "Auto top-up" line and consent covering future top-ups.
|
|
8190
|
+
* PUT /api/billing/auto-reload's enabled-save rules apply before anything is charged (400 INVALID_AUTO_TOP_UP); 400 AUTO_TOP_UP_NOT_ELIGIBLE when setup is unavailable or frozen except for a missing default card; 400 AUTO_TOP_UP_NOT_AVAILABLE when first enrollment is outside the rollout.
|
|
8191
|
+
* Auto top-up charges the default card. With none, the paid card is saved off-session and becomes the default; an existing default is kept and a new card is not saved. On the interactive route a new card's confirmation token must use setup_future_usage off_session exactly when there is no default card.
|
|
8192
|
+
* A replay with other settings is refused. The outcome is auto_top_up_activation on the checkout read (hosted) or GET /api/billing/ops/{id} (interactive).
|
|
8193
|
+
*
|
|
8194
|
+
*/
|
|
8195
|
+
export type TopupAutoTopUpSettings = {
|
|
8196
|
+
/**
|
|
8197
|
+
* Owner monthly limit in USD cents. Absent or null means no owner limit and is stored as max_monthly_budget_cents, with monthly_budget_is_default true.
|
|
8198
|
+
*/
|
|
8199
|
+
monthly_budget_cents?: number | null;
|
|
8200
|
+
/**
|
|
8201
|
+
* The balance each auto top-up buys back up to.
|
|
8202
|
+
*/
|
|
8203
|
+
target_credits: number;
|
|
8204
|
+
/**
|
|
8205
|
+
* Auto top-up runs when the balance drops below this many credits.
|
|
8206
|
+
*/
|
|
8207
|
+
threshold_credits: number;
|
|
8208
|
+
};
|
|
7456
8209
|
/**
|
|
7457
8210
|
* What a credit top-up of the requested amount would grant.
|
|
7458
8211
|
*/
|
|
@@ -7893,6 +8646,23 @@ export type WorkflowResponse = {
|
|
|
7893
8646
|
name?: string;
|
|
7894
8647
|
updated_at: string;
|
|
7895
8648
|
};
|
|
8649
|
+
/**
|
|
8650
|
+
* The sidebar file a workflow was copied from, when the two agree. No content and no userdata id: open the path through the userdata API.
|
|
8651
|
+
*/
|
|
8652
|
+
export type WorkflowSidebarFileResponse = {
|
|
8653
|
+
/**
|
|
8654
|
+
* UNIX timestamp of the last modification in milliseconds, the same unit as GET /api/userdata?full_info=true.
|
|
8655
|
+
*/
|
|
8656
|
+
modified: number;
|
|
8657
|
+
/**
|
|
8658
|
+
* The userdata path, `workflows/<name>.json`.
|
|
8659
|
+
*/
|
|
8660
|
+
path: string;
|
|
8661
|
+
/**
|
|
8662
|
+
* File size in bytes.
|
|
8663
|
+
*/
|
|
8664
|
+
size: number;
|
|
8665
|
+
};
|
|
7896
8666
|
/**
|
|
7897
8667
|
* Workflow metadata captured at mint time. The subsequent PUT body is the
|
|
7898
8668
|
* raw workflow JSON document and nothing else, so everything that would
|
|
@@ -8255,6 +9025,30 @@ export type AssetCreatedWritable = AssetWritable & {
|
|
|
8255
9025
|
*/
|
|
8256
9026
|
created_new: boolean;
|
|
8257
9027
|
};
|
|
9028
|
+
/**
|
|
9029
|
+
* One immutable save: the flat CCCJSON read plus the status of the catalog revision that holds it and its save time.
|
|
9030
|
+
*/
|
|
9031
|
+
export type CccHistoryItemWritable = {
|
|
9032
|
+
/**
|
|
9033
|
+
* Status of the catalog revision that holds this save.
|
|
9034
|
+
*/
|
|
9035
|
+
catalog_status: 'draft' | 'published' | 'reverted' | 'archived';
|
|
9036
|
+
/**
|
|
9037
|
+
* RFC3339 UTC save time of this exact edit.
|
|
9038
|
+
*/
|
|
9039
|
+
saved_at: string;
|
|
9040
|
+
};
|
|
9041
|
+
/**
|
|
9042
|
+
* One page of save history, newest edit_sequence first. next_cursor is present only when has_more is true. There is no total.
|
|
9043
|
+
*/
|
|
9044
|
+
export type CccHistoryPageWritable = {
|
|
9045
|
+
has_more: boolean;
|
|
9046
|
+
items: Array<CccHistoryItemWritable>;
|
|
9047
|
+
/**
|
|
9048
|
+
* Opaque cursor bound to this UID; pass it back as cursor.
|
|
9049
|
+
*/
|
|
9050
|
+
next_cursor?: string;
|
|
9051
|
+
};
|
|
8258
9052
|
/**
|
|
8259
9053
|
* Paginated list of assets belonging to the authenticated user.
|
|
8260
9054
|
*/
|
|
@@ -8520,6 +9314,75 @@ export type GetAgentEventsErrors = {
|
|
|
8520
9314
|
404: unknown;
|
|
8521
9315
|
};
|
|
8522
9316
|
export type GetAgentEventsError = GetAgentEventsErrors[keyof GetAgentEventsErrors];
|
|
9317
|
+
export type AgentGetExecutionsData = {
|
|
9318
|
+
body?: never;
|
|
9319
|
+
path?: never;
|
|
9320
|
+
query?: {
|
|
9321
|
+
/**
|
|
9322
|
+
* Thread UUID; required together with message_id
|
|
9323
|
+
*/
|
|
9324
|
+
thread_id?: string;
|
|
9325
|
+
/**
|
|
9326
|
+
* Exact assistant message UUID; required together with thread_id
|
|
9327
|
+
*/
|
|
9328
|
+
message_id?: string;
|
|
9329
|
+
};
|
|
9330
|
+
url: '/api/agent/executions';
|
|
9331
|
+
};
|
|
9332
|
+
export type AgentGetExecutionsErrors = {
|
|
9333
|
+
/**
|
|
9334
|
+
* Both identifiers must be supplied as UUIDs, or session workspace selection refused (workspace_id_invalid)
|
|
9335
|
+
*/
|
|
9336
|
+
400: ErrorResponse | AgentError;
|
|
9337
|
+
/**
|
|
9338
|
+
* Authentication required; ingest uses ErrorResponse and the agent identity guard uses AgentError
|
|
9339
|
+
*/
|
|
9340
|
+
401: ErrorResponse | AgentError;
|
|
9341
|
+
/**
|
|
9342
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
9343
|
+
*/
|
|
9344
|
+
403: ForbiddenError;
|
|
9345
|
+
/**
|
|
9346
|
+
* Assistant message not found in the caller's thread and workspace
|
|
9347
|
+
*/
|
|
9348
|
+
404: unknown;
|
|
9349
|
+
/**
|
|
9350
|
+
* Observation unavailable; must not be interpreted as an empty set
|
|
9351
|
+
*/
|
|
9352
|
+
500: unknown;
|
|
9353
|
+
/**
|
|
9354
|
+
* Agent service unavailable
|
|
9355
|
+
*/
|
|
9356
|
+
502: unknown;
|
|
9357
|
+
/**
|
|
9358
|
+
* Execution observation unavailable
|
|
9359
|
+
*/
|
|
9360
|
+
503: unknown;
|
|
9361
|
+
};
|
|
9362
|
+
export type AgentGetExecutionsError = AgentGetExecutionsErrors[keyof AgentGetExecutionsErrors];
|
|
9363
|
+
export type AgentGetExecutionsResponses = {
|
|
9364
|
+
/**
|
|
9365
|
+
* Contract probe or the complete uncapped submission snapshot
|
|
9366
|
+
*/
|
|
9367
|
+
200: {
|
|
9368
|
+
complete?: boolean;
|
|
9369
|
+
executions?: Array<{
|
|
9370
|
+
job_id: string;
|
|
9371
|
+
paid: boolean | null;
|
|
9372
|
+
partner: boolean | null;
|
|
9373
|
+
/**
|
|
9374
|
+
* Raw jobs state, including error, cancelled and executing; unknown if unavailable
|
|
9375
|
+
*/
|
|
9376
|
+
status: string;
|
|
9377
|
+
submitted_at: string;
|
|
9378
|
+
}>;
|
|
9379
|
+
message_id?: string;
|
|
9380
|
+
schema_version: 'agent-executions.v1';
|
|
9381
|
+
thread_id?: string;
|
|
9382
|
+
turn_id?: string;
|
|
9383
|
+
};
|
|
9384
|
+
};
|
|
9385
|
+
export type AgentGetExecutionsResponse = AgentGetExecutionsResponses[keyof AgentGetExecutionsResponses];
|
|
8523
9386
|
export type AgentGetIdentityData = {
|
|
8524
9387
|
body?: never;
|
|
8525
9388
|
path?: never;
|
|
@@ -9224,9 +10087,9 @@ export type AgentPostMessageErrors = {
|
|
|
9224
10087
|
*/
|
|
9225
10088
|
403: ErrorResponse | AgentError;
|
|
9226
10089
|
/**
|
|
9227
|
-
*
|
|
10090
|
+
* 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.
|
|
9228
10091
|
*/
|
|
9229
|
-
422: AgentAttachmentError;
|
|
10092
|
+
422: AgentAttachmentError | AgentModelUnavailable;
|
|
9230
10093
|
/**
|
|
9231
10094
|
* Rate limit exceeded: the request was refused before it reached the agent, so nothing ran. The body is a fixed message with no code to branch on.
|
|
9232
10095
|
*/
|
|
@@ -9932,11 +10795,11 @@ export type CreateAssetDownloadErrors = {
|
|
|
9932
10795
|
*/
|
|
9933
10796
|
403: ForbiddenError;
|
|
9934
10797
|
/**
|
|
9935
|
-
* Validation errors
|
|
10798
|
+
* Validation errors, or `CONTENT_BLOCKED` when content moderation has already blocked the file's bytes (no download task is created)
|
|
9936
10799
|
*/
|
|
9937
10800
|
422: ErrorResponse;
|
|
9938
10801
|
/**
|
|
9939
|
-
* Internal server error
|
|
10802
|
+
* Internal server error, including when the content moderation status of the file's bytes could not be read (retriable; no download task is created)
|
|
9940
10803
|
*/
|
|
9941
10804
|
500: ErrorResponse;
|
|
9942
10805
|
/**
|
|
@@ -10111,7 +10974,7 @@ export type CreateAssetFromHashErrors = {
|
|
|
10111
10974
|
*/
|
|
10112
10975
|
422: ErrorResponse;
|
|
10113
10976
|
/**
|
|
10114
|
-
* Internal server error
|
|
10977
|
+
* Internal server error, including when the content moderation status of the file's bytes could not be read (retriable; no asset is created)
|
|
10115
10978
|
*/
|
|
10116
10979
|
500: ErrorResponse;
|
|
10117
10980
|
/**
|
|
@@ -10449,13 +11312,24 @@ export type StartModelUploadData = {
|
|
|
10449
11312
|
*/
|
|
10450
11313
|
filename: string;
|
|
10451
11314
|
/**
|
|
10452
|
-
*
|
|
11315
|
+
* Request a resumable session for uploads up to 25 GiB. Omit or set false for the existing single PUT.
|
|
11316
|
+
*/
|
|
11317
|
+
resumable?: boolean;
|
|
11318
|
+
/**
|
|
11319
|
+
* The file's size, 1 to 2147483648 (2 GiB), or 26843545600 (25 GiB) with `resumable: true`.
|
|
10453
11320
|
*/
|
|
10454
11321
|
size_bytes: number;
|
|
10455
11322
|
/**
|
|
10456
11323
|
* Exactly `models` plus one model folder from `model_upload_folders` in GET /api/features (`loras`, `checkpoints`, `vae`, `embeddings`, ...); another folder is `400 UNSUPPORTED_MODEL_TYPE`.
|
|
10457
11324
|
*/
|
|
10458
11325
|
tags: Array<string>;
|
|
11326
|
+
upload_analytics?: ModelUploadAnalytics;
|
|
11327
|
+
};
|
|
11328
|
+
headers?: {
|
|
11329
|
+
/**
|
|
11330
|
+
* The browser page's HTTPS origin, forwarded when opening a resumable session so its later responses carry CORS headers for that page.
|
|
11331
|
+
*/
|
|
11332
|
+
Origin?: string;
|
|
10459
11333
|
};
|
|
10460
11334
|
path?: never;
|
|
10461
11335
|
query?: never;
|
|
@@ -10463,7 +11337,7 @@ export type StartModelUploadData = {
|
|
|
10463
11337
|
};
|
|
10464
11338
|
export type StartModelUploadErrors = {
|
|
10465
11339
|
/**
|
|
10466
|
-
* `INVALID_BODY` (bad filename, size or tag list), `UNSUPPORTED_FILE_TYPE` (not `.safetensors`: a pickle format such as `.ckpt`, `.pt` or `.bin` can run code when loaded), `UNSUPPORTED_MODEL_TYPE` (`models` plus a folder not in `model_upload_folders` of GET /api/features) or `FILE_TOO_LARGE` (over 2 GiB
|
|
11340
|
+
* `INVALID_BODY` (bad filename, size or tag list), `UNSUPPORTED_FILE_TYPE` (not `.safetensors`: a pickle format such as `.ckpt`, `.pt` or `.bin` can run code when loaded), `UNSUPPORTED_MODEL_TYPE` (`models` plus a folder not in `model_upload_folders` of GET /api/features) or `FILE_TOO_LARGE` (over 2 GiB, or 25 GiB with `resumable`; the message is "Files can be up to 2 GB." or "Files can be up to 25 GB.")
|
|
10467
11341
|
*/
|
|
10468
11342
|
400: ErrorResponse;
|
|
10469
11343
|
/**
|
|
@@ -10471,7 +11345,7 @@ export type StartModelUploadErrors = {
|
|
|
10471
11345
|
*/
|
|
10472
11346
|
401: ErrorResponse;
|
|
10473
11347
|
/**
|
|
10474
|
-
* `FEATURE_DISABLED` when `runtime_library_models_enabled` is off for this workspace, `PRIVATE_MODELS_DISABLED` when the workspace's plan does not include private models (the link import's check), `MODEL_STORAGE_LIMIT_REACHED` when the file would take the workspace's private models past its model storage cap (1 TB unless its plan sets another; the message names the cap, e.g. "Your workspace has used its 1 TB of model storage."), or a refused session write (see `SessionWriteForbidden`)
|
|
11348
|
+
* `FEATURE_DISABLED` when `runtime_library_models_enabled` is off for this workspace, or when `resumable: true` is requested while ingest's deployment switch `MODEL_UPLOAD_RESUMABLE_ENABLED` is off (default false). The error code alone does not identify which gate refused the request. For files up to 2 GiB, callers may retry with `resumable` omitted or false for a single PUT; the library flag and all other upload checks still apply. Other refusals are `PRIVATE_MODELS_DISABLED` when the workspace's plan does not include private models (the link import's check), `MODEL_STORAGE_LIMIT_REACHED` when the file would take the workspace's private models past its model storage cap (1 TB unless its plan sets another; the message names the cap, e.g. "Your workspace has used its 1 TB of model storage."), or a refused session write (see `SessionWriteForbidden`)
|
|
10475
11349
|
*/
|
|
10476
11350
|
403: ErrorResponse;
|
|
10477
11351
|
/**
|
|
@@ -10486,7 +11360,7 @@ export type StartModelUploadErrors = {
|
|
|
10486
11360
|
export type StartModelUploadError = StartModelUploadErrors[keyof StartModelUploadErrors];
|
|
10487
11361
|
export type StartModelUploadResponses = {
|
|
10488
11362
|
/**
|
|
10489
|
-
* Signed upload URL for one staged object
|
|
11363
|
+
* Signed upload URL or resumable session for one staged object
|
|
10490
11364
|
*/
|
|
10491
11365
|
201: ModelUploadStarted;
|
|
10492
11366
|
};
|
|
@@ -10501,6 +11375,7 @@ export type CompleteModelUploadData = {
|
|
|
10501
11375
|
* The `tags` sent to start the upload.
|
|
10502
11376
|
*/
|
|
10503
11377
|
tags: Array<string>;
|
|
11378
|
+
upload_analytics?: ModelUploadAnalytics;
|
|
10504
11379
|
};
|
|
10505
11380
|
path: {
|
|
10506
11381
|
/**
|
|
@@ -10513,7 +11388,7 @@ export type CompleteModelUploadData = {
|
|
|
10513
11388
|
};
|
|
10514
11389
|
export type CompleteModelUploadErrors = {
|
|
10515
11390
|
/**
|
|
10516
|
-
* `INVALID_BODY` (bad filename or tag list), `UNSUPPORTED_FILE_TYPE` (not `.safetensors`), `UNSUPPORTED_MODEL_TYPE` (a folder not in `model_upload_folders`) or `FILE_TOO_LARGE` (the stored object is over
|
|
11391
|
+
* `INVALID_BODY` (bad filename or tag list), `UNSUPPORTED_FILE_TYPE` (not `.safetensors`), `UNSUPPORTED_MODEL_TYPE` (a folder not in `model_upload_folders`) or `FILE_TOO_LARGE` (the stored object is over 25 GiB; the message is "Files can be up to 25 GB.")
|
|
10517
11392
|
*/
|
|
10518
11393
|
400: ErrorResponse;
|
|
10519
11394
|
/**
|
|
@@ -10545,6 +11420,44 @@ export type CompleteModelUploadResponses = {
|
|
|
10545
11420
|
202: AssetDownloadResponse;
|
|
10546
11421
|
};
|
|
10547
11422
|
export type CompleteModelUploadResponse = CompleteModelUploadResponses[keyof CompleteModelUploadResponses];
|
|
11423
|
+
export type ReportModelUploadEventData = {
|
|
11424
|
+
body: ModelUploadTransferReport;
|
|
11425
|
+
path: {
|
|
11426
|
+
upload_id: string;
|
|
11427
|
+
};
|
|
11428
|
+
query?: never;
|
|
11429
|
+
url: '/api/assets/uploads/{upload_id}/events';
|
|
11430
|
+
};
|
|
11431
|
+
export type ReportModelUploadEventErrors = {
|
|
11432
|
+
/**
|
|
11433
|
+
* Malformed report
|
|
11434
|
+
*/
|
|
11435
|
+
400: ErrorResponse;
|
|
11436
|
+
/**
|
|
11437
|
+
* Authentication required
|
|
11438
|
+
*/
|
|
11439
|
+
401: ErrorResponse;
|
|
11440
|
+
/**
|
|
11441
|
+
* Workspace or private-library access refused
|
|
11442
|
+
*/
|
|
11443
|
+
403: ErrorResponse;
|
|
11444
|
+
/**
|
|
11445
|
+
* Edge rate limit exceeded
|
|
11446
|
+
*/
|
|
11447
|
+
429: unknown;
|
|
11448
|
+
/**
|
|
11449
|
+
* Private-model eligibility temporarily unavailable
|
|
11450
|
+
*/
|
|
11451
|
+
503: ErrorResponse;
|
|
11452
|
+
};
|
|
11453
|
+
export type ReportModelUploadEventError = ReportModelUploadEventErrors[keyof ReportModelUploadEventErrors];
|
|
11454
|
+
export type ReportModelUploadEventResponses = {
|
|
11455
|
+
/**
|
|
11456
|
+
* Report accepted; delivery is best effort
|
|
11457
|
+
*/
|
|
11458
|
+
204: void;
|
|
11459
|
+
};
|
|
11460
|
+
export type ReportModelUploadEventResponse = ReportModelUploadEventResponses[keyof ReportModelUploadEventResponses];
|
|
10548
11461
|
export type AuthenticateData = {
|
|
10549
11462
|
body: AuthenticateRequest;
|
|
10550
11463
|
path?: never;
|
|
@@ -10677,6 +11590,74 @@ export type RedeemDesktopLoginCodeResponses = {
|
|
|
10677
11590
|
200: DesktopLoginCodeRedeemResponse;
|
|
10678
11591
|
};
|
|
10679
11592
|
export type RedeemDesktopLoginCodeResponse = RedeemDesktopLoginCodeResponses[keyof RedeemDesktopLoginCodeResponses];
|
|
11593
|
+
export type CreateBillingHandoffData = {
|
|
11594
|
+
body: BillingHandoffCreateRequest;
|
|
11595
|
+
path?: never;
|
|
11596
|
+
query?: never;
|
|
11597
|
+
url: '/api/auth/handoffs';
|
|
11598
|
+
};
|
|
11599
|
+
export type CreateBillingHandoffErrors = {
|
|
11600
|
+
/**
|
|
11601
|
+
* `INVALID_REQUEST`
|
|
11602
|
+
*/
|
|
11603
|
+
400: ErrorResponse;
|
|
11604
|
+
/**
|
|
11605
|
+
* `INVALID_CREDENTIAL`: the sign-in has ended, predates the user's sign-out of all devices, or must be renewed
|
|
11606
|
+
*/
|
|
11607
|
+
401: ErrorResponse;
|
|
11608
|
+
/**
|
|
11609
|
+
* `CREDENTIAL_UNSUPPORTED`, `BILLING_FORBIDDEN` or `HANDOFF_DISABLED`
|
|
11610
|
+
*/
|
|
11611
|
+
403: ErrorResponse;
|
|
11612
|
+
/**
|
|
11613
|
+
* Too many handoffs for this user in the last hour
|
|
11614
|
+
*/
|
|
11615
|
+
429: ErrorResponse;
|
|
11616
|
+
/**
|
|
11617
|
+
* `SERVICE_UNAVAILABLE`: the Firebase revocation check could not be made
|
|
11618
|
+
*/
|
|
11619
|
+
503: ErrorResponse;
|
|
11620
|
+
};
|
|
11621
|
+
export type CreateBillingHandoffError = CreateBillingHandoffErrors[keyof CreateBillingHandoffErrors];
|
|
11622
|
+
export type CreateBillingHandoffResponses = {
|
|
11623
|
+
/**
|
|
11624
|
+
* Handoff issued
|
|
11625
|
+
*/
|
|
11626
|
+
201: BillingHandoffCreateResponse;
|
|
11627
|
+
};
|
|
11628
|
+
export type CreateBillingHandoffResponse = CreateBillingHandoffResponses[keyof CreateBillingHandoffResponses];
|
|
11629
|
+
export type ExchangeBillingHandoffData = {
|
|
11630
|
+
body: BillingHandoffExchangeRequest;
|
|
11631
|
+
path?: never;
|
|
11632
|
+
query?: never;
|
|
11633
|
+
url: '/api/auth/handoffs/exchange';
|
|
11634
|
+
};
|
|
11635
|
+
export type ExchangeBillingHandoffErrors = {
|
|
11636
|
+
/**
|
|
11637
|
+
* `INVALID_REQUEST`
|
|
11638
|
+
*/
|
|
11639
|
+
400: ErrorResponse;
|
|
11640
|
+
/**
|
|
11641
|
+
* `BILLING_FORBIDDEN` or `HANDOFF_DISABLED`, or the request did not come from the handoff's receiver
|
|
11642
|
+
*/
|
|
11643
|
+
403: ErrorResponse;
|
|
11644
|
+
/**
|
|
11645
|
+
* `HANDOFF_UNAVAILABLE`: unknown, expired, revoked or already consumed
|
|
11646
|
+
*/
|
|
11647
|
+
410: ErrorResponse;
|
|
11648
|
+
/**
|
|
11649
|
+
* The user already holds the most live scoped sessions
|
|
11650
|
+
*/
|
|
11651
|
+
429: ErrorResponse;
|
|
11652
|
+
};
|
|
11653
|
+
export type ExchangeBillingHandoffError = ExchangeBillingHandoffErrors[keyof ExchangeBillingHandoffErrors];
|
|
11654
|
+
export type ExchangeBillingHandoffResponses = {
|
|
11655
|
+
/**
|
|
11656
|
+
* Scoped session created
|
|
11657
|
+
*/
|
|
11658
|
+
200: BillingHandoffExchangeResponse;
|
|
11659
|
+
};
|
|
11660
|
+
export type ExchangeBillingHandoffResponse = ExchangeBillingHandoffResponses[keyof ExchangeBillingHandoffResponses];
|
|
10680
11661
|
export type DeleteSessionData = {
|
|
10681
11662
|
body?: never;
|
|
10682
11663
|
path?: never;
|
|
@@ -10887,7 +11868,7 @@ export type ExchangeTokenErrors = {
|
|
|
10887
11868
|
*/
|
|
10888
11869
|
400: ErrorResponse;
|
|
10889
11870
|
/**
|
|
10890
|
-
* Invalid or expired Firebase JWT, no live web session, or a revoked, expired, deleted or unknown API key. Refused credentials get `code` `UNAUTHORIZED` and a `message`. A session that ends within seconds gets `code` `session_expired`: a token minted from it would expire on arrival.
|
|
11871
|
+
* Invalid or expired Firebase JWT, no live web session, or a revoked, expired, deleted or unknown API key. Refused credentials get `code` `UNAUTHORIZED` and a `message`. A session that ends within seconds gets `code` `session_expired`: a token minted from it would expire on arrival. `oauth_grant_ended`: an OAuth access token holding `comfy-cloud:workspace-token:mint` whose grant was signed out, revoked or expired, even though the token itself is still valid; sign in again.
|
|
10891
11872
|
*/
|
|
10892
11873
|
401: ErrorResponse;
|
|
10893
11874
|
/**
|
|
@@ -10895,11 +11876,11 @@ export type ExchangeTokenErrors = {
|
|
|
10895
11876
|
*/
|
|
10896
11877
|
403: ErrorResponse;
|
|
10897
11878
|
/**
|
|
10898
|
-
* Workspace not found or user not a member, or an API key's request names another workspace than
|
|
11879
|
+
* Workspace not found or user not a member, or an API key's or OAuth access token's request names another workspace than its own. Only an OAuth grant from a client in `WORKSPACE_MINT_OAUTH_CLIENTS` that holds `comfy-cloud:workspace-token:mint` may name another workspace.
|
|
10899
11880
|
*/
|
|
10900
11881
|
404: ErrorResponse;
|
|
10901
11882
|
/**
|
|
10902
|
-
* The user minted 240 tokens from the session this hour
|
|
11883
|
+
* The user minted 240 tokens from the session this hour, or 30 tokens from OAuth grants carrying `comfy-cloud:workspace-token:mint` in the last 600 seconds. `code` is `rate_limited`.
|
|
10903
11884
|
*/
|
|
10904
11885
|
429: ErrorResponse;
|
|
10905
11886
|
/**
|
|
@@ -10907,7 +11888,7 @@ export type ExchangeTokenErrors = {
|
|
|
10907
11888
|
*/
|
|
10908
11889
|
500: ErrorResponse;
|
|
10909
11890
|
/**
|
|
10910
|
-
* 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.
|
|
11891
|
+
* 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. `oauth_workspace_mint_disabled`: an OAuth grant naming a workspace other than its own while ops have switched that off (`OAuthCrossWorkspaceMintDisabled`); authorize again for that workspace.
|
|
10911
11892
|
*/
|
|
10912
11893
|
503: ErrorResponse;
|
|
10913
11894
|
};
|
|
@@ -11271,7 +12252,7 @@ export type GetBillingEventsData = {
|
|
|
11271
12252
|
*/
|
|
11272
12253
|
limit?: number;
|
|
11273
12254
|
/**
|
|
11274
|
-
* Event scope. The user scope requires user_id.
|
|
12255
|
+
* Event scope. Defaults to workspace for workspace owners and self for everyone else. The user scope requires user_id.
|
|
11275
12256
|
*/
|
|
11276
12257
|
scope?: 'self' | 'workspace' | 'user';
|
|
11277
12258
|
/**
|
|
@@ -15589,25 +16570,65 @@ export type GetUsersInfoErrors = {
|
|
|
15589
16570
|
/**
|
|
15590
16571
|
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
15591
16572
|
*/
|
|
15592
|
-
403: ForbiddenError;
|
|
16573
|
+
403: ForbiddenError;
|
|
16574
|
+
};
|
|
16575
|
+
export type GetUsersInfoError = GetUsersInfoErrors[keyof GetUsersInfoErrors];
|
|
16576
|
+
export type GetUsersInfoResponses = {
|
|
16577
|
+
/**
|
|
16578
|
+
* Userdata storage information
|
|
16579
|
+
*/
|
|
16580
|
+
200: {
|
|
16581
|
+
/**
|
|
16582
|
+
* Whether user data has been migrated (always true in cloud)
|
|
16583
|
+
*/
|
|
16584
|
+
migrated: boolean;
|
|
16585
|
+
/**
|
|
16586
|
+
* Where user data is stored (always "server" in cloud)
|
|
16587
|
+
*/
|
|
16588
|
+
storage: string;
|
|
16589
|
+
};
|
|
16590
|
+
};
|
|
16591
|
+
export type GetUsersInfoResponse = GetUsersInfoResponses[keyof GetUsersInfoResponses];
|
|
16592
|
+
export type GetCccActivityData = {
|
|
16593
|
+
body?: never;
|
|
16594
|
+
path?: never;
|
|
16595
|
+
query?: {
|
|
16596
|
+
kind?: Array<'save' | 'publish' | 'discard' | 'revert'>;
|
|
16597
|
+
actor_uid?: string;
|
|
16598
|
+
type?: Array<'model' | 'workflow' | 'app'>;
|
|
16599
|
+
since?: string;
|
|
16600
|
+
until?: string;
|
|
16601
|
+
limit?: number;
|
|
16602
|
+
cursor?: string;
|
|
16603
|
+
};
|
|
16604
|
+
url: '/api/v1/catalog/activity';
|
|
16605
|
+
};
|
|
16606
|
+
export type GetCccActivityErrors = {
|
|
16607
|
+
/**
|
|
16608
|
+
* Invalid kind, type, actor_uid, time range, limit, cursor or unsupported query parameter; or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
16609
|
+
*/
|
|
16610
|
+
400: ErrorResponse;
|
|
16611
|
+
/**
|
|
16612
|
+
* 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`.
|
|
16613
|
+
*/
|
|
16614
|
+
401: ErrorResponse;
|
|
16615
|
+
/**
|
|
16616
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
16617
|
+
*/
|
|
16618
|
+
403: ForbiddenError;
|
|
16619
|
+
/**
|
|
16620
|
+
* Dedicated catalog unavailable
|
|
16621
|
+
*/
|
|
16622
|
+
503: unknown;
|
|
15593
16623
|
};
|
|
15594
|
-
export type
|
|
15595
|
-
export type
|
|
16624
|
+
export type GetCccActivityError = GetCccActivityErrors[keyof GetCccActivityErrors];
|
|
16625
|
+
export type GetCccActivityResponses = {
|
|
15596
16626
|
/**
|
|
15597
|
-
*
|
|
16627
|
+
* One page of activity, has_more, optional next_cursor and the newest publication
|
|
15598
16628
|
*/
|
|
15599
|
-
200:
|
|
15600
|
-
/**
|
|
15601
|
-
* Whether user data has been migrated (always true in cloud)
|
|
15602
|
-
*/
|
|
15603
|
-
migrated: boolean;
|
|
15604
|
-
/**
|
|
15605
|
-
* Where user data is stored (always "server" in cloud)
|
|
15606
|
-
*/
|
|
15607
|
-
storage: string;
|
|
15608
|
-
};
|
|
16629
|
+
200: CccActivityPage;
|
|
15609
16630
|
};
|
|
15610
|
-
export type
|
|
16631
|
+
export type GetCccActivityResponse = GetCccActivityResponses[keyof GetCccActivityResponses];
|
|
15611
16632
|
export type GetCatalogAgentInstructionsData = {
|
|
15612
16633
|
body?: never;
|
|
15613
16634
|
path?: never;
|
|
@@ -15672,7 +16693,7 @@ export type ListCccWebsiteCardsData = {
|
|
|
15672
16693
|
kind: 'MODEL' | 'WORKFLOW' | 'APP';
|
|
15673
16694
|
limit?: number;
|
|
15674
16695
|
cursor?: string;
|
|
15675
|
-
locale?: 'en' | 'zh-CN';
|
|
16696
|
+
locale?: 'en' | 'zh-CN' | 'ja';
|
|
15676
16697
|
q?: string;
|
|
15677
16698
|
sort?: 'popular' | 'name' | 'priceAsc' | 'priceDesc';
|
|
15678
16699
|
category?: Array<string>;
|
|
@@ -16480,6 +17501,10 @@ export type GetCccStagingData = {
|
|
|
16480
17501
|
uid?: string;
|
|
16481
17502
|
search?: string;
|
|
16482
17503
|
author_uid?: string;
|
|
17504
|
+
/**
|
|
17505
|
+
* Account that saved the pending change (saved_by_uid), not the credited author.
|
|
17506
|
+
*/
|
|
17507
|
+
saved_by?: string;
|
|
16483
17508
|
change_id?: string;
|
|
16484
17509
|
tags?: Array<string>;
|
|
16485
17510
|
types?: Array<'model' | 'workflow' | 'app' | 'media' | 'template_set'>;
|
|
@@ -16514,7 +17539,7 @@ export type GetCccStagingResponses = {
|
|
|
16514
17539
|
/**
|
|
16515
17540
|
* Private review with exact Draft generation and optional sparse page metadata
|
|
16516
17541
|
*/
|
|
16517
|
-
200:
|
|
17542
|
+
200: CccStagingReview;
|
|
16518
17543
|
};
|
|
16519
17544
|
export type GetCccStagingResponse = GetCccStagingResponses[keyof GetCccStagingResponses];
|
|
16520
17545
|
export type StageCccChangesData = {
|
|
@@ -16682,7 +17707,7 @@ export type GetCccItemHistoryResponses = {
|
|
|
16682
17707
|
/**
|
|
16683
17708
|
* Flat immutable items with catalog_status and saved_at, has_more and optional opaque next_cursor; no total
|
|
16684
17709
|
*/
|
|
16685
|
-
200:
|
|
17710
|
+
200: CccHistoryPage;
|
|
16686
17711
|
};
|
|
16687
17712
|
export type GetCccItemHistoryResponse = GetCccItemHistoryResponses[keyof GetCccItemHistoryResponses];
|
|
16688
17713
|
export type GetCccLegacyTargetData = {
|
|
@@ -16778,7 +17803,7 @@ export type ListCccWebsiteModelDirectoryData = {
|
|
|
16778
17803
|
};
|
|
16779
17804
|
path?: never;
|
|
16780
17805
|
query?: {
|
|
16781
|
-
locale?: 'en' | 'zh-CN';
|
|
17806
|
+
locale?: 'en' | 'zh-CN' | 'ja';
|
|
16782
17807
|
};
|
|
16783
17808
|
url: '/api/v1/catalog/model-directory';
|
|
16784
17809
|
};
|
|
@@ -16822,6 +17847,237 @@ export type GetCatalogOpenApiResponses = {
|
|
|
16822
17847
|
200: Cccjson;
|
|
16823
17848
|
};
|
|
16824
17849
|
export type GetCatalogOpenApiResponse = GetCatalogOpenApiResponses[keyof GetCatalogOpenApiResponses];
|
|
17850
|
+
export type ListCccAdminItemsData = {
|
|
17851
|
+
body?: never;
|
|
17852
|
+
path?: never;
|
|
17853
|
+
query?: {
|
|
17854
|
+
types?: Array<'model' | 'workflow' | 'app'>;
|
|
17855
|
+
q?: string;
|
|
17856
|
+
status?: Array<'not_live' | 'unpublished' | 'live' | 'scheduled' | 'hidden' | 'removed'>;
|
|
17857
|
+
saved_by?: string;
|
|
17858
|
+
/**
|
|
17859
|
+
* false keeps pages whose Draft head has enabled not true (Show on the Hub off), whatever their status; true keeps the others.
|
|
17860
|
+
*/
|
|
17861
|
+
enabled?: boolean;
|
|
17862
|
+
/**
|
|
17863
|
+
* Exact page UIDs; repeat to read several pages, for example one page in the editor.
|
|
17864
|
+
*/
|
|
17865
|
+
uid?: Array<string>;
|
|
17866
|
+
missing?: Array<'cover'>;
|
|
17867
|
+
sort?: 'saved_desc' | 'title_asc';
|
|
17868
|
+
limit?: number;
|
|
17869
|
+
cursor?: string;
|
|
17870
|
+
};
|
|
17871
|
+
url: '/api/v1/catalog/pages';
|
|
17872
|
+
};
|
|
17873
|
+
export type ListCccAdminItemsErrors = {
|
|
17874
|
+
/**
|
|
17875
|
+
* Unknown, repeated scalar or invalid filter, or a cursor from other filters; or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
17876
|
+
*/
|
|
17877
|
+
400: ErrorResponse;
|
|
17878
|
+
/**
|
|
17879
|
+
* 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`.
|
|
17880
|
+
*/
|
|
17881
|
+
401: ErrorResponse;
|
|
17882
|
+
/**
|
|
17883
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
17884
|
+
*/
|
|
17885
|
+
403: ForbiddenError;
|
|
17886
|
+
/**
|
|
17887
|
+
* The cursor belongs to a stale Draft snapshot
|
|
17888
|
+
*/
|
|
17889
|
+
409: unknown;
|
|
17890
|
+
/**
|
|
17891
|
+
* Dedicated catalog unavailable
|
|
17892
|
+
*/
|
|
17893
|
+
503: unknown;
|
|
17894
|
+
};
|
|
17895
|
+
export type ListCccAdminItemsError = ListCccAdminItemsErrors[keyof ListCccAdminItemsErrors];
|
|
17896
|
+
export type ListCccAdminItemsResponses = {
|
|
17897
|
+
/**
|
|
17898
|
+
* One page of staff page rows, the per-type counts and the optional opaque next_cursor
|
|
17899
|
+
*/
|
|
17900
|
+
200: CccPagesPage;
|
|
17901
|
+
};
|
|
17902
|
+
export type ListCccAdminItemsResponse = ListCccAdminItemsResponses[keyof ListCccAdminItemsResponses];
|
|
17903
|
+
export type ListCccStaffPermissionsData = {
|
|
17904
|
+
body?: never;
|
|
17905
|
+
path?: never;
|
|
17906
|
+
query?: never;
|
|
17907
|
+
url: '/api/v1/catalog/permissions';
|
|
17908
|
+
};
|
|
17909
|
+
export type ListCccStaffPermissionsErrors = {
|
|
17910
|
+
/**
|
|
17911
|
+
* Unsupported query, or code workspace_id_invalid from session validation (see SessionWorkspaceIDInvalid)
|
|
17912
|
+
*/
|
|
17913
|
+
400: ErrorResponse;
|
|
17914
|
+
/**
|
|
17915
|
+
* 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`.
|
|
17916
|
+
*/
|
|
17917
|
+
401: ErrorResponse;
|
|
17918
|
+
/**
|
|
17919
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
17920
|
+
*/
|
|
17921
|
+
403: ForbiddenError;
|
|
17922
|
+
/**
|
|
17923
|
+
* Catalog permissions unavailable
|
|
17924
|
+
*/
|
|
17925
|
+
503: unknown;
|
|
17926
|
+
};
|
|
17927
|
+
export type ListCccStaffPermissionsError = ListCccStaffPermissionsErrors[keyof ListCccStaffPermissionsErrors];
|
|
17928
|
+
export type ListCccStaffPermissionsResponses = {
|
|
17929
|
+
/**
|
|
17930
|
+
* Current website permission records
|
|
17931
|
+
*/
|
|
17932
|
+
200: {
|
|
17933
|
+
items: Array<CccStaffPermissions>;
|
|
17934
|
+
};
|
|
17935
|
+
};
|
|
17936
|
+
export type ListCccStaffPermissionsResponse = ListCccStaffPermissionsResponses[keyof ListCccStaffPermissionsResponses];
|
|
17937
|
+
export type DeleteCccStaffPermissionsData = {
|
|
17938
|
+
body?: never;
|
|
17939
|
+
path: {
|
|
17940
|
+
account_id: string;
|
|
17941
|
+
};
|
|
17942
|
+
query: {
|
|
17943
|
+
expected_version: number;
|
|
17944
|
+
};
|
|
17945
|
+
url: '/api/v1/catalog/permissions/{account_id}';
|
|
17946
|
+
};
|
|
17947
|
+
export type DeleteCccStaffPermissionsErrors = {
|
|
17948
|
+
/**
|
|
17949
|
+
* Invalid version or query, or code workspace_id_invalid from session validation (see SessionWorkspaceIDInvalid)
|
|
17950
|
+
*/
|
|
17951
|
+
400: ErrorResponse;
|
|
17952
|
+
/**
|
|
17953
|
+
* 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`.
|
|
17954
|
+
*/
|
|
17955
|
+
401: ErrorResponse;
|
|
17956
|
+
/**
|
|
17957
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
17958
|
+
*/
|
|
17959
|
+
403: ForbiddenError;
|
|
17960
|
+
/**
|
|
17961
|
+
* Permission record does not exist
|
|
17962
|
+
*/
|
|
17963
|
+
404: unknown;
|
|
17964
|
+
/**
|
|
17965
|
+
* Stale version or removal would leave no permission manager
|
|
17966
|
+
*/
|
|
17967
|
+
409: unknown;
|
|
17968
|
+
/**
|
|
17969
|
+
* Catalog permissions unavailable
|
|
17970
|
+
*/
|
|
17971
|
+
503: unknown;
|
|
17972
|
+
};
|
|
17973
|
+
export type DeleteCccStaffPermissionsError = DeleteCccStaffPermissionsErrors[keyof DeleteCccStaffPermissionsErrors];
|
|
17974
|
+
export type DeleteCccStaffPermissionsResponses = {
|
|
17975
|
+
/**
|
|
17976
|
+
* Website access removed
|
|
17977
|
+
*/
|
|
17978
|
+
204: void;
|
|
17979
|
+
};
|
|
17980
|
+
export type DeleteCccStaffPermissionsResponse = DeleteCccStaffPermissionsResponses[keyof DeleteCccStaffPermissionsResponses];
|
|
17981
|
+
export type PutCccStaffPermissionsData = {
|
|
17982
|
+
body: {
|
|
17983
|
+
can_edit: boolean;
|
|
17984
|
+
can_manage_users: boolean;
|
|
17985
|
+
/**
|
|
17986
|
+
* Publication also grants content editing
|
|
17987
|
+
*/
|
|
17988
|
+
can_publish: boolean;
|
|
17989
|
+
can_transfer: boolean;
|
|
17990
|
+
expected_version: number;
|
|
17991
|
+
};
|
|
17992
|
+
path: {
|
|
17993
|
+
account_id: string;
|
|
17994
|
+
};
|
|
17995
|
+
query?: never;
|
|
17996
|
+
url: '/api/v1/catalog/permissions/{account_id}';
|
|
17997
|
+
};
|
|
17998
|
+
export type PutCccStaffPermissionsErrors = {
|
|
17999
|
+
/**
|
|
18000
|
+
* Invalid permission record, or code workspace_id_invalid from session validation (see SessionWorkspaceIDInvalid)
|
|
18001
|
+
*/
|
|
18002
|
+
400: ErrorResponse;
|
|
18003
|
+
/**
|
|
18004
|
+
* 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`.
|
|
18005
|
+
*/
|
|
18006
|
+
401: ErrorResponse;
|
|
18007
|
+
/**
|
|
18008
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
18009
|
+
*/
|
|
18010
|
+
403: ForbiddenError;
|
|
18011
|
+
/**
|
|
18012
|
+
* Active Cloud account does not exist
|
|
18013
|
+
*/
|
|
18014
|
+
404: unknown;
|
|
18015
|
+
/**
|
|
18016
|
+
* Stale version or change would leave no permission manager
|
|
18017
|
+
*/
|
|
18018
|
+
409: unknown;
|
|
18019
|
+
/**
|
|
18020
|
+
* Body exceeds 4 KiB
|
|
18021
|
+
*/
|
|
18022
|
+
413: unknown;
|
|
18023
|
+
/**
|
|
18024
|
+
* Catalog permissions or identity lookup unavailable
|
|
18025
|
+
*/
|
|
18026
|
+
503: unknown;
|
|
18027
|
+
};
|
|
18028
|
+
export type PutCccStaffPermissionsError = PutCccStaffPermissionsErrors[keyof PutCccStaffPermissionsErrors];
|
|
18029
|
+
export type PutCccStaffPermissionsResponses = {
|
|
18030
|
+
/**
|
|
18031
|
+
* Saved website permissions and the new version token
|
|
18032
|
+
*/
|
|
18033
|
+
200: CccStaffPermissions;
|
|
18034
|
+
};
|
|
18035
|
+
export type PutCccStaffPermissionsResponse = PutCccStaffPermissionsResponses[keyof PutCccStaffPermissionsResponses];
|
|
18036
|
+
export type ResolveCccStaffAccountData = {
|
|
18037
|
+
body: {
|
|
18038
|
+
email: string;
|
|
18039
|
+
};
|
|
18040
|
+
path?: never;
|
|
18041
|
+
query?: never;
|
|
18042
|
+
url: '/api/v1/catalog/permissions/resolve';
|
|
18043
|
+
};
|
|
18044
|
+
export type ResolveCccStaffAccountErrors = {
|
|
18045
|
+
/**
|
|
18046
|
+
* `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.
|
|
18047
|
+
*/
|
|
18048
|
+
400: ErrorResponse;
|
|
18049
|
+
/**
|
|
18050
|
+
* 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`.
|
|
18051
|
+
*/
|
|
18052
|
+
401: ErrorResponse;
|
|
18053
|
+
/**
|
|
18054
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
18055
|
+
*/
|
|
18056
|
+
403: ForbiddenError;
|
|
18057
|
+
/**
|
|
18058
|
+
* No unique active account matches that email
|
|
18059
|
+
*/
|
|
18060
|
+
404: unknown;
|
|
18061
|
+
/**
|
|
18062
|
+
* Email verification body exceeds 2 KiB
|
|
18063
|
+
*/
|
|
18064
|
+
413: unknown;
|
|
18065
|
+
/**
|
|
18066
|
+
* Account lookup unavailable
|
|
18067
|
+
*/
|
|
18068
|
+
503: unknown;
|
|
18069
|
+
};
|
|
18070
|
+
export type ResolveCccStaffAccountError = ResolveCccStaffAccountErrors[keyof ResolveCccStaffAccountErrors];
|
|
18071
|
+
export type ResolveCccStaffAccountResponses = {
|
|
18072
|
+
/**
|
|
18073
|
+
* Verified active account, without granting access
|
|
18074
|
+
*/
|
|
18075
|
+
200: {
|
|
18076
|
+
account_id: string;
|
|
18077
|
+
display_name?: string;
|
|
18078
|
+
};
|
|
18079
|
+
};
|
|
18080
|
+
export type ResolveCccStaffAccountResponse = ResolveCccStaffAccountResponses[keyof ResolveCccStaffAccountResponses];
|
|
16825
18081
|
export type GetCccPreviewMediaBytesData = {
|
|
16826
18082
|
body?: never;
|
|
16827
18083
|
path: {
|
|
@@ -16981,7 +18237,7 @@ export type GetCccWebsiteRootPresentationData = {
|
|
|
16981
18237
|
path?: never;
|
|
16982
18238
|
query: {
|
|
16983
18239
|
path: '/hub/models/' | '/hub/workflows/' | '/hub/apps/';
|
|
16984
|
-
locale?: 'en' | 'zh-CN';
|
|
18240
|
+
locale?: 'en' | 'zh-CN' | 'ja';
|
|
16985
18241
|
/**
|
|
16986
18242
|
* Live revision selected once at page entry. Redis requires both this revision and the selected authority pin. On an origin miss the revision must match current Live.
|
|
16987
18243
|
*/
|
|
@@ -17033,7 +18289,7 @@ export type GetCccTypeSchemaResponses = {
|
|
|
17033
18289
|
/**
|
|
17034
18290
|
* Build-coupled OpenAPI 3.0 schema object, type, version and API environment
|
|
17035
18291
|
*/
|
|
17036
|
-
200:
|
|
18292
|
+
200: CccTypeSchema;
|
|
17037
18293
|
};
|
|
17038
18294
|
export type GetCccTypeSchemaResponse = GetCccTypeSchemaResponses[keyof GetCccTypeSchemaResponses];
|
|
17039
18295
|
export type GetCccStateData = {
|
|
@@ -17068,6 +18324,41 @@ export type GetCccStateResponses = {
|
|
|
17068
18324
|
200: Cccjson;
|
|
17069
18325
|
};
|
|
17070
18326
|
export type GetCccStateResponse = GetCccStateResponses[keyof GetCccStateResponses];
|
|
18327
|
+
export type GetCccSiteTagsData = {
|
|
18328
|
+
body?: never;
|
|
18329
|
+
path?: never;
|
|
18330
|
+
query?: {
|
|
18331
|
+
view?: 'LIVE' | 'DRAFT';
|
|
18332
|
+
now?: string;
|
|
18333
|
+
};
|
|
18334
|
+
url: '/api/v1/catalog/tags';
|
|
18335
|
+
};
|
|
18336
|
+
export type GetCccSiteTagsErrors = {
|
|
18337
|
+
/**
|
|
18338
|
+
* Invalid, repeated or unsupported query parameter; or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid)
|
|
18339
|
+
*/
|
|
18340
|
+
400: ErrorResponse;
|
|
18341
|
+
/**
|
|
18342
|
+
* 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`.
|
|
18343
|
+
*/
|
|
18344
|
+
401: ErrorResponse;
|
|
18345
|
+
/**
|
|
18346
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
18347
|
+
*/
|
|
18348
|
+
403: ForbiddenError;
|
|
18349
|
+
/**
|
|
18350
|
+
* Catalog unavailable or tag budget exceeded
|
|
18351
|
+
*/
|
|
18352
|
+
503: unknown;
|
|
18353
|
+
};
|
|
18354
|
+
export type GetCccSiteTagsError = GetCccSiteTagsErrors[keyof GetCccSiteTagsErrors];
|
|
18355
|
+
export type GetCccSiteTagsResponses = {
|
|
18356
|
+
/**
|
|
18357
|
+
* Complete tag usage with Draft generation
|
|
18358
|
+
*/
|
|
18359
|
+
200: CccSiteTagUsage;
|
|
18360
|
+
};
|
|
18361
|
+
export type GetCccSiteTagsResponse = GetCccSiteTagsResponses[keyof GetCccSiteTagsResponses];
|
|
17071
18362
|
export type GetLegacyUserdataV2Data = {
|
|
17072
18363
|
body?: never;
|
|
17073
18364
|
path?: never;
|
|
@@ -17778,6 +19069,51 @@ export type ForkWorkflowResponses = {
|
|
|
17778
19069
|
201: WorkflowResponse;
|
|
17779
19070
|
};
|
|
17780
19071
|
export type ForkWorkflowResponse = ForkWorkflowResponses[keyof ForkWorkflowResponses];
|
|
19072
|
+
export type GetWorkflowSidebarFileData = {
|
|
19073
|
+
body?: never;
|
|
19074
|
+
path: {
|
|
19075
|
+
/**
|
|
19076
|
+
* The UUID of the workflow. Parsed by the handler, so a malformed id answers 404.
|
|
19077
|
+
*/
|
|
19078
|
+
workflow_id: string;
|
|
19079
|
+
};
|
|
19080
|
+
query?: never;
|
|
19081
|
+
url: '/api/workflows/{workflow_id}/sidebar-file';
|
|
19082
|
+
};
|
|
19083
|
+
export type GetWorkflowSidebarFileErrors = {
|
|
19084
|
+
/**
|
|
19085
|
+
* `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.
|
|
19086
|
+
*/
|
|
19087
|
+
400: ErrorResponse;
|
|
19088
|
+
/**
|
|
19089
|
+
* Unauthorized
|
|
19090
|
+
*/
|
|
19091
|
+
401: ErrorResponse;
|
|
19092
|
+
/**
|
|
19093
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
19094
|
+
*/
|
|
19095
|
+
403: ForbiddenError;
|
|
19096
|
+
/**
|
|
19097
|
+
* `code` is `NOT_FOUND`: no live workflow with this id that the caller created in this workspace.
|
|
19098
|
+
*/
|
|
19099
|
+
404: ErrorResponse;
|
|
19100
|
+
/**
|
|
19101
|
+
* `code` is `WORKFLOW_OUT_OF_SYNC` and `details.reason` is one of `no_sidebar_path`, `name_ambiguous`, `file_missing` or `content_mismatch`. Clients open nothing on this answer. The set of reasons may grow, and clients treat an unknown reason as out of sync.
|
|
19102
|
+
*/
|
|
19103
|
+
409: ErrorResponse;
|
|
19104
|
+
/**
|
|
19105
|
+
* Internal server error
|
|
19106
|
+
*/
|
|
19107
|
+
500: ErrorResponse;
|
|
19108
|
+
};
|
|
19109
|
+
export type GetWorkflowSidebarFileError = GetWorkflowSidebarFileErrors[keyof GetWorkflowSidebarFileErrors];
|
|
19110
|
+
export type GetWorkflowSidebarFileResponses = {
|
|
19111
|
+
/**
|
|
19112
|
+
* The workflow and its sidebar file agree.
|
|
19113
|
+
*/
|
|
19114
|
+
200: WorkflowSidebarFileResponse;
|
|
19115
|
+
};
|
|
19116
|
+
export type GetWorkflowSidebarFileResponse = GetWorkflowSidebarFileResponses[keyof GetWorkflowSidebarFileResponses];
|
|
17781
19117
|
export type CreateWorkflowVersionData = {
|
|
17782
19118
|
body: CreateWorkflowVersionRequest;
|
|
17783
19119
|
path: {
|
|
@@ -19363,7 +20699,7 @@ export type PostOAuthAuthorizeData = {
|
|
|
19363
20699
|
};
|
|
19364
20700
|
export type PostOAuthAuthorizeErrors = {
|
|
19365
20701
|
/**
|
|
19366
|
-
* Bad request (CSRF mismatch, expired/consumed request, inaccessible workspace, no signed-in user),
|
|
20702
|
+
* Bad request (CSRF mismatch, expired/consumed request, inaccessible workspace, no signed-in user), `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid), or `code` `login_required`: the user signed out of all devices after the sign-in behind this request (the web session's or the Firebase token's `auth_time`), or the request uses a credential with no sign-in time (API key, Cloud JWT, OAuth token) after such a sign-out. Nothing is recorded and the request stays open, so the user can sign in again and approve it.
|
|
19367
20703
|
*/
|
|
19368
20704
|
400: ErrorResponse;
|
|
19369
20705
|
/**
|
|
@@ -19412,6 +20748,34 @@ export type PostOAuthRegisterResponses = {
|
|
|
19412
20748
|
201: OAuthRegisterResponse;
|
|
19413
20749
|
};
|
|
19414
20750
|
export type PostOAuthRegisterResponse = PostOAuthRegisterResponses[keyof PostOAuthRegisterResponses];
|
|
20751
|
+
export type PostOAuthRevokeData = {
|
|
20752
|
+
body: {
|
|
20753
|
+
client_id: string;
|
|
20754
|
+
client_secret?: string;
|
|
20755
|
+
token: string;
|
|
20756
|
+
token_type_hint?: string;
|
|
20757
|
+
};
|
|
20758
|
+
path?: never;
|
|
20759
|
+
query?: never;
|
|
20760
|
+
url: '/oauth/revoke';
|
|
20761
|
+
};
|
|
20762
|
+
export type PostOAuthRevokeErrors = {
|
|
20763
|
+
/**
|
|
20764
|
+
* RFC 6749 §5.2 error
|
|
20765
|
+
*/
|
|
20766
|
+
400: OAuthTokenError;
|
|
20767
|
+
/**
|
|
20768
|
+
* Revocation failed; retry
|
|
20769
|
+
*/
|
|
20770
|
+
500: ErrorResponse;
|
|
20771
|
+
};
|
|
20772
|
+
export type PostOAuthRevokeError = PostOAuthRevokeErrors[keyof PostOAuthRevokeErrors];
|
|
20773
|
+
export type PostOAuthRevokeResponses = {
|
|
20774
|
+
/**
|
|
20775
|
+
* Revoked, or nothing to revoke
|
|
20776
|
+
*/
|
|
20777
|
+
200: unknown;
|
|
20778
|
+
};
|
|
19415
20779
|
export type PostOAuthTokenData = {
|
|
19416
20780
|
body: {
|
|
19417
20781
|
client_id: string;
|