@comfyorg/ingest-types 1.7.2 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zod.gen.d.ts CHANGED
@@ -51,29 +51,20 @@ export declare const zAccessEventsPagination: z.ZodObject<{
51
51
  next_cursor: z.ZodOptional<z.ZodString>;
52
52
  }, z.core.$strip>;
53
53
  /**
54
- * The upload to add to the deployment, passed to comfy-deploy as written.
54
+ * The upload to add to the models of the deployment's Build.
55
55
  */
56
- export declare const zAddDeploymentModelRequest: z.ZodObject<{
56
+ export declare const zAddDeploymentBuildModelRequest: z.ZodObject<{
57
57
  blobId: z.ZodString;
58
- filename: z.ZodOptional<z.ZodString>;
58
+ filename: z.ZodString;
59
59
  type: z.ZodString;
60
60
  }, z.core.$strip>;
61
61
  /**
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.
62
+ * The upload to add to the deployment, passed to comfy-deploy as written.
63
63
  */
64
- export declare const zAgentAdmissionError: z.ZodObject<{
65
- error: z.ZodObject<{
66
- message: z.ZodString;
67
- reason: z.ZodEnum<{
68
- no_funds: "no_funds";
69
- manual_block: "manual_block";
70
- funds_unavailable: "funds_unavailable";
71
- }>;
72
- type: z.ZodEnum<{
73
- PAYMENT_REQUIRED: "PAYMENT_REQUIRED";
74
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
75
- }>;
76
- }, z.core.$strip>;
64
+ export declare const zAddDeploymentModelRequest: z.ZodObject<{
65
+ blobId: z.ZodString;
66
+ filename: z.ZodOptional<z.ZodString>;
67
+ type: z.ZodString;
77
68
  }, z.core.$strip>;
78
69
  /**
79
70
  * Acknowledgement that the ask is answered and the parked turn was woken; its continuation streams over the WebSocket. `selected` and `other_text` are the answer committed to the ask row. The first answer wins: when an earlier request already committed one (a retry, or another tab), this carries THAT answer, not the request body, so compare it with what you sent before showing it as the user's choice.
@@ -182,6 +173,22 @@ export declare const zAgentAttachmentBoundsExceeded: z.ZodObject<{
182
173
  ATTACHMENT_BOUNDS_EXCEEDED: "ATTACHMENT_BOUNDS_EXCEEDED";
183
174
  }>;
184
175
  }, z.core.$strip>;
176
+ /**
177
+ * One on-demand skill the agent itself ships.
178
+ */
179
+ export declare const zAgentBuiltinSkill: z.ZodObject<{
180
+ description: z.ZodString;
181
+ name: z.ZodString;
182
+ }, z.core.$strip>;
183
+ /**
184
+ * The on-demand skills the agent itself ships, ordered by name.
185
+ */
186
+ export declare const zAgentBuiltinSkillListResponse: z.ZodObject<{
187
+ skills: z.ZodArray<z.ZodObject<{
188
+ description: z.ZodString;
189
+ name: z.ZodString;
190
+ }, z.core.$strip>>;
191
+ }, z.core.$strip>;
185
192
  /**
186
193
  * Acknowledgement that a turn cancellation was requested. Cancellation is asynchronous; the terminal message state (status=error with stop copy) arrives over the WebSocket.
187
194
  */
@@ -298,21 +305,76 @@ export declare const zAgentLlmError: z.ZodObject<{
298
305
  }>;
299
306
  }, z.core.$strip>;
300
307
  /**
301
- * An explicit exact model selection. Unknown properties are refused with 400 so a newer intent is never silently ignored by an older server.
308
+ * OpenAI-shaped error envelope on POST /api/agent/llm/v1/chat/completions and POST /api/agent/llm/v1/responses, written by the LLM proxy or passed through from the provider.
309
+ */
310
+ export declare const zAgentLlmOpenAiError: z.ZodObject<{
311
+ error: z.ZodObject<{
312
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ message: z.ZodString;
314
+ type: z.ZodString;
315
+ }, z.core.$strip>;
316
+ }, z.core.$strip>;
317
+ /**
318
+ * The model for this send. With `option_id` it is a selection's `send` object from GET /api/agent/features, posted verbatim; without it, an exact model id (an eval or a script). Unknown properties are refused with 400 so a newer intent is never silently ignored by an older server. The role name `title` is refused with 422 `model_unavailable`.
302
319
  */
303
320
  export declare const zAgentModelSelection: z.ZodObject<{
304
321
  model_id: z.ZodString;
305
322
  option_id: z.ZodOptional<z.ZodString>;
306
323
  }, z.core.$strip>;
307
324
  /**
308
- * The immutable model selection receipt for an accepted turn.
325
+ * One entry of the model control.
326
+ */
327
+ export declare const zAgentFeatureSelection: z.ZodObject<{
328
+ cost_tier: z.ZodOptional<z.ZodInt>;
329
+ description: z.ZodOptional<z.ZodString>;
330
+ group: z.ZodOptional<z.ZodString>;
331
+ id: z.ZodString;
332
+ kind: z.ZodOptional<z.ZodString>;
333
+ label: z.ZodString;
334
+ model_label: z.ZodOptional<z.ZodString>;
335
+ send: z.ZodObject<{
336
+ model_id: z.ZodString;
337
+ option_id: z.ZodOptional<z.ZodString>;
338
+ }, z.core.$strip>;
339
+ show_model: z.ZodOptional<z.ZodBoolean>;
340
+ }, z.core.$strip>;
341
+ /**
342
+ * The model selections a caller may be shown (GET /api/agent/features). Clients ignore keys they do not know; more are added over time. It never carries an internal model configuration name or a profile revision.
343
+ */
344
+ export declare const zAgentFeatures: z.ZodObject<{
345
+ default_selection: z.ZodOptional<z.ZodString>;
346
+ enabled: z.ZodBoolean;
347
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
348
+ id: z.ZodString;
349
+ label: z.ZodString;
350
+ }, z.core.$strip>>>;
351
+ selected: z.ZodOptional<z.ZodObject<{
352
+ selection: z.ZodString;
353
+ source: z.ZodOptional<z.ZodString>;
354
+ }, z.core.$strip>>;
355
+ selections: z.ZodOptional<z.ZodArray<z.ZodObject<{
356
+ cost_tier: z.ZodOptional<z.ZodInt>;
357
+ description: z.ZodOptional<z.ZodString>;
358
+ group: z.ZodOptional<z.ZodString>;
359
+ id: z.ZodString;
360
+ kind: z.ZodOptional<z.ZodString>;
361
+ label: z.ZodString;
362
+ model_label: z.ZodOptional<z.ZodString>;
363
+ send: z.ZodObject<{
364
+ model_id: z.ZodString;
365
+ option_id: z.ZodOptional<z.ZodString>;
366
+ }, z.core.$strip>;
367
+ show_model: z.ZodOptional<z.ZodBoolean>;
368
+ }, z.core.$strip>>>;
369
+ }, z.core.$strip>;
370
+ /**
371
+ * The immutable model selection receipt for an accepted exact-id turn (a `model_selection` with no `option_id`); no other send gets one.
309
372
  */
310
373
  export declare const zAgentModelReceipt: z.ZodObject<{
311
374
  contract: z.ZodEnum<{
312
375
  v1: "v1";
313
376
  }>;
314
377
  model_id: z.ZodString;
315
- profile_revision: z.ZodString;
316
378
  requested: z.ZodNullable<z.ZodObject<{
317
379
  model_id: z.ZodString;
318
380
  option_id: z.ZodOptional<z.ZodString>;
@@ -327,7 +389,26 @@ export declare const zAgentModelReceipt: z.ZodObject<{
327
389
  wire: z.ZodEnum<{
328
390
  anthropic_messages: "anthropic_messages";
329
391
  openai_chat: "openai_chat";
392
+ openai_responses: "openai_responses";
393
+ }>;
394
+ }, z.core.$strip>;
395
+ export declare const zAgentModelSelectionDisabled: z.ZodIntersection<z.ZodObject<{
396
+ code: z.ZodOptional<z.ZodString>;
397
+ error: z.ZodString;
398
+ kind: z.ZodOptional<z.ZodEnum<{
399
+ unauthenticated: "unauthenticated";
400
+ not_provisioned: "not_provisioned";
401
+ }>>;
402
+ }, z.core.$strip>, z.ZodObject<{
403
+ code: z.ZodEnum<{
404
+ model_selection_disabled: "model_selection_disabled";
330
405
  }>;
406
+ }, z.core.$strip>>;
407
+ /**
408
+ * The selection a model-selection save committed.
409
+ */
410
+ export declare const zAgentModelSelectionSaved: z.ZodObject<{
411
+ selection: z.ZodString;
331
412
  }, z.core.$strip>;
332
413
  export declare const zAgentModelUnavailable: z.ZodIntersection<z.ZodObject<{
333
414
  code: z.ZodOptional<z.ZodString>;
@@ -355,6 +436,7 @@ export declare const zAgentPausedContext: z.ZodObject<{
355
436
  export declare const zAgentPendingAskBase: z.ZodObject<{
356
437
  allow_other: z.ZodBoolean;
357
438
  ask_id: z.ZodString;
439
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
358
440
  kind: z.ZodEnum<{
359
441
  ask_user: "ask_user";
360
442
  run_approval: "run_approval";
@@ -377,6 +459,7 @@ export declare const zAgentPendingAskBase: z.ZodObject<{
377
459
  export declare const zAgentPendingAskUser: z.ZodIntersection<z.ZodObject<{
378
460
  allow_other: z.ZodBoolean;
379
461
  ask_id: z.ZodString;
462
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
380
463
  kind: z.ZodEnum<{
381
464
  ask_user: "ask_user";
382
465
  run_approval: "run_approval";
@@ -403,6 +486,7 @@ export declare const zAgentPendingAskUser: z.ZodIntersection<z.ZodObject<{
403
486
  export declare const zAgentPendingDeleteApproval: z.ZodIntersection<z.ZodObject<{
404
487
  allow_other: z.ZodBoolean;
405
488
  ask_id: z.ZodString;
489
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
406
490
  kind: z.ZodEnum<{
407
491
  ask_user: "ask_user";
408
492
  run_approval: "run_approval";
@@ -440,6 +524,7 @@ export declare const zAgentPendingDeleteApproval: z.ZodIntersection<z.ZodObject<
440
524
  export declare const zAgentPendingPaused: z.ZodIntersection<z.ZodObject<{
441
525
  allow_other: z.ZodBoolean;
442
526
  ask_id: z.ZodString;
527
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
443
528
  kind: z.ZodEnum<{
444
529
  ask_user: "ask_user";
445
530
  run_approval: "run_approval";
@@ -501,6 +586,20 @@ export declare const zAgentPostMessageRequest: z.ZodObject<{
501
586
  workflow_id: z.ZodString;
502
587
  }, z.core.$strip>>>;
503
588
  }, z.core.$strip>;
589
+ /**
590
+ * User-by-workspace assignment for the proactive greeting experiment.
591
+ */
592
+ export declare const zAgentProactiveGreetingAssignment: z.ZodObject<{
593
+ group_key: z.ZodString;
594
+ user_id: z.ZodString;
595
+ variant: z.ZodEnum<{
596
+ control: "control";
597
+ generic: "generic";
598
+ "canvas-prefill": "canvas-prefill";
599
+ "canvas-only": "canvas-only";
600
+ }>;
601
+ workspace_id: z.ZodString;
602
+ }, z.core.$strip>;
504
603
  /**
505
604
  * Attachment extensions the agent can only describe from metadata. A subset of the containers
506
605
  * ingest sorts into a load node's video/audio lists: that categoriser also accepts .wmv, .flv,
@@ -598,6 +697,7 @@ export declare const zAgentRunApprovalContext: z.ZodObject<{
598
697
  export declare const zAgentPendingRunApproval: z.ZodIntersection<z.ZodObject<{
599
698
  allow_other: z.ZodBoolean;
600
699
  ask_id: z.ZodString;
700
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
601
701
  kind: z.ZodEnum<{
602
702
  ask_user: "ask_user";
603
703
  run_approval: "run_approval";
@@ -637,6 +737,7 @@ export declare const zAgentPendingAsk: z.ZodUnion<readonly [z.ZodIntersection<z.
637
737
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
638
738
  allow_other: z.ZodBoolean;
639
739
  ask_id: z.ZodString;
740
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
640
741
  kind: z.ZodEnum<{
641
742
  ask_user: "ask_user";
642
743
  run_approval: "run_approval";
@@ -661,6 +762,7 @@ export declare const zAgentPendingAsk: z.ZodUnion<readonly [z.ZodIntersection<z.
661
762
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
662
763
  allow_other: z.ZodBoolean;
663
764
  ask_id: z.ZodString;
765
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
664
766
  kind: z.ZodEnum<{
665
767
  ask_user: "ask_user";
666
768
  run_approval: "run_approval";
@@ -696,6 +798,7 @@ export declare const zAgentPendingAsk: z.ZodUnion<readonly [z.ZodIntersection<z.
696
798
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
697
799
  allow_other: z.ZodBoolean;
698
800
  ask_id: z.ZodString;
801
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
699
802
  kind: z.ZodEnum<{
700
803
  ask_user: "ask_user";
701
804
  run_approval: "run_approval";
@@ -725,6 +828,7 @@ export declare const zAgentPendingAsk: z.ZodUnion<readonly [z.ZodIntersection<z.
725
828
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
726
829
  allow_other: z.ZodBoolean;
727
830
  ask_id: z.ZodString;
831
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
728
832
  kind: z.ZodEnum<{
729
833
  ask_user: "ask_user";
730
834
  run_approval: "run_approval";
@@ -765,6 +869,7 @@ export declare const zAgentAskFrame: z.ZodObject<{
765
869
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
766
870
  allow_other: z.ZodBoolean;
767
871
  ask_id: z.ZodString;
872
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
768
873
  kind: z.ZodEnum<{
769
874
  ask_user: "ask_user";
770
875
  run_approval: "run_approval";
@@ -789,6 +894,7 @@ export declare const zAgentAskFrame: z.ZodObject<{
789
894
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
790
895
  allow_other: z.ZodBoolean;
791
896
  ask_id: z.ZodString;
897
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
792
898
  kind: z.ZodEnum<{
793
899
  ask_user: "ask_user";
794
900
  run_approval: "run_approval";
@@ -824,6 +930,7 @@ export declare const zAgentAskFrame: z.ZodObject<{
824
930
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
825
931
  allow_other: z.ZodBoolean;
826
932
  ask_id: z.ZodString;
933
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
827
934
  kind: z.ZodEnum<{
828
935
  ask_user: "ask_user";
829
936
  run_approval: "run_approval";
@@ -853,6 +960,7 @@ export declare const zAgentAskFrame: z.ZodObject<{
853
960
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
854
961
  allow_other: z.ZodBoolean;
855
962
  ask_id: z.ZodString;
963
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
856
964
  kind: z.ZodEnum<{
857
965
  ask_user: "ask_user";
858
966
  run_approval: "run_approval";
@@ -899,6 +1007,7 @@ export declare const zAgentAskServerFrame: z.ZodUnion<readonly [z.ZodObject<{
899
1007
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
900
1008
  allow_other: z.ZodBoolean;
901
1009
  ask_id: z.ZodString;
1010
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
902
1011
  kind: z.ZodEnum<{
903
1012
  ask_user: "ask_user";
904
1013
  run_approval: "run_approval";
@@ -923,6 +1032,7 @@ export declare const zAgentAskServerFrame: z.ZodUnion<readonly [z.ZodObject<{
923
1032
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
924
1033
  allow_other: z.ZodBoolean;
925
1034
  ask_id: z.ZodString;
1035
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
926
1036
  kind: z.ZodEnum<{
927
1037
  ask_user: "ask_user";
928
1038
  run_approval: "run_approval";
@@ -958,6 +1068,7 @@ export declare const zAgentAskServerFrame: z.ZodUnion<readonly [z.ZodObject<{
958
1068
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
959
1069
  allow_other: z.ZodBoolean;
960
1070
  ask_id: z.ZodString;
1071
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
961
1072
  kind: z.ZodEnum<{
962
1073
  ask_user: "ask_user";
963
1074
  run_approval: "run_approval";
@@ -987,6 +1098,7 @@ export declare const zAgentAskServerFrame: z.ZodUnion<readonly [z.ZodObject<{
987
1098
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
988
1099
  allow_other: z.ZodBoolean;
989
1100
  ask_id: z.ZodString;
1101
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
990
1102
  kind: z.ZodEnum<{
991
1103
  ask_user: "ask_user";
992
1104
  run_approval: "run_approval";
@@ -1188,7 +1300,7 @@ export declare const zAgentToolCallFrame: z.ZodObject<{
1188
1300
  }>;
1189
1301
  }, z.core.$strip>;
1190
1302
  /**
1191
- * Acknowledgement that a turn was accepted. The agent runs asynchronously; output streams over the WebSocket (agent_message_delta, agent_tool_call, agent_message_done); canvas edits arrive as doc_update frames. The model selection receipt is present when the backend supports its configured wire. A client that requested selection must treat a missing receipt as selection not applied.
1303
+ * Acknowledgement that a turn was accepted. The agent runs asynchronously; output streams over the WebSocket (agent_message_delta, agent_tool_call, agent_message_done); canvas edits arrive as doc_update frames. `model_selection`, the receipt, answers an exact-id request (a `model_selection` with no `option_id`, as an eval sends) and nothing else: the 202 for a send with no `model_selection`, or with an `option_id` (a selection from GET /api/agent/features), has no `model_selection` key. A client that sent an exact-id request must treat a missing receipt as selection not applied (a backend that predates the contract). The frontend needs no receipt: the next features read shows the thread's selection.
1192
1304
  */
1193
1305
  export declare const zAgentTurnAccepted: z.ZodObject<{
1194
1306
  message_id: z.ZodString;
@@ -1197,7 +1309,6 @@ export declare const zAgentTurnAccepted: z.ZodObject<{
1197
1309
  v1: "v1";
1198
1310
  }>;
1199
1311
  model_id: z.ZodString;
1200
- profile_revision: z.ZodString;
1201
1312
  requested: z.ZodNullable<z.ZodObject<{
1202
1313
  model_id: z.ZodString;
1203
1314
  option_id: z.ZodOptional<z.ZodString>;
@@ -1212,6 +1323,7 @@ export declare const zAgentTurnAccepted: z.ZodObject<{
1212
1323
  wire: z.ZodEnum<{
1213
1324
  anthropic_messages: "anthropic_messages";
1214
1325
  openai_chat: "openai_chat";
1326
+ openai_responses: "openai_responses";
1215
1327
  }>;
1216
1328
  }, z.core.$strip>>;
1217
1329
  thread_id: z.ZodString;
@@ -1306,6 +1418,9 @@ export declare const zAgentMessageDoneFrame: z.ZodObject<{
1306
1418
  }, z.core.$strip>;
1307
1419
  export declare const zAgentUsageStatusResponse: z.ZodObject<{
1308
1420
  has_used_agent: z.ZodBoolean;
1421
+ scope: z.ZodOptional<z.ZodEnum<{
1422
+ local_installation: "local_installation";
1423
+ }>>;
1309
1424
  }, z.core.$strip>;
1310
1425
  /**
1311
1426
  * Attachment extensions whose content the model can see: the raster formats Go's image
@@ -1551,6 +1666,7 @@ export declare const zAgentAttachmentError: z.ZodDiscriminatedUnion<[z.ZodObject
1551
1666
  * Represents a user-owned asset (image, video, or other generated output).
1552
1667
  */
1553
1668
  export declare const zAsset: z.ZodObject<{
1669
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
1554
1670
  created_at: z.ZodISODateTime;
1555
1671
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1556
1672
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1576,6 +1692,7 @@ export declare const zAsset: z.ZodObject<{
1576
1692
  * Response returned when a new asset is successfully created.
1577
1693
  */
1578
1694
  export declare const zAssetCreated: z.ZodIntersection<z.ZodObject<{
1695
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
1579
1696
  created_at: z.ZodISODateTime;
1580
1697
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1581
1698
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1887,7 +2004,8 @@ export declare const zBillingAddress: z.ZodObject<{
1887
2004
  * every owner.
1888
2005
  *
1889
2006
  * When the deployment has billing disabled, this endpoint answers without
1890
- * consulting billing-api: can_top_up is true; can_manage_members,
2007
+ * consulting billing-api: can_top_up is true; can_view_workspace_usage
2008
+ * follows the same rule as with billing enabled; can_manage_members,
1891
2009
  * can_invite_members, can_manage_subscription, can_manage_auto_top_up and
1892
2010
  * can_view_auto_top_up follow the owner role, and
1893
2011
  * can_view_auto_top_up_member_notice is true for a non-owner. Other billing-action fields are false. These role
@@ -1921,6 +2039,8 @@ export declare const zBillingCapabilities: z.ZodObject<{
1921
2039
  can_view_own_usage: z.ZodOptional<z.ZodBoolean>;
1922
2040
  can_view_pending_invites: z.ZodBoolean;
1923
2041
  can_view_team_usage: z.ZodBoolean;
2042
+ can_view_unallocated_usage: z.ZodBoolean;
2043
+ can_view_workspace_usage: z.ZodBoolean;
1924
2044
  }, z.core.$strip>;
1925
2045
  /**
1926
2046
  * Why a capability resolved false, keyed by the capability. The value
@@ -2176,6 +2296,10 @@ export declare const zBillingCapabilityDenials: z.ZodObject<{
2176
2296
  not_workspace_owner: "not_workspace_owner";
2177
2297
  usage_attribution_unavailable: "usage_attribution_unavailable";
2178
2298
  }>>;
2299
+ can_view_workspace_usage: z.ZodOptional<z.ZodEnum<{
2300
+ not_a_member: "not_a_member";
2301
+ not_workspace_owner: "not_workspace_owner";
2302
+ }>>;
2179
2303
  }, z.core.$strip>;
2180
2304
  /**
2181
2305
  * Identifies capability values currently using safe rollout defaults
@@ -2311,6 +2435,23 @@ export declare const zBillingOpOutcomeResponse: z.ZodObject<{
2311
2435
  reconciliation_needed: "reconciliation_needed";
2312
2436
  }>;
2313
2437
  }, z.core.$strip>;
2438
+ /**
2439
+ * Answers "should this client show and apply a promotion right now?". Non-null means yes: show the offer, put `promotion_code` on plan links and follow `auto_apply` at checkout. Null means no promotion is running, and clients show and apply nothing. It is not a statement about the caller: it does not say this visitor or workspace qualifies, and a code restricted to first-time customers is still refused at checkout for anyone else.
2440
+ */
2441
+ export declare const zBillingPromotion: z.ZodNullable<z.ZodObject<{
2442
+ auto_apply: z.ZodBoolean;
2443
+ ends_at: z.ZodNullable<z.ZodISODateTime>;
2444
+ percent_off: z.ZodNullable<z.ZodNumber>;
2445
+ promotion_code: z.ZodString;
2446
+ }, z.core.$strip>>;
2447
+ export declare const zBillingPromotionResponse: z.ZodObject<{
2448
+ promotion: z.ZodNullable<z.ZodObject<{
2449
+ auto_apply: z.ZodBoolean;
2450
+ ends_at: z.ZodNullable<z.ZodISODateTime>;
2451
+ percent_off: z.ZodNullable<z.ZodNumber>;
2452
+ promotion_code: z.ZodString;
2453
+ }, z.core.$strip>>;
2454
+ }, z.core.$strip>;
2314
2455
  /**
2315
2456
  * Payment lifecycle status
2316
2457
  */
@@ -2407,6 +2548,52 @@ export declare const zBudgetChange: z.ZodObject<{
2407
2548
  before: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2408
2549
  changed_at: z.ZodISODateTime;
2409
2550
  }, z.core.$strip>;
2551
+ /**
2552
+ * A selected job that stayed where it was, and why.
2553
+ */
2554
+ export declare const zBudgetHeldJobNotResumed: z.ZodObject<{
2555
+ budget: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2556
+ denied_reason: z.ZodOptional<z.ZodString>;
2557
+ job_id: z.ZodUUID;
2558
+ reason: z.ZodEnum<{
2559
+ budget_exceeded: "budget_exceeded";
2560
+ failed: "failed";
2561
+ not_found: "not_found";
2562
+ not_held: "not_held";
2563
+ budget_check_unavailable: "budget_check_unavailable";
2564
+ spend_denied: "spend_denied";
2565
+ no_free_slot: "no_free_slot";
2566
+ }>;
2567
+ }, z.core.$strip>;
2568
+ /**
2569
+ * Which held jobs to resume. An empty body resumes every held job the caller may resume.
2570
+ */
2571
+ export declare const zBudgetHeldJobsResumeRequest: z.ZodObject<{
2572
+ cursor: z.ZodOptional<z.ZodString>;
2573
+ job_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2574
+ }, z.core.$strip>;
2575
+ /**
2576
+ * The outcome of one resume call. Every selected job is in exactly one of the two lists.
2577
+ */
2578
+ export declare const zBudgetHeldJobsResumeResult: z.ZodObject<{
2579
+ more_held: z.ZodBoolean;
2580
+ next_cursor: z.ZodOptional<z.ZodString>;
2581
+ not_resumed: z.ZodArray<z.ZodObject<{
2582
+ budget: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2583
+ denied_reason: z.ZodOptional<z.ZodString>;
2584
+ job_id: z.ZodUUID;
2585
+ reason: z.ZodEnum<{
2586
+ budget_exceeded: "budget_exceeded";
2587
+ failed: "failed";
2588
+ not_found: "not_found";
2589
+ not_held: "not_held";
2590
+ budget_check_unavailable: "budget_check_unavailable";
2591
+ spend_denied: "spend_denied";
2592
+ no_free_slot: "no_free_slot";
2593
+ }>;
2594
+ }, z.core.$strip>>;
2595
+ resumed: z.ZodArray<z.ZodUUID>;
2596
+ }, z.core.$strip>;
2410
2597
  export declare const zBudgetHistory: z.ZodObject<{
2411
2598
  changes: z.ZodArray<z.ZodObject<{
2412
2599
  action: z.ZodEnum<{
@@ -2448,7 +2635,7 @@ export declare const zBudgetScopeKind: z.ZodEnum<{
2448
2635
  deployment: "deployment";
2449
2636
  }>;
2450
2637
  /**
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.
2638
+ * A budget with its spend in the workspace's current billing period. This is the subscription cycle or, when there is no cycle, the UTC calendar month. Only a workspace whose subscription is unresolved has no budget period. Amounts come in credits and in micro-USD; a client shows credits as received and never converts.
2452
2639
  *
2453
2640
  */
2454
2641
  export declare const zBudget: z.ZodObject<{
@@ -2559,6 +2746,10 @@ export declare const zBudgetList: z.ZodObject<{
2559
2746
  spent_micro_usd: z.ZodCoercedBigInt<unknown>;
2560
2747
  updated_by: z.ZodString;
2561
2748
  }, z.core.$strip>>;
2749
+ viewer: z.ZodOptional<z.ZodEnum<{
2750
+ owner: "owner";
2751
+ member: "member";
2752
+ }>>;
2562
2753
  }, z.core.$strip>;
2563
2754
  export declare const zBudgetUpdateRequest: z.ZodObject<{
2564
2755
  alert_percents: z.ZodOptional<z.ZodArray<z.ZodInt>>;
@@ -3097,6 +3288,54 @@ export declare const zCccSiteTagUsage: z.ZodObject<{
3097
3288
  tag: z.ZodString;
3098
3289
  }, z.core.$strip>>;
3099
3290
  }, z.core.$strip>;
3291
+ /**
3292
+ * One app page at its Draft head, with only what a Desktop card shows.
3293
+ */
3294
+ export declare const zCccStaffApp: z.ZodObject<{
3295
+ description: z.ZodString;
3296
+ draft_page: z.ZodOptional<z.ZodString>;
3297
+ enabled: z.ZodBoolean;
3298
+ hub_page: z.ZodOptional<z.ZodString>;
3299
+ on_desktop: z.ZodBoolean;
3300
+ on_hub: z.ZodBoolean;
3301
+ picture: z.ZodOptional<z.ZodString>;
3302
+ slug: z.ZodString;
3303
+ status: z.ZodEnum<{
3304
+ not_live: "not_live";
3305
+ unpublished: "unpublished";
3306
+ hidden: "hidden";
3307
+ scheduled: "scheduled";
3308
+ live: "live";
3309
+ }>;
3310
+ title: z.ZodString;
3311
+ uid: z.ZodUUID;
3312
+ }, z.core.$strip>;
3313
+ /**
3314
+ * One page of the comfy.org staff app list.
3315
+ */
3316
+ export declare const zCccStaffAppsPage: z.ZodObject<{
3317
+ has_more: z.ZodBoolean;
3318
+ items: z.ZodArray<z.ZodObject<{
3319
+ description: z.ZodString;
3320
+ draft_page: z.ZodOptional<z.ZodString>;
3321
+ enabled: z.ZodBoolean;
3322
+ hub_page: z.ZodOptional<z.ZodString>;
3323
+ on_desktop: z.ZodBoolean;
3324
+ on_hub: z.ZodBoolean;
3325
+ picture: z.ZodOptional<z.ZodString>;
3326
+ slug: z.ZodString;
3327
+ status: z.ZodEnum<{
3328
+ not_live: "not_live";
3329
+ unpublished: "unpublished";
3330
+ hidden: "hidden";
3331
+ scheduled: "scheduled";
3332
+ live: "live";
3333
+ }>;
3334
+ title: z.ZodString;
3335
+ uid: z.ZodUUID;
3336
+ }, z.core.$strip>>;
3337
+ next_cursor: z.ZodOptional<z.ZodString>;
3338
+ }, z.core.$strip>;
3100
3339
  export declare const zCccStaffPermissions: z.ZodObject<{
3101
3340
  account_id: z.ZodString;
3102
3341
  avatar_url: z.ZodOptional<z.ZodString>;
@@ -3364,8 +3603,8 @@ export declare const zCccStagingReview: z.ZodObject<{
3364
3603
  summary: z.ZodString;
3365
3604
  }, z.core.$strip>>>;
3366
3605
  representation: z.ZodOptional<z.ZodEnum<{
3367
- page: "page";
3368
3606
  selection: "selection";
3607
+ page: "page";
3369
3608
  detail: "detail";
3370
3609
  }>>;
3371
3610
  selection_digest: z.ZodOptional<z.ZodString>;
@@ -4155,6 +4394,7 @@ export declare const zBillingBalanceResponse: z.ZodObject<{
4155
4394
  pending_charges_micros: z.ZodOptional<z.ZodNumber>;
4156
4395
  prepaid_balance_cents: z.ZodOptional<z.ZodNumber>;
4157
4396
  prepaid_balance_micros: z.ZodOptional<z.ZodNumber>;
4397
+ scoped_balance_cents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
4158
4398
  suggested_topup_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
4159
4399
  }, z.core.$strip>;
4160
4400
  /**
@@ -4199,12 +4439,53 @@ export declare const zDeployToCloudError: z.ZodObject<{
4199
4439
  }>;
4200
4440
  message: z.ZodOptional<z.ZodString>;
4201
4441
  }, z.core.$strip>;
4442
+ /**
4443
+ * The version cut with the model added.
4444
+ */
4445
+ export declare const zDeploymentBuildModelRelease: z.ZodObject<{
4446
+ releaseId: z.ZodString;
4447
+ }, z.core.$strip>;
4202
4448
  /**
4203
4449
  * The node types of the workflow open in the editor.
4204
4450
  */
4205
4451
  export declare const zDeploymentCompatibilityRequest: z.ZodObject<{
4206
4452
  node_types: z.ZodArray<z.ZodString>;
4207
4453
  }, z.core.$strip>;
4454
+ /**
4455
+ * One model file added to a deployment: comfy-deploy's DeploymentModel (an entry of its GET /v1/deployments/{id}/models, and its POST 202), passed through as written; the fields are comfy-deploy's.
4456
+ */
4457
+ export declare const zDeploymentModel: z.ZodObject<{
4458
+ failure: z.ZodOptional<z.ZodString>;
4459
+ filename: z.ZodString;
4460
+ id: z.ZodString;
4461
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4462
+ status: z.ZodEnum<{
4463
+ failed: "failed";
4464
+ ready: "ready";
4465
+ adding: "adding";
4466
+ removing: "removing";
4467
+ }>;
4468
+ type: z.ZodString;
4469
+ }, z.core.$strip>;
4470
+ /**
4471
+ * comfy-deploy's DeploymentModelList (its GET /v1/deployments/{id}/models 200), passed through as written: every model file added to the deployment, oldest first.
4472
+ */
4473
+ export declare const zDeploymentModelList: z.ZodObject<{
4474
+ addEnabled: z.ZodBoolean;
4475
+ models: z.ZodArray<z.ZodObject<{
4476
+ failure: z.ZodOptional<z.ZodString>;
4477
+ filename: z.ZodString;
4478
+ id: z.ZodString;
4479
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4480
+ status: z.ZodEnum<{
4481
+ failed: "failed";
4482
+ ready: "ready";
4483
+ adding: "adding";
4484
+ removing: "removing";
4485
+ }>;
4486
+ type: z.ZodString;
4487
+ }, z.core.$strip>>;
4488
+ }, z.core.$strip>;
4208
4489
  /**
4209
4490
  * comfy-builder's BlobUploadComplete (its POST /v1/blobs/{id}/complete 200), passed through as written.
4210
4491
  */
@@ -4335,6 +4616,12 @@ export declare const zDesktopLoginCodeRedeemResponse: z.ZodObject<{
4335
4616
  redeemed: "redeemed";
4336
4617
  }>;
4337
4618
  }, z.core.$strip>;
4619
+ /**
4620
+ * A one-time Firebase custom token for the Desktop grant's user.
4621
+ */
4622
+ export declare const zDesktopWebSessionResponse: z.ZodObject<{
4623
+ custom_token: z.ZodString;
4624
+ }, z.core.$strip>;
4338
4625
  /**
4339
4626
  * First rejected op in an abort-remainder batch.
4340
4627
  */
@@ -4476,18 +4763,6 @@ export declare const zExchangeTokenRequest: z.ZodObject<{
4476
4763
  }>>;
4477
4764
  workspace_id: z.ZodOptional<z.ZodString>;
4478
4765
  }, z.core.$strip>;
4479
- /**
4480
- * Detailed execution error information from ComfyUI
4481
- */
4482
- export declare const zExecutionError: z.ZodObject<{
4483
- current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4484
- current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4485
- exception_message: z.ZodString;
4486
- exception_type: z.ZodString;
4487
- node_id: z.ZodString;
4488
- node_type: z.ZodString;
4489
- traceback: z.ZodArray<z.ZodString>;
4490
- }, z.core.$strip>;
4491
4766
  /**
4492
4767
  * Response containing a signed download URL for an exported asset archive.
4493
4768
  */
@@ -4882,51 +5157,10 @@ export declare const zJobDeployment: z.ZodObject<{
4882
5157
  release_version: z.ZodOptional<z.ZodInt>;
4883
5158
  }, z.core.$strip>;
4884
5159
  /**
4885
- * Lightweight job data for list views (workflow and full outputs excluded)
4886
- */
4887
- export declare const zJobEntry: z.ZodObject<{
4888
- create_time: z.ZodCoercedBigInt<unknown>;
4889
- deployment: z.ZodOptional<z.ZodObject<{
4890
- build_name: z.ZodOptional<z.ZodString>;
4891
- deployment_id: z.ZodString;
4892
- name: z.ZodOptional<z.ZodString>;
4893
- release_id: z.ZodString;
4894
- release_version: z.ZodOptional<z.ZodInt>;
4895
- }, z.core.$strip>>;
4896
- execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
4897
- execution_error: z.ZodOptional<z.ZodObject<{
4898
- current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4899
- current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4900
- exception_message: z.ZodString;
4901
- exception_type: z.ZodString;
4902
- node_id: z.ZodString;
4903
- node_type: z.ZodString;
4904
- traceback: z.ZodArray<z.ZodString>;
4905
- }, z.core.$strip>>;
4906
- execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
4907
- executor: z.ZodOptional<z.ZodEnum<{
4908
- cloud_inference: "cloud_inference";
4909
- platform_gateway: "platform_gateway";
4910
- }>>;
4911
- id: z.ZodUUID;
4912
- outputs_count: z.ZodOptional<z.ZodInt>;
4913
- preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4914
- previewable_outputs_count: z.ZodOptional<z.ZodInt>;
4915
- project_id: z.ZodOptional<z.ZodString>;
4916
- status: z.ZodEnum<{
4917
- cancelled: "cancelled";
4918
- completed: "completed";
4919
- failed: "failed";
4920
- pending: "pending";
4921
- in_progress: "in_progress";
4922
- }>;
4923
- workflow_id: z.ZodOptional<z.ZodString>;
4924
- }, z.core.$strip>;
4925
- /**
4926
- * Where one executed node ran and where its output is shown, as ComfyUI
4927
- * records it in the history `meta`. Live `executed` messages carry the
4928
- * same `display_node`.
4929
- *
5160
+ * Where one executed node ran and where its output is shown, as ComfyUI
5161
+ * records it in the history `meta`. Live `executed` messages carry the
5162
+ * same `display_node`.
5163
+ *
4930
5164
  */
4931
5165
  export declare const zJobExecutionMetaEntry: z.ZodObject<{
4932
5166
  display_node: z.ZodOptional<z.ZodString>;
@@ -4935,63 +5169,38 @@ export declare const zJobExecutionMetaEntry: z.ZodObject<{
4935
5169
  real_node_id: z.ZodOptional<z.ZodString>;
4936
5170
  }, z.core.$strip>;
4937
5171
  /**
4938
- * Full job details including workflow and outputs
5172
+ * A budget as billing reported it when a job was held. Every caller who can read the job gets `scope_kind`, `resets_at` and `set_by`. The identifiers, the mode and the amounts are present only for an Owner of the job's workspace; their absence means the caller may not see them, never zero.
4939
5173
  */
4940
- export declare const zJobDetailResponse: z.ZodObject<{
4941
- create_time: z.ZodCoercedBigInt<unknown>;
4942
- deployment: z.ZodOptional<z.ZodObject<{
4943
- build_name: z.ZodOptional<z.ZodString>;
4944
- deployment_id: z.ZodString;
4945
- name: z.ZodOptional<z.ZodString>;
4946
- release_id: z.ZodString;
4947
- release_version: z.ZodOptional<z.ZodInt>;
4948
- }, z.core.$strip>>;
4949
- execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
4950
- execution_error: z.ZodOptional<z.ZodObject<{
4951
- current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4952
- current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4953
- exception_message: z.ZodString;
4954
- exception_type: z.ZodString;
4955
- node_id: z.ZodString;
4956
- node_type: z.ZodString;
4957
- traceback: z.ZodArray<z.ZodString>;
4958
- }, z.core.$strip>>;
4959
- execution_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4960
- display_node: z.ZodOptional<z.ZodString>;
4961
- node_id: z.ZodOptional<z.ZodString>;
4962
- parent_node: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4963
- real_node_id: z.ZodOptional<z.ZodString>;
4964
- }, z.core.$strip>>>;
4965
- execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
4966
- execution_status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4967
- executor: z.ZodOptional<z.ZodEnum<{
4968
- cloud_inference: "cloud_inference";
4969
- platform_gateway: "platform_gateway";
4970
- }>>;
4971
- id: z.ZodUUID;
4972
- outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4973
- outputs_count: z.ZodOptional<z.ZodInt>;
4974
- preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4975
- previewable_outputs_count: z.ZodOptional<z.ZodInt>;
4976
- project_id: z.ZodOptional<z.ZodString>;
4977
- queue_position: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4978
- queue_reason: z.ZodOptional<z.ZodEnum<{
4979
- concurrency_limit: "concurrency_limit";
4980
- capacity: "capacity";
4981
- }>>;
4982
- status: z.ZodEnum<{
4983
- cancelled: "cancelled";
4984
- completed: "completed";
4985
- failed: "failed";
4986
- pending: "pending";
4987
- in_progress: "in_progress";
4988
- }>;
4989
- update_time: z.ZodCoercedBigInt<unknown>;
4990
- user_id: z.ZodOptional<z.ZodString>;
4991
- workflow: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4992
- workflow_id: z.ZodOptional<z.ZodString>;
4993
- workflow_version_id: z.ZodOptional<z.ZodString>;
4994
- workspace_id: z.ZodOptional<z.ZodString>;
5174
+ export declare const zJobHeldBudget: z.ZodObject<{
5175
+ id: z.ZodOptional<z.ZodString>;
5176
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5177
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5178
+ mode: z.ZodOptional<z.ZodString>;
5179
+ resets_at: z.ZodISODateTime;
5180
+ scope_id: z.ZodOptional<z.ZodString>;
5181
+ scope_kind: z.ZodString;
5182
+ set_by: z.ZodString;
5183
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5184
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5185
+ }, z.core.$strip>;
5186
+ /**
5187
+ * The facts the queue shows for a job held by a budget decision: why it is held, the budget that stopped it, and whether the caller may resume it. The client renders these as received and derives none of them from the caller's role.
5188
+ */
5189
+ export declare const zJobBudgetHold: z.ZodObject<{
5190
+ budget: z.ZodOptional<z.ZodObject<{
5191
+ id: z.ZodOptional<z.ZodString>;
5192
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5193
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5194
+ mode: z.ZodOptional<z.ZodString>;
5195
+ resets_at: z.ZodISODateTime;
5196
+ scope_id: z.ZodOptional<z.ZodString>;
5197
+ scope_kind: z.ZodString;
5198
+ set_by: z.ZodString;
5199
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5200
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5201
+ }, z.core.$strip>>;
5202
+ can_resume: z.ZodBoolean;
5203
+ reason: z.ZodString;
4995
5204
  }, z.core.$strip>;
4996
5205
  /**
4997
5206
  * An asset produced by a job, enriched with the per-output node context
@@ -5024,9 +5233,26 @@ export declare const zJobStatusResponse: z.ZodObject<{
5024
5233
  status: z.ZodEnum<{
5025
5234
  cancelled: "cancelled";
5026
5235
  error: "error";
5236
+ success: "success";
5027
5237
  completed: "completed";
5028
5238
  pending: "pending";
5239
+ cancel_requested: "cancel_requested";
5029
5240
  in_progress: "in_progress";
5241
+ held_budget: "held_budget";
5242
+ submitted: "submitted";
5243
+ preprocessing: "preprocessing";
5244
+ queued_limited: "queued_limited";
5245
+ queued_waiting: "queued_waiting";
5246
+ allocated: "allocated";
5247
+ preparing: "preparing";
5248
+ pending_execution: "pending_execution";
5249
+ executing: "executing";
5250
+ executed: "executed";
5251
+ cancel_pending: "cancel_pending";
5252
+ erroring: "erroring";
5253
+ cancelling_preparing: "cancelling_preparing";
5254
+ non_retryable_error: "non_retryable_error";
5255
+ lost: "lost";
5030
5256
  waiting_to_dispatch: "waiting_to_dispatch";
5031
5257
  }>;
5032
5258
  updated_at: z.ZodISODateTime;
@@ -5300,6 +5526,7 @@ export declare const zListAccessEventsResponse: z.ZodObject<{
5300
5526
  */
5301
5527
  export declare const zListAssetsResponse: z.ZodObject<{
5302
5528
  assets: z.ZodArray<z.ZodObject<{
5529
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
5303
5530
  created_at: z.ZodISODateTime;
5304
5531
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5305
5532
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5703,56 +5930,6 @@ export declare const zJobAssetsResponse: z.ZodObject<{
5703
5930
  total: z.ZodInt;
5704
5931
  }, z.core.$strip>;
5705
5932
  }, z.core.$strip>;
5706
- /**
5707
- * Paginated list of jobs for the authenticated user.
5708
- */
5709
- export declare const zJobsListResponse: z.ZodObject<{
5710
- jobs: z.ZodArray<z.ZodObject<{
5711
- create_time: z.ZodCoercedBigInt<unknown>;
5712
- deployment: z.ZodOptional<z.ZodObject<{
5713
- build_name: z.ZodOptional<z.ZodString>;
5714
- deployment_id: z.ZodString;
5715
- name: z.ZodOptional<z.ZodString>;
5716
- release_id: z.ZodString;
5717
- release_version: z.ZodOptional<z.ZodInt>;
5718
- }, z.core.$strip>>;
5719
- execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5720
- execution_error: z.ZodOptional<z.ZodObject<{
5721
- current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5722
- current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5723
- exception_message: z.ZodString;
5724
- exception_type: z.ZodString;
5725
- node_id: z.ZodString;
5726
- node_type: z.ZodString;
5727
- traceback: z.ZodArray<z.ZodString>;
5728
- }, z.core.$strip>>;
5729
- execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5730
- executor: z.ZodOptional<z.ZodEnum<{
5731
- cloud_inference: "cloud_inference";
5732
- platform_gateway: "platform_gateway";
5733
- }>>;
5734
- id: z.ZodUUID;
5735
- outputs_count: z.ZodOptional<z.ZodInt>;
5736
- preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5737
- previewable_outputs_count: z.ZodOptional<z.ZodInt>;
5738
- project_id: z.ZodOptional<z.ZodString>;
5739
- status: z.ZodEnum<{
5740
- cancelled: "cancelled";
5741
- completed: "completed";
5742
- failed: "failed";
5743
- pending: "pending";
5744
- in_progress: "in_progress";
5745
- }>;
5746
- workflow_id: z.ZodOptional<z.ZodString>;
5747
- }, z.core.$strip>>;
5748
- pagination: z.ZodObject<{
5749
- has_more: z.ZodBoolean;
5750
- limit: z.ZodInt;
5751
- next_cursor: z.ZodOptional<z.ZodString>;
5752
- offset: z.ZodInt;
5753
- total: z.ZodInt;
5754
- }, z.core.$strip>;
5755
- }, z.core.$strip>;
5756
5933
  /**
5757
5934
  * Request body for generating a payment portal session URL.
5758
5935
  */
@@ -5865,6 +6042,13 @@ export declare const zPlanAvailability: z.ZodObject<{
5865
6042
  requires_personal: "requires_personal";
5866
6043
  }>>;
5867
6044
  }, z.core.$strip>;
6045
+ /**
6046
+ * A project named by a plan change.
6047
+ */
6048
+ export declare const zPlanChangeProject: z.ZodObject<{
6049
+ id: z.ZodString;
6050
+ name: z.ZodString;
6051
+ }, z.core.$strip>;
5868
6052
  export declare const zPlanFeatureItem: z.ZodObject<{
5869
6053
  key: z.ZodEnum<{
5870
6054
  shortRuntime: "shortRuntime";
@@ -5887,6 +6071,16 @@ export declare const zPlanFeatureItem: z.ZodObject<{
5887
6071
  }>;
5888
6072
  text: z.ZodString;
5889
6073
  }, z.core.$strip>;
6074
+ /**
6075
+ * What a plan change does to the workspace's projects, judged by the same rule that freezes them. It answers whether the downgrade confirmation must name projects that freeze, or say that nothing freezes and only new projects are blocked. The change applies when the plan change takes effect (effective_at on the preview, the end date for a cancellation). Both fields empty or false means the change does nothing to projects and needs no projects confirmation. It is not a permission: subscribe and cancel do not check it, and it does not say who may manage projects.
6076
+ */
6077
+ export declare const zPlanProjectChange: z.ZodObject<{
6078
+ freezes_projects: z.ZodArray<z.ZodObject<{
6079
+ id: z.ZodString;
6080
+ name: z.ZodString;
6081
+ }, z.core.$strip>>;
6082
+ over_project_limit: z.ZodBoolean;
6083
+ }, z.core.$strip>;
5890
6084
  /**
5891
6085
  * Summary of seat costs based on current workspace members
5892
6086
  */
@@ -5915,6 +6109,33 @@ export declare const zPreviousPlan: z.ZodObject<{
5915
6109
  plan_slug: z.ZodString;
5916
6110
  team_credit_stop_id: z.ZodOptional<z.ZodString>;
5917
6111
  }, z.core.$strip>;
6112
+ /**
6113
+ * What the caller may do to one project member, from the same checks the member routes make. Render each as received; do not rebuild them from `my_role`, `permissions` or the workspace role. Read them per row: a rule may depend on the member. Neither is permission to add someone; that is `GET /api/projects/{id}/member-candidates`.
6114
+ */
6115
+ export declare const zProjectMemberCapabilities: z.ZodObject<{
6116
+ can_change_role: z.ZodBoolean;
6117
+ can_remove: z.ZodBoolean;
6118
+ }, z.core.$strip>;
6119
+ /**
6120
+ * `permission_denied`: the caller does not manage the project's members (`project.members` write). `project_frozen`: the project is frozen and takes no role changes; it still takes removals. New values may be added.
6121
+ */
6122
+ export declare const zProjectMemberDenialReason: z.ZodEnum<{
6123
+ permission_denied: "permission_denied";
6124
+ project_frozen: "project_frozen";
6125
+ }>;
6126
+ /**
6127
+ * Why a capability is false, keyed by the capability. The value names the rule that refused, not wording: the client owns the message. A missing key is not a grant.
6128
+ */
6129
+ export declare const zProjectMemberDenials: z.ZodObject<{
6130
+ can_change_role: z.ZodOptional<z.ZodEnum<{
6131
+ permission_denied: "permission_denied";
6132
+ project_frozen: "project_frozen";
6133
+ }>>;
6134
+ can_remove: z.ZodOptional<z.ZodEnum<{
6135
+ permission_denied: "permission_denied";
6136
+ project_frozen: "project_frozen";
6137
+ }>>;
6138
+ }, z.core.$strip>;
5918
6139
  /**
5919
6140
  * 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`.
5920
6141
  */
@@ -5987,12 +6208,37 @@ export declare const zProjectPermissions: z.ZodObject<{
5987
6208
  write_all: "write_all";
5988
6209
  }>>;
5989
6210
  }, z.core.$strip>;
6211
+ /**
6212
+ * Why the caller may not create a project. `permission_denied`: the caller does not hold `workspace.projects` write (only owners and Workspace admins do), whatever the workspace's limit; hide "New project" rather than show a limit. A create answers 403 `permission_denied`. `limit_reached`: the caller may create projects but the workspace has as many as its plan allows; show the project limit and a way to change plans. A create answers 409 `project_limit_reached`. `frozen`: the caller may create projects but the workspace's plan no longer includes Projects, so its projects are read-only and none can be created until the plan includes Projects again. A create answers 403 `projects_not_available`. A caller without permission is answered `permission_denied` even when the workspace is also at its limit or frozen. Treat a value not listed here as "may not create".
6213
+ */
6214
+ export declare const zProjectQuotaCreateDenialReason: z.ZodEnum<{
6215
+ frozen: "frozen";
6216
+ permission_denied: "permission_denied";
6217
+ limit_reached: "limit_reached";
6218
+ }>;
6219
+ /**
6220
+ * Why a quota fact is false, keyed by the fact. The value names the rule that refused, not wording: the client owns the message. A missing key is not a grant.
6221
+ */
6222
+ export declare const zProjectQuotaDenials: z.ZodObject<{
6223
+ can_create: z.ZodOptional<z.ZodEnum<{
6224
+ frozen: "frozen";
6225
+ permission_denied: "permission_denied";
6226
+ limit_reached: "limit_reached";
6227
+ }>>;
6228
+ }, z.core.$strip>;
5990
6229
  /**
5991
6230
  * How many projects the workspace may have and has.
5992
6231
  */
5993
6232
  export declare const zProjectQuota: z.ZodObject<{
5994
6233
  active: z.ZodInt;
5995
6234
  can_create: z.ZodBoolean;
6235
+ denied_reasons: z.ZodOptional<z.ZodObject<{
6236
+ can_create: z.ZodOptional<z.ZodEnum<{
6237
+ frozen: "frozen";
6238
+ permission_denied: "permission_denied";
6239
+ limit_reached: "limit_reached";
6240
+ }>>;
6241
+ }, z.core.$strip>>;
5996
6242
  max_active: z.ZodInt;
5997
6243
  }, z.core.$strip>;
5998
6244
  /**
@@ -6012,6 +6258,7 @@ export declare const zProject: z.ZodObject<{
6012
6258
  description: z.ZodOptional<z.ZodString>;
6013
6259
  id: z.ZodString;
6014
6260
  is_default: z.ZodBoolean;
6261
+ member_count: z.ZodOptional<z.ZodInt>;
6015
6262
  my_role: z.ZodOptional<z.ZodEnum<{
6016
6263
  runner: "runner";
6017
6264
  builder: "builder";
@@ -6091,6 +6338,7 @@ export declare const zListProjectsResponse: z.ZodObject<{
6091
6338
  description: z.ZodOptional<z.ZodString>;
6092
6339
  id: z.ZodString;
6093
6340
  is_default: z.ZodBoolean;
6341
+ member_count: z.ZodOptional<z.ZodInt>;
6094
6342
  my_role: z.ZodOptional<z.ZodEnum<{
6095
6343
  runner: "runner";
6096
6344
  builder: "builder";
@@ -6164,6 +6412,13 @@ export declare const zListProjectsResponse: z.ZodObject<{
6164
6412
  quota: z.ZodObject<{
6165
6413
  active: z.ZodInt;
6166
6414
  can_create: z.ZodBoolean;
6415
+ denied_reasons: z.ZodOptional<z.ZodObject<{
6416
+ can_create: z.ZodOptional<z.ZodEnum<{
6417
+ frozen: "frozen";
6418
+ permission_denied: "permission_denied";
6419
+ limit_reached: "limit_reached";
6420
+ }>>;
6421
+ }, z.core.$strip>>;
6167
6422
  max_active: z.ZodInt;
6168
6423
  }, z.core.$strip>;
6169
6424
  }, z.core.$strip>;
@@ -6172,7 +6427,21 @@ export declare const zListProjectsResponse: z.ZodObject<{
6172
6427
  */
6173
6428
  export declare const zProjectMember: z.ZodObject<{
6174
6429
  added_by_user_id: z.ZodOptional<z.ZodString>;
6430
+ capabilities: z.ZodOptional<z.ZodObject<{
6431
+ can_change_role: z.ZodBoolean;
6432
+ can_remove: z.ZodBoolean;
6433
+ }, z.core.$strip>>;
6175
6434
  create_time: z.ZodISODateTime;
6435
+ denied_reasons: z.ZodOptional<z.ZodObject<{
6436
+ can_change_role: z.ZodOptional<z.ZodEnum<{
6437
+ permission_denied: "permission_denied";
6438
+ project_frozen: "project_frozen";
6439
+ }>>;
6440
+ can_remove: z.ZodOptional<z.ZodEnum<{
6441
+ permission_denied: "permission_denied";
6442
+ project_frozen: "project_frozen";
6443
+ }>>;
6444
+ }, z.core.$strip>>;
6176
6445
  email: z.ZodString;
6177
6446
  name: z.ZodString;
6178
6447
  role: z.ZodEnum<{
@@ -6182,23 +6451,6 @@ export declare const zProjectMember: z.ZodObject<{
6182
6451
  }>;
6183
6452
  user_id: z.ZodString;
6184
6453
  }, 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
6454
  /**
6203
6455
  * A workspace member to add to a project, with their project role.
6204
6456
  */
@@ -6227,46 +6479,414 @@ export declare const zCreateProjectRequest: z.ZodObject<{
6227
6479
  shared_cloud_allowed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6228
6480
  }, z.core.$strip>;
6229
6481
  /**
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.
6482
+ * How someone reaches every project of the workspace through their workspace role: as an owner, or as a Workspace admin. Either acts as a Project admin in the project. Not a project role, and not a membership: they cannot be removed from the project or given a role there; that is a change to their workspace role.
6483
+ */
6484
+ export declare const zProjectWorkspaceAccess: z.ZodEnum<{
6485
+ workspace_owner: "workspace_owner";
6486
+ workspace_admin: "workspace_admin";
6487
+ }>;
6488
+ /**
6489
+ * A workspace member the caller may add to the project.
6490
+ */
6491
+ export declare const zProjectMemberCandidate: z.ZodObject<{
6492
+ email: z.ZodString;
6493
+ name: z.ZodString;
6494
+ roles: z.ZodArray<z.ZodEnum<{
6495
+ runner: "runner";
6496
+ builder: "builder";
6497
+ project_admin: "project_admin";
6498
+ }>>;
6499
+ user_id: z.ZodString;
6500
+ workspace_access: z.ZodOptional<z.ZodEnum<{
6501
+ workspace_owner: "workspace_owner";
6502
+ workspace_admin: "workspace_admin";
6503
+ }>>;
6504
+ }, z.core.$strip>;
6505
+ /**
6506
+ * The people the caller may add to a project.
6507
+ */
6508
+ export declare const zListProjectMemberCandidatesResponse: z.ZodObject<{
6509
+ candidates: z.ZodArray<z.ZodObject<{
6510
+ email: z.ZodString;
6511
+ name: z.ZodString;
6512
+ roles: z.ZodArray<z.ZodEnum<{
6513
+ runner: "runner";
6514
+ builder: "builder";
6515
+ project_admin: "project_admin";
6516
+ }>>;
6517
+ user_id: z.ZodString;
6518
+ workspace_access: z.ZodOptional<z.ZodEnum<{
6519
+ workspace_owner: "workspace_owner";
6520
+ workspace_admin: "workspace_admin";
6521
+ }>>;
6522
+ }, z.core.$strip>>;
6523
+ }, z.core.$strip>;
6524
+ /**
6525
+ * A person who reaches the project through their workspace role.
6526
+ */
6527
+ export declare const zProjectWorkspaceAccessMember: z.ZodObject<{
6528
+ access: z.ZodEnum<{
6529
+ workspace_owner: "workspace_owner";
6530
+ workspace_admin: "workspace_admin";
6531
+ }>;
6532
+ email: z.ZodString;
6533
+ name: z.ZodString;
6534
+ user_id: z.ZodString;
6535
+ }, z.core.$strip>;
6536
+ /**
6537
+ * The people in a project.
6538
+ */
6539
+ export declare const zListProjectMembersResponse: z.ZodObject<{
6540
+ members: z.ZodArray<z.ZodObject<{
6541
+ added_by_user_id: z.ZodOptional<z.ZodString>;
6542
+ capabilities: z.ZodOptional<z.ZodObject<{
6543
+ can_change_role: z.ZodBoolean;
6544
+ can_remove: z.ZodBoolean;
6545
+ }, z.core.$strip>>;
6546
+ create_time: z.ZodISODateTime;
6547
+ denied_reasons: z.ZodOptional<z.ZodObject<{
6548
+ can_change_role: z.ZodOptional<z.ZodEnum<{
6549
+ permission_denied: "permission_denied";
6550
+ project_frozen: "project_frozen";
6551
+ }>>;
6552
+ can_remove: z.ZodOptional<z.ZodEnum<{
6553
+ permission_denied: "permission_denied";
6554
+ project_frozen: "project_frozen";
6555
+ }>>;
6556
+ }, z.core.$strip>>;
6557
+ email: z.ZodString;
6558
+ name: z.ZodString;
6559
+ role: z.ZodEnum<{
6560
+ runner: "runner";
6561
+ builder: "builder";
6562
+ project_admin: "project_admin";
6563
+ }>;
6564
+ user_id: z.ZodString;
6565
+ }, z.core.$strip>>;
6566
+ workspace_access: z.ZodOptional<z.ZodArray<z.ZodObject<{
6567
+ access: z.ZodEnum<{
6568
+ workspace_owner: "workspace_owner";
6569
+ workspace_admin: "workspace_admin";
6570
+ }>;
6571
+ email: z.ZodString;
6572
+ name: z.ZodString;
6573
+ user_id: z.ZodString;
6574
+ }, z.core.$strip>>>;
6575
+ }, z.core.$strip>;
6576
+ /**
6577
+ * Error response for ComfyUI prompt execution.
6578
+ */
6579
+ export declare const zPromptErrorResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6580
+ /**
6581
+ * Metadata about the currently running and queued prompts.
6582
+ */
6583
+ export declare const zPromptInfo: z.ZodObject<{
6584
+ exec_info: z.ZodOptional<z.ZodObject<{
6585
+ queue_remaining: z.ZodOptional<z.ZodInt>;
6586
+ }, z.core.$strip>>;
6587
+ }, z.core.$strip>;
6588
+ /**
6589
+ * 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.
6590
+ */
6591
+ export declare const zPromptOutputsSkippedValidationError: z.ZodObject<{
6592
+ details: z.ZodOptional<z.ZodString>;
6593
+ extra_info: z.ZodOptional<z.ZodObject<{
6594
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6595
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6596
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6597
+ }, z.core.$strip>>;
6598
+ message: z.ZodOptional<z.ZodString>;
6599
+ type: z.ZodOptional<z.ZodString>;
6600
+ }, z.core.$strip>;
6601
+ /**
6602
+ * One rejected node in a prompt_outputs_skipped event.
6603
+ */
6604
+ export declare const zPromptOutputsSkippedNodeError: z.ZodObject<{
6605
+ class_type: z.ZodString;
6606
+ dependent_outputs: z.ZodArray<z.ZodString>;
6607
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6608
+ details: z.ZodOptional<z.ZodString>;
6609
+ extra_info: z.ZodOptional<z.ZodObject<{
6610
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6611
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6612
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6613
+ }, z.core.$strip>>;
6614
+ message: z.ZodOptional<z.ZodString>;
6615
+ type: z.ZodOptional<z.ZodString>;
6616
+ }, z.core.$strip>]>>;
6617
+ }, z.core.$strip>;
6618
+ /**
6619
+ * Detailed execution error information from ComfyUI
6620
+ */
6621
+ export declare const zExecutionError: z.ZodObject<{
6622
+ catalog_id: z.ZodOptional<z.ZodString>;
6623
+ current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6624
+ current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6625
+ exception_message: z.ZodString;
6626
+ exception_type: z.ZodString;
6627
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6628
+ class_type: z.ZodString;
6629
+ dependent_outputs: z.ZodArray<z.ZodString>;
6630
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6631
+ details: z.ZodOptional<z.ZodString>;
6632
+ extra_info: z.ZodOptional<z.ZodObject<{
6633
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6634
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6635
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6636
+ }, z.core.$strip>>;
6637
+ message: z.ZodOptional<z.ZodString>;
6638
+ type: z.ZodOptional<z.ZodString>;
6639
+ }, z.core.$strip>]>>;
6640
+ }, z.core.$strip>>>;
6641
+ node_id: z.ZodString;
6642
+ node_type: z.ZodString;
6643
+ traceback: z.ZodArray<z.ZodString>;
6644
+ }, z.core.$strip>;
6645
+ /**
6646
+ * Full job details including workflow and outputs
6647
+ */
6648
+ export declare const zJobDetailResponse: z.ZodObject<{
6649
+ budget_hold: z.ZodOptional<z.ZodObject<{
6650
+ budget: z.ZodOptional<z.ZodObject<{
6651
+ id: z.ZodOptional<z.ZodString>;
6652
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6653
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6654
+ mode: z.ZodOptional<z.ZodString>;
6655
+ resets_at: z.ZodISODateTime;
6656
+ scope_id: z.ZodOptional<z.ZodString>;
6657
+ scope_kind: z.ZodString;
6658
+ set_by: z.ZodString;
6659
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6660
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6661
+ }, z.core.$strip>>;
6662
+ can_resume: z.ZodBoolean;
6663
+ reason: z.ZodString;
6664
+ }, z.core.$strip>>;
6665
+ create_time: z.ZodCoercedBigInt<unknown>;
6666
+ deployment: z.ZodOptional<z.ZodObject<{
6667
+ build_name: z.ZodOptional<z.ZodString>;
6668
+ deployment_id: z.ZodString;
6669
+ name: z.ZodOptional<z.ZodString>;
6670
+ release_id: z.ZodString;
6671
+ release_version: z.ZodOptional<z.ZodInt>;
6672
+ }, z.core.$strip>>;
6673
+ execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6674
+ execution_error: z.ZodOptional<z.ZodObject<{
6675
+ catalog_id: z.ZodOptional<z.ZodString>;
6676
+ current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6677
+ current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6678
+ exception_message: z.ZodString;
6679
+ exception_type: z.ZodString;
6680
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6681
+ class_type: z.ZodString;
6682
+ dependent_outputs: z.ZodArray<z.ZodString>;
6683
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6684
+ details: z.ZodOptional<z.ZodString>;
6685
+ extra_info: z.ZodOptional<z.ZodObject<{
6686
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6687
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6688
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6689
+ }, z.core.$strip>>;
6690
+ message: z.ZodOptional<z.ZodString>;
6691
+ type: z.ZodOptional<z.ZodString>;
6692
+ }, z.core.$strip>]>>;
6693
+ }, z.core.$strip>>>;
6694
+ node_id: z.ZodString;
6695
+ node_type: z.ZodString;
6696
+ traceback: z.ZodArray<z.ZodString>;
6697
+ }, z.core.$strip>>;
6698
+ execution_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6699
+ display_node: z.ZodOptional<z.ZodString>;
6700
+ node_id: z.ZodOptional<z.ZodString>;
6701
+ parent_node: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6702
+ real_node_id: z.ZodOptional<z.ZodString>;
6703
+ }, z.core.$strip>>>;
6704
+ execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6705
+ execution_status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6706
+ executor: z.ZodOptional<z.ZodEnum<{
6707
+ cloud_inference: "cloud_inference";
6708
+ platform_gateway: "platform_gateway";
6709
+ }>>;
6710
+ id: z.ZodUUID;
6711
+ outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6712
+ outputs_count: z.ZodOptional<z.ZodInt>;
6713
+ preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6714
+ previewable_outputs_count: z.ZodOptional<z.ZodInt>;
6715
+ project_id: z.ZodOptional<z.ZodString>;
6716
+ queue_position: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6717
+ queue_reason: z.ZodOptional<z.ZodEnum<{
6718
+ concurrency_limit: "concurrency_limit";
6719
+ capacity: "capacity";
6720
+ }>>;
6721
+ status: z.ZodEnum<{
6722
+ cancelled: "cancelled";
6723
+ completed: "completed";
6724
+ failed: "failed";
6725
+ pending: "pending";
6726
+ in_progress: "in_progress";
6727
+ held_budget: "held_budget";
6728
+ }>;
6729
+ update_time: z.ZodCoercedBigInt<unknown>;
6730
+ user_id: z.ZodOptional<z.ZodString>;
6731
+ workflow: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6732
+ workflow_id: z.ZodOptional<z.ZodString>;
6733
+ workflow_version_id: z.ZodOptional<z.ZodString>;
6734
+ workspace_id: z.ZodOptional<z.ZodString>;
6735
+ }, z.core.$strip>;
6736
+ /**
6737
+ * Lightweight job data for list views (workflow and full outputs excluded)
6235
6738
  */
6236
- export declare const zPromptInfo: z.ZodObject<{
6237
- exec_info: z.ZodOptional<z.ZodObject<{
6238
- queue_remaining: z.ZodOptional<z.ZodInt>;
6739
+ export declare const zJobEntry: z.ZodObject<{
6740
+ budget_hold: z.ZodOptional<z.ZodObject<{
6741
+ budget: z.ZodOptional<z.ZodObject<{
6742
+ id: z.ZodOptional<z.ZodString>;
6743
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6744
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6745
+ mode: z.ZodOptional<z.ZodString>;
6746
+ resets_at: z.ZodISODateTime;
6747
+ scope_id: z.ZodOptional<z.ZodString>;
6748
+ scope_kind: z.ZodString;
6749
+ set_by: z.ZodString;
6750
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6751
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6752
+ }, z.core.$strip>>;
6753
+ can_resume: z.ZodBoolean;
6754
+ reason: z.ZodString;
6239
6755
  }, 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]>>;
6756
+ create_time: z.ZodCoercedBigInt<unknown>;
6757
+ deployment: z.ZodOptional<z.ZodObject<{
6758
+ build_name: z.ZodOptional<z.ZodString>;
6759
+ deployment_id: z.ZodString;
6760
+ name: z.ZodOptional<z.ZodString>;
6761
+ release_id: z.ZodString;
6762
+ release_version: z.ZodOptional<z.ZodInt>;
6250
6763
  }, z.core.$strip>>;
6251
- message: z.ZodOptional<z.ZodString>;
6252
- type: z.ZodOptional<z.ZodString>;
6764
+ execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6765
+ execution_error: z.ZodOptional<z.ZodObject<{
6766
+ catalog_id: z.ZodOptional<z.ZodString>;
6767
+ current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6768
+ current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6769
+ exception_message: z.ZodString;
6770
+ exception_type: z.ZodString;
6771
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6772
+ class_type: z.ZodString;
6773
+ dependent_outputs: z.ZodArray<z.ZodString>;
6774
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6775
+ details: z.ZodOptional<z.ZodString>;
6776
+ extra_info: z.ZodOptional<z.ZodObject<{
6777
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6778
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6779
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6780
+ }, z.core.$strip>>;
6781
+ message: z.ZodOptional<z.ZodString>;
6782
+ type: z.ZodOptional<z.ZodString>;
6783
+ }, z.core.$strip>]>>;
6784
+ }, z.core.$strip>>>;
6785
+ node_id: z.ZodString;
6786
+ node_type: z.ZodString;
6787
+ traceback: z.ZodArray<z.ZodString>;
6788
+ }, z.core.$strip>>;
6789
+ execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6790
+ executor: z.ZodOptional<z.ZodEnum<{
6791
+ cloud_inference: "cloud_inference";
6792
+ platform_gateway: "platform_gateway";
6793
+ }>>;
6794
+ id: z.ZodUUID;
6795
+ outputs_count: z.ZodOptional<z.ZodInt>;
6796
+ preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6797
+ previewable_outputs_count: z.ZodOptional<z.ZodInt>;
6798
+ project_id: z.ZodOptional<z.ZodString>;
6799
+ status: z.ZodEnum<{
6800
+ cancelled: "cancelled";
6801
+ completed: "completed";
6802
+ failed: "failed";
6803
+ pending: "pending";
6804
+ in_progress: "in_progress";
6805
+ held_budget: "held_budget";
6806
+ }>;
6807
+ workflow_id: z.ZodOptional<z.ZodString>;
6253
6808
  }, z.core.$strip>;
6254
6809
  /**
6255
- * One rejected node in a prompt_outputs_skipped event.
6810
+ * Paginated list of jobs for the authenticated user.
6256
6811
  */
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]>>;
6812
+ export declare const zJobsListResponse: z.ZodObject<{
6813
+ jobs: z.ZodArray<z.ZodObject<{
6814
+ budget_hold: z.ZodOptional<z.ZodObject<{
6815
+ budget: z.ZodOptional<z.ZodObject<{
6816
+ id: z.ZodOptional<z.ZodString>;
6817
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6818
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6819
+ mode: z.ZodOptional<z.ZodString>;
6820
+ resets_at: z.ZodISODateTime;
6821
+ scope_id: z.ZodOptional<z.ZodString>;
6822
+ scope_kind: z.ZodString;
6823
+ set_by: z.ZodString;
6824
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6825
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6826
+ }, z.core.$strip>>;
6827
+ can_resume: z.ZodBoolean;
6828
+ reason: z.ZodString;
6266
6829
  }, z.core.$strip>>;
6267
- message: z.ZodOptional<z.ZodString>;
6268
- type: z.ZodOptional<z.ZodString>;
6269
- }, z.core.$strip>]>>;
6830
+ create_time: z.ZodCoercedBigInt<unknown>;
6831
+ deployment: z.ZodOptional<z.ZodObject<{
6832
+ build_name: z.ZodOptional<z.ZodString>;
6833
+ deployment_id: z.ZodString;
6834
+ name: z.ZodOptional<z.ZodString>;
6835
+ release_id: z.ZodString;
6836
+ release_version: z.ZodOptional<z.ZodInt>;
6837
+ }, z.core.$strip>>;
6838
+ execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6839
+ execution_error: z.ZodOptional<z.ZodObject<{
6840
+ catalog_id: z.ZodOptional<z.ZodString>;
6841
+ current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6842
+ current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6843
+ exception_message: z.ZodString;
6844
+ exception_type: z.ZodString;
6845
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6846
+ class_type: z.ZodString;
6847
+ dependent_outputs: z.ZodArray<z.ZodString>;
6848
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6849
+ details: z.ZodOptional<z.ZodString>;
6850
+ extra_info: z.ZodOptional<z.ZodObject<{
6851
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6852
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6853
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6854
+ }, z.core.$strip>>;
6855
+ message: z.ZodOptional<z.ZodString>;
6856
+ type: z.ZodOptional<z.ZodString>;
6857
+ }, z.core.$strip>]>>;
6858
+ }, z.core.$strip>>>;
6859
+ node_id: z.ZodString;
6860
+ node_type: z.ZodString;
6861
+ traceback: z.ZodArray<z.ZodString>;
6862
+ }, z.core.$strip>>;
6863
+ execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6864
+ executor: z.ZodOptional<z.ZodEnum<{
6865
+ cloud_inference: "cloud_inference";
6866
+ platform_gateway: "platform_gateway";
6867
+ }>>;
6868
+ id: z.ZodUUID;
6869
+ outputs_count: z.ZodOptional<z.ZodInt>;
6870
+ preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6871
+ previewable_outputs_count: z.ZodOptional<z.ZodInt>;
6872
+ project_id: z.ZodOptional<z.ZodString>;
6873
+ status: z.ZodEnum<{
6874
+ cancelled: "cancelled";
6875
+ completed: "completed";
6876
+ failed: "failed";
6877
+ pending: "pending";
6878
+ in_progress: "in_progress";
6879
+ held_budget: "held_budget";
6880
+ }>;
6881
+ workflow_id: z.ZodOptional<z.ZodString>;
6882
+ }, z.core.$strip>>;
6883
+ pagination: z.ZodObject<{
6884
+ has_more: z.ZodBoolean;
6885
+ limit: z.ZodInt;
6886
+ next_cursor: z.ZodOptional<z.ZodString>;
6887
+ offset: z.ZodInt;
6888
+ total: z.ZodInt;
6889
+ }, z.core.$strip>;
6270
6890
  }, z.core.$strip>;
6271
6891
  /**
6272
6892
  * 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.
@@ -6360,6 +6980,24 @@ export declare const zProviderPolicy: z.ZodObject<{
6360
6980
  provider_id: z.ZodString;
6361
6981
  }, z.core.$strip>>;
6362
6982
  }, z.core.$strip>;
6983
+ export declare const zPublicModel: z.ZodObject<{
6984
+ file_path: z.ZodOptional<z.ZodString>;
6985
+ id: z.ZodUUID;
6986
+ name: z.ZodString;
6987
+ size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6988
+ source_url: z.ZodOptional<z.ZodString>;
6989
+ tags: z.ZodArray<z.ZodString>;
6990
+ }, z.core.$strip>;
6991
+ export declare const zPublicModelsResponse: z.ZodObject<{
6992
+ models: z.ZodArray<z.ZodObject<{
6993
+ file_path: z.ZodOptional<z.ZodString>;
6994
+ id: z.ZodUUID;
6995
+ name: z.ZodString;
6996
+ size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6997
+ source_url: z.ZodOptional<z.ZodString>;
6998
+ tags: z.ZodArray<z.ZodString>;
6999
+ }, z.core.$strip>>;
7000
+ }, z.core.$strip>;
6363
7001
  /**
6364
7002
  * Request body for publishing or updating a workflow on the Hub.
6365
7003
  */
@@ -6715,6 +7353,97 @@ export declare const zSetProjectMemberRequest: z.ZodObject<{
6715
7353
  project_admin: "project_admin";
6716
7354
  }>;
6717
7355
  }, z.core.$strip>;
7356
+ /**
7357
+ * The exhausted budget. Workspace Owners also receive its ID, scope ID, mode, and amounts.
7358
+ */
7359
+ export declare const zSpendBudgetDetail: z.ZodObject<{
7360
+ id: z.ZodOptional<z.ZodString>;
7361
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7362
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7363
+ mode: z.ZodOptional<z.ZodString>;
7364
+ resets_at: z.ZodISODateTime;
7365
+ scope_id: z.ZodOptional<z.ZodString>;
7366
+ scope_kind: z.ZodString;
7367
+ set_by: z.ZodString;
7368
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7369
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7370
+ }, z.core.$strip>;
7371
+ /**
7372
+ * 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.
7373
+ */
7374
+ export declare const zAgentAdmissionError: z.ZodObject<{
7375
+ blocking_budgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
7376
+ id: z.ZodOptional<z.ZodString>;
7377
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7378
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7379
+ mode: z.ZodOptional<z.ZodString>;
7380
+ resets_at: z.ZodISODateTime;
7381
+ scope_id: z.ZodOptional<z.ZodString>;
7382
+ scope_kind: z.ZodString;
7383
+ set_by: z.ZodString;
7384
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7385
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7386
+ }, z.core.$strip>>>;
7387
+ budget: z.ZodOptional<z.ZodObject<{
7388
+ id: z.ZodOptional<z.ZodString>;
7389
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7390
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7391
+ mode: z.ZodOptional<z.ZodString>;
7392
+ resets_at: z.ZodISODateTime;
7393
+ scope_id: z.ZodOptional<z.ZodString>;
7394
+ scope_kind: z.ZodString;
7395
+ set_by: z.ZodString;
7396
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7397
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7398
+ }, z.core.$strip>>;
7399
+ denied_reason: z.ZodOptional<z.ZodString>;
7400
+ error: z.ZodObject<{
7401
+ message: z.ZodString;
7402
+ reason: z.ZodEnum<{
7403
+ budget_exceeded: "budget_exceeded";
7404
+ no_funds: "no_funds";
7405
+ manual_block: "manual_block";
7406
+ funds_unavailable: "funds_unavailable";
7407
+ }>;
7408
+ type: z.ZodEnum<{
7409
+ PAYMENT_REQUIRED: "PAYMENT_REQUIRED";
7410
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
7411
+ }>;
7412
+ }, z.core.$strip>;
7413
+ error_type: z.ZodOptional<z.ZodString>;
7414
+ }, z.core.$strip>;
7415
+ /**
7416
+ * Payment or hard-budget refusal for ComfyUI prompt execution.
7417
+ */
7418
+ export declare const zPromptPaymentRequired: z.ZodObject<{
7419
+ blocking_budgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
7420
+ id: z.ZodOptional<z.ZodString>;
7421
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7422
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7423
+ mode: z.ZodOptional<z.ZodString>;
7424
+ resets_at: z.ZodISODateTime;
7425
+ scope_id: z.ZodOptional<z.ZodString>;
7426
+ scope_kind: z.ZodString;
7427
+ set_by: z.ZodString;
7428
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7429
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7430
+ }, z.core.$strip>>>;
7431
+ budget: z.ZodOptional<z.ZodObject<{
7432
+ id: z.ZodOptional<z.ZodString>;
7433
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7434
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7435
+ mode: z.ZodOptional<z.ZodString>;
7436
+ resets_at: z.ZodISODateTime;
7437
+ scope_id: z.ZodOptional<z.ZodString>;
7438
+ scope_kind: z.ZodString;
7439
+ set_by: z.ZodString;
7440
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7441
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7442
+ }, z.core.$strip>>;
7443
+ denied_reason: z.ZodOptional<z.ZodString>;
7444
+ error: z.ZodOptional<z.ZodUnknown>;
7445
+ error_type: z.ZodOptional<z.ZodString>;
7446
+ }, z.core.$strip>;
6718
7447
  /**
6719
7448
  * The deployment a start was asked for, and its status after the ask.
6720
7449
  */
@@ -7053,6 +7782,13 @@ export declare const zPlan: z.ZodObject<{
7053
7782
  max_seats: z.ZodCoercedBigInt<unknown>;
7054
7783
  popular: z.ZodOptional<z.ZodBoolean>;
7055
7784
  price_cents: z.ZodCoercedBigInt<unknown>;
7785
+ project_change: z.ZodOptional<z.ZodObject<{
7786
+ freezes_projects: z.ZodArray<z.ZodObject<{
7787
+ id: z.ZodString;
7788
+ name: z.ZodString;
7789
+ }, z.core.$strip>>;
7790
+ over_project_limit: z.ZodBoolean;
7791
+ }, z.core.$strip>>;
7056
7792
  seat_summary: z.ZodObject<{
7057
7793
  seat_count: z.ZodInt;
7058
7794
  total_cost_cents: z.ZodCoercedBigInt<unknown>;
@@ -7196,6 +7932,13 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
7196
7932
  }>;
7197
7933
  }, z.core.$strip>;
7198
7934
  payment_method_configuration_id: z.ZodOptional<z.ZodString>;
7935
+ project_change: z.ZodOptional<z.ZodObject<{
7936
+ freezes_projects: z.ZodArray<z.ZodObject<{
7937
+ id: z.ZodString;
7938
+ name: z.ZodString;
7939
+ }, z.core.$strip>>;
7940
+ over_project_limit: z.ZodBoolean;
7941
+ }, z.core.$strip>>;
7199
7942
  promotion_code: z.ZodOptional<z.ZodString>;
7200
7943
  proration_at: z.ZodOptional<z.ZodISODateTime>;
7201
7944
  proration_remaining_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
@@ -7364,6 +8107,13 @@ export declare const zTeamCreditStopPrice: z.ZodObject<{
7364
8107
  list_price_cents: z.ZodCoercedBigInt<unknown>;
7365
8108
  period_charge_cents: z.ZodCoercedBigInt<unknown>;
7366
8109
  price_cents: z.ZodCoercedBigInt<unknown>;
8110
+ project_change: z.ZodOptional<z.ZodObject<{
8111
+ freezes_projects: z.ZodArray<z.ZodObject<{
8112
+ id: z.ZodString;
8113
+ name: z.ZodString;
8114
+ }, z.core.$strip>>;
8115
+ over_project_limit: z.ZodBoolean;
8116
+ }, z.core.$strip>>;
7367
8117
  }, z.core.$strip>;
7368
8118
  /**
7369
8119
  * A selectable preset on the team pricing slider. Echoed on subscribe via
@@ -7403,6 +8153,13 @@ export declare const zTeamCreditStop: z.ZodObject<{
7403
8153
  list_price_cents: z.ZodCoercedBigInt<unknown>;
7404
8154
  period_charge_cents: z.ZodCoercedBigInt<unknown>;
7405
8155
  price_cents: z.ZodCoercedBigInt<unknown>;
8156
+ project_change: z.ZodOptional<z.ZodObject<{
8157
+ freezes_projects: z.ZodArray<z.ZodObject<{
8158
+ id: z.ZodString;
8159
+ name: z.ZodString;
8160
+ }, z.core.$strip>>;
8161
+ over_project_limit: z.ZodBoolean;
8162
+ }, z.core.$strip>>;
7406
8163
  }, z.core.$strip>;
7407
8164
  yearly: z.ZodObject<{
7408
8165
  action: z.ZodEnum<{
@@ -7432,6 +8189,13 @@ export declare const zTeamCreditStop: z.ZodObject<{
7432
8189
  list_price_cents: z.ZodCoercedBigInt<unknown>;
7433
8190
  period_charge_cents: z.ZodCoercedBigInt<unknown>;
7434
8191
  price_cents: z.ZodCoercedBigInt<unknown>;
8192
+ project_change: z.ZodOptional<z.ZodObject<{
8193
+ freezes_projects: z.ZodArray<z.ZodObject<{
8194
+ id: z.ZodString;
8195
+ name: z.ZodString;
8196
+ }, z.core.$strip>>;
8197
+ over_project_limit: z.ZodBoolean;
8198
+ }, z.core.$strip>>;
7435
8199
  }, z.core.$strip>;
7436
8200
  }, z.core.$strip>;
7437
8201
  /**
@@ -7611,6 +8375,13 @@ export declare const zTeamCreditStops: z.ZodObject<{
7611
8375
  list_price_cents: z.ZodCoercedBigInt<unknown>;
7612
8376
  period_charge_cents: z.ZodCoercedBigInt<unknown>;
7613
8377
  price_cents: z.ZodCoercedBigInt<unknown>;
8378
+ project_change: z.ZodOptional<z.ZodObject<{
8379
+ freezes_projects: z.ZodArray<z.ZodObject<{
8380
+ id: z.ZodString;
8381
+ name: z.ZodString;
8382
+ }, z.core.$strip>>;
8383
+ over_project_limit: z.ZodBoolean;
8384
+ }, z.core.$strip>>;
7614
8385
  }, z.core.$strip>;
7615
8386
  yearly: z.ZodObject<{
7616
8387
  action: z.ZodEnum<{
@@ -7640,6 +8411,13 @@ export declare const zTeamCreditStops: z.ZodObject<{
7640
8411
  list_price_cents: z.ZodCoercedBigInt<unknown>;
7641
8412
  period_charge_cents: z.ZodCoercedBigInt<unknown>;
7642
8413
  price_cents: z.ZodCoercedBigInt<unknown>;
8414
+ project_change: z.ZodOptional<z.ZodObject<{
8415
+ freezes_projects: z.ZodArray<z.ZodObject<{
8416
+ id: z.ZodString;
8417
+ name: z.ZodString;
8418
+ }, z.core.$strip>>;
8419
+ over_project_limit: z.ZodBoolean;
8420
+ }, z.core.$strip>>;
7643
8421
  }, z.core.$strip>;
7644
8422
  }, z.core.$strip>>;
7645
8423
  }, z.core.$strip>;
@@ -7647,6 +8425,13 @@ export declare const zTeamCreditStops: z.ZodObject<{
7647
8425
  * List of available billing plans for subscription.
7648
8426
  */
7649
8427
  export declare const zBillingPlansResponse: z.ZodObject<{
8428
+ cancel_project_change: z.ZodOptional<z.ZodObject<{
8429
+ freezes_projects: z.ZodArray<z.ZodObject<{
8430
+ id: z.ZodString;
8431
+ name: z.ZodString;
8432
+ }, z.core.$strip>>;
8433
+ over_project_limit: z.ZodBoolean;
8434
+ }, z.core.$strip>>;
7650
8435
  current_plan_slug: z.ZodOptional<z.ZodString>;
7651
8436
  plans: z.ZodArray<z.ZodObject<{
7652
8437
  action: z.ZodEnum<{
@@ -7720,6 +8505,13 @@ export declare const zBillingPlansResponse: z.ZodObject<{
7720
8505
  max_seats: z.ZodCoercedBigInt<unknown>;
7721
8506
  popular: z.ZodOptional<z.ZodBoolean>;
7722
8507
  price_cents: z.ZodCoercedBigInt<unknown>;
8508
+ project_change: z.ZodOptional<z.ZodObject<{
8509
+ freezes_projects: z.ZodArray<z.ZodObject<{
8510
+ id: z.ZodString;
8511
+ name: z.ZodString;
8512
+ }, z.core.$strip>>;
8513
+ over_project_limit: z.ZodBoolean;
8514
+ }, z.core.$strip>>;
7723
8515
  seat_summary: z.ZodObject<{
7724
8516
  seat_count: z.ZodInt;
7725
8517
  total_cost_cents: z.ZodCoercedBigInt<unknown>;
@@ -7775,6 +8567,13 @@ export declare const zBillingPlansResponse: z.ZodObject<{
7775
8567
  list_price_cents: z.ZodCoercedBigInt<unknown>;
7776
8568
  period_charge_cents: z.ZodCoercedBigInt<unknown>;
7777
8569
  price_cents: z.ZodCoercedBigInt<unknown>;
8570
+ project_change: z.ZodOptional<z.ZodObject<{
8571
+ freezes_projects: z.ZodArray<z.ZodObject<{
8572
+ id: z.ZodString;
8573
+ name: z.ZodString;
8574
+ }, z.core.$strip>>;
8575
+ over_project_limit: z.ZodBoolean;
8576
+ }, z.core.$strip>>;
7778
8577
  }, z.core.$strip>;
7779
8578
  yearly: z.ZodObject<{
7780
8579
  action: z.ZodEnum<{
@@ -7804,6 +8603,13 @@ export declare const zBillingPlansResponse: z.ZodObject<{
7804
8603
  list_price_cents: z.ZodCoercedBigInt<unknown>;
7805
8604
  period_charge_cents: z.ZodCoercedBigInt<unknown>;
7806
8605
  price_cents: z.ZodCoercedBigInt<unknown>;
8606
+ project_change: z.ZodOptional<z.ZodObject<{
8607
+ freezes_projects: z.ZodArray<z.ZodObject<{
8608
+ id: z.ZodString;
8609
+ name: z.ZodString;
8610
+ }, z.core.$strip>>;
8611
+ over_project_limit: z.ZodBoolean;
8612
+ }, z.core.$strip>>;
7807
8613
  }, z.core.$strip>;
7808
8614
  }, z.core.$strip>>;
7809
8615
  }, z.core.$strip>>;
@@ -7871,6 +8677,7 @@ export declare const zAgentMessage: z.ZodObject<{
7871
8677
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
7872
8678
  allow_other: z.ZodBoolean;
7873
8679
  ask_id: z.ZodString;
8680
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
7874
8681
  kind: z.ZodEnum<{
7875
8682
  ask_user: "ask_user";
7876
8683
  run_approval: "run_approval";
@@ -7895,6 +8702,7 @@ export declare const zAgentMessage: z.ZodObject<{
7895
8702
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
7896
8703
  allow_other: z.ZodBoolean;
7897
8704
  ask_id: z.ZodString;
8705
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
7898
8706
  kind: z.ZodEnum<{
7899
8707
  ask_user: "ask_user";
7900
8708
  run_approval: "run_approval";
@@ -7930,6 +8738,7 @@ export declare const zAgentMessage: z.ZodObject<{
7930
8738
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
7931
8739
  allow_other: z.ZodBoolean;
7932
8740
  ask_id: z.ZodString;
8741
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
7933
8742
  kind: z.ZodEnum<{
7934
8743
  ask_user: "ask_user";
7935
8744
  run_approval: "run_approval";
@@ -7959,6 +8768,7 @@ export declare const zAgentMessage: z.ZodObject<{
7959
8768
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
7960
8769
  allow_other: z.ZodBoolean;
7961
8770
  ask_id: z.ZodString;
8771
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
7962
8772
  kind: z.ZodEnum<{
7963
8773
  ask_user: "ask_user";
7964
8774
  run_approval: "run_approval";
@@ -8091,6 +8901,7 @@ export declare const zBillingOpStatusResponse: z.ZodObject<{
8091
8901
  completed_at: z.ZodOptional<z.ZodISODateTime>;
8092
8902
  credits_added: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8093
8903
  decline_reason: z.ZodOptional<z.ZodEnum<{
8904
+ generic: "generic";
8094
8905
  card_declined: "card_declined";
8095
8906
  insufficient_funds: "insufficient_funds";
8096
8907
  expired_card: "expired_card";
@@ -8099,7 +8910,6 @@ export declare const zBillingOpStatusResponse: z.ZodObject<{
8099
8910
  authentication_failed: "authentication_failed";
8100
8911
  processing_error: "processing_error";
8101
8912
  payment_not_completed: "payment_not_completed";
8102
- generic: "generic";
8103
8913
  }>>;
8104
8914
  error_message: z.ZodOptional<z.ZodString>;
8105
8915
  id: z.ZodString;
@@ -8252,9 +9062,11 @@ export declare const zTopupPurchase: z.ZodObject<{
8252
9062
  */
8253
9063
  export declare const zTopupQuoteResponse: z.ZodObject<{
8254
9064
  amount_cents: z.ZodCoercedBigInt<unknown>;
9065
+ balance_after_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8255
9066
  credits: z.ZodCoercedBigInt<unknown>;
8256
9067
  expires_at: z.ZodISODateTime;
8257
9068
  payment_method_configuration_id: z.ZodOptional<z.ZodString>;
9069
+ runs_paused_after: z.ZodOptional<z.ZodBoolean>;
8258
9070
  }, z.core.$strip>;
8259
9071
  /**
8260
9072
  * Request body for updating an existing Hub profile.
@@ -8334,6 +9146,7 @@ export declare const zUsageBreakdownRow: z.ZodObject<{
8334
9146
  export declare const zUsageBucket: z.ZodObject<{
8335
9147
  cost_micros: z.ZodNumber;
8336
9148
  group_key: z.ZodString;
9149
+ pending: z.ZodOptional<z.ZodBoolean>;
8337
9150
  period_end: z.ZodISODateTime;
8338
9151
  period_start: z.ZodISODateTime;
8339
9152
  }, z.core.$strip>;
@@ -8369,10 +9182,12 @@ export declare const zUsageNotAvailable: z.ZodObject<{
8369
9182
  reason: z.ZodEnum<{
8370
9183
  no_attribution_source: "no_attribution_source";
8371
9184
  filter_needs_ledger: "filter_needs_ledger";
9185
+ too_many_deployments: "too_many_deployments";
9186
+ deployments_unavailable: "deployments_unavailable";
8372
9187
  }>;
8373
9188
  }, z.core.$strip>;
8374
9189
  /**
8375
- * Mixed units, deliberately. `spend_micros` here (and `cost_micros` on UsageBucket / UsageBreakdownRow) is genuinely MICROS -- 1/1,000,000 of the currency unit -- because it comes from Metronome's usage figures. The `balance` breakdown below is CENTS, and its `*_micros` names are a misnomer; use its `*_cents` fields.
9190
+ * Mixed units, deliberately. `spend_micros` here (and `cost_micros` on UsageBucket / UsageBreakdownRow) is genuinely MICROS -- 1/1,000,000 of the currency unit -- because it comes from Metronome's usage figures. The `balance` breakdown below is CENTS, and its `*_micros` names are a misnomer; use its `*_cents` fields. `balance` is omitted, never null, when it could not be read, the workspace has no billing account, or the caller may not see it (can_view_workspace_usage is false).
8376
9191
  */
8377
9192
  export declare const zUsageSummary: z.ZodObject<{
8378
9193
  balance: z.ZodOptional<z.ZodObject<{
@@ -8398,6 +9213,7 @@ export declare const zUsageTimeSeries: z.ZodObject<{
8398
9213
  buckets: z.ZodArray<z.ZodObject<{
8399
9214
  cost_micros: z.ZodNumber;
8400
9215
  group_key: z.ZodString;
9216
+ pending: z.ZodOptional<z.ZodBoolean>;
8401
9217
  period_end: z.ZodISODateTime;
8402
9218
  period_start: z.ZodISODateTime;
8403
9219
  }, z.core.$strip>>;
@@ -8408,12 +9224,12 @@ export declare const zUsageTimeSeries: z.ZodObject<{
8408
9224
  month: "month";
8409
9225
  }>;
8410
9226
  group_by: z.ZodEnum<{
9227
+ source: "source";
8411
9228
  model: "model";
8412
9229
  endpoint: "endpoint";
8413
9230
  product: "product";
8414
9231
  product_line: "product_line";
8415
9232
  person: "person";
8416
- source: "source";
8417
9233
  }>;
8418
9234
  group_labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
8419
9235
  cost_kind: z.ZodOptional<z.ZodEnum<{
@@ -8445,6 +9261,8 @@ export declare const zUsageTimeSeries: z.ZodObject<{
8445
9261
  reason: z.ZodEnum<{
8446
9262
  no_attribution_source: "no_attribution_source";
8447
9263
  filter_needs_ledger: "filter_needs_ledger";
9264
+ too_many_deployments: "too_many_deployments";
9265
+ deployments_unavailable: "deployments_unavailable";
8448
9266
  }>;
8449
9267
  }, z.core.$strip>>;
8450
9268
  served_from: z.ZodOptional<z.ZodEnum<{
@@ -8955,6 +9773,7 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
8955
9773
  embedded: "embedded";
8956
9774
  full_page: "full_page";
8957
9775
  }>;
9776
+ billing_web_topup_hosted_methods: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8958
9777
  cancel_takes_effect_immediately: z.ZodOptional<z.ZodBoolean>;
8959
9778
  capabilities: z.ZodObject<{
8960
9779
  can_cancel: z.ZodBoolean;
@@ -8983,6 +9802,8 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
8983
9802
  can_view_own_usage: z.ZodOptional<z.ZodBoolean>;
8984
9803
  can_view_pending_invites: z.ZodBoolean;
8985
9804
  can_view_team_usage: z.ZodBoolean;
9805
+ can_view_unallocated_usage: z.ZodBoolean;
9806
+ can_view_workspace_usage: z.ZodBoolean;
8986
9807
  }, z.core.$strip>;
8987
9808
  denied_reason_params: z.ZodOptional<z.ZodObject<{
8988
9809
  can_delete_workspace: z.ZodOptional<z.ZodObject<{
@@ -9208,10 +10029,15 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
9208
10029
  not_workspace_owner: "not_workspace_owner";
9209
10030
  usage_attribution_unavailable: "usage_attribution_unavailable";
9210
10031
  }>>;
10032
+ can_view_workspace_usage: z.ZodOptional<z.ZodEnum<{
10033
+ not_a_member: "not_a_member";
10034
+ not_workspace_owner: "not_workspace_owner";
10035
+ }>>;
9211
10036
  }, z.core.$strip>>;
9212
10037
  ending_notice_starts_at: z.ZodOptional<z.ZodISODateTime>;
9213
10038
  expires_at: z.ZodISODateTime;
9214
10039
  has_parked_billing_operation: z.ZodOptional<z.ZodBoolean>;
10040
+ has_resumable_held_jobs: z.ZodOptional<z.ZodBoolean>;
9215
10041
  payment_recovery_available: z.ZodOptional<z.ZodBoolean>;
9216
10042
  plan_kind: z.ZodOptional<z.ZodEnum<{
9217
10043
  none: "none";
@@ -9506,6 +10332,7 @@ export declare const zListWorkspacesResponse: z.ZodObject<{
9506
10332
  * Represents a user-owned asset (image, video, or other generated output).
9507
10333
  */
9508
10334
  export declare const zAssetWritable: z.ZodObject<{
10335
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
9509
10336
  created_at: z.ZodISODateTime;
9510
10337
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9511
10338
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9530,6 +10357,7 @@ export declare const zAssetWritable: z.ZodObject<{
9530
10357
  * Response returned when a new asset is successfully created.
9531
10358
  */
9532
10359
  export declare const zAssetCreatedWritable: z.ZodIntersection<z.ZodObject<{
10360
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
9533
10361
  created_at: z.ZodISODateTime;
9534
10362
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9535
10363
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9585,6 +10413,7 @@ export declare const zCccHistoryPageWritable: z.ZodObject<{
9585
10413
  */
9586
10414
  export declare const zListAssetsResponseWritable: z.ZodObject<{
9587
10415
  assets: z.ZodArray<z.ZodObject<{
10416
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
9588
10417
  created_at: z.ZodISODateTime;
9589
10418
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9590
10419
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9639,9 +10468,12 @@ export declare const zDeploymentModelsWorkspaceId: z.ZodString;
9639
10468
  export declare const zMediaWorkspaceId: z.ZodString;
9640
10469
  /**
9641
10470
  * 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.
10471
+ * ones that read it: they list workflows, runs or assets, create one,
10472
+ * export assets, clear the caller's queue or History, pick the
10473
+ * deployment a browser runs on, or serve the editor that deployment
10474
+ * (the node, extension and model lists). Absent means
10475
+ * the workspace's default project, which is how existing clients keep
10476
+ * working.
9645
10477
  *
9646
10478
  * An operation on one existing workflow, run or asset does not take
9647
10479
  * it: the row's own project decides. Any other operation that creates
@@ -9653,6 +10485,13 @@ export declare const zMediaWorkspaceId: z.ZodString;
9653
10485
  * `not_found`; the two look the same. Where Projects is not enabled for
9654
10486
  * the workspace the header is ignored.
9655
10487
  *
10488
+ * A Cloud JWT that carries a `project_id` claim acts only in that
10489
+ * project. Without the header such a request acts in the claimed
10490
+ * project; a header naming any other project, the default project
10491
+ * included, is 403 `permission_denied`, and so is any such request
10492
+ * where Projects is not enabled for the workspace. The refusal says the
10493
+ * token is bound to another project, not what the caller's role allows.
10494
+ *
9656
10495
  */
9657
10496
  export declare const zProjectId: z.ZodString;
9658
10497
  /**
@@ -9725,6 +10564,9 @@ export declare const zGetAgentEventsQuery: z.ZodObject<{
9725
10564
  token: z.ZodOptional<z.ZodString>;
9726
10565
  workspace_id: z.ZodOptional<z.ZodString>;
9727
10566
  }, z.core.$strip>;
10567
+ export declare const zAgentGetExecutionsHeaders: z.ZodObject<{
10568
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10569
+ }, z.core.$strip>;
9728
10570
  export declare const zAgentGetExecutionsQuery: z.ZodObject<{
9729
10571
  thread_id: z.ZodOptional<z.ZodUUID>;
9730
10572
  message_id: z.ZodOptional<z.ZodUUID>;
@@ -9748,6 +10590,41 @@ export declare const zAgentGetExecutionsResponse: z.ZodObject<{
9748
10590
  thread_id: z.ZodOptional<z.ZodString>;
9749
10591
  turn_id: z.ZodOptional<z.ZodString>;
9750
10592
  }, z.core.$strip>;
10593
+ export declare const zAgentGetFeaturesHeaders: z.ZodObject<{
10594
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10595
+ }, z.core.$strip>;
10596
+ export declare const zAgentGetFeaturesQuery: z.ZodObject<{
10597
+ thread_id: z.ZodOptional<z.ZodUUID>;
10598
+ }, z.core.$strip>;
10599
+ /**
10600
+ * The caller's selections.
10601
+ */
10602
+ export declare const zAgentGetFeaturesResponse: z.ZodObject<{
10603
+ default_selection: z.ZodOptional<z.ZodString>;
10604
+ enabled: z.ZodBoolean;
10605
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
10606
+ id: z.ZodString;
10607
+ label: z.ZodString;
10608
+ }, z.core.$strip>>>;
10609
+ selected: z.ZodOptional<z.ZodObject<{
10610
+ selection: z.ZodString;
10611
+ source: z.ZodOptional<z.ZodString>;
10612
+ }, z.core.$strip>>;
10613
+ selections: z.ZodOptional<z.ZodArray<z.ZodObject<{
10614
+ cost_tier: z.ZodOptional<z.ZodInt>;
10615
+ description: z.ZodOptional<z.ZodString>;
10616
+ group: z.ZodOptional<z.ZodString>;
10617
+ id: z.ZodString;
10618
+ kind: z.ZodOptional<z.ZodString>;
10619
+ label: z.ZodString;
10620
+ model_label: z.ZodOptional<z.ZodString>;
10621
+ send: z.ZodObject<{
10622
+ model_id: z.ZodString;
10623
+ option_id: z.ZodOptional<z.ZodString>;
10624
+ }, z.core.$strip>;
10625
+ show_model: z.ZodOptional<z.ZodBoolean>;
10626
+ }, z.core.$strip>>>;
10627
+ }, z.core.$strip>;
9751
10628
  /**
9752
10629
  * The caller's agent identity.
9753
10630
  */
@@ -9775,6 +10652,18 @@ export declare const zAgentLlmAdmitResponse: z.ZodObject<{
9775
10652
  position: z.ZodOptional<z.ZodInt>;
9776
10653
  reason: z.ZodOptional<z.ZodString>;
9777
10654
  }, z.core.$strip>;
10655
+ /**
10656
+ * Opaque OpenAI Chat Completions request body, passed through to the upstream. Not modeled here — the LLM proxy owns the contract.
10657
+ */
10658
+ export declare const zAgentLlmChatCompletionsBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10659
+ /**
10660
+ * The upstream response, streamed back chunk-by-chunk (Server-Sent Events for a streamed request).
10661
+ */
10662
+ export declare const zAgentLlmChatCompletionsResponse: z.ZodString;
10663
+ /**
10664
+ * Opaque features document, passed through from the LLM proxy. Not modeled here — the proxy owns the contract.
10665
+ */
10666
+ export declare const zAgentLlmFeaturesResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9778
10667
  /**
9779
10668
  * Opaque Anthropic Messages request body, passed through to the upstream. Not modeled here — the agent's LLM proxy owns the contract.
9780
10669
  */
@@ -9783,14 +10672,32 @@ export declare const zAgentLlmMessagesBody: z.ZodRecord<z.ZodString, z.ZodUnknow
9783
10672
  * The upstream LLM response, streamed back as Server-Sent Events (text/event-stream) chunk-by-chunk.
9784
10673
  */
9785
10674
  export declare const zAgentLlmMessagesResponse: z.ZodString;
10675
+ /**
10676
+ * Opaque OpenAI Responses request body, passed through to the upstream. Not modeled here — the LLM proxy owns the contract.
10677
+ */
10678
+ export declare const zAgentLlmResponsesBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10679
+ /**
10680
+ * The upstream response, streamed back chunk-by-chunk (Server-Sent Events for a streamed request).
10681
+ */
10682
+ export declare const zAgentLlmResponsesResponse: z.ZodString;
9786
10683
  /**
9787
10684
  * An OTLP ExportTraceServiceRequest, optionally gzip-encoded (Content-Encoding gzip); at most 4 MiB encoded and decoded, and 4096 spans.
9788
10685
  */
9789
10686
  export declare const zAgentLlmTracesBody: z.ZodString;
9790
10687
  /**
9791
- * Accepted; the body is an empty OTLP ExportTraceServiceResponse.
10688
+ * Accepted; the body is an empty OTLP ExportTraceServiceResponse.
10689
+ */
10690
+ export declare const zAgentLlmTracesResponse: z.ZodString;
10691
+ export declare const zAgentPutModelPreferenceBody: z.ZodObject<{
10692
+ model_id: z.ZodString;
10693
+ option_id: z.ZodOptional<z.ZodString>;
10694
+ }, z.core.$strip>;
10695
+ /**
10696
+ * The committed selection.
9792
10697
  */
9793
- export declare const zAgentLlmTracesResponse: z.ZodString;
10698
+ export declare const zAgentPutModelPreferenceResponse: z.ZodObject<{
10699
+ selection: z.ZodString;
10700
+ }, z.core.$strip>;
9794
10701
  /**
9795
10702
  * The caller's run mode (the saved choice, or the default).
9796
10703
  */
@@ -9860,6 +10767,18 @@ export declare const zAgentDeleteSkillPath: z.ZodObject<{
9860
10767
  * The pack was deleted.
9861
10768
  */
9862
10769
  export declare const zAgentDeleteSkillResponse: z.ZodVoid;
10770
+ /**
10771
+ * The skills the agent itself ships.
10772
+ */
10773
+ export declare const zAgentListBuiltinSkillsResponse: z.ZodObject<{
10774
+ skills: z.ZodArray<z.ZodObject<{
10775
+ description: z.ZodString;
10776
+ name: z.ZodString;
10777
+ }, z.core.$strip>>;
10778
+ }, z.core.$strip>;
10779
+ export declare const zAgentListThreadsHeaders: z.ZodObject<{
10780
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10781
+ }, z.core.$strip>;
9863
10782
  export declare const zAgentListThreadsQuery: z.ZodObject<{
9864
10783
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
9865
10784
  after: z.ZodOptional<z.ZodString>;
@@ -9894,16 +10813,32 @@ export declare const zAgentListThreadsResponse: z.ZodObject<{
9894
10813
  export declare const zAgentCreateThreadBody: z.ZodObject<{
9895
10814
  workflow_id: z.ZodOptional<z.ZodString>;
9896
10815
  }, z.core.$strip>;
10816
+ export declare const zAgentCreateThreadHeaders: z.ZodObject<{
10817
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10818
+ }, z.core.$strip>;
9897
10819
  /**
9898
10820
  * Thread created
9899
10821
  */
9900
10822
  export declare const zAgentCreateThreadResponse: z.ZodObject<{
9901
10823
  thread_id: z.ZodString;
9902
10824
  }, z.core.$strip>;
10825
+ export declare const zAgentDeleteThreadHeaders: z.ZodObject<{
10826
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10827
+ }, z.core.$strip>;
10828
+ export declare const zAgentDeleteThreadPath: z.ZodObject<{
10829
+ id: z.ZodUUID;
10830
+ }, z.core.$strip>;
10831
+ /**
10832
+ * The thread was deleted.
10833
+ */
10834
+ export declare const zAgentDeleteThreadResponse: z.ZodVoid;
9903
10835
  export declare const zAgentAnswerAskBody: z.ZodObject<{
9904
10836
  other_text: z.ZodOptional<z.ZodString>;
9905
10837
  selected: z.ZodArray<z.ZodString>;
9906
10838
  }, z.core.$strip>;
10839
+ export declare const zAgentAnswerAskHeaders: z.ZodObject<{
10840
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10841
+ }, z.core.$strip>;
9907
10842
  export declare const zAgentAnswerAskPath: z.ZodObject<{
9908
10843
  id: z.ZodString;
9909
10844
  ask_id: z.ZodString;
@@ -9918,6 +10853,9 @@ export declare const zAgentAnswerAskResponse: z.ZodObject<{
9918
10853
  answered: "answered";
9919
10854
  }>;
9920
10855
  }, z.core.$strip>;
10856
+ export declare const zAgentGetMessagesHeaders: z.ZodObject<{
10857
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10858
+ }, z.core.$strip>;
9921
10859
  export declare const zAgentGetMessagesPath: z.ZodObject<{
9922
10860
  id: z.ZodString;
9923
10861
  }, z.core.$strip>;
@@ -9962,6 +10900,7 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
9962
10900
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
9963
10901
  allow_other: z.ZodBoolean;
9964
10902
  ask_id: z.ZodString;
10903
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
9965
10904
  kind: z.ZodEnum<{
9966
10905
  ask_user: "ask_user";
9967
10906
  run_approval: "run_approval";
@@ -9986,6 +10925,7 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
9986
10925
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
9987
10926
  allow_other: z.ZodBoolean;
9988
10927
  ask_id: z.ZodString;
10928
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
9989
10929
  kind: z.ZodEnum<{
9990
10930
  ask_user: "ask_user";
9991
10931
  run_approval: "run_approval";
@@ -10021,6 +10961,7 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
10021
10961
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
10022
10962
  allow_other: z.ZodBoolean;
10023
10963
  ask_id: z.ZodString;
10964
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
10024
10965
  kind: z.ZodEnum<{
10025
10966
  ask_user: "ask_user";
10026
10967
  run_approval: "run_approval";
@@ -10050,6 +10991,7 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
10050
10991
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
10051
10992
  allow_other: z.ZodBoolean;
10052
10993
  ask_id: z.ZodString;
10994
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
10053
10995
  kind: z.ZodEnum<{
10054
10996
  ask_user: "ask_user";
10055
10997
  run_approval: "run_approval";
@@ -10131,6 +11073,9 @@ export declare const zAgentPostMessageBody: z.ZodObject<{
10131
11073
  workflow_id: z.ZodString;
10132
11074
  }, z.core.$strip>>>;
10133
11075
  }, z.core.$strip>;
11076
+ export declare const zAgentPostMessageHeaders: z.ZodObject<{
11077
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
11078
+ }, z.core.$strip>;
10134
11079
  export declare const zAgentPostMessagePath: z.ZodObject<{
10135
11080
  id: z.ZodString;
10136
11081
  }, z.core.$strip>;
@@ -10144,7 +11089,6 @@ export declare const zAgentPostMessageResponse: z.ZodObject<{
10144
11089
  v1: "v1";
10145
11090
  }>;
10146
11091
  model_id: z.ZodString;
10147
- profile_revision: z.ZodString;
10148
11092
  requested: z.ZodNullable<z.ZodObject<{
10149
11093
  model_id: z.ZodString;
10150
11094
  option_id: z.ZodOptional<z.ZodString>;
@@ -10159,10 +11103,14 @@ export declare const zAgentPostMessageResponse: z.ZodObject<{
10159
11103
  wire: z.ZodEnum<{
10160
11104
  anthropic_messages: "anthropic_messages";
10161
11105
  openai_chat: "openai_chat";
11106
+ openai_responses: "openai_responses";
10162
11107
  }>;
10163
11108
  }, z.core.$strip>>;
10164
11109
  thread_id: z.ZodString;
10165
11110
  }, z.core.$strip>;
11111
+ export declare const zAgentCancelMessageHeaders: z.ZodObject<{
11112
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
11113
+ }, z.core.$strip>;
10166
11114
  export declare const zAgentCancelMessagePath: z.ZodObject<{
10167
11115
  id: z.ZodString;
10168
11116
  message_id: z.ZodString;
@@ -10175,11 +11123,30 @@ export declare const zAgentCancelMessageResponse: z.ZodObject<{
10175
11123
  cancelling: "cancelling";
10176
11124
  }>;
10177
11125
  }, z.core.$strip>;
11126
+ export declare const zAgentPutThreadModelSelectionBody: z.ZodObject<{
11127
+ model_id: z.ZodString;
11128
+ option_id: z.ZodOptional<z.ZodString>;
11129
+ }, z.core.$strip>;
11130
+ export declare const zAgentPutThreadModelSelectionHeaders: z.ZodObject<{
11131
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
11132
+ }, z.core.$strip>;
11133
+ export declare const zAgentPutThreadModelSelectionPath: z.ZodObject<{
11134
+ id: z.ZodUUID;
11135
+ }, z.core.$strip>;
11136
+ /**
11137
+ * The committed selection.
11138
+ */
11139
+ export declare const zAgentPutThreadModelSelectionResponse: z.ZodObject<{
11140
+ selection: z.ZodString;
11141
+ }, z.core.$strip>;
10178
11142
  /**
10179
11143
  * Message usage for the authenticated user and workspace.
10180
11144
  */
10181
11145
  export declare const zAgentGetUsageStatusResponse: z.ZodObject<{
10182
11146
  has_used_agent: z.ZodBoolean;
11147
+ scope: z.ZodOptional<z.ZodEnum<{
11148
+ local_installation: "local_installation";
11149
+ }>>;
10183
11150
  }, z.core.$strip>;
10184
11151
  export declare const zListAssetsHeaders: z.ZodObject<{
10185
11152
  'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
@@ -10217,6 +11184,7 @@ export declare const zListAssetsQuery: z.ZodObject<{
10217
11184
  */
10218
11185
  export declare const zListAssetsResponse2: z.ZodObject<{
10219
11186
  assets: z.ZodArray<z.ZodObject<{
11187
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
10220
11188
  created_at: z.ZodISODateTime;
10221
11189
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10222
11190
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10261,6 +11229,7 @@ export declare const zCreateAssetHeaders: z.ZodObject<{
10261
11229
  *
10262
11230
  */
10263
11231
  export declare const zCreateAssetResponse: z.ZodIntersection<z.ZodObject<{
11232
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
10264
11233
  created_at: z.ZodISODateTime;
10265
11234
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10266
11235
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10298,6 +11267,7 @@ export declare const zGetAssetByIdPath: z.ZodObject<{
10298
11267
  * Asset details retrieved successfully
10299
11268
  */
10300
11269
  export declare const zGetAssetByIdResponse: z.ZodObject<{
11270
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
10301
11271
  created_at: z.ZodISODateTime;
10302
11272
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10303
11273
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10397,6 +11367,7 @@ export declare const zCreateAssetDownloadBody: z.ZodObject<{
10397
11367
  user_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10398
11368
  }, z.core.$strip>;
10399
11369
  export declare const zCreateAssetDownloadResponse: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
11370
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
10400
11371
  created_at: z.ZodISODateTime;
10401
11372
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10402
11373
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10442,6 +11413,9 @@ export declare const zCreateAssetExportBody: z.ZodObject<{
10442
11413
  group_by_job_time: "group_by_job_time";
10443
11414
  }>>>;
10444
11415
  }, z.core.$strip>;
11416
+ export declare const zCreateAssetExportHeaders: z.ZodObject<{
11417
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
11418
+ }, z.core.$strip>;
10445
11419
  /**
10446
11420
  * Accepted - Export task created and processing in background
10447
11421
  */
@@ -10482,6 +11456,7 @@ export declare const zCreateAssetFromHashHeaders: z.ZodObject<{
10482
11456
  *
10483
11457
  */
10484
11458
  export declare const zCreateAssetFromHashResponse: z.ZodIntersection<z.ZodObject<{
11459
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
10485
11460
  created_at: z.ZodISODateTime;
10486
11461
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10487
11462
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10748,6 +11723,12 @@ export declare const zRedeemDesktopLoginCodeResponse: z.ZodObject<{
10748
11723
  redeemed: "redeemed";
10749
11724
  }>;
10750
11725
  }, z.core.$strip>;
11726
+ /**
11727
+ * Custom token minted
11728
+ */
11729
+ export declare const zCreateDesktopWebSessionResponse: z.ZodObject<{
11730
+ custom_token: z.ZodString;
11731
+ }, z.core.$strip>;
10751
11732
  export declare const zCreateBillingHandoffBody: z.ZodObject<{
10752
11733
  amount_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
10753
11734
  auto_top_up: z.ZodOptional<z.ZodObject<{
@@ -11054,6 +12035,7 @@ export declare const zGetBillingBalanceResponse: z.ZodObject<{
11054
12035
  pending_charges_micros: z.ZodOptional<z.ZodNumber>;
11055
12036
  prepaid_balance_cents: z.ZodOptional<z.ZodNumber>;
11056
12037
  prepaid_balance_micros: z.ZodOptional<z.ZodNumber>;
12038
+ scoped_balance_cents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
11057
12039
  suggested_topup_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
11058
12040
  }, z.core.$strip>;
11059
12041
  /**
@@ -11103,6 +12085,10 @@ export declare const zListBillingBudgetsResponse: z.ZodObject<{
11103
12085
  spent_micro_usd: z.ZodCoercedBigInt<unknown>;
11104
12086
  updated_by: z.ZodString;
11105
12087
  }, z.core.$strip>>;
12088
+ viewer: z.ZodOptional<z.ZodEnum<{
12089
+ owner: "owner";
12090
+ member: "member";
12091
+ }>>;
11106
12092
  }, z.core.$strip>;
11107
12093
  export declare const zCreateBillingBudgetBody: z.ZodObject<{
11108
12094
  alert_percents: z.ZodOptional<z.ZodArray<z.ZodInt>>;
@@ -11267,6 +12253,32 @@ export declare const zGetBillingBudgetHistoryResponse: z.ZodObject<{
11267
12253
  changed_at: z.ZodISODateTime;
11268
12254
  }, z.core.$strip>>;
11269
12255
  }, z.core.$strip>;
12256
+ export declare const zResumeHeldBudgetJobsBody: z.ZodObject<{
12257
+ cursor: z.ZodOptional<z.ZodString>;
12258
+ job_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
12259
+ }, z.core.$strip>;
12260
+ /**
12261
+ * What happened to each selected job.
12262
+ */
12263
+ export declare const zResumeHeldBudgetJobsResponse: z.ZodObject<{
12264
+ more_held: z.ZodBoolean;
12265
+ next_cursor: z.ZodOptional<z.ZodString>;
12266
+ not_resumed: z.ZodArray<z.ZodObject<{
12267
+ budget: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12268
+ denied_reason: z.ZodOptional<z.ZodString>;
12269
+ job_id: z.ZodUUID;
12270
+ reason: z.ZodEnum<{
12271
+ budget_exceeded: "budget_exceeded";
12272
+ failed: "failed";
12273
+ not_found: "not_found";
12274
+ not_held: "not_held";
12275
+ budget_check_unavailable: "budget_check_unavailable";
12276
+ spend_denied: "spend_denied";
12277
+ no_free_slot: "no_free_slot";
12278
+ }>;
12279
+ }, z.core.$strip>>;
12280
+ resumed: z.ZodArray<z.ZodUUID>;
12281
+ }, z.core.$strip>;
11270
12282
  /**
11271
12283
  * Effective billing capabilities
11272
12284
  */
@@ -11322,6 +12334,7 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
11322
12334
  embedded: "embedded";
11323
12335
  full_page: "full_page";
11324
12336
  }>;
12337
+ billing_web_topup_hosted_methods: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11325
12338
  cancel_takes_effect_immediately: z.ZodOptional<z.ZodBoolean>;
11326
12339
  capabilities: z.ZodObject<{
11327
12340
  can_cancel: z.ZodBoolean;
@@ -11350,6 +12363,8 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
11350
12363
  can_view_own_usage: z.ZodOptional<z.ZodBoolean>;
11351
12364
  can_view_pending_invites: z.ZodBoolean;
11352
12365
  can_view_team_usage: z.ZodBoolean;
12366
+ can_view_unallocated_usage: z.ZodBoolean;
12367
+ can_view_workspace_usage: z.ZodBoolean;
11353
12368
  }, z.core.$strip>;
11354
12369
  denied_reason_params: z.ZodOptional<z.ZodObject<{
11355
12370
  can_delete_workspace: z.ZodOptional<z.ZodObject<{
@@ -11575,10 +12590,15 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
11575
12590
  not_workspace_owner: "not_workspace_owner";
11576
12591
  usage_attribution_unavailable: "usage_attribution_unavailable";
11577
12592
  }>>;
12593
+ can_view_workspace_usage: z.ZodOptional<z.ZodEnum<{
12594
+ not_a_member: "not_a_member";
12595
+ not_workspace_owner: "not_workspace_owner";
12596
+ }>>;
11578
12597
  }, z.core.$strip>>;
11579
12598
  ending_notice_starts_at: z.ZodOptional<z.ZodISODateTime>;
11580
12599
  expires_at: z.ZodISODateTime;
11581
12600
  has_parked_billing_operation: z.ZodOptional<z.ZodBoolean>;
12601
+ has_resumable_held_jobs: z.ZodOptional<z.ZodBoolean>;
11582
12602
  payment_recovery_available: z.ZodOptional<z.ZodBoolean>;
11583
12603
  plan_kind: z.ZodOptional<z.ZodEnum<{
11584
12604
  none: "none";
@@ -11790,6 +12810,7 @@ export declare const zGetBillingOpStatusResponse: z.ZodObject<{
11790
12810
  completed_at: z.ZodOptional<z.ZodISODateTime>;
11791
12811
  credits_added: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
11792
12812
  decline_reason: z.ZodOptional<z.ZodEnum<{
12813
+ generic: "generic";
11793
12814
  card_declined: "card_declined";
11794
12815
  insufficient_funds: "insufficient_funds";
11795
12816
  expired_card: "expired_card";
@@ -11798,7 +12819,6 @@ export declare const zGetBillingOpStatusResponse: z.ZodObject<{
11798
12819
  authentication_failed: "authentication_failed";
11799
12820
  processing_error: "processing_error";
11800
12821
  payment_not_completed: "payment_not_completed";
11801
- generic: "generic";
11802
12822
  }>>;
11803
12823
  error_message: z.ZodOptional<z.ZodString>;
11804
12824
  id: z.ZodString;
@@ -11910,6 +12930,13 @@ export declare const zGetPaymentPortalResponse: z.ZodObject<{
11910
12930
  * Available plans with pricing
11911
12931
  */
11912
12932
  export declare const zGetBillingPlansResponse: z.ZodObject<{
12933
+ cancel_project_change: z.ZodOptional<z.ZodObject<{
12934
+ freezes_projects: z.ZodArray<z.ZodObject<{
12935
+ id: z.ZodString;
12936
+ name: z.ZodString;
12937
+ }, z.core.$strip>>;
12938
+ over_project_limit: z.ZodBoolean;
12939
+ }, z.core.$strip>>;
11913
12940
  current_plan_slug: z.ZodOptional<z.ZodString>;
11914
12941
  plans: z.ZodArray<z.ZodObject<{
11915
12942
  action: z.ZodEnum<{
@@ -11983,6 +13010,13 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
11983
13010
  max_seats: z.ZodCoercedBigInt<unknown>;
11984
13011
  popular: z.ZodOptional<z.ZodBoolean>;
11985
13012
  price_cents: z.ZodCoercedBigInt<unknown>;
13013
+ project_change: z.ZodOptional<z.ZodObject<{
13014
+ freezes_projects: z.ZodArray<z.ZodObject<{
13015
+ id: z.ZodString;
13016
+ name: z.ZodString;
13017
+ }, z.core.$strip>>;
13018
+ over_project_limit: z.ZodBoolean;
13019
+ }, z.core.$strip>>;
11986
13020
  seat_summary: z.ZodObject<{
11987
13021
  seat_count: z.ZodInt;
11988
13022
  total_cost_cents: z.ZodCoercedBigInt<unknown>;
@@ -12038,6 +13072,13 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
12038
13072
  list_price_cents: z.ZodCoercedBigInt<unknown>;
12039
13073
  period_charge_cents: z.ZodCoercedBigInt<unknown>;
12040
13074
  price_cents: z.ZodCoercedBigInt<unknown>;
13075
+ project_change: z.ZodOptional<z.ZodObject<{
13076
+ freezes_projects: z.ZodArray<z.ZodObject<{
13077
+ id: z.ZodString;
13078
+ name: z.ZodString;
13079
+ }, z.core.$strip>>;
13080
+ over_project_limit: z.ZodBoolean;
13081
+ }, z.core.$strip>>;
12041
13082
  }, z.core.$strip>;
12042
13083
  yearly: z.ZodObject<{
12043
13084
  action: z.ZodEnum<{
@@ -12067,6 +13108,13 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
12067
13108
  list_price_cents: z.ZodCoercedBigInt<unknown>;
12068
13109
  period_charge_cents: z.ZodCoercedBigInt<unknown>;
12069
13110
  price_cents: z.ZodCoercedBigInt<unknown>;
13111
+ project_change: z.ZodOptional<z.ZodObject<{
13112
+ freezes_projects: z.ZodArray<z.ZodObject<{
13113
+ id: z.ZodString;
13114
+ name: z.ZodString;
13115
+ }, z.core.$strip>>;
13116
+ over_project_limit: z.ZodBoolean;
13117
+ }, z.core.$strip>>;
12070
13118
  }, z.core.$strip>;
12071
13119
  }, z.core.$strip>>;
12072
13120
  }, z.core.$strip>>;
@@ -12173,6 +13221,13 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
12173
13221
  }>;
12174
13222
  }, z.core.$strip>;
12175
13223
  payment_method_configuration_id: z.ZodOptional<z.ZodString>;
13224
+ project_change: z.ZodOptional<z.ZodObject<{
13225
+ freezes_projects: z.ZodArray<z.ZodObject<{
13226
+ id: z.ZodString;
13227
+ name: z.ZodString;
13228
+ }, z.core.$strip>>;
13229
+ over_project_limit: z.ZodBoolean;
13230
+ }, z.core.$strip>>;
12176
13231
  promotion_code: z.ZodOptional<z.ZodString>;
12177
13232
  proration_at: z.ZodOptional<z.ZodISODateTime>;
12178
13233
  proration_remaining_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
@@ -12192,6 +13247,17 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
12192
13247
  duration_change: "duration_change";
12193
13248
  }>;
12194
13249
  }, z.core.$strip>;
13250
+ /**
13251
+ * The promotion running right now, or null
13252
+ */
13253
+ export declare const zGetBillingPromotionResponse: z.ZodObject<{
13254
+ promotion: z.ZodNullable<z.ZodObject<{
13255
+ auto_apply: z.ZodBoolean;
13256
+ ends_at: z.ZodNullable<z.ZodISODateTime>;
13257
+ percent_off: z.ZodNullable<z.ZodNumber>;
13258
+ promotion_code: z.ZodString;
13259
+ }, z.core.$strip>>;
13260
+ }, z.core.$strip>;
12195
13261
  export declare const zAcceptRetentionOfferBody: z.ZodObject<{
12196
13262
  session_id: z.ZodUUID;
12197
13263
  }, z.core.$strip>;
@@ -12597,23 +13663,26 @@ export declare const zCreateTopupQuoteBody: z.ZodObject<{
12597
13663
  */
12598
13664
  export declare const zCreateTopupQuoteResponse: z.ZodObject<{
12599
13665
  amount_cents: z.ZodCoercedBigInt<unknown>;
13666
+ balance_after_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
12600
13667
  credits: z.ZodCoercedBigInt<unknown>;
12601
13668
  expires_at: z.ZodISODateTime;
12602
13669
  payment_method_configuration_id: z.ZodOptional<z.ZodString>;
13670
+ runs_paused_after: z.ZodOptional<z.ZodBoolean>;
12603
13671
  }, z.core.$strip>;
12604
13672
  export declare const zGetBillingUsageTimeSeriesQuery: z.ZodObject<{
12605
13673
  group_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
13674
+ source: "source";
12606
13675
  model: "model";
12607
13676
  endpoint: "endpoint";
12608
13677
  product: "product";
12609
13678
  product_line: "product_line";
12610
13679
  person: "person";
12611
- source: "source";
12612
13680
  }>>>;
12613
13681
  filter_product_line: z.ZodOptional<z.ZodString>;
12614
13682
  filter_model: z.ZodOptional<z.ZodString>;
12615
13683
  filter_person: z.ZodOptional<z.ZodString>;
12616
13684
  filter_source: z.ZodOptional<z.ZodString>;
13685
+ project: z.ZodOptional<z.ZodString>;
12617
13686
  granularity: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12618
13687
  hour: "hour";
12619
13688
  day: "day";
@@ -12638,6 +13707,7 @@ export declare const zGetBillingUsageTimeSeriesResponse: z.ZodObject<{
12638
13707
  buckets: z.ZodArray<z.ZodObject<{
12639
13708
  cost_micros: z.ZodNumber;
12640
13709
  group_key: z.ZodString;
13710
+ pending: z.ZodOptional<z.ZodBoolean>;
12641
13711
  period_end: z.ZodISODateTime;
12642
13712
  period_start: z.ZodISODateTime;
12643
13713
  }, z.core.$strip>>;
@@ -12648,12 +13718,12 @@ export declare const zGetBillingUsageTimeSeriesResponse: z.ZodObject<{
12648
13718
  month: "month";
12649
13719
  }>;
12650
13720
  group_by: z.ZodEnum<{
13721
+ source: "source";
12651
13722
  model: "model";
12652
13723
  endpoint: "endpoint";
12653
13724
  product: "product";
12654
13725
  product_line: "product_line";
12655
13726
  person: "person";
12656
- source: "source";
12657
13727
  }>;
12658
13728
  group_labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
12659
13729
  cost_kind: z.ZodOptional<z.ZodEnum<{
@@ -12685,6 +13755,8 @@ export declare const zGetBillingUsageTimeSeriesResponse: z.ZodObject<{
12685
13755
  reason: z.ZodEnum<{
12686
13756
  no_attribution_source: "no_attribution_source";
12687
13757
  filter_needs_ledger: "filter_needs_ledger";
13758
+ too_many_deployments: "too_many_deployments";
13759
+ deployments_unavailable: "deployments_unavailable";
12688
13760
  }>;
12689
13761
  }, z.core.$strip>>;
12690
13762
  served_from: z.ZodOptional<z.ZodEnum<{
@@ -12755,6 +13827,9 @@ export declare const zGetDeploySummaryResponse: z.ZodObject<{
12755
13827
  * Embedding names
12756
13828
  */
12757
13829
  export declare const zGetEmbeddingsResponse: z.ZodArray<z.ZodString>;
13830
+ export declare const zGetModelFoldersHeaders: z.ZodObject<{
13831
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
13832
+ }, z.core.$strip>;
12758
13833
  /**
12759
13834
  * Success - List of model folders
12760
13835
  */
@@ -12762,6 +13837,9 @@ export declare const zGetModelFoldersResponse: z.ZodArray<z.ZodObject<{
12762
13837
  folders: z.ZodArray<z.ZodString>;
12763
13838
  name: z.ZodString;
12764
13839
  }, z.core.$strip>>;
13840
+ export declare const zGetModelsInFolderHeaders: z.ZodObject<{
13841
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
13842
+ }, z.core.$strip>;
12765
13843
  export declare const zGetModelsInFolderPath: z.ZodObject<{
12766
13844
  folder: z.ZodString;
12767
13845
  }, z.core.$strip>;
@@ -12780,6 +13858,9 @@ export declare const zGetModelPreviewPath: z.ZodObject<{
12780
13858
  export declare const zGetNodeByIdPath: z.ZodObject<{
12781
13859
  id: z.ZodString;
12782
13860
  }, z.core.$strip>;
13861
+ export declare const zGetExtensionsHeaders: z.ZodObject<{
13862
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
13863
+ }, z.core.$strip>;
12783
13864
  /**
12784
13865
  * URL paths (relative to web root) of available extension JS files
12785
13866
  */
@@ -12804,14 +13885,21 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
12804
13885
  "above-input": "above-input";
12805
13886
  "inside-input": "inside-input";
12806
13887
  }>>>;
12807
- 'agent-starter-prompt-set': z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12808
- test: "test";
12809
- control: "control";
12810
- }>>>;
12811
13888
  agent_gratis_local_arm: z.ZodOptional<z.ZodEnum<{
12812
13889
  control: "control";
12813
13890
  treatment: "treatment";
12814
13891
  }>>;
13892
+ agent_proactive_greeting_assignment: z.ZodOptional<z.ZodObject<{
13893
+ group_key: z.ZodString;
13894
+ user_id: z.ZodString;
13895
+ variant: z.ZodEnum<{
13896
+ control: "control";
13897
+ generic: "generic";
13898
+ "canvas-prefill": "canvas-prefill";
13899
+ "canvas-only": "canvas-only";
13900
+ }>;
13901
+ workspace_id: z.ZodString;
13902
+ }, z.core.$strip>>;
12815
13903
  billing_web_url: z.ZodOptional<z.ZodString>;
12816
13904
  can_run_partner_nodes: z.ZodOptional<z.ZodBoolean>;
12817
13905
  deploy_to_cloud: z.ZodOptional<z.ZodBoolean>;
@@ -12831,6 +13919,11 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
12831
13919
  open_on_cloud_model_upload_enabled: z.ZodOptional<z.ZodBoolean>;
12832
13920
  open_on_cloud_use_local_agent_enabled: z.ZodOptional<z.ZodBoolean>;
12833
13921
  private_workflow_links_enabled: z.ZodOptional<z.ZodBoolean>;
13922
+ 'prompt-editor-surface': z.ZodOptional<z.ZodEnum<{
13923
+ control: "control";
13924
+ panel: "panel";
13925
+ }>>;
13926
+ server_boot_id: z.ZodOptional<z.ZodString>;
12834
13927
  sso_enabled: z.ZodOptional<z.ZodBoolean>;
12835
13928
  stripe_publishable_key: z.ZodOptional<z.ZodString>;
12836
13929
  supports_preview_metadata: z.ZodOptional<z.ZodBoolean>;
@@ -12937,6 +14030,9 @@ export declare const zManageHistoryBody: z.ZodObject<{
12937
14030
  clear: z.ZodOptional<z.ZodBoolean>;
12938
14031
  delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
12939
14032
  }, z.core.$strip>;
14033
+ export declare const zManageHistoryHeaders: z.ZodObject<{
14034
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14035
+ }, z.core.$strip>;
12940
14036
  export declare const zGetLegacyHistoryByIdPath: z.ZodObject<{
12941
14037
  prompt_id: z.ZodString;
12942
14038
  }, z.core.$strip>;
@@ -13408,6 +14504,9 @@ export declare const zCreateInputUploadUrlResponse: z.ZodObject<{
13408
14504
  expires_in: z.ZodInt;
13409
14505
  upload_path: z.ZodString;
13410
14506
  }, z.core.$strip>;
14507
+ export declare const zInterruptJobHeaders: z.ZodObject<{
14508
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14509
+ }, z.core.$strip>;
13411
14510
  export declare const zAcceptWorkspaceInvitePath: z.ZodObject<{
13412
14511
  token: z.ZodString;
13413
14512
  }, z.core.$strip>;
@@ -13439,9 +14538,26 @@ export declare const zGetJobStatusResponse: z.ZodObject<{
13439
14538
  status: z.ZodEnum<{
13440
14539
  cancelled: "cancelled";
13441
14540
  error: "error";
14541
+ success: "success";
13442
14542
  completed: "completed";
13443
14543
  pending: "pending";
14544
+ cancel_requested: "cancel_requested";
13444
14545
  in_progress: "in_progress";
14546
+ held_budget: "held_budget";
14547
+ submitted: "submitted";
14548
+ preprocessing: "preprocessing";
14549
+ queued_limited: "queued_limited";
14550
+ queued_waiting: "queued_waiting";
14551
+ allocated: "allocated";
14552
+ preparing: "preparing";
14553
+ pending_execution: "pending_execution";
14554
+ executing: "executing";
14555
+ executed: "executed";
14556
+ cancel_pending: "cancel_pending";
14557
+ erroring: "erroring";
14558
+ cancelling_preparing: "cancelling_preparing";
14559
+ non_retryable_error: "non_retryable_error";
14560
+ lost: "lost";
13445
14561
  waiting_to_dispatch: "waiting_to_dispatch";
13446
14562
  }>;
13447
14563
  updated_at: z.ZodISODateTime;
@@ -13476,6 +14592,22 @@ export declare const zListJobsQuery: z.ZodObject<{
13476
14592
  */
13477
14593
  export declare const zListJobsResponse: z.ZodObject<{
13478
14594
  jobs: z.ZodArray<z.ZodObject<{
14595
+ budget_hold: z.ZodOptional<z.ZodObject<{
14596
+ budget: z.ZodOptional<z.ZodObject<{
14597
+ id: z.ZodOptional<z.ZodString>;
14598
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14599
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14600
+ mode: z.ZodOptional<z.ZodString>;
14601
+ resets_at: z.ZodISODateTime;
14602
+ scope_id: z.ZodOptional<z.ZodString>;
14603
+ scope_kind: z.ZodString;
14604
+ set_by: z.ZodString;
14605
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14606
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14607
+ }, z.core.$strip>>;
14608
+ can_resume: z.ZodBoolean;
14609
+ reason: z.ZodString;
14610
+ }, z.core.$strip>>;
13479
14611
  create_time: z.ZodCoercedBigInt<unknown>;
13480
14612
  deployment: z.ZodOptional<z.ZodObject<{
13481
14613
  build_name: z.ZodOptional<z.ZodString>;
@@ -13486,10 +14618,25 @@ export declare const zListJobsResponse: z.ZodObject<{
13486
14618
  }, z.core.$strip>>;
13487
14619
  execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
13488
14620
  execution_error: z.ZodOptional<z.ZodObject<{
14621
+ catalog_id: z.ZodOptional<z.ZodString>;
13489
14622
  current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13490
14623
  current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13491
14624
  exception_message: z.ZodString;
13492
14625
  exception_type: z.ZodString;
14626
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14627
+ class_type: z.ZodString;
14628
+ dependent_outputs: z.ZodArray<z.ZodString>;
14629
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14630
+ details: z.ZodOptional<z.ZodString>;
14631
+ extra_info: z.ZodOptional<z.ZodObject<{
14632
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14633
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14634
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14635
+ }, z.core.$strip>>;
14636
+ message: z.ZodOptional<z.ZodString>;
14637
+ type: z.ZodOptional<z.ZodString>;
14638
+ }, z.core.$strip>]>>;
14639
+ }, z.core.$strip>>>;
13493
14640
  node_id: z.ZodString;
13494
14641
  node_type: z.ZodString;
13495
14642
  traceback: z.ZodArray<z.ZodString>;
@@ -13510,6 +14657,7 @@ export declare const zListJobsResponse: z.ZodObject<{
13510
14657
  failed: "failed";
13511
14658
  pending: "pending";
13512
14659
  in_progress: "in_progress";
14660
+ held_budget: "held_budget";
13513
14661
  }>;
13514
14662
  workflow_id: z.ZodOptional<z.ZodString>;
13515
14663
  }, z.core.$strip>>;
@@ -13541,6 +14689,22 @@ export declare const zGetJobDetailQuery: z.ZodObject<{
13541
14689
  * Success - Job details retrieved
13542
14690
  */
13543
14691
  export declare const zGetJobDetailResponse: z.ZodObject<{
14692
+ budget_hold: z.ZodOptional<z.ZodObject<{
14693
+ budget: z.ZodOptional<z.ZodObject<{
14694
+ id: z.ZodOptional<z.ZodString>;
14695
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14696
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14697
+ mode: z.ZodOptional<z.ZodString>;
14698
+ resets_at: z.ZodISODateTime;
14699
+ scope_id: z.ZodOptional<z.ZodString>;
14700
+ scope_kind: z.ZodString;
14701
+ set_by: z.ZodString;
14702
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14703
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14704
+ }, z.core.$strip>>;
14705
+ can_resume: z.ZodBoolean;
14706
+ reason: z.ZodString;
14707
+ }, z.core.$strip>>;
13544
14708
  create_time: z.ZodCoercedBigInt<unknown>;
13545
14709
  deployment: z.ZodOptional<z.ZodObject<{
13546
14710
  build_name: z.ZodOptional<z.ZodString>;
@@ -13551,10 +14715,25 @@ export declare const zGetJobDetailResponse: z.ZodObject<{
13551
14715
  }, z.core.$strip>>;
13552
14716
  execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
13553
14717
  execution_error: z.ZodOptional<z.ZodObject<{
14718
+ catalog_id: z.ZodOptional<z.ZodString>;
13554
14719
  current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13555
14720
  current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13556
14721
  exception_message: z.ZodString;
13557
14722
  exception_type: z.ZodString;
14723
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14724
+ class_type: z.ZodString;
14725
+ dependent_outputs: z.ZodArray<z.ZodString>;
14726
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14727
+ details: z.ZodOptional<z.ZodString>;
14728
+ extra_info: z.ZodOptional<z.ZodObject<{
14729
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14730
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14731
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14732
+ }, z.core.$strip>>;
14733
+ message: z.ZodOptional<z.ZodString>;
14734
+ type: z.ZodOptional<z.ZodString>;
14735
+ }, z.core.$strip>]>>;
14736
+ }, z.core.$strip>>>;
13558
14737
  node_id: z.ZodString;
13559
14738
  node_type: z.ZodString;
13560
14739
  traceback: z.ZodArray<z.ZodString>;
@@ -13588,6 +14767,7 @@ export declare const zGetJobDetailResponse: z.ZodObject<{
13588
14767
  failed: "failed";
13589
14768
  pending: "pending";
13590
14769
  in_progress: "in_progress";
14770
+ held_budget: "held_budget";
13591
14771
  }>;
13592
14772
  update_time: z.ZodCoercedBigInt<unknown>;
13593
14773
  user_id: z.ZodOptional<z.ZodString>;
@@ -13653,6 +14833,9 @@ export declare const zGetLegacyModelsByFolderPath: z.ZodObject<{
13653
14833
  * Success - Node replacement mappings
13654
14834
  */
13655
14835
  export declare const zGetNodeReplacementsResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14836
+ export declare const zGetNodeInfoHeaders: z.ZodObject<{
14837
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14838
+ }, z.core.$strip>;
13656
14839
  export declare const zGetNodeInfoQuery: z.ZodObject<{
13657
14840
  include_user_models: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13658
14841
  }, z.core.$strip>;
@@ -13680,7 +14863,7 @@ export declare const zGetLegacyObjectInfoByNodeClassPath: z.ZodObject<{
13680
14863
  node_class: z.ZodString;
13681
14864
  }, z.core.$strip>;
13682
14865
  /**
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`.
14866
+ * Projects the caller can view. Also answered to a workspace whose plan no longer includes Projects (a lapsed or downgraded plan) but that still has projects other than the default: those projects are frozen and read-only, each with `writable: false`, and the quota has `max_active: 0`, `can_create: false` and, for a caller who could otherwise create, `denied_reasons: {can_create: frozen}`. Do not read a 200 as the plan including Projects; read `writable` on each project and `quota.can_create`.
13684
14867
  */
13685
14868
  export declare const zListProjectsResponse2: z.ZodObject<{
13686
14869
  projects: z.ZodArray<z.ZodObject<{
@@ -13689,6 +14872,7 @@ export declare const zListProjectsResponse2: z.ZodObject<{
13689
14872
  description: z.ZodOptional<z.ZodString>;
13690
14873
  id: z.ZodString;
13691
14874
  is_default: z.ZodBoolean;
14875
+ member_count: z.ZodOptional<z.ZodInt>;
13692
14876
  my_role: z.ZodOptional<z.ZodEnum<{
13693
14877
  runner: "runner";
13694
14878
  builder: "builder";
@@ -13762,6 +14946,13 @@ export declare const zListProjectsResponse2: z.ZodObject<{
13762
14946
  quota: z.ZodObject<{
13763
14947
  active: z.ZodInt;
13764
14948
  can_create: z.ZodBoolean;
14949
+ denied_reasons: z.ZodOptional<z.ZodObject<{
14950
+ can_create: z.ZodOptional<z.ZodEnum<{
14951
+ frozen: "frozen";
14952
+ permission_denied: "permission_denied";
14953
+ limit_reached: "limit_reached";
14954
+ }>>;
14955
+ }, z.core.$strip>>;
13765
14956
  max_active: z.ZodInt;
13766
14957
  }, z.core.$strip>;
13767
14958
  }, z.core.$strip>;
@@ -13787,6 +14978,7 @@ export declare const zCreateProjectResponse: z.ZodObject<{
13787
14978
  description: z.ZodOptional<z.ZodString>;
13788
14979
  id: z.ZodString;
13789
14980
  is_default: z.ZodBoolean;
14981
+ member_count: z.ZodOptional<z.ZodInt>;
13790
14982
  my_role: z.ZodOptional<z.ZodEnum<{
13791
14983
  runner: "runner";
13792
14984
  builder: "builder";
@@ -13868,6 +15060,7 @@ export declare const zGetProjectResponse: z.ZodObject<{
13868
15060
  description: z.ZodOptional<z.ZodString>;
13869
15061
  id: z.ZodString;
13870
15062
  is_default: z.ZodBoolean;
15063
+ member_count: z.ZodOptional<z.ZodInt>;
13871
15064
  my_role: z.ZodOptional<z.ZodEnum<{
13872
15065
  runner: "runner";
13873
15066
  builder: "builder";
@@ -13954,6 +15147,7 @@ export declare const zUpdateProjectResponse: z.ZodObject<{
13954
15147
  description: z.ZodOptional<z.ZodString>;
13955
15148
  id: z.ZodString;
13956
15149
  is_default: z.ZodBoolean;
15150
+ member_count: z.ZodOptional<z.ZodInt>;
13957
15151
  my_role: z.ZodOptional<z.ZodEnum<{
13958
15152
  runner: "runner";
13959
15153
  builder: "builder";
@@ -14023,6 +15217,28 @@ export declare const zUpdateProjectResponse: z.ZodObject<{
14023
15217
  workspace_id: z.ZodString;
14024
15218
  writable: z.ZodBoolean;
14025
15219
  }, z.core.$strip>;
15220
+ export declare const zListProjectMemberCandidatesPath: z.ZodObject<{
15221
+ id: z.ZodString;
15222
+ }, z.core.$strip>;
15223
+ /**
15224
+ * The people the caller may add
15225
+ */
15226
+ export declare const zListProjectMemberCandidatesResponse2: z.ZodObject<{
15227
+ candidates: z.ZodArray<z.ZodObject<{
15228
+ email: z.ZodString;
15229
+ name: z.ZodString;
15230
+ roles: z.ZodArray<z.ZodEnum<{
15231
+ runner: "runner";
15232
+ builder: "builder";
15233
+ project_admin: "project_admin";
15234
+ }>>;
15235
+ user_id: z.ZodString;
15236
+ workspace_access: z.ZodOptional<z.ZodEnum<{
15237
+ workspace_owner: "workspace_owner";
15238
+ workspace_admin: "workspace_admin";
15239
+ }>>;
15240
+ }, z.core.$strip>>;
15241
+ }, z.core.$strip>;
14026
15242
  export declare const zListProjectMembersPath: z.ZodObject<{
14027
15243
  id: z.ZodString;
14028
15244
  }, z.core.$strip>;
@@ -14032,7 +15248,21 @@ export declare const zListProjectMembersPath: z.ZodObject<{
14032
15248
  export declare const zListProjectMembersResponse2: z.ZodObject<{
14033
15249
  members: z.ZodArray<z.ZodObject<{
14034
15250
  added_by_user_id: z.ZodOptional<z.ZodString>;
15251
+ capabilities: z.ZodOptional<z.ZodObject<{
15252
+ can_change_role: z.ZodBoolean;
15253
+ can_remove: z.ZodBoolean;
15254
+ }, z.core.$strip>>;
14035
15255
  create_time: z.ZodISODateTime;
15256
+ denied_reasons: z.ZodOptional<z.ZodObject<{
15257
+ can_change_role: z.ZodOptional<z.ZodEnum<{
15258
+ permission_denied: "permission_denied";
15259
+ project_frozen: "project_frozen";
15260
+ }>>;
15261
+ can_remove: z.ZodOptional<z.ZodEnum<{
15262
+ permission_denied: "permission_denied";
15263
+ project_frozen: "project_frozen";
15264
+ }>>;
15265
+ }, z.core.$strip>>;
14036
15266
  email: z.ZodString;
14037
15267
  name: z.ZodString;
14038
15268
  role: z.ZodEnum<{
@@ -14042,6 +15272,15 @@ export declare const zListProjectMembersResponse2: z.ZodObject<{
14042
15272
  }>;
14043
15273
  user_id: z.ZodString;
14044
15274
  }, z.core.$strip>>;
15275
+ workspace_access: z.ZodOptional<z.ZodArray<z.ZodObject<{
15276
+ access: z.ZodEnum<{
15277
+ workspace_owner: "workspace_owner";
15278
+ workspace_admin: "workspace_admin";
15279
+ }>;
15280
+ email: z.ZodString;
15281
+ name: z.ZodString;
15282
+ user_id: z.ZodString;
15283
+ }, z.core.$strip>>>;
14045
15284
  }, z.core.$strip>;
14046
15285
  export declare const zRemoveProjectMemberPath: z.ZodObject<{
14047
15286
  id: z.ZodString;
@@ -14067,7 +15306,21 @@ export declare const zSetProjectMemberPath: z.ZodObject<{
14067
15306
  */
14068
15307
  export declare const zSetProjectMemberResponse: z.ZodObject<{
14069
15308
  added_by_user_id: z.ZodOptional<z.ZodString>;
15309
+ capabilities: z.ZodOptional<z.ZodObject<{
15310
+ can_change_role: z.ZodBoolean;
15311
+ can_remove: z.ZodBoolean;
15312
+ }, z.core.$strip>>;
14070
15313
  create_time: z.ZodISODateTime;
15314
+ denied_reasons: z.ZodOptional<z.ZodObject<{
15315
+ can_change_role: z.ZodOptional<z.ZodEnum<{
15316
+ permission_denied: "permission_denied";
15317
+ project_frozen: "project_frozen";
15318
+ }>>;
15319
+ can_remove: z.ZodOptional<z.ZodEnum<{
15320
+ permission_denied: "permission_denied";
15321
+ project_frozen: "project_frozen";
15322
+ }>>;
15323
+ }, z.core.$strip>>;
14071
15324
  email: z.ZodString;
14072
15325
  name: z.ZodString;
14073
15326
  role: z.ZodEnum<{
@@ -14096,6 +15349,7 @@ export declare const zExecutePromptBody: z.ZodObject<{
14096
15349
  }, z.core.$strip>;
14097
15350
  export declare const zExecutePromptHeaders: z.ZodObject<{
14098
15351
  'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
15352
+ 'Comfy-Loaded-Release': z.ZodOptional<z.ZodString>;
14099
15353
  }, z.core.$strip>;
14100
15354
  /**
14101
15355
  * Success - Prompt accepted
@@ -14118,6 +15372,19 @@ export declare const zGetProvidersResponse: z.ZodObject<{
14118
15372
  provider_id: z.ZodString;
14119
15373
  }, z.core.$strip>>;
14120
15374
  }, z.core.$strip>;
15375
+ /**
15376
+ * The public model catalog
15377
+ */
15378
+ export declare const zListPublicModelsResponse: z.ZodObject<{
15379
+ models: z.ZodArray<z.ZodObject<{
15380
+ file_path: z.ZodOptional<z.ZodString>;
15381
+ id: z.ZodUUID;
15382
+ name: z.ZodString;
15383
+ size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
15384
+ source_url: z.ZodOptional<z.ZodString>;
15385
+ tags: z.ZodArray<z.ZodString>;
15386
+ }, z.core.$strip>>;
15387
+ }, z.core.$strip>;
14121
15388
  /**
14122
15389
  * Success
14123
15390
  */
@@ -14129,6 +15396,9 @@ export declare const zManageQueueBody: z.ZodObject<{
14129
15396
  clear: z.ZodOptional<z.ZodBoolean>;
14130
15397
  delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
14131
15398
  }, z.core.$strip>;
15399
+ export declare const zManageQueueHeaders: z.ZodObject<{
15400
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
15401
+ }, z.core.$strip>;
14132
15402
  /**
14133
15403
  * Success
14134
15404
  */
@@ -14136,6 +15406,9 @@ export declare const zManageQueueResponse: z.ZodObject<{
14136
15406
  cleared: z.ZodOptional<z.ZodBoolean>;
14137
15407
  deleted: z.ZodOptional<z.ZodArray<z.ZodString>>;
14138
15408
  }, z.core.$strip>;
15409
+ export declare const zGetReleaseUnsupportedPacksHeaders: z.ZodObject<{
15410
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
15411
+ }, z.core.$strip>;
14139
15412
  /**
14140
15413
  * The packs the Release built without, in the order the build declared them
14141
15414
  */
@@ -15277,8 +16550,8 @@ export declare const zPublishCccDraftResponse: z.ZodObject<{
15277
16550
  }, z.core.$strip>;
15278
16551
  export declare const zGetCccStagingQuery: z.ZodObject<{
15279
16552
  representation: z.ZodOptional<z.ZodEnum<{
15280
- page: "page";
15281
16553
  selection: "selection";
16554
+ page: "page";
15282
16555
  detail: "detail";
15283
16556
  }>>;
15284
16557
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
@@ -15407,8 +16680,8 @@ export declare const zGetCccStagingResponse: z.ZodObject<{
15407
16680
  summary: z.ZodString;
15408
16681
  }, z.core.$strip>>>;
15409
16682
  representation: z.ZodOptional<z.ZodEnum<{
15410
- page: "page";
15411
16683
  selection: "selection";
16684
+ page: "page";
15412
16685
  detail: "detail";
15413
16686
  }>>;
15414
16687
  selection_digest: z.ZodOptional<z.ZodString>;
@@ -16009,6 +17282,13 @@ export declare const zGetCccWebsiteRootPresentationResponse: z.ZodObject<{
16009
17282
  }, z.core.$strip>;
16010
17283
  }, z.core.$strip>;
16011
17284
  }, z.core.$strip>;
17285
+ /**
17286
+ * Current Live revision and the public uids
17287
+ */
17288
+ export declare const zGetCccWebsiteRootPublicUidsResponse: z.ZodObject<{
17289
+ revision_id: z.ZodCoercedBigInt<unknown>;
17290
+ uids: z.ZodArray<z.ZodUUID>;
17291
+ }, z.core.$strip>;
16012
17292
  export declare const zGetCccTypeSchemaPath: z.ZodObject<{
16013
17293
  type: z.ZodEnum<{
16014
17294
  model: "model";
@@ -16068,6 +17348,44 @@ export declare const zGetCccTypeSchemaResponse: z.ZodObject<{
16068
17348
  media: "media";
16069
17349
  }>;
16070
17350
  }, z.core.$strip>;
17351
+ export declare const zListCccStaffAppsQuery: z.ZodObject<{
17352
+ limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
17353
+ cursor: z.ZodOptional<z.ZodString>;
17354
+ }, z.core.$strip>;
17355
+ /**
17356
+ * One page of app rows and the optional opaque next_cursor
17357
+ */
17358
+ export declare const zListCccStaffAppsResponse: z.ZodObject<{
17359
+ has_more: z.ZodBoolean;
17360
+ items: z.ZodArray<z.ZodObject<{
17361
+ description: z.ZodString;
17362
+ draft_page: z.ZodOptional<z.ZodString>;
17363
+ enabled: z.ZodBoolean;
17364
+ hub_page: z.ZodOptional<z.ZodString>;
17365
+ on_desktop: z.ZodBoolean;
17366
+ on_hub: z.ZodBoolean;
17367
+ picture: z.ZodOptional<z.ZodString>;
17368
+ slug: z.ZodString;
17369
+ status: z.ZodEnum<{
17370
+ not_live: "not_live";
17371
+ unpublished: "unpublished";
17372
+ hidden: "hidden";
17373
+ scheduled: "scheduled";
17374
+ live: "live";
17375
+ }>;
17376
+ title: z.ZodString;
17377
+ uid: z.ZodUUID;
17378
+ }, z.core.$strip>>;
17379
+ next_cursor: z.ZodOptional<z.ZodString>;
17380
+ }, z.core.$strip>;
17381
+ export declare const zGetCccStaffAppPicturePath: z.ZodObject<{
17382
+ uid: z.ZodUUID;
17383
+ version: z.ZodUUID;
17384
+ }, z.core.$strip>;
17385
+ /**
17386
+ * The picture bytes; private no-store
17387
+ */
17388
+ export declare const zGetCccStaffAppPictureResponse: z.ZodString;
16071
17389
  /**
16072
17390
  * Private state; never cacheable
16073
17391
  */
@@ -16854,6 +18172,9 @@ export declare const zClearWorkspaceDeploymentResponse: z.ZodVoid;
16854
18172
  export declare const zPickWorkspaceDeploymentBody: z.ZodObject<{
16855
18173
  deployment_id: z.ZodString;
16856
18174
  }, z.core.$strip>;
18175
+ export declare const zPickWorkspaceDeploymentHeaders: z.ZodObject<{
18176
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
18177
+ }, z.core.$strip>;
16857
18178
  export declare const zPickWorkspaceDeploymentPath: z.ZodObject<{
16858
18179
  id: z.ZodString;
16859
18180
  }, z.core.$strip>;
@@ -16861,6 +18182,9 @@ export declare const zPickWorkspaceDeploymentPath: z.ZodObject<{
16861
18182
  * Picked; the cookie on this response carries it
16862
18183
  */
16863
18184
  export declare const zPickWorkspaceDeploymentResponse: z.ZodVoid;
18185
+ export declare const zGetWorkspaceDeploymentCpuServerHeaders: z.ZodObject<{
18186
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
18187
+ }, z.core.$strip>;
16864
18188
  export declare const zGetWorkspaceDeploymentCpuServerPath: z.ZodObject<{
16865
18189
  id: z.ZodString;
16866
18190
  }, z.core.$strip>;
@@ -16917,6 +18241,21 @@ export declare const zListWorkspaceDeploymentsResponse: z.ZodObject<{
16917
18241
  }>>;
16918
18242
  picked_deployment_id: z.ZodOptional<z.ZodString>;
16919
18243
  }, z.core.$strip>;
18244
+ export declare const zAddWorkspaceDeploymentBuildModelBody: z.ZodObject<{
18245
+ blobId: z.ZodString;
18246
+ filename: z.ZodString;
18247
+ type: z.ZodString;
18248
+ }, z.core.$strip>;
18249
+ export declare const zAddWorkspaceDeploymentBuildModelPath: z.ZodObject<{
18250
+ id: z.ZodString;
18251
+ deployment_id: z.ZodString;
18252
+ }, z.core.$strip>;
18253
+ /**
18254
+ * The new version was cut; poll it by its releaseId
18255
+ */
18256
+ export declare const zAddWorkspaceDeploymentBuildModelResponse: z.ZodObject<{
18257
+ releaseId: z.ZodString;
18258
+ }, z.core.$strip>;
16920
18259
  export declare const zCreateWorkspaceDeploymentModelUploadBody: z.ZodObject<{
16921
18260
  blake3: z.ZodOptional<z.ZodString>;
16922
18261
  filename: z.ZodString;
@@ -16982,7 +18321,22 @@ export declare const zListWorkspaceDeploymentModelsPath: z.ZodObject<{
16982
18321
  /**
16983
18322
  * comfy-deploy's model list, unchanged
16984
18323
  */
16985
- export declare const zListWorkspaceDeploymentModelsResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18324
+ export declare const zListWorkspaceDeploymentModelsResponse: z.ZodObject<{
18325
+ addEnabled: z.ZodBoolean;
18326
+ models: z.ZodArray<z.ZodObject<{
18327
+ failure: z.ZodOptional<z.ZodString>;
18328
+ filename: z.ZodString;
18329
+ id: z.ZodString;
18330
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
18331
+ status: z.ZodEnum<{
18332
+ failed: "failed";
18333
+ ready: "ready";
18334
+ adding: "adding";
18335
+ removing: "removing";
18336
+ }>;
18337
+ type: z.ZodString;
18338
+ }, z.core.$strip>>;
18339
+ }, z.core.$strip>;
16986
18340
  export declare const zAddWorkspaceDeploymentModelBody: z.ZodObject<{
16987
18341
  blobId: z.ZodString;
16988
18342
  filename: z.ZodOptional<z.ZodString>;
@@ -16995,7 +18349,19 @@ export declare const zAddWorkspaceDeploymentModelPath: z.ZodObject<{
16995
18349
  /**
16996
18350
  * comfy-deploy's new entry, unchanged
16997
18351
  */
16998
- export declare const zAddWorkspaceDeploymentModelResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18352
+ export declare const zAddWorkspaceDeploymentModelResponse: z.ZodObject<{
18353
+ failure: z.ZodOptional<z.ZodString>;
18354
+ filename: z.ZodString;
18355
+ id: z.ZodString;
18356
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
18357
+ status: z.ZodEnum<{
18358
+ failed: "failed";
18359
+ ready: "ready";
18360
+ adding: "adding";
18361
+ removing: "removing";
18362
+ }>;
18363
+ type: z.ZodString;
18364
+ }, z.core.$strip>;
16999
18365
  export declare const zRemoveWorkspaceDeploymentModelPath: z.ZodObject<{
17000
18366
  id: z.ZodString;
17001
18367
  deployment_id: z.ZodString;