@comfyorg/ingest-types 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zod.gen.d.ts CHANGED
@@ -11,6 +11,19 @@ export declare const zSubscriptionTier: z.ZodEnum<{
11
11
  TEAM: "TEAM";
12
12
  ENTERPRISE: "ENTERPRISE";
13
13
  }>;
14
+ /**
15
+ * Workspace-switcher display fact, not spend authorization or plan-action eligibility. Uses billing subscription-state precedence: ending, scheduled changes and activating display as active; renewal payment failures confirmed by the provider display as payment_due. Unknown or unavailable facts omit the entire summary; clients must not infer no_plan from omission.
16
+ */
17
+ export declare const zWorkspacePlanSummary: z.ZodObject<{
18
+ plan_name: z.ZodNullable<z.ZodString>;
19
+ status: z.ZodEnum<{
20
+ active: "active";
21
+ no_plan: "no_plan";
22
+ paused: "paused";
23
+ payment_due: "payment_due";
24
+ ended: "ended";
25
+ }>;
26
+ }, z.core.$strip>;
14
27
  /**
15
28
  * Workspace entity annotated with the requesting user's role.
16
29
  */
@@ -19,6 +32,16 @@ export declare const zWorkspaceWithRole: z.ZodObject<{
19
32
  id: z.ZodString;
20
33
  joined_at: z.ZodISODateTime;
21
34
  name: z.ZodString;
35
+ plan_summary: z.ZodOptional<z.ZodObject<{
36
+ plan_name: z.ZodNullable<z.ZodString>;
37
+ status: z.ZodEnum<{
38
+ active: "active";
39
+ no_plan: "no_plan";
40
+ paused: "paused";
41
+ payment_due: "payment_due";
42
+ ended: "ended";
43
+ }>;
44
+ }, z.core.$strip>>;
22
45
  role: z.ZodEnum<{
23
46
  owner: "owner";
24
47
  member: "member";
@@ -62,12 +85,23 @@ export declare const zWorkspaceMemberCapabilities: z.ZodObject<{
62
85
  export declare const zWorkspaceDeployment: z.ZodObject<{
63
86
  build_id: z.ZodOptional<z.ZodString>;
64
87
  build_name: z.ZodOptional<z.ZodString>;
88
+ can_start: z.ZodBoolean;
65
89
  created_at: z.ZodISODateTime;
66
90
  deployment_id: z.ZodString;
67
91
  deployment_name: z.ZodOptional<z.ZodString>;
68
92
  release_id: z.ZodString;
69
93
  release_version: z.ZodOptional<z.ZodInt>;
70
- status: z.ZodString;
94
+ status: z.ZodEnum<{
95
+ queued: "queued";
96
+ provisioning: "provisioning";
97
+ starting: "starting";
98
+ ready: "ready";
99
+ unhealthy: "unhealthy";
100
+ stopping: "stopping";
101
+ stop_failed: "stop_failed";
102
+ stopped: "stopped";
103
+ failed: "failed";
104
+ }>;
71
105
  }, z.core.$strip>;
72
106
  /**
73
107
  * The deployments a browser in this workspace may pick, newest first by created_at (always present). A row without a Build name keeps its place in that order.
@@ -80,12 +114,23 @@ export declare const zWorkspaceDeploymentList: z.ZodObject<{
80
114
  items: z.ZodArray<z.ZodObject<{
81
115
  build_id: z.ZodOptional<z.ZodString>;
82
116
  build_name: z.ZodOptional<z.ZodString>;
117
+ can_start: z.ZodBoolean;
83
118
  created_at: z.ZodISODateTime;
84
119
  deployment_id: z.ZodString;
85
120
  deployment_name: z.ZodOptional<z.ZodString>;
86
121
  release_id: z.ZodString;
87
122
  release_version: z.ZodOptional<z.ZodInt>;
88
- status: z.ZodString;
123
+ status: z.ZodEnum<{
124
+ queued: "queued";
125
+ provisioning: "provisioning";
126
+ starting: "starting";
127
+ ready: "ready";
128
+ unhealthy: "unhealthy";
129
+ stopping: "stopping";
130
+ stop_failed: "stop_failed";
131
+ stopped: "stopped";
132
+ failed: "failed";
133
+ }>;
89
134
  }, z.core.$strip>>;
90
135
  pick_source: z.ZodOptional<z.ZodEnum<{
91
136
  browser: "browser";
@@ -93,12 +138,49 @@ export declare const zWorkspaceDeploymentList: z.ZodObject<{
93
138
  }>>;
94
139
  picked_deployment_id: z.ZodOptional<z.ZodString>;
95
140
  }, z.core.$strip>;
141
+ /**
142
+ * Which step the CPU server of the deployment this browser's editor runs on is on.
143
+ */
144
+ export declare const zWorkspaceDeploymentCpuServer: z.ZodObject<{
145
+ cpu_server: z.ZodEnum<{
146
+ none: "none";
147
+ creating: "creating";
148
+ building: "building";
149
+ created: "created";
150
+ }>;
151
+ deployment_id: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strip>;
96
153
  /**
97
154
  * Present only for can_delete_workspace denied with plan_ending when all live subscription rows carry a known future cancel_at. This is guidance, not a promise that deletion will succeed at that time; writes recheck.
98
155
  */
99
156
  export declare const zWorkspaceDeletionDenialParams: z.ZodObject<{
100
157
  effective_at: z.ZodOptional<z.ZodISODateTime>;
101
158
  }, z.core.$strip>;
159
+ /**
160
+ * Reasons creation is unavailable. Returned beside can_create_workspace false or on a creation refusal; first applicable reason wins.
161
+ */
162
+ export declare const zWorkspaceCreationDenials: z.ZodObject<{
163
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
164
+ organization_managed: "organization_managed";
165
+ owned_workspace_limit: "owned_workspace_limit";
166
+ }>>;
167
+ }, z.core.$strip>;
168
+ /**
169
+ * Creation refused because the account has reached its live owner membership threshold for creation.
170
+ */
171
+ export declare const zWorkspaceCreationLimitError: z.ZodObject<{
172
+ code: z.ZodEnum<{
173
+ OWNED_WORKSPACE_LIMIT: "OWNED_WORKSPACE_LIMIT";
174
+ }>;
175
+ denied_reasons: z.ZodObject<{
176
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
177
+ organization_managed: "organization_managed";
178
+ owned_workspace_limit: "owned_workspace_limit";
179
+ }>>;
180
+ }, z.core.$strip>;
181
+ max_owned_workspaces: z.ZodInt;
182
+ message: z.ZodString;
183
+ }, z.core.$strip>;
102
184
  /**
103
185
  * Metadata for a workspace-scoped API key (secret is never returned).
104
186
  */
@@ -398,6 +480,7 @@ export declare const zUsageGroupLabel: z.ZodObject<{
398
480
  key: z.ZodString;
399
481
  key_name: z.ZodOptional<z.ZodString>;
400
482
  key_prefix: z.ZodOptional<z.ZodString>;
483
+ key_revoked: z.ZodOptional<z.ZodBoolean>;
401
484
  kind: z.ZodOptional<z.ZodEnum<{
402
485
  api_key: "api_key";
403
486
  session: "session";
@@ -406,6 +489,8 @@ export declare const zUsageGroupLabel: z.ZodObject<{
406
489
  owner_display_name: z.ZodOptional<z.ZodString>;
407
490
  owner_email: z.ZodOptional<z.ZodString>;
408
491
  owner_user_id: z.ZodOptional<z.ZodString>;
492
+ provider: z.ZodOptional<z.ZodString>;
493
+ provider_display_name: z.ZodOptional<z.ZodString>;
409
494
  }, z.core.$strip>;
410
495
  export declare const zUsageBucket: z.ZodObject<{
411
496
  cost_micros: z.ZodNumber;
@@ -461,6 +546,7 @@ export declare const zUsageTimeSeries: z.ZodObject<{
461
546
  key: z.ZodString;
462
547
  key_name: z.ZodOptional<z.ZodString>;
463
548
  key_prefix: z.ZodOptional<z.ZodString>;
549
+ key_revoked: z.ZodOptional<z.ZodBoolean>;
464
550
  kind: z.ZodOptional<z.ZodEnum<{
465
551
  api_key: "api_key";
466
552
  session: "session";
@@ -469,6 +555,8 @@ export declare const zUsageTimeSeries: z.ZodObject<{
469
555
  owner_display_name: z.ZodOptional<z.ZodString>;
470
556
  owner_email: z.ZodOptional<z.ZodString>;
471
557
  owner_user_id: z.ZodOptional<z.ZodString>;
558
+ provider: z.ZodOptional<z.ZodString>;
559
+ provider_display_name: z.ZodOptional<z.ZodString>;
472
560
  }, z.core.$strip>>>;
473
561
  groups: z.ZodArray<z.ZodString>;
474
562
  not_available: z.ZodOptional<z.ZodObject<{
@@ -479,6 +567,7 @@ export declare const zUsageTimeSeries: z.ZodObject<{
479
567
  }, z.core.$strip>>;
480
568
  served_from: z.ZodOptional<z.ZodEnum<{
481
569
  ledger: "ledger";
570
+ invoice: "invoice";
482
571
  }>>;
483
572
  starting_on: z.ZodISODateTime;
484
573
  summary: z.ZodObject<{
@@ -550,6 +639,17 @@ export declare const zTopupQuoteResponse: z.ZodObject<{
550
639
  amount_cents: z.ZodCoercedBigInt<unknown>;
551
640
  credits: z.ZodCoercedBigInt<unknown>;
552
641
  expires_at: z.ZodISODateTime;
642
+ payment_method_configuration_id: z.ZodOptional<z.ZodString>;
643
+ }, z.core.$strip>;
644
+ /**
645
+ * Requested credit purchase from this operation's validated stored interactive top-up intent. Visible only to callers authorized for payment details. Not the amount charged or proof of payment. Omitted for historical, non-interactive, invalid or non-top-up operations.
646
+ *
647
+ */
648
+ export declare const zTopUpPurchaseAmount: z.ZodObject<{
649
+ amount_cents: z.ZodCoercedBigInt<unknown>;
650
+ currency: z.ZodEnum<{
651
+ usd: "usd";
652
+ }>;
553
653
  }, z.core.$strip>;
554
654
  /**
555
655
  * One persisted tool call attached to an assistant message's content.tool_calls (services/agent/internal/persist.ToolCallSummary), so a chat reload can render the tool-call history a turn produced. Display data only — raw arguments/results are never projected here. The optional produced_asset field is a strict exception containing only the server-recorded id/hash from a successful asset-producing media call. Only terminal rows (status ok/error) are ever surfaced; a row a dead turn left in pending/running has no wire-status mapping and is dropped rather than shown as a perpetual-progress chip.
@@ -597,22 +697,22 @@ export declare const zPlanActionDeniedReason: z.ZodEnum<{
597
697
  * Action for this exact plan and billing interval. Render as received. Subscribe starts or resumes checkout, change changes the plan now, reactivate removes a scheduled cancellation, downgrade schedules a reduction at the billing boundary, and none disables the choice. This is presentation guidance, not authorization; writes recheck policy.
598
698
  */
599
699
  export declare const zPlanAction: z.ZodEnum<{
700
+ none: "none";
600
701
  subscribe: "subscribe";
601
702
  change: "change";
602
703
  reactivate: "reactivate";
603
704
  downgrade: "downgrade";
604
- none: "none";
605
705
  }>;
606
706
  /**
607
707
  * Pre/post-discount price for a team credit stop, in cents.
608
708
  */
609
709
  export declare const zTeamCreditStopPrice: z.ZodObject<{
610
710
  action: z.ZodEnum<{
711
+ none: "none";
611
712
  subscribe: "subscribe";
612
713
  change: "change";
613
714
  reactivate: "reactivate";
614
715
  downgrade: "downgrade";
615
- none: "none";
616
716
  }>;
617
717
  denied_reason: z.ZodOptional<z.ZodEnum<{
618
718
  not_a_member: "not_a_member";
@@ -632,6 +732,7 @@ export declare const zTeamCreditStopPrice: z.ZodObject<{
632
732
  effective_at: z.ZodOptional<z.ZodISODateTime>;
633
733
  }, z.core.$strip>>;
634
734
  list_price_cents: z.ZodCoercedBigInt<unknown>;
735
+ period_charge_cents: z.ZodCoercedBigInt<unknown>;
635
736
  price_cents: z.ZodCoercedBigInt<unknown>;
636
737
  }, z.core.$strip>;
637
738
  /**
@@ -646,11 +747,11 @@ export declare const zTeamCreditStop: z.ZodObject<{
646
747
  id: z.ZodString;
647
748
  monthly: z.ZodObject<{
648
749
  action: z.ZodEnum<{
750
+ none: "none";
649
751
  subscribe: "subscribe";
650
752
  change: "change";
651
753
  reactivate: "reactivate";
652
754
  downgrade: "downgrade";
653
- none: "none";
654
755
  }>;
655
756
  denied_reason: z.ZodOptional<z.ZodEnum<{
656
757
  not_a_member: "not_a_member";
@@ -670,15 +771,16 @@ export declare const zTeamCreditStop: z.ZodObject<{
670
771
  effective_at: z.ZodOptional<z.ZodISODateTime>;
671
772
  }, z.core.$strip>>;
672
773
  list_price_cents: z.ZodCoercedBigInt<unknown>;
774
+ period_charge_cents: z.ZodCoercedBigInt<unknown>;
673
775
  price_cents: z.ZodCoercedBigInt<unknown>;
674
776
  }, z.core.$strip>;
675
777
  yearly: z.ZodObject<{
676
778
  action: z.ZodEnum<{
779
+ none: "none";
677
780
  subscribe: "subscribe";
678
781
  change: "change";
679
782
  reactivate: "reactivate";
680
783
  downgrade: "downgrade";
681
- none: "none";
682
784
  }>;
683
785
  denied_reason: z.ZodOptional<z.ZodEnum<{
684
786
  not_a_member: "not_a_member";
@@ -698,6 +800,7 @@ export declare const zTeamCreditStop: z.ZodObject<{
698
800
  effective_at: z.ZodOptional<z.ZodISODateTime>;
699
801
  }, z.core.$strip>>;
700
802
  list_price_cents: z.ZodCoercedBigInt<unknown>;
803
+ period_charge_cents: z.ZodCoercedBigInt<unknown>;
701
804
  price_cents: z.ZodCoercedBigInt<unknown>;
702
805
  }, z.core.$strip>;
703
806
  }, z.core.$strip>;
@@ -711,11 +814,11 @@ export declare const zTeamCreditStops: z.ZodObject<{
711
814
  id: z.ZodString;
712
815
  monthly: z.ZodObject<{
713
816
  action: z.ZodEnum<{
817
+ none: "none";
714
818
  subscribe: "subscribe";
715
819
  change: "change";
716
820
  reactivate: "reactivate";
717
821
  downgrade: "downgrade";
718
- none: "none";
719
822
  }>;
720
823
  denied_reason: z.ZodOptional<z.ZodEnum<{
721
824
  not_a_member: "not_a_member";
@@ -735,15 +838,16 @@ export declare const zTeamCreditStops: z.ZodObject<{
735
838
  effective_at: z.ZodOptional<z.ZodISODateTime>;
736
839
  }, z.core.$strip>>;
737
840
  list_price_cents: z.ZodCoercedBigInt<unknown>;
841
+ period_charge_cents: z.ZodCoercedBigInt<unknown>;
738
842
  price_cents: z.ZodCoercedBigInt<unknown>;
739
843
  }, z.core.$strip>;
740
844
  yearly: z.ZodObject<{
741
845
  action: z.ZodEnum<{
846
+ none: "none";
742
847
  subscribe: "subscribe";
743
848
  change: "change";
744
849
  reactivate: "reactivate";
745
850
  downgrade: "downgrade";
746
- none: "none";
747
851
  }>;
748
852
  denied_reason: z.ZodOptional<z.ZodEnum<{
749
853
  not_a_member: "not_a_member";
@@ -763,6 +867,7 @@ export declare const zTeamCreditStops: z.ZodObject<{
763
867
  effective_at: z.ZodOptional<z.ZodISODateTime>;
764
868
  }, z.core.$strip>>;
765
869
  list_price_cents: z.ZodCoercedBigInt<unknown>;
870
+ period_charge_cents: z.ZodCoercedBigInt<unknown>;
766
871
  price_cents: z.ZodCoercedBigInt<unknown>;
767
872
  }, z.core.$strip>;
768
873
  }, z.core.$strip>>;
@@ -789,10 +894,10 @@ export declare const zTaskEntry: z.ZodObject<{
789
894
  id: z.ZodUUID;
790
895
  started_at: z.ZodOptional<z.ZodISODateTime>;
791
896
  status: z.ZodEnum<{
897
+ failed: "failed";
792
898
  created: "created";
793
899
  running: "running";
794
900
  completed: "completed";
795
- failed: "failed";
796
901
  cancelled: "cancelled";
797
902
  }>;
798
903
  task_name: z.ZodString;
@@ -814,10 +919,10 @@ export declare const zTasksListResponse: z.ZodObject<{
814
919
  id: z.ZodUUID;
815
920
  started_at: z.ZodOptional<z.ZodISODateTime>;
816
921
  status: z.ZodEnum<{
922
+ failed: "failed";
817
923
  created: "created";
818
924
  running: "running";
819
925
  completed: "completed";
820
- failed: "failed";
821
926
  cancelled: "cancelled";
822
927
  }>;
823
928
  task_name: z.ZodString;
@@ -836,10 +941,10 @@ export declare const zTaskResponse: z.ZodObject<{
836
941
  result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
837
942
  started_at: z.ZodOptional<z.ZodISODateTime>;
838
943
  status: z.ZodEnum<{
944
+ failed: "failed";
839
945
  created: "created";
840
946
  running: "running";
841
947
  completed: "completed";
842
- failed: "failed";
843
948
  cancelled: "cancelled";
844
949
  }>;
845
950
  task_name: z.ZodString;
@@ -891,13 +996,13 @@ export declare const zSystemStatsResponse: z.ZodObject<{
891
996
  * Server-owned subscription presentation state. A future scheduled plan change remains active, with its target in scheduled_change. Paused means a recoverable renewal collection failure; past_due requires direct subscription payment evidence, never an unattributed workspace or top-up failure. Activating means the initial subscription is awaiting payment. This is not an authorization or workflow admission decision; use capabilities.
892
997
  */
893
998
  export declare const zSubscriptionState: z.ZodEnum<{
894
- never_subscribed: "never_subscribed";
895
999
  active: "active";
1000
+ paused: "paused";
1001
+ ended: "ended";
1002
+ never_subscribed: "never_subscribed";
896
1003
  cancel_scheduled: "cancel_scheduled";
897
1004
  past_due: "past_due";
898
- paused: "paused";
899
1005
  activating: "activating";
900
- ended: "ended";
901
1006
  }>;
902
1007
  /**
903
1008
  * Billing period (uppercase to match comfy-api)
@@ -989,6 +1094,13 @@ export declare const zStoredAgentConsentSetting: z.ZodIntersection<z.ZodObject<{
989
1094
  }, z.core.$strip>, z.ZodObject<{
990
1095
  updated_at: z.ZodISODateTime;
991
1096
  }, z.core.$strip>>;
1097
+ /**
1098
+ * The deployment a start was asked for, and its status after the ask.
1099
+ */
1100
+ export declare const zStartWorkspaceDeploymentResult: z.ZodObject<{
1101
+ deployment_id: z.ZodString;
1102
+ status: z.ZodString;
1103
+ }, z.core.$strip>;
992
1104
  /**
993
1105
  * First rejected op in an abort-remainder batch.
994
1106
  */
@@ -1009,6 +1121,7 @@ export declare const zDocOpsResultData: z.ZodObject<{
1009
1121
  }, z.core.$strip>>;
1010
1122
  message: z.ZodOptional<z.ZodString>;
1011
1123
  ok: z.ZodBoolean;
1124
+ op_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1012
1125
  seq: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
1013
1126
  skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
1014
1127
  v: z.ZodInt;
@@ -1029,6 +1142,7 @@ export declare const zDocOpsResultFrame: z.ZodObject<{
1029
1142
  }, z.core.$strip>>;
1030
1143
  message: z.ZodOptional<z.ZodString>;
1031
1144
  ok: z.ZodBoolean;
1145
+ op_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1032
1146
  seq: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
1033
1147
  skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
1034
1148
  v: z.ZodInt;
@@ -1167,6 +1281,7 @@ export declare const zServerDocFrame: z.ZodUnion<readonly [z.ZodObject<{
1167
1281
  }, z.core.$strip>>;
1168
1282
  message: z.ZodOptional<z.ZodString>;
1169
1283
  ok: z.ZodBoolean;
1284
+ op_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1170
1285
  seq: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
1171
1286
  skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
1172
1287
  v: z.ZodInt;
@@ -1273,7 +1388,14 @@ export declare const zScheduledPlanChange: z.ZodObject<{
1273
1388
  }, z.core.$strip>>;
1274
1389
  }, z.core.$strip>;
1275
1390
  export declare const zSavedPaymentMethod: z.ZodObject<{
1391
+ bank_name: z.ZodOptional<z.ZodString>;
1276
1392
  brand: z.ZodOptional<z.ZodString>;
1393
+ created_at: z.ZodOptional<z.ZodISODateTime>;
1394
+ email: z.ZodOptional<z.ZodString>;
1395
+ exp_month: z.ZodOptional<z.ZodInt>;
1396
+ exp_year: z.ZodOptional<z.ZodInt>;
1397
+ expired: z.ZodOptional<z.ZodBoolean>;
1398
+ expiring_soon: z.ZodOptional<z.ZodBoolean>;
1277
1399
  id: z.ZodString;
1278
1400
  is_default: z.ZodBoolean;
1279
1401
  last4: z.ZodOptional<z.ZodString>;
@@ -1379,6 +1501,27 @@ export declare const zRenewalInvoice: z.ZodObject<{
1379
1501
  hosted_invoice_url: z.ZodString;
1380
1502
  next_payment_attempt: z.ZodOptional<z.ZodISODateTime>;
1381
1503
  }, z.core.$strip>;
1504
+ /**
1505
+ * One declared pack that failed to import on the Release's build, as comfy-builder names it.
1506
+ */
1507
+ export declare const zReleaseUnsupportedPack: z.ZodObject<{
1508
+ cause: z.ZodString;
1509
+ folder: z.ZodString;
1510
+ registry_id: z.ZodString;
1511
+ repository: z.ZodString;
1512
+ }, z.core.$strip>;
1513
+ /**
1514
+ * The declared packs that failed to import on the build of the editor's Release, in the order the build declared them, and which Release that is.
1515
+ */
1516
+ export declare const zReleaseUnsupportedPacks: z.ZodObject<{
1517
+ packs: z.ZodArray<z.ZodObject<{
1518
+ cause: z.ZodString;
1519
+ folder: z.ZodString;
1520
+ registry_id: z.ZodString;
1521
+ repository: z.ZodString;
1522
+ }, z.core.$strip>>;
1523
+ release_id: z.ZodNullable<z.ZodString>;
1524
+ }, z.core.$strip>;
1382
1525
  /**
1383
1526
  * Response after a queue management action (delete or clear).
1384
1527
  */
@@ -1516,6 +1659,13 @@ export declare const zPromptInfo: z.ZodObject<{
1516
1659
  * Error response for ComfyUI prompt execution.
1517
1660
  */
1518
1661
  export declare const zPromptErrorResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1662
+ /**
1663
+ * Identity of the workspace-bound terminal subscription, not a checkout target or permission to resubscribe. Historical identity is independent of current plan availability and pricing.
1664
+ */
1665
+ export declare const zPreviousPlan: z.ZodObject<{
1666
+ plan_slug: z.ZodString;
1667
+ team_credit_stop_id: z.ZodOptional<z.ZodString>;
1668
+ }, z.core.$strip>;
1519
1669
  /**
1520
1670
  * Summary of seat costs based on current workspace members
1521
1671
  */
@@ -1677,6 +1827,28 @@ export declare const zPreviewSubscribeRequest: z.ZodObject<{
1677
1827
  promotion_code: z.ZodOptional<z.ZodString>;
1678
1828
  team_credit_stop_id: z.ZodOptional<z.ZodString>;
1679
1829
  }, z.core.$strip>;
1830
+ export declare const zPlanFeatureItem: z.ZodObject<{
1831
+ key: z.ZodEnum<{
1832
+ shortRuntime: "shortRuntime";
1833
+ longRuntime: "longRuntime";
1834
+ addCredits: "addCredits";
1835
+ importModels: "importModels";
1836
+ sharedCreditPool: "sharedCreditPool";
1837
+ membersUpTo: "membersUpTo";
1838
+ perMemberCreditLimits: "perMemberCreditLimits";
1839
+ memberSpendAuditing: "memberSpendAuditing";
1840
+ sharedWorkflowsAssets: "sharedWorkflowsAssets";
1841
+ projects: "projects";
1842
+ }>;
1843
+ params: z.ZodOptional<z.ZodObject<{
1844
+ count: z.ZodCoercedBigInt<unknown>;
1845
+ }, z.core.$strip>>;
1846
+ status: z.ZodEnum<{
1847
+ available: "available";
1848
+ coming_soon: "coming_soon";
1849
+ }>;
1850
+ text: z.ZodString;
1851
+ }, z.core.$strip>;
1680
1852
  /**
1681
1853
  * Why a plan is unavailable. Present exactly when available is false and
1682
1854
  * absent when it is true. Only the first reason that applies is reported,
@@ -1720,11 +1892,11 @@ export declare const zPlanAvailability: z.ZodObject<{
1720
1892
  */
1721
1893
  export declare const zPlan: z.ZodObject<{
1722
1894
  action: z.ZodEnum<{
1895
+ none: "none";
1723
1896
  subscribe: "subscribe";
1724
1897
  change: "change";
1725
1898
  reactivate: "reactivate";
1726
1899
  downgrade: "downgrade";
1727
- none: "none";
1728
1900
  }>;
1729
1901
  availability: z.ZodObject<{
1730
1902
  available: z.ZodBoolean;
@@ -1762,7 +1934,31 @@ export declare const zPlan: z.ZodObject<{
1762
1934
  MONTHLY: "MONTHLY";
1763
1935
  ANNUAL: "ANNUAL";
1764
1936
  }>;
1937
+ feature_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1938
+ key: z.ZodEnum<{
1939
+ shortRuntime: "shortRuntime";
1940
+ longRuntime: "longRuntime";
1941
+ addCredits: "addCredits";
1942
+ importModels: "importModels";
1943
+ sharedCreditPool: "sharedCreditPool";
1944
+ membersUpTo: "membersUpTo";
1945
+ perMemberCreditLimits: "perMemberCreditLimits";
1946
+ memberSpendAuditing: "memberSpendAuditing";
1947
+ sharedWorkflowsAssets: "sharedWorkflowsAssets";
1948
+ projects: "projects";
1949
+ }>;
1950
+ params: z.ZodOptional<z.ZodObject<{
1951
+ count: z.ZodCoercedBigInt<unknown>;
1952
+ }, z.core.$strip>>;
1953
+ status: z.ZodEnum<{
1954
+ available: "available";
1955
+ coming_soon: "coming_soon";
1956
+ }>;
1957
+ text: z.ZodString;
1958
+ }, z.core.$strip>>>;
1959
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
1765
1960
  max_seats: z.ZodCoercedBigInt<unknown>;
1961
+ popular: z.ZodOptional<z.ZodBoolean>;
1766
1962
  price_cents: z.ZodCoercedBigInt<unknown>;
1767
1963
  seat_summary: z.ZodObject<{
1768
1964
  seat_count: z.ZodInt;
@@ -1786,6 +1982,21 @@ export declare const zPlan: z.ZodObject<{
1786
1982
  export declare const zPickWorkspaceDeploymentRequest: z.ZodObject<{
1787
1983
  deployment_id: z.ZodString;
1788
1984
  }, z.core.$strip>;
1985
+ /**
1986
+ * Configured credit allowance of the current plan, not remaining balance, an invoice or proof of live provider grants. Amount includes credits and period; none is a proven configured zero. Native-empty or incoherent Enterprise configuration remains unknown, never none. Missing data and unresolved, unsupported, ended or activating plans remain unknown. Unknown or missing means unavailable; clients must not render zero. Does not change eligibility.
1987
+ */
1988
+ export declare const zPeriodCreditGrant: z.ZodObject<{
1989
+ credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
1990
+ period: z.ZodOptional<z.ZodEnum<{
1991
+ MONTHLY: "MONTHLY";
1992
+ ANNUAL: "ANNUAL";
1993
+ }>>;
1994
+ state: z.ZodEnum<{
1995
+ none: "none";
1996
+ amount: "amount";
1997
+ unknown: "unknown";
1998
+ }>;
1999
+ }, z.core.$strip>;
1789
2000
  /**
1790
2001
  * An outstanding workspace invitation that has not yet been accepted.
1791
2002
  */
@@ -1895,6 +2106,12 @@ export declare const zOAuthRegisterError: z.ZodObject<{
1895
2106
  */
1896
2107
  export declare const zErrorResponse: z.ZodObject<{
1897
2108
  code: z.ZodString;
2109
+ denied_reasons: z.ZodOptional<z.ZodObject<{
2110
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
2111
+ organization_managed: "organization_managed";
2112
+ owned_workspace_limit: "owned_workspace_limit";
2113
+ }>>;
2114
+ }, z.core.$strip>>;
1898
2115
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1899
2116
  message: z.ZodString;
1900
2117
  organization_id: z.ZodOptional<z.ZodString>;
@@ -1911,6 +2128,12 @@ export declare const zOAuthRegisterBadRequestResponse: z.ZodUnion<readonly [z.Zo
1911
2128
  error_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1912
2129
  }, z.core.$strip>, z.ZodObject<{
1913
2130
  code: z.ZodString;
2131
+ denied_reasons: z.ZodOptional<z.ZodObject<{
2132
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
2133
+ organization_managed: "organization_managed";
2134
+ owned_workspace_limit: "owned_workspace_limit";
2135
+ }>>;
2136
+ }, z.core.$strip>>;
1914
2137
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1915
2138
  message: z.ZodString;
1916
2139
  organization_id: z.ZodOptional<z.ZodString>;
@@ -2009,6 +2232,19 @@ export declare const zNodeInfo: z.ZodObject<{
2009
2232
  output_tooltips: z.ZodOptional<z.ZodArray<z.ZodString>>;
2010
2233
  python_module: z.ZodOptional<z.ZodString>;
2011
2234
  }, z.core.$strip>;
2235
+ /**
2236
+ * Where and how the browser sends a model file's bytes (POST /api/assets/uploads).
2237
+ */
2238
+ export declare const zModelUploadStarted: z.ZodObject<{
2239
+ expires_at: z.ZodISODateTime;
2240
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
2241
+ max_size_bytes: z.ZodCoercedBigInt<unknown>;
2242
+ method: z.ZodEnum<{
2243
+ PUT: "PUT";
2244
+ }>;
2245
+ upload_id: z.ZodUUID;
2246
+ upload_url: z.ZodString;
2247
+ }, z.core.$strip>;
2012
2248
  /**
2013
2249
  * Represents a folder containing models
2014
2250
  */
@@ -2023,6 +2259,41 @@ export declare const zModelFile: z.ZodObject<{
2023
2259
  name: z.ZodString;
2024
2260
  pathIndex: z.ZodInt;
2025
2261
  }, z.core.$strip>;
2262
+ /**
2263
+ * The `data` of a model_download WebSocket event: the latest state of one model file a Cloud job on a deployment downloads before ComfyUI starts it. Sent by the deployment's worker (services/comfy-deploy/containerruntime worker.py, _ModelNews) only when the job asked for live progress, for each file the job fetches and never for a file the release ships, all before the job's execution_start. A failed file ends the job: no other source is tried and the job is not retried, so its execution_error (or execution_interrupted, when a cancel was in flight) follows. New fields may be added; a client ignores the ones it does not read.
2264
+ */
2265
+ export declare const zModelDownloadData: z.ZodObject<{
2266
+ bytes_downloaded: z.ZodInt;
2267
+ bytes_total: z.ZodNullable<z.ZodInt>;
2268
+ count: z.ZodInt;
2269
+ dir: z.ZodString;
2270
+ index: z.ZodInt;
2271
+ name: z.ZodString;
2272
+ progress: z.ZodNullable<z.ZodNumber>;
2273
+ prompt_id: z.ZodString;
2274
+ status: z.ZodString;
2275
+ workflow_id: z.ZodOptional<z.ZodString>;
2276
+ }, z.core.$strip>;
2277
+ /**
2278
+ * Server-to-client model_download frame on /ws. A Cloud job's model file download moved.
2279
+ */
2280
+ export declare const zModelDownloadFrame: z.ZodObject<{
2281
+ data: z.ZodObject<{
2282
+ bytes_downloaded: z.ZodInt;
2283
+ bytes_total: z.ZodNullable<z.ZodInt>;
2284
+ count: z.ZodInt;
2285
+ dir: z.ZodString;
2286
+ index: z.ZodInt;
2287
+ name: z.ZodString;
2288
+ progress: z.ZodNullable<z.ZodNumber>;
2289
+ prompt_id: z.ZodString;
2290
+ status: z.ZodString;
2291
+ workflow_id: z.ZodOptional<z.ZodString>;
2292
+ }, z.core.$strip>;
2293
+ type: z.ZodEnum<{
2294
+ model_download: "model_download";
2295
+ }>;
2296
+ }, z.core.$strip>;
2026
2297
  /**
2027
2298
  * Workspace member with profile and role information.
2028
2299
  */
@@ -2054,6 +2325,12 @@ export declare const zMediaQueryError: z.ZodObject<{
2054
2325
  */
2055
2326
  export declare const zMediaBadRequestError: z.ZodUnion<readonly [z.ZodObject<{
2056
2327
  code: z.ZodString;
2328
+ denied_reasons: z.ZodOptional<z.ZodObject<{
2329
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
2330
+ organization_managed: "organization_managed";
2331
+ owned_workspace_limit: "owned_workspace_limit";
2332
+ }>>;
2333
+ }, z.core.$strip>>;
2057
2334
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2058
2335
  message: z.ZodString;
2059
2336
  organization_id: z.ZodOptional<z.ZodString>;
@@ -2066,11 +2343,28 @@ export declare const zMediaBadRequestError: z.ZodUnion<readonly [z.ZodObject<{
2066
2343
  export declare const zListWorkspacesResponse: z.ZodObject<{
2067
2344
  can_create_workspace: z.ZodBoolean;
2068
2345
  default_workspace_id: z.ZodOptional<z.ZodString>;
2346
+ denied_reasons: z.ZodOptional<z.ZodObject<{
2347
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
2348
+ organization_managed: "organization_managed";
2349
+ owned_workspace_limit: "owned_workspace_limit";
2350
+ }>>;
2351
+ }, z.core.$strip>>;
2352
+ max_owned_workspaces: z.ZodInt;
2069
2353
  workspaces: z.ZodArray<z.ZodObject<{
2070
2354
  created_at: z.ZodISODateTime;
2071
2355
  id: z.ZodString;
2072
2356
  joined_at: z.ZodISODateTime;
2073
2357
  name: z.ZodString;
2358
+ plan_summary: z.ZodOptional<z.ZodObject<{
2359
+ plan_name: z.ZodNullable<z.ZodString>;
2360
+ status: z.ZodEnum<{
2361
+ active: "active";
2362
+ no_plan: "no_plan";
2363
+ paused: "paused";
2364
+ payment_due: "payment_due";
2365
+ ended: "ended";
2366
+ }>;
2367
+ }, z.core.$strip>>;
2074
2368
  role: z.ZodEnum<{
2075
2369
  owner: "owner";
2076
2370
  member: "member";
@@ -2299,8 +2593,8 @@ export declare const zJobEntry: z.ZodObject<{
2299
2593
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2300
2594
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
2301
2595
  status: z.ZodEnum<{
2302
- completed: "completed";
2303
2596
  failed: "failed";
2597
+ completed: "completed";
2304
2598
  cancelled: "cancelled";
2305
2599
  pending: "pending";
2306
2600
  in_progress: "in_progress";
@@ -2340,8 +2634,8 @@ export declare const zJobsListResponse: z.ZodObject<{
2340
2634
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2341
2635
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
2342
2636
  status: z.ZodEnum<{
2343
- completed: "completed";
2344
2637
  failed: "failed";
2638
+ completed: "completed";
2345
2639
  cancelled: "cancelled";
2346
2640
  pending: "pending";
2347
2641
  in_progress: "in_progress";
@@ -2406,6 +2700,18 @@ export declare const zJobOutputAsset: z.ZodObject<{
2406
2700
  preview_url: z.ZodOptional<z.ZodString>;
2407
2701
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
2408
2702
  }, z.core.$strip>;
2703
+ /**
2704
+ * Where one executed node ran and where its output is shown, as ComfyUI
2705
+ * records it in the history `meta`. Live `executed` messages carry the
2706
+ * same `display_node`.
2707
+ *
2708
+ */
2709
+ export declare const zJobExecutionMetaEntry: z.ZodObject<{
2710
+ display_node: z.ZodOptional<z.ZodString>;
2711
+ node_id: z.ZodOptional<z.ZodString>;
2712
+ parent_node: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2713
+ real_node_id: z.ZodOptional<z.ZodString>;
2714
+ }, z.core.$strip>;
2409
2715
  /**
2410
2716
  * Full job details including workflow and outputs
2411
2717
  */
@@ -2428,7 +2734,12 @@ export declare const zJobDetailResponse: z.ZodObject<{
2428
2734
  node_type: z.ZodString;
2429
2735
  traceback: z.ZodArray<z.ZodString>;
2430
2736
  }, z.core.$strip>>;
2431
- execution_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2737
+ execution_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2738
+ display_node: z.ZodOptional<z.ZodString>;
2739
+ node_id: z.ZodOptional<z.ZodString>;
2740
+ parent_node: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2741
+ real_node_id: z.ZodOptional<z.ZodString>;
2742
+ }, z.core.$strip>>>;
2432
2743
  execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
2433
2744
  execution_status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2434
2745
  executor: z.ZodOptional<z.ZodEnum<{
@@ -2446,8 +2757,8 @@ export declare const zJobDetailResponse: z.ZodObject<{
2446
2757
  capacity: "capacity";
2447
2758
  }>>;
2448
2759
  status: z.ZodEnum<{
2449
- completed: "completed";
2450
2760
  failed: "failed";
2761
+ completed: "completed";
2451
2762
  cancelled: "cancelled";
2452
2763
  pending: "pending";
2453
2764
  in_progress: "in_progress";
@@ -2490,6 +2801,19 @@ export declare const zJobAssetsResponse: z.ZodObject<{
2490
2801
  total: z.ZodInt;
2491
2802
  }, z.core.$strip>;
2492
2803
  }, z.core.$strip>;
2804
+ /**
2805
+ * Pay once with exactly one new-card confirmation token or explicitly selected attached card. Keep the exact request and key on retry; never fall back to the on-file route.
2806
+ */
2807
+ export declare const zInteractiveTopupRequest: z.ZodObject<{
2808
+ amount_cents: z.ZodCoercedBigInt<unknown>;
2809
+ checkout_attempt_id: z.ZodOptional<z.ZodString>;
2810
+ confirmation_token: z.ZodOptional<z.ZodString>;
2811
+ idempotency_key: z.ZodString;
2812
+ make_default: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2813
+ return_url: z.ZodOptional<z.ZodString>;
2814
+ save_payment_method: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2815
+ saved_payment_method_id: z.ZodOptional<z.ZodString>;
2816
+ }, z.core.$strip>;
2493
2817
  /**
2494
2818
  * Request body for minting an input-image, input-audio or input-video upload grant.
2495
2819
  */
@@ -3049,6 +3373,12 @@ export declare const zAuthTypeNotAllowedError: z.ZodObject<{
3049
3373
  */
3050
3374
  export declare const zForbiddenError: z.ZodUnion<readonly [z.ZodObject<{
3051
3375
  code: z.ZodString;
3376
+ denied_reasons: z.ZodOptional<z.ZodObject<{
3377
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
3378
+ organization_managed: "organization_managed";
3379
+ owned_workspace_limit: "owned_workspace_limit";
3380
+ }>>;
3381
+ }, z.core.$strip>>;
3052
3382
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3053
3383
  message: z.ZodString;
3054
3384
  organization_id: z.ZodOptional<z.ZodString>;
@@ -3096,6 +3426,7 @@ export declare const zExchangeTokenResponse: z.ZodObject<{
3096
3426
  member: "member";
3097
3427
  }>;
3098
3428
  token: z.ZodString;
3429
+ user_id: z.ZodString;
3099
3430
  workspace: z.ZodObject<{
3100
3431
  id: z.ZodString;
3101
3432
  name: z.ZodString;
@@ -3288,14 +3619,14 @@ export declare const zCreateTopupResponse: z.ZodObject<{
3288
3619
  amount_cents: z.ZodCoercedBigInt<unknown>;
3289
3620
  billing_op_id: z.ZodString;
3290
3621
  status: z.ZodEnum<{
3291
- completed: "completed";
3292
3622
  failed: "failed";
3623
+ completed: "completed";
3293
3624
  pending: "pending";
3294
3625
  }>;
3295
3626
  topup_id: z.ZodString;
3296
3627
  }, z.core.$strip>;
3297
3628
  /**
3298
- * Request body for purchasing a one-time credit top-up.
3629
+ * Legacy on-file top-up. Explicit payment authority and save/default fields require the dedicated interactive route and are rejected here, including null or false values.
3299
3630
  */
3300
3631
  export declare const zCreateTopupRequest: z.ZodObject<{
3301
3632
  amount_cents: z.ZodCoercedBigInt<unknown>;
@@ -3359,6 +3690,50 @@ export declare const zCreateHubProfileRequest: z.ZodObject<{
3359
3690
  website_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3360
3691
  workspace_id: z.ZodString;
3361
3692
  }, z.core.$strip>;
3693
+ export declare const zContentCatalogRecord: z.ZodObject<{
3694
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3695
+ deleted: z.ZodBoolean;
3696
+ edit_version: z.ZodString;
3697
+ enabled: z.ZodBoolean;
3698
+ kind: z.ZodEnum<{
3699
+ MODEL: "MODEL";
3700
+ WORKFLOW: "WORKFLOW";
3701
+ APP: "APP";
3702
+ TEMPLATE_SET: "TEMPLATE_SET";
3703
+ }>;
3704
+ revision: z.ZodCoercedBigInt<unknown>;
3705
+ slug: z.ZodString;
3706
+ uid: z.ZodString;
3707
+ visibility: z.ZodEnum<{
3708
+ PUBLIC: "PUBLIC";
3709
+ STAFF: "STAFF";
3710
+ }>;
3711
+ visible_from: z.ZodOptional<z.ZodISODateTime>;
3712
+ }, z.core.$strip>;
3713
+ export declare const zContentCatalogProjection: z.ZodObject<{
3714
+ generation: z.ZodCoercedBigInt<unknown>;
3715
+ items: z.ZodArray<z.ZodObject<{
3716
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3717
+ deleted: z.ZodBoolean;
3718
+ edit_version: z.ZodString;
3719
+ enabled: z.ZodBoolean;
3720
+ kind: z.ZodEnum<{
3721
+ MODEL: "MODEL";
3722
+ WORKFLOW: "WORKFLOW";
3723
+ APP: "APP";
3724
+ TEMPLATE_SET: "TEMPLATE_SET";
3725
+ }>;
3726
+ revision: z.ZodCoercedBigInt<unknown>;
3727
+ slug: z.ZodString;
3728
+ uid: z.ZodString;
3729
+ visibility: z.ZodEnum<{
3730
+ PUBLIC: "PUBLIC";
3731
+ STAFF: "STAFF";
3732
+ }>;
3733
+ visible_from: z.ZodOptional<z.ZodISODateTime>;
3734
+ }, z.core.$strip>>;
3735
+ revision_id: z.ZodCoercedBigInt<unknown>;
3736
+ }, z.core.$strip>;
3362
3737
  /**
3363
3738
  * Credentials the Churnkey embed requires to launch the cancel flow.
3364
3739
  * `auth_hash` is hex-encoded HMAC-SHA256 of `customer_id` signed with the
@@ -3398,63 +3773,541 @@ export declare const zCancelSubscriptionAcceptedResponse: z.ZodObject<{
3398
3773
  pending: "pending";
3399
3774
  }>;
3400
3775
  }, z.core.$strip>;
3401
- /**
3402
- * Response after bulk-revoking API keys for a workspace member.
3403
- */
3404
- export declare const zBulkRevokeApiKeysResponse: z.ZodObject<{
3405
- revoked_count: z.ZodInt;
3776
+ export declare const zCccWebsiteRootPageInfo: z.ZodObject<{
3777
+ has_more: z.ZodBoolean;
3778
+ page_size: z.ZodLiteral<24>;
3406
3779
  }, z.core.$strip>;
3407
- /**
3408
- * A tax identifier for a company Stripe customer. Stripe validates the
3409
- * type/value combination synchronously and verifies VAT/ABN-style IDs
3410
- * asynchronously.
3411
- *
3412
- */
3413
- export declare const zBillingTaxId: z.ZodObject<{
3414
- type: z.ZodString;
3780
+ export declare const zCccWebsiteCardFacet: z.ZodObject<{
3781
+ count: z.ZodOptional<z.ZodInt>;
3782
+ label: z.ZodString;
3415
3783
  value: z.ZodString;
3416
3784
  }, z.core.$strip>;
3417
- /**
3418
- * Payment lifecycle status
3419
- */
3420
- export declare const zBillingStatus: z.ZodEnum<{
3421
- paused: "paused";
3422
- pending_payment: "pending_payment";
3423
- awaiting_payment_method: "awaiting_payment_method";
3424
- paid: "paid";
3425
- payment_failed: "payment_failed";
3426
- inactive: "inactive";
3427
- }>;
3428
- /**
3429
- * Current billing and subscription status for a workspace.
3430
- */
3431
- export declare const zBillingStatusResponse: z.ZodObject<{
3432
- action_url: z.ZodOptional<z.ZodString>;
3433
- billing_rail: z.ZodOptional<z.ZodEnum<{
3434
- legacy_stripe: "legacy_stripe";
3435
- metronome: "metronome";
3436
- stripe: "stripe";
3437
- }>>;
3438
- billing_status: z.ZodOptional<z.ZodEnum<{
3439
- paused: "paused";
3440
- pending_payment: "pending_payment";
3441
- awaiting_payment_method: "awaiting_payment_method";
3442
- paid: "paid";
3443
- payment_failed: "payment_failed";
3444
- inactive: "inactive";
3445
- }>>;
3446
- cancel_at: z.ZodOptional<z.ZodISODateTime>;
3447
- has_funds: z.ZodBoolean;
3448
- is_active: z.ZodBoolean;
3449
- max_seats: z.ZodInt;
3450
- occupied_seats: z.ZodInt;
3451
- payment_intent_client_secret: z.ZodOptional<z.ZodString>;
3452
- pending_billing_op_id: z.ZodOptional<z.ZodString>;
3453
- pending_billing_op_type: z.ZodOptional<z.ZodEnum<{
3785
+ export declare const zCccWebsiteCardFacets: z.ZodObject<{
3786
+ categories: z.ZodArray<z.ZodObject<{
3787
+ count: z.ZodOptional<z.ZodInt>;
3788
+ label: z.ZodString;
3789
+ value: z.ZodString;
3790
+ }, z.core.$strip>>;
3791
+ models: z.ZodArray<z.ZodObject<{
3792
+ count: z.ZodOptional<z.ZodInt>;
3793
+ label: z.ZodString;
3794
+ value: z.ZodString;
3795
+ }, z.core.$strip>>;
3796
+ use_cases: z.ZodArray<z.ZodObject<{
3797
+ count: z.ZodOptional<z.ZodInt>;
3798
+ label: z.ZodString;
3799
+ value: z.ZodString;
3800
+ }, z.core.$strip>>;
3801
+ }, z.core.$strip>;
3802
+ export declare const zCccWebsiteRootTab: z.ZodObject<{
3803
+ facets: z.ZodObject<{
3804
+ categories: z.ZodArray<z.ZodObject<{
3805
+ count: z.ZodOptional<z.ZodInt>;
3806
+ label: z.ZodString;
3807
+ value: z.ZodString;
3808
+ }, z.core.$strip>>;
3809
+ models: z.ZodArray<z.ZodObject<{
3810
+ count: z.ZodOptional<z.ZodInt>;
3811
+ label: z.ZodString;
3812
+ value: z.ZodString;
3813
+ }, z.core.$strip>>;
3814
+ use_cases: z.ZodArray<z.ZodObject<{
3815
+ count: z.ZodOptional<z.ZodInt>;
3816
+ label: z.ZodString;
3817
+ value: z.ZodString;
3818
+ }, z.core.$strip>>;
3819
+ }, z.core.$strip>;
3820
+ page: z.ZodObject<{
3821
+ has_more: z.ZodBoolean;
3822
+ page_size: z.ZodLiteral<24>;
3823
+ }, z.core.$strip>;
3824
+ sort_orders: z.ZodArray<z.ZodEnum<{
3825
+ popular: "popular";
3826
+ name: "name";
3827
+ priceAsc: "priceAsc";
3828
+ priceDesc: "priceDesc";
3829
+ }>>;
3830
+ }, z.core.$strip>;
3831
+ export declare const zCccWebsiteRootTabs: z.ZodObject<{
3832
+ apps: z.ZodObject<{
3833
+ facets: z.ZodObject<{
3834
+ categories: z.ZodArray<z.ZodObject<{
3835
+ count: z.ZodOptional<z.ZodInt>;
3836
+ label: z.ZodString;
3837
+ value: z.ZodString;
3838
+ }, z.core.$strip>>;
3839
+ models: z.ZodArray<z.ZodObject<{
3840
+ count: z.ZodOptional<z.ZodInt>;
3841
+ label: z.ZodString;
3842
+ value: z.ZodString;
3843
+ }, z.core.$strip>>;
3844
+ use_cases: z.ZodArray<z.ZodObject<{
3845
+ count: z.ZodOptional<z.ZodInt>;
3846
+ label: z.ZodString;
3847
+ value: z.ZodString;
3848
+ }, z.core.$strip>>;
3849
+ }, z.core.$strip>;
3850
+ page: z.ZodObject<{
3851
+ has_more: z.ZodBoolean;
3852
+ page_size: z.ZodLiteral<24>;
3853
+ }, z.core.$strip>;
3854
+ sort_orders: z.ZodArray<z.ZodEnum<{
3855
+ popular: "popular";
3856
+ name: "name";
3857
+ priceAsc: "priceAsc";
3858
+ priceDesc: "priceDesc";
3859
+ }>>;
3860
+ }, z.core.$strip>;
3861
+ models: z.ZodObject<{
3862
+ facets: z.ZodObject<{
3863
+ categories: z.ZodArray<z.ZodObject<{
3864
+ count: z.ZodOptional<z.ZodInt>;
3865
+ label: z.ZodString;
3866
+ value: z.ZodString;
3867
+ }, z.core.$strip>>;
3868
+ models: z.ZodArray<z.ZodObject<{
3869
+ count: z.ZodOptional<z.ZodInt>;
3870
+ label: z.ZodString;
3871
+ value: z.ZodString;
3872
+ }, z.core.$strip>>;
3873
+ use_cases: z.ZodArray<z.ZodObject<{
3874
+ count: z.ZodOptional<z.ZodInt>;
3875
+ label: z.ZodString;
3876
+ value: z.ZodString;
3877
+ }, z.core.$strip>>;
3878
+ }, z.core.$strip>;
3879
+ page: z.ZodObject<{
3880
+ has_more: z.ZodBoolean;
3881
+ page_size: z.ZodLiteral<24>;
3882
+ }, z.core.$strip>;
3883
+ sort_orders: z.ZodArray<z.ZodEnum<{
3884
+ popular: "popular";
3885
+ name: "name";
3886
+ priceAsc: "priceAsc";
3887
+ priceDesc: "priceDesc";
3888
+ }>>;
3889
+ }, z.core.$strip>;
3890
+ workflows: z.ZodObject<{
3891
+ facets: z.ZodObject<{
3892
+ categories: z.ZodArray<z.ZodObject<{
3893
+ count: z.ZodOptional<z.ZodInt>;
3894
+ label: z.ZodString;
3895
+ value: z.ZodString;
3896
+ }, z.core.$strip>>;
3897
+ models: z.ZodArray<z.ZodObject<{
3898
+ count: z.ZodOptional<z.ZodInt>;
3899
+ label: z.ZodString;
3900
+ value: z.ZodString;
3901
+ }, z.core.$strip>>;
3902
+ use_cases: z.ZodArray<z.ZodObject<{
3903
+ count: z.ZodOptional<z.ZodInt>;
3904
+ label: z.ZodString;
3905
+ value: z.ZodString;
3906
+ }, z.core.$strip>>;
3907
+ }, z.core.$strip>;
3908
+ page: z.ZodObject<{
3909
+ has_more: z.ZodBoolean;
3910
+ page_size: z.ZodLiteral<24>;
3911
+ }, z.core.$strip>;
3912
+ sort_orders: z.ZodArray<z.ZodEnum<{
3913
+ popular: "popular";
3914
+ name: "name";
3915
+ priceAsc: "priceAsc";
3916
+ priceDesc: "priceDesc";
3917
+ }>>;
3918
+ }, z.core.$strip>;
3919
+ }, z.core.$strip>;
3920
+ export declare const zCccWebsiteModelDirectory: z.ZodObject<{
3921
+ generation: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
3922
+ items: z.ZodArray<z.ZodObject<{
3923
+ provider: z.ZodString;
3924
+ slug: z.ZodString;
3925
+ title: z.ZodString;
3926
+ uid: z.ZodUUID;
3927
+ }, z.core.$strip>>;
3928
+ revision_id: z.ZodCoercedBigInt<unknown>;
3929
+ }, z.core.$strip>;
3930
+ export declare const zCccWebsiteRootPresentation: z.ZodObject<{
3931
+ as_of: z.ZodISODateTime;
3932
+ items: z.ZodArray<z.ZodObject<{
3933
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3934
+ deleted: z.ZodBoolean;
3935
+ edit_version: z.ZodString;
3936
+ enabled: z.ZodBoolean;
3937
+ kind: z.ZodEnum<{
3938
+ MODEL: "MODEL";
3939
+ WORKFLOW: "WORKFLOW";
3940
+ APP: "APP";
3941
+ TEMPLATE_SET: "TEMPLATE_SET";
3942
+ }>;
3943
+ revision: z.ZodCoercedBigInt<unknown>;
3944
+ slug: z.ZodString;
3945
+ uid: z.ZodString;
3946
+ visibility: z.ZodEnum<{
3947
+ PUBLIC: "PUBLIC";
3948
+ STAFF: "STAFF";
3949
+ }>;
3950
+ visible_from: z.ZodOptional<z.ZodISODateTime>;
3951
+ }, z.core.$strip>>;
3952
+ model_directory: z.ZodObject<{
3953
+ generation: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
3954
+ items: z.ZodArray<z.ZodObject<{
3955
+ provider: z.ZodString;
3956
+ slug: z.ZodString;
3957
+ title: z.ZodString;
3958
+ uid: z.ZodUUID;
3959
+ }, z.core.$strip>>;
3960
+ revision_id: z.ZodCoercedBigInt<unknown>;
3961
+ }, z.core.$strip>;
3962
+ next_visibility_at: z.ZodNullable<z.ZodISODateTime>;
3963
+ revision_id: z.ZodCoercedBigInt<unknown>;
3964
+ tabs: z.ZodObject<{
3965
+ apps: z.ZodObject<{
3966
+ facets: z.ZodObject<{
3967
+ categories: z.ZodArray<z.ZodObject<{
3968
+ count: z.ZodOptional<z.ZodInt>;
3969
+ label: z.ZodString;
3970
+ value: z.ZodString;
3971
+ }, z.core.$strip>>;
3972
+ models: z.ZodArray<z.ZodObject<{
3973
+ count: z.ZodOptional<z.ZodInt>;
3974
+ label: z.ZodString;
3975
+ value: z.ZodString;
3976
+ }, z.core.$strip>>;
3977
+ use_cases: z.ZodArray<z.ZodObject<{
3978
+ count: z.ZodOptional<z.ZodInt>;
3979
+ label: z.ZodString;
3980
+ value: z.ZodString;
3981
+ }, z.core.$strip>>;
3982
+ }, z.core.$strip>;
3983
+ page: z.ZodObject<{
3984
+ has_more: z.ZodBoolean;
3985
+ page_size: z.ZodLiteral<24>;
3986
+ }, z.core.$strip>;
3987
+ sort_orders: z.ZodArray<z.ZodEnum<{
3988
+ popular: "popular";
3989
+ name: "name";
3990
+ priceAsc: "priceAsc";
3991
+ priceDesc: "priceDesc";
3992
+ }>>;
3993
+ }, z.core.$strip>;
3994
+ models: z.ZodObject<{
3995
+ facets: z.ZodObject<{
3996
+ categories: z.ZodArray<z.ZodObject<{
3997
+ count: z.ZodOptional<z.ZodInt>;
3998
+ label: z.ZodString;
3999
+ value: z.ZodString;
4000
+ }, z.core.$strip>>;
4001
+ models: z.ZodArray<z.ZodObject<{
4002
+ count: z.ZodOptional<z.ZodInt>;
4003
+ label: z.ZodString;
4004
+ value: z.ZodString;
4005
+ }, z.core.$strip>>;
4006
+ use_cases: z.ZodArray<z.ZodObject<{
4007
+ count: z.ZodOptional<z.ZodInt>;
4008
+ label: z.ZodString;
4009
+ value: z.ZodString;
4010
+ }, z.core.$strip>>;
4011
+ }, z.core.$strip>;
4012
+ page: z.ZodObject<{
4013
+ has_more: z.ZodBoolean;
4014
+ page_size: z.ZodLiteral<24>;
4015
+ }, z.core.$strip>;
4016
+ sort_orders: z.ZodArray<z.ZodEnum<{
4017
+ popular: "popular";
4018
+ name: "name";
4019
+ priceAsc: "priceAsc";
4020
+ priceDesc: "priceDesc";
4021
+ }>>;
4022
+ }, z.core.$strip>;
4023
+ workflows: z.ZodObject<{
4024
+ facets: z.ZodObject<{
4025
+ categories: z.ZodArray<z.ZodObject<{
4026
+ count: z.ZodOptional<z.ZodInt>;
4027
+ label: z.ZodString;
4028
+ value: z.ZodString;
4029
+ }, z.core.$strip>>;
4030
+ models: z.ZodArray<z.ZodObject<{
4031
+ count: z.ZodOptional<z.ZodInt>;
4032
+ label: z.ZodString;
4033
+ value: z.ZodString;
4034
+ }, z.core.$strip>>;
4035
+ use_cases: z.ZodArray<z.ZodObject<{
4036
+ count: z.ZodOptional<z.ZodInt>;
4037
+ label: z.ZodString;
4038
+ value: z.ZodString;
4039
+ }, z.core.$strip>>;
4040
+ }, z.core.$strip>;
4041
+ page: z.ZodObject<{
4042
+ has_more: z.ZodBoolean;
4043
+ page_size: z.ZodLiteral<24>;
4044
+ }, z.core.$strip>;
4045
+ sort_orders: z.ZodArray<z.ZodEnum<{
4046
+ popular: "popular";
4047
+ name: "name";
4048
+ priceAsc: "priceAsc";
4049
+ priceDesc: "priceDesc";
4050
+ }>>;
4051
+ }, z.core.$strip>;
4052
+ }, z.core.$strip>;
4053
+ }, z.core.$strip>;
4054
+ export declare const zCccWebsiteCardsPage: z.ZodObject<{
4055
+ available_kinds: z.ZodArray<z.ZodEnum<{
4056
+ MODEL: "MODEL";
4057
+ WORKFLOW: "WORKFLOW";
4058
+ APP: "APP";
4059
+ }>>;
4060
+ facets: z.ZodObject<{
4061
+ categories: z.ZodArray<z.ZodObject<{
4062
+ count: z.ZodOptional<z.ZodInt>;
4063
+ label: z.ZodString;
4064
+ value: z.ZodString;
4065
+ }, z.core.$strip>>;
4066
+ models: z.ZodArray<z.ZodObject<{
4067
+ count: z.ZodOptional<z.ZodInt>;
4068
+ label: z.ZodString;
4069
+ value: z.ZodString;
4070
+ }, z.core.$strip>>;
4071
+ use_cases: z.ZodArray<z.ZodObject<{
4072
+ count: z.ZodOptional<z.ZodInt>;
4073
+ label: z.ZodString;
4074
+ value: z.ZodString;
4075
+ }, z.core.$strip>>;
4076
+ }, z.core.$strip>;
4077
+ generation: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
4078
+ has_more: z.ZodBoolean;
4079
+ items: z.ZodArray<z.ZodObject<{
4080
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4081
+ deleted: z.ZodBoolean;
4082
+ edit_version: z.ZodString;
4083
+ enabled: z.ZodBoolean;
4084
+ kind: z.ZodEnum<{
4085
+ MODEL: "MODEL";
4086
+ WORKFLOW: "WORKFLOW";
4087
+ APP: "APP";
4088
+ TEMPLATE_SET: "TEMPLATE_SET";
4089
+ }>;
4090
+ revision: z.ZodCoercedBigInt<unknown>;
4091
+ slug: z.ZodString;
4092
+ uid: z.ZodString;
4093
+ visibility: z.ZodEnum<{
4094
+ PUBLIC: "PUBLIC";
4095
+ STAFF: "STAFF";
4096
+ }>;
4097
+ visible_from: z.ZodOptional<z.ZodISODateTime>;
4098
+ }, z.core.$strip>>;
4099
+ next_cursor: z.ZodOptional<z.ZodString>;
4100
+ page_size: z.ZodInt;
4101
+ previous_cursor: z.ZodOptional<z.ZodString>;
4102
+ revision_id: z.ZodCoercedBigInt<unknown>;
4103
+ sort_orders: z.ZodArray<z.ZodEnum<{
4104
+ popular: "popular";
4105
+ name: "name";
4106
+ priceAsc: "priceAsc";
4107
+ priceDesc: "priceDesc";
4108
+ }>>;
4109
+ total: z.ZodOptional<z.ZodInt>;
4110
+ }, z.core.$strip>;
4111
+ export declare const zCccPublicItemsPage: z.ZodIntersection<z.ZodObject<{
4112
+ generation: z.ZodCoercedBigInt<unknown>;
4113
+ items: z.ZodArray<z.ZodObject<{
4114
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4115
+ deleted: z.ZodBoolean;
4116
+ edit_version: z.ZodString;
4117
+ enabled: z.ZodBoolean;
4118
+ kind: z.ZodEnum<{
4119
+ MODEL: "MODEL";
4120
+ WORKFLOW: "WORKFLOW";
4121
+ APP: "APP";
4122
+ TEMPLATE_SET: "TEMPLATE_SET";
4123
+ }>;
4124
+ revision: z.ZodCoercedBigInt<unknown>;
4125
+ slug: z.ZodString;
4126
+ uid: z.ZodString;
4127
+ visibility: z.ZodEnum<{
4128
+ PUBLIC: "PUBLIC";
4129
+ STAFF: "STAFF";
4130
+ }>;
4131
+ visible_from: z.ZodOptional<z.ZodISODateTime>;
4132
+ }, z.core.$strip>>;
4133
+ revision_id: z.ZodCoercedBigInt<unknown>;
4134
+ }, z.core.$strip>, z.ZodObject<{
4135
+ has_more: z.ZodBoolean;
4136
+ next_cursor: z.ZodOptional<z.ZodString>;
4137
+ page_size: z.ZodInt;
4138
+ }, z.core.$strip>>;
4139
+ /**
4140
+ * Current Hub page that replaces an old public URL
4141
+ */
4142
+ export declare const zCccLegacyTarget: z.ZodObject<{
4143
+ path: z.ZodString;
4144
+ slug: z.ZodString;
4145
+ type: z.ZodEnum<{
4146
+ workflow: "workflow";
4147
+ app: "app";
4148
+ model: "model";
4149
+ }>;
4150
+ }, z.core.$strip>;
4151
+ /**
4152
+ * Flat type-versioned CCC JSON. Domain schemas (/api/v1/catalog/schemas/{type}/{version}) constrain authored fields. The readOnly properties are server metadata returned by reads; a save may send them back unchanged and they are ignored, never applied. expected_draft_rev and expected_revision_uid are the save concurrency tokens.
4153
+ */
4154
+ export declare const zCccjson: z.ZodObject<{
4155
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
4156
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
4157
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
4158
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
4159
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
4160
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
4161
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
4162
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
4163
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
4164
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
4165
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
4166
+ }, z.core.$strip>;
4167
+ export declare const zCccCreatorSummary: z.ZodObject<{
4168
+ avatar_url: z.ZodString;
4169
+ display_name: z.ZodString;
4170
+ username: z.ZodString;
4171
+ workflow_count: z.ZodInt;
4172
+ }, z.core.$strip>;
4173
+ export declare const zCccCreatorsPage: z.ZodObject<{
4174
+ items: z.ZodArray<z.ZodObject<{
4175
+ avatar_url: z.ZodString;
4176
+ display_name: z.ZodString;
4177
+ username: z.ZodString;
4178
+ workflow_count: z.ZodInt;
4179
+ }, z.core.$strip>>;
4180
+ next_cursor: z.ZodOptional<z.ZodString>;
4181
+ }, z.core.$strip>;
4182
+ export declare const zCccCreatorLink: z.ZodObject<{
4183
+ label: z.ZodString;
4184
+ url: z.ZodURL;
4185
+ }, z.core.$strip>;
4186
+ export declare const zCccCreatorProfile: z.ZodObject<{
4187
+ avatar_url: z.ZodString;
4188
+ bio: z.ZodString;
4189
+ display_name: z.ZodString;
4190
+ links: z.ZodArray<z.ZodObject<{
4191
+ label: z.ZodString;
4192
+ url: z.ZodURL;
4193
+ }, z.core.$strip>>;
4194
+ username: z.ZodString;
4195
+ }, z.core.$strip>;
4196
+ export declare const zCccCatalogState: z.ZodObject<{
4197
+ draft_generation: z.ZodCoercedBigInt<unknown>;
4198
+ draft_rev: z.ZodCoercedBigInt<unknown>;
4199
+ live_rev: z.ZodCoercedBigInt<unknown>;
4200
+ next_rev: z.ZodCoercedBigInt<unknown>;
4201
+ previous_live_rev: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
4202
+ }, z.core.$strip>;
4203
+ export declare const zCccCheckedReviewReceipt: z.ZodObject<{
4204
+ publish_enabled: z.ZodBoolean;
4205
+ receipt_version: z.ZodLiteral<1>;
4206
+ selected_count: z.ZodInt;
4207
+ selected_versions_digest: z.ZodString;
4208
+ selection_digest: z.ZodString;
4209
+ state: z.ZodObject<{
4210
+ draft_generation: z.ZodCoercedBigInt<unknown>;
4211
+ draft_rev: z.ZodCoercedBigInt<unknown>;
4212
+ live_rev: z.ZodCoercedBigInt<unknown>;
4213
+ next_rev: z.ZodCoercedBigInt<unknown>;
4214
+ previous_live_rev: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
4215
+ }, z.core.$strip>;
4216
+ unchecked_count: z.ZodInt;
4217
+ }, z.core.$strip>;
4218
+ export declare const zCccAuthoringContext: z.ZodObject<{
4219
+ actor_uid: z.ZodString;
4220
+ can_apply: z.ZodBoolean;
4221
+ can_edit: z.ZodBoolean;
4222
+ owner_uid: z.ZodString;
4223
+ state: z.ZodObject<{
4224
+ draft_generation: z.ZodCoercedBigInt<unknown>;
4225
+ draft_rev: z.ZodCoercedBigInt<unknown>;
4226
+ live_rev: z.ZodCoercedBigInt<unknown>;
4227
+ next_rev: z.ZodCoercedBigInt<unknown>;
4228
+ previous_live_rev: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
4229
+ }, z.core.$strip>;
4230
+ }, z.core.$strip>;
4231
+ /**
4232
+ * Response after bulk-revoking API keys for a workspace member.
4233
+ */
4234
+ export declare const zBulkRevokeApiKeysResponse: z.ZodObject<{
4235
+ revoked_count: z.ZodInt;
4236
+ }, z.core.$strip>;
4237
+ /**
4238
+ * A tax identifier for a company Stripe customer. Stripe validates the
4239
+ * type/value combination synchronously and verifies VAT/ABN-style IDs
4240
+ * asynchronously.
4241
+ *
4242
+ */
4243
+ export declare const zBillingTaxId: z.ZodObject<{
4244
+ type: z.ZodString;
4245
+ value: z.ZodString;
4246
+ }, z.core.$strip>;
4247
+ /**
4248
+ * Payment lifecycle status
4249
+ */
4250
+ export declare const zBillingStatus: z.ZodEnum<{
4251
+ paused: "paused";
4252
+ pending_payment: "pending_payment";
4253
+ awaiting_payment_method: "awaiting_payment_method";
4254
+ paid: "paid";
4255
+ payment_failed: "payment_failed";
4256
+ inactive: "inactive";
4257
+ }>;
4258
+ /**
4259
+ * Current billing and subscription status for a workspace.
4260
+ */
4261
+ export declare const zBillingStatusResponse: z.ZodObject<{
4262
+ action_url: z.ZodOptional<z.ZodString>;
4263
+ billing_rail: z.ZodOptional<z.ZodEnum<{
4264
+ legacy_stripe: "legacy_stripe";
4265
+ metronome: "metronome";
4266
+ stripe: "stripe";
4267
+ }>>;
4268
+ billing_status: z.ZodOptional<z.ZodEnum<{
4269
+ paused: "paused";
4270
+ pending_payment: "pending_payment";
4271
+ awaiting_payment_method: "awaiting_payment_method";
4272
+ paid: "paid";
4273
+ payment_failed: "payment_failed";
4274
+ inactive: "inactive";
4275
+ }>>;
4276
+ cancel_at: z.ZodOptional<z.ZodISODateTime>;
4277
+ current_period_start: z.ZodOptional<z.ZodISODateTime>;
4278
+ ended_at: z.ZodNullable<z.ZodISODateTime>;
4279
+ ended_at_unavailable_reason: z.ZodOptional<z.ZodEnum<{
4280
+ not_recorded: "not_recorded";
4281
+ }>>;
4282
+ has_funds: z.ZodBoolean;
4283
+ is_active: z.ZodBoolean;
4284
+ latest_subscription_op_id: z.ZodOptional<z.ZodString>;
4285
+ max_seats: z.ZodInt;
4286
+ next_credit_refill_at: z.ZodOptional<z.ZodISODateTime>;
4287
+ occupied_seats: z.ZodInt;
4288
+ payment_intent_client_secret: z.ZodOptional<z.ZodString>;
4289
+ pending_billing_op_id: z.ZodOptional<z.ZodString>;
4290
+ pending_billing_op_type: z.ZodOptional<z.ZodEnum<{
3454
4291
  subscription: "subscription";
3455
4292
  topup: "topup";
3456
4293
  }>>;
4294
+ period_credit_grant: z.ZodOptional<z.ZodObject<{
4295
+ credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
4296
+ period: z.ZodOptional<z.ZodEnum<{
4297
+ MONTHLY: "MONTHLY";
4298
+ ANNUAL: "ANNUAL";
4299
+ }>>;
4300
+ state: z.ZodEnum<{
4301
+ none: "none";
4302
+ amount: "amount";
4303
+ unknown: "unknown";
4304
+ }>;
4305
+ }, z.core.$strip>>;
3457
4306
  plan_slug: z.ZodOptional<z.ZodString>;
4307
+ previous_plan: z.ZodOptional<z.ZodObject<{
4308
+ plan_slug: z.ZodString;
4309
+ team_credit_stop_id: z.ZodOptional<z.ZodString>;
4310
+ }, z.core.$strip>>;
3458
4311
  renewal_date: z.ZodOptional<z.ZodISODateTime>;
3459
4312
  renewal_invoice: z.ZodOptional<z.ZodObject<{
3460
4313
  amount_due: z.ZodCoercedBigInt<unknown>;
@@ -3478,13 +4331,13 @@ export declare const zBillingStatusResponse: z.ZodObject<{
3478
4331
  ANNUAL: "ANNUAL";
3479
4332
  }>>;
3480
4333
  subscription_state: z.ZodOptional<z.ZodEnum<{
3481
- never_subscribed: "never_subscribed";
3482
4334
  active: "active";
4335
+ paused: "paused";
4336
+ ended: "ended";
4337
+ never_subscribed: "never_subscribed";
3483
4338
  cancel_scheduled: "cancel_scheduled";
3484
4339
  past_due: "past_due";
3485
- paused: "paused";
3486
4340
  activating: "activating";
3487
- ended: "ended";
3488
4341
  }>>;
3489
4342
  subscription_status: z.ZodOptional<z.ZodEnum<{
3490
4343
  active: "active";
@@ -3513,11 +4366,11 @@ export declare const zBillingPlansResponse: z.ZodObject<{
3513
4366
  current_plan_slug: z.ZodOptional<z.ZodString>;
3514
4367
  plans: z.ZodArray<z.ZodObject<{
3515
4368
  action: z.ZodEnum<{
4369
+ none: "none";
3516
4370
  subscribe: "subscribe";
3517
4371
  change: "change";
3518
4372
  reactivate: "reactivate";
3519
4373
  downgrade: "downgrade";
3520
- none: "none";
3521
4374
  }>;
3522
4375
  availability: z.ZodObject<{
3523
4376
  available: z.ZodBoolean;
@@ -3555,7 +4408,31 @@ export declare const zBillingPlansResponse: z.ZodObject<{
3555
4408
  MONTHLY: "MONTHLY";
3556
4409
  ANNUAL: "ANNUAL";
3557
4410
  }>;
4411
+ feature_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
4412
+ key: z.ZodEnum<{
4413
+ shortRuntime: "shortRuntime";
4414
+ longRuntime: "longRuntime";
4415
+ addCredits: "addCredits";
4416
+ importModels: "importModels";
4417
+ sharedCreditPool: "sharedCreditPool";
4418
+ membersUpTo: "membersUpTo";
4419
+ perMemberCreditLimits: "perMemberCreditLimits";
4420
+ memberSpendAuditing: "memberSpendAuditing";
4421
+ sharedWorkflowsAssets: "sharedWorkflowsAssets";
4422
+ projects: "projects";
4423
+ }>;
4424
+ params: z.ZodOptional<z.ZodObject<{
4425
+ count: z.ZodCoercedBigInt<unknown>;
4426
+ }, z.core.$strip>>;
4427
+ status: z.ZodEnum<{
4428
+ available: "available";
4429
+ coming_soon: "coming_soon";
4430
+ }>;
4431
+ text: z.ZodString;
4432
+ }, z.core.$strip>>>;
4433
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
3558
4434
  max_seats: z.ZodCoercedBigInt<unknown>;
4435
+ popular: z.ZodOptional<z.ZodBoolean>;
3559
4436
  price_cents: z.ZodCoercedBigInt<unknown>;
3560
4437
  seat_summary: z.ZodObject<{
3561
4438
  seat_count: z.ZodInt;
@@ -3580,11 +4457,11 @@ export declare const zBillingPlansResponse: z.ZodObject<{
3580
4457
  id: z.ZodString;
3581
4458
  monthly: z.ZodObject<{
3582
4459
  action: z.ZodEnum<{
4460
+ none: "none";
3583
4461
  subscribe: "subscribe";
3584
4462
  change: "change";
3585
4463
  reactivate: "reactivate";
3586
4464
  downgrade: "downgrade";
3587
- none: "none";
3588
4465
  }>;
3589
4466
  denied_reason: z.ZodOptional<z.ZodEnum<{
3590
4467
  not_a_member: "not_a_member";
@@ -3604,15 +4481,16 @@ export declare const zBillingPlansResponse: z.ZodObject<{
3604
4481
  effective_at: z.ZodOptional<z.ZodISODateTime>;
3605
4482
  }, z.core.$strip>>;
3606
4483
  list_price_cents: z.ZodCoercedBigInt<unknown>;
4484
+ period_charge_cents: z.ZodCoercedBigInt<unknown>;
3607
4485
  price_cents: z.ZodCoercedBigInt<unknown>;
3608
4486
  }, z.core.$strip>;
3609
4487
  yearly: z.ZodObject<{
3610
4488
  action: z.ZodEnum<{
4489
+ none: "none";
3611
4490
  subscribe: "subscribe";
3612
4491
  change: "change";
3613
4492
  reactivate: "reactivate";
3614
4493
  downgrade: "downgrade";
3615
- none: "none";
3616
4494
  }>;
3617
4495
  denied_reason: z.ZodOptional<z.ZodEnum<{
3618
4496
  not_a_member: "not_a_member";
@@ -3632,6 +4510,7 @@ export declare const zBillingPlansResponse: z.ZodObject<{
3632
4510
  effective_at: z.ZodOptional<z.ZodISODateTime>;
3633
4511
  }, z.core.$strip>>;
3634
4512
  list_price_cents: z.ZodCoercedBigInt<unknown>;
4513
+ period_charge_cents: z.ZodCoercedBigInt<unknown>;
3635
4514
  price_cents: z.ZodCoercedBigInt<unknown>;
3636
4515
  }, z.core.$strip>;
3637
4516
  }, z.core.$strip>>;
@@ -3759,6 +4638,7 @@ export declare const zBillingOpChargeBreakdown: z.ZodObject<{
3759
4638
  export declare const zBillingOpStatusResponse: z.ZodObject<{
3760
4639
  action_url: z.ZodOptional<z.ZodString>;
3761
4640
  amount_charged_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
4641
+ authentication_deadline: z.ZodOptional<z.ZodISODateTime>;
3762
4642
  authentication_state: z.ZodOptional<z.ZodEnum<{
3763
4643
  succeeded: "succeeded";
3764
4644
  requires_action: "requires_action";
@@ -3802,6 +4682,14 @@ export declare const zBillingOpStatusResponse: z.ZodObject<{
3802
4682
  }>;
3803
4683
  }, z.core.$strip>>;
3804
4684
  }, z.core.$strip>>;
4685
+ checkout_state: z.ZodOptional<z.ZodEnum<{
4686
+ failed: "failed";
4687
+ none: "none";
4688
+ processing: "processing";
4689
+ unfinished: "unfinished";
4690
+ verify_payment: "verify_payment";
4691
+ payment_received: "payment_received";
4692
+ }>>;
3805
4693
  completed_at: z.ZodOptional<z.ZodISODateTime>;
3806
4694
  credits_added: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
3807
4695
  decline_reason: z.ZodOptional<z.ZodEnum<{
@@ -3857,6 +4745,12 @@ export declare const zBillingOpStatusResponse: z.ZodObject<{
3857
4745
  succeeded: "succeeded";
3858
4746
  reconciliation_needed: "reconciliation_needed";
3859
4747
  }>;
4748
+ topup_purchase_amount: z.ZodOptional<z.ZodObject<{
4749
+ amount_cents: z.ZodCoercedBigInt<unknown>;
4750
+ currency: z.ZodEnum<{
4751
+ usd: "usd";
4752
+ }>;
4753
+ }, z.core.$strip>>;
3860
4754
  }, z.core.$strip>;
3861
4755
  export declare const zBillingOpCancelResponse: z.ZodObject<{
3862
4756
  billing_op_id: z.ZodString;
@@ -3871,6 +4765,7 @@ export declare const zBillingOpCancelResponse: z.ZodObject<{
3871
4765
  export declare const zBillingEvent: z.ZodObject<{
3872
4766
  api_key_name: z.ZodOptional<z.ZodString>;
3873
4767
  api_key_prefix: z.ZodOptional<z.ZodString>;
4768
+ api_key_revoked: z.ZodOptional<z.ZodBoolean>;
3874
4769
  createdAt: z.ZodISODateTime;
3875
4770
  deployment_id: z.ZodOptional<z.ZodString>;
3876
4771
  deployment_name: z.ZodOptional<z.ZodString>;
@@ -3881,14 +4776,17 @@ export declare const zBillingEvent: z.ZodObject<{
3881
4776
  member_former: z.ZodOptional<z.ZodBoolean>;
3882
4777
  member_user_id: z.ZodOptional<z.ZodString>;
3883
4778
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4779
+ unattributed: z.ZodOptional<z.ZodBoolean>;
3884
4780
  }, z.core.$strip>;
3885
4781
  /**
3886
4782
  * Paginated list of billing events for a workspace.
3887
4783
  */
3888
4784
  export declare const zBillingEventsResponse: z.ZodObject<{
4785
+ attribution_since: z.ZodOptional<z.ZodISODateTime>;
3889
4786
  events: z.ZodArray<z.ZodObject<{
3890
4787
  api_key_name: z.ZodOptional<z.ZodString>;
3891
4788
  api_key_prefix: z.ZodOptional<z.ZodString>;
4789
+ api_key_revoked: z.ZodOptional<z.ZodBoolean>;
3892
4790
  createdAt: z.ZodISODateTime;
3893
4791
  deployment_id: z.ZodOptional<z.ZodString>;
3894
4792
  deployment_name: z.ZodOptional<z.ZodString>;
@@ -3899,6 +4797,7 @@ export declare const zBillingEventsResponse: z.ZodObject<{
3899
4797
  member_former: z.ZodOptional<z.ZodBoolean>;
3900
4798
  member_user_id: z.ZodOptional<z.ZodString>;
3901
4799
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4800
+ unattributed: z.ZodOptional<z.ZodBoolean>;
3902
4801
  }, z.core.$strip>>;
3903
4802
  limit: z.ZodInt;
3904
4803
  page: z.ZodInt;
@@ -4097,6 +4996,15 @@ export declare const zBillingCapabilityDenials: z.ZodObject<{
4097
4996
  not_a_member: "not_a_member";
4098
4997
  not_workspace_owner: "not_workspace_owner";
4099
4998
  }>>;
4999
+ can_open_plans: z.ZodOptional<z.ZodEnum<{
5000
+ not_a_member: "not_a_member";
5001
+ not_workspace_owner: "not_workspace_owner";
5002
+ not_original_owner: "not_original_owner";
5003
+ tier_not_self_serve: "tier_not_self_serve";
5004
+ subscription_not_started: "subscription_not_started";
5005
+ subscription_status_unrecognized: "subscription_status_unrecognized";
5006
+ creator_only_provisioning: "creator_only_provisioning";
5007
+ }>>;
4100
5008
  can_reactivate: z.ZodOptional<z.ZodEnum<{
4101
5009
  not_a_member: "not_a_member";
4102
5010
  not_workspace_owner: "not_workspace_owner";
@@ -4150,6 +5058,7 @@ export declare const zBillingCapabilityDenials: z.ZodObject<{
4150
5058
  subscription_status_unrecognized: "subscription_status_unrecognized";
4151
5059
  creator_only_provisioning: "creator_only_provisioning";
4152
5060
  payment_past_due: "payment_past_due";
5061
+ topup_purchases_paused: "topup_purchases_paused";
4153
5062
  }>>;
4154
5063
  can_upgrade: z.ZodOptional<z.ZodEnum<{
4155
5064
  not_a_member: "not_a_member";
@@ -4225,6 +5134,7 @@ export declare const zBillingCapabilities: z.ZodObject<{
4225
5134
  can_manage_members: z.ZodBoolean;
4226
5135
  can_manage_partner_node_access: z.ZodBoolean;
4227
5136
  can_manage_subscription: z.ZodBoolean;
5137
+ can_open_plans: z.ZodBoolean;
4228
5138
  can_reactivate: z.ZodBoolean;
4229
5139
  can_revert_scheduled_change: z.ZodBoolean;
4230
5140
  can_run_workflows: z.ZodBoolean;
@@ -4263,6 +5173,7 @@ export declare const zAutoTopUpSetup: z.ZodObject<{
4263
5173
  subscription_tier_unrecognized: "subscription_tier_unrecognized";
4264
5174
  subscription_state_unknown: "subscription_state_unknown";
4265
5175
  default_payment_method_missing: "default_payment_method_missing";
5176
+ default_payment_method_unsupported: "default_payment_method_unsupported";
4266
5177
  }>>;
4267
5178
  state: z.ZodEnum<{
4268
5179
  ready: "ready";
@@ -4274,6 +5185,7 @@ export declare const zAutoTopUpSetup: z.ZodObject<{
4274
5185
  * Effective billing UI guidance for one authenticated user and workspace.
4275
5186
  */
4276
5187
  export declare const zBillingCapabilitiesResponse: z.ZodObject<{
5188
+ auto_top_up_enabled: z.ZodBoolean;
4277
5189
  auto_top_up_setup: z.ZodOptional<z.ZodObject<{
4278
5190
  reason: z.ZodOptional<z.ZodEnum<{
4279
5191
  billing_operation_parked: "billing_operation_parked";
@@ -4291,6 +5203,7 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
4291
5203
  subscription_tier_unrecognized: "subscription_tier_unrecognized";
4292
5204
  subscription_state_unknown: "subscription_state_unknown";
4293
5205
  default_payment_method_missing: "default_payment_method_missing";
5206
+ default_payment_method_unsupported: "default_payment_method_unsupported";
4294
5207
  }>>;
4295
5208
  state: z.ZodEnum<{
4296
5209
  ready: "ready";
@@ -4311,6 +5224,7 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
4311
5224
  can_manage_members: z.ZodBoolean;
4312
5225
  can_manage_partner_node_access: z.ZodBoolean;
4313
5226
  can_manage_subscription: z.ZodBoolean;
5227
+ can_open_plans: z.ZodBoolean;
4314
5228
  can_reactivate: z.ZodBoolean;
4315
5229
  can_revert_scheduled_change: z.ZodBoolean;
4316
5230
  can_run_workflows: z.ZodBoolean;
@@ -4412,6 +5326,15 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
4412
5326
  not_a_member: "not_a_member";
4413
5327
  not_workspace_owner: "not_workspace_owner";
4414
5328
  }>>;
5329
+ can_open_plans: z.ZodOptional<z.ZodEnum<{
5330
+ not_a_member: "not_a_member";
5331
+ not_workspace_owner: "not_workspace_owner";
5332
+ not_original_owner: "not_original_owner";
5333
+ tier_not_self_serve: "tier_not_self_serve";
5334
+ subscription_not_started: "subscription_not_started";
5335
+ subscription_status_unrecognized: "subscription_status_unrecognized";
5336
+ creator_only_provisioning: "creator_only_provisioning";
5337
+ }>>;
4415
5338
  can_reactivate: z.ZodOptional<z.ZodEnum<{
4416
5339
  not_a_member: "not_a_member";
4417
5340
  not_workspace_owner: "not_workspace_owner";
@@ -4465,6 +5388,7 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
4465
5388
  subscription_status_unrecognized: "subscription_status_unrecognized";
4466
5389
  creator_only_provisioning: "creator_only_provisioning";
4467
5390
  payment_past_due: "payment_past_due";
5391
+ topup_purchases_paused: "topup_purchases_paused";
4468
5392
  }>>;
4469
5393
  can_upgrade: z.ZodOptional<z.ZodEnum<{
4470
5394
  not_a_member: "not_a_member";
@@ -4499,10 +5423,11 @@ export declare const zBillingCapabilitiesResponse: z.ZodObject<{
4499
5423
  }>>;
4500
5424
  }, z.core.$strip>>;
4501
5425
  expires_at: z.ZodISODateTime;
5426
+ has_parked_billing_operation: z.ZodOptional<z.ZodBoolean>;
4502
5427
  payment_recovery_available: z.ZodOptional<z.ZodBoolean>;
4503
5428
  plan_kind: z.ZodOptional<z.ZodEnum<{
4504
- sales_managed: "sales_managed";
4505
5429
  none: "none";
5430
+ sales_managed: "sales_managed";
4506
5431
  self_serve: "self_serve";
4507
5432
  }>>;
4508
5433
  recovery_route: z.ZodOptional<z.ZodEnum<{
@@ -4530,11 +5455,16 @@ export declare const zBillingBalanceResponse: z.ZodObject<{
4530
5455
  amount_micros: z.ZodNumber;
4531
5456
  cloud_credit_balance_cents: z.ZodOptional<z.ZodNumber>;
4532
5457
  cloud_credit_balance_micros: z.ZodOptional<z.ZodNumber>;
5458
+ cloud_credit_display_balance_cents: z.ZodOptional<z.ZodNumber>;
4533
5459
  currency: z.ZodString;
4534
5460
  effective_balance_authoritative: z.ZodOptional<z.ZodBoolean>;
4535
5461
  effective_balance_cents: z.ZodOptional<z.ZodNumber>;
4536
5462
  effective_balance_micros: z.ZodOptional<z.ZodNumber>;
4537
5463
  low_balance: z.ZodOptional<z.ZodBoolean>;
5464
+ max_topup_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5465
+ max_topup_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5466
+ min_topup_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5467
+ min_topup_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
4538
5468
  pending_charges_cents: z.ZodOptional<z.ZodNumber>;
4539
5469
  pending_charges_micros: z.ZodOptional<z.ZodNumber>;
4540
5470
  prepaid_balance_cents: z.ZodOptional<z.ZodNumber>;
@@ -4542,22 +5472,50 @@ export declare const zBillingBalanceResponse: z.ZodObject<{
4542
5472
  suggested_topup_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
4543
5473
  }, z.core.$strip>;
4544
5474
  /**
4545
- * Every field is required. On every save, disabled included,
4546
- * threshold_credits and reload_credits must be positive whole credits
4547
- * and a non-null monthly_budget_cents must be positive. When enabled is
4548
- * true, monthly_budget_cents must also be non-null and at most
4549
- * max_monthly_budget_cents, reload_credits must be at least
4550
- * min_reload_credits and greater than threshold_credits, and one reload
5475
+ * Every listed field is required, and one of target_credits or
5476
+ * reload_credits. reload_credits alone means target_credits =
5477
+ * threshold_credits + reload_credits. On every save, disabled included,
5478
+ * threshold_credits must be a positive whole number of credits and a
5479
+ * non-null monthly_budget_cents positive. When enabled is true:
5480
+ * target_credits must be greater than threshold_credits; target_credits
5481
+ * and reload_credits must agree (reload_credits = target_credits -
5482
+ * threshold_credits) when both are sent; a non-null monthly_budget_cents
5483
+ * must be at most max_monthly_budget_cents, and a null one means no
5484
+ * owner limit and is stored as max_monthly_budget_cents; target_credits
5485
+ * must be at least threshold_credits + min_reload_credits and at most
5486
+ * threshold_credits + max_reload_credits; and the smallest automatic
5487
+ * reload (from one credit below threshold_credits to target_credits)
4551
5488
  * must cost no more than the budget. A save with enabled false accepts a
4552
- * null budget and skips the enabled-only rules.
5489
+ * null budget, stores it as null, and skips the enabled-only rules. A
5490
+ * save with enabled false is never refused over target_credits or
5491
+ * reload_credits: it stores target_credits minus threshold_credits when
5492
+ * the target is above the threshold, else a positive reload_credits,
5493
+ * else min_reload_credits.
4553
5494
  *
4554
5495
  */
4555
5496
  export declare const zAutoReloadSettingsRequest: z.ZodObject<{
4556
5497
  enabled: z.ZodBoolean;
4557
5498
  monthly_budget_cents: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
4558
- reload_credits: z.ZodCoercedBigInt<unknown>;
5499
+ reload_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5500
+ target_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
4559
5501
  threshold_credits: z.ZodCoercedBigInt<unknown>;
4560
5502
  }, z.core.$strip>;
5503
+ /**
5504
+ * Display facts about a declined payment method. Carries no identifier.
5505
+ */
5506
+ export declare const zAutoReloadDeclinedPaymentMethod: z.ZodObject<{
5507
+ brand: z.ZodNullable<z.ZodString>;
5508
+ last4: z.ZodNullable<z.ZodString>;
5509
+ type: z.ZodString;
5510
+ }, z.core.$strip>;
5511
+ /**
5512
+ * Expiry of the default card. Carries no identifier.
5513
+ */
5514
+ export declare const zAutoReloadCardExpiry: z.ZodObject<{
5515
+ expired: z.ZodBoolean;
5516
+ month: z.ZodInt;
5517
+ year: z.ZodInt;
5518
+ }, z.core.$strip>;
4561
5519
  /**
4562
5520
  * billing-api's automatic top-up settings, server prices and automatic
4563
5521
  * spend this cycle, passed through unchanged. Credits are whole credits;
@@ -4567,16 +5525,29 @@ export declare const zAutoReloadSettingsRequest: z.ZodObject<{
4567
5525
  */
4568
5526
  export declare const zAutoReloadSettings: z.ZodObject<{
4569
5527
  card_expiring_soon: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5528
+ card_expiry: z.ZodNullable<z.ZodObject<{
5529
+ expired: z.ZodBoolean;
5530
+ month: z.ZodInt;
5531
+ year: z.ZodInt;
5532
+ }, z.core.$strip>>;
4570
5533
  configured: z.ZodBoolean;
4571
5534
  cycle_resets_at: z.ZodNullable<z.ZodISODateTime>;
5535
+ declined_payment_method: z.ZodNullable<z.ZodObject<{
5536
+ brand: z.ZodNullable<z.ZodString>;
5537
+ last4: z.ZodNullable<z.ZodString>;
5538
+ type: z.ZodString;
5539
+ }, z.core.$strip>>;
4572
5540
  disabled_reason: z.ZodNullable<z.ZodString>;
4573
5541
  enabled: z.ZodBoolean;
4574
5542
  last_failure_at: z.ZodNullable<z.ZodISODateTime>;
4575
5543
  last_failure_reason: z.ZodNullable<z.ZodString>;
4576
5544
  max_monthly_budget_cents: z.ZodCoercedBigInt<unknown>;
5545
+ max_reload_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
4577
5546
  min_reload_credits: z.ZodCoercedBigInt<unknown>;
4578
5547
  monthly_budget_cents: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
5548
+ monthly_budget_is_default: z.ZodBoolean;
4579
5549
  paused_by_budget: z.ZodBoolean;
5550
+ paused_by_budget_remainder: z.ZodBoolean;
4580
5551
  paused_by_decline: z.ZodBoolean;
4581
5552
  reload_amount_cents: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
4582
5553
  reload_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
@@ -4588,8 +5559,22 @@ export declare const zAutoReloadSettings: z.ZodObject<{
4588
5559
  paused_by_budget: "paused_by_budget";
4589
5560
  on: "on";
4590
5561
  }>;
5562
+ target_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
4591
5563
  threshold_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
4592
5564
  }, z.core.$strip>;
5565
+ /**
5566
+ * Estimated automatic charge for the proposed settings.
5567
+ */
5568
+ export declare const zAutoReloadPreview: z.ZodObject<{
5569
+ charge_cents: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
5570
+ charge_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
5571
+ charges_now: z.ZodBoolean;
5572
+ not_charging_reason: z.ZodEnum<{
5573
+ above_threshold: "above_threshold";
5574
+ monthly_budget: "monthly_budget";
5575
+ paused_by_decline: "paused_by_decline";
5576
+ }>;
5577
+ }, z.core.$strip>;
4593
5578
  export declare const zAuthenticateResponse: z.ZodObject<{
4594
5579
  expires_in: z.ZodOptional<z.ZodInt>;
4595
5580
  method: z.ZodEnum<{
@@ -4663,10 +5648,10 @@ export declare const zAssetMetadataResponse: z.ZodObject<{
4663
5648
  export declare const zAssetDownloadResponse: z.ZodObject<{
4664
5649
  message: z.ZodOptional<z.ZodString>;
4665
5650
  status: z.ZodEnum<{
5651
+ failed: "failed";
4666
5652
  created: "created";
4667
5653
  running: "running";
4668
5654
  completed: "completed";
4669
- failed: "failed";
4670
5655
  cancelled: "cancelled";
4671
5656
  }>;
4672
5657
  task_id: z.ZodUUID;
@@ -4716,6 +5701,31 @@ export declare const zAgentViewableAttachmentExtension: z.ZodEnum<{
4716
5701
  ".heic": ".heic";
4717
5702
  ".heif": ".heif";
4718
5703
  }>;
5704
+ /**
5705
+ * Usage of a completed turn, as carried on agent_message_done. Mirrors `$defs.agent_message_done.data.usage` in services/agent/api/agent_events.schema.json; TestMessageDoneFrameMatchesContract holds the two definitions to the same fields and constraints. charge_micro_usd appears only when the server durably captured priced billing for at least one round. It is the exact charge in millionths of a US dollar; clients convert that denomination to catalog credits for display and must not read its absence as a zero charge.
5706
+ */
5707
+ export declare const zAgentTurnUsage: z.ZodObject<{
5708
+ cache_creation_input_tokens: z.ZodInt;
5709
+ cache_read_input_tokens: z.ZodInt;
5710
+ charge_micro_usd: z.ZodOptional<z.ZodInt>;
5711
+ input_tokens: z.ZodInt;
5712
+ output_tokens: z.ZodInt;
5713
+ total_tokens: z.ZodInt;
5714
+ }, z.core.$strip>;
5715
+ /**
5716
+ * Present on agent_message_done only when the model service refused the turn. Mirrors `$defs.agent_message_done.data.refusal` in services/agent/api/agent_events.schema.json, which states the full rendering rules. Absence must not be read as the account having credit.
5717
+ */
5718
+ export declare const zAgentTurnRefusal: z.ZodObject<{
5719
+ can_add_credit: z.ZodBoolean;
5720
+ kind: z.ZodEnum<{
5721
+ manual_block: "manual_block";
5722
+ no_funds: "no_funds";
5723
+ payment_required: "payment_required";
5724
+ auth: "auth";
5725
+ rate_limit: "rate_limit";
5726
+ }>;
5727
+ reason: z.ZodOptional<z.ZodString>;
5728
+ }, z.core.$strip>;
4719
5729
  /**
4720
5730
  * Acknowledgement that a turn was accepted. The agent runs asynchronously; output streams over the WebSocket (agent_message_delta, agent_tool_call, agent_message_done); canvas edits arrive as doc_update frames.
4721
5731
  */
@@ -4724,13 +5734,15 @@ export declare const zAgentTurnAccepted: z.ZodObject<{
4724
5734
  thread_id: z.ZodString;
4725
5735
  }, z.core.$strip>;
4726
5736
  /**
4727
- * The `data` of an agent_tool_call WebSocket event: one tool invocation's lifecycle. Mirrors `$defs.agent_tool_call.data` in services/agent/api/agent_events.schema.json, which also states the presence rules: the document correlation fields appear only on a terminal (success or error) frame, workflow_id and op_ids appear together, and doc_seq and doc_lineage_seq appear together and only with both of them. This schema leaves those rules out on purpose. A oneOf over closed variants could express them, but it would turn the generated frontend type into a union the consumer cannot extend field by field. The producer enforces them instead: the Publisher omits incomplete correlation, and TestToolCallEmissionsSatisfyBothContracts validates every emitted shape against the canonical schema. Consumers treat correlation as advisory and use it only when workflow_id and op_ids are both present on a terminal frame. TestToolCallFrameMatchesContract holds the two definitions to the same fields and constraints.
5737
+ * The `data` of an agent_tool_call WebSocket event: one tool invocation's lifecycle. Mirrors `$defs.agent_tool_call.data` in services/agent/api/agent_events.schema.json, which also states the presence rules: the document correlation fields appear only on a terminal (success or error) frame, workflow_id and op_ids appear together, doc_seq and doc_lineage_seq appear together and only with both of them, and job_id and job_workflow_id appear together only on a terminal run frame when a job was submitted. This schema leaves those rules out on purpose. A oneOf over closed variants could express them, but it would turn the generated frontend type into a union the consumer cannot extend field by field. The producer enforces them instead: the Publisher omits incomplete correlation, and TestToolCallEmissionsSatisfyBothContracts validates every emitted shape against the canonical schema. Consumers treat correlation as advisory and use it only when workflow_id and op_ids are both present on a terminal frame. TestToolCallFrameMatchesContract holds the two definitions to the same fields and constraints.
4728
5738
  */
4729
5739
  export declare const zAgentToolCallData: z.ZodObject<{
4730
5740
  doc_lineage_seq: z.ZodOptional<z.ZodInt>;
4731
5741
  doc_seq: z.ZodOptional<z.ZodInt>;
4732
5742
  duration_ms: z.ZodOptional<z.ZodInt>;
4733
5743
  error_code: z.ZodOptional<z.ZodString>;
5744
+ job_id: z.ZodOptional<z.ZodString>;
5745
+ job_workflow_id: z.ZodOptional<z.ZodString>;
4734
5746
  message_id: z.ZodString;
4735
5747
  op_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
4736
5748
  skill: z.ZodOptional<z.ZodString>;
@@ -4753,6 +5765,8 @@ export declare const zAgentToolCallFrame: z.ZodObject<{
4753
5765
  doc_seq: z.ZodOptional<z.ZodInt>;
4754
5766
  duration_ms: z.ZodOptional<z.ZodInt>;
4755
5767
  error_code: z.ZodOptional<z.ZodString>;
5768
+ job_id: z.ZodOptional<z.ZodString>;
5769
+ job_workflow_id: z.ZodOptional<z.ZodString>;
4756
5770
  message_id: z.ZodString;
4757
5771
  op_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
4758
5772
  skill: z.ZodOptional<z.ZodString>;
@@ -4825,6 +5839,13 @@ export declare const zAgentThreadCreated: z.ZodObject<{
4825
5839
  export declare const zAgentThreadCreateRequest: z.ZodObject<{
4826
5840
  workflow_id: z.ZodOptional<z.ZodString>;
4827
5841
  }, z.core.$strip>;
5842
+ /**
5843
+ * One model round's thinking as persisted on an assistant message's content.thinking (services/agent/internal/loop.persistedThinking): the round's reasoning text, then its narration, scrubbed exactly as the live agent_thinking frames were. Display data only.
5844
+ */
5845
+ export declare const zAgentThinkingEntry: z.ZodObject<{
5846
+ text: z.ZodString;
5847
+ tool_call_id: z.ZodOptional<z.ZodString>;
5848
+ }, z.core.$strip>;
4828
5849
  /**
4829
5850
  * A user-authored skill pack to create or replace. Plain JSON — a pack body is small enough that a signed-URL upload would be pure overhead.
4830
5851
  */
@@ -4883,9 +5904,16 @@ export declare const zAgentRunMode: z.ZodObject<{
4883
5904
  }>;
4884
5905
  }, z.core.$strip>;
4885
5906
  /**
4886
- * The `context` of a `run_approval` ask. Ids and a display name, never the user's prose.
5907
+ * The `context` of a `run_approval` ask. It names the workflow and, for cards opened by content-binding builds, the exact canonical graph the user approved. Older in-flight cards may omit graph_binding; consumers must preserve that explicit legacy compatibility case.
4887
5908
  */
4888
5909
  export declare const zAgentRunApprovalContext: z.ZodObject<{
5910
+ doc_seq: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5911
+ graph_binding: z.ZodOptional<z.ZodEnum<{
5912
+ unavailable: "unavailable";
5913
+ sha256: "sha256";
5914
+ identity_only: "identity_only";
5915
+ }>>;
5916
+ graph_sha256: z.ZodOptional<z.ZodString>;
4889
5917
  workflow_id: z.ZodString;
4890
5918
  workflow_name: z.ZodOptional<z.ZodString>;
4891
5919
  }, z.core.$strip>;
@@ -5056,6 +6084,13 @@ export declare const zAgentPendingRunApproval: z.ZodIntersection<z.ZodObject<{
5056
6084
  prompt: z.ZodString;
5057
6085
  }, z.core.$strip>, z.ZodObject<{
5058
6086
  context: z.ZodObject<{
6087
+ doc_seq: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6088
+ graph_binding: z.ZodOptional<z.ZodEnum<{
6089
+ unavailable: "unavailable";
6090
+ sha256: "sha256";
6091
+ identity_only: "identity_only";
6092
+ }>>;
6093
+ graph_sha256: z.ZodOptional<z.ZodString>;
5059
6094
  workflow_id: z.ZodString;
5060
6095
  workflow_name: z.ZodOptional<z.ZodString>;
5061
6096
  }, z.core.$strip>;
@@ -5236,6 +6271,13 @@ export declare const zAgentPendingAsk: z.ZodUnion<readonly [z.ZodIntersection<z.
5236
6271
  prompt: z.ZodString;
5237
6272
  }, z.core.$strip>, z.ZodObject<{
5238
6273
  context: z.ZodObject<{
6274
+ doc_seq: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6275
+ graph_binding: z.ZodOptional<z.ZodEnum<{
6276
+ unavailable: "unavailable";
6277
+ sha256: "sha256";
6278
+ identity_only: "identity_only";
6279
+ }>>;
6280
+ graph_sha256: z.ZodOptional<z.ZodString>;
5239
6281
  workflow_id: z.ZodString;
5240
6282
  workflow_name: z.ZodOptional<z.ZodString>;
5241
6283
  }, z.core.$strip>;
@@ -5307,6 +6349,63 @@ export declare const zAgentPendingAsk: z.ZodUnion<readonly [z.ZodIntersection<z.
5307
6349
  delete_approval: "delete_approval";
5308
6350
  }>;
5309
6351
  }, z.core.$strip>>>]>;
6352
+ /**
6353
+ * The `data` of an agent_message_done WebSocket event: the assistant message is complete. Mirrors `$defs.agent_message_done.data` in services/agent/api/agent_events.schema.json.
6354
+ */
6355
+ export declare const zAgentMessageDoneData: z.ZodObject<{
6356
+ message_id: z.ZodString;
6357
+ refusal: z.ZodOptional<z.ZodObject<{
6358
+ can_add_credit: z.ZodBoolean;
6359
+ kind: z.ZodEnum<{
6360
+ manual_block: "manual_block";
6361
+ no_funds: "no_funds";
6362
+ payment_required: "payment_required";
6363
+ auth: "auth";
6364
+ rate_limit: "rate_limit";
6365
+ }>;
6366
+ reason: z.ZodOptional<z.ZodString>;
6367
+ }, z.core.$strip>>;
6368
+ thread_id: z.ZodString;
6369
+ usage: z.ZodNullable<z.ZodObject<{
6370
+ cache_creation_input_tokens: z.ZodInt;
6371
+ cache_read_input_tokens: z.ZodInt;
6372
+ charge_micro_usd: z.ZodOptional<z.ZodInt>;
6373
+ input_tokens: z.ZodInt;
6374
+ output_tokens: z.ZodInt;
6375
+ total_tokens: z.ZodInt;
6376
+ }, z.core.$strip>>;
6377
+ }, z.core.$strip>;
6378
+ /**
6379
+ * Server-to-client agent_message_done frame on /ws. Closed, like the canonical envelope.
6380
+ */
6381
+ export declare const zAgentMessageDoneFrame: z.ZodObject<{
6382
+ data: z.ZodObject<{
6383
+ message_id: z.ZodString;
6384
+ refusal: z.ZodOptional<z.ZodObject<{
6385
+ can_add_credit: z.ZodBoolean;
6386
+ kind: z.ZodEnum<{
6387
+ manual_block: "manual_block";
6388
+ no_funds: "no_funds";
6389
+ payment_required: "payment_required";
6390
+ auth: "auth";
6391
+ rate_limit: "rate_limit";
6392
+ }>;
6393
+ reason: z.ZodOptional<z.ZodString>;
6394
+ }, z.core.$strip>>;
6395
+ thread_id: z.ZodString;
6396
+ usage: z.ZodNullable<z.ZodObject<{
6397
+ cache_creation_input_tokens: z.ZodInt;
6398
+ cache_read_input_tokens: z.ZodInt;
6399
+ charge_micro_usd: z.ZodOptional<z.ZodInt>;
6400
+ input_tokens: z.ZodInt;
6401
+ output_tokens: z.ZodInt;
6402
+ total_tokens: z.ZodInt;
6403
+ }, z.core.$strip>>;
6404
+ }, z.core.$strip>;
6405
+ type: z.ZodEnum<{
6406
+ agent_message_done: "agent_message_done";
6407
+ }>;
6408
+ }, z.core.$strip>;
5310
6409
  /**
5311
6410
  * A persisted message in an agent thread.
5312
6411
  */
@@ -5318,6 +6417,10 @@ export declare const zAgentMessage: z.ZodObject<{
5318
6417
  kind: z.ZodOptional<z.ZodString>;
5319
6418
  name: z.ZodOptional<z.ZodString>;
5320
6419
  }, z.core.$strip>>>;
6420
+ thinking: z.ZodOptional<z.ZodArray<z.ZodObject<{
6421
+ text: z.ZodString;
6422
+ tool_call_id: z.ZodOptional<z.ZodString>;
6423
+ }, z.core.$strip>>>;
5321
6424
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
5322
6425
  duration_ms: z.ZodOptional<z.ZodInt>;
5323
6426
  error_code: z.ZodOptional<z.ZodString>;
@@ -5384,6 +6487,13 @@ export declare const zAgentMessage: z.ZodObject<{
5384
6487
  prompt: z.ZodString;
5385
6488
  }, z.core.$strip>, z.ZodObject<{
5386
6489
  context: z.ZodObject<{
6490
+ doc_seq: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6491
+ graph_binding: z.ZodOptional<z.ZodEnum<{
6492
+ unavailable: "unavailable";
6493
+ sha256: "sha256";
6494
+ identity_only: "identity_only";
6495
+ }>>;
6496
+ graph_sha256: z.ZodOptional<z.ZodString>;
5387
6497
  workflow_id: z.ZodString;
5388
6498
  workflow_name: z.ZodOptional<z.ZodString>;
5389
6499
  }, z.core.$strip>;
@@ -5837,6 +6947,13 @@ export declare const zAgentAskFrame: z.ZodObject<{
5837
6947
  prompt: z.ZodString;
5838
6948
  }, z.core.$strip>, z.ZodObject<{
5839
6949
  context: z.ZodObject<{
6950
+ doc_seq: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
6951
+ graph_binding: z.ZodOptional<z.ZodEnum<{
6952
+ unavailable: "unavailable";
6953
+ sha256: "sha256";
6954
+ identity_only: "identity_only";
6955
+ }>>;
6956
+ graph_sha256: z.ZodOptional<z.ZodString>;
5840
6957
  workflow_id: z.ZodString;
5841
6958
  workflow_name: z.ZodOptional<z.ZodString>;
5842
6959
  }, z.core.$strip>;
@@ -5964,6 +7081,13 @@ export declare const zAgentAskServerFrame: z.ZodUnion<readonly [z.ZodObject<{
5964
7081
  prompt: z.ZodString;
5965
7082
  }, z.core.$strip>, z.ZodObject<{
5966
7083
  context: z.ZodObject<{
7084
+ doc_seq: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7085
+ graph_binding: z.ZodOptional<z.ZodEnum<{
7086
+ unavailable: "unavailable";
7087
+ sha256: "sha256";
7088
+ identity_only: "identity_only";
7089
+ }>>;
7090
+ graph_sha256: z.ZodOptional<z.ZodString>;
5967
7091
  workflow_id: z.ZodString;
5968
7092
  workflow_name: z.ZodOptional<z.ZodString>;
5969
7093
  }, z.core.$strip>;
@@ -6457,6 +7581,10 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
6457
7581
  kind: z.ZodOptional<z.ZodString>;
6458
7582
  name: z.ZodOptional<z.ZodString>;
6459
7583
  }, z.core.$strip>>>;
7584
+ thinking: z.ZodOptional<z.ZodArray<z.ZodObject<{
7585
+ text: z.ZodString;
7586
+ tool_call_id: z.ZodOptional<z.ZodString>;
7587
+ }, z.core.$strip>>>;
6460
7588
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
6461
7589
  duration_ms: z.ZodOptional<z.ZodInt>;
6462
7590
  error_code: z.ZodOptional<z.ZodString>;
@@ -6523,6 +7651,13 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
6523
7651
  prompt: z.ZodString;
6524
7652
  }, z.core.$strip>, z.ZodObject<{
6525
7653
  context: z.ZodObject<{
7654
+ doc_seq: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7655
+ graph_binding: z.ZodOptional<z.ZodEnum<{
7656
+ unavailable: "unavailable";
7657
+ sha256: "sha256";
7658
+ identity_only: "identity_only";
7659
+ }>>;
7660
+ graph_sha256: z.ZodOptional<z.ZodString>;
6526
7661
  workflow_id: z.ZodString;
6527
7662
  workflow_name: z.ZodOptional<z.ZodString>;
6528
7663
  }, z.core.$strip>;
@@ -6683,6 +7818,7 @@ export declare const zListAssetsQuery: z.ZodObject<{
6683
7818
  desc: "desc";
6684
7819
  }>>>;
6685
7820
  include_public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7821
+ workspace_library: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6686
7822
  hash: z.ZodOptional<z.ZodString>;
6687
7823
  after: z.ZodOptional<z.ZodString>;
6688
7824
  }, z.core.$strip>;
@@ -6889,10 +8025,10 @@ export declare const zCreateAssetDownloadResponse: z.ZodUnion<readonly [z.ZodInt
6889
8025
  }, z.core.$strip>>, z.ZodObject<{
6890
8026
  message: z.ZodOptional<z.ZodString>;
6891
8027
  status: z.ZodEnum<{
8028
+ failed: "failed";
6892
8029
  created: "created";
6893
8030
  running: "running";
6894
8031
  completed: "completed";
6895
- failed: "failed";
6896
8032
  cancelled: "cancelled";
6897
8033
  }>;
6898
8034
  task_id: z.ZodUUID;
@@ -6915,10 +8051,10 @@ export declare const zCreateAssetExportBody: z.ZodObject<{
6915
8051
  export declare const zCreateAssetExportResponse: z.ZodObject<{
6916
8052
  message: z.ZodOptional<z.ZodString>;
6917
8053
  status: z.ZodEnum<{
8054
+ failed: "failed";
6918
8055
  created: "created";
6919
8056
  running: "running";
6920
8057
  completed: "completed";
6921
- failed: "failed";
6922
8058
  cancelled: "cancelled";
6923
8059
  }>;
6924
8060
  task_id: z.ZodUUID;
@@ -7076,6 +8212,45 @@ export declare const zGetAssetTagHistogramQuery: z.ZodObject<{
7076
8212
  export declare const zGetAssetTagHistogramResponse: z.ZodObject<{
7077
8213
  tag_counts: z.ZodRecord<z.ZodString, z.ZodInt>;
7078
8214
  }, z.core.$strip>;
8215
+ export declare const zStartModelUploadBody: z.ZodObject<{
8216
+ filename: z.ZodString;
8217
+ size_bytes: z.ZodCoercedBigInt<unknown>;
8218
+ tags: z.ZodArray<z.ZodString>;
8219
+ }, z.core.$strip>;
8220
+ /**
8221
+ * Signed upload URL for one staged object
8222
+ */
8223
+ export declare const zStartModelUploadResponse: z.ZodObject<{
8224
+ expires_at: z.ZodISODateTime;
8225
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
8226
+ max_size_bytes: z.ZodCoercedBigInt<unknown>;
8227
+ method: z.ZodEnum<{
8228
+ PUT: "PUT";
8229
+ }>;
8230
+ upload_id: z.ZodUUID;
8231
+ upload_url: z.ZodString;
8232
+ }, z.core.$strip>;
8233
+ export declare const zCompleteModelUploadBody: z.ZodObject<{
8234
+ filename: z.ZodString;
8235
+ tags: z.ZodArray<z.ZodString>;
8236
+ }, z.core.$strip>;
8237
+ export declare const zCompleteModelUploadPath: z.ZodObject<{
8238
+ upload_id: z.ZodString;
8239
+ }, z.core.$strip>;
8240
+ /**
8241
+ * Accepted; a task stores the file as an asset
8242
+ */
8243
+ export declare const zCompleteModelUploadResponse: z.ZodObject<{
8244
+ message: z.ZodOptional<z.ZodString>;
8245
+ status: z.ZodEnum<{
8246
+ failed: "failed";
8247
+ created: "created";
8248
+ running: "running";
8249
+ completed: "completed";
8250
+ cancelled: "cancelled";
8251
+ }>;
8252
+ task_id: z.ZodUUID;
8253
+ }, z.core.$strip>;
7079
8254
  export declare const zAuthenticateBody: z.ZodObject<{
7080
8255
  email: z.ZodString;
7081
8256
  password: z.ZodOptional<z.ZodString>;
@@ -7196,6 +8371,7 @@ export declare const zExchangeTokenResponse2: z.ZodObject<{
7196
8371
  member: "member";
7197
8372
  }>;
7198
8373
  token: z.ZodString;
8374
+ user_id: z.ZodString;
7199
8375
  workspace: z.ZodObject<{
7200
8376
  id: z.ZodString;
7201
8377
  name: z.ZodString;
@@ -7214,16 +8390,29 @@ export declare const zRevokePartnerNodeSessionsResponse: z.ZodVoid;
7214
8390
  */
7215
8391
  export declare const zGetBillingAutoReloadResponse: z.ZodObject<{
7216
8392
  card_expiring_soon: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8393
+ card_expiry: z.ZodNullable<z.ZodObject<{
8394
+ expired: z.ZodBoolean;
8395
+ month: z.ZodInt;
8396
+ year: z.ZodInt;
8397
+ }, z.core.$strip>>;
7217
8398
  configured: z.ZodBoolean;
7218
8399
  cycle_resets_at: z.ZodNullable<z.ZodISODateTime>;
8400
+ declined_payment_method: z.ZodNullable<z.ZodObject<{
8401
+ brand: z.ZodNullable<z.ZodString>;
8402
+ last4: z.ZodNullable<z.ZodString>;
8403
+ type: z.ZodString;
8404
+ }, z.core.$strip>>;
7219
8405
  disabled_reason: z.ZodNullable<z.ZodString>;
7220
8406
  enabled: z.ZodBoolean;
7221
8407
  last_failure_at: z.ZodNullable<z.ZodISODateTime>;
7222
8408
  last_failure_reason: z.ZodNullable<z.ZodString>;
7223
8409
  max_monthly_budget_cents: z.ZodCoercedBigInt<unknown>;
8410
+ max_reload_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
7224
8411
  min_reload_credits: z.ZodCoercedBigInt<unknown>;
7225
8412
  monthly_budget_cents: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
8413
+ monthly_budget_is_default: z.ZodBoolean;
7226
8414
  paused_by_budget: z.ZodBoolean;
8415
+ paused_by_budget_remainder: z.ZodBoolean;
7227
8416
  paused_by_decline: z.ZodBoolean;
7228
8417
  reload_amount_cents: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
7229
8418
  reload_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
@@ -7235,12 +8424,14 @@ export declare const zGetBillingAutoReloadResponse: z.ZodObject<{
7235
8424
  paused_by_budget: "paused_by_budget";
7236
8425
  on: "on";
7237
8426
  }>;
8427
+ target_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
7238
8428
  threshold_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
7239
8429
  }, z.core.$strip>;
7240
8430
  export declare const zPutBillingAutoReloadBody: z.ZodObject<{
7241
8431
  enabled: z.ZodBoolean;
7242
8432
  monthly_budget_cents: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
7243
- reload_credits: z.ZodCoercedBigInt<unknown>;
8433
+ reload_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8434
+ target_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7244
8435
  threshold_credits: z.ZodCoercedBigInt<unknown>;
7245
8436
  }, z.core.$strip>;
7246
8437
  /**
@@ -7248,16 +8439,29 @@ export declare const zPutBillingAutoReloadBody: z.ZodObject<{
7248
8439
  */
7249
8440
  export declare const zPutBillingAutoReloadResponse: z.ZodObject<{
7250
8441
  card_expiring_soon: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8442
+ card_expiry: z.ZodNullable<z.ZodObject<{
8443
+ expired: z.ZodBoolean;
8444
+ month: z.ZodInt;
8445
+ year: z.ZodInt;
8446
+ }, z.core.$strip>>;
7251
8447
  configured: z.ZodBoolean;
7252
8448
  cycle_resets_at: z.ZodNullable<z.ZodISODateTime>;
8449
+ declined_payment_method: z.ZodNullable<z.ZodObject<{
8450
+ brand: z.ZodNullable<z.ZodString>;
8451
+ last4: z.ZodNullable<z.ZodString>;
8452
+ type: z.ZodString;
8453
+ }, z.core.$strip>>;
7253
8454
  disabled_reason: z.ZodNullable<z.ZodString>;
7254
8455
  enabled: z.ZodBoolean;
7255
8456
  last_failure_at: z.ZodNullable<z.ZodISODateTime>;
7256
8457
  last_failure_reason: z.ZodNullable<z.ZodString>;
7257
8458
  max_monthly_budget_cents: z.ZodCoercedBigInt<unknown>;
8459
+ max_reload_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
7258
8460
  min_reload_credits: z.ZodCoercedBigInt<unknown>;
7259
8461
  monthly_budget_cents: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
8462
+ monthly_budget_is_default: z.ZodBoolean;
7260
8463
  paused_by_budget: z.ZodBoolean;
8464
+ paused_by_budget_remainder: z.ZodBoolean;
7261
8465
  paused_by_decline: z.ZodBoolean;
7262
8466
  reload_amount_cents: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
7263
8467
  reload_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
@@ -7269,8 +8473,27 @@ export declare const zPutBillingAutoReloadResponse: z.ZodObject<{
7269
8473
  paused_by_budget: "paused_by_budget";
7270
8474
  on: "on";
7271
8475
  }>;
8476
+ target_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
7272
8477
  threshold_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
7273
8478
  }, z.core.$strip>;
8479
+ export declare const zGetBillingAutoReloadPreviewQuery: z.ZodObject<{
8480
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
8481
+ target_credits: z.ZodCoercedBigInt<unknown>;
8482
+ monthly_budget_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8483
+ }, z.core.$strip>;
8484
+ /**
8485
+ * Success
8486
+ */
8487
+ export declare const zGetBillingAutoReloadPreviewResponse: z.ZodObject<{
8488
+ charge_cents: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
8489
+ charge_credits: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
8490
+ charges_now: z.ZodBoolean;
8491
+ not_charging_reason: z.ZodEnum<{
8492
+ above_threshold: "above_threshold";
8493
+ monthly_budget: "monthly_budget";
8494
+ paused_by_decline: "paused_by_decline";
8495
+ }>;
8496
+ }, z.core.$strip>;
7274
8497
  /**
7275
8498
  * Credit balance
7276
8499
  */
@@ -7279,11 +8502,16 @@ export declare const zGetBillingBalanceResponse: z.ZodObject<{
7279
8502
  amount_micros: z.ZodNumber;
7280
8503
  cloud_credit_balance_cents: z.ZodOptional<z.ZodNumber>;
7281
8504
  cloud_credit_balance_micros: z.ZodOptional<z.ZodNumber>;
8505
+ cloud_credit_display_balance_cents: z.ZodOptional<z.ZodNumber>;
7282
8506
  currency: z.ZodString;
7283
8507
  effective_balance_authoritative: z.ZodOptional<z.ZodBoolean>;
7284
8508
  effective_balance_cents: z.ZodOptional<z.ZodNumber>;
7285
8509
  effective_balance_micros: z.ZodOptional<z.ZodNumber>;
7286
8510
  low_balance: z.ZodOptional<z.ZodBoolean>;
8511
+ max_topup_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8512
+ max_topup_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8513
+ min_topup_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8514
+ min_topup_credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7287
8515
  pending_charges_cents: z.ZodOptional<z.ZodNumber>;
7288
8516
  pending_charges_micros: z.ZodOptional<z.ZodNumber>;
7289
8517
  prepaid_balance_cents: z.ZodOptional<z.ZodNumber>;
@@ -7294,6 +8522,7 @@ export declare const zGetBillingBalanceResponse: z.ZodObject<{
7294
8522
  * Effective billing capabilities
7295
8523
  */
7296
8524
  export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
8525
+ auto_top_up_enabled: z.ZodBoolean;
7297
8526
  auto_top_up_setup: z.ZodOptional<z.ZodObject<{
7298
8527
  reason: z.ZodOptional<z.ZodEnum<{
7299
8528
  billing_operation_parked: "billing_operation_parked";
@@ -7311,6 +8540,7 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
7311
8540
  subscription_tier_unrecognized: "subscription_tier_unrecognized";
7312
8541
  subscription_state_unknown: "subscription_state_unknown";
7313
8542
  default_payment_method_missing: "default_payment_method_missing";
8543
+ default_payment_method_unsupported: "default_payment_method_unsupported";
7314
8544
  }>>;
7315
8545
  state: z.ZodEnum<{
7316
8546
  ready: "ready";
@@ -7331,6 +8561,7 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
7331
8561
  can_manage_members: z.ZodBoolean;
7332
8562
  can_manage_partner_node_access: z.ZodBoolean;
7333
8563
  can_manage_subscription: z.ZodBoolean;
8564
+ can_open_plans: z.ZodBoolean;
7334
8565
  can_reactivate: z.ZodBoolean;
7335
8566
  can_revert_scheduled_change: z.ZodBoolean;
7336
8567
  can_run_workflows: z.ZodBoolean;
@@ -7432,6 +8663,15 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
7432
8663
  not_a_member: "not_a_member";
7433
8664
  not_workspace_owner: "not_workspace_owner";
7434
8665
  }>>;
8666
+ can_open_plans: z.ZodOptional<z.ZodEnum<{
8667
+ not_a_member: "not_a_member";
8668
+ not_workspace_owner: "not_workspace_owner";
8669
+ not_original_owner: "not_original_owner";
8670
+ tier_not_self_serve: "tier_not_self_serve";
8671
+ subscription_not_started: "subscription_not_started";
8672
+ subscription_status_unrecognized: "subscription_status_unrecognized";
8673
+ creator_only_provisioning: "creator_only_provisioning";
8674
+ }>>;
7435
8675
  can_reactivate: z.ZodOptional<z.ZodEnum<{
7436
8676
  not_a_member: "not_a_member";
7437
8677
  not_workspace_owner: "not_workspace_owner";
@@ -7485,6 +8725,7 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
7485
8725
  subscription_status_unrecognized: "subscription_status_unrecognized";
7486
8726
  creator_only_provisioning: "creator_only_provisioning";
7487
8727
  payment_past_due: "payment_past_due";
8728
+ topup_purchases_paused: "topup_purchases_paused";
7488
8729
  }>>;
7489
8730
  can_upgrade: z.ZodOptional<z.ZodEnum<{
7490
8731
  not_a_member: "not_a_member";
@@ -7519,10 +8760,11 @@ export declare const zGetBillingCapabilitiesResponse: z.ZodObject<{
7519
8760
  }>>;
7520
8761
  }, z.core.$strip>>;
7521
8762
  expires_at: z.ZodISODateTime;
8763
+ has_parked_billing_operation: z.ZodOptional<z.ZodBoolean>;
7522
8764
  payment_recovery_available: z.ZodOptional<z.ZodBoolean>;
7523
8765
  plan_kind: z.ZodOptional<z.ZodEnum<{
7524
- sales_managed: "sales_managed";
7525
8766
  none: "none";
8767
+ sales_managed: "sales_managed";
7526
8768
  self_serve: "self_serve";
7527
8769
  }>>;
7528
8770
  recovery_route: z.ZodOptional<z.ZodEnum<{
@@ -7624,9 +8866,11 @@ export declare const zGetBillingEventsQuery: z.ZodObject<{
7624
8866
  * Paginated billing events
7625
8867
  */
7626
8868
  export declare const zGetBillingEventsResponse: z.ZodObject<{
8869
+ attribution_since: z.ZodOptional<z.ZodISODateTime>;
7627
8870
  events: z.ZodArray<z.ZodObject<{
7628
8871
  api_key_name: z.ZodOptional<z.ZodString>;
7629
8872
  api_key_prefix: z.ZodOptional<z.ZodString>;
8873
+ api_key_revoked: z.ZodOptional<z.ZodBoolean>;
7630
8874
  createdAt: z.ZodISODateTime;
7631
8875
  deployment_id: z.ZodOptional<z.ZodString>;
7632
8876
  deployment_name: z.ZodOptional<z.ZodString>;
@@ -7637,6 +8881,7 @@ export declare const zGetBillingEventsResponse: z.ZodObject<{
7637
8881
  member_former: z.ZodOptional<z.ZodBoolean>;
7638
8882
  member_user_id: z.ZodOptional<z.ZodString>;
7639
8883
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8884
+ unattributed: z.ZodOptional<z.ZodBoolean>;
7640
8885
  }, z.core.$strip>>;
7641
8886
  limit: z.ZodInt;
7642
8887
  page: z.ZodInt;
@@ -7652,6 +8897,7 @@ export declare const zGetBillingOpStatusPath: z.ZodObject<{
7652
8897
  export declare const zGetBillingOpStatusResponse: z.ZodObject<{
7653
8898
  action_url: z.ZodOptional<z.ZodString>;
7654
8899
  amount_charged_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8900
+ authentication_deadline: z.ZodOptional<z.ZodISODateTime>;
7655
8901
  authentication_state: z.ZodOptional<z.ZodEnum<{
7656
8902
  succeeded: "succeeded";
7657
8903
  requires_action: "requires_action";
@@ -7695,6 +8941,14 @@ export declare const zGetBillingOpStatusResponse: z.ZodObject<{
7695
8941
  }>;
7696
8942
  }, z.core.$strip>>;
7697
8943
  }, z.core.$strip>>;
8944
+ checkout_state: z.ZodOptional<z.ZodEnum<{
8945
+ failed: "failed";
8946
+ none: "none";
8947
+ processing: "processing";
8948
+ unfinished: "unfinished";
8949
+ verify_payment: "verify_payment";
8950
+ payment_received: "payment_received";
8951
+ }>>;
7698
8952
  completed_at: z.ZodOptional<z.ZodISODateTime>;
7699
8953
  credits_added: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
7700
8954
  decline_reason: z.ZodOptional<z.ZodEnum<{
@@ -7750,6 +9004,12 @@ export declare const zGetBillingOpStatusResponse: z.ZodObject<{
7750
9004
  succeeded: "succeeded";
7751
9005
  reconciliation_needed: "reconciliation_needed";
7752
9006
  }>;
9007
+ topup_purchase_amount: z.ZodOptional<z.ZodObject<{
9008
+ amount_cents: z.ZodCoercedBigInt<unknown>;
9009
+ currency: z.ZodEnum<{
9010
+ usd: "usd";
9011
+ }>;
9012
+ }, z.core.$strip>>;
7753
9013
  }, z.core.$strip>;
7754
9014
  export declare const zCancelBillingOpPath: z.ZodObject<{
7755
9015
  id: z.ZodString;
@@ -7768,7 +9028,14 @@ export declare const zCancelBillingOpResponse: z.ZodObject<{
7768
9028
  * Saved payment methods
7769
9029
  */
7770
9030
  export declare const zListSavedPaymentMethodsResponse: z.ZodArray<z.ZodObject<{
9031
+ bank_name: z.ZodOptional<z.ZodString>;
7771
9032
  brand: z.ZodOptional<z.ZodString>;
9033
+ created_at: z.ZodOptional<z.ZodISODateTime>;
9034
+ email: z.ZodOptional<z.ZodString>;
9035
+ exp_month: z.ZodOptional<z.ZodInt>;
9036
+ exp_year: z.ZodOptional<z.ZodInt>;
9037
+ expired: z.ZodOptional<z.ZodBoolean>;
9038
+ expiring_soon: z.ZodOptional<z.ZodBoolean>;
7772
9039
  id: z.ZodString;
7773
9040
  is_default: z.ZodBoolean;
7774
9041
  last4: z.ZodOptional<z.ZodString>;
@@ -7794,11 +9061,11 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
7794
9061
  current_plan_slug: z.ZodOptional<z.ZodString>;
7795
9062
  plans: z.ZodArray<z.ZodObject<{
7796
9063
  action: z.ZodEnum<{
9064
+ none: "none";
7797
9065
  subscribe: "subscribe";
7798
9066
  change: "change";
7799
9067
  reactivate: "reactivate";
7800
9068
  downgrade: "downgrade";
7801
- none: "none";
7802
9069
  }>;
7803
9070
  availability: z.ZodObject<{
7804
9071
  available: z.ZodBoolean;
@@ -7836,7 +9103,31 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
7836
9103
  MONTHLY: "MONTHLY";
7837
9104
  ANNUAL: "ANNUAL";
7838
9105
  }>;
9106
+ feature_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
9107
+ key: z.ZodEnum<{
9108
+ shortRuntime: "shortRuntime";
9109
+ longRuntime: "longRuntime";
9110
+ addCredits: "addCredits";
9111
+ importModels: "importModels";
9112
+ sharedCreditPool: "sharedCreditPool";
9113
+ membersUpTo: "membersUpTo";
9114
+ perMemberCreditLimits: "perMemberCreditLimits";
9115
+ memberSpendAuditing: "memberSpendAuditing";
9116
+ sharedWorkflowsAssets: "sharedWorkflowsAssets";
9117
+ projects: "projects";
9118
+ }>;
9119
+ params: z.ZodOptional<z.ZodObject<{
9120
+ count: z.ZodCoercedBigInt<unknown>;
9121
+ }, z.core.$strip>>;
9122
+ status: z.ZodEnum<{
9123
+ available: "available";
9124
+ coming_soon: "coming_soon";
9125
+ }>;
9126
+ text: z.ZodString;
9127
+ }, z.core.$strip>>>;
9128
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
7839
9129
  max_seats: z.ZodCoercedBigInt<unknown>;
9130
+ popular: z.ZodOptional<z.ZodBoolean>;
7840
9131
  price_cents: z.ZodCoercedBigInt<unknown>;
7841
9132
  seat_summary: z.ZodObject<{
7842
9133
  seat_count: z.ZodInt;
@@ -7861,11 +9152,11 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
7861
9152
  id: z.ZodString;
7862
9153
  monthly: z.ZodObject<{
7863
9154
  action: z.ZodEnum<{
9155
+ none: "none";
7864
9156
  subscribe: "subscribe";
7865
9157
  change: "change";
7866
9158
  reactivate: "reactivate";
7867
9159
  downgrade: "downgrade";
7868
- none: "none";
7869
9160
  }>;
7870
9161
  denied_reason: z.ZodOptional<z.ZodEnum<{
7871
9162
  not_a_member: "not_a_member";
@@ -7885,15 +9176,16 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
7885
9176
  effective_at: z.ZodOptional<z.ZodISODateTime>;
7886
9177
  }, z.core.$strip>>;
7887
9178
  list_price_cents: z.ZodCoercedBigInt<unknown>;
9179
+ period_charge_cents: z.ZodCoercedBigInt<unknown>;
7888
9180
  price_cents: z.ZodCoercedBigInt<unknown>;
7889
9181
  }, z.core.$strip>;
7890
9182
  yearly: z.ZodObject<{
7891
9183
  action: z.ZodEnum<{
9184
+ none: "none";
7892
9185
  subscribe: "subscribe";
7893
9186
  change: "change";
7894
9187
  reactivate: "reactivate";
7895
9188
  downgrade: "downgrade";
7896
- none: "none";
7897
9189
  }>;
7898
9190
  denied_reason: z.ZodOptional<z.ZodEnum<{
7899
9191
  not_a_member: "not_a_member";
@@ -7913,6 +9205,7 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
7913
9205
  effective_at: z.ZodOptional<z.ZodISODateTime>;
7914
9206
  }, z.core.$strip>>;
7915
9207
  list_price_cents: z.ZodCoercedBigInt<unknown>;
9208
+ period_charge_cents: z.ZodCoercedBigInt<unknown>;
7916
9209
  price_cents: z.ZodCoercedBigInt<unknown>;
7917
9210
  }, z.core.$strip>;
7918
9211
  }, z.core.$strip>>;
@@ -8099,9 +9392,16 @@ export declare const zGetBillingStatusResponse: z.ZodObject<{
8099
9392
  inactive: "inactive";
8100
9393
  }>>;
8101
9394
  cancel_at: z.ZodOptional<z.ZodISODateTime>;
9395
+ current_period_start: z.ZodOptional<z.ZodISODateTime>;
9396
+ ended_at: z.ZodNullable<z.ZodISODateTime>;
9397
+ ended_at_unavailable_reason: z.ZodOptional<z.ZodEnum<{
9398
+ not_recorded: "not_recorded";
9399
+ }>>;
8102
9400
  has_funds: z.ZodBoolean;
8103
9401
  is_active: z.ZodBoolean;
9402
+ latest_subscription_op_id: z.ZodOptional<z.ZodString>;
8104
9403
  max_seats: z.ZodInt;
9404
+ next_credit_refill_at: z.ZodOptional<z.ZodISODateTime>;
8105
9405
  occupied_seats: z.ZodInt;
8106
9406
  payment_intent_client_secret: z.ZodOptional<z.ZodString>;
8107
9407
  pending_billing_op_id: z.ZodOptional<z.ZodString>;
@@ -8109,7 +9409,23 @@ export declare const zGetBillingStatusResponse: z.ZodObject<{
8109
9409
  subscription: "subscription";
8110
9410
  topup: "topup";
8111
9411
  }>>;
9412
+ period_credit_grant: z.ZodOptional<z.ZodObject<{
9413
+ credits: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9414
+ period: z.ZodOptional<z.ZodEnum<{
9415
+ MONTHLY: "MONTHLY";
9416
+ ANNUAL: "ANNUAL";
9417
+ }>>;
9418
+ state: z.ZodEnum<{
9419
+ none: "none";
9420
+ amount: "amount";
9421
+ unknown: "unknown";
9422
+ }>;
9423
+ }, z.core.$strip>>;
8112
9424
  plan_slug: z.ZodOptional<z.ZodString>;
9425
+ previous_plan: z.ZodOptional<z.ZodObject<{
9426
+ plan_slug: z.ZodString;
9427
+ team_credit_stop_id: z.ZodOptional<z.ZodString>;
9428
+ }, z.core.$strip>>;
8113
9429
  renewal_date: z.ZodOptional<z.ZodISODateTime>;
8114
9430
  renewal_invoice: z.ZodOptional<z.ZodObject<{
8115
9431
  amount_due: z.ZodCoercedBigInt<unknown>;
@@ -8133,13 +9449,13 @@ export declare const zGetBillingStatusResponse: z.ZodObject<{
8133
9449
  ANNUAL: "ANNUAL";
8134
9450
  }>>;
8135
9451
  subscription_state: z.ZodOptional<z.ZodEnum<{
8136
- never_subscribed: "never_subscribed";
8137
9452
  active: "active";
9453
+ paused: "paused";
9454
+ ended: "ended";
9455
+ never_subscribed: "never_subscribed";
8138
9456
  cancel_scheduled: "cancel_scheduled";
8139
9457
  past_due: "past_due";
8140
- paused: "paused";
8141
9458
  activating: "activating";
8142
- ended: "ended";
8143
9459
  }>>;
8144
9460
  subscription_status: z.ZodOptional<z.ZodEnum<{
8145
9461
  active: "active";
@@ -8244,8 +9560,8 @@ export declare const zCreateTopupResponse2: z.ZodObject<{
8244
9560
  amount_cents: z.ZodCoercedBigInt<unknown>;
8245
9561
  billing_op_id: z.ZodString;
8246
9562
  status: z.ZodEnum<{
8247
- completed: "completed";
8248
9563
  failed: "failed";
9564
+ completed: "completed";
8249
9565
  pending: "pending";
8250
9566
  }>;
8251
9567
  topup_id: z.ZodString;
@@ -8295,6 +9611,29 @@ export declare const zGetTopupCheckoutResponse: z.ZodObject<{
8295
9611
  expired: "expired";
8296
9612
  }>;
8297
9613
  }, z.core.$strip>;
9614
+ export declare const zCreateInteractiveTopupBody: z.ZodObject<{
9615
+ amount_cents: z.ZodCoercedBigInt<unknown>;
9616
+ checkout_attempt_id: z.ZodOptional<z.ZodString>;
9617
+ confirmation_token: z.ZodOptional<z.ZodString>;
9618
+ idempotency_key: z.ZodString;
9619
+ make_default: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9620
+ return_url: z.ZodOptional<z.ZodString>;
9621
+ save_payment_method: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9622
+ saved_payment_method_id: z.ZodOptional<z.ZodString>;
9623
+ }, z.core.$strip>;
9624
+ /**
9625
+ * Top-up initiated successfully
9626
+ */
9627
+ export declare const zCreateInteractiveTopupResponse: z.ZodObject<{
9628
+ amount_cents: z.ZodCoercedBigInt<unknown>;
9629
+ billing_op_id: z.ZodString;
9630
+ status: z.ZodEnum<{
9631
+ failed: "failed";
9632
+ completed: "completed";
9633
+ pending: "pending";
9634
+ }>;
9635
+ topup_id: z.ZodString;
9636
+ }, z.core.$strip>;
8298
9637
  export declare const zCreateTopupQuoteBody: z.ZodObject<{
8299
9638
  amount_cents: z.ZodCoercedBigInt<unknown>;
8300
9639
  }, z.core.$strip>;
@@ -8305,6 +9644,7 @@ export declare const zCreateTopupQuoteResponse: z.ZodObject<{
8305
9644
  amount_cents: z.ZodCoercedBigInt<unknown>;
8306
9645
  credits: z.ZodCoercedBigInt<unknown>;
8307
9646
  expires_at: z.ZodISODateTime;
9647
+ payment_method_configuration_id: z.ZodOptional<z.ZodString>;
8308
9648
  }, z.core.$strip>;
8309
9649
  export declare const zGetBillingUsageTimeSeriesQuery: z.ZodObject<{
8310
9650
  group_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -8373,6 +9713,7 @@ export declare const zGetBillingUsageTimeSeriesResponse: z.ZodObject<{
8373
9713
  key: z.ZodString;
8374
9714
  key_name: z.ZodOptional<z.ZodString>;
8375
9715
  key_prefix: z.ZodOptional<z.ZodString>;
9716
+ key_revoked: z.ZodOptional<z.ZodBoolean>;
8376
9717
  kind: z.ZodOptional<z.ZodEnum<{
8377
9718
  api_key: "api_key";
8378
9719
  session: "session";
@@ -8381,6 +9722,8 @@ export declare const zGetBillingUsageTimeSeriesResponse: z.ZodObject<{
8381
9722
  owner_display_name: z.ZodOptional<z.ZodString>;
8382
9723
  owner_email: z.ZodOptional<z.ZodString>;
8383
9724
  owner_user_id: z.ZodOptional<z.ZodString>;
9725
+ provider: z.ZodOptional<z.ZodString>;
9726
+ provider_display_name: z.ZodOptional<z.ZodString>;
8384
9727
  }, z.core.$strip>>>;
8385
9728
  groups: z.ZodArray<z.ZodString>;
8386
9729
  not_available: z.ZodOptional<z.ZodObject<{
@@ -8391,6 +9734,7 @@ export declare const zGetBillingUsageTimeSeriesResponse: z.ZodObject<{
8391
9734
  }, z.core.$strip>>;
8392
9735
  served_from: z.ZodOptional<z.ZodEnum<{
8393
9736
  ledger: "ledger";
9737
+ invoice: "invoice";
8394
9738
  }>>;
8395
9739
  starting_on: z.ZodISODateTime;
8396
9740
  summary: z.ZodObject<{
@@ -8475,6 +9819,10 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
8475
9819
  ready: "ready";
8476
9820
  }>;
8477
9821
  }, z.core.$strip>>;
9822
+ 'agent-credit-usage-summary': z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9823
+ control: "control";
9824
+ treatment: "treatment";
9825
+ }>>>;
8478
9826
  'agent-free-use-message-placement': z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8479
9827
  control: "control";
8480
9828
  "top-banner": "top-banner";
@@ -8499,7 +9847,9 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
8499
9847
  requires_google_sign_in: z.ZodBoolean;
8500
9848
  }, z.core.$strip>>;
8501
9849
  max_upload_size: z.ZodOptional<z.ZodInt>;
9850
+ model_upload_folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
8502
9851
  new_free_tier_subscriptions: z.ZodOptional<z.ZodBoolean>;
9852
+ private_workflow_links_enabled: z.ZodOptional<z.ZodBoolean>;
8503
9853
  sso_enabled: z.ZodOptional<z.ZodBoolean>;
8504
9854
  stripe_publishable_key: z.ZodOptional<z.ZodString>;
8505
9855
  supports_preview_metadata: z.ZodOptional<z.ZodBoolean>;
@@ -9175,8 +10525,8 @@ export declare const zListJobsResponse: z.ZodObject<{
9175
10525
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9176
10526
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
9177
10527
  status: z.ZodEnum<{
9178
- completed: "completed";
9179
10528
  failed: "failed";
10529
+ completed: "completed";
9180
10530
  cancelled: "cancelled";
9181
10531
  pending: "pending";
9182
10532
  in_progress: "in_progress";
@@ -9229,7 +10579,12 @@ export declare const zGetJobDetailResponse: z.ZodObject<{
9229
10579
  node_type: z.ZodString;
9230
10580
  traceback: z.ZodArray<z.ZodString>;
9231
10581
  }, z.core.$strip>>;
9232
- execution_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10582
+ execution_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
10583
+ display_node: z.ZodOptional<z.ZodString>;
10584
+ node_id: z.ZodOptional<z.ZodString>;
10585
+ parent_node: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10586
+ real_node_id: z.ZodOptional<z.ZodString>;
10587
+ }, z.core.$strip>>>;
9233
10588
  execution_start_time: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9234
10589
  execution_status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9235
10590
  executor: z.ZodOptional<z.ZodEnum<{
@@ -9247,8 +10602,8 @@ export declare const zGetJobDetailResponse: z.ZodObject<{
9247
10602
  capacity: "capacity";
9248
10603
  }>>;
9249
10604
  status: z.ZodEnum<{
9250
- completed: "completed";
9251
10605
  failed: "failed";
10606
+ completed: "completed";
9252
10607
  cancelled: "cancelled";
9253
10608
  pending: "pending";
9254
10609
  in_progress: "in_progress";
@@ -9399,6 +10754,18 @@ export declare const zManageQueueResponse: z.ZodObject<{
9399
10754
  cleared: z.ZodOptional<z.ZodBoolean>;
9400
10755
  deleted: z.ZodOptional<z.ZodArray<z.ZodString>>;
9401
10756
  }, z.core.$strip>;
10757
+ /**
10758
+ * The packs the Release built without, in the order the build declared them
10759
+ */
10760
+ export declare const zGetReleaseUnsupportedPacksResponse: z.ZodObject<{
10761
+ packs: z.ZodArray<z.ZodObject<{
10762
+ cause: z.ZodString;
10763
+ folder: z.ZodString;
10764
+ registry_id: z.ZodString;
10765
+ repository: z.ZodString;
10766
+ }, z.core.$strip>>;
10767
+ release_id: z.ZodNullable<z.ZodString>;
10768
+ }, z.core.$strip>;
9402
10769
  /**
9403
10770
  * Success
9404
10771
  */
@@ -9618,10 +10985,10 @@ export declare const zListTasksResponse: z.ZodObject<{
9618
10985
  id: z.ZodUUID;
9619
10986
  started_at: z.ZodOptional<z.ZodISODateTime>;
9620
10987
  status: z.ZodEnum<{
10988
+ failed: "failed";
9621
10989
  created: "created";
9622
10990
  running: "running";
9623
10991
  completed: "completed";
9624
- failed: "failed";
9625
10992
  cancelled: "cancelled";
9626
10993
  }>;
9627
10994
  task_name: z.ZodString;
@@ -9650,10 +11017,10 @@ export declare const zGetTaskResponse: z.ZodObject<{
9650
11017
  result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9651
11018
  started_at: z.ZodOptional<z.ZodISODateTime>;
9652
11019
  status: z.ZodEnum<{
11020
+ failed: "failed";
9653
11021
  created: "created";
9654
11022
  running: "running";
9655
11023
  completed: "completed";
9656
- failed: "failed";
9657
11024
  cancelled: "cancelled";
9658
11025
  }>;
9659
11026
  task_name: z.ZodString;
@@ -9785,6 +11152,13 @@ export declare const zMoveUserdataFileResponse: z.ZodObject<{
9785
11152
  path: z.ZodOptional<z.ZodString>;
9786
11153
  size: z.ZodOptional<z.ZodInt>;
9787
11154
  }, z.core.$strip>;
11155
+ export declare const zDeleteUserdataFilePublishPath: z.ZodObject<{
11156
+ file: z.ZodString;
11157
+ }, z.core.$strip>;
11158
+ /**
11159
+ * Share revoked
11160
+ */
11161
+ export declare const zDeleteUserdataFilePublishResponse: z.ZodVoid;
9788
11162
  export declare const zGetUserdataFilePublishPath: z.ZodObject<{
9789
11163
  file: z.ZodString;
9790
11164
  }, z.core.$strip>;
@@ -9837,6 +11211,1085 @@ export declare const zGetUsersInfoResponse: z.ZodObject<{
9837
11211
  migrated: z.ZodBoolean;
9838
11212
  storage: z.ZodString;
9839
11213
  }, z.core.$strip>;
11214
+ /**
11215
+ * Editing instructions from this deployed catalog API build
11216
+ */
11217
+ export declare const zGetCatalogAgentInstructionsResponse: z.ZodString;
11218
+ /**
11219
+ * Current verified authoring context; private no-store
11220
+ */
11221
+ export declare const zGetCccAuthoringContextResponse: z.ZodObject<{
11222
+ actor_uid: z.ZodString;
11223
+ can_apply: z.ZodBoolean;
11224
+ can_edit: z.ZodBoolean;
11225
+ owner_uid: z.ZodString;
11226
+ state: z.ZodObject<{
11227
+ draft_generation: z.ZodCoercedBigInt<unknown>;
11228
+ draft_rev: z.ZodCoercedBigInt<unknown>;
11229
+ live_rev: z.ZodCoercedBigInt<unknown>;
11230
+ next_rev: z.ZodCoercedBigInt<unknown>;
11231
+ previous_live_rev: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
11232
+ }, z.core.$strip>;
11233
+ }, z.core.$strip>;
11234
+ export declare const zListCccWebsiteCardsHeaders: z.ZodObject<{
11235
+ 'X-Comfy-Catalog-Authority': z.ZodOptional<z.ZodString>;
11236
+ }, z.core.$strip>;
11237
+ export declare const zListCccWebsiteCardsQuery: z.ZodObject<{
11238
+ kind: z.ZodEnum<{
11239
+ MODEL: "MODEL";
11240
+ WORKFLOW: "WORKFLOW";
11241
+ APP: "APP";
11242
+ }>;
11243
+ limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
11244
+ cursor: z.ZodOptional<z.ZodString>;
11245
+ locale: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11246
+ en: "en";
11247
+ "zh-CN": "zh-CN";
11248
+ }>>>;
11249
+ q: z.ZodOptional<z.ZodString>;
11250
+ sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11251
+ popular: "popular";
11252
+ name: "name";
11253
+ priceAsc: "priceAsc";
11254
+ priceDesc: "priceDesc";
11255
+ }>>>;
11256
+ category: z.ZodOptional<z.ZodArray<z.ZodString>>;
11257
+ model: z.ZodOptional<z.ZodArray<z.ZodString>>;
11258
+ use: z.ZodOptional<z.ZodArray<z.ZodString>>;
11259
+ modality: z.ZodOptional<z.ZodArray<z.ZodString>>;
11260
+ provider: z.ZodOptional<z.ZodArray<z.ZodString>>;
11261
+ capability: z.ZodOptional<z.ZodArray<z.ZodString>>;
11262
+ author: z.ZodOptional<z.ZodString>;
11263
+ }, z.core.$strip>;
11264
+ /**
11265
+ * At most 24 card summaries; no graphs, inputs, examples or long bodies. Anonymous responses omit total, generation and facet counts. Cursors are audience and filter bound. LIVE cursors resume after their sort key at the current Live and clock; Draft cursors are clock and state bound and expire after five minutes.
11266
+ */
11267
+ export declare const zListCccWebsiteCardsResponse: z.ZodObject<{
11268
+ available_kinds: z.ZodArray<z.ZodEnum<{
11269
+ MODEL: "MODEL";
11270
+ WORKFLOW: "WORKFLOW";
11271
+ APP: "APP";
11272
+ }>>;
11273
+ facets: z.ZodObject<{
11274
+ categories: z.ZodArray<z.ZodObject<{
11275
+ count: z.ZodOptional<z.ZodInt>;
11276
+ label: z.ZodString;
11277
+ value: z.ZodString;
11278
+ }, z.core.$strip>>;
11279
+ models: z.ZodArray<z.ZodObject<{
11280
+ count: z.ZodOptional<z.ZodInt>;
11281
+ label: z.ZodString;
11282
+ value: z.ZodString;
11283
+ }, z.core.$strip>>;
11284
+ use_cases: z.ZodArray<z.ZodObject<{
11285
+ count: z.ZodOptional<z.ZodInt>;
11286
+ label: z.ZodString;
11287
+ value: z.ZodString;
11288
+ }, z.core.$strip>>;
11289
+ }, z.core.$strip>;
11290
+ generation: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
11291
+ has_more: z.ZodBoolean;
11292
+ items: z.ZodArray<z.ZodObject<{
11293
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11294
+ deleted: z.ZodBoolean;
11295
+ edit_version: z.ZodString;
11296
+ enabled: z.ZodBoolean;
11297
+ kind: z.ZodEnum<{
11298
+ MODEL: "MODEL";
11299
+ WORKFLOW: "WORKFLOW";
11300
+ APP: "APP";
11301
+ TEMPLATE_SET: "TEMPLATE_SET";
11302
+ }>;
11303
+ revision: z.ZodCoercedBigInt<unknown>;
11304
+ slug: z.ZodString;
11305
+ uid: z.ZodString;
11306
+ visibility: z.ZodEnum<{
11307
+ PUBLIC: "PUBLIC";
11308
+ STAFF: "STAFF";
11309
+ }>;
11310
+ visible_from: z.ZodOptional<z.ZodISODateTime>;
11311
+ }, z.core.$strip>>;
11312
+ next_cursor: z.ZodOptional<z.ZodString>;
11313
+ page_size: z.ZodInt;
11314
+ previous_cursor: z.ZodOptional<z.ZodString>;
11315
+ revision_id: z.ZodCoercedBigInt<unknown>;
11316
+ sort_orders: z.ZodArray<z.ZodEnum<{
11317
+ popular: "popular";
11318
+ name: "name";
11319
+ priceAsc: "priceAsc";
11320
+ priceDesc: "priceDesc";
11321
+ }>>;
11322
+ total: z.ZodOptional<z.ZodInt>;
11323
+ }, z.core.$strip>;
11324
+ export declare const zListCccCreatorsQuery: z.ZodObject<{
11325
+ limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
11326
+ cursor: z.ZodOptional<z.ZodString>;
11327
+ }, z.core.$strip>;
11328
+ /**
11329
+ * One page of creators
11330
+ */
11331
+ export declare const zListCccCreatorsResponse: z.ZodObject<{
11332
+ items: z.ZodArray<z.ZodObject<{
11333
+ avatar_url: z.ZodString;
11334
+ display_name: z.ZodString;
11335
+ username: z.ZodString;
11336
+ workflow_count: z.ZodInt;
11337
+ }, z.core.$strip>>;
11338
+ next_cursor: z.ZodOptional<z.ZodString>;
11339
+ }, z.core.$strip>;
11340
+ export declare const zGetCccCreatorPath: z.ZodObject<{
11341
+ username: z.ZodString;
11342
+ }, z.core.$strip>;
11343
+ /**
11344
+ * Public creator profile
11345
+ */
11346
+ export declare const zGetCccCreatorResponse: z.ZodObject<{
11347
+ avatar_url: z.ZodString;
11348
+ bio: z.ZodString;
11349
+ display_name: z.ZodString;
11350
+ links: z.ZodArray<z.ZodObject<{
11351
+ label: z.ZodString;
11352
+ url: z.ZodURL;
11353
+ }, z.core.$strip>>;
11354
+ username: z.ZodString;
11355
+ }, z.core.$strip>;
11356
+ /**
11357
+ * Build-coupled catalog instructions, permissions and endpoint contracts
11358
+ */
11359
+ export declare const zGetCatalogDocsResponse: z.ZodString;
11360
+ export declare const zBatchCccItemsBody: z.ZodObject<{
11361
+ expected_draft_rev: z.ZodCoercedBigInt<unknown>;
11362
+ items: z.ZodArray<z.ZodObject<{
11363
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11364
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11365
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11366
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11367
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11368
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11369
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11370
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11371
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11372
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11373
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11374
+ }, z.core.$strip>>;
11375
+ }, z.core.$strip>;
11376
+ export declare const zBatchCccItemsHeaders: z.ZodObject<{
11377
+ 'Idempotency-Key': z.ZodString;
11378
+ }, z.core.$strip>;
11379
+ /**
11380
+ * Flat immutable edits in request order; retry returns identical UIDs/tokens
11381
+ */
11382
+ export declare const zBatchCccItemsResponse: z.ZodArray<z.ZodObject<{
11383
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11384
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11385
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11386
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11387
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11388
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11389
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11390
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11391
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11392
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11393
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11394
+ }, z.core.$strip>>;
11395
+ export declare const zDiscardCccChangesBody: z.ZodObject<{
11396
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11397
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11398
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11399
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11400
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11401
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11402
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11403
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11404
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11405
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11406
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11407
+ }, z.core.$strip>;
11408
+ export declare const zDiscardCccChangesHeaders: z.ZodObject<{
11409
+ 'Idempotency-Key': z.ZodString;
11410
+ Prefer: z.ZodOptional<z.ZodEnum<{
11411
+ "return=minimal": "return=minimal";
11412
+ }>>;
11413
+ }, z.core.$strip>;
11414
+ /**
11415
+ * Updated complete unfiltered private staging snapshot and global unresolved_count
11416
+ */
11417
+ export declare const zDiscardCccChangesResponse: z.ZodObject<{
11418
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11419
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11420
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11421
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11422
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11423
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11424
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11425
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11426
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11427
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11428
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11429
+ }, z.core.$strip>;
11430
+ /**
11431
+ * Private exact approved changes, deferred work, state and selection digest
11432
+ */
11433
+ export declare const zGetCccFinalReviewResponse: z.ZodObject<{
11434
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11435
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11436
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11437
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11438
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11439
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11440
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11441
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11442
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11443
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11444
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11445
+ }, z.core.$strip>;
11446
+ export declare const zReviewCccCheckedPublicationBody: z.ZodObject<{
11447
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11448
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11449
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11450
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11451
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11452
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11453
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11454
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11455
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11456
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11457
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11458
+ }, z.core.$strip>;
11459
+ /**
11460
+ * Exact checked changes and unchecked private work with state and selection digest
11461
+ */
11462
+ export declare const zReviewCccCheckedPublicationResponse: z.ZodObject<{
11463
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11464
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11465
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11466
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11467
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11468
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11469
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11470
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11471
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11472
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11473
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11474
+ }, z.core.$strip>;
11475
+ export declare const zReviewCccCheckedReceiptBody: z.ZodObject<{
11476
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11477
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11478
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11479
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11480
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11481
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11482
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11483
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11484
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11485
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11486
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11487
+ }, z.core.$strip>;
11488
+ /**
11489
+ * Exact checked-version receipt after complete candidate validation
11490
+ */
11491
+ export declare const zReviewCccCheckedReceiptResponse: z.ZodObject<{
11492
+ publish_enabled: z.ZodBoolean;
11493
+ receipt_version: z.ZodLiteral<1>;
11494
+ selected_count: z.ZodInt;
11495
+ selected_versions_digest: z.ZodString;
11496
+ selection_digest: z.ZodString;
11497
+ state: z.ZodObject<{
11498
+ draft_generation: z.ZodCoercedBigInt<unknown>;
11499
+ draft_rev: z.ZodCoercedBigInt<unknown>;
11500
+ live_rev: z.ZodCoercedBigInt<unknown>;
11501
+ next_rev: z.ZodCoercedBigInt<unknown>;
11502
+ previous_live_rev: z.ZodNullable<z.ZodCoercedBigInt<unknown>>;
11503
+ }, z.core.$strip>;
11504
+ unchecked_count: z.ZodInt;
11505
+ }, z.core.$strip>;
11506
+ export declare const zCreateCccItemBody: z.ZodObject<{
11507
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11508
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11509
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11510
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11511
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11512
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11513
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11514
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11515
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11516
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11517
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11518
+ }, z.core.$strip>;
11519
+ export declare const zCreateCccItemHeaders: z.ZodObject<{
11520
+ 'Idempotency-Key': z.ZodString;
11521
+ }, z.core.$strip>;
11522
+ /**
11523
+ * Flat immutable Content edit with exact concurrency tokens
11524
+ */
11525
+ export declare const zCreateCccItemResponse: z.ZodObject<{
11526
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11527
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11528
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11529
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11530
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11531
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11532
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11533
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11534
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11535
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11536
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11537
+ }, z.core.$strip>;
11538
+ export declare const zDeleteCccItemBody: z.ZodObject<{
11539
+ expected_draft_rev: z.ZodCoercedBigInt<unknown>;
11540
+ expected_revision_uid: z.ZodUUID;
11541
+ }, z.core.$strip>;
11542
+ export declare const zDeleteCccItemHeaders: z.ZodObject<{
11543
+ 'Idempotency-Key': z.ZodString;
11544
+ }, z.core.$strip>;
11545
+ export declare const zDeleteCccItemPath: z.ZodObject<{
11546
+ uid: z.ZodUUID;
11547
+ }, z.core.$strip>;
11548
+ /**
11549
+ * Flat retained Content with is_deleted=true and new exact edit token
11550
+ */
11551
+ export declare const zDeleteCccItemResponse: z.ZodObject<{
11552
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11553
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11554
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11555
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11556
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11557
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11558
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11559
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11560
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11561
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11562
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11563
+ }, z.core.$strip>;
11564
+ export declare const zGetCccDraftItemPath: z.ZodObject<{
11565
+ uid: z.ZodUUID;
11566
+ }, z.core.$strip>;
11567
+ /**
11568
+ * Current complete authored JSON with exact working-save tokens and read-only metadata
11569
+ */
11570
+ export declare const zGetCccDraftItemResponse: z.ZodObject<{
11571
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11572
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11573
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11574
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11575
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11576
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11577
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11578
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11579
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11580
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11581
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11582
+ }, z.core.$strip>;
11583
+ export declare const zReplaceCccItemBody: z.ZodObject<{
11584
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11585
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11586
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11587
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11588
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11589
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11590
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11591
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11592
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11593
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11594
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11595
+ }, z.core.$strip>;
11596
+ export declare const zReplaceCccItemHeaders: z.ZodObject<{
11597
+ 'Idempotency-Key': z.ZodString;
11598
+ }, z.core.$strip>;
11599
+ export declare const zReplaceCccItemPath: z.ZodObject<{
11600
+ uid: z.ZodUUID;
11601
+ }, z.core.$strip>;
11602
+ /**
11603
+ * New immutable edit; owner stays fixed, author attribution is versioned and saved_by_uid records the actual editor
11604
+ */
11605
+ export declare const zReplaceCccItemResponse: z.ZodObject<{
11606
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11607
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11608
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11609
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11610
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11611
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11612
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11613
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11614
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11615
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11616
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11617
+ }, z.core.$strip>;
11618
+ export declare const zRestoreCccItemVersionBody: z.ZodObject<{
11619
+ expected_draft_rev: z.ZodCoercedBigInt<unknown>;
11620
+ expected_revision_uid: z.ZodUUID;
11621
+ source_revision_uid: z.ZodUUID;
11622
+ }, z.core.$strip>;
11623
+ export declare const zRestoreCccItemVersionHeaders: z.ZodObject<{
11624
+ 'Idempotency-Key': z.ZodString;
11625
+ }, z.core.$strip>;
11626
+ export declare const zRestoreCccItemVersionPath: z.ZodObject<{
11627
+ uid: z.ZodUUID;
11628
+ }, z.core.$strip>;
11629
+ /**
11630
+ * New immutable forward Draft save and exact concurrency tokens
11631
+ */
11632
+ export declare const zRestoreCccItemVersionResponse: z.ZodObject<{
11633
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11634
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11635
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11636
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11637
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11638
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11639
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11640
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11641
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11642
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11643
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11644
+ }, z.core.$strip>;
11645
+ export declare const zUploadCccMediaBody: z.ZodIntersection<z.ZodUnknown, z.ZodObject<{
11646
+ change_id: z.ZodOptional<z.ZodString>;
11647
+ expected_draft_rev: z.ZodInt;
11648
+ file: z.ZodOptional<z.ZodString>;
11649
+ name: z.ZodString;
11650
+ originating_entity_uid: z.ZodUUID;
11651
+ role: z.ZodString;
11652
+ upload_token: z.ZodOptional<z.ZodString>;
11653
+ }, z.core.$strip>>;
11654
+ export declare const zUploadCccMediaHeaders: z.ZodObject<{
11655
+ 'Idempotency-Key': z.ZodString;
11656
+ }, z.core.$strip>;
11657
+ /**
11658
+ * Private verified media metadata and exact Draft/edit tokens; bytes remain unreleased
11659
+ */
11660
+ export declare const zUploadCccMediaResponse: z.ZodObject<{
11661
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11662
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11663
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11664
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11665
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11666
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11667
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11668
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11669
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11670
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11671
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11672
+ }, z.core.$strip>;
11673
+ export declare const zDeleteCccMediaBody: z.ZodObject<{
11674
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11675
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11676
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11677
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11678
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11679
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11680
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11681
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11682
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11683
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11684
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11685
+ }, z.core.$strip>;
11686
+ export declare const zDeleteCccMediaHeaders: z.ZodObject<{
11687
+ 'Idempotency-Key': z.ZodString;
11688
+ }, z.core.$strip>;
11689
+ export declare const zDeleteCccMediaPath: z.ZodObject<{
11690
+ uid: z.ZodUUID;
11691
+ }, z.core.$strip>;
11692
+ /**
11693
+ * New tombstone version and Draft generation; history bytes retained
11694
+ */
11695
+ export declare const zDeleteCccMediaResponse: z.ZodObject<{
11696
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11697
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11698
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11699
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11700
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11701
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11702
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11703
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11704
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11705
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11706
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11707
+ }, z.core.$strip>;
11708
+ export declare const zReplaceCccMediaFileBody: z.ZodIntersection<z.ZodUnknown, z.ZodObject<{
11709
+ change_id: z.ZodOptional<z.ZodString>;
11710
+ expected_draft_rev: z.ZodInt;
11711
+ expected_revision_uid: z.ZodUUID;
11712
+ file: z.ZodOptional<z.ZodString>;
11713
+ name: z.ZodString;
11714
+ upload_token: z.ZodOptional<z.ZodString>;
11715
+ }, z.core.$strip>>;
11716
+ export declare const zReplaceCccMediaFileHeaders: z.ZodObject<{
11717
+ 'Idempotency-Key': z.ZodString;
11718
+ }, z.core.$strip>;
11719
+ export declare const zReplaceCccMediaFilePath: z.ZodObject<{
11720
+ uid: z.ZodUUID;
11721
+ }, z.core.$strip>;
11722
+ /**
11723
+ * New immutable Draft file-version metadata under the same media UID
11724
+ */
11725
+ export declare const zReplaceCccMediaFileResponse: z.ZodObject<{
11726
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11727
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11728
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11729
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11730
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11731
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11732
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11733
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11734
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11735
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11736
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11737
+ }, z.core.$strip>;
11738
+ export declare const zRequestCccUploadUrlBody: z.ZodObject<{
11739
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11740
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11741
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11742
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11743
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11744
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11745
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11746
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11747
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11748
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11749
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11750
+ }, z.core.$strip>;
11751
+ /**
11752
+ * Expiring private upload URL, token and required request headers
11753
+ */
11754
+ export declare const zRequestCccUploadUrlResponse: z.ZodObject<{
11755
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11756
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11757
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11758
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11759
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11760
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11761
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11762
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11763
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11764
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11765
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11766
+ }, z.core.$strip>;
11767
+ export declare const zPublishCccDraftBody: z.ZodObject<{
11768
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11769
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11770
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11771
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11772
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11773
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11774
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11775
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11776
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11777
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11778
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11779
+ }, z.core.$strip>;
11780
+ export declare const zPublishCccDraftHeaders: z.ZodObject<{
11781
+ 'Idempotency-Key': z.ZodString;
11782
+ }, z.core.$strip>;
11783
+ /**
11784
+ * New Live, previous Live and fresh Draft state after atomic commit
11785
+ */
11786
+ export declare const zPublishCccDraftResponse: z.ZodObject<{
11787
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11788
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11789
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11790
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11791
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11792
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11793
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11794
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11795
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11796
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11797
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11798
+ }, z.core.$strip>;
11799
+ export declare const zGetCccStagingQuery: z.ZodObject<{
11800
+ representation: z.ZodOptional<z.ZodEnum<{
11801
+ page: "page";
11802
+ selection: "selection";
11803
+ detail: "detail";
11804
+ }>>;
11805
+ limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
11806
+ cursor: z.ZodOptional<z.ZodString>;
11807
+ sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11808
+ name: "name";
11809
+ latest: "latest";
11810
+ }>>>;
11811
+ change: z.ZodOptional<z.ZodEnum<{
11812
+ new: "new";
11813
+ updates: "updates";
11814
+ }>>;
11815
+ uid: z.ZodOptional<z.ZodUUID>;
11816
+ search: z.ZodOptional<z.ZodString>;
11817
+ author_uid: z.ZodOptional<z.ZodString>;
11818
+ change_id: z.ZodOptional<z.ZodString>;
11819
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
11820
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11821
+ workflow: "workflow";
11822
+ app: "app";
11823
+ model: "model";
11824
+ media: "media";
11825
+ template_set: "template_set";
11826
+ }>>>;
11827
+ statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11828
+ NEW: "NEW";
11829
+ APPROVED: "APPROVED";
11830
+ DEFERRED: "DEFERRED";
11831
+ DELETED: "DELETED";
11832
+ }>>>;
11833
+ }, z.core.$strip>;
11834
+ /**
11835
+ * Private review with exact Draft generation and optional sparse page metadata
11836
+ */
11837
+ export declare const zGetCccStagingResponse: z.ZodObject<{
11838
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11839
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11840
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11841
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11842
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11843
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11844
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11845
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11846
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11847
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11848
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11849
+ }, z.core.$strip>;
11850
+ export declare const zStageCccChangesBody: z.ZodObject<{
11851
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11852
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11853
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11854
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11855
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11856
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11857
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11858
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11859
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11860
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11861
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11862
+ }, z.core.$strip>;
11863
+ export declare const zStageCccChangesHeaders: z.ZodObject<{
11864
+ 'Idempotency-Key': z.ZodString;
11865
+ }, z.core.$strip>;
11866
+ /**
11867
+ * Atomic matching-set decisions and updated private staging state
11868
+ */
11869
+ export declare const zStageCccChangesResponse: z.ZodObject<{
11870
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11871
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11872
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11873
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11874
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11875
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11876
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11877
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11878
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11879
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11880
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11881
+ }, z.core.$strip>;
11882
+ export declare const zListContentCatalogItemsHeaders: z.ZodObject<{
11883
+ 'X-Comfy-Catalog-Authority': z.ZodOptional<z.ZodString>;
11884
+ }, z.core.$strip>;
11885
+ export declare const zListContentCatalogItemsQuery: z.ZodObject<{
11886
+ q: z.ZodOptional<z.ZodString>;
11887
+ slug: z.ZodOptional<z.ZodString>;
11888
+ kind: z.ZodOptional<z.ZodEnum<{
11889
+ MODEL: "MODEL";
11890
+ WORKFLOW: "WORKFLOW";
11891
+ APP: "APP";
11892
+ }>>;
11893
+ type: z.ZodOptional<z.ZodEnum<{
11894
+ workflow: "workflow";
11895
+ app: "app";
11896
+ model: "model";
11897
+ template_set: "template_set";
11898
+ }>>;
11899
+ surface: z.ZodOptional<z.ZodEnum<{
11900
+ hub: "hub";
11901
+ cloud_templates: "cloud_templates";
11902
+ local_templates: "local_templates";
11903
+ desktop_starters: "desktop_starters";
11904
+ nvidia_performance_tests: "nvidia_performance_tests";
11905
+ }>>;
11906
+ tag: z.ZodOptional<z.ZodString>;
11907
+ use_case: z.ZodOptional<z.ZodString>;
11908
+ sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11909
+ sort_order: "sort_order";
11910
+ title: "title";
11911
+ }>>>;
11912
+ limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
11913
+ cursor: z.ZodOptional<z.ZodString>;
11914
+ workflow_slug: z.ZodOptional<z.ZodString>;
11915
+ }, z.core.$strip>;
11916
+ /**
11917
+ * Bounded LIVE page with continuation metadata
11918
+ */
11919
+ export declare const zListContentCatalogItemsResponse: z.ZodIntersection<z.ZodObject<{
11920
+ generation: z.ZodCoercedBigInt<unknown>;
11921
+ items: z.ZodArray<z.ZodObject<{
11922
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11923
+ deleted: z.ZodBoolean;
11924
+ edit_version: z.ZodString;
11925
+ enabled: z.ZodBoolean;
11926
+ kind: z.ZodEnum<{
11927
+ MODEL: "MODEL";
11928
+ WORKFLOW: "WORKFLOW";
11929
+ APP: "APP";
11930
+ TEMPLATE_SET: "TEMPLATE_SET";
11931
+ }>;
11932
+ revision: z.ZodCoercedBigInt<unknown>;
11933
+ slug: z.ZodString;
11934
+ uid: z.ZodString;
11935
+ visibility: z.ZodEnum<{
11936
+ PUBLIC: "PUBLIC";
11937
+ STAFF: "STAFF";
11938
+ }>;
11939
+ visible_from: z.ZodOptional<z.ZodISODateTime>;
11940
+ }, z.core.$strip>>;
11941
+ revision_id: z.ZodCoercedBigInt<unknown>;
11942
+ }, z.core.$strip>, z.ZodObject<{
11943
+ has_more: z.ZodBoolean;
11944
+ next_cursor: z.ZodOptional<z.ZodString>;
11945
+ page_size: z.ZodInt;
11946
+ }, z.core.$strip>>;
11947
+ export declare const zGetContentCatalogItemHeaders: z.ZodObject<{
11948
+ 'X-Comfy-Catalog-Authority': z.ZodOptional<z.ZodString>;
11949
+ }, z.core.$strip>;
11950
+ export declare const zGetContentCatalogItemPath: z.ZodObject<{
11951
+ uid: z.ZodString;
11952
+ }, z.core.$strip>;
11953
+ /**
11954
+ * Website content record
11955
+ */
11956
+ export declare const zGetContentCatalogItemResponse: z.ZodObject<{
11957
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11958
+ deleted: z.ZodBoolean;
11959
+ edit_version: z.ZodString;
11960
+ enabled: z.ZodBoolean;
11961
+ kind: z.ZodEnum<{
11962
+ MODEL: "MODEL";
11963
+ WORKFLOW: "WORKFLOW";
11964
+ APP: "APP";
11965
+ TEMPLATE_SET: "TEMPLATE_SET";
11966
+ }>;
11967
+ revision: z.ZodCoercedBigInt<unknown>;
11968
+ slug: z.ZodString;
11969
+ uid: z.ZodString;
11970
+ visibility: z.ZodEnum<{
11971
+ PUBLIC: "PUBLIC";
11972
+ STAFF: "STAFF";
11973
+ }>;
11974
+ visible_from: z.ZodOptional<z.ZodISODateTime>;
11975
+ }, z.core.$strip>;
11976
+ export declare const zGetCccItemHistoryPath: z.ZodObject<{
11977
+ uid: z.ZodUUID;
11978
+ }, z.core.$strip>;
11979
+ export declare const zGetCccItemHistoryQuery: z.ZodObject<{
11980
+ limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
11981
+ cursor: z.ZodOptional<z.ZodString>;
11982
+ }, z.core.$strip>;
11983
+ /**
11984
+ * Flat immutable items with catalog_status and saved_at, has_more and optional opaque next_cursor; no total
11985
+ */
11986
+ export declare const zGetCccItemHistoryResponse: z.ZodObject<{
11987
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11988
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11989
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11990
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11991
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
11992
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
11993
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11994
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11995
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
11996
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
11997
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
11998
+ }, z.core.$strip>;
11999
+ export declare const zGetCccLegacyTargetPath: z.ZodObject<{
12000
+ source: z.ZodString;
12001
+ id: z.ZodString;
12002
+ }, z.core.$strip>;
12003
+ /**
12004
+ * Current Hub page of the mapped record
12005
+ */
12006
+ export declare const zGetCccLegacyTargetResponse: z.ZodObject<{
12007
+ path: z.ZodString;
12008
+ slug: z.ZodString;
12009
+ type: z.ZodEnum<{
12010
+ workflow: "workflow";
12011
+ app: "app";
12012
+ model: "model";
12013
+ }>;
12014
+ }, z.core.$strip>;
12015
+ export declare const zGetCccPublicMediaBytesPath: z.ZodObject<{
12016
+ uid: z.ZodUUID;
12017
+ version: z.ZodUUID;
12018
+ }, z.core.$strip>;
12019
+ /**
12020
+ * Exact current LIVE bytes; authority checked before byte access; no-store
12021
+ */
12022
+ export declare const zGetCccPublicMediaBytesResponse: z.ZodString;
12023
+ export declare const zHeadCccPublicMediaBytesPath: z.ZodObject<{
12024
+ uid: z.ZodUUID;
12025
+ version: z.ZodUUID;
12026
+ }, z.core.$strip>;
12027
+ export declare const zListCccWebsiteModelDirectoryHeaders: z.ZodObject<{
12028
+ 'X-Comfy-Catalog-Authority': z.ZodOptional<z.ZodString>;
12029
+ }, z.core.$strip>;
12030
+ export declare const zListCccWebsiteModelDirectoryQuery: z.ZodObject<{
12031
+ locale: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12032
+ en: "en";
12033
+ "zh-CN": "zh-CN";
12034
+ }>>>;
12035
+ }, z.core.$strip>;
12036
+ /**
12037
+ * Complete eligible model directory, without Draft generation
12038
+ */
12039
+ export declare const zListCccWebsiteModelDirectoryResponse: z.ZodObject<{
12040
+ generation: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
12041
+ items: z.ZodArray<z.ZodObject<{
12042
+ provider: z.ZodString;
12043
+ slug: z.ZodString;
12044
+ title: z.ZodString;
12045
+ uid: z.ZodUUID;
12046
+ }, z.core.$strip>>;
12047
+ revision_id: z.ZodCoercedBigInt<unknown>;
12048
+ }, z.core.$strip>;
12049
+ /**
12050
+ * Catalog OpenAPI with contract fingerprint and environment
12051
+ */
12052
+ export declare const zGetCatalogOpenApiResponse: z.ZodObject<{
12053
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12054
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12055
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12056
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12057
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12058
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
12059
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12060
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
12061
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
12062
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12063
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
12064
+ }, z.core.$strip>;
12065
+ export declare const zGetCccPreviewMediaBytesPath: z.ZodObject<{
12066
+ rev: z.ZodInt;
12067
+ uid: z.ZodUUID;
12068
+ version: z.ZodUUID;
12069
+ }, z.core.$strip>;
12070
+ /**
12071
+ * Verified selected bytes; private no-store; no origin redirect
12072
+ */
12073
+ export declare const zGetCccPreviewMediaBytesResponse: z.ZodString;
12074
+ export declare const zHeadCccPreviewMediaBytesPath: z.ZodObject<{
12075
+ rev: z.ZodInt;
12076
+ uid: z.ZodUUID;
12077
+ version: z.ZodUUID;
12078
+ }, z.core.$strip>;
12079
+ /**
12080
+ * Current public authority and its next time boundary; no private identifiers
12081
+ */
12082
+ export declare const zGetCccPublicCacheAuthorityResponse: z.ZodObject<{
12083
+ as_of: z.ZodISODateTime;
12084
+ next_visibility_at: z.ZodNullable<z.ZodISODateTime>;
12085
+ revision_id: z.ZodCoercedBigInt<unknown>;
12086
+ token: z.ZodString;
12087
+ valid_until: z.ZodISODateTime;
12088
+ }, z.core.$strip>;
12089
+ export declare const zGetCccRevisionItemPath: z.ZodObject<{
12090
+ rev: z.ZodCoercedBigInt<unknown>;
12091
+ uid: z.ZodUUID;
12092
+ }, z.core.$strip>;
12093
+ /**
12094
+ * Flat Content and exact edit/revision context
12095
+ */
12096
+ export declare const zGetCccRevisionItemResponse: z.ZodObject<{
12097
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12098
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12099
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12100
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12101
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12102
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
12103
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12104
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
12105
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
12106
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12107
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
12108
+ }, z.core.$strip>;
12109
+ export declare const zGetCccWebsiteRootPresentationHeaders: z.ZodObject<{
12110
+ 'X-Comfy-Catalog-Authority': z.ZodOptional<z.ZodString>;
12111
+ }, z.core.$strip>;
12112
+ export declare const zGetCccWebsiteRootPresentationQuery: z.ZodObject<{
12113
+ path: z.ZodEnum<{
12114
+ "/hub/models/": "/hub/models/";
12115
+ "/hub/workflows/": "/hub/workflows/";
12116
+ "/hub/apps/": "/hub/apps/";
12117
+ }>;
12118
+ locale: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12119
+ en: "en";
12120
+ "zh-CN": "zh-CN";
12121
+ }>>>;
12122
+ revision_id: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
12123
+ }, z.core.$strip>;
12124
+ /**
12125
+ * Complete root metadata; no personal data or executable bodies
12126
+ */
12127
+ export declare const zGetCccWebsiteRootPresentationResponse: z.ZodObject<{
12128
+ as_of: z.ZodISODateTime;
12129
+ items: z.ZodArray<z.ZodObject<{
12130
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12131
+ deleted: z.ZodBoolean;
12132
+ edit_version: z.ZodString;
12133
+ enabled: z.ZodBoolean;
12134
+ kind: z.ZodEnum<{
12135
+ MODEL: "MODEL";
12136
+ WORKFLOW: "WORKFLOW";
12137
+ APP: "APP";
12138
+ TEMPLATE_SET: "TEMPLATE_SET";
12139
+ }>;
12140
+ revision: z.ZodCoercedBigInt<unknown>;
12141
+ slug: z.ZodString;
12142
+ uid: z.ZodString;
12143
+ visibility: z.ZodEnum<{
12144
+ PUBLIC: "PUBLIC";
12145
+ STAFF: "STAFF";
12146
+ }>;
12147
+ visible_from: z.ZodOptional<z.ZodISODateTime>;
12148
+ }, z.core.$strip>>;
12149
+ model_directory: z.ZodObject<{
12150
+ generation: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
12151
+ items: z.ZodArray<z.ZodObject<{
12152
+ provider: z.ZodString;
12153
+ slug: z.ZodString;
12154
+ title: z.ZodString;
12155
+ uid: z.ZodUUID;
12156
+ }, z.core.$strip>>;
12157
+ revision_id: z.ZodCoercedBigInt<unknown>;
12158
+ }, z.core.$strip>;
12159
+ next_visibility_at: z.ZodNullable<z.ZodISODateTime>;
12160
+ revision_id: z.ZodCoercedBigInt<unknown>;
12161
+ tabs: z.ZodObject<{
12162
+ apps: z.ZodObject<{
12163
+ facets: z.ZodObject<{
12164
+ categories: z.ZodArray<z.ZodObject<{
12165
+ count: z.ZodOptional<z.ZodInt>;
12166
+ label: z.ZodString;
12167
+ value: z.ZodString;
12168
+ }, z.core.$strip>>;
12169
+ models: z.ZodArray<z.ZodObject<{
12170
+ count: z.ZodOptional<z.ZodInt>;
12171
+ label: z.ZodString;
12172
+ value: z.ZodString;
12173
+ }, z.core.$strip>>;
12174
+ use_cases: z.ZodArray<z.ZodObject<{
12175
+ count: z.ZodOptional<z.ZodInt>;
12176
+ label: z.ZodString;
12177
+ value: z.ZodString;
12178
+ }, z.core.$strip>>;
12179
+ }, z.core.$strip>;
12180
+ page: z.ZodObject<{
12181
+ has_more: z.ZodBoolean;
12182
+ page_size: z.ZodLiteral<24>;
12183
+ }, z.core.$strip>;
12184
+ sort_orders: z.ZodArray<z.ZodEnum<{
12185
+ popular: "popular";
12186
+ name: "name";
12187
+ priceAsc: "priceAsc";
12188
+ priceDesc: "priceDesc";
12189
+ }>>;
12190
+ }, z.core.$strip>;
12191
+ models: z.ZodObject<{
12192
+ facets: z.ZodObject<{
12193
+ categories: z.ZodArray<z.ZodObject<{
12194
+ count: z.ZodOptional<z.ZodInt>;
12195
+ label: z.ZodString;
12196
+ value: z.ZodString;
12197
+ }, z.core.$strip>>;
12198
+ models: z.ZodArray<z.ZodObject<{
12199
+ count: z.ZodOptional<z.ZodInt>;
12200
+ label: z.ZodString;
12201
+ value: z.ZodString;
12202
+ }, z.core.$strip>>;
12203
+ use_cases: z.ZodArray<z.ZodObject<{
12204
+ count: z.ZodOptional<z.ZodInt>;
12205
+ label: z.ZodString;
12206
+ value: z.ZodString;
12207
+ }, z.core.$strip>>;
12208
+ }, z.core.$strip>;
12209
+ page: z.ZodObject<{
12210
+ has_more: z.ZodBoolean;
12211
+ page_size: z.ZodLiteral<24>;
12212
+ }, z.core.$strip>;
12213
+ sort_orders: z.ZodArray<z.ZodEnum<{
12214
+ popular: "popular";
12215
+ name: "name";
12216
+ priceAsc: "priceAsc";
12217
+ priceDesc: "priceDesc";
12218
+ }>>;
12219
+ }, z.core.$strip>;
12220
+ workflows: z.ZodObject<{
12221
+ facets: z.ZodObject<{
12222
+ categories: z.ZodArray<z.ZodObject<{
12223
+ count: z.ZodOptional<z.ZodInt>;
12224
+ label: z.ZodString;
12225
+ value: z.ZodString;
12226
+ }, z.core.$strip>>;
12227
+ models: z.ZodArray<z.ZodObject<{
12228
+ count: z.ZodOptional<z.ZodInt>;
12229
+ label: z.ZodString;
12230
+ value: z.ZodString;
12231
+ }, z.core.$strip>>;
12232
+ use_cases: z.ZodArray<z.ZodObject<{
12233
+ count: z.ZodOptional<z.ZodInt>;
12234
+ label: z.ZodString;
12235
+ value: z.ZodString;
12236
+ }, z.core.$strip>>;
12237
+ }, z.core.$strip>;
12238
+ page: z.ZodObject<{
12239
+ has_more: z.ZodBoolean;
12240
+ page_size: z.ZodLiteral<24>;
12241
+ }, z.core.$strip>;
12242
+ sort_orders: z.ZodArray<z.ZodEnum<{
12243
+ popular: "popular";
12244
+ name: "name";
12245
+ priceAsc: "priceAsc";
12246
+ priceDesc: "priceDesc";
12247
+ }>>;
12248
+ }, z.core.$strip>;
12249
+ }, z.core.$strip>;
12250
+ }, z.core.$strip>;
12251
+ export declare const zGetCccTypeSchemaPath: z.ZodObject<{
12252
+ type: z.ZodEnum<{
12253
+ workflow: "workflow";
12254
+ app: "app";
12255
+ model: "model";
12256
+ media: "media";
12257
+ template_set: "template_set";
12258
+ }>;
12259
+ schema_version: z.ZodInt;
12260
+ }, z.core.$strip>;
12261
+ /**
12262
+ * Build-coupled OpenAPI 3.0 schema object, type, version and API environment
12263
+ */
12264
+ export declare const zGetCccTypeSchemaResponse: z.ZodObject<{
12265
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12266
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12267
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12268
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12269
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12270
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
12271
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12272
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
12273
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
12274
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12275
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
12276
+ }, z.core.$strip>;
12277
+ /**
12278
+ * Private state; never cacheable
12279
+ */
12280
+ export declare const zGetCccStateResponse: z.ZodObject<{
12281
+ catalog_rev: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12282
+ creator_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12283
+ digest: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12284
+ draft_generation: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12285
+ edit_sequence: z.ZodOptional<z.ZodReadonly<z.ZodCoercedBigInt<unknown>>>;
12286
+ is_deleted: z.ZodOptional<z.ZodReadonly<z.ZodBoolean>>;
12287
+ owner_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12288
+ revision_uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
12289
+ saved_at: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
12290
+ saved_by_uid: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
12291
+ uid: z.ZodOptional<z.ZodReadonly<z.ZodUUID>>;
12292
+ }, z.core.$strip>;
9840
12293
  export declare const zGetVhsQueryVideoQuery: z.ZodObject<{
9841
12294
  filename: z.ZodString;
9842
12295
  workspace_id: z.ZodOptional<z.ZodString>;
@@ -10351,11 +12804,28 @@ export declare const zPutProviderPolicyResponse: z.ZodObject<{
10351
12804
  export declare const zListWorkspacesResponse2: z.ZodObject<{
10352
12805
  can_create_workspace: z.ZodBoolean;
10353
12806
  default_workspace_id: z.ZodOptional<z.ZodString>;
12807
+ denied_reasons: z.ZodOptional<z.ZodObject<{
12808
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
12809
+ organization_managed: "organization_managed";
12810
+ owned_workspace_limit: "owned_workspace_limit";
12811
+ }>>;
12812
+ }, z.core.$strip>>;
12813
+ max_owned_workspaces: z.ZodInt;
10354
12814
  workspaces: z.ZodArray<z.ZodObject<{
10355
12815
  created_at: z.ZodISODateTime;
10356
12816
  id: z.ZodString;
10357
12817
  joined_at: z.ZodISODateTime;
10358
12818
  name: z.ZodString;
12819
+ plan_summary: z.ZodOptional<z.ZodObject<{
12820
+ plan_name: z.ZodNullable<z.ZodString>;
12821
+ status: z.ZodEnum<{
12822
+ active: "active";
12823
+ no_plan: "no_plan";
12824
+ paused: "paused";
12825
+ payment_due: "payment_due";
12826
+ ended: "ended";
12827
+ }>;
12828
+ }, z.core.$strip>>;
10359
12829
  role: z.ZodEnum<{
10360
12830
  owner: "owner";
10361
12831
  member: "member";
@@ -10469,9 +12939,27 @@ export declare const zPickWorkspaceDeploymentPath: z.ZodObject<{
10469
12939
  * Picked; the cookie on this response carries it
10470
12940
  */
10471
12941
  export declare const zPickWorkspaceDeploymentResponse: z.ZodVoid;
12942
+ export declare const zGetWorkspaceDeploymentCpuServerPath: z.ZodObject<{
12943
+ id: z.ZodString;
12944
+ }, z.core.$strip>;
12945
+ /**
12946
+ * Which step the deployment's CPU server is on
12947
+ */
12948
+ export declare const zGetWorkspaceDeploymentCpuServerResponse: z.ZodObject<{
12949
+ cpu_server: z.ZodEnum<{
12950
+ none: "none";
12951
+ creating: "creating";
12952
+ building: "building";
12953
+ created: "created";
12954
+ }>;
12955
+ deployment_id: z.ZodOptional<z.ZodString>;
12956
+ }, z.core.$strip>;
10472
12957
  export declare const zListWorkspaceDeploymentsPath: z.ZodObject<{
10473
12958
  id: z.ZodString;
10474
12959
  }, z.core.$strip>;
12960
+ export declare const zListWorkspaceDeploymentsQuery: z.ZodObject<{
12961
+ started_deployment_id: z.ZodOptional<z.ZodArray<z.ZodString>>;
12962
+ }, z.core.$strip>;
10475
12963
  /**
10476
12964
  * The workspace's live deployments, newest first
10477
12965
  */
@@ -10483,12 +12971,23 @@ export declare const zListWorkspaceDeploymentsResponse: z.ZodObject<{
10483
12971
  items: z.ZodArray<z.ZodObject<{
10484
12972
  build_id: z.ZodOptional<z.ZodString>;
10485
12973
  build_name: z.ZodOptional<z.ZodString>;
12974
+ can_start: z.ZodBoolean;
10486
12975
  created_at: z.ZodISODateTime;
10487
12976
  deployment_id: z.ZodString;
10488
12977
  deployment_name: z.ZodOptional<z.ZodString>;
10489
12978
  release_id: z.ZodString;
10490
12979
  release_version: z.ZodOptional<z.ZodInt>;
10491
- status: z.ZodString;
12980
+ status: z.ZodEnum<{
12981
+ queued: "queued";
12982
+ provisioning: "provisioning";
12983
+ starting: "starting";
12984
+ ready: "ready";
12985
+ unhealthy: "unhealthy";
12986
+ stopping: "stopping";
12987
+ stop_failed: "stop_failed";
12988
+ stopped: "stopped";
12989
+ failed: "failed";
12990
+ }>;
10492
12991
  }, z.core.$strip>>;
10493
12992
  pick_source: z.ZodOptional<z.ZodEnum<{
10494
12993
  browser: "browser";
@@ -10496,6 +12995,17 @@ export declare const zListWorkspaceDeploymentsResponse: z.ZodObject<{
10496
12995
  }>>;
10497
12996
  picked_deployment_id: z.ZodOptional<z.ZodString>;
10498
12997
  }, z.core.$strip>;
12998
+ export declare const zStartWorkspaceDeploymentPath: z.ZodObject<{
12999
+ id: z.ZodString;
13000
+ deployment_id: z.ZodString;
13001
+ }, z.core.$strip>;
13002
+ /**
13003
+ * Accepted; the deployment is starting, or already up
13004
+ */
13005
+ export declare const zStartWorkspaceDeploymentResponse: z.ZodObject<{
13006
+ deployment_id: z.ZodString;
13007
+ status: z.ZodString;
13008
+ }, z.core.$strip>;
10499
13009
  export declare const zCheckWorkspaceDeploymentCompatibilityBody: z.ZodObject<{
10500
13010
  node_types: z.ZodArray<z.ZodString>;
10501
13011
  }, z.core.$strip>;