@comfyorg/ingest-types 1.7.0 → 1.7.2

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/zod.gen.d.ts CHANGED
@@ -16,6 +16,48 @@ export declare const zAcceptedAutoTopUpSettings: z.ZodObject<{
16
16
  target_credits: z.ZodCoercedBigInt<unknown>;
17
17
  threshold_credits: z.ZodCoercedBigInt<unknown>;
18
18
  }, z.core.$strip>;
19
+ /**
20
+ * A person named in an access change.
21
+ */
22
+ export declare const zAccessEventPerson: z.ZodObject<{
23
+ name: z.ZodString;
24
+ user_id: z.ZodString;
25
+ }, z.core.$strip>;
26
+ /**
27
+ * One change to who can access what in the workspace.
28
+ */
29
+ export declare const zAccessEvent: z.ZodObject<{
30
+ action: z.ZodString;
31
+ actor: z.ZodObject<{
32
+ name: z.ZodString;
33
+ user_id: z.ZodString;
34
+ }, z.core.$strip>;
35
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
37
+ create_time: z.ZodISODateTime;
38
+ id: z.ZodUUID;
39
+ project_id: z.ZodOptional<z.ZodString>;
40
+ project_name: z.ZodOptional<z.ZodString>;
41
+ target: z.ZodOptional<z.ZodObject<{
42
+ name: z.ZodString;
43
+ user_id: z.ZodString;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ /**
47
+ * Where the next page of access changes starts.
48
+ */
49
+ export declare const zAccessEventsPagination: z.ZodObject<{
50
+ has_more: z.ZodBoolean;
51
+ next_cursor: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>;
53
+ /**
54
+ * The upload to add to the deployment, passed to comfy-deploy as written.
55
+ */
56
+ export declare const zAddDeploymentModelRequest: z.ZodObject<{
57
+ blobId: z.ZodString;
58
+ filename: z.ZodOptional<z.ZodString>;
59
+ type: z.ZodString;
60
+ }, z.core.$strip>;
19
61
  /**
20
62
  * 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.
21
63
  */
@@ -434,6 +476,7 @@ export declare const zAgentPostMessageRequest: z.ZodObject<{
434
476
  delete_approval: "delete_approval";
435
477
  }>>>;
436
478
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
479
+ canvas_selection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
437
480
  client_id: z.ZodOptional<z.ZodString>;
438
481
  client_message_id: z.ZodOptional<z.ZodString>;
439
482
  client_version: z.ZodOptional<z.ZodString>;
@@ -1097,6 +1140,7 @@ export declare const zAgentThreadSummary: z.ZodObject<{
1097
1140
  export declare const zAgentToolCallData: z.ZodObject<{
1098
1141
  doc_lineage_seq: z.ZodOptional<z.ZodInt>;
1099
1142
  doc_seq: z.ZodOptional<z.ZodInt>;
1143
+ download: z.ZodOptional<z.ZodString>;
1100
1144
  duration_ms: z.ZodOptional<z.ZodInt>;
1101
1145
  error_code: z.ZodOptional<z.ZodString>;
1102
1146
  job_id: z.ZodOptional<z.ZodString>;
@@ -1121,6 +1165,7 @@ export declare const zAgentToolCallFrame: z.ZodObject<{
1121
1165
  data: z.ZodObject<{
1122
1166
  doc_lineage_seq: z.ZodOptional<z.ZodInt>;
1123
1167
  doc_seq: z.ZodOptional<z.ZodInt>;
1168
+ download: z.ZodOptional<z.ZodString>;
1124
1169
  duration_ms: z.ZodOptional<z.ZodInt>;
1125
1170
  error_code: z.ZodOptional<z.ZodString>;
1126
1171
  job_id: z.ZodOptional<z.ZodString>;
@@ -1520,6 +1565,7 @@ export declare const zAsset: z.ZodObject<{
1520
1565
  name: z.ZodString;
1521
1566
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1522
1567
  preview_url: z.ZodOptional<z.ZodURL>;
1568
+ project_id: z.ZodOptional<z.ZodString>;
1523
1569
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1524
1570
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
1525
1571
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1544,6 +1590,7 @@ export declare const zAssetCreated: z.ZodIntersection<z.ZodObject<{
1544
1590
  name: z.ZodString;
1545
1591
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1546
1592
  preview_url: z.ZodOptional<z.ZodURL>;
1593
+ project_id: z.ZodOptional<z.ZodString>;
1547
1594
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1548
1595
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
1549
1596
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1673,6 +1720,7 @@ export declare const zAutoReloadPreview: z.ZodObject<{
1673
1720
  *
1674
1721
  */
1675
1722
  export declare const zAutoReloadSettings: z.ZodObject<{
1723
+ auto_top_up_conflict: z.ZodBoolean;
1676
1724
  card_expiring_soon: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1677
1725
  card_expiry: z.ZodNullable<z.ZodObject<{
1678
1726
  expired: z.ZodBoolean;
@@ -1863,6 +1911,8 @@ export declare const zBillingCapabilities: z.ZodObject<{
1863
1911
  can_reactivate: z.ZodBoolean;
1864
1912
  can_revert_scheduled_change: z.ZodBoolean;
1865
1913
  can_run_workflows: z.ZodBoolean;
1914
+ can_set_budgets: z.ZodBoolean;
1915
+ can_set_hard_caps: z.ZodBoolean;
1866
1916
  can_subscribe_self_serve: z.ZodBoolean;
1867
1917
  can_top_up: z.ZodBoolean;
1868
1918
  can_upgrade: z.ZodBoolean;
@@ -2035,6 +2085,27 @@ export declare const zBillingCapabilityDenials: z.ZodObject<{
2035
2085
  user_cap_exceeded: "user_cap_exceeded";
2036
2086
  free_tier_exhausted: "free_tier_exhausted";
2037
2087
  }>>;
2088
+ can_set_budgets: z.ZodOptional<z.ZodEnum<{
2089
+ subscription_status_unrecognized: "subscription_status_unrecognized";
2090
+ creator_only_provisioning: "creator_only_provisioning";
2091
+ not_a_member: "not_a_member";
2092
+ not_workspace_owner: "not_workspace_owner";
2093
+ free_plan: "free_plan";
2094
+ no_subscription: "no_subscription";
2095
+ subscription_ended: "subscription_ended";
2096
+ subscription_not_started: "subscription_not_started";
2097
+ }>>;
2098
+ can_set_hard_caps: z.ZodOptional<z.ZodEnum<{
2099
+ subscription_status_unrecognized: "subscription_status_unrecognized";
2100
+ creator_only_provisioning: "creator_only_provisioning";
2101
+ not_a_member: "not_a_member";
2102
+ not_workspace_owner: "not_workspace_owner";
2103
+ free_plan: "free_plan";
2104
+ no_subscription: "no_subscription";
2105
+ subscription_ended: "subscription_ended";
2106
+ subscription_not_started: "subscription_not_started";
2107
+ plan_not_enterprise: "plan_not_enterprise";
2108
+ }>>;
2038
2109
  can_subscribe_self_serve: z.ZodOptional<z.ZodEnum<{
2039
2110
  subscription_status_unrecognized: "subscription_status_unrecognized";
2040
2111
  creator_only_provisioning: "creator_only_provisioning";
@@ -2167,19 +2238,11 @@ export declare const zBillingEventsResponse: z.ZodObject<{
2167
2238
  totalPages: z.ZodInt;
2168
2239
  }, z.core.$strip>;
2169
2240
  /**
2170
- * Asks for a one-time handoff that signs a billing receiver tab in as the caller.
2241
+ * The plan a Platform billing tab continues to checkout with. Selections only; checkout prices them.
2171
2242
  */
2172
- export declare const zBillingHandoffCreateRequest: z.ZodObject<{
2173
- client_version: z.ZodString;
2174
- receiver: z.ZodEnum<{
2175
- billing_web: "billing_web";
2176
- platform: "platform";
2177
- }>;
2178
- surface: z.ZodEnum<{
2179
- local_web: "local_web";
2180
- desktop: "desktop";
2181
- }>;
2182
- workspace_id: z.ZodString;
2243
+ export declare const zBillingHandoffCheckoutRequest: z.ZodObject<{
2244
+ plan_slug: z.ZodString;
2245
+ team_credit_stop_id: z.ZodOptional<z.ZodString>;
2183
2246
  }, z.core.$strip>;
2184
2247
  /**
2185
2248
  * An issued handoff. The token is single use and expires within 60 seconds.
@@ -2237,6 +2300,17 @@ export declare const zBillingOpCancelResponse: z.ZodObject<{
2237
2300
  cancel_requested: "cancel_requested";
2238
2301
  }>;
2239
2302
  }, z.core.$strip>;
2303
+ /**
2304
+ * How a billing operation ended, for a billing handoff tab whose scoped session has ended.
2305
+ */
2306
+ export declare const zBillingOpOutcomeResponse: z.ZodObject<{
2307
+ status: z.ZodEnum<{
2308
+ failed: "failed";
2309
+ pending: "pending";
2310
+ succeeded: "succeeded";
2311
+ reconciliation_needed: "reconciliation_needed";
2312
+ }>;
2313
+ }, z.core.$strip>;
2240
2314
  /**
2241
2315
  * Payment lifecycle status
2242
2316
  */
@@ -2299,6 +2373,253 @@ export declare const zBillingCompanyDetailsUpdateRequest: z.ZodObject<{
2299
2373
  value: z.ZodString;
2300
2374
  }, z.core.$strip>>;
2301
2375
  }, z.core.$strip>;
2376
+ /**
2377
+ * What happened to a threshold alert's email. `sent`: the email provider accepted it for at least one recipient, which is not proof it was delivered or read. `failed`: no one was sent it and at least one send failed. `skipped`: there was nothing to send, for example no recipient has an email address. Show `failed` and `skipped` as "not sent"; neither means the threshold was not crossed.
2378
+ *
2379
+ */
2380
+ export declare const zBudgetAlertStatus: z.ZodEnum<{
2381
+ failed: "failed";
2382
+ sent: "sent";
2383
+ skipped: "skipped";
2384
+ }>;
2385
+ /**
2386
+ * The email outcome of one threshold alert in the current billing period. It records the email, not the crossing.
2387
+ *
2388
+ */
2389
+ export declare const zBudgetAlert: z.ZodObject<{
2390
+ percent: z.ZodInt;
2391
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
2392
+ status: z.ZodEnum<{
2393
+ failed: "failed";
2394
+ sent: "sent";
2395
+ skipped: "skipped";
2396
+ }>;
2397
+ }, z.core.$strip>;
2398
+ export declare const zBudgetChange: z.ZodObject<{
2399
+ action: z.ZodEnum<{
2400
+ archived: "archived";
2401
+ created: "created";
2402
+ updated: "updated";
2403
+ downgraded: "downgraded";
2404
+ }>;
2405
+ actor_user_id: z.ZodString;
2406
+ after: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2407
+ before: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2408
+ changed_at: z.ZodISODateTime;
2409
+ }, z.core.$strip>;
2410
+ export declare const zBudgetHistory: z.ZodObject<{
2411
+ changes: z.ZodArray<z.ZodObject<{
2412
+ action: z.ZodEnum<{
2413
+ archived: "archived";
2414
+ created: "created";
2415
+ updated: "updated";
2416
+ downgraded: "downgraded";
2417
+ }>;
2418
+ actor_user_id: z.ZodString;
2419
+ after: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2420
+ before: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2421
+ changed_at: z.ZodISODateTime;
2422
+ }, z.core.$strip>>;
2423
+ }, z.core.$strip>;
2424
+ /**
2425
+ * `soft` alerts at its thresholds and never refuses spend. `hard` also refuses spend once the limit is reached; Enterprise plans only.
2426
+ *
2427
+ */
2428
+ export declare const zBudgetMode: z.ZodEnum<{
2429
+ hard: "hard";
2430
+ soft: "soft";
2431
+ }>;
2432
+ /**
2433
+ * How long a budget applies. `current_period`: until the current billing period ends. `until`: through the period holding `ends_at`. `indefinitely`: every period, with no end.
2434
+ *
2435
+ */
2436
+ export declare const zBudgetRepeat: z.ZodEnum<{
2437
+ current_period: "current_period";
2438
+ until: "until";
2439
+ indefinitely: "indefinitely";
2440
+ }>;
2441
+ /**
2442
+ * What a budget limits.
2443
+ */
2444
+ export declare const zBudgetScopeKind: z.ZodEnum<{
2445
+ member: "member";
2446
+ workspace: "workspace";
2447
+ api_key: "api_key";
2448
+ deployment: "deployment";
2449
+ }>;
2450
+ /**
2451
+ * A budget with its spend in the workspace's current billing period. Amounts come in credits and in micro-USD; a client shows credits as received and never converts.
2452
+ *
2453
+ */
2454
+ export declare const zBudget: z.ZodObject<{
2455
+ alert_percents: z.ZodArray<z.ZodInt>;
2456
+ alerts: z.ZodArray<z.ZodObject<{
2457
+ percent: z.ZodInt;
2458
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
2459
+ status: z.ZodEnum<{
2460
+ failed: "failed";
2461
+ sent: "sent";
2462
+ skipped: "skipped";
2463
+ }>;
2464
+ }, z.core.$strip>>;
2465
+ alerts_available: z.ZodBoolean;
2466
+ created_by: z.ZodString;
2467
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
2468
+ ends_at: z.ZodNullable<z.ZodISODateTime>;
2469
+ id: z.ZodString;
2470
+ limit_credits: z.ZodCoercedBigInt<unknown>;
2471
+ limit_micro_usd: z.ZodCoercedBigInt<unknown>;
2472
+ mode: z.ZodEnum<{
2473
+ hard: "hard";
2474
+ soft: "soft";
2475
+ }>;
2476
+ owner_email: z.ZodNullable<z.ZodString>;
2477
+ percent_used: z.ZodCoercedBigInt<unknown>;
2478
+ repeat: z.ZodEnum<{
2479
+ current_period: "current_period";
2480
+ until: "until";
2481
+ indefinitely: "indefinitely";
2482
+ }>;
2483
+ resets_at: z.ZodNullable<z.ZodISODateTime>;
2484
+ scope_id: z.ZodString;
2485
+ scope_kind: z.ZodEnum<{
2486
+ member: "member";
2487
+ workspace: "workspace";
2488
+ api_key: "api_key";
2489
+ deployment: "deployment";
2490
+ }>;
2491
+ spend_updated_at: z.ZodNullable<z.ZodISODateTime>;
2492
+ spent_credits: z.ZodCoercedBigInt<unknown>;
2493
+ spent_micro_usd: z.ZodCoercedBigInt<unknown>;
2494
+ updated_by: z.ZodString;
2495
+ }, z.core.$strip>;
2496
+ export declare const zBudgetCreateRequest: z.ZodObject<{
2497
+ alert_percents: z.ZodOptional<z.ZodArray<z.ZodInt>>;
2498
+ ends_at: z.ZodOptional<z.ZodISODateTime>;
2499
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
2500
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
2501
+ mode: z.ZodEnum<{
2502
+ hard: "hard";
2503
+ soft: "soft";
2504
+ }>;
2505
+ repeat: z.ZodOptional<z.ZodEnum<{
2506
+ current_period: "current_period";
2507
+ until: "until";
2508
+ indefinitely: "indefinitely";
2509
+ }>>;
2510
+ scope_id: z.ZodString;
2511
+ scope_kind: z.ZodEnum<{
2512
+ member: "member";
2513
+ workspace: "workspace";
2514
+ api_key: "api_key";
2515
+ deployment: "deployment";
2516
+ }>;
2517
+ }, z.core.$strip>;
2518
+ export declare const zBudgetList: z.ZodObject<{
2519
+ auto_top_up_conflict: z.ZodBoolean;
2520
+ budgets: z.ZodArray<z.ZodObject<{
2521
+ alert_percents: z.ZodArray<z.ZodInt>;
2522
+ alerts: z.ZodArray<z.ZodObject<{
2523
+ percent: z.ZodInt;
2524
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
2525
+ status: z.ZodEnum<{
2526
+ failed: "failed";
2527
+ sent: "sent";
2528
+ skipped: "skipped";
2529
+ }>;
2530
+ }, z.core.$strip>>;
2531
+ alerts_available: z.ZodBoolean;
2532
+ created_by: z.ZodString;
2533
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
2534
+ ends_at: z.ZodNullable<z.ZodISODateTime>;
2535
+ id: z.ZodString;
2536
+ limit_credits: z.ZodCoercedBigInt<unknown>;
2537
+ limit_micro_usd: z.ZodCoercedBigInt<unknown>;
2538
+ mode: z.ZodEnum<{
2539
+ hard: "hard";
2540
+ soft: "soft";
2541
+ }>;
2542
+ owner_email: z.ZodNullable<z.ZodString>;
2543
+ percent_used: z.ZodCoercedBigInt<unknown>;
2544
+ repeat: z.ZodEnum<{
2545
+ current_period: "current_period";
2546
+ until: "until";
2547
+ indefinitely: "indefinitely";
2548
+ }>;
2549
+ resets_at: z.ZodNullable<z.ZodISODateTime>;
2550
+ scope_id: z.ZodString;
2551
+ scope_kind: z.ZodEnum<{
2552
+ member: "member";
2553
+ workspace: "workspace";
2554
+ api_key: "api_key";
2555
+ deployment: "deployment";
2556
+ }>;
2557
+ spend_updated_at: z.ZodNullable<z.ZodISODateTime>;
2558
+ spent_credits: z.ZodCoercedBigInt<unknown>;
2559
+ spent_micro_usd: z.ZodCoercedBigInt<unknown>;
2560
+ updated_by: z.ZodString;
2561
+ }, z.core.$strip>>;
2562
+ }, z.core.$strip>;
2563
+ export declare const zBudgetUpdateRequest: z.ZodObject<{
2564
+ alert_percents: z.ZodOptional<z.ZodArray<z.ZodInt>>;
2565
+ ends_at: z.ZodOptional<z.ZodISODateTime>;
2566
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
2567
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
2568
+ mode: z.ZodOptional<z.ZodEnum<{
2569
+ hard: "hard";
2570
+ soft: "soft";
2571
+ }>>;
2572
+ repeat: z.ZodOptional<z.ZodEnum<{
2573
+ current_period: "current_period";
2574
+ until: "until";
2575
+ indefinitely: "indefinitely";
2576
+ }>>;
2577
+ }, z.core.$strip>;
2578
+ export declare const zBudgetWriteResult: z.ZodObject<{
2579
+ auto_top_up_conflict: z.ZodBoolean;
2580
+ budget: z.ZodObject<{
2581
+ alert_percents: z.ZodArray<z.ZodInt>;
2582
+ alerts: z.ZodArray<z.ZodObject<{
2583
+ percent: z.ZodInt;
2584
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
2585
+ status: z.ZodEnum<{
2586
+ failed: "failed";
2587
+ sent: "sent";
2588
+ skipped: "skipped";
2589
+ }>;
2590
+ }, z.core.$strip>>;
2591
+ alerts_available: z.ZodBoolean;
2592
+ created_by: z.ZodString;
2593
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
2594
+ ends_at: z.ZodNullable<z.ZodISODateTime>;
2595
+ id: z.ZodString;
2596
+ limit_credits: z.ZodCoercedBigInt<unknown>;
2597
+ limit_micro_usd: z.ZodCoercedBigInt<unknown>;
2598
+ mode: z.ZodEnum<{
2599
+ hard: "hard";
2600
+ soft: "soft";
2601
+ }>;
2602
+ owner_email: z.ZodNullable<z.ZodString>;
2603
+ percent_used: z.ZodCoercedBigInt<unknown>;
2604
+ repeat: z.ZodEnum<{
2605
+ current_period: "current_period";
2606
+ until: "until";
2607
+ indefinitely: "indefinitely";
2608
+ }>;
2609
+ resets_at: z.ZodNullable<z.ZodISODateTime>;
2610
+ scope_id: z.ZodString;
2611
+ scope_kind: z.ZodEnum<{
2612
+ member: "member";
2613
+ workspace: "workspace";
2614
+ api_key: "api_key";
2615
+ deployment: "deployment";
2616
+ }>;
2617
+ spend_updated_at: z.ZodNullable<z.ZodISODateTime>;
2618
+ spent_credits: z.ZodCoercedBigInt<unknown>;
2619
+ spent_micro_usd: z.ZodCoercedBigInt<unknown>;
2620
+ updated_by: z.ZodString;
2621
+ }, z.core.$strip>;
2622
+ }, z.core.$strip>;
2302
2623
  /**
2303
2624
  * Response after bulk-revoking API keys for a workspace member.
2304
2625
  */
@@ -2616,6 +2937,7 @@ export declare const zCccPageRow: z.ZodObject<{
2616
2937
  has_live: z.ZodBoolean;
2617
2938
  held_until_start: z.ZodBoolean;
2618
2939
  is_deleted: z.ZodBoolean;
2940
+ on_desktop: z.ZodBoolean;
2619
2941
  on_hub: z.ZodBoolean;
2620
2942
  presentation: z.ZodObject<{
2621
2943
  preview: z.ZodOptional<z.ZodObject<{
@@ -2677,6 +2999,7 @@ export declare const zCccPagesPage: z.ZodObject<{
2677
2999
  has_live: z.ZodBoolean;
2678
3000
  held_until_start: z.ZodBoolean;
2679
3001
  is_deleted: z.ZodBoolean;
3002
+ on_desktop: z.ZodBoolean;
2680
3003
  on_hub: z.ZodBoolean;
2681
3004
  presentation: z.ZodObject<{
2682
3005
  preview: z.ZodOptional<z.ZodObject<{
@@ -3162,6 +3485,7 @@ export declare const zCccWebsiteRootTab: z.ZodObject<{
3162
3485
  sort_orders: z.ZodArray<z.ZodEnum<{
3163
3486
  name: "name";
3164
3487
  popular: "popular";
3488
+ newest: "newest";
3165
3489
  priceAsc: "priceAsc";
3166
3490
  priceDesc: "priceDesc";
3167
3491
  }>>;
@@ -3192,6 +3516,7 @@ export declare const zCccWebsiteRootTabs: z.ZodObject<{
3192
3516
  sort_orders: z.ZodArray<z.ZodEnum<{
3193
3517
  name: "name";
3194
3518
  popular: "popular";
3519
+ newest: "newest";
3195
3520
  priceAsc: "priceAsc";
3196
3521
  priceDesc: "priceDesc";
3197
3522
  }>>;
@@ -3221,6 +3546,7 @@ export declare const zCccWebsiteRootTabs: z.ZodObject<{
3221
3546
  sort_orders: z.ZodArray<z.ZodEnum<{
3222
3547
  name: "name";
3223
3548
  popular: "popular";
3549
+ newest: "newest";
3224
3550
  priceAsc: "priceAsc";
3225
3551
  priceDesc: "priceDesc";
3226
3552
  }>>;
@@ -3250,6 +3576,7 @@ export declare const zCccWebsiteRootTabs: z.ZodObject<{
3250
3576
  sort_orders: z.ZodArray<z.ZodEnum<{
3251
3577
  name: "name";
3252
3578
  popular: "popular";
3579
+ newest: "newest";
3253
3580
  priceAsc: "priceAsc";
3254
3581
  priceDesc: "priceDesc";
3255
3582
  }>>;
@@ -3415,6 +3742,7 @@ export declare const zCccWebsiteCardsPage: z.ZodObject<{
3415
3742
  sort_orders: z.ZodArray<z.ZodEnum<{
3416
3743
  name: "name";
3417
3744
  popular: "popular";
3745
+ newest: "newest";
3418
3746
  priceAsc: "priceAsc";
3419
3747
  priceDesc: "priceDesc";
3420
3748
  }>>;
@@ -3481,6 +3809,7 @@ export declare const zCccWebsiteRootPresentation: z.ZodObject<{
3481
3809
  sort_orders: z.ZodArray<z.ZodEnum<{
3482
3810
  name: "name";
3483
3811
  popular: "popular";
3812
+ newest: "newest";
3484
3813
  priceAsc: "priceAsc";
3485
3814
  priceDesc: "priceDesc";
3486
3815
  }>>;
@@ -3510,6 +3839,7 @@ export declare const zCccWebsiteRootPresentation: z.ZodObject<{
3510
3839
  sort_orders: z.ZodArray<z.ZodEnum<{
3511
3840
  name: "name";
3512
3841
  popular: "popular";
3842
+ newest: "newest";
3513
3843
  priceAsc: "priceAsc";
3514
3844
  priceDesc: "priceDesc";
3515
3845
  }>>;
@@ -3539,6 +3869,7 @@ export declare const zCccWebsiteRootPresentation: z.ZodObject<{
3539
3869
  sort_orders: z.ZodArray<z.ZodEnum<{
3540
3870
  name: "name";
3541
3871
  popular: "popular";
3872
+ newest: "newest";
3542
3873
  priceAsc: "priceAsc";
3543
3874
  priceDesc: "priceDesc";
3544
3875
  }>>;
@@ -3874,6 +4205,70 @@ export declare const zDeployToCloudError: z.ZodObject<{
3874
4205
  export declare const zDeploymentCompatibilityRequest: z.ZodObject<{
3875
4206
  node_types: z.ZodArray<z.ZodString>;
3876
4207
  }, z.core.$strip>;
4208
+ /**
4209
+ * comfy-builder's BlobUploadComplete (its POST /v1/blobs/{id}/complete 200), passed through as written.
4210
+ */
4211
+ export declare const zDeploymentModelUploadComplete: z.ZodObject<{
4212
+ blobId: z.ZodString;
4213
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4214
+ }, z.core.$strip>;
4215
+ /**
4216
+ * comfy-builder's 409 on the parts and complete routes, passed through as written. It never carries `code`.
4217
+ */
4218
+ export declare const zDeploymentModelUploadConflict: z.ZodObject<{
4219
+ error: z.ZodString;
4220
+ message: z.ZodOptional<z.ZodString>;
4221
+ }, z.core.$strip>;
4222
+ /**
4223
+ * comfy-builder's BlobUploadPart, passed through as written.
4224
+ */
4225
+ export declare const zDeploymentModelUploadPart: z.ZodObject<{
4226
+ expiresAt: z.ZodISODateTime;
4227
+ offsetBytes: z.ZodCoercedBigInt<unknown>;
4228
+ partNumber: z.ZodInt;
4229
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4230
+ uploadUrl: z.ZodString;
4231
+ }, z.core.$strip>;
4232
+ /**
4233
+ * comfy-builder's BlobUpload (its POST /v1/blobs 201), passed through as written; the fields are comfy-builder's.
4234
+ */
4235
+ export declare const zDeploymentModelUpload: z.ZodObject<{
4236
+ blobId: z.ZodString;
4237
+ deduplicated: z.ZodBoolean;
4238
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
4239
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
4240
+ expiresAt: z.ZodISODateTime;
4241
+ offsetBytes: z.ZodCoercedBigInt<unknown>;
4242
+ partNumber: z.ZodInt;
4243
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4244
+ uploadUrl: z.ZodString;
4245
+ }, z.core.$strip>>>;
4246
+ uploadUrl: z.ZodOptional<z.ZodString>;
4247
+ }, z.core.$strip>;
4248
+ /**
4249
+ * comfy-builder's BlobUploadParts (its POST /v1/blobs/{id}/parts 200), passed through as written.
4250
+ */
4251
+ export declare const zDeploymentModelUploadParts: z.ZodObject<{
4252
+ blobId: z.ZodString;
4253
+ parts: z.ZodArray<z.ZodObject<{
4254
+ expiresAt: z.ZodISODateTime;
4255
+ offsetBytes: z.ZodCoercedBigInt<unknown>;
4256
+ partNumber: z.ZodInt;
4257
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4258
+ uploadUrl: z.ZodString;
4259
+ }, z.core.$strip>>;
4260
+ }, z.core.$strip>;
4261
+ /**
4262
+ * comfy-builder's CreateBlobRequest without `kind`, which ingest sets to `model`; the fields are passed on as written.
4263
+ */
4264
+ export declare const zDeploymentModelUploadRequest: z.ZodObject<{
4265
+ blake3: z.ZodOptional<z.ZodString>;
4266
+ filename: z.ZodString;
4267
+ parts: z.ZodOptional<z.ZodBoolean>;
4268
+ reuse: z.ZodOptional<z.ZodBoolean>;
4269
+ sha256: z.ZodString;
4270
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4271
+ }, z.core.$strip>;
3877
4272
  export declare const zDeploymentNodeCompatibility: z.ZodObject<{
3878
4273
  deployment_id: z.ZodString;
3879
4274
  missing_node_types: z.ZodArray<z.ZodString>;
@@ -4517,6 +4912,7 @@ export declare const zJobEntry: z.ZodObject<{
4517
4912
  outputs_count: z.ZodOptional<z.ZodInt>;
4518
4913
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4519
4914
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
4915
+ project_id: z.ZodOptional<z.ZodString>;
4520
4916
  status: z.ZodEnum<{
4521
4917
  cancelled: "cancelled";
4522
4918
  completed: "completed";
@@ -4577,6 +4973,7 @@ export declare const zJobDetailResponse: z.ZodObject<{
4577
4973
  outputs_count: z.ZodOptional<z.ZodInt>;
4578
4974
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4579
4975
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
4976
+ project_id: z.ZodOptional<z.ZodString>;
4580
4977
  queue_position: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4581
4978
  queue_reason: z.ZodOptional<z.ZodEnum<{
4582
4979
  concurrency_limit: "concurrency_limit";
@@ -4872,6 +5269,32 @@ export declare const zHubWorkflowListResponse: z.ZodObject<{
4872
5269
  workflow_json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4873
5270
  }, z.core.$strip>]>>;
4874
5271
  }, z.core.$strip>;
5272
+ /**
5273
+ * A page of access changes, newest first.
5274
+ */
5275
+ export declare const zListAccessEventsResponse: z.ZodObject<{
5276
+ events: z.ZodArray<z.ZodObject<{
5277
+ action: z.ZodString;
5278
+ actor: z.ZodObject<{
5279
+ name: z.ZodString;
5280
+ user_id: z.ZodString;
5281
+ }, z.core.$strip>;
5282
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5283
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5284
+ create_time: z.ZodISODateTime;
5285
+ id: z.ZodUUID;
5286
+ project_id: z.ZodOptional<z.ZodString>;
5287
+ project_name: z.ZodOptional<z.ZodString>;
5288
+ target: z.ZodOptional<z.ZodObject<{
5289
+ name: z.ZodString;
5290
+ user_id: z.ZodString;
5291
+ }, z.core.$strip>>;
5292
+ }, z.core.$strip>>;
5293
+ pagination: z.ZodObject<{
5294
+ has_more: z.ZodBoolean;
5295
+ next_cursor: z.ZodOptional<z.ZodString>;
5296
+ }, z.core.$strip>;
5297
+ }, z.core.$strip>;
4875
5298
  /**
4876
5299
  * Paginated list of assets belonging to the authenticated user.
4877
5300
  */
@@ -4891,6 +5314,7 @@ export declare const zListAssetsResponse: z.ZodObject<{
4891
5314
  name: z.ZodString;
4892
5315
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
4893
5316
  preview_url: z.ZodOptional<z.ZodURL>;
5317
+ project_id: z.ZodOptional<z.ZodString>;
4894
5318
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4895
5319
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
4896
5320
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -5068,7 +5492,7 @@ export declare const zOAuthConsentChallengeWorkspace: z.ZodObject<{
5068
5492
  /**
5069
5493
  * The platform this authorization code will be delivered to, when the
5070
5494
  * request's validated redirect_uri is one of a known platform's own OAuth
5071
- * callbacks (ChatGPT, Claude). Derived server-side ONLY from the
5495
+ * callbacks (ChatGPT, Claude, Cursor). Derived server-side ONLY from the
5072
5496
  * redirect_uri this request was byte-matched against at GET time —
5073
5497
  * never from the registrant-supplied client_name — against a
5074
5498
  * version-controlled registry of exact callbacks and anchored callback
@@ -5076,8 +5500,10 @@ export declare const zOAuthConsentChallengeWorkspace: z.ZodObject<{
5076
5500
  * clients; omitted for first-party clients and for any redirect that is
5077
5501
  * not a registered platform callback. It verifies the destination
5078
5502
  * platform, NOT that the registrant is that platform's own app (any
5079
- * connector on the platform can hold such a callback), so consumers
5080
- * should label it by `display_name` and still show the redirect host.
5503
+ * connector on the platform can hold such a callback, and any local
5504
+ * process can listen on Cursor's loopback callback or claim its
5505
+ * `cursor://` scheme), so consumers should label it by `display_name`
5506
+ * and still show the redirect host.
5081
5507
  * `client_display_name` is unchanged and remains registrant-supplied.
5082
5508
  *
5083
5509
  */
@@ -5086,6 +5512,7 @@ export declare const zOAuthConsentVerifiedClient: z.ZodObject<{
5086
5512
  platform: z.ZodEnum<{
5087
5513
  chatgpt: "chatgpt";
5088
5514
  claude: "claude";
5515
+ cursor: "cursor";
5089
5516
  }>;
5090
5517
  }, z.core.$strip>;
5091
5518
  /**
@@ -5108,6 +5535,7 @@ export declare const zOAuthConsentChallenge: z.ZodObject<{
5108
5535
  platform: z.ZodEnum<{
5109
5536
  chatgpt: "chatgpt";
5110
5537
  claude: "claude";
5538
+ cursor: "cursor";
5111
5539
  }>;
5112
5540
  }, z.core.$strip>>;
5113
5541
  workspaces: z.ZodArray<z.ZodObject<{
@@ -5307,6 +5735,7 @@ export declare const zJobsListResponse: z.ZodObject<{
5307
5735
  outputs_count: z.ZodOptional<z.ZodInt>;
5308
5736
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5309
5737
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
5738
+ project_id: z.ZodOptional<z.ZodString>;
5310
5739
  status: z.ZodEnum<{
5311
5740
  cancelled: "cancelled";
5312
5741
  completed: "completed";
@@ -5466,6 +5895,10 @@ export declare const zPlanSeatSummary: z.ZodObject<{
5466
5895
  total_cost_cents: z.ZodCoercedBigInt<unknown>;
5467
5896
  total_credits_cents: z.ZodCoercedBigInt<unknown>;
5468
5897
  }, z.core.$strip>;
5898
+ /**
5899
+ * comfy-deploy's or comfy-builder's answer, passed through as written; its shape is that service's. Their refusals are `{error, message}` (Echo's own only `message`) and never carry `code`.
5900
+ */
5901
+ export declare const zPlatformPassthroughBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5469
5902
  /**
5470
5903
  * Request body for previewing the cost of a plan subscription change.
5471
5904
  */
@@ -5483,51 +5916,437 @@ export declare const zPreviousPlan: z.ZodObject<{
5483
5916
  team_credit_stop_id: z.ZodOptional<z.ZodString>;
5484
5917
  }, z.core.$strip>;
5485
5918
  /**
5486
- * Error response for ComfyUI prompt execution.
5919
+ * What the caller may do with one kind of thing in a project. `write` includes `read`. On things that belong to one person (runs, assets, usage) the level carries a scope: `_own` covers what the caller created and `_all` covers everyone's, and `_all` includes `_own`.
5487
5920
  */
5488
- export declare const zPromptErrorResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5921
+ export declare const zProjectPermissionLevel: z.ZodEnum<{
5922
+ read: "read";
5923
+ write: "write";
5924
+ read_own: "read_own";
5925
+ read_all: "read_all";
5926
+ write_own: "write_own";
5927
+ write_all: "write_all";
5928
+ }>;
5489
5929
  /**
5490
- * Metadata about the currently running and queued prompts.
5930
+ * The caller's permissions in this project, for showing and hiding actions. Render each as received; do not rebuild them from `my_role` or the workspace role. An absent key means no access. Each write is checked again by the server.
5491
5931
  */
5492
- export declare const zPromptInfo: z.ZodObject<{
5493
- exec_info: z.ZodOptional<z.ZodObject<{
5494
- queue_remaining: z.ZodOptional<z.ZodInt>;
5495
- }, z.core.$strip>>;
5932
+ export declare const zProjectPermissions: z.ZodObject<{
5933
+ project: z.ZodOptional<z.ZodEnum<{
5934
+ read: "read";
5935
+ write: "write";
5936
+ read_own: "read_own";
5937
+ read_all: "read_all";
5938
+ write_own: "write_own";
5939
+ write_all: "write_all";
5940
+ }>>;
5941
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
5942
+ read: "read";
5943
+ write: "write";
5944
+ read_own: "read_own";
5945
+ read_all: "read_all";
5946
+ write_own: "write_own";
5947
+ write_all: "write_all";
5948
+ }>>;
5949
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
5950
+ read: "read";
5951
+ write: "write";
5952
+ read_own: "read_own";
5953
+ read_all: "read_all";
5954
+ write_own: "write_own";
5955
+ write_all: "write_all";
5956
+ }>>;
5957
+ 'project.members': z.ZodOptional<z.ZodEnum<{
5958
+ read: "read";
5959
+ write: "write";
5960
+ read_own: "read_own";
5961
+ read_all: "read_all";
5962
+ write_own: "write_own";
5963
+ write_all: "write_all";
5964
+ }>>;
5965
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
5966
+ read: "read";
5967
+ write: "write";
5968
+ read_own: "read_own";
5969
+ read_all: "read_all";
5970
+ write_own: "write_own";
5971
+ write_all: "write_all";
5972
+ }>>;
5973
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
5974
+ read: "read";
5975
+ write: "write";
5976
+ read_own: "read_own";
5977
+ read_all: "read_all";
5978
+ write_own: "write_own";
5979
+ write_all: "write_all";
5980
+ }>>;
5981
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
5982
+ read: "read";
5983
+ write: "write";
5984
+ read_own: "read_own";
5985
+ read_all: "read_all";
5986
+ write_own: "write_own";
5987
+ write_all: "write_all";
5988
+ }>>;
5496
5989
  }, z.core.$strip>;
5497
5990
  /**
5498
- * Request body for submitting a ComfyUI workflow prompt for execution.
5991
+ * How many projects the workspace may have and has.
5499
5992
  */
5500
- export declare const zPromptRequest: z.ZodObject<{
5501
- extra_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5502
- front: z.ZodOptional<z.ZodBoolean>;
5503
- number: z.ZodOptional<z.ZodNumber>;
5504
- partial_execution_targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
5505
- prompt: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5506
- workflow_id: z.ZodOptional<z.ZodString>;
5507
- workflow_version_id: z.ZodOptional<z.ZodString>;
5993
+ export declare const zProjectQuota: z.ZodObject<{
5994
+ active: z.ZodInt;
5995
+ can_create: z.ZodBoolean;
5996
+ max_active: z.ZodInt;
5508
5997
  }, z.core.$strip>;
5509
5998
  /**
5510
- * Response returned after successfully queuing a workflow prompt.
5999
+ * A person's role in one project. A Runner runs existing workflows. A Builder also creates and edits workflows. A Project admin also manages the project, its members and its deployments.
5511
6000
  */
5512
- export declare const zPromptResponse: z.ZodObject<{
5513
- node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5514
- number: z.ZodOptional<z.ZodNumber>;
5515
- prompt_id: z.ZodOptional<z.ZodUUID>;
5516
- }, z.core.$strip>;
6001
+ export declare const zProjectRole: z.ZodEnum<{
6002
+ runner: "runner";
6003
+ builder: "builder";
6004
+ project_admin: "project_admin";
6005
+ }>;
5517
6006
  /**
5518
- * The partner-provider governance catalog: every governable provider, identical for all workspaces. A projection of the curated catalog minus the internal api_names.
6007
+ * A private, invite-only space inside a workspace, or the workspace's default project.
5519
6008
  */
5520
- export declare const zProviderCatalogResponse: z.ZodObject<{
5521
- providers: z.ZodArray<z.ZodObject<{
5522
- display_name: z.ZodString;
5523
- node_categories: z.ZodArray<z.ZodString>;
5524
- provider_id: z.ZodString;
5525
- }, z.core.$strip>>;
6009
+ export declare const zProject: z.ZodObject<{
6010
+ create_time: z.ZodISODateTime;
6011
+ created_by_user_id: z.ZodOptional<z.ZodString>;
6012
+ description: z.ZodOptional<z.ZodString>;
6013
+ id: z.ZodString;
6014
+ is_default: z.ZodBoolean;
6015
+ my_role: z.ZodOptional<z.ZodEnum<{
6016
+ runner: "runner";
6017
+ builder: "builder";
6018
+ project_admin: "project_admin";
6019
+ }>>;
6020
+ name: z.ZodString;
6021
+ permissions: z.ZodObject<{
6022
+ project: z.ZodOptional<z.ZodEnum<{
6023
+ read: "read";
6024
+ write: "write";
6025
+ read_own: "read_own";
6026
+ read_all: "read_all";
6027
+ write_own: "write_own";
6028
+ write_all: "write_all";
6029
+ }>>;
6030
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
6031
+ read: "read";
6032
+ write: "write";
6033
+ read_own: "read_own";
6034
+ read_all: "read_all";
6035
+ write_own: "write_own";
6036
+ write_all: "write_all";
6037
+ }>>;
6038
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
6039
+ read: "read";
6040
+ write: "write";
6041
+ read_own: "read_own";
6042
+ read_all: "read_all";
6043
+ write_own: "write_own";
6044
+ write_all: "write_all";
6045
+ }>>;
6046
+ 'project.members': z.ZodOptional<z.ZodEnum<{
6047
+ read: "read";
6048
+ write: "write";
6049
+ read_own: "read_own";
6050
+ read_all: "read_all";
6051
+ write_own: "write_own";
6052
+ write_all: "write_all";
6053
+ }>>;
6054
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
6055
+ read: "read";
6056
+ write: "write";
6057
+ read_own: "read_own";
6058
+ read_all: "read_all";
6059
+ write_own: "write_own";
6060
+ write_all: "write_all";
6061
+ }>>;
6062
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
6063
+ read: "read";
6064
+ write: "write";
6065
+ read_own: "read_own";
6066
+ read_all: "read_all";
6067
+ write_own: "write_own";
6068
+ write_all: "write_all";
6069
+ }>>;
6070
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
6071
+ read: "read";
6072
+ write: "write";
6073
+ read_own: "read_own";
6074
+ read_all: "read_all";
6075
+ write_own: "write_own";
6076
+ write_all: "write_all";
6077
+ }>>;
6078
+ }, z.core.$strip>;
6079
+ shared_cloud_allowed: z.ZodBoolean;
6080
+ update_time: z.ZodISODateTime;
6081
+ workspace_id: z.ZodString;
6082
+ writable: z.ZodBoolean;
5526
6083
  }, z.core.$strip>;
5527
6084
  /**
5528
- * One provider's policy state.
6085
+ * The projects the caller can view, with the workspace's project quota.
5529
6086
  */
5530
- export declare const zProviderPolicyEntry: z.ZodObject<{
6087
+ export declare const zListProjectsResponse: z.ZodObject<{
6088
+ projects: z.ZodArray<z.ZodObject<{
6089
+ create_time: z.ZodISODateTime;
6090
+ created_by_user_id: z.ZodOptional<z.ZodString>;
6091
+ description: z.ZodOptional<z.ZodString>;
6092
+ id: z.ZodString;
6093
+ is_default: z.ZodBoolean;
6094
+ my_role: z.ZodOptional<z.ZodEnum<{
6095
+ runner: "runner";
6096
+ builder: "builder";
6097
+ project_admin: "project_admin";
6098
+ }>>;
6099
+ name: z.ZodString;
6100
+ permissions: z.ZodObject<{
6101
+ project: z.ZodOptional<z.ZodEnum<{
6102
+ read: "read";
6103
+ write: "write";
6104
+ read_own: "read_own";
6105
+ read_all: "read_all";
6106
+ write_own: "write_own";
6107
+ write_all: "write_all";
6108
+ }>>;
6109
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
6110
+ read: "read";
6111
+ write: "write";
6112
+ read_own: "read_own";
6113
+ read_all: "read_all";
6114
+ write_own: "write_own";
6115
+ write_all: "write_all";
6116
+ }>>;
6117
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
6118
+ read: "read";
6119
+ write: "write";
6120
+ read_own: "read_own";
6121
+ read_all: "read_all";
6122
+ write_own: "write_own";
6123
+ write_all: "write_all";
6124
+ }>>;
6125
+ 'project.members': z.ZodOptional<z.ZodEnum<{
6126
+ read: "read";
6127
+ write: "write";
6128
+ read_own: "read_own";
6129
+ read_all: "read_all";
6130
+ write_own: "write_own";
6131
+ write_all: "write_all";
6132
+ }>>;
6133
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
6134
+ read: "read";
6135
+ write: "write";
6136
+ read_own: "read_own";
6137
+ read_all: "read_all";
6138
+ write_own: "write_own";
6139
+ write_all: "write_all";
6140
+ }>>;
6141
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
6142
+ read: "read";
6143
+ write: "write";
6144
+ read_own: "read_own";
6145
+ read_all: "read_all";
6146
+ write_own: "write_own";
6147
+ write_all: "write_all";
6148
+ }>>;
6149
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
6150
+ read: "read";
6151
+ write: "write";
6152
+ read_own: "read_own";
6153
+ read_all: "read_all";
6154
+ write_own: "write_own";
6155
+ write_all: "write_all";
6156
+ }>>;
6157
+ }, z.core.$strip>;
6158
+ shared_cloud_allowed: z.ZodBoolean;
6159
+ update_time: z.ZodISODateTime;
6160
+ workspace_id: z.ZodString;
6161
+ writable: z.ZodBoolean;
6162
+ }, z.core.$strip>>;
6163
+ projects_in_use: z.ZodBoolean;
6164
+ quota: z.ZodObject<{
6165
+ active: z.ZodInt;
6166
+ can_create: z.ZodBoolean;
6167
+ max_active: z.ZodInt;
6168
+ }, z.core.$strip>;
6169
+ }, z.core.$strip>;
6170
+ /**
6171
+ * A person in a project, with their project role.
6172
+ */
6173
+ export declare const zProjectMember: z.ZodObject<{
6174
+ added_by_user_id: z.ZodOptional<z.ZodString>;
6175
+ create_time: z.ZodISODateTime;
6176
+ email: z.ZodString;
6177
+ name: z.ZodString;
6178
+ role: z.ZodEnum<{
6179
+ runner: "runner";
6180
+ builder: "builder";
6181
+ project_admin: "project_admin";
6182
+ }>;
6183
+ user_id: z.ZodString;
6184
+ }, z.core.$strip>;
6185
+ /**
6186
+ * The people in a project.
6187
+ */
6188
+ export declare const zListProjectMembersResponse: z.ZodObject<{
6189
+ members: z.ZodArray<z.ZodObject<{
6190
+ added_by_user_id: z.ZodOptional<z.ZodString>;
6191
+ create_time: z.ZodISODateTime;
6192
+ email: z.ZodString;
6193
+ name: z.ZodString;
6194
+ role: z.ZodEnum<{
6195
+ runner: "runner";
6196
+ builder: "builder";
6197
+ project_admin: "project_admin";
6198
+ }>;
6199
+ user_id: z.ZodString;
6200
+ }, z.core.$strip>>;
6201
+ }, z.core.$strip>;
6202
+ /**
6203
+ * A workspace member to add to a project, with their project role.
6204
+ */
6205
+ export declare const zProjectMemberInput: z.ZodObject<{
6206
+ role: z.ZodEnum<{
6207
+ runner: "runner";
6208
+ builder: "builder";
6209
+ project_admin: "project_admin";
6210
+ }>;
6211
+ user_id: z.ZodString;
6212
+ }, z.core.$strip>;
6213
+ /**
6214
+ * Request body for creating a project.
6215
+ */
6216
+ export declare const zCreateProjectRequest: z.ZodObject<{
6217
+ description: z.ZodOptional<z.ZodString>;
6218
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
6219
+ role: z.ZodEnum<{
6220
+ runner: "runner";
6221
+ builder: "builder";
6222
+ project_admin: "project_admin";
6223
+ }>;
6224
+ user_id: z.ZodString;
6225
+ }, z.core.$strip>>>;
6226
+ name: z.ZodString;
6227
+ shared_cloud_allowed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6228
+ }, z.core.$strip>;
6229
+ /**
6230
+ * Error response for ComfyUI prompt execution.
6231
+ */
6232
+ export declare const zPromptErrorResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6233
+ /**
6234
+ * Metadata about the currently running and queued prompts.
6235
+ */
6236
+ export declare const zPromptInfo: z.ZodObject<{
6237
+ exec_info: z.ZodOptional<z.ZodObject<{
6238
+ queue_remaining: z.ZodOptional<z.ZodInt>;
6239
+ }, z.core.$strip>>;
6240
+ }, z.core.$strip>;
6241
+ /**
6242
+ * One validation error as ComfyUI reports it, with tracebacks and every other field removed. type, message and details are each present only when ComfyUI sent them as strings.
6243
+ */
6244
+ export declare const zPromptOutputsSkippedValidationError: z.ZodObject<{
6245
+ details: z.ZodOptional<z.ZodString>;
6246
+ extra_info: z.ZodOptional<z.ZodObject<{
6247
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6248
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6249
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6250
+ }, z.core.$strip>>;
6251
+ message: z.ZodOptional<z.ZodString>;
6252
+ type: z.ZodOptional<z.ZodString>;
6253
+ }, z.core.$strip>;
6254
+ /**
6255
+ * One rejected node in a prompt_outputs_skipped event.
6256
+ */
6257
+ export declare const zPromptOutputsSkippedNodeError: z.ZodObject<{
6258
+ class_type: z.ZodString;
6259
+ dependent_outputs: z.ZodArray<z.ZodString>;
6260
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6261
+ details: z.ZodOptional<z.ZodString>;
6262
+ extra_info: z.ZodOptional<z.ZodObject<{
6263
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6264
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6265
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6266
+ }, z.core.$strip>>;
6267
+ message: z.ZodOptional<z.ZodString>;
6268
+ type: z.ZodOptional<z.ZodString>;
6269
+ }, z.core.$strip>]>>;
6270
+ }, z.core.$strip>;
6271
+ /**
6272
+ * The `data` of a prompt_outputs_skipped WebSocket event. Sent when ComfyUI accepts a Cloud job's prompt but rejects some nodes: ComfyUI skips the outputs that depend on them and runs the rest, and the job keeps running. The inference server sends it to the user's channel (services/inference/server/services/joborchestrator/prompt_validation.go). Every string taken from ComfyUI has its lists of allowed values or file names replaced ("is not a valid value", "[list omitted]") and is capped at 512 characters.
6273
+ */
6274
+ export declare const zPromptOutputsSkippedData: z.ZodObject<{
6275
+ node_errors: z.ZodRecord<z.ZodString, z.ZodObject<{
6276
+ class_type: z.ZodString;
6277
+ dependent_outputs: z.ZodArray<z.ZodString>;
6278
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6279
+ details: z.ZodOptional<z.ZodString>;
6280
+ extra_info: z.ZodOptional<z.ZodObject<{
6281
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6282
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6283
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6284
+ }, z.core.$strip>>;
6285
+ message: z.ZodOptional<z.ZodString>;
6286
+ type: z.ZodOptional<z.ZodString>;
6287
+ }, z.core.$strip>]>>;
6288
+ }, z.core.$strip>>;
6289
+ prompt_id: z.ZodString;
6290
+ }, z.core.$strip>;
6291
+ /**
6292
+ * Server-to-client prompt_outputs_skipped frame on /ws. ComfyUI skipped some of a Cloud job's outputs because nodes failed validation.
6293
+ */
6294
+ export declare const zPromptOutputsSkippedFrame: z.ZodObject<{
6295
+ data: z.ZodObject<{
6296
+ node_errors: z.ZodRecord<z.ZodString, z.ZodObject<{
6297
+ class_type: z.ZodString;
6298
+ dependent_outputs: z.ZodArray<z.ZodString>;
6299
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6300
+ details: z.ZodOptional<z.ZodString>;
6301
+ extra_info: z.ZodOptional<z.ZodObject<{
6302
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6303
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6304
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6305
+ }, z.core.$strip>>;
6306
+ message: z.ZodOptional<z.ZodString>;
6307
+ type: z.ZodOptional<z.ZodString>;
6308
+ }, z.core.$strip>]>>;
6309
+ }, z.core.$strip>>;
6310
+ prompt_id: z.ZodString;
6311
+ }, z.core.$strip>;
6312
+ type: z.ZodEnum<{
6313
+ prompt_outputs_skipped: "prompt_outputs_skipped";
6314
+ }>;
6315
+ }, z.core.$strip>;
6316
+ /**
6317
+ * Request body for submitting a ComfyUI workflow prompt for execution.
6318
+ */
6319
+ export declare const zPromptRequest: z.ZodObject<{
6320
+ extra_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6321
+ front: z.ZodOptional<z.ZodBoolean>;
6322
+ number: z.ZodOptional<z.ZodNumber>;
6323
+ partial_execution_targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
6324
+ prompt: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6325
+ workflow_id: z.ZodOptional<z.ZodString>;
6326
+ workflow_version_id: z.ZodOptional<z.ZodString>;
6327
+ }, z.core.$strip>;
6328
+ /**
6329
+ * Response returned after successfully queuing a workflow prompt.
6330
+ */
6331
+ export declare const zPromptResponse: z.ZodObject<{
6332
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6333
+ number: z.ZodOptional<z.ZodNumber>;
6334
+ prompt_id: z.ZodOptional<z.ZodUUID>;
6335
+ }, z.core.$strip>;
6336
+ /**
6337
+ * The partner-provider governance catalog: every governable provider, identical for all workspaces. A projection of the curated catalog minus the internal api_names.
6338
+ */
6339
+ export declare const zProviderCatalogResponse: z.ZodObject<{
6340
+ providers: z.ZodArray<z.ZodObject<{
6341
+ display_name: z.ZodString;
6342
+ node_categories: z.ZodArray<z.ZodString>;
6343
+ provider_id: z.ZodString;
6344
+ }, z.core.$strip>>;
6345
+ }, z.core.$strip>;
6346
+ /**
6347
+ * One provider's policy state.
6348
+ */
6349
+ export declare const zProviderPolicyEntry: z.ZodObject<{
5531
6350
  enabled: z.ZodBoolean;
5532
6351
  provider_id: z.ZodString;
5533
6352
  }, z.core.$strip>;
@@ -5886,6 +6705,16 @@ export declare const zServerDocFrame: z.ZodUnion<readonly [z.ZodObject<{
5886
6705
  doc_ops_result: "doc_ops_result";
5887
6706
  }>;
5888
6707
  }, z.core.$strip>]>;
6708
+ /**
6709
+ * Request body for adding a project member or changing their role.
6710
+ */
6711
+ export declare const zSetProjectMemberRequest: z.ZodObject<{
6712
+ role: z.ZodEnum<{
6713
+ runner: "runner";
6714
+ builder: "builder";
6715
+ project_admin: "project_admin";
6716
+ }>;
6717
+ }, z.core.$strip>;
5889
6718
  /**
5890
6719
  * The deployment a start was asked for, and its status after the ask.
5891
6720
  */
@@ -6743,6 +7572,8 @@ export declare const zBillingStatusResponse: z.ZodObject<{
6743
7572
  id: z.ZodString;
6744
7573
  stop_usd: z.ZodCoercedBigInt<unknown>;
6745
7574
  }, z.core.$strip>>;
7575
+ usage_period_end: z.ZodOptional<z.ZodISODateTime>;
7576
+ usage_period_start: z.ZodOptional<z.ZodISODateTime>;
6746
7577
  }, z.core.$strip>;
6747
7578
  /**
6748
7579
  * Credit-stop ladder for the pricing slider (BE-1254). Returned by GET /api/billing/plans for every workspace regardless of the caller's token or workspace type (the personal/team distinction was removed); omitted only when the catalog defines no stops.
@@ -7194,11 +8025,11 @@ export declare const zBillingOpStatusResponse: z.ZodObject<{
7194
8025
  amount_charged_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7195
8026
  authentication_deadline: z.ZodOptional<z.ZodISODateTime>;
7196
8027
  authentication_state: z.ZodOptional<z.ZodEnum<{
8028
+ succeeded: "succeeded";
8029
+ reconciliation_needed: "reconciliation_needed";
7197
8030
  requires_action: "requires_action";
7198
8031
  processing: "processing";
7199
8032
  failed_retryable: "failed_retryable";
7200
- succeeded: "succeeded";
7201
- reconciliation_needed: "reconciliation_needed";
7202
8033
  }>>;
7203
8034
  auto_top_up: z.ZodOptional<z.ZodObject<{
7204
8035
  monthly_budget_cents: z.ZodCoercedBigInt<unknown>;
@@ -7331,6 +8162,31 @@ export declare const zTopupAutoTopUpSettings: z.ZodObject<{
7331
8162
  target_credits: z.ZodCoercedBigInt<unknown>;
7332
8163
  threshold_credits: z.ZodCoercedBigInt<unknown>;
7333
8164
  }, z.core.$strip>;
8165
+ /**
8166
+ * Asks for a one-time handoff that signs a billing receiver tab in as the caller.
8167
+ */
8168
+ export declare const zBillingHandoffCreateRequest: z.ZodObject<{
8169
+ amount_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8170
+ auto_top_up: z.ZodOptional<z.ZodObject<{
8171
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
8172
+ target_credits: z.ZodCoercedBigInt<unknown>;
8173
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
8174
+ }, z.core.$strip>>;
8175
+ client_version: z.ZodString;
8176
+ intent: z.ZodOptional<z.ZodEnum<{
8177
+ "top-up": "top-up";
8178
+ subscription: "subscription";
8179
+ }>>;
8180
+ receiver: z.ZodEnum<{
8181
+ billing_web: "billing_web";
8182
+ platform: "platform";
8183
+ }>;
8184
+ surface: z.ZodEnum<{
8185
+ local_web: "local_web";
8186
+ desktop: "desktop";
8187
+ }>;
8188
+ workspace_id: z.ZodString;
8189
+ }, z.core.$strip>;
7334
8190
  /**
7335
8191
  * Request body for creating a hosted credit top-up checkout session.
7336
8192
  */
@@ -7344,6 +8200,14 @@ export declare const zCreateTopupCheckoutRequest: z.ZodObject<{
7344
8200
  idempotency_key: z.ZodOptional<z.ZodString>;
7345
8201
  return_url: z.ZodURL;
7346
8202
  }, z.core.$strip>;
8203
+ export declare const zCreateTopupPurchaseRequest: z.ZodObject<{
8204
+ amount_cents: z.ZodCoercedBigInt<unknown>;
8205
+ auto_top_up: z.ZodOptional<z.ZodObject<{
8206
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
8207
+ target_credits: z.ZodCoercedBigInt<unknown>;
8208
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
8209
+ }, z.core.$strip>>;
8210
+ }, z.core.$strip>;
7347
8211
  /**
7348
8212
  * Pay once with exactly one new-card confirmation token or explicitly selected attached card. Keep the exact request and key on retry; never fall back to the on-file route.
7349
8213
  */
@@ -7358,10 +8222,31 @@ export declare const zInteractiveTopupRequest: z.ZodObject<{
7358
8222
  confirmation_token: z.ZodOptional<z.ZodString>;
7359
8223
  idempotency_key: z.ZodString;
7360
8224
  make_default: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8225
+ purchase_id: z.ZodOptional<z.ZodString>;
7361
8226
  return_url: z.ZodOptional<z.ZodString>;
7362
8227
  save_payment_method: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7363
8228
  saved_payment_method_id: z.ZodOptional<z.ZodString>;
7364
8229
  }, z.core.$strip>;
8230
+ export declare const zTopupPurchase: z.ZodObject<{
8231
+ amount_cents: z.ZodCoercedBigInt<unknown>;
8232
+ auto_top_up: z.ZodOptional<z.ZodObject<{
8233
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
8234
+ target_credits: z.ZodCoercedBigInt<unknown>;
8235
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
8236
+ }, z.core.$strip>>;
8237
+ billing_op_id: z.ZodOptional<z.ZodString>;
8238
+ billing_op_status: z.ZodOptional<z.ZodString>;
8239
+ expires_at: z.ZodISODateTime;
8240
+ purchase_id: z.ZodString;
8241
+ status: z.ZodEnum<{
8242
+ expired: "expired";
8243
+ reconciliation_needed: "reconciliation_needed";
8244
+ processing: "processing";
8245
+ paid: "paid";
8246
+ open: "open";
8247
+ superseded: "superseded";
8248
+ }>;
8249
+ }, z.core.$strip>;
7365
8250
  /**
7366
8251
  * What a credit top-up of the requested amount would grant.
7367
8252
  */
@@ -7389,6 +8274,14 @@ export declare const zUpdateMemberRoleRequest: z.ZodObject<{
7389
8274
  member: "member";
7390
8275
  }>;
7391
8276
  }, z.core.$strip>;
8277
+ /**
8278
+ * Request body for changing a project. Only the fields sent are changed.
8279
+ */
8280
+ export declare const zUpdateProjectRequest: z.ZodObject<{
8281
+ description: z.ZodOptional<z.ZodString>;
8282
+ name: z.ZodOptional<z.ZodString>;
8283
+ shared_cloud_allowed: z.ZodOptional<z.ZodBoolean>;
8284
+ }, z.core.$strip>;
7392
8285
  /**
7393
8286
  * Request body for updating an existing user secret.
7394
8287
  */
@@ -7635,6 +8528,12 @@ export declare const zAssetMetadataResponse: z.ZodObject<{
7635
8528
  }, z.core.$strip>>>;
7636
8529
  }, z.core.$strip>>;
7637
8530
  }, z.core.$strip>;
8531
+ /**
8532
+ * The signed link `GET /api/view?redirect=false` answers with: the same link the 302 sends in `Location`, so it expires like that one.
8533
+ */
8534
+ export declare const zViewFileUrlResponse: z.ZodObject<{
8535
+ url: z.ZodString;
8536
+ }, z.core.$strip>;
7638
8537
  /**
7639
8538
  * The user a web session belongs to
7640
8539
  */
@@ -7724,6 +8623,7 @@ export declare const zWorkflowResponse: z.ZodObject<{
7724
8623
  id: z.ZodString;
7725
8624
  latest_version: z.ZodInt;
7726
8625
  name: z.ZodOptional<z.ZodString>;
8626
+ project_id: z.ZodOptional<z.ZodString>;
7727
8627
  updated_at: z.ZodISODateTime;
7728
8628
  }, z.core.$strip>;
7729
8629
  /**
@@ -7745,6 +8645,7 @@ export declare const zWorkflowListResponse: z.ZodObject<{
7745
8645
  id: z.ZodString;
7746
8646
  latest_version: z.ZodInt;
7747
8647
  name: z.ZodOptional<z.ZodString>;
8648
+ project_id: z.ZodOptional<z.ZodString>;
7748
8649
  updated_at: z.ZodISODateTime;
7749
8650
  }, z.core.$strip>>;
7750
8651
  pagination: z.ZodObject<{
@@ -7869,6 +8770,44 @@ export declare const zErrorResponse: z.ZodObject<{
7869
8770
  message: z.ZodString;
7870
8771
  organization_id: z.ZodOptional<z.ZodString>;
7871
8772
  }, z.core.$strip>;
8773
+ /**
8774
+ * A 403 on the deployment model routes. A body with `accepted` is ingest's authentication refusing the credential before any other check (AuthTypeNotAllowedError, `{error: {message, type: auth_type_not_allowed}, accepted}`, no `code`): a credential these routes never take, such as `X-ComfyAPI-Secret`, or the session while `web_session_enabled` is off for the user. Otherwise `code` tells them apart as in DeploymentModelsRefusalBody: a body with `code` is ingest's own refusal, and one with neither `code` nor `accepted` is the platform's 403, passed through as written.
8775
+ */
8776
+ export declare const zDeploymentModelsForbiddenBody: z.ZodUnion<readonly [z.ZodObject<{
8777
+ code: z.ZodString;
8778
+ denied_reasons: z.ZodOptional<z.ZodObject<{
8779
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
8780
+ organization_managed: "organization_managed";
8781
+ owned_workspace_limit: "owned_workspace_limit";
8782
+ }>>;
8783
+ }, z.core.$strip>>;
8784
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8785
+ message: z.ZodString;
8786
+ organization_id: z.ZodOptional<z.ZodString>;
8787
+ }, z.core.$strip>, z.ZodObject<{
8788
+ accepted: z.ZodArray<z.ZodString>;
8789
+ error: z.ZodObject<{
8790
+ message: z.ZodString;
8791
+ type: z.ZodEnum<{
8792
+ auth_type_not_allowed: "auth_type_not_allowed";
8793
+ }>;
8794
+ }, z.core.$strip>;
8795
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
8796
+ /**
8797
+ * A refusal on the deployment model routes: ingest's own (and the session's), as ErrorResponse `{code, message}`, or the platform's, passed through as written. One status can carry either; `code` tells them apart. A body with `code` is ingest's own refusal, made before or instead of the platform's answer; a body without it is the platform's, comfy-deploy's or comfy-builder's `{error, message}` (or only `message`), which never carries `code`. The one exception is a 403 with `accepted`, ingest's authentication refusal (see DeploymentModelsForbiddenBody).
8798
+ */
8799
+ export declare const zDeploymentModelsRefusalBody: z.ZodUnion<readonly [z.ZodObject<{
8800
+ code: z.ZodString;
8801
+ denied_reasons: z.ZodOptional<z.ZodObject<{
8802
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
8803
+ organization_managed: "organization_managed";
8804
+ owned_workspace_limit: "owned_workspace_limit";
8805
+ }>>;
8806
+ }, z.core.$strip>>;
8807
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8808
+ message: z.ZodString;
8809
+ organization_id: z.ZodOptional<z.ZodString>;
8810
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
7872
8811
  /**
7873
8812
  * A 403 body: ErrorResponse, or AuthTypeNotAllowedError for a credential the route does not take.
7874
8813
  */
@@ -8034,6 +8973,8 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
8034
8973
  can_reactivate: z.ZodBoolean;
8035
8974
  can_revert_scheduled_change: z.ZodBoolean;
8036
8975
  can_run_workflows: z.ZodBoolean;
8976
+ can_set_budgets: z.ZodBoolean;
8977
+ can_set_hard_caps: z.ZodBoolean;
8037
8978
  can_subscribe_self_serve: z.ZodBoolean;
8038
8979
  can_top_up: z.ZodBoolean;
8039
8980
  can_upgrade: z.ZodBoolean;
@@ -8176,6 +9117,27 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
8176
9117
  user_cap_exceeded: "user_cap_exceeded";
8177
9118
  free_tier_exhausted: "free_tier_exhausted";
8178
9119
  }>>;
9120
+ can_set_budgets: z.ZodOptional<z.ZodEnum<{
9121
+ subscription_status_unrecognized: "subscription_status_unrecognized";
9122
+ creator_only_provisioning: "creator_only_provisioning";
9123
+ not_a_member: "not_a_member";
9124
+ not_workspace_owner: "not_workspace_owner";
9125
+ free_plan: "free_plan";
9126
+ no_subscription: "no_subscription";
9127
+ subscription_ended: "subscription_ended";
9128
+ subscription_not_started: "subscription_not_started";
9129
+ }>>;
9130
+ can_set_hard_caps: z.ZodOptional<z.ZodEnum<{
9131
+ subscription_status_unrecognized: "subscription_status_unrecognized";
9132
+ creator_only_provisioning: "creator_only_provisioning";
9133
+ not_a_member: "not_a_member";
9134
+ not_workspace_owner: "not_workspace_owner";
9135
+ free_plan: "free_plan";
9136
+ no_subscription: "no_subscription";
9137
+ subscription_ended: "subscription_ended";
9138
+ subscription_not_started: "subscription_not_started";
9139
+ plan_not_enterprise: "plan_not_enterprise";
9140
+ }>>;
8179
9141
  can_subscribe_self_serve: z.ZodOptional<z.ZodEnum<{
8180
9142
  subscription_status_unrecognized: "subscription_status_unrecognized";
8181
9143
  creator_only_provisioning: "creator_only_provisioning";
@@ -8378,6 +9340,7 @@ export declare const zMember: z.ZodObject<{
8378
9340
  owner: "owner";
8379
9341
  member: "member";
8380
9342
  }>;
9343
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
8381
9344
  }, z.core.$strip>;
8382
9345
  /**
8383
9346
  * List of members in the current workspace.
@@ -8399,6 +9362,7 @@ export declare const zListMembersResponse: z.ZodObject<{
8399
9362
  owner: "owner";
8400
9363
  member: "member";
8401
9364
  }>;
9365
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
8402
9366
  }, z.core.$strip>>;
8403
9367
  pagination: z.ZodObject<{
8404
9368
  has_more: z.ZodBoolean;
@@ -8488,6 +9452,7 @@ export declare const zWorkspaceWithRole: z.ZodObject<{
8488
9452
  team: "team";
8489
9453
  personal: "personal";
8490
9454
  }>;
9455
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
8491
9456
  }, z.core.$strip>;
8492
9457
  /**
8493
9458
  * Paginated list of workspaces the authenticated user belongs to.
@@ -8534,6 +9499,7 @@ export declare const zListWorkspacesResponse: z.ZodObject<{
8534
9499
  team: "team";
8535
9500
  personal: "personal";
8536
9501
  }>;
9502
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
8537
9503
  }, z.core.$strip>>;
8538
9504
  }, z.core.$strip>;
8539
9505
  /**
@@ -8553,6 +9519,7 @@ export declare const zAssetWritable: z.ZodObject<{
8553
9519
  name: z.ZodString;
8554
9520
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
8555
9521
  preview_url: z.ZodOptional<z.ZodURL>;
9522
+ project_id: z.ZodOptional<z.ZodString>;
8556
9523
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8557
9524
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8558
9525
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -8576,6 +9543,7 @@ export declare const zAssetCreatedWritable: z.ZodIntersection<z.ZodObject<{
8576
9543
  name: z.ZodString;
8577
9544
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
8578
9545
  preview_url: z.ZodOptional<z.ZodURL>;
9546
+ project_id: z.ZodOptional<z.ZodString>;
8579
9547
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8580
9548
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8581
9549
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -8630,6 +9598,7 @@ export declare const zListAssetsResponseWritable: z.ZodObject<{
8630
9598
  name: z.ZodString;
8631
9599
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
8632
9600
  preview_url: z.ZodOptional<z.ZodURL>;
9601
+ project_id: z.ZodOptional<z.ZodString>;
8633
9602
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8634
9603
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8635
9604
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -8640,6 +9609,18 @@ export declare const zListAssetsResponseWritable: z.ZodObject<{
8640
9609
  next_cursor: z.ZodOptional<z.ZodString>;
8641
9610
  total: z.ZodInt;
8642
9611
  }, z.core.$strip>;
9612
+ /**
9613
+ * The blobId the model upload route answered
9614
+ */
9615
+ export declare const zDeploymentModelUploadBlobId: z.ZodString;
9616
+ /**
9617
+ * One of the workspace's deployments (dep-{uuid} format)
9618
+ */
9619
+ export declare const zDeploymentModelsDeploymentId: z.ZodString;
9620
+ /**
9621
+ * Workspace ID (w-{uuid} format)
9622
+ */
9623
+ export declare const zDeploymentModelsWorkspaceId: z.ZodString;
8643
9624
  /**
8644
9625
  * The workspace a media request reads from, where a media tag cannot
8645
9626
  * send `X-Comfy-Workspace-ID`. It applies only while
@@ -8656,6 +9637,24 @@ export declare const zListAssetsResponseWritable: z.ZodObject<{
8656
9637
  *
8657
9638
  */
8658
9639
  export declare const zMediaWorkspaceId: z.ZodString;
9640
+ /**
9641
+ * The project a request acts in. The operations that list it are the
9642
+ * ones that read it: they list workflows, runs or assets, or create
9643
+ * one. Absent means the workspace's default project, which is how
9644
+ * existing clients keep working.
9645
+ *
9646
+ * An operation on one existing workflow, run or asset does not take
9647
+ * it: the row's own project decides. Any other operation that creates
9648
+ * a workflow, run or asset acts in the default project until it lists
9649
+ * this parameter.
9650
+ *
9651
+ * The project must be in the workspace the request resolves to. A
9652
+ * project that does not exist, or that the caller may not view, is 404
9653
+ * `not_found`; the two look the same. Where Projects is not enabled for
9654
+ * the workspace the header is ignored.
9655
+ *
9656
+ */
9657
+ export declare const zProjectId: z.ZodString;
8659
9658
  /**
8660
9659
  * JWKS response
8661
9660
  */
@@ -9107,6 +10106,7 @@ export declare const zAgentPostMessageBody: z.ZodObject<{
9107
10106
  delete_approval: "delete_approval";
9108
10107
  }>>>;
9109
10108
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
10109
+ canvas_selection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9110
10110
  client_id: z.ZodOptional<z.ZodString>;
9111
10111
  client_message_id: z.ZodOptional<z.ZodString>;
9112
10112
  client_version: z.ZodOptional<z.ZodString>;
@@ -9181,6 +10181,9 @@ export declare const zAgentCancelMessageResponse: z.ZodObject<{
9181
10181
  export declare const zAgentGetUsageStatusResponse: z.ZodObject<{
9182
10182
  has_used_agent: z.ZodBoolean;
9183
10183
  }, z.core.$strip>;
10184
+ export declare const zListAssetsHeaders: z.ZodObject<{
10185
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10186
+ }, z.core.$strip>;
9184
10187
  export declare const zListAssetsQuery: z.ZodObject<{
9185
10188
  include_tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
9186
10189
  exclude_tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9206,6 +10209,8 @@ export declare const zListAssetsQuery: z.ZodObject<{
9206
10209
  workspace_library: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9207
10210
  hash: z.ZodOptional<z.ZodString>;
9208
10211
  after: z.ZodOptional<z.ZodString>;
10212
+ capped_total: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10213
+ include_total: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9209
10214
  }, z.core.$strip>;
9210
10215
  /**
9211
10216
  * Success - Assets returned
@@ -9226,6 +10231,7 @@ export declare const zListAssetsResponse2: z.ZodObject<{
9226
10231
  name: z.ZodString;
9227
10232
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9228
10233
  preview_url: z.ZodOptional<z.ZodURL>;
10234
+ project_id: z.ZodOptional<z.ZodString>;
9229
10235
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9230
10236
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9231
10237
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9246,6 +10252,9 @@ export declare const zCreateAssetBody: z.ZodObject<{
9246
10252
  tags: z.ZodOptional<z.ZodString>;
9247
10253
  user_metadata: z.ZodOptional<z.ZodString>;
9248
10254
  }, z.core.$strip>;
10255
+ export declare const zCreateAssetHeaders: z.ZodObject<{
10256
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10257
+ }, z.core.$strip>;
9249
10258
  /**
9250
10259
  * Asset already existed for this user (deduplicated by content hash); the
9251
10260
  * existing asset is returned with created_new=false.
@@ -9266,6 +10275,7 @@ export declare const zCreateAssetResponse: z.ZodIntersection<z.ZodObject<{
9266
10275
  name: z.ZodString;
9267
10276
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9268
10277
  preview_url: z.ZodOptional<z.ZodURL>;
10278
+ project_id: z.ZodOptional<z.ZodString>;
9269
10279
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9270
10280
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9271
10281
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9302,6 +10312,7 @@ export declare const zGetAssetByIdResponse: z.ZodObject<{
9302
10312
  name: z.ZodString;
9303
10313
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9304
10314
  preview_url: z.ZodOptional<z.ZodURL>;
10315
+ project_id: z.ZodOptional<z.ZodString>;
9305
10316
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9306
10317
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9307
10318
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9400,6 +10411,7 @@ export declare const zCreateAssetDownloadResponse: z.ZodUnion<readonly [z.ZodInt
9400
10411
  name: z.ZodString;
9401
10412
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9402
10413
  preview_url: z.ZodOptional<z.ZodURL>;
10414
+ project_id: z.ZodOptional<z.ZodString>;
9403
10415
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9404
10416
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9405
10417
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9461,6 +10473,9 @@ export declare const zCreateAssetFromHashBody: z.ZodObject<{
9461
10473
  tags: z.ZodArray<z.ZodString>;
9462
10474
  user_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9463
10475
  }, z.core.$strip>;
10476
+ export declare const zCreateAssetFromHashHeaders: z.ZodObject<{
10477
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10478
+ }, z.core.$strip>;
9464
10479
  /**
9465
10480
  * Asset reference already existed for this user (deduplicated by content
9466
10481
  * hash); the existing asset is returned with created_new=false.
@@ -9481,6 +10496,7 @@ export declare const zCreateAssetFromHashResponse: z.ZodIntersection<z.ZodObject
9481
10496
  name: z.ZodString;
9482
10497
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9483
10498
  preview_url: z.ZodOptional<z.ZodURL>;
10499
+ project_id: z.ZodOptional<z.ZodString>;
9484
10500
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9485
10501
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9486
10502
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9733,7 +10749,17 @@ export declare const zRedeemDesktopLoginCodeResponse: z.ZodObject<{
9733
10749
  }>;
9734
10750
  }, z.core.$strip>;
9735
10751
  export declare const zCreateBillingHandoffBody: z.ZodObject<{
9736
- client_version: z.ZodString;
10752
+ amount_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
10753
+ auto_top_up: z.ZodOptional<z.ZodObject<{
10754
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
10755
+ target_credits: z.ZodCoercedBigInt<unknown>;
10756
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
10757
+ }, z.core.$strip>>;
10758
+ client_version: z.ZodString;
10759
+ intent: z.ZodOptional<z.ZodEnum<{
10760
+ "top-up": "top-up";
10761
+ subscription: "subscription";
10762
+ }>>;
9737
10763
  receiver: z.ZodEnum<{
9738
10764
  billing_web: "billing_web";
9739
10765
  platform: "platform";
@@ -9752,6 +10778,18 @@ export declare const zCreateBillingHandoffResponse: z.ZodObject<{
9752
10778
  expires_at: z.ZodISODateTime;
9753
10779
  request_id: z.ZodString;
9754
10780
  }, z.core.$strip>;
10781
+ export declare const zCreateBillingHandoffCheckoutBody: z.ZodObject<{
10782
+ plan_slug: z.ZodString;
10783
+ team_credit_stop_id: z.ZodOptional<z.ZodString>;
10784
+ }, z.core.$strip>;
10785
+ /**
10786
+ * Handoff issued. `entry_url` is billing-web's handoff page with `intent=checkout`, `plan` and `team_credit_stop_id` (if any) in the query and the token in the fragment.
10787
+ */
10788
+ export declare const zCreateBillingHandoffCheckoutResponse: z.ZodObject<{
10789
+ entry_url: z.ZodString;
10790
+ expires_at: z.ZodISODateTime;
10791
+ request_id: z.ZodString;
10792
+ }, z.core.$strip>;
9755
10793
  export declare const zExchangeBillingHandoffBody: z.ZodObject<{
9756
10794
  token: z.ZodString;
9757
10795
  }, z.core.$strip>;
@@ -9856,6 +10894,7 @@ export declare const zRevokePartnerNodeSessionsResponse: z.ZodVoid;
9856
10894
  * Success
9857
10895
  */
9858
10896
  export declare const zGetBillingAutoReloadResponse: z.ZodObject<{
10897
+ auto_top_up_conflict: z.ZodBoolean;
9859
10898
  card_expiring_soon: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9860
10899
  card_expiry: z.ZodNullable<z.ZodObject<{
9861
10900
  expired: z.ZodBoolean;
@@ -9905,6 +10944,7 @@ export declare const zPutBillingAutoReloadBody: z.ZodObject<{
9905
10944
  * The saved settings and current accounting
9906
10945
  */
9907
10946
  export declare const zPutBillingAutoReloadResponse: z.ZodObject<{
10947
+ auto_top_up_conflict: z.ZodBoolean;
9908
10948
  card_expiring_soon: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9909
10949
  card_expiry: z.ZodNullable<z.ZodObject<{
9910
10950
  expired: z.ZodBoolean;
@@ -10016,6 +11056,217 @@ export declare const zGetBillingBalanceResponse: z.ZodObject<{
10016
11056
  prepaid_balance_micros: z.ZodOptional<z.ZodNumber>;
10017
11057
  suggested_topup_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
10018
11058
  }, z.core.$strip>;
11059
+ /**
11060
+ * Success
11061
+ */
11062
+ export declare const zListBillingBudgetsResponse: z.ZodObject<{
11063
+ auto_top_up_conflict: z.ZodBoolean;
11064
+ budgets: z.ZodArray<z.ZodObject<{
11065
+ alert_percents: z.ZodArray<z.ZodInt>;
11066
+ alerts: z.ZodArray<z.ZodObject<{
11067
+ percent: z.ZodInt;
11068
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
11069
+ status: z.ZodEnum<{
11070
+ failed: "failed";
11071
+ sent: "sent";
11072
+ skipped: "skipped";
11073
+ }>;
11074
+ }, z.core.$strip>>;
11075
+ alerts_available: z.ZodBoolean;
11076
+ created_by: z.ZodString;
11077
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
11078
+ ends_at: z.ZodNullable<z.ZodISODateTime>;
11079
+ id: z.ZodString;
11080
+ limit_credits: z.ZodCoercedBigInt<unknown>;
11081
+ limit_micro_usd: z.ZodCoercedBigInt<unknown>;
11082
+ mode: z.ZodEnum<{
11083
+ hard: "hard";
11084
+ soft: "soft";
11085
+ }>;
11086
+ owner_email: z.ZodNullable<z.ZodString>;
11087
+ percent_used: z.ZodCoercedBigInt<unknown>;
11088
+ repeat: z.ZodEnum<{
11089
+ current_period: "current_period";
11090
+ until: "until";
11091
+ indefinitely: "indefinitely";
11092
+ }>;
11093
+ resets_at: z.ZodNullable<z.ZodISODateTime>;
11094
+ scope_id: z.ZodString;
11095
+ scope_kind: z.ZodEnum<{
11096
+ member: "member";
11097
+ workspace: "workspace";
11098
+ api_key: "api_key";
11099
+ deployment: "deployment";
11100
+ }>;
11101
+ spend_updated_at: z.ZodNullable<z.ZodISODateTime>;
11102
+ spent_credits: z.ZodCoercedBigInt<unknown>;
11103
+ spent_micro_usd: z.ZodCoercedBigInt<unknown>;
11104
+ updated_by: z.ZodString;
11105
+ }, z.core.$strip>>;
11106
+ }, z.core.$strip>;
11107
+ export declare const zCreateBillingBudgetBody: z.ZodObject<{
11108
+ alert_percents: z.ZodOptional<z.ZodArray<z.ZodInt>>;
11109
+ ends_at: z.ZodOptional<z.ZodISODateTime>;
11110
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
11111
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
11112
+ mode: z.ZodEnum<{
11113
+ hard: "hard";
11114
+ soft: "soft";
11115
+ }>;
11116
+ repeat: z.ZodOptional<z.ZodEnum<{
11117
+ current_period: "current_period";
11118
+ until: "until";
11119
+ indefinitely: "indefinitely";
11120
+ }>>;
11121
+ scope_id: z.ZodString;
11122
+ scope_kind: z.ZodEnum<{
11123
+ member: "member";
11124
+ workspace: "workspace";
11125
+ api_key: "api_key";
11126
+ deployment: "deployment";
11127
+ }>;
11128
+ }, z.core.$strip>;
11129
+ /**
11130
+ * The new budget
11131
+ */
11132
+ export declare const zCreateBillingBudgetResponse: z.ZodObject<{
11133
+ auto_top_up_conflict: z.ZodBoolean;
11134
+ budget: z.ZodObject<{
11135
+ alert_percents: z.ZodArray<z.ZodInt>;
11136
+ alerts: z.ZodArray<z.ZodObject<{
11137
+ percent: z.ZodInt;
11138
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
11139
+ status: z.ZodEnum<{
11140
+ failed: "failed";
11141
+ sent: "sent";
11142
+ skipped: "skipped";
11143
+ }>;
11144
+ }, z.core.$strip>>;
11145
+ alerts_available: z.ZodBoolean;
11146
+ created_by: z.ZodString;
11147
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
11148
+ ends_at: z.ZodNullable<z.ZodISODateTime>;
11149
+ id: z.ZodString;
11150
+ limit_credits: z.ZodCoercedBigInt<unknown>;
11151
+ limit_micro_usd: z.ZodCoercedBigInt<unknown>;
11152
+ mode: z.ZodEnum<{
11153
+ hard: "hard";
11154
+ soft: "soft";
11155
+ }>;
11156
+ owner_email: z.ZodNullable<z.ZodString>;
11157
+ percent_used: z.ZodCoercedBigInt<unknown>;
11158
+ repeat: z.ZodEnum<{
11159
+ current_period: "current_period";
11160
+ until: "until";
11161
+ indefinitely: "indefinitely";
11162
+ }>;
11163
+ resets_at: z.ZodNullable<z.ZodISODateTime>;
11164
+ scope_id: z.ZodString;
11165
+ scope_kind: z.ZodEnum<{
11166
+ member: "member";
11167
+ workspace: "workspace";
11168
+ api_key: "api_key";
11169
+ deployment: "deployment";
11170
+ }>;
11171
+ spend_updated_at: z.ZodNullable<z.ZodISODateTime>;
11172
+ spent_credits: z.ZodCoercedBigInt<unknown>;
11173
+ spent_micro_usd: z.ZodCoercedBigInt<unknown>;
11174
+ updated_by: z.ZodString;
11175
+ }, z.core.$strip>;
11176
+ }, z.core.$strip>;
11177
+ export declare const zDeleteBillingBudgetPath: z.ZodObject<{
11178
+ id: z.ZodString;
11179
+ }, z.core.$strip>;
11180
+ /**
11181
+ * Archived
11182
+ */
11183
+ export declare const zDeleteBillingBudgetResponse: z.ZodVoid;
11184
+ export declare const zUpdateBillingBudgetBody: z.ZodObject<{
11185
+ alert_percents: z.ZodOptional<z.ZodArray<z.ZodInt>>;
11186
+ ends_at: z.ZodOptional<z.ZodISODateTime>;
11187
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
11188
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
11189
+ mode: z.ZodOptional<z.ZodEnum<{
11190
+ hard: "hard";
11191
+ soft: "soft";
11192
+ }>>;
11193
+ repeat: z.ZodOptional<z.ZodEnum<{
11194
+ current_period: "current_period";
11195
+ until: "until";
11196
+ indefinitely: "indefinitely";
11197
+ }>>;
11198
+ }, z.core.$strip>;
11199
+ export declare const zUpdateBillingBudgetPath: z.ZodObject<{
11200
+ id: z.ZodString;
11201
+ }, z.core.$strip>;
11202
+ /**
11203
+ * The budget after the change
11204
+ */
11205
+ export declare const zUpdateBillingBudgetResponse: z.ZodObject<{
11206
+ auto_top_up_conflict: z.ZodBoolean;
11207
+ budget: z.ZodObject<{
11208
+ alert_percents: z.ZodArray<z.ZodInt>;
11209
+ alerts: z.ZodArray<z.ZodObject<{
11210
+ percent: z.ZodInt;
11211
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
11212
+ status: z.ZodEnum<{
11213
+ failed: "failed";
11214
+ sent: "sent";
11215
+ skipped: "skipped";
11216
+ }>;
11217
+ }, z.core.$strip>>;
11218
+ alerts_available: z.ZodBoolean;
11219
+ created_by: z.ZodString;
11220
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
11221
+ ends_at: z.ZodNullable<z.ZodISODateTime>;
11222
+ id: z.ZodString;
11223
+ limit_credits: z.ZodCoercedBigInt<unknown>;
11224
+ limit_micro_usd: z.ZodCoercedBigInt<unknown>;
11225
+ mode: z.ZodEnum<{
11226
+ hard: "hard";
11227
+ soft: "soft";
11228
+ }>;
11229
+ owner_email: z.ZodNullable<z.ZodString>;
11230
+ percent_used: z.ZodCoercedBigInt<unknown>;
11231
+ repeat: z.ZodEnum<{
11232
+ current_period: "current_period";
11233
+ until: "until";
11234
+ indefinitely: "indefinitely";
11235
+ }>;
11236
+ resets_at: z.ZodNullable<z.ZodISODateTime>;
11237
+ scope_id: z.ZodString;
11238
+ scope_kind: z.ZodEnum<{
11239
+ member: "member";
11240
+ workspace: "workspace";
11241
+ api_key: "api_key";
11242
+ deployment: "deployment";
11243
+ }>;
11244
+ spend_updated_at: z.ZodNullable<z.ZodISODateTime>;
11245
+ spent_credits: z.ZodCoercedBigInt<unknown>;
11246
+ spent_micro_usd: z.ZodCoercedBigInt<unknown>;
11247
+ updated_by: z.ZodString;
11248
+ }, z.core.$strip>;
11249
+ }, z.core.$strip>;
11250
+ export declare const zGetBillingBudgetHistoryPath: z.ZodObject<{
11251
+ id: z.ZodString;
11252
+ }, z.core.$strip>;
11253
+ /**
11254
+ * Success
11255
+ */
11256
+ export declare const zGetBillingBudgetHistoryResponse: z.ZodObject<{
11257
+ changes: z.ZodArray<z.ZodObject<{
11258
+ action: z.ZodEnum<{
11259
+ archived: "archived";
11260
+ created: "created";
11261
+ updated: "updated";
11262
+ downgraded: "downgraded";
11263
+ }>;
11264
+ actor_user_id: z.ZodString;
11265
+ after: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11266
+ before: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11267
+ changed_at: z.ZodISODateTime;
11268
+ }, z.core.$strip>>;
11269
+ }, z.core.$strip>;
10019
11270
  /**
10020
11271
  * Effective billing capabilities
10021
11272
  */
@@ -10089,6 +11340,8 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
10089
11340
  can_reactivate: z.ZodBoolean;
10090
11341
  can_revert_scheduled_change: z.ZodBoolean;
10091
11342
  can_run_workflows: z.ZodBoolean;
11343
+ can_set_budgets: z.ZodBoolean;
11344
+ can_set_hard_caps: z.ZodBoolean;
10092
11345
  can_subscribe_self_serve: z.ZodBoolean;
10093
11346
  can_top_up: z.ZodBoolean;
10094
11347
  can_upgrade: z.ZodBoolean;
@@ -10231,6 +11484,27 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
10231
11484
  user_cap_exceeded: "user_cap_exceeded";
10232
11485
  free_tier_exhausted: "free_tier_exhausted";
10233
11486
  }>>;
11487
+ can_set_budgets: z.ZodOptional<z.ZodEnum<{
11488
+ subscription_status_unrecognized: "subscription_status_unrecognized";
11489
+ creator_only_provisioning: "creator_only_provisioning";
11490
+ not_a_member: "not_a_member";
11491
+ not_workspace_owner: "not_workspace_owner";
11492
+ free_plan: "free_plan";
11493
+ no_subscription: "no_subscription";
11494
+ subscription_ended: "subscription_ended";
11495
+ subscription_not_started: "subscription_not_started";
11496
+ }>>;
11497
+ can_set_hard_caps: z.ZodOptional<z.ZodEnum<{
11498
+ subscription_status_unrecognized: "subscription_status_unrecognized";
11499
+ creator_only_provisioning: "creator_only_provisioning";
11500
+ not_a_member: "not_a_member";
11501
+ not_workspace_owner: "not_workspace_owner";
11502
+ free_plan: "free_plan";
11503
+ no_subscription: "no_subscription";
11504
+ subscription_ended: "subscription_ended";
11505
+ subscription_not_started: "subscription_not_started";
11506
+ plan_not_enterprise: "plan_not_enterprise";
11507
+ }>>;
10234
11508
  can_subscribe_self_serve: z.ZodOptional<z.ZodEnum<{
10235
11509
  subscription_status_unrecognized: "subscription_status_unrecognized";
10236
11510
  creator_only_provisioning: "creator_only_provisioning";
@@ -10404,8 +11678,8 @@ export declare const zGetBillingEventsQuery: z.ZodObject<{
10404
11678
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
10405
11679
  scope: z.ZodOptional<z.ZodEnum<{
10406
11680
  user: "user";
10407
- self: "self";
10408
11681
  workspace: "workspace";
11682
+ self: "self";
10409
11683
  }>>;
10410
11684
  user_id: z.ZodOptional<z.ZodString>;
10411
11685
  spend_source: z.ZodOptional<z.ZodString>;
@@ -10450,11 +11724,11 @@ export declare const zGetBillingOpStatusResponse: z.ZodObject<{
10450
11724
  amount_charged_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
10451
11725
  authentication_deadline: z.ZodOptional<z.ZodISODateTime>;
10452
11726
  authentication_state: z.ZodOptional<z.ZodEnum<{
11727
+ succeeded: "succeeded";
11728
+ reconciliation_needed: "reconciliation_needed";
10453
11729
  requires_action: "requires_action";
10454
11730
  processing: "processing";
10455
11731
  failed_retryable: "failed_retryable";
10456
- succeeded: "succeeded";
10457
- reconciliation_needed: "reconciliation_needed";
10458
11732
  }>>;
10459
11733
  auto_top_up: z.ZodOptional<z.ZodObject<{
10460
11734
  monthly_budget_cents: z.ZodCoercedBigInt<unknown>;
@@ -10588,6 +11862,20 @@ export declare const zCancelBillingOpResponse: z.ZodObject<{
10588
11862
  cancel_requested: "cancel_requested";
10589
11863
  }>;
10590
11864
  }, z.core.$strip>;
11865
+ export declare const zGetBillingOpOutcomePath: z.ZodObject<{
11866
+ id: z.ZodString;
11867
+ }, z.core.$strip>;
11868
+ /**
11869
+ * Billing operation outcome
11870
+ */
11871
+ export declare const zGetBillingOpOutcomeResponse: z.ZodObject<{
11872
+ status: z.ZodEnum<{
11873
+ failed: "failed";
11874
+ pending: "pending";
11875
+ succeeded: "succeeded";
11876
+ reconciliation_needed: "reconciliation_needed";
11877
+ }>;
11878
+ }, z.core.$strip>;
10591
11879
  /**
10592
11880
  * Saved payment methods
10593
11881
  */
@@ -11060,6 +12348,8 @@ export declare const zGetBillingStatusResponse: z.ZodObject<{
11060
12348
  id: z.ZodString;
11061
12349
  stop_usd: z.ZodCoercedBigInt<unknown>;
11062
12350
  }, z.core.$strip>>;
12351
+ usage_period_end: z.ZodOptional<z.ZodISODateTime>;
12352
+ usage_period_start: z.ZodOptional<z.ZodISODateTime>;
11063
12353
  }, z.core.$strip>;
11064
12354
  export declare const zSubscribeBody: z.ZodObject<{
11065
12355
  billing_cycle: z.ZodOptional<z.ZodEnum<{
@@ -11224,6 +12514,7 @@ export declare const zCreateInteractiveTopupBody: z.ZodObject<{
11224
12514
  confirmation_token: z.ZodOptional<z.ZodString>;
11225
12515
  idempotency_key: z.ZodString;
11226
12516
  make_default: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12517
+ purchase_id: z.ZodOptional<z.ZodString>;
11227
12518
  return_url: z.ZodOptional<z.ZodString>;
11228
12519
  save_payment_method: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11229
12520
  saved_payment_method_id: z.ZodOptional<z.ZodString>;
@@ -11241,6 +12532,63 @@ export declare const zCreateInteractiveTopupResponse: z.ZodObject<{
11241
12532
  }>;
11242
12533
  topup_id: z.ZodString;
11243
12534
  }, z.core.$strip>;
12535
+ export declare const zCreateTopupPurchaseBody: z.ZodObject<{
12536
+ amount_cents: z.ZodCoercedBigInt<unknown>;
12537
+ auto_top_up: z.ZodOptional<z.ZodObject<{
12538
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
12539
+ target_credits: z.ZodCoercedBigInt<unknown>;
12540
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
12541
+ }, z.core.$strip>>;
12542
+ }, z.core.$strip>;
12543
+ /**
12544
+ * Purchase opened; Cache-Control no-store.
12545
+ */
12546
+ export declare const zCreateTopupPurchaseResponse: z.ZodObject<{
12547
+ amount_cents: z.ZodCoercedBigInt<unknown>;
12548
+ auto_top_up: z.ZodOptional<z.ZodObject<{
12549
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
12550
+ target_credits: z.ZodCoercedBigInt<unknown>;
12551
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
12552
+ }, z.core.$strip>>;
12553
+ billing_op_id: z.ZodOptional<z.ZodString>;
12554
+ billing_op_status: z.ZodOptional<z.ZodString>;
12555
+ expires_at: z.ZodISODateTime;
12556
+ purchase_id: z.ZodString;
12557
+ status: z.ZodEnum<{
12558
+ expired: "expired";
12559
+ reconciliation_needed: "reconciliation_needed";
12560
+ processing: "processing";
12561
+ paid: "paid";
12562
+ open: "open";
12563
+ superseded: "superseded";
12564
+ }>;
12565
+ }, z.core.$strip>;
12566
+ export declare const zGetTopupPurchasePath: z.ZodObject<{
12567
+ id: z.ZodString;
12568
+ }, z.core.$strip>;
12569
+ /**
12570
+ * Current purchase facts; Cache-Control no-store.
12571
+ */
12572
+ export declare const zGetTopupPurchaseResponse: z.ZodObject<{
12573
+ amount_cents: z.ZodCoercedBigInt<unknown>;
12574
+ auto_top_up: z.ZodOptional<z.ZodObject<{
12575
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
12576
+ target_credits: z.ZodCoercedBigInt<unknown>;
12577
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
12578
+ }, z.core.$strip>>;
12579
+ billing_op_id: z.ZodOptional<z.ZodString>;
12580
+ billing_op_status: z.ZodOptional<z.ZodString>;
12581
+ expires_at: z.ZodISODateTime;
12582
+ purchase_id: z.ZodString;
12583
+ status: z.ZodEnum<{
12584
+ expired: "expired";
12585
+ reconciliation_needed: "reconciliation_needed";
12586
+ processing: "processing";
12587
+ paid: "paid";
12588
+ open: "open";
12589
+ superseded: "superseded";
12590
+ }>;
12591
+ }, z.core.$strip>;
11244
12592
  export declare const zCreateTopupQuoteBody: z.ZodObject<{
11245
12593
  amount_cents: z.ZodCoercedBigInt<unknown>;
11246
12594
  }, z.core.$strip>;
@@ -11445,10 +12793,10 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
11445
12793
  ready: "ready";
11446
12794
  }>;
11447
12795
  }, z.core.$strip>>;
11448
- 'agent-credit-usage-summary': z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12796
+ 'agent-credit-usage-summary': z.ZodOptional<z.ZodEnum<{
11449
12797
  control: "control";
11450
12798
  treatment: "treatment";
11451
- }>>>;
12799
+ }>>;
11452
12800
  'agent-free-use-message-placement': z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11453
12801
  control: "control";
11454
12802
  "top-banner": "top-banner";
@@ -11480,6 +12828,8 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
11480
12828
  model_upload_folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
11481
12829
  new_free_tier_subscriptions: z.ZodOptional<z.ZodBoolean>;
11482
12830
  open_on_cloud_enabled: z.ZodOptional<z.ZodBoolean>;
12831
+ open_on_cloud_model_upload_enabled: z.ZodOptional<z.ZodBoolean>;
12832
+ open_on_cloud_use_local_agent_enabled: z.ZodOptional<z.ZodBoolean>;
11483
12833
  private_workflow_links_enabled: z.ZodOptional<z.ZodBoolean>;
11484
12834
  sso_enabled: z.ZodOptional<z.ZodBoolean>;
11485
12835
  stripe_publishable_key: z.ZodOptional<z.ZodString>;
@@ -12096,6 +13446,9 @@ export declare const zGetJobStatusResponse: z.ZodObject<{
12096
13446
  }>;
12097
13447
  updated_at: z.ZodISODateTime;
12098
13448
  }, z.core.$strip>;
13449
+ export declare const zListJobsHeaders: z.ZodObject<{
13450
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
13451
+ }, z.core.$strip>;
12099
13452
  export declare const zListJobsQuery: z.ZodObject<{
12100
13453
  status: z.ZodOptional<z.ZodString>;
12101
13454
  workflow_id: z.ZodOptional<z.ZodString>;
@@ -12116,6 +13469,7 @@ export declare const zListJobsQuery: z.ZodObject<{
12116
13469
  after: z.ZodOptional<z.ZodString>;
12117
13470
  offset: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
12118
13471
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
13472
+ capped_total: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12119
13473
  }, z.core.$strip>;
12120
13474
  /**
12121
13475
  * Success - Jobs retrieved
@@ -12149,6 +13503,7 @@ export declare const zListJobsResponse: z.ZodObject<{
12149
13503
  outputs_count: z.ZodOptional<z.ZodInt>;
12150
13504
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12151
13505
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
13506
+ project_id: z.ZodOptional<z.ZodString>;
12152
13507
  status: z.ZodEnum<{
12153
13508
  cancelled: "cancelled";
12154
13509
  completed: "completed";
@@ -12221,6 +13576,7 @@ export declare const zGetJobDetailResponse: z.ZodObject<{
12221
13576
  outputs_count: z.ZodOptional<z.ZodInt>;
12222
13577
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12223
13578
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
13579
+ project_id: z.ZodOptional<z.ZodString>;
12224
13580
  queue_position: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
12225
13581
  queue_reason: z.ZodOptional<z.ZodEnum<{
12226
13582
  concurrency_limit: "concurrency_limit";
@@ -12323,6 +13679,404 @@ export declare const zGetNodeInfoResponse: z.ZodRecord<z.ZodString, z.ZodObject<
12323
13679
  export declare const zGetLegacyObjectInfoByNodeClassPath: z.ZodObject<{
12324
13680
  node_class: z.ZodString;
12325
13681
  }, z.core.$strip>;
13682
+ /**
13683
+ * Projects the caller can view. Also answered to a workspace whose plan no longer includes Projects (a lapsed or downgraded plan) but that still has projects other than the default: those projects are frozen and read-only, each with `writable: false`, and the quota has `max_active: 0` and `can_create: false`. Do not read a 200 as the plan including Projects; read `writable` on each project and `quota.can_create`.
13684
+ */
13685
+ export declare const zListProjectsResponse2: z.ZodObject<{
13686
+ projects: z.ZodArray<z.ZodObject<{
13687
+ create_time: z.ZodISODateTime;
13688
+ created_by_user_id: z.ZodOptional<z.ZodString>;
13689
+ description: z.ZodOptional<z.ZodString>;
13690
+ id: z.ZodString;
13691
+ is_default: z.ZodBoolean;
13692
+ my_role: z.ZodOptional<z.ZodEnum<{
13693
+ runner: "runner";
13694
+ builder: "builder";
13695
+ project_admin: "project_admin";
13696
+ }>>;
13697
+ name: z.ZodString;
13698
+ permissions: z.ZodObject<{
13699
+ project: z.ZodOptional<z.ZodEnum<{
13700
+ read: "read";
13701
+ write: "write";
13702
+ read_own: "read_own";
13703
+ read_all: "read_all";
13704
+ write_own: "write_own";
13705
+ write_all: "write_all";
13706
+ }>>;
13707
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
13708
+ read: "read";
13709
+ write: "write";
13710
+ read_own: "read_own";
13711
+ read_all: "read_all";
13712
+ write_own: "write_own";
13713
+ write_all: "write_all";
13714
+ }>>;
13715
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
13716
+ read: "read";
13717
+ write: "write";
13718
+ read_own: "read_own";
13719
+ read_all: "read_all";
13720
+ write_own: "write_own";
13721
+ write_all: "write_all";
13722
+ }>>;
13723
+ 'project.members': z.ZodOptional<z.ZodEnum<{
13724
+ read: "read";
13725
+ write: "write";
13726
+ read_own: "read_own";
13727
+ read_all: "read_all";
13728
+ write_own: "write_own";
13729
+ write_all: "write_all";
13730
+ }>>;
13731
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
13732
+ read: "read";
13733
+ write: "write";
13734
+ read_own: "read_own";
13735
+ read_all: "read_all";
13736
+ write_own: "write_own";
13737
+ write_all: "write_all";
13738
+ }>>;
13739
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
13740
+ read: "read";
13741
+ write: "write";
13742
+ read_own: "read_own";
13743
+ read_all: "read_all";
13744
+ write_own: "write_own";
13745
+ write_all: "write_all";
13746
+ }>>;
13747
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
13748
+ read: "read";
13749
+ write: "write";
13750
+ read_own: "read_own";
13751
+ read_all: "read_all";
13752
+ write_own: "write_own";
13753
+ write_all: "write_all";
13754
+ }>>;
13755
+ }, z.core.$strip>;
13756
+ shared_cloud_allowed: z.ZodBoolean;
13757
+ update_time: z.ZodISODateTime;
13758
+ workspace_id: z.ZodString;
13759
+ writable: z.ZodBoolean;
13760
+ }, z.core.$strip>>;
13761
+ projects_in_use: z.ZodBoolean;
13762
+ quota: z.ZodObject<{
13763
+ active: z.ZodInt;
13764
+ can_create: z.ZodBoolean;
13765
+ max_active: z.ZodInt;
13766
+ }, z.core.$strip>;
13767
+ }, z.core.$strip>;
13768
+ export declare const zCreateProjectBody: z.ZodObject<{
13769
+ description: z.ZodOptional<z.ZodString>;
13770
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
13771
+ role: z.ZodEnum<{
13772
+ runner: "runner";
13773
+ builder: "builder";
13774
+ project_admin: "project_admin";
13775
+ }>;
13776
+ user_id: z.ZodString;
13777
+ }, z.core.$strip>>>;
13778
+ name: z.ZodString;
13779
+ shared_cloud_allowed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13780
+ }, z.core.$strip>;
13781
+ /**
13782
+ * Project created
13783
+ */
13784
+ export declare const zCreateProjectResponse: z.ZodObject<{
13785
+ create_time: z.ZodISODateTime;
13786
+ created_by_user_id: z.ZodOptional<z.ZodString>;
13787
+ description: z.ZodOptional<z.ZodString>;
13788
+ id: z.ZodString;
13789
+ is_default: z.ZodBoolean;
13790
+ my_role: z.ZodOptional<z.ZodEnum<{
13791
+ runner: "runner";
13792
+ builder: "builder";
13793
+ project_admin: "project_admin";
13794
+ }>>;
13795
+ name: z.ZodString;
13796
+ permissions: z.ZodObject<{
13797
+ project: z.ZodOptional<z.ZodEnum<{
13798
+ read: "read";
13799
+ write: "write";
13800
+ read_own: "read_own";
13801
+ read_all: "read_all";
13802
+ write_own: "write_own";
13803
+ write_all: "write_all";
13804
+ }>>;
13805
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
13806
+ read: "read";
13807
+ write: "write";
13808
+ read_own: "read_own";
13809
+ read_all: "read_all";
13810
+ write_own: "write_own";
13811
+ write_all: "write_all";
13812
+ }>>;
13813
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
13814
+ read: "read";
13815
+ write: "write";
13816
+ read_own: "read_own";
13817
+ read_all: "read_all";
13818
+ write_own: "write_own";
13819
+ write_all: "write_all";
13820
+ }>>;
13821
+ 'project.members': z.ZodOptional<z.ZodEnum<{
13822
+ read: "read";
13823
+ write: "write";
13824
+ read_own: "read_own";
13825
+ read_all: "read_all";
13826
+ write_own: "write_own";
13827
+ write_all: "write_all";
13828
+ }>>;
13829
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
13830
+ read: "read";
13831
+ write: "write";
13832
+ read_own: "read_own";
13833
+ read_all: "read_all";
13834
+ write_own: "write_own";
13835
+ write_all: "write_all";
13836
+ }>>;
13837
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
13838
+ read: "read";
13839
+ write: "write";
13840
+ read_own: "read_own";
13841
+ read_all: "read_all";
13842
+ write_own: "write_own";
13843
+ write_all: "write_all";
13844
+ }>>;
13845
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
13846
+ read: "read";
13847
+ write: "write";
13848
+ read_own: "read_own";
13849
+ read_all: "read_all";
13850
+ write_own: "write_own";
13851
+ write_all: "write_all";
13852
+ }>>;
13853
+ }, z.core.$strip>;
13854
+ shared_cloud_allowed: z.ZodBoolean;
13855
+ update_time: z.ZodISODateTime;
13856
+ workspace_id: z.ZodString;
13857
+ writable: z.ZodBoolean;
13858
+ }, z.core.$strip>;
13859
+ export declare const zGetProjectPath: z.ZodObject<{
13860
+ id: z.ZodString;
13861
+ }, z.core.$strip>;
13862
+ /**
13863
+ * The project. In a workspace whose plan no longer includes Projects (a lapsed or downgraded plan), a project other than the default is still answered to whoever may view it, frozen, with `writable: false`. Do not read a 200 as the project taking writes, or as the plan including Projects; read `writable` and `permissions`.
13864
+ */
13865
+ export declare const zGetProjectResponse: z.ZodObject<{
13866
+ create_time: z.ZodISODateTime;
13867
+ created_by_user_id: z.ZodOptional<z.ZodString>;
13868
+ description: z.ZodOptional<z.ZodString>;
13869
+ id: z.ZodString;
13870
+ is_default: z.ZodBoolean;
13871
+ my_role: z.ZodOptional<z.ZodEnum<{
13872
+ runner: "runner";
13873
+ builder: "builder";
13874
+ project_admin: "project_admin";
13875
+ }>>;
13876
+ name: z.ZodString;
13877
+ permissions: z.ZodObject<{
13878
+ project: z.ZodOptional<z.ZodEnum<{
13879
+ read: "read";
13880
+ write: "write";
13881
+ read_own: "read_own";
13882
+ read_all: "read_all";
13883
+ write_own: "write_own";
13884
+ write_all: "write_all";
13885
+ }>>;
13886
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
13887
+ read: "read";
13888
+ write: "write";
13889
+ read_own: "read_own";
13890
+ read_all: "read_all";
13891
+ write_own: "write_own";
13892
+ write_all: "write_all";
13893
+ }>>;
13894
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
13895
+ read: "read";
13896
+ write: "write";
13897
+ read_own: "read_own";
13898
+ read_all: "read_all";
13899
+ write_own: "write_own";
13900
+ write_all: "write_all";
13901
+ }>>;
13902
+ 'project.members': z.ZodOptional<z.ZodEnum<{
13903
+ read: "read";
13904
+ write: "write";
13905
+ read_own: "read_own";
13906
+ read_all: "read_all";
13907
+ write_own: "write_own";
13908
+ write_all: "write_all";
13909
+ }>>;
13910
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
13911
+ read: "read";
13912
+ write: "write";
13913
+ read_own: "read_own";
13914
+ read_all: "read_all";
13915
+ write_own: "write_own";
13916
+ write_all: "write_all";
13917
+ }>>;
13918
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
13919
+ read: "read";
13920
+ write: "write";
13921
+ read_own: "read_own";
13922
+ read_all: "read_all";
13923
+ write_own: "write_own";
13924
+ write_all: "write_all";
13925
+ }>>;
13926
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
13927
+ read: "read";
13928
+ write: "write";
13929
+ read_own: "read_own";
13930
+ read_all: "read_all";
13931
+ write_own: "write_own";
13932
+ write_all: "write_all";
13933
+ }>>;
13934
+ }, z.core.$strip>;
13935
+ shared_cloud_allowed: z.ZodBoolean;
13936
+ update_time: z.ZodISODateTime;
13937
+ workspace_id: z.ZodString;
13938
+ writable: z.ZodBoolean;
13939
+ }, z.core.$strip>;
13940
+ export declare const zUpdateProjectBody: z.ZodObject<{
13941
+ description: z.ZodOptional<z.ZodString>;
13942
+ name: z.ZodOptional<z.ZodString>;
13943
+ shared_cloud_allowed: z.ZodOptional<z.ZodBoolean>;
13944
+ }, z.core.$strip>;
13945
+ export declare const zUpdateProjectPath: z.ZodObject<{
13946
+ id: z.ZodString;
13947
+ }, z.core.$strip>;
13948
+ /**
13949
+ * Project updated
13950
+ */
13951
+ export declare const zUpdateProjectResponse: z.ZodObject<{
13952
+ create_time: z.ZodISODateTime;
13953
+ created_by_user_id: z.ZodOptional<z.ZodString>;
13954
+ description: z.ZodOptional<z.ZodString>;
13955
+ id: z.ZodString;
13956
+ is_default: z.ZodBoolean;
13957
+ my_role: z.ZodOptional<z.ZodEnum<{
13958
+ runner: "runner";
13959
+ builder: "builder";
13960
+ project_admin: "project_admin";
13961
+ }>>;
13962
+ name: z.ZodString;
13963
+ permissions: z.ZodObject<{
13964
+ project: z.ZodOptional<z.ZodEnum<{
13965
+ read: "read";
13966
+ write: "write";
13967
+ read_own: "read_own";
13968
+ read_all: "read_all";
13969
+ write_own: "write_own";
13970
+ write_all: "write_all";
13971
+ }>>;
13972
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
13973
+ read: "read";
13974
+ write: "write";
13975
+ read_own: "read_own";
13976
+ read_all: "read_all";
13977
+ write_own: "write_own";
13978
+ write_all: "write_all";
13979
+ }>>;
13980
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
13981
+ read: "read";
13982
+ write: "write";
13983
+ read_own: "read_own";
13984
+ read_all: "read_all";
13985
+ write_own: "write_own";
13986
+ write_all: "write_all";
13987
+ }>>;
13988
+ 'project.members': z.ZodOptional<z.ZodEnum<{
13989
+ read: "read";
13990
+ write: "write";
13991
+ read_own: "read_own";
13992
+ read_all: "read_all";
13993
+ write_own: "write_own";
13994
+ write_all: "write_all";
13995
+ }>>;
13996
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
13997
+ read: "read";
13998
+ write: "write";
13999
+ read_own: "read_own";
14000
+ read_all: "read_all";
14001
+ write_own: "write_own";
14002
+ write_all: "write_all";
14003
+ }>>;
14004
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
14005
+ read: "read";
14006
+ write: "write";
14007
+ read_own: "read_own";
14008
+ read_all: "read_all";
14009
+ write_own: "write_own";
14010
+ write_all: "write_all";
14011
+ }>>;
14012
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
14013
+ read: "read";
14014
+ write: "write";
14015
+ read_own: "read_own";
14016
+ read_all: "read_all";
14017
+ write_own: "write_own";
14018
+ write_all: "write_all";
14019
+ }>>;
14020
+ }, z.core.$strip>;
14021
+ shared_cloud_allowed: z.ZodBoolean;
14022
+ update_time: z.ZodISODateTime;
14023
+ workspace_id: z.ZodString;
14024
+ writable: z.ZodBoolean;
14025
+ }, z.core.$strip>;
14026
+ export declare const zListProjectMembersPath: z.ZodObject<{
14027
+ id: z.ZodString;
14028
+ }, z.core.$strip>;
14029
+ /**
14030
+ * Project members
14031
+ */
14032
+ export declare const zListProjectMembersResponse2: z.ZodObject<{
14033
+ members: z.ZodArray<z.ZodObject<{
14034
+ added_by_user_id: z.ZodOptional<z.ZodString>;
14035
+ create_time: z.ZodISODateTime;
14036
+ email: z.ZodString;
14037
+ name: z.ZodString;
14038
+ role: z.ZodEnum<{
14039
+ runner: "runner";
14040
+ builder: "builder";
14041
+ project_admin: "project_admin";
14042
+ }>;
14043
+ user_id: z.ZodString;
14044
+ }, z.core.$strip>>;
14045
+ }, z.core.$strip>;
14046
+ export declare const zRemoveProjectMemberPath: z.ZodObject<{
14047
+ id: z.ZodString;
14048
+ userId: z.ZodString;
14049
+ }, z.core.$strip>;
14050
+ /**
14051
+ * Member removed
14052
+ */
14053
+ export declare const zRemoveProjectMemberResponse: z.ZodVoid;
14054
+ export declare const zSetProjectMemberBody: z.ZodObject<{
14055
+ role: z.ZodEnum<{
14056
+ runner: "runner";
14057
+ builder: "builder";
14058
+ project_admin: "project_admin";
14059
+ }>;
14060
+ }, z.core.$strip>;
14061
+ export declare const zSetProjectMemberPath: z.ZodObject<{
14062
+ id: z.ZodString;
14063
+ userId: z.ZodString;
14064
+ }, z.core.$strip>;
14065
+ /**
14066
+ * The member, with the role now in effect
14067
+ */
14068
+ export declare const zSetProjectMemberResponse: z.ZodObject<{
14069
+ added_by_user_id: z.ZodOptional<z.ZodString>;
14070
+ create_time: z.ZodISODateTime;
14071
+ email: z.ZodString;
14072
+ name: z.ZodString;
14073
+ role: z.ZodEnum<{
14074
+ runner: "runner";
14075
+ builder: "builder";
14076
+ project_admin: "project_admin";
14077
+ }>;
14078
+ user_id: z.ZodString;
14079
+ }, z.core.$strip>;
12326
14080
  /**
12327
14081
  * Success
12328
14082
  */
@@ -12340,6 +14094,9 @@ export declare const zExecutePromptBody: z.ZodObject<{
12340
14094
  workflow_id: z.ZodOptional<z.ZodString>;
12341
14095
  workflow_version_id: z.ZodOptional<z.ZodString>;
12342
14096
  }, z.core.$strip>;
14097
+ export declare const zExecutePromptHeaders: z.ZodObject<{
14098
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14099
+ }, z.core.$strip>;
12343
14100
  /**
12344
14101
  * Success - Prompt accepted
12345
14102
  */
@@ -12657,6 +14414,9 @@ export declare const zUploadImageBody: z.ZodObject<{
12657
14414
  subfolder: z.ZodOptional<z.ZodString>;
12658
14415
  type: z.ZodOptional<z.ZodString>;
12659
14416
  }, z.core.$strip>;
14417
+ export declare const zUploadImageHeaders: z.ZodObject<{
14418
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14419
+ }, z.core.$strip>;
12660
14420
  /**
12661
14421
  * Image uploaded successfully
12662
14422
  */
@@ -12669,6 +14429,9 @@ export declare const zUploadMaskBody: z.ZodObject<{
12669
14429
  image: z.ZodString;
12670
14430
  original_ref: z.ZodString;
12671
14431
  }, z.core.$strip>;
14432
+ export declare const zUploadMaskHeaders: z.ZodObject<{
14433
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14434
+ }, z.core.$strip>;
12672
14435
  /**
12673
14436
  * Mask uploaded successfully
12674
14437
  */
@@ -12700,6 +14463,7 @@ export declare const zUploadGrantPutResponse: z.ZodUnion<readonly [z.ZodObject<{
12700
14463
  id: z.ZodString;
12701
14464
  latest_version: z.ZodInt;
12702
14465
  name: z.ZodOptional<z.ZodString>;
14466
+ project_id: z.ZodOptional<z.ZodString>;
12703
14467
  updated_at: z.ZodISODateTime;
12704
14468
  }, z.core.$strip>]>;
12705
14469
  /**
@@ -12916,7 +14680,7 @@ export declare const zGetCccActivityResponse: z.ZodObject<{
12916
14680
  next_cursor: z.ZodOptional<z.ZodString>;
12917
14681
  }, z.core.$strip>;
12918
14682
  /**
12919
- * Editing instructions from this deployed catalog API build
14683
+ * Editing instructions from this deployed catalog API build; private no-store
12920
14684
  */
12921
14685
  export declare const zGetCatalogAgentInstructionsResponse: z.ZodString;
12922
14686
  /**
@@ -12953,11 +14717,20 @@ export declare const zListCccWebsiteCardsQuery: z.ZodObject<{
12953
14717
  en: "en";
12954
14718
  "zh-CN": "zh-CN";
12955
14719
  ja: "ja";
14720
+ "zh-TW": "zh-TW";
14721
+ ko: "ko";
14722
+ es: "es";
14723
+ "pt-BR": "pt-BR";
14724
+ ru: "ru";
14725
+ fr: "fr";
14726
+ tr: "tr";
14727
+ ar: "ar";
12956
14728
  }>>>;
12957
14729
  q: z.ZodOptional<z.ZodString>;
12958
14730
  sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12959
14731
  name: "name";
12960
14732
  popular: "popular";
14733
+ newest: "newest";
12961
14734
  priceAsc: "priceAsc";
12962
14735
  priceDesc: "priceDesc";
12963
14736
  }>>>;
@@ -13025,6 +14798,7 @@ export declare const zListCccWebsiteCardsResponse: z.ZodObject<{
13025
14798
  sort_orders: z.ZodArray<z.ZodEnum<{
13026
14799
  name: "name";
13027
14800
  popular: "popular";
14801
+ newest: "newest";
13028
14802
  priceAsc: "priceAsc";
13029
14803
  priceDesc: "priceDesc";
13030
14804
  }>>;
@@ -13062,10 +14836,6 @@ export declare const zGetCccCreatorResponse: z.ZodObject<{
13062
14836
  }, z.core.$strip>>;
13063
14837
  username: z.ZodString;
13064
14838
  }, z.core.$strip>;
13065
- /**
13066
- * Build-coupled catalog instructions, permissions and endpoint contracts
13067
- */
13068
- export declare const zGetCatalogDocsResponse: z.ZodString;
13069
14839
  export declare const zBatchCccItemsBody: z.ZodObject<{
13070
14840
  expected_draft_rev: z.ZodCoercedBigInt<unknown>;
13071
14841
  items: z.ZodArray<z.ZodObject<{
@@ -13850,6 +15620,14 @@ export declare const zListCccWebsiteModelDirectoryQuery: z.ZodObject<{
13850
15620
  en: "en";
13851
15621
  "zh-CN": "zh-CN";
13852
15622
  ja: "ja";
15623
+ "zh-TW": "zh-TW";
15624
+ ko: "ko";
15625
+ es: "es";
15626
+ "pt-BR": "pt-BR";
15627
+ ru: "ru";
15628
+ fr: "fr";
15629
+ tr: "tr";
15630
+ ar: "ar";
13853
15631
  }>>>;
13854
15632
  }, z.core.$strip>;
13855
15633
  /**
@@ -13866,7 +15644,7 @@ export declare const zListCccWebsiteModelDirectoryResponse: z.ZodObject<{
13866
15644
  revision_id: z.ZodCoercedBigInt<unknown>;
13867
15645
  }, z.core.$strip>;
13868
15646
  /**
13869
- * Catalog OpenAPI with contract fingerprint and environment
15647
+ * Catalog OpenAPI with contract fingerprint and environment; private no-store
13870
15648
  */
13871
15649
  export declare const zGetCatalogOpenApiResponse: z.ZodObject<{
13872
15650
  catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
@@ -13928,6 +15706,7 @@ export declare const zListCccAdminItemsResponse: z.ZodObject<{
13928
15706
  has_live: z.ZodBoolean;
13929
15707
  held_until_start: z.ZodBoolean;
13930
15708
  is_deleted: z.ZodBoolean;
15709
+ on_desktop: z.ZodBoolean;
13931
15710
  on_hub: z.ZodBoolean;
13932
15711
  presentation: z.ZodObject<{
13933
15712
  preview: z.ZodOptional<z.ZodObject<{
@@ -14088,6 +15867,14 @@ export declare const zGetCccWebsiteRootPresentationQuery: z.ZodObject<{
14088
15867
  en: "en";
14089
15868
  "zh-CN": "zh-CN";
14090
15869
  ja: "ja";
15870
+ "zh-TW": "zh-TW";
15871
+ ko: "ko";
15872
+ es: "es";
15873
+ "pt-BR": "pt-BR";
15874
+ ru: "ru";
15875
+ fr: "fr";
15876
+ tr: "tr";
15877
+ ar: "ar";
14091
15878
  }>>>;
14092
15879
  revision_id: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14093
15880
  }, z.core.$strip>;
@@ -14155,6 +15942,7 @@ export declare const zGetCccWebsiteRootPresentationResponse: z.ZodObject<{
14155
15942
  sort_orders: z.ZodArray<z.ZodEnum<{
14156
15943
  name: "name";
14157
15944
  popular: "popular";
15945
+ newest: "newest";
14158
15946
  priceAsc: "priceAsc";
14159
15947
  priceDesc: "priceDesc";
14160
15948
  }>>;
@@ -14184,6 +15972,7 @@ export declare const zGetCccWebsiteRootPresentationResponse: z.ZodObject<{
14184
15972
  sort_orders: z.ZodArray<z.ZodEnum<{
14185
15973
  name: "name";
14186
15974
  popular: "popular";
15975
+ newest: "newest";
14187
15976
  priceAsc: "priceAsc";
14188
15977
  priceDesc: "priceDesc";
14189
15978
  }>>;
@@ -14213,6 +16002,7 @@ export declare const zGetCccWebsiteRootPresentationResponse: z.ZodObject<{
14213
16002
  sort_orders: z.ZodArray<z.ZodEnum<{
14214
16003
  name: "name";
14215
16004
  popular: "popular";
16005
+ newest: "newest";
14216
16006
  priceAsc: "priceAsc";
14217
16007
  priceDesc: "priceDesc";
14218
16008
  }>>;
@@ -14362,12 +16152,15 @@ export declare const zViewFileQuery: z.ZodObject<{
14362
16152
  timestamp: z.ZodOptional<z.ZodInt>;
14363
16153
  channel: z.ZodOptional<z.ZodString>;
14364
16154
  res: z.ZodOptional<z.ZodInt>;
16155
+ redirect: z.ZodOptional<z.ZodString>;
14365
16156
  workspace_id: z.ZodOptional<z.ZodString>;
14366
16157
  }, z.core.$strip>;
14367
16158
  /**
14368
- * Resized JPEG thumbnail (returned when res parameter is used)
16159
+ * Success - File content returned (used when channel or res parameter is present), or, with `redirect=false`, the signed link as JSON with `Cache-Control: no-store`.
14369
16160
  */
14370
- export declare const zViewFileResponse: z.ZodString;
16161
+ export declare const zViewFileResponse: z.ZodObject<{
16162
+ url: z.ZodString;
16163
+ }, z.core.$strip>;
14371
16164
  export declare const zGetLegacyViewMetadataPath: z.ZodObject<{
14372
16165
  folder_name: z.ZodString;
14373
16166
  }, z.core.$strip>;
@@ -14385,6 +16178,9 @@ export declare const zGetApiViewVideoAliasResponse: z.ZodString;
14385
16178
  * Empty object for workflow templates
14386
16179
  */
14387
16180
  export declare const zGetWorkflowTemplatesResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16181
+ export declare const zListWorkflowsHeaders: z.ZodObject<{
16182
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
16183
+ }, z.core.$strip>;
14388
16184
  export declare const zListWorkflowsQuery: z.ZodObject<{
14389
16185
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
14390
16186
  offset: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
@@ -14422,6 +16218,7 @@ export declare const zListWorkflowsResponse: z.ZodObject<{
14422
16218
  id: z.ZodString;
14423
16219
  latest_version: z.ZodInt;
14424
16220
  name: z.ZodOptional<z.ZodString>;
16221
+ project_id: z.ZodOptional<z.ZodString>;
14425
16222
  updated_at: z.ZodISODateTime;
14426
16223
  }, z.core.$strip>>;
14427
16224
  pagination: z.ZodObject<{
@@ -14443,6 +16240,9 @@ export declare const zCreateWorkflowBody: z.ZodObject<{
14443
16240
  name: z.ZodOptional<z.ZodString>;
14444
16241
  workflow_json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14445
16242
  }, z.core.$strip>;
16243
+ export declare const zCreateWorkflowHeaders: z.ZodObject<{
16244
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
16245
+ }, z.core.$strip>;
14446
16246
  /**
14447
16247
  * Workflow created successfully
14448
16248
  */
@@ -14461,6 +16261,7 @@ export declare const zCreateWorkflowResponse: z.ZodObject<{
14461
16261
  id: z.ZodString;
14462
16262
  latest_version: z.ZodInt;
14463
16263
  name: z.ZodOptional<z.ZodString>;
16264
+ project_id: z.ZodOptional<z.ZodString>;
14464
16265
  updated_at: z.ZodISODateTime;
14465
16266
  }, z.core.$strip>;
14466
16267
  export declare const zDeleteWorkflowPath: z.ZodObject<{
@@ -14491,6 +16292,7 @@ export declare const zGetWorkflowResponse: z.ZodObject<{
14491
16292
  id: z.ZodString;
14492
16293
  latest_version: z.ZodInt;
14493
16294
  name: z.ZodOptional<z.ZodString>;
16295
+ project_id: z.ZodOptional<z.ZodString>;
14494
16296
  updated_at: z.ZodISODateTime;
14495
16297
  }, z.core.$strip>;
14496
16298
  export declare const zUpdateWorkflowBody: z.ZodObject<{
@@ -14522,6 +16324,7 @@ export declare const zUpdateWorkflowResponse: z.ZodObject<{
14522
16324
  id: z.ZodString;
14523
16325
  latest_version: z.ZodInt;
14524
16326
  name: z.ZodOptional<z.ZodString>;
16327
+ project_id: z.ZodOptional<z.ZodString>;
14525
16328
  updated_at: z.ZodISODateTime;
14526
16329
  }, z.core.$strip>;
14527
16330
  export declare const zGetWorkflowContentPath: z.ZodObject<{
@@ -14542,6 +16345,9 @@ export declare const zForkWorkflowBody: z.ZodObject<{
14542
16345
  name: z.ZodOptional<z.ZodString>;
14543
16346
  source_version: z.ZodInt;
14544
16347
  }, z.core.$strip>;
16348
+ export declare const zForkWorkflowHeaders: z.ZodObject<{
16349
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
16350
+ }, z.core.$strip>;
14545
16351
  export declare const zForkWorkflowPath: z.ZodObject<{
14546
16352
  workflow_id: z.ZodString;
14547
16353
  }, z.core.$strip>;
@@ -14563,6 +16369,7 @@ export declare const zForkWorkflowResponse: z.ZodObject<{
14563
16369
  id: z.ZodString;
14564
16370
  latest_version: z.ZodInt;
14565
16371
  name: z.ZodOptional<z.ZodString>;
16372
+ project_id: z.ZodOptional<z.ZodString>;
14566
16373
  updated_at: z.ZodISODateTime;
14567
16374
  }, z.core.$strip>;
14568
16375
  export declare const zGetWorkflowSidebarFilePath: z.ZodObject<{
@@ -14633,6 +16440,37 @@ export declare const zCreateWorkflowUploadUrlResponse: z.ZodObject<{
14633
16440
  expires_in: z.ZodInt;
14634
16441
  upload_path: z.ZodString;
14635
16442
  }, z.core.$strip>;
16443
+ export declare const zListWorkspaceAccessEventsQuery: z.ZodObject<{
16444
+ project_id: z.ZodOptional<z.ZodString>;
16445
+ after: z.ZodOptional<z.ZodString>;
16446
+ limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
16447
+ }, z.core.$strip>;
16448
+ /**
16449
+ * Access changes, newest first
16450
+ */
16451
+ export declare const zListWorkspaceAccessEventsResponse: z.ZodObject<{
16452
+ events: z.ZodArray<z.ZodObject<{
16453
+ action: z.ZodString;
16454
+ actor: z.ZodObject<{
16455
+ name: z.ZodString;
16456
+ user_id: z.ZodString;
16457
+ }, z.core.$strip>;
16458
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16459
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16460
+ create_time: z.ZodISODateTime;
16461
+ id: z.ZodUUID;
16462
+ project_id: z.ZodOptional<z.ZodString>;
16463
+ project_name: z.ZodOptional<z.ZodString>;
16464
+ target: z.ZodOptional<z.ZodObject<{
16465
+ name: z.ZodString;
16466
+ user_id: z.ZodString;
16467
+ }, z.core.$strip>>;
16468
+ }, z.core.$strip>>;
16469
+ pagination: z.ZodObject<{
16470
+ has_more: z.ZodBoolean;
16471
+ next_cursor: z.ZodOptional<z.ZodString>;
16472
+ }, z.core.$strip>;
16473
+ }, z.core.$strip>;
14636
16474
  export declare const zListWorkspaceApiKeysQuery: z.ZodObject<{
14637
16475
  include_revoked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14638
16476
  }, z.core.$strip>;
@@ -14750,6 +16588,7 @@ export declare const zListWorkspaceMembersResponse: z.ZodObject<{
14750
16588
  owner: "owner";
14751
16589
  member: "member";
14752
16590
  }>;
16591
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
14753
16592
  }, z.core.$strip>>;
14754
16593
  pagination: z.ZodObject<{
14755
16594
  has_more: z.ZodBoolean;
@@ -14803,6 +16642,55 @@ export declare const zUpdateWorkspaceMemberRoleResponse: z.ZodObject<{
14803
16642
  owner: "owner";
14804
16643
  member: "member";
14805
16644
  }>;
16645
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
16646
+ }, z.core.$strip>;
16647
+ export declare const zRevokeWorkspaceAdminPath: z.ZodObject<{
16648
+ userId: z.ZodString;
16649
+ }, z.core.$strip>;
16650
+ /**
16651
+ * The member, with `workspace_admin` false
16652
+ */
16653
+ export declare const zRevokeWorkspaceAdminResponse: z.ZodObject<{
16654
+ capabilities: z.ZodOptional<z.ZodObject<{
16655
+ can_change_role: z.ZodBoolean;
16656
+ can_remove: z.ZodBoolean;
16657
+ can_set_credit_limit: z.ZodBoolean;
16658
+ }, z.core.$strip>>;
16659
+ email: z.ZodString;
16660
+ id: z.ZodString;
16661
+ is_original_owner: z.ZodBoolean;
16662
+ joined_at: z.ZodISODateTime;
16663
+ managed_by_directory: z.ZodOptional<z.ZodBoolean>;
16664
+ name: z.ZodString;
16665
+ role: z.ZodEnum<{
16666
+ owner: "owner";
16667
+ member: "member";
16668
+ }>;
16669
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
16670
+ }, z.core.$strip>;
16671
+ export declare const zGrantWorkspaceAdminPath: z.ZodObject<{
16672
+ userId: z.ZodString;
16673
+ }, z.core.$strip>;
16674
+ /**
16675
+ * The member, with `workspace_admin` true
16676
+ */
16677
+ export declare const zGrantWorkspaceAdminResponse: z.ZodObject<{
16678
+ capabilities: z.ZodOptional<z.ZodObject<{
16679
+ can_change_role: z.ZodBoolean;
16680
+ can_remove: z.ZodBoolean;
16681
+ can_set_credit_limit: z.ZodBoolean;
16682
+ }, z.core.$strip>>;
16683
+ email: z.ZodString;
16684
+ id: z.ZodString;
16685
+ is_original_owner: z.ZodBoolean;
16686
+ joined_at: z.ZodISODateTime;
16687
+ managed_by_directory: z.ZodOptional<z.ZodBoolean>;
16688
+ name: z.ZodString;
16689
+ role: z.ZodEnum<{
16690
+ owner: "owner";
16691
+ member: "member";
16692
+ }>;
16693
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
14806
16694
  }, z.core.$strip>;
14807
16695
  /**
14808
16696
  * The policy document
@@ -14876,6 +16764,7 @@ export declare const zListWorkspacesResponse2: z.ZodObject<{
14876
16764
  team: "team";
14877
16765
  personal: "personal";
14878
16766
  }>;
16767
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
14879
16768
  }, z.core.$strip>>;
14880
16769
  }, z.core.$strip>;
14881
16770
  export declare const zCreateWorkspaceBody: z.ZodObject<{
@@ -15028,6 +16917,94 @@ export declare const zListWorkspaceDeploymentsResponse: z.ZodObject<{
15028
16917
  }>>;
15029
16918
  picked_deployment_id: z.ZodOptional<z.ZodString>;
15030
16919
  }, z.core.$strip>;
16920
+ export declare const zCreateWorkspaceDeploymentModelUploadBody: z.ZodObject<{
16921
+ blake3: z.ZodOptional<z.ZodString>;
16922
+ filename: z.ZodString;
16923
+ parts: z.ZodOptional<z.ZodBoolean>;
16924
+ reuse: z.ZodOptional<z.ZodBoolean>;
16925
+ sha256: z.ZodString;
16926
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
16927
+ }, z.core.$strip>;
16928
+ export declare const zCreateWorkspaceDeploymentModelUploadPath: z.ZodObject<{
16929
+ id: z.ZodString;
16930
+ deployment_id: z.ZodString;
16931
+ }, z.core.$strip>;
16932
+ /**
16933
+ * comfy-builder's BlobUpload, unchanged
16934
+ */
16935
+ export declare const zCreateWorkspaceDeploymentModelUploadResponse: z.ZodObject<{
16936
+ blobId: z.ZodString;
16937
+ deduplicated: z.ZodBoolean;
16938
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
16939
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
16940
+ expiresAt: z.ZodISODateTime;
16941
+ offsetBytes: z.ZodCoercedBigInt<unknown>;
16942
+ partNumber: z.ZodInt;
16943
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
16944
+ uploadUrl: z.ZodString;
16945
+ }, z.core.$strip>>>;
16946
+ uploadUrl: z.ZodOptional<z.ZodString>;
16947
+ }, z.core.$strip>;
16948
+ export declare const zCompleteWorkspaceDeploymentModelUploadPath: z.ZodObject<{
16949
+ id: z.ZodString;
16950
+ deployment_id: z.ZodString;
16951
+ blob_id: z.ZodString;
16952
+ }, z.core.$strip>;
16953
+ /**
16954
+ * comfy-builder's BlobUploadComplete, unchanged
16955
+ */
16956
+ export declare const zCompleteWorkspaceDeploymentModelUploadResponse: z.ZodObject<{
16957
+ blobId: z.ZodString;
16958
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
16959
+ }, z.core.$strip>;
16960
+ export declare const zRefreshWorkspaceDeploymentModelUploadPartsPath: z.ZodObject<{
16961
+ id: z.ZodString;
16962
+ deployment_id: z.ZodString;
16963
+ blob_id: z.ZodString;
16964
+ }, z.core.$strip>;
16965
+ /**
16966
+ * comfy-builder's BlobUploadParts, unchanged
16967
+ */
16968
+ export declare const zRefreshWorkspaceDeploymentModelUploadPartsResponse: z.ZodObject<{
16969
+ blobId: z.ZodString;
16970
+ parts: z.ZodArray<z.ZodObject<{
16971
+ expiresAt: z.ZodISODateTime;
16972
+ offsetBytes: z.ZodCoercedBigInt<unknown>;
16973
+ partNumber: z.ZodInt;
16974
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
16975
+ uploadUrl: z.ZodString;
16976
+ }, z.core.$strip>>;
16977
+ }, z.core.$strip>;
16978
+ export declare const zListWorkspaceDeploymentModelsPath: z.ZodObject<{
16979
+ id: z.ZodString;
16980
+ deployment_id: z.ZodString;
16981
+ }, z.core.$strip>;
16982
+ /**
16983
+ * comfy-deploy's model list, unchanged
16984
+ */
16985
+ export declare const zListWorkspaceDeploymentModelsResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16986
+ export declare const zAddWorkspaceDeploymentModelBody: z.ZodObject<{
16987
+ blobId: z.ZodString;
16988
+ filename: z.ZodOptional<z.ZodString>;
16989
+ type: z.ZodString;
16990
+ }, z.core.$strip>;
16991
+ export declare const zAddWorkspaceDeploymentModelPath: z.ZodObject<{
16992
+ id: z.ZodString;
16993
+ deployment_id: z.ZodString;
16994
+ }, z.core.$strip>;
16995
+ /**
16996
+ * comfy-deploy's new entry, unchanged
16997
+ */
16998
+ export declare const zAddWorkspaceDeploymentModelResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16999
+ export declare const zRemoveWorkspaceDeploymentModelPath: z.ZodObject<{
17000
+ id: z.ZodString;
17001
+ deployment_id: z.ZodString;
17002
+ model_id: z.ZodString;
17003
+ }, z.core.$strip>;
17004
+ /**
17005
+ * comfy-deploy's entry, now removing, unchanged
17006
+ */
17007
+ export declare const zRemoveWorkspaceDeploymentModelResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15031
17008
  export declare const zStartWorkspaceDeploymentPath: z.ZodObject<{
15032
17009
  id: z.ZodString;
15033
17010
  deployment_id: z.ZodString;
@@ -15085,6 +17062,19 @@ export declare const zRedirectExtensionScriptsPath: z.ZodObject<{
15085
17062
  * Service is healthy
15086
17063
  */
15087
17064
  export declare const zGetHealthResponse: z.ZodString;
17065
+ export declare const zAgentGetSupportReplayHeaders: z.ZodObject<{
17066
+ 'X-Comfy-Replay-Support-Secret': z.ZodString;
17067
+ 'X-Comfy-Workspace-ID': z.ZodString;
17068
+ 'X-Comfy-Replay-Requester': z.ZodString;
17069
+ 'X-Comfy-Replay-Reason': z.ZodString;
17070
+ }, z.core.$strip>;
17071
+ export declare const zAgentGetSupportReplayPath: z.ZodObject<{
17072
+ id: z.ZodUUID;
17073
+ }, z.core.$strip>;
17074
+ /**
17075
+ * A degraded or full AgentReplayBundleV1.
17076
+ */
17077
+ export declare const zAgentGetSupportReplayResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15088
17078
  /**
15089
17079
  * Map of folder type name to list of path entries
15090
17080
  */
@@ -15144,6 +17134,7 @@ export declare const zGetOAuthAuthorizeResponse: z.ZodObject<{
15144
17134
  platform: z.ZodEnum<{
15145
17135
  chatgpt: "chatgpt";
15146
17136
  claude: "claude";
17137
+ cursor: "cursor";
15147
17138
  }>;
15148
17139
  }, z.core.$strip>>;
15149
17140
  workspaces: z.ZodArray<z.ZodObject<{