@comfyorg/ingest-types 1.7.2 → 1.7.3

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
  */
@@ -297,6 +304,16 @@ export declare const zAgentLlmError: z.ZodObject<{
297
304
  error: "error";
298
305
  }>;
299
306
  }, z.core.$strip>;
307
+ /**
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>;
300
317
  /**
301
318
  * An explicit exact model selection. Unknown properties are refused with 400 so a newer intent is never silently ignored by an older server.
302
319
  */
@@ -304,6 +321,52 @@ 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>;
324
+ /**
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>;
307
370
  /**
308
371
  * The immutable model selection receipt for an accepted turn.
309
372
  */
@@ -312,7 +375,6 @@ export declare const zAgentModelReceipt: z.ZodObject<{
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";
@@ -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
  */
@@ -6268,6 +6445,279 @@ export declare const zPromptOutputsSkippedNodeError: z.ZodObject<{
6268
6445
  type: z.ZodOptional<z.ZodString>;
6269
6446
  }, z.core.$strip>]>>;
6270
6447
  }, z.core.$strip>;
6448
+ /**
6449
+ * Detailed execution error information from ComfyUI
6450
+ */
6451
+ export declare const zExecutionError: z.ZodObject<{
6452
+ catalog_id: z.ZodOptional<z.ZodString>;
6453
+ current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6454
+ current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6455
+ exception_message: z.ZodString;
6456
+ exception_type: z.ZodString;
6457
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6458
+ class_type: z.ZodString;
6459
+ dependent_outputs: z.ZodArray<z.ZodString>;
6460
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6461
+ details: z.ZodOptional<z.ZodString>;
6462
+ extra_info: z.ZodOptional<z.ZodObject<{
6463
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6464
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6465
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6466
+ }, z.core.$strip>>;
6467
+ message: z.ZodOptional<z.ZodString>;
6468
+ type: z.ZodOptional<z.ZodString>;
6469
+ }, z.core.$strip>]>>;
6470
+ }, z.core.$strip>>>;
6471
+ node_id: z.ZodString;
6472
+ node_type: z.ZodString;
6473
+ traceback: z.ZodArray<z.ZodString>;
6474
+ }, z.core.$strip>;
6475
+ /**
6476
+ * Full job details including workflow and outputs
6477
+ */
6478
+ export declare const zJobDetailResponse: z.ZodObject<{
6479
+ budget_hold: z.ZodOptional<z.ZodObject<{
6480
+ budget: z.ZodOptional<z.ZodObject<{
6481
+ id: z.ZodOptional<z.ZodString>;
6482
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6483
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6484
+ mode: z.ZodOptional<z.ZodString>;
6485
+ resets_at: z.ZodISODateTime;
6486
+ scope_id: z.ZodOptional<z.ZodString>;
6487
+ scope_kind: z.ZodString;
6488
+ set_by: z.ZodString;
6489
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6490
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6491
+ }, z.core.$strip>>;
6492
+ can_resume: z.ZodBoolean;
6493
+ reason: z.ZodString;
6494
+ }, z.core.$strip>>;
6495
+ create_time: z.ZodCoercedBigInt<unknown>;
6496
+ deployment: z.ZodOptional<z.ZodObject<{
6497
+ build_name: z.ZodOptional<z.ZodString>;
6498
+ deployment_id: z.ZodString;
6499
+ name: z.ZodOptional<z.ZodString>;
6500
+ release_id: z.ZodString;
6501
+ release_version: z.ZodOptional<z.ZodInt>;
6502
+ }, z.core.$strip>>;
6503
+ execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6504
+ execution_error: z.ZodOptional<z.ZodObject<{
6505
+ catalog_id: z.ZodOptional<z.ZodString>;
6506
+ current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6507
+ current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6508
+ exception_message: z.ZodString;
6509
+ exception_type: z.ZodString;
6510
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6511
+ class_type: z.ZodString;
6512
+ dependent_outputs: z.ZodArray<z.ZodString>;
6513
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6514
+ details: z.ZodOptional<z.ZodString>;
6515
+ extra_info: z.ZodOptional<z.ZodObject<{
6516
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6517
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6518
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6519
+ }, z.core.$strip>>;
6520
+ message: z.ZodOptional<z.ZodString>;
6521
+ type: z.ZodOptional<z.ZodString>;
6522
+ }, z.core.$strip>]>>;
6523
+ }, z.core.$strip>>>;
6524
+ node_id: z.ZodString;
6525
+ node_type: z.ZodString;
6526
+ traceback: z.ZodArray<z.ZodString>;
6527
+ }, z.core.$strip>>;
6528
+ execution_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6529
+ display_node: z.ZodOptional<z.ZodString>;
6530
+ node_id: z.ZodOptional<z.ZodString>;
6531
+ parent_node: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6532
+ real_node_id: z.ZodOptional<z.ZodString>;
6533
+ }, z.core.$strip>>>;
6534
+ execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6535
+ execution_status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6536
+ executor: z.ZodOptional<z.ZodEnum<{
6537
+ cloud_inference: "cloud_inference";
6538
+ platform_gateway: "platform_gateway";
6539
+ }>>;
6540
+ id: z.ZodUUID;
6541
+ outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6542
+ outputs_count: z.ZodOptional<z.ZodInt>;
6543
+ preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6544
+ previewable_outputs_count: z.ZodOptional<z.ZodInt>;
6545
+ project_id: z.ZodOptional<z.ZodString>;
6546
+ queue_position: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6547
+ queue_reason: z.ZodOptional<z.ZodEnum<{
6548
+ concurrency_limit: "concurrency_limit";
6549
+ capacity: "capacity";
6550
+ }>>;
6551
+ status: z.ZodEnum<{
6552
+ cancelled: "cancelled";
6553
+ completed: "completed";
6554
+ failed: "failed";
6555
+ pending: "pending";
6556
+ in_progress: "in_progress";
6557
+ held_budget: "held_budget";
6558
+ }>;
6559
+ update_time: z.ZodCoercedBigInt<unknown>;
6560
+ user_id: z.ZodOptional<z.ZodString>;
6561
+ workflow: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6562
+ workflow_id: z.ZodOptional<z.ZodString>;
6563
+ workflow_version_id: z.ZodOptional<z.ZodString>;
6564
+ workspace_id: z.ZodOptional<z.ZodString>;
6565
+ }, z.core.$strip>;
6566
+ /**
6567
+ * Lightweight job data for list views (workflow and full outputs excluded)
6568
+ */
6569
+ export declare const zJobEntry: z.ZodObject<{
6570
+ budget_hold: z.ZodOptional<z.ZodObject<{
6571
+ budget: z.ZodOptional<z.ZodObject<{
6572
+ id: z.ZodOptional<z.ZodString>;
6573
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6574
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6575
+ mode: z.ZodOptional<z.ZodString>;
6576
+ resets_at: z.ZodISODateTime;
6577
+ scope_id: z.ZodOptional<z.ZodString>;
6578
+ scope_kind: z.ZodString;
6579
+ set_by: z.ZodString;
6580
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6581
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6582
+ }, z.core.$strip>>;
6583
+ can_resume: z.ZodBoolean;
6584
+ reason: z.ZodString;
6585
+ }, z.core.$strip>>;
6586
+ create_time: z.ZodCoercedBigInt<unknown>;
6587
+ deployment: z.ZodOptional<z.ZodObject<{
6588
+ build_name: z.ZodOptional<z.ZodString>;
6589
+ deployment_id: z.ZodString;
6590
+ name: z.ZodOptional<z.ZodString>;
6591
+ release_id: z.ZodString;
6592
+ release_version: z.ZodOptional<z.ZodInt>;
6593
+ }, z.core.$strip>>;
6594
+ execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6595
+ execution_error: z.ZodOptional<z.ZodObject<{
6596
+ catalog_id: z.ZodOptional<z.ZodString>;
6597
+ current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6598
+ current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6599
+ exception_message: z.ZodString;
6600
+ exception_type: z.ZodString;
6601
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6602
+ class_type: z.ZodString;
6603
+ dependent_outputs: z.ZodArray<z.ZodString>;
6604
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6605
+ details: z.ZodOptional<z.ZodString>;
6606
+ extra_info: z.ZodOptional<z.ZodObject<{
6607
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6608
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6609
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6610
+ }, z.core.$strip>>;
6611
+ message: z.ZodOptional<z.ZodString>;
6612
+ type: z.ZodOptional<z.ZodString>;
6613
+ }, z.core.$strip>]>>;
6614
+ }, z.core.$strip>>>;
6615
+ node_id: z.ZodString;
6616
+ node_type: z.ZodString;
6617
+ traceback: z.ZodArray<z.ZodString>;
6618
+ }, z.core.$strip>>;
6619
+ execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6620
+ executor: z.ZodOptional<z.ZodEnum<{
6621
+ cloud_inference: "cloud_inference";
6622
+ platform_gateway: "platform_gateway";
6623
+ }>>;
6624
+ id: z.ZodUUID;
6625
+ outputs_count: z.ZodOptional<z.ZodInt>;
6626
+ preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6627
+ previewable_outputs_count: z.ZodOptional<z.ZodInt>;
6628
+ project_id: z.ZodOptional<z.ZodString>;
6629
+ status: z.ZodEnum<{
6630
+ cancelled: "cancelled";
6631
+ completed: "completed";
6632
+ failed: "failed";
6633
+ pending: "pending";
6634
+ in_progress: "in_progress";
6635
+ held_budget: "held_budget";
6636
+ }>;
6637
+ workflow_id: z.ZodOptional<z.ZodString>;
6638
+ }, z.core.$strip>;
6639
+ /**
6640
+ * Paginated list of jobs for the authenticated user.
6641
+ */
6642
+ export declare const zJobsListResponse: z.ZodObject<{
6643
+ jobs: z.ZodArray<z.ZodObject<{
6644
+ budget_hold: z.ZodOptional<z.ZodObject<{
6645
+ budget: z.ZodOptional<z.ZodObject<{
6646
+ id: z.ZodOptional<z.ZodString>;
6647
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6648
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6649
+ mode: z.ZodOptional<z.ZodString>;
6650
+ resets_at: z.ZodISODateTime;
6651
+ scope_id: z.ZodOptional<z.ZodString>;
6652
+ scope_kind: z.ZodString;
6653
+ set_by: z.ZodString;
6654
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6655
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6656
+ }, z.core.$strip>>;
6657
+ can_resume: z.ZodBoolean;
6658
+ reason: z.ZodString;
6659
+ }, z.core.$strip>>;
6660
+ create_time: z.ZodCoercedBigInt<unknown>;
6661
+ deployment: z.ZodOptional<z.ZodObject<{
6662
+ build_name: z.ZodOptional<z.ZodString>;
6663
+ deployment_id: z.ZodString;
6664
+ name: z.ZodOptional<z.ZodString>;
6665
+ release_id: z.ZodString;
6666
+ release_version: z.ZodOptional<z.ZodInt>;
6667
+ }, z.core.$strip>>;
6668
+ execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6669
+ execution_error: z.ZodOptional<z.ZodObject<{
6670
+ catalog_id: z.ZodOptional<z.ZodString>;
6671
+ current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6672
+ current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6673
+ exception_message: z.ZodString;
6674
+ exception_type: z.ZodString;
6675
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6676
+ class_type: z.ZodString;
6677
+ dependent_outputs: z.ZodArray<z.ZodString>;
6678
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6679
+ details: z.ZodOptional<z.ZodString>;
6680
+ extra_info: z.ZodOptional<z.ZodObject<{
6681
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6682
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6683
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
6684
+ }, z.core.$strip>>;
6685
+ message: z.ZodOptional<z.ZodString>;
6686
+ type: z.ZodOptional<z.ZodString>;
6687
+ }, z.core.$strip>]>>;
6688
+ }, z.core.$strip>>>;
6689
+ node_id: z.ZodString;
6690
+ node_type: z.ZodString;
6691
+ traceback: z.ZodArray<z.ZodString>;
6692
+ }, z.core.$strip>>;
6693
+ execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6694
+ executor: z.ZodOptional<z.ZodEnum<{
6695
+ cloud_inference: "cloud_inference";
6696
+ platform_gateway: "platform_gateway";
6697
+ }>>;
6698
+ id: z.ZodUUID;
6699
+ outputs_count: z.ZodOptional<z.ZodInt>;
6700
+ preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6701
+ previewable_outputs_count: z.ZodOptional<z.ZodInt>;
6702
+ project_id: z.ZodOptional<z.ZodString>;
6703
+ status: z.ZodEnum<{
6704
+ cancelled: "cancelled";
6705
+ completed: "completed";
6706
+ failed: "failed";
6707
+ pending: "pending";
6708
+ in_progress: "in_progress";
6709
+ held_budget: "held_budget";
6710
+ }>;
6711
+ workflow_id: z.ZodOptional<z.ZodString>;
6712
+ }, z.core.$strip>>;
6713
+ pagination: z.ZodObject<{
6714
+ has_more: z.ZodBoolean;
6715
+ limit: z.ZodInt;
6716
+ next_cursor: z.ZodOptional<z.ZodString>;
6717
+ offset: z.ZodInt;
6718
+ total: z.ZodInt;
6719
+ }, z.core.$strip>;
6720
+ }, z.core.$strip>;
6271
6721
  /**
6272
6722
  * The `data` of a prompt_outputs_skipped WebSocket event. Sent when ComfyUI accepts a Cloud job's prompt but rejects some nodes: ComfyUI skips the outputs that depend on them and runs the rest, and the job keeps running. The inference server sends it to the user's channel (services/inference/server/services/joborchestrator/prompt_validation.go). Every string taken from ComfyUI has its lists of allowed values or file names replaced ("is not a valid value", "[list omitted]") and is capped at 512 characters.
6273
6723
  */
@@ -6360,6 +6810,24 @@ export declare const zProviderPolicy: z.ZodObject<{
6360
6810
  provider_id: z.ZodString;
6361
6811
  }, z.core.$strip>>;
6362
6812
  }, z.core.$strip>;
6813
+ export declare const zPublicModel: z.ZodObject<{
6814
+ file_path: z.ZodOptional<z.ZodString>;
6815
+ id: z.ZodUUID;
6816
+ name: z.ZodString;
6817
+ size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6818
+ source_url: z.ZodOptional<z.ZodString>;
6819
+ tags: z.ZodArray<z.ZodString>;
6820
+ }, z.core.$strip>;
6821
+ export declare const zPublicModelsResponse: z.ZodObject<{
6822
+ models: z.ZodArray<z.ZodObject<{
6823
+ file_path: z.ZodOptional<z.ZodString>;
6824
+ id: z.ZodUUID;
6825
+ name: z.ZodString;
6826
+ size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6827
+ source_url: z.ZodOptional<z.ZodString>;
6828
+ tags: z.ZodArray<z.ZodString>;
6829
+ }, z.core.$strip>>;
6830
+ }, z.core.$strip>;
6363
6831
  /**
6364
6832
  * Request body for publishing or updating a workflow on the Hub.
6365
6833
  */
@@ -6715,6 +7183,97 @@ export declare const zSetProjectMemberRequest: z.ZodObject<{
6715
7183
  project_admin: "project_admin";
6716
7184
  }>;
6717
7185
  }, z.core.$strip>;
7186
+ /**
7187
+ * The exhausted budget. Workspace Owners also receive its ID, scope ID, mode, and amounts.
7188
+ */
7189
+ export declare const zSpendBudgetDetail: z.ZodObject<{
7190
+ id: z.ZodOptional<z.ZodString>;
7191
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7192
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7193
+ mode: z.ZodOptional<z.ZodString>;
7194
+ resets_at: z.ZodISODateTime;
7195
+ scope_id: z.ZodOptional<z.ZodString>;
7196
+ scope_kind: z.ZodString;
7197
+ set_by: z.ZodString;
7198
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7199
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7200
+ }, z.core.$strip>;
7201
+ /**
7202
+ * 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.
7203
+ */
7204
+ export declare const zAgentAdmissionError: z.ZodObject<{
7205
+ blocking_budgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
7206
+ id: z.ZodOptional<z.ZodString>;
7207
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7208
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7209
+ mode: z.ZodOptional<z.ZodString>;
7210
+ resets_at: z.ZodISODateTime;
7211
+ scope_id: z.ZodOptional<z.ZodString>;
7212
+ scope_kind: z.ZodString;
7213
+ set_by: z.ZodString;
7214
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7215
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7216
+ }, z.core.$strip>>>;
7217
+ budget: z.ZodOptional<z.ZodObject<{
7218
+ id: z.ZodOptional<z.ZodString>;
7219
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7220
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7221
+ mode: z.ZodOptional<z.ZodString>;
7222
+ resets_at: z.ZodISODateTime;
7223
+ scope_id: z.ZodOptional<z.ZodString>;
7224
+ scope_kind: z.ZodString;
7225
+ set_by: z.ZodString;
7226
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7227
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7228
+ }, z.core.$strip>>;
7229
+ denied_reason: z.ZodOptional<z.ZodString>;
7230
+ error: z.ZodObject<{
7231
+ message: z.ZodString;
7232
+ reason: z.ZodEnum<{
7233
+ budget_exceeded: "budget_exceeded";
7234
+ no_funds: "no_funds";
7235
+ manual_block: "manual_block";
7236
+ funds_unavailable: "funds_unavailable";
7237
+ }>;
7238
+ type: z.ZodEnum<{
7239
+ PAYMENT_REQUIRED: "PAYMENT_REQUIRED";
7240
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
7241
+ }>;
7242
+ }, z.core.$strip>;
7243
+ error_type: z.ZodOptional<z.ZodString>;
7244
+ }, z.core.$strip>;
7245
+ /**
7246
+ * Payment or hard-budget refusal for ComfyUI prompt execution.
7247
+ */
7248
+ export declare const zPromptPaymentRequired: z.ZodObject<{
7249
+ blocking_budgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
7250
+ id: z.ZodOptional<z.ZodString>;
7251
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7252
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7253
+ mode: z.ZodOptional<z.ZodString>;
7254
+ resets_at: z.ZodISODateTime;
7255
+ scope_id: z.ZodOptional<z.ZodString>;
7256
+ scope_kind: z.ZodString;
7257
+ set_by: z.ZodString;
7258
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7259
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7260
+ }, z.core.$strip>>>;
7261
+ budget: z.ZodOptional<z.ZodObject<{
7262
+ id: z.ZodOptional<z.ZodString>;
7263
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7264
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7265
+ mode: z.ZodOptional<z.ZodString>;
7266
+ resets_at: z.ZodISODateTime;
7267
+ scope_id: z.ZodOptional<z.ZodString>;
7268
+ scope_kind: z.ZodString;
7269
+ set_by: z.ZodString;
7270
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7271
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7272
+ }, z.core.$strip>>;
7273
+ denied_reason: z.ZodOptional<z.ZodString>;
7274
+ error: z.ZodOptional<z.ZodUnknown>;
7275
+ error_type: z.ZodOptional<z.ZodString>;
7276
+ }, z.core.$strip>;
6718
7277
  /**
6719
7278
  * The deployment a start was asked for, and its status after the ask.
6720
7279
  */
@@ -7871,6 +8430,7 @@ export declare const zAgentMessage: z.ZodObject<{
7871
8430
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
7872
8431
  allow_other: z.ZodBoolean;
7873
8432
  ask_id: z.ZodString;
8433
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
7874
8434
  kind: z.ZodEnum<{
7875
8435
  ask_user: "ask_user";
7876
8436
  run_approval: "run_approval";
@@ -7895,6 +8455,7 @@ export declare const zAgentMessage: z.ZodObject<{
7895
8455
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
7896
8456
  allow_other: z.ZodBoolean;
7897
8457
  ask_id: z.ZodString;
8458
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
7898
8459
  kind: z.ZodEnum<{
7899
8460
  ask_user: "ask_user";
7900
8461
  run_approval: "run_approval";
@@ -7930,6 +8491,7 @@ export declare const zAgentMessage: z.ZodObject<{
7930
8491
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
7931
8492
  allow_other: z.ZodBoolean;
7932
8493
  ask_id: z.ZodString;
8494
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
7933
8495
  kind: z.ZodEnum<{
7934
8496
  ask_user: "ask_user";
7935
8497
  run_approval: "run_approval";
@@ -7959,6 +8521,7 @@ export declare const zAgentMessage: z.ZodObject<{
7959
8521
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
7960
8522
  allow_other: z.ZodBoolean;
7961
8523
  ask_id: z.ZodString;
8524
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
7962
8525
  kind: z.ZodEnum<{
7963
8526
  ask_user: "ask_user";
7964
8527
  run_approval: "run_approval";
@@ -8091,6 +8654,7 @@ export declare const zBillingOpStatusResponse: z.ZodObject<{
8091
8654
  completed_at: z.ZodOptional<z.ZodISODateTime>;
8092
8655
  credits_added: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8093
8656
  decline_reason: z.ZodOptional<z.ZodEnum<{
8657
+ generic: "generic";
8094
8658
  card_declined: "card_declined";
8095
8659
  insufficient_funds: "insufficient_funds";
8096
8660
  expired_card: "expired_card";
@@ -8099,7 +8663,6 @@ export declare const zBillingOpStatusResponse: z.ZodObject<{
8099
8663
  authentication_failed: "authentication_failed";
8100
8664
  processing_error: "processing_error";
8101
8665
  payment_not_completed: "payment_not_completed";
8102
- generic: "generic";
8103
8666
  }>>;
8104
8667
  error_message: z.ZodOptional<z.ZodString>;
8105
8668
  id: z.ZodString;
@@ -8252,9 +8815,11 @@ export declare const zTopupPurchase: z.ZodObject<{
8252
8815
  */
8253
8816
  export declare const zTopupQuoteResponse: z.ZodObject<{
8254
8817
  amount_cents: z.ZodCoercedBigInt<unknown>;
8818
+ balance_after_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8255
8819
  credits: z.ZodCoercedBigInt<unknown>;
8256
8820
  expires_at: z.ZodISODateTime;
8257
8821
  payment_method_configuration_id: z.ZodOptional<z.ZodString>;
8822
+ runs_paused_after: z.ZodOptional<z.ZodBoolean>;
8258
8823
  }, z.core.$strip>;
8259
8824
  /**
8260
8825
  * Request body for updating an existing Hub profile.
@@ -8334,6 +8899,7 @@ export declare const zUsageBreakdownRow: z.ZodObject<{
8334
8899
  export declare const zUsageBucket: z.ZodObject<{
8335
8900
  cost_micros: z.ZodNumber;
8336
8901
  group_key: z.ZodString;
8902
+ pending: z.ZodOptional<z.ZodBoolean>;
8337
8903
  period_end: z.ZodISODateTime;
8338
8904
  period_start: z.ZodISODateTime;
8339
8905
  }, z.core.$strip>;
@@ -8369,10 +8935,12 @@ export declare const zUsageNotAvailable: z.ZodObject<{
8369
8935
  reason: z.ZodEnum<{
8370
8936
  no_attribution_source: "no_attribution_source";
8371
8937
  filter_needs_ledger: "filter_needs_ledger";
8938
+ too_many_deployments: "too_many_deployments";
8939
+ deployments_unavailable: "deployments_unavailable";
8372
8940
  }>;
8373
8941
  }, z.core.$strip>;
8374
8942
  /**
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.
8943
+ * 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
8944
  */
8377
8945
  export declare const zUsageSummary: z.ZodObject<{
8378
8946
  balance: z.ZodOptional<z.ZodObject<{
@@ -8398,6 +8966,7 @@ export declare const zUsageTimeSeries: z.ZodObject<{
8398
8966
  buckets: z.ZodArray<z.ZodObject<{
8399
8967
  cost_micros: z.ZodNumber;
8400
8968
  group_key: z.ZodString;
8969
+ pending: z.ZodOptional<z.ZodBoolean>;
8401
8970
  period_end: z.ZodISODateTime;
8402
8971
  period_start: z.ZodISODateTime;
8403
8972
  }, z.core.$strip>>;
@@ -8408,12 +8977,12 @@ export declare const zUsageTimeSeries: z.ZodObject<{
8408
8977
  month: "month";
8409
8978
  }>;
8410
8979
  group_by: z.ZodEnum<{
8980
+ source: "source";
8411
8981
  model: "model";
8412
8982
  endpoint: "endpoint";
8413
8983
  product: "product";
8414
8984
  product_line: "product_line";
8415
8985
  person: "person";
8416
- source: "source";
8417
8986
  }>;
8418
8987
  group_labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
8419
8988
  cost_kind: z.ZodOptional<z.ZodEnum<{
@@ -8445,6 +9014,8 @@ export declare const zUsageTimeSeries: z.ZodObject<{
8445
9014
  reason: z.ZodEnum<{
8446
9015
  no_attribution_source: "no_attribution_source";
8447
9016
  filter_needs_ledger: "filter_needs_ledger";
9017
+ too_many_deployments: "too_many_deployments";
9018
+ deployments_unavailable: "deployments_unavailable";
8448
9019
  }>;
8449
9020
  }, z.core.$strip>>;
8450
9021
  served_from: z.ZodOptional<z.ZodEnum<{
@@ -8904,6 +9475,7 @@ export declare const zBillingCapabilityDenialParams: z.ZodObject<{
8904
9475
  * Effective billing UI guidance for one authenticated user and workspace.
8905
9476
  */
8906
9477
  export declare const zBillingCapabilitiesResponse: z.ZodObject<{
9478
+ billing_web_topup_hosted_methods: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8907
9479
  auto_top_up_enabled: z.ZodBoolean;
8908
9480
  auto_top_up_member_view: z.ZodOptional<z.ZodObject<{
8909
9481
  cycle_resets_at: z.ZodNullable<z.ZodISODateTime>;
@@ -8983,6 +9555,8 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
8983
9555
  can_view_own_usage: z.ZodOptional<z.ZodBoolean>;
8984
9556
  can_view_pending_invites: z.ZodBoolean;
8985
9557
  can_view_team_usage: z.ZodBoolean;
9558
+ can_view_unallocated_usage: z.ZodBoolean;
9559
+ can_view_workspace_usage: z.ZodBoolean;
8986
9560
  }, z.core.$strip>;
8987
9561
  denied_reason_params: z.ZodOptional<z.ZodObject<{
8988
9562
  can_delete_workspace: z.ZodOptional<z.ZodObject<{
@@ -9208,6 +9782,10 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
9208
9782
  not_workspace_owner: "not_workspace_owner";
9209
9783
  usage_attribution_unavailable: "usage_attribution_unavailable";
9210
9784
  }>>;
9785
+ can_view_workspace_usage: z.ZodOptional<z.ZodEnum<{
9786
+ not_a_member: "not_a_member";
9787
+ not_workspace_owner: "not_workspace_owner";
9788
+ }>>;
9211
9789
  }, z.core.$strip>>;
9212
9790
  ending_notice_starts_at: z.ZodOptional<z.ZodISODateTime>;
9213
9791
  expires_at: z.ZodISODateTime;
@@ -9506,6 +10084,7 @@ export declare const zListWorkspacesResponse: z.ZodObject<{
9506
10084
  * Represents a user-owned asset (image, video, or other generated output).
9507
10085
  */
9508
10086
  export declare const zAssetWritable: z.ZodObject<{
10087
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
9509
10088
  created_at: z.ZodISODateTime;
9510
10089
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9511
10090
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9530,6 +10109,7 @@ export declare const zAssetWritable: z.ZodObject<{
9530
10109
  * Response returned when a new asset is successfully created.
9531
10110
  */
9532
10111
  export declare const zAssetCreatedWritable: z.ZodIntersection<z.ZodObject<{
10112
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
9533
10113
  created_at: z.ZodISODateTime;
9534
10114
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9535
10115
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9585,6 +10165,7 @@ export declare const zCccHistoryPageWritable: z.ZodObject<{
9585
10165
  */
9586
10166
  export declare const zListAssetsResponseWritable: z.ZodObject<{
9587
10167
  assets: z.ZodArray<z.ZodObject<{
10168
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
9588
10169
  created_at: z.ZodISODateTime;
9589
10170
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9590
10171
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9639,9 +10220,12 @@ export declare const zDeploymentModelsWorkspaceId: z.ZodString;
9639
10220
  export declare const zMediaWorkspaceId: z.ZodString;
9640
10221
  /**
9641
10222
  * 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.
10223
+ * ones that read it: they list workflows, runs or assets, create one,
10224
+ * export assets, clear the caller's queue or History, pick the
10225
+ * deployment a browser runs on, or serve the editor that deployment
10226
+ * (the node, extension and model lists). Absent means
10227
+ * the workspace's default project, which is how existing clients keep
10228
+ * working.
9645
10229
  *
9646
10230
  * An operation on one existing workflow, run or asset does not take
9647
10231
  * it: the row's own project decides. Any other operation that creates
@@ -9653,6 +10237,13 @@ export declare const zMediaWorkspaceId: z.ZodString;
9653
10237
  * `not_found`; the two look the same. Where Projects is not enabled for
9654
10238
  * the workspace the header is ignored.
9655
10239
  *
10240
+ * A Cloud JWT that carries a `project_id` claim acts only in that
10241
+ * project. Without the header such a request acts in the claimed
10242
+ * project; a header naming any other project, the default project
10243
+ * included, is 403 `permission_denied`, and so is any such request
10244
+ * where Projects is not enabled for the workspace. The refusal says the
10245
+ * token is bound to another project, not what the caller's role allows.
10246
+ *
9656
10247
  */
9657
10248
  export declare const zProjectId: z.ZodString;
9658
10249
  /**
@@ -9725,6 +10316,9 @@ export declare const zGetAgentEventsQuery: z.ZodObject<{
9725
10316
  token: z.ZodOptional<z.ZodString>;
9726
10317
  workspace_id: z.ZodOptional<z.ZodString>;
9727
10318
  }, z.core.$strip>;
10319
+ export declare const zAgentGetExecutionsHeaders: z.ZodObject<{
10320
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10321
+ }, z.core.$strip>;
9728
10322
  export declare const zAgentGetExecutionsQuery: z.ZodObject<{
9729
10323
  thread_id: z.ZodOptional<z.ZodUUID>;
9730
10324
  message_id: z.ZodOptional<z.ZodUUID>;
@@ -9748,6 +10342,41 @@ export declare const zAgentGetExecutionsResponse: z.ZodObject<{
9748
10342
  thread_id: z.ZodOptional<z.ZodString>;
9749
10343
  turn_id: z.ZodOptional<z.ZodString>;
9750
10344
  }, z.core.$strip>;
10345
+ export declare const zAgentGetFeaturesHeaders: z.ZodObject<{
10346
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10347
+ }, z.core.$strip>;
10348
+ export declare const zAgentGetFeaturesQuery: z.ZodObject<{
10349
+ thread_id: z.ZodOptional<z.ZodUUID>;
10350
+ }, z.core.$strip>;
10351
+ /**
10352
+ * The caller's selections.
10353
+ */
10354
+ export declare const zAgentGetFeaturesResponse: z.ZodObject<{
10355
+ default_selection: z.ZodOptional<z.ZodString>;
10356
+ enabled: z.ZodBoolean;
10357
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
10358
+ id: z.ZodString;
10359
+ label: z.ZodString;
10360
+ }, z.core.$strip>>>;
10361
+ selected: z.ZodOptional<z.ZodObject<{
10362
+ selection: z.ZodString;
10363
+ source: z.ZodOptional<z.ZodString>;
10364
+ }, z.core.$strip>>;
10365
+ selections: z.ZodOptional<z.ZodArray<z.ZodObject<{
10366
+ cost_tier: z.ZodOptional<z.ZodInt>;
10367
+ description: z.ZodOptional<z.ZodString>;
10368
+ group: z.ZodOptional<z.ZodString>;
10369
+ id: z.ZodString;
10370
+ kind: z.ZodOptional<z.ZodString>;
10371
+ label: z.ZodString;
10372
+ model_label: z.ZodOptional<z.ZodString>;
10373
+ send: z.ZodObject<{
10374
+ model_id: z.ZodString;
10375
+ option_id: z.ZodOptional<z.ZodString>;
10376
+ }, z.core.$strip>;
10377
+ show_model: z.ZodOptional<z.ZodBoolean>;
10378
+ }, z.core.$strip>>>;
10379
+ }, z.core.$strip>;
9751
10380
  /**
9752
10381
  * The caller's agent identity.
9753
10382
  */
@@ -9775,6 +10404,18 @@ export declare const zAgentLlmAdmitResponse: z.ZodObject<{
9775
10404
  position: z.ZodOptional<z.ZodInt>;
9776
10405
  reason: z.ZodOptional<z.ZodString>;
9777
10406
  }, z.core.$strip>;
10407
+ /**
10408
+ * Opaque OpenAI Chat Completions request body, passed through to the upstream. Not modeled here — the LLM proxy owns the contract.
10409
+ */
10410
+ export declare const zAgentLlmChatCompletionsBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10411
+ /**
10412
+ * The upstream response, streamed back chunk-by-chunk (Server-Sent Events for a streamed request).
10413
+ */
10414
+ export declare const zAgentLlmChatCompletionsResponse: z.ZodString;
10415
+ /**
10416
+ * Opaque features document, passed through from the LLM proxy. Not modeled here — the proxy owns the contract.
10417
+ */
10418
+ export declare const zAgentLlmFeaturesResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9778
10419
  /**
9779
10420
  * Opaque Anthropic Messages request body, passed through to the upstream. Not modeled here — the agent's LLM proxy owns the contract.
9780
10421
  */
@@ -9783,6 +10424,14 @@ export declare const zAgentLlmMessagesBody: z.ZodRecord<z.ZodString, z.ZodUnknow
9783
10424
  * The upstream LLM response, streamed back as Server-Sent Events (text/event-stream) chunk-by-chunk.
9784
10425
  */
9785
10426
  export declare const zAgentLlmMessagesResponse: z.ZodString;
10427
+ /**
10428
+ * Opaque OpenAI Responses request body, passed through to the upstream. Not modeled here — the LLM proxy owns the contract.
10429
+ */
10430
+ export declare const zAgentLlmResponsesBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10431
+ /**
10432
+ * The upstream response, streamed back chunk-by-chunk (Server-Sent Events for a streamed request).
10433
+ */
10434
+ export declare const zAgentLlmResponsesResponse: z.ZodString;
9786
10435
  /**
9787
10436
  * An OTLP ExportTraceServiceRequest, optionally gzip-encoded (Content-Encoding gzip); at most 4 MiB encoded and decoded, and 4096 spans.
9788
10437
  */
@@ -9791,6 +10440,16 @@ export declare const zAgentLlmTracesBody: z.ZodString;
9791
10440
  * Accepted; the body is an empty OTLP ExportTraceServiceResponse.
9792
10441
  */
9793
10442
  export declare const zAgentLlmTracesResponse: z.ZodString;
10443
+ export declare const zAgentPutModelPreferenceBody: z.ZodObject<{
10444
+ model_id: z.ZodString;
10445
+ option_id: z.ZodOptional<z.ZodString>;
10446
+ }, z.core.$strip>;
10447
+ /**
10448
+ * The committed selection.
10449
+ */
10450
+ export declare const zAgentPutModelPreferenceResponse: z.ZodObject<{
10451
+ selection: z.ZodString;
10452
+ }, z.core.$strip>;
9794
10453
  /**
9795
10454
  * The caller's run mode (the saved choice, or the default).
9796
10455
  */
@@ -9860,6 +10519,18 @@ export declare const zAgentDeleteSkillPath: z.ZodObject<{
9860
10519
  * The pack was deleted.
9861
10520
  */
9862
10521
  export declare const zAgentDeleteSkillResponse: z.ZodVoid;
10522
+ /**
10523
+ * The skills the agent itself ships.
10524
+ */
10525
+ export declare const zAgentListBuiltinSkillsResponse: z.ZodObject<{
10526
+ skills: z.ZodArray<z.ZodObject<{
10527
+ description: z.ZodString;
10528
+ name: z.ZodString;
10529
+ }, z.core.$strip>>;
10530
+ }, z.core.$strip>;
10531
+ export declare const zAgentListThreadsHeaders: z.ZodObject<{
10532
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10533
+ }, z.core.$strip>;
9863
10534
  export declare const zAgentListThreadsQuery: z.ZodObject<{
9864
10535
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
9865
10536
  after: z.ZodOptional<z.ZodString>;
@@ -9894,16 +10565,32 @@ export declare const zAgentListThreadsResponse: z.ZodObject<{
9894
10565
  export declare const zAgentCreateThreadBody: z.ZodObject<{
9895
10566
  workflow_id: z.ZodOptional<z.ZodString>;
9896
10567
  }, z.core.$strip>;
10568
+ export declare const zAgentCreateThreadHeaders: z.ZodObject<{
10569
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10570
+ }, z.core.$strip>;
9897
10571
  /**
9898
10572
  * Thread created
9899
10573
  */
9900
10574
  export declare const zAgentCreateThreadResponse: z.ZodObject<{
9901
10575
  thread_id: z.ZodString;
9902
10576
  }, z.core.$strip>;
10577
+ export declare const zAgentDeleteThreadHeaders: z.ZodObject<{
10578
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10579
+ }, z.core.$strip>;
10580
+ export declare const zAgentDeleteThreadPath: z.ZodObject<{
10581
+ id: z.ZodUUID;
10582
+ }, z.core.$strip>;
10583
+ /**
10584
+ * The thread was deleted.
10585
+ */
10586
+ export declare const zAgentDeleteThreadResponse: z.ZodVoid;
9903
10587
  export declare const zAgentAnswerAskBody: z.ZodObject<{
9904
10588
  other_text: z.ZodOptional<z.ZodString>;
9905
10589
  selected: z.ZodArray<z.ZodString>;
9906
10590
  }, z.core.$strip>;
10591
+ export declare const zAgentAnswerAskHeaders: z.ZodObject<{
10592
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10593
+ }, z.core.$strip>;
9907
10594
  export declare const zAgentAnswerAskPath: z.ZodObject<{
9908
10595
  id: z.ZodString;
9909
10596
  ask_id: z.ZodString;
@@ -9918,6 +10605,9 @@ export declare const zAgentAnswerAskResponse: z.ZodObject<{
9918
10605
  answered: "answered";
9919
10606
  }>;
9920
10607
  }, z.core.$strip>;
10608
+ export declare const zAgentGetMessagesHeaders: z.ZodObject<{
10609
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10610
+ }, z.core.$strip>;
9921
10611
  export declare const zAgentGetMessagesPath: z.ZodObject<{
9922
10612
  id: z.ZodString;
9923
10613
  }, z.core.$strip>;
@@ -9962,6 +10652,7 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
9962
10652
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
9963
10653
  allow_other: z.ZodBoolean;
9964
10654
  ask_id: z.ZodString;
10655
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
9965
10656
  kind: z.ZodEnum<{
9966
10657
  ask_user: "ask_user";
9967
10658
  run_approval: "run_approval";
@@ -9986,6 +10677,7 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
9986
10677
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
9987
10678
  allow_other: z.ZodBoolean;
9988
10679
  ask_id: z.ZodString;
10680
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
9989
10681
  kind: z.ZodEnum<{
9990
10682
  ask_user: "ask_user";
9991
10683
  run_approval: "run_approval";
@@ -10021,6 +10713,7 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
10021
10713
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
10022
10714
  allow_other: z.ZodBoolean;
10023
10715
  ask_id: z.ZodString;
10716
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
10024
10717
  kind: z.ZodEnum<{
10025
10718
  ask_user: "ask_user";
10026
10719
  run_approval: "run_approval";
@@ -10050,6 +10743,7 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
10050
10743
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
10051
10744
  allow_other: z.ZodBoolean;
10052
10745
  ask_id: z.ZodString;
10746
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
10053
10747
  kind: z.ZodEnum<{
10054
10748
  ask_user: "ask_user";
10055
10749
  run_approval: "run_approval";
@@ -10131,6 +10825,9 @@ export declare const zAgentPostMessageBody: z.ZodObject<{
10131
10825
  workflow_id: z.ZodString;
10132
10826
  }, z.core.$strip>>>;
10133
10827
  }, z.core.$strip>;
10828
+ export declare const zAgentPostMessageHeaders: z.ZodObject<{
10829
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10830
+ }, z.core.$strip>;
10134
10831
  export declare const zAgentPostMessagePath: z.ZodObject<{
10135
10832
  id: z.ZodString;
10136
10833
  }, z.core.$strip>;
@@ -10144,7 +10841,6 @@ export declare const zAgentPostMessageResponse: z.ZodObject<{
10144
10841
  v1: "v1";
10145
10842
  }>;
10146
10843
  model_id: z.ZodString;
10147
- profile_revision: z.ZodString;
10148
10844
  requested: z.ZodNullable<z.ZodObject<{
10149
10845
  model_id: z.ZodString;
10150
10846
  option_id: z.ZodOptional<z.ZodString>;
@@ -10159,10 +10855,14 @@ export declare const zAgentPostMessageResponse: z.ZodObject<{
10159
10855
  wire: z.ZodEnum<{
10160
10856
  anthropic_messages: "anthropic_messages";
10161
10857
  openai_chat: "openai_chat";
10858
+ openai_responses: "openai_responses";
10162
10859
  }>;
10163
10860
  }, z.core.$strip>>;
10164
10861
  thread_id: z.ZodString;
10165
10862
  }, z.core.$strip>;
10863
+ export declare const zAgentCancelMessageHeaders: z.ZodObject<{
10864
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10865
+ }, z.core.$strip>;
10166
10866
  export declare const zAgentCancelMessagePath: z.ZodObject<{
10167
10867
  id: z.ZodString;
10168
10868
  message_id: z.ZodString;
@@ -10175,11 +10875,30 @@ export declare const zAgentCancelMessageResponse: z.ZodObject<{
10175
10875
  cancelling: "cancelling";
10176
10876
  }>;
10177
10877
  }, z.core.$strip>;
10878
+ export declare const zAgentPutThreadModelSelectionBody: z.ZodObject<{
10879
+ model_id: z.ZodString;
10880
+ option_id: z.ZodOptional<z.ZodString>;
10881
+ }, z.core.$strip>;
10882
+ export declare const zAgentPutThreadModelSelectionHeaders: z.ZodObject<{
10883
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10884
+ }, z.core.$strip>;
10885
+ export declare const zAgentPutThreadModelSelectionPath: z.ZodObject<{
10886
+ id: z.ZodUUID;
10887
+ }, z.core.$strip>;
10888
+ /**
10889
+ * The committed selection.
10890
+ */
10891
+ export declare const zAgentPutThreadModelSelectionResponse: z.ZodObject<{
10892
+ selection: z.ZodString;
10893
+ }, z.core.$strip>;
10178
10894
  /**
10179
10895
  * Message usage for the authenticated user and workspace.
10180
10896
  */
10181
10897
  export declare const zAgentGetUsageStatusResponse: z.ZodObject<{
10182
10898
  has_used_agent: z.ZodBoolean;
10899
+ scope: z.ZodOptional<z.ZodEnum<{
10900
+ local_installation: "local_installation";
10901
+ }>>;
10183
10902
  }, z.core.$strip>;
10184
10903
  export declare const zListAssetsHeaders: z.ZodObject<{
10185
10904
  'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
@@ -10217,6 +10936,7 @@ export declare const zListAssetsQuery: z.ZodObject<{
10217
10936
  */
10218
10937
  export declare const zListAssetsResponse2: z.ZodObject<{
10219
10938
  assets: z.ZodArray<z.ZodObject<{
10939
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
10220
10940
  created_at: z.ZodISODateTime;
10221
10941
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10222
10942
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10261,6 +10981,7 @@ export declare const zCreateAssetHeaders: z.ZodObject<{
10261
10981
  *
10262
10982
  */
10263
10983
  export declare const zCreateAssetResponse: z.ZodIntersection<z.ZodObject<{
10984
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
10264
10985
  created_at: z.ZodISODateTime;
10265
10986
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10266
10987
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10298,6 +11019,7 @@ export declare const zGetAssetByIdPath: z.ZodObject<{
10298
11019
  * Asset details retrieved successfully
10299
11020
  */
10300
11021
  export declare const zGetAssetByIdResponse: z.ZodObject<{
11022
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
10301
11023
  created_at: z.ZodISODateTime;
10302
11024
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10303
11025
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10397,6 +11119,7 @@ export declare const zCreateAssetDownloadBody: z.ZodObject<{
10397
11119
  user_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10398
11120
  }, z.core.$strip>;
10399
11121
  export declare const zCreateAssetDownloadResponse: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
11122
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
10400
11123
  created_at: z.ZodISODateTime;
10401
11124
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10402
11125
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10442,6 +11165,9 @@ export declare const zCreateAssetExportBody: z.ZodObject<{
10442
11165
  group_by_job_time: "group_by_job_time";
10443
11166
  }>>>;
10444
11167
  }, z.core.$strip>;
11168
+ export declare const zCreateAssetExportHeaders: z.ZodObject<{
11169
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
11170
+ }, z.core.$strip>;
10445
11171
  /**
10446
11172
  * Accepted - Export task created and processing in background
10447
11173
  */
@@ -10482,6 +11208,7 @@ export declare const zCreateAssetFromHashHeaders: z.ZodObject<{
10482
11208
  *
10483
11209
  */
10484
11210
  export declare const zCreateAssetFromHashResponse: z.ZodIntersection<z.ZodObject<{
11211
+ blocked_by_model_policy: z.ZodOptional<z.ZodBoolean>;
10485
11212
  created_at: z.ZodISODateTime;
10486
11213
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10487
11214
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10748,6 +11475,12 @@ export declare const zRedeemDesktopLoginCodeResponse: z.ZodObject<{
10748
11475
  redeemed: "redeemed";
10749
11476
  }>;
10750
11477
  }, z.core.$strip>;
11478
+ /**
11479
+ * Custom token minted
11480
+ */
11481
+ export declare const zCreateDesktopWebSessionResponse: z.ZodObject<{
11482
+ custom_token: z.ZodString;
11483
+ }, z.core.$strip>;
10751
11484
  export declare const zCreateBillingHandoffBody: z.ZodObject<{
10752
11485
  amount_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
10753
11486
  auto_top_up: z.ZodOptional<z.ZodObject<{
@@ -11054,6 +11787,7 @@ export declare const zGetBillingBalanceResponse: z.ZodObject<{
11054
11787
  pending_charges_micros: z.ZodOptional<z.ZodNumber>;
11055
11788
  prepaid_balance_cents: z.ZodOptional<z.ZodNumber>;
11056
11789
  prepaid_balance_micros: z.ZodOptional<z.ZodNumber>;
11790
+ scoped_balance_cents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
11057
11791
  suggested_topup_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
11058
11792
  }, z.core.$strip>;
11059
11793
  /**
@@ -11103,6 +11837,10 @@ export declare const zListBillingBudgetsResponse: z.ZodObject<{
11103
11837
  spent_micro_usd: z.ZodCoercedBigInt<unknown>;
11104
11838
  updated_by: z.ZodString;
11105
11839
  }, z.core.$strip>>;
11840
+ viewer: z.ZodOptional<z.ZodEnum<{
11841
+ owner: "owner";
11842
+ member: "member";
11843
+ }>>;
11106
11844
  }, z.core.$strip>;
11107
11845
  export declare const zCreateBillingBudgetBody: z.ZodObject<{
11108
11846
  alert_percents: z.ZodOptional<z.ZodArray<z.ZodInt>>;
@@ -11267,10 +12005,37 @@ export declare const zGetBillingBudgetHistoryResponse: z.ZodObject<{
11267
12005
  changed_at: z.ZodISODateTime;
11268
12006
  }, z.core.$strip>>;
11269
12007
  }, z.core.$strip>;
12008
+ export declare const zResumeHeldBudgetJobsBody: z.ZodObject<{
12009
+ cursor: z.ZodOptional<z.ZodString>;
12010
+ job_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
12011
+ }, z.core.$strip>;
12012
+ /**
12013
+ * What happened to each selected job.
12014
+ */
12015
+ export declare const zResumeHeldBudgetJobsResponse: z.ZodObject<{
12016
+ more_held: z.ZodBoolean;
12017
+ next_cursor: z.ZodOptional<z.ZodString>;
12018
+ not_resumed: z.ZodArray<z.ZodObject<{
12019
+ budget: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12020
+ denied_reason: z.ZodOptional<z.ZodString>;
12021
+ job_id: z.ZodUUID;
12022
+ reason: z.ZodEnum<{
12023
+ budget_exceeded: "budget_exceeded";
12024
+ failed: "failed";
12025
+ not_found: "not_found";
12026
+ not_held: "not_held";
12027
+ budget_check_unavailable: "budget_check_unavailable";
12028
+ spend_denied: "spend_denied";
12029
+ no_free_slot: "no_free_slot";
12030
+ }>;
12031
+ }, z.core.$strip>>;
12032
+ resumed: z.ZodArray<z.ZodUUID>;
12033
+ }, z.core.$strip>;
11270
12034
  /**
11271
12035
  * Effective billing capabilities
11272
12036
  */
11273
12037
  export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
12038
+ billing_web_topup_hosted_methods: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11274
12039
  auto_top_up_enabled: z.ZodBoolean;
11275
12040
  auto_top_up_member_view: z.ZodOptional<z.ZodObject<{
11276
12041
  cycle_resets_at: z.ZodNullable<z.ZodISODateTime>;
@@ -11350,6 +12115,8 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
11350
12115
  can_view_own_usage: z.ZodOptional<z.ZodBoolean>;
11351
12116
  can_view_pending_invites: z.ZodBoolean;
11352
12117
  can_view_team_usage: z.ZodBoolean;
12118
+ can_view_unallocated_usage: z.ZodBoolean;
12119
+ can_view_workspace_usage: z.ZodBoolean;
11353
12120
  }, z.core.$strip>;
11354
12121
  denied_reason_params: z.ZodOptional<z.ZodObject<{
11355
12122
  can_delete_workspace: z.ZodOptional<z.ZodObject<{
@@ -11575,6 +12342,10 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
11575
12342
  not_workspace_owner: "not_workspace_owner";
11576
12343
  usage_attribution_unavailable: "usage_attribution_unavailable";
11577
12344
  }>>;
12345
+ can_view_workspace_usage: z.ZodOptional<z.ZodEnum<{
12346
+ not_a_member: "not_a_member";
12347
+ not_workspace_owner: "not_workspace_owner";
12348
+ }>>;
11578
12349
  }, z.core.$strip>>;
11579
12350
  ending_notice_starts_at: z.ZodOptional<z.ZodISODateTime>;
11580
12351
  expires_at: z.ZodISODateTime;
@@ -11790,6 +12561,7 @@ export declare const zGetBillingOpStatusResponse: z.ZodObject<{
11790
12561
  completed_at: z.ZodOptional<z.ZodISODateTime>;
11791
12562
  credits_added: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
11792
12563
  decline_reason: z.ZodOptional<z.ZodEnum<{
12564
+ generic: "generic";
11793
12565
  card_declined: "card_declined";
11794
12566
  insufficient_funds: "insufficient_funds";
11795
12567
  expired_card: "expired_card";
@@ -11798,7 +12570,6 @@ export declare const zGetBillingOpStatusResponse: z.ZodObject<{
11798
12570
  authentication_failed: "authentication_failed";
11799
12571
  processing_error: "processing_error";
11800
12572
  payment_not_completed: "payment_not_completed";
11801
- generic: "generic";
11802
12573
  }>>;
11803
12574
  error_message: z.ZodOptional<z.ZodString>;
11804
12575
  id: z.ZodString;
@@ -12192,6 +12963,17 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
12192
12963
  duration_change: "duration_change";
12193
12964
  }>;
12194
12965
  }, z.core.$strip>;
12966
+ /**
12967
+ * The promotion running right now, or null
12968
+ */
12969
+ export declare const zGetBillingPromotionResponse: z.ZodObject<{
12970
+ promotion: z.ZodNullable<z.ZodObject<{
12971
+ auto_apply: z.ZodBoolean;
12972
+ ends_at: z.ZodNullable<z.ZodISODateTime>;
12973
+ percent_off: z.ZodNullable<z.ZodNumber>;
12974
+ promotion_code: z.ZodString;
12975
+ }, z.core.$strip>>;
12976
+ }, z.core.$strip>;
12195
12977
  export declare const zAcceptRetentionOfferBody: z.ZodObject<{
12196
12978
  session_id: z.ZodUUID;
12197
12979
  }, z.core.$strip>;
@@ -12597,23 +13379,26 @@ export declare const zCreateTopupQuoteBody: z.ZodObject<{
12597
13379
  */
12598
13380
  export declare const zCreateTopupQuoteResponse: z.ZodObject<{
12599
13381
  amount_cents: z.ZodCoercedBigInt<unknown>;
13382
+ balance_after_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
12600
13383
  credits: z.ZodCoercedBigInt<unknown>;
12601
13384
  expires_at: z.ZodISODateTime;
12602
13385
  payment_method_configuration_id: z.ZodOptional<z.ZodString>;
13386
+ runs_paused_after: z.ZodOptional<z.ZodBoolean>;
12603
13387
  }, z.core.$strip>;
12604
13388
  export declare const zGetBillingUsageTimeSeriesQuery: z.ZodObject<{
12605
13389
  group_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
13390
+ source: "source";
12606
13391
  model: "model";
12607
13392
  endpoint: "endpoint";
12608
13393
  product: "product";
12609
13394
  product_line: "product_line";
12610
13395
  person: "person";
12611
- source: "source";
12612
13396
  }>>>;
12613
13397
  filter_product_line: z.ZodOptional<z.ZodString>;
12614
13398
  filter_model: z.ZodOptional<z.ZodString>;
12615
13399
  filter_person: z.ZodOptional<z.ZodString>;
12616
13400
  filter_source: z.ZodOptional<z.ZodString>;
13401
+ project: z.ZodOptional<z.ZodString>;
12617
13402
  granularity: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12618
13403
  hour: "hour";
12619
13404
  day: "day";
@@ -12638,6 +13423,7 @@ export declare const zGetBillingUsageTimeSeriesResponse: z.ZodObject<{
12638
13423
  buckets: z.ZodArray<z.ZodObject<{
12639
13424
  cost_micros: z.ZodNumber;
12640
13425
  group_key: z.ZodString;
13426
+ pending: z.ZodOptional<z.ZodBoolean>;
12641
13427
  period_end: z.ZodISODateTime;
12642
13428
  period_start: z.ZodISODateTime;
12643
13429
  }, z.core.$strip>>;
@@ -12648,12 +13434,12 @@ export declare const zGetBillingUsageTimeSeriesResponse: z.ZodObject<{
12648
13434
  month: "month";
12649
13435
  }>;
12650
13436
  group_by: z.ZodEnum<{
13437
+ source: "source";
12651
13438
  model: "model";
12652
13439
  endpoint: "endpoint";
12653
13440
  product: "product";
12654
13441
  product_line: "product_line";
12655
13442
  person: "person";
12656
- source: "source";
12657
13443
  }>;
12658
13444
  group_labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
12659
13445
  cost_kind: z.ZodOptional<z.ZodEnum<{
@@ -12685,6 +13471,8 @@ export declare const zGetBillingUsageTimeSeriesResponse: z.ZodObject<{
12685
13471
  reason: z.ZodEnum<{
12686
13472
  no_attribution_source: "no_attribution_source";
12687
13473
  filter_needs_ledger: "filter_needs_ledger";
13474
+ too_many_deployments: "too_many_deployments";
13475
+ deployments_unavailable: "deployments_unavailable";
12688
13476
  }>;
12689
13477
  }, z.core.$strip>>;
12690
13478
  served_from: z.ZodOptional<z.ZodEnum<{
@@ -12755,6 +13543,9 @@ export declare const zGetDeploySummaryResponse: z.ZodObject<{
12755
13543
  * Embedding names
12756
13544
  */
12757
13545
  export declare const zGetEmbeddingsResponse: z.ZodArray<z.ZodString>;
13546
+ export declare const zGetModelFoldersHeaders: z.ZodObject<{
13547
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
13548
+ }, z.core.$strip>;
12758
13549
  /**
12759
13550
  * Success - List of model folders
12760
13551
  */
@@ -12762,6 +13553,9 @@ export declare const zGetModelFoldersResponse: z.ZodArray<z.ZodObject<{
12762
13553
  folders: z.ZodArray<z.ZodString>;
12763
13554
  name: z.ZodString;
12764
13555
  }, z.core.$strip>>;
13556
+ export declare const zGetModelsInFolderHeaders: z.ZodObject<{
13557
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
13558
+ }, z.core.$strip>;
12765
13559
  export declare const zGetModelsInFolderPath: z.ZodObject<{
12766
13560
  folder: z.ZodString;
12767
13561
  }, z.core.$strip>;
@@ -12780,6 +13574,9 @@ export declare const zGetModelPreviewPath: z.ZodObject<{
12780
13574
  export declare const zGetNodeByIdPath: z.ZodObject<{
12781
13575
  id: z.ZodString;
12782
13576
  }, z.core.$strip>;
13577
+ export declare const zGetExtensionsHeaders: z.ZodObject<{
13578
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
13579
+ }, z.core.$strip>;
12783
13580
  /**
12784
13581
  * URL paths (relative to web root) of available extension JS files
12785
13582
  */
@@ -12804,14 +13601,21 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
12804
13601
  "above-input": "above-input";
12805
13602
  "inside-input": "inside-input";
12806
13603
  }>>>;
12807
- 'agent-starter-prompt-set': z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12808
- test: "test";
12809
- control: "control";
12810
- }>>>;
12811
13604
  agent_gratis_local_arm: z.ZodOptional<z.ZodEnum<{
12812
13605
  control: "control";
12813
13606
  treatment: "treatment";
12814
13607
  }>>;
13608
+ agent_proactive_greeting_assignment: z.ZodOptional<z.ZodObject<{
13609
+ group_key: z.ZodString;
13610
+ user_id: z.ZodString;
13611
+ variant: z.ZodEnum<{
13612
+ control: "control";
13613
+ generic: "generic";
13614
+ "canvas-prefill": "canvas-prefill";
13615
+ "canvas-only": "canvas-only";
13616
+ }>;
13617
+ workspace_id: z.ZodString;
13618
+ }, z.core.$strip>>;
12815
13619
  billing_web_url: z.ZodOptional<z.ZodString>;
12816
13620
  can_run_partner_nodes: z.ZodOptional<z.ZodBoolean>;
12817
13621
  deploy_to_cloud: z.ZodOptional<z.ZodBoolean>;
@@ -12831,6 +13635,11 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
12831
13635
  open_on_cloud_model_upload_enabled: z.ZodOptional<z.ZodBoolean>;
12832
13636
  open_on_cloud_use_local_agent_enabled: z.ZodOptional<z.ZodBoolean>;
12833
13637
  private_workflow_links_enabled: z.ZodOptional<z.ZodBoolean>;
13638
+ 'prompt-editor-surface': z.ZodOptional<z.ZodEnum<{
13639
+ control: "control";
13640
+ panel: "panel";
13641
+ }>>;
13642
+ server_boot_id: z.ZodOptional<z.ZodString>;
12834
13643
  sso_enabled: z.ZodOptional<z.ZodBoolean>;
12835
13644
  stripe_publishable_key: z.ZodOptional<z.ZodString>;
12836
13645
  supports_preview_metadata: z.ZodOptional<z.ZodBoolean>;
@@ -12937,6 +13746,9 @@ export declare const zManageHistoryBody: z.ZodObject<{
12937
13746
  clear: z.ZodOptional<z.ZodBoolean>;
12938
13747
  delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
12939
13748
  }, z.core.$strip>;
13749
+ export declare const zManageHistoryHeaders: z.ZodObject<{
13750
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
13751
+ }, z.core.$strip>;
12940
13752
  export declare const zGetLegacyHistoryByIdPath: z.ZodObject<{
12941
13753
  prompt_id: z.ZodString;
12942
13754
  }, z.core.$strip>;
@@ -13408,6 +14220,9 @@ export declare const zCreateInputUploadUrlResponse: z.ZodObject<{
13408
14220
  expires_in: z.ZodInt;
13409
14221
  upload_path: z.ZodString;
13410
14222
  }, z.core.$strip>;
14223
+ export declare const zInterruptJobHeaders: z.ZodObject<{
14224
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14225
+ }, z.core.$strip>;
13411
14226
  export declare const zAcceptWorkspaceInvitePath: z.ZodObject<{
13412
14227
  token: z.ZodString;
13413
14228
  }, z.core.$strip>;
@@ -13439,9 +14254,26 @@ export declare const zGetJobStatusResponse: z.ZodObject<{
13439
14254
  status: z.ZodEnum<{
13440
14255
  cancelled: "cancelled";
13441
14256
  error: "error";
14257
+ success: "success";
13442
14258
  completed: "completed";
13443
14259
  pending: "pending";
14260
+ cancel_requested: "cancel_requested";
13444
14261
  in_progress: "in_progress";
14262
+ held_budget: "held_budget";
14263
+ submitted: "submitted";
14264
+ preprocessing: "preprocessing";
14265
+ queued_limited: "queued_limited";
14266
+ queued_waiting: "queued_waiting";
14267
+ allocated: "allocated";
14268
+ preparing: "preparing";
14269
+ pending_execution: "pending_execution";
14270
+ executing: "executing";
14271
+ executed: "executed";
14272
+ cancel_pending: "cancel_pending";
14273
+ erroring: "erroring";
14274
+ cancelling_preparing: "cancelling_preparing";
14275
+ non_retryable_error: "non_retryable_error";
14276
+ lost: "lost";
13445
14277
  waiting_to_dispatch: "waiting_to_dispatch";
13446
14278
  }>;
13447
14279
  updated_at: z.ZodISODateTime;
@@ -13476,6 +14308,22 @@ export declare const zListJobsQuery: z.ZodObject<{
13476
14308
  */
13477
14309
  export declare const zListJobsResponse: z.ZodObject<{
13478
14310
  jobs: z.ZodArray<z.ZodObject<{
14311
+ budget_hold: z.ZodOptional<z.ZodObject<{
14312
+ budget: z.ZodOptional<z.ZodObject<{
14313
+ id: z.ZodOptional<z.ZodString>;
14314
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14315
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14316
+ mode: z.ZodOptional<z.ZodString>;
14317
+ resets_at: z.ZodISODateTime;
14318
+ scope_id: z.ZodOptional<z.ZodString>;
14319
+ scope_kind: z.ZodString;
14320
+ set_by: z.ZodString;
14321
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14322
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14323
+ }, z.core.$strip>>;
14324
+ can_resume: z.ZodBoolean;
14325
+ reason: z.ZodString;
14326
+ }, z.core.$strip>>;
13479
14327
  create_time: z.ZodCoercedBigInt<unknown>;
13480
14328
  deployment: z.ZodOptional<z.ZodObject<{
13481
14329
  build_name: z.ZodOptional<z.ZodString>;
@@ -13486,10 +14334,25 @@ export declare const zListJobsResponse: z.ZodObject<{
13486
14334
  }, z.core.$strip>>;
13487
14335
  execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
13488
14336
  execution_error: z.ZodOptional<z.ZodObject<{
14337
+ catalog_id: z.ZodOptional<z.ZodString>;
13489
14338
  current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13490
14339
  current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13491
14340
  exception_message: z.ZodString;
13492
14341
  exception_type: z.ZodString;
14342
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14343
+ class_type: z.ZodString;
14344
+ dependent_outputs: z.ZodArray<z.ZodString>;
14345
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14346
+ details: z.ZodOptional<z.ZodString>;
14347
+ extra_info: z.ZodOptional<z.ZodObject<{
14348
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14349
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14350
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14351
+ }, z.core.$strip>>;
14352
+ message: z.ZodOptional<z.ZodString>;
14353
+ type: z.ZodOptional<z.ZodString>;
14354
+ }, z.core.$strip>]>>;
14355
+ }, z.core.$strip>>>;
13493
14356
  node_id: z.ZodString;
13494
14357
  node_type: z.ZodString;
13495
14358
  traceback: z.ZodArray<z.ZodString>;
@@ -13510,6 +14373,7 @@ export declare const zListJobsResponse: z.ZodObject<{
13510
14373
  failed: "failed";
13511
14374
  pending: "pending";
13512
14375
  in_progress: "in_progress";
14376
+ held_budget: "held_budget";
13513
14377
  }>;
13514
14378
  workflow_id: z.ZodOptional<z.ZodString>;
13515
14379
  }, z.core.$strip>>;
@@ -13541,6 +14405,22 @@ export declare const zGetJobDetailQuery: z.ZodObject<{
13541
14405
  * Success - Job details retrieved
13542
14406
  */
13543
14407
  export declare const zGetJobDetailResponse: z.ZodObject<{
14408
+ budget_hold: z.ZodOptional<z.ZodObject<{
14409
+ budget: z.ZodOptional<z.ZodObject<{
14410
+ id: z.ZodOptional<z.ZodString>;
14411
+ limit_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14412
+ limit_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14413
+ mode: z.ZodOptional<z.ZodString>;
14414
+ resets_at: z.ZodISODateTime;
14415
+ scope_id: z.ZodOptional<z.ZodString>;
14416
+ scope_kind: z.ZodString;
14417
+ set_by: z.ZodString;
14418
+ spent_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14419
+ spent_micro_usd: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14420
+ }, z.core.$strip>>;
14421
+ can_resume: z.ZodBoolean;
14422
+ reason: z.ZodString;
14423
+ }, z.core.$strip>>;
13544
14424
  create_time: z.ZodCoercedBigInt<unknown>;
13545
14425
  deployment: z.ZodOptional<z.ZodObject<{
13546
14426
  build_name: z.ZodOptional<z.ZodString>;
@@ -13551,10 +14431,25 @@ export declare const zGetJobDetailResponse: z.ZodObject<{
13551
14431
  }, z.core.$strip>>;
13552
14432
  execution_end_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
13553
14433
  execution_error: z.ZodOptional<z.ZodObject<{
14434
+ catalog_id: z.ZodOptional<z.ZodString>;
13554
14435
  current_inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13555
14436
  current_outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13556
14437
  exception_message: z.ZodString;
13557
14438
  exception_type: z.ZodString;
14439
+ node_errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14440
+ class_type: z.ZodString;
14441
+ dependent_outputs: z.ZodArray<z.ZodString>;
14442
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14443
+ details: z.ZodOptional<z.ZodString>;
14444
+ extra_info: z.ZodOptional<z.ZodObject<{
14445
+ input_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14446
+ received_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14447
+ received_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
14448
+ }, z.core.$strip>>;
14449
+ message: z.ZodOptional<z.ZodString>;
14450
+ type: z.ZodOptional<z.ZodString>;
14451
+ }, z.core.$strip>]>>;
14452
+ }, z.core.$strip>>>;
13558
14453
  node_id: z.ZodString;
13559
14454
  node_type: z.ZodString;
13560
14455
  traceback: z.ZodArray<z.ZodString>;
@@ -13588,6 +14483,7 @@ export declare const zGetJobDetailResponse: z.ZodObject<{
13588
14483
  failed: "failed";
13589
14484
  pending: "pending";
13590
14485
  in_progress: "in_progress";
14486
+ held_budget: "held_budget";
13591
14487
  }>;
13592
14488
  update_time: z.ZodCoercedBigInt<unknown>;
13593
14489
  user_id: z.ZodOptional<z.ZodString>;
@@ -13653,6 +14549,9 @@ export declare const zGetLegacyModelsByFolderPath: z.ZodObject<{
13653
14549
  * Success - Node replacement mappings
13654
14550
  */
13655
14551
  export declare const zGetNodeReplacementsResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14552
+ export declare const zGetNodeInfoHeaders: z.ZodObject<{
14553
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14554
+ }, z.core.$strip>;
13656
14555
  export declare const zGetNodeInfoQuery: z.ZodObject<{
13657
14556
  include_user_models: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13658
14557
  }, z.core.$strip>;
@@ -14096,6 +14995,7 @@ export declare const zExecutePromptBody: z.ZodObject<{
14096
14995
  }, z.core.$strip>;
14097
14996
  export declare const zExecutePromptHeaders: z.ZodObject<{
14098
14997
  'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14998
+ 'Comfy-Loaded-Release': z.ZodOptional<z.ZodString>;
14099
14999
  }, z.core.$strip>;
14100
15000
  /**
14101
15001
  * Success - Prompt accepted
@@ -14118,6 +15018,19 @@ export declare const zGetProvidersResponse: z.ZodObject<{
14118
15018
  provider_id: z.ZodString;
14119
15019
  }, z.core.$strip>>;
14120
15020
  }, z.core.$strip>;
15021
+ /**
15022
+ * The public model catalog
15023
+ */
15024
+ export declare const zListPublicModelsResponse: z.ZodObject<{
15025
+ models: z.ZodArray<z.ZodObject<{
15026
+ file_path: z.ZodOptional<z.ZodString>;
15027
+ id: z.ZodUUID;
15028
+ name: z.ZodString;
15029
+ size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
15030
+ source_url: z.ZodOptional<z.ZodString>;
15031
+ tags: z.ZodArray<z.ZodString>;
15032
+ }, z.core.$strip>>;
15033
+ }, z.core.$strip>;
14121
15034
  /**
14122
15035
  * Success
14123
15036
  */
@@ -14129,6 +15042,9 @@ export declare const zManageQueueBody: z.ZodObject<{
14129
15042
  clear: z.ZodOptional<z.ZodBoolean>;
14130
15043
  delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
14131
15044
  }, z.core.$strip>;
15045
+ export declare const zManageQueueHeaders: z.ZodObject<{
15046
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
15047
+ }, z.core.$strip>;
14132
15048
  /**
14133
15049
  * Success
14134
15050
  */
@@ -14136,6 +15052,9 @@ export declare const zManageQueueResponse: z.ZodObject<{
14136
15052
  cleared: z.ZodOptional<z.ZodBoolean>;
14137
15053
  deleted: z.ZodOptional<z.ZodArray<z.ZodString>>;
14138
15054
  }, z.core.$strip>;
15055
+ export declare const zGetReleaseUnsupportedPacksHeaders: z.ZodObject<{
15056
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
15057
+ }, z.core.$strip>;
14139
15058
  /**
14140
15059
  * The packs the Release built without, in the order the build declared them
14141
15060
  */
@@ -15277,8 +16196,8 @@ export declare const zPublishCccDraftResponse: z.ZodObject<{
15277
16196
  }, z.core.$strip>;
15278
16197
  export declare const zGetCccStagingQuery: z.ZodObject<{
15279
16198
  representation: z.ZodOptional<z.ZodEnum<{
15280
- page: "page";
15281
16199
  selection: "selection";
16200
+ page: "page";
15282
16201
  detail: "detail";
15283
16202
  }>>;
15284
16203
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
@@ -15407,8 +16326,8 @@ export declare const zGetCccStagingResponse: z.ZodObject<{
15407
16326
  summary: z.ZodString;
15408
16327
  }, z.core.$strip>>>;
15409
16328
  representation: z.ZodOptional<z.ZodEnum<{
15410
- page: "page";
15411
16329
  selection: "selection";
16330
+ page: "page";
15412
16331
  detail: "detail";
15413
16332
  }>>;
15414
16333
  selection_digest: z.ZodOptional<z.ZodString>;
@@ -16068,6 +16987,44 @@ export declare const zGetCccTypeSchemaResponse: z.ZodObject<{
16068
16987
  media: "media";
16069
16988
  }>;
16070
16989
  }, z.core.$strip>;
16990
+ export declare const zListCccStaffAppsQuery: z.ZodObject<{
16991
+ limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
16992
+ cursor: z.ZodOptional<z.ZodString>;
16993
+ }, z.core.$strip>;
16994
+ /**
16995
+ * One page of app rows and the optional opaque next_cursor
16996
+ */
16997
+ export declare const zListCccStaffAppsResponse: z.ZodObject<{
16998
+ has_more: z.ZodBoolean;
16999
+ items: z.ZodArray<z.ZodObject<{
17000
+ description: z.ZodString;
17001
+ draft_page: z.ZodOptional<z.ZodString>;
17002
+ enabled: z.ZodBoolean;
17003
+ hub_page: z.ZodOptional<z.ZodString>;
17004
+ on_desktop: z.ZodBoolean;
17005
+ on_hub: z.ZodBoolean;
17006
+ picture: z.ZodOptional<z.ZodString>;
17007
+ slug: z.ZodString;
17008
+ status: z.ZodEnum<{
17009
+ not_live: "not_live";
17010
+ unpublished: "unpublished";
17011
+ hidden: "hidden";
17012
+ scheduled: "scheduled";
17013
+ live: "live";
17014
+ }>;
17015
+ title: z.ZodString;
17016
+ uid: z.ZodUUID;
17017
+ }, z.core.$strip>>;
17018
+ next_cursor: z.ZodOptional<z.ZodString>;
17019
+ }, z.core.$strip>;
17020
+ export declare const zGetCccStaffAppPicturePath: z.ZodObject<{
17021
+ uid: z.ZodUUID;
17022
+ version: z.ZodUUID;
17023
+ }, z.core.$strip>;
17024
+ /**
17025
+ * The picture bytes; private no-store
17026
+ */
17027
+ export declare const zGetCccStaffAppPictureResponse: z.ZodString;
16071
17028
  /**
16072
17029
  * Private state; never cacheable
16073
17030
  */
@@ -16854,6 +17811,9 @@ export declare const zClearWorkspaceDeploymentResponse: z.ZodVoid;
16854
17811
  export declare const zPickWorkspaceDeploymentBody: z.ZodObject<{
16855
17812
  deployment_id: z.ZodString;
16856
17813
  }, z.core.$strip>;
17814
+ export declare const zPickWorkspaceDeploymentHeaders: z.ZodObject<{
17815
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
17816
+ }, z.core.$strip>;
16857
17817
  export declare const zPickWorkspaceDeploymentPath: z.ZodObject<{
16858
17818
  id: z.ZodString;
16859
17819
  }, z.core.$strip>;
@@ -16861,6 +17821,9 @@ export declare const zPickWorkspaceDeploymentPath: z.ZodObject<{
16861
17821
  * Picked; the cookie on this response carries it
16862
17822
  */
16863
17823
  export declare const zPickWorkspaceDeploymentResponse: z.ZodVoid;
17824
+ export declare const zGetWorkspaceDeploymentCpuServerHeaders: z.ZodObject<{
17825
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
17826
+ }, z.core.$strip>;
16864
17827
  export declare const zGetWorkspaceDeploymentCpuServerPath: z.ZodObject<{
16865
17828
  id: z.ZodString;
16866
17829
  }, z.core.$strip>;
@@ -16917,6 +17880,21 @@ export declare const zListWorkspaceDeploymentsResponse: z.ZodObject<{
16917
17880
  }>>;
16918
17881
  picked_deployment_id: z.ZodOptional<z.ZodString>;
16919
17882
  }, z.core.$strip>;
17883
+ export declare const zAddWorkspaceDeploymentBuildModelBody: z.ZodObject<{
17884
+ blobId: z.ZodString;
17885
+ filename: z.ZodString;
17886
+ type: z.ZodString;
17887
+ }, z.core.$strip>;
17888
+ export declare const zAddWorkspaceDeploymentBuildModelPath: z.ZodObject<{
17889
+ id: z.ZodString;
17890
+ deployment_id: z.ZodString;
17891
+ }, z.core.$strip>;
17892
+ /**
17893
+ * The new version was cut; poll it by its releaseId
17894
+ */
17895
+ export declare const zAddWorkspaceDeploymentBuildModelResponse: z.ZodObject<{
17896
+ releaseId: z.ZodString;
17897
+ }, z.core.$strip>;
16920
17898
  export declare const zCreateWorkspaceDeploymentModelUploadBody: z.ZodObject<{
16921
17899
  blake3: z.ZodOptional<z.ZodString>;
16922
17900
  filename: z.ZodString;
@@ -16982,7 +17960,22 @@ export declare const zListWorkspaceDeploymentModelsPath: z.ZodObject<{
16982
17960
  /**
16983
17961
  * comfy-deploy's model list, unchanged
16984
17962
  */
16985
- export declare const zListWorkspaceDeploymentModelsResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
17963
+ export declare const zListWorkspaceDeploymentModelsResponse: z.ZodObject<{
17964
+ addEnabled: z.ZodBoolean;
17965
+ models: z.ZodArray<z.ZodObject<{
17966
+ failure: z.ZodOptional<z.ZodString>;
17967
+ filename: z.ZodString;
17968
+ id: z.ZodString;
17969
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
17970
+ status: z.ZodEnum<{
17971
+ failed: "failed";
17972
+ ready: "ready";
17973
+ adding: "adding";
17974
+ removing: "removing";
17975
+ }>;
17976
+ type: z.ZodString;
17977
+ }, z.core.$strip>>;
17978
+ }, z.core.$strip>;
16986
17979
  export declare const zAddWorkspaceDeploymentModelBody: z.ZodObject<{
16987
17980
  blobId: z.ZodString;
16988
17981
  filename: z.ZodOptional<z.ZodString>;
@@ -16995,7 +17988,19 @@ export declare const zAddWorkspaceDeploymentModelPath: z.ZodObject<{
16995
17988
  /**
16996
17989
  * comfy-deploy's new entry, unchanged
16997
17990
  */
16998
- export declare const zAddWorkspaceDeploymentModelResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
17991
+ export declare const zAddWorkspaceDeploymentModelResponse: z.ZodObject<{
17992
+ failure: z.ZodOptional<z.ZodString>;
17993
+ filename: z.ZodString;
17994
+ id: z.ZodString;
17995
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
17996
+ status: z.ZodEnum<{
17997
+ failed: "failed";
17998
+ ready: "ready";
17999
+ adding: "adding";
18000
+ removing: "removing";
18001
+ }>;
18002
+ type: z.ZodString;
18003
+ }, z.core.$strip>;
16999
18004
  export declare const zRemoveWorkspaceDeploymentModelPath: z.ZodObject<{
17000
18005
  id: z.ZodString;
17001
18006
  deployment_id: z.ZodString;