@comfyorg/ingest-types 1.8.0 → 1.9.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.
@@ -4099,6 +4099,28 @@ export type BudgetWriteResult = {
4099
4099
  */
4100
4100
  auto_top_up_conflict: boolean;
4101
4101
  budget: Budget;
4102
+ /**
4103
+ * Answers one UI question after a budget is changed: how many jobs
4104
+ * does this budget still hold that this caller may resume? A held job
4105
+ * never resumes on its own, so raising a cap leaves them held.
4106
+ * Counts the workspace's jobs in `held_budget` whose hold was made
4107
+ * by this budget (a job held because the budget check was
4108
+ * unavailable names no budget and is not counted), limited as POST
4109
+ * /api/billing/budgets/held-jobs/resume limits a workspace owner:
4110
+ * with Projects on, a job in a named project counts only where the
4111
+ * caller may queue work in that project now, and every named-project
4112
+ * job counts as none while Projects is off. Read in the same request,
4113
+ * after the change.
4114
+ * 0 means no such job, or that this credential cannot call the
4115
+ * resume (an OAuth grant without comfy-cloud:jobs:write where scopes
4116
+ * are enforced). Omitted when the read failed, on older servers, and
4117
+ * on budget create; omission means unknown, so show no count.
4118
+ * Served on PATCH /api/billing/budgets/{id} only. It does not
4119
+ * predict a resume: the resume asks the budget again, and a job can
4120
+ * stay held as budget_exceeded. Render it as received.
4121
+ *
4122
+ */
4123
+ held_jobs_count?: number;
4102
4124
  };
4103
4125
  /**
4104
4126
  * Response after bulk-revoking API keys for a workspace member.
package/dist/zod.gen.d.ts CHANGED
@@ -2810,6 +2810,7 @@ export declare const zBudgetWriteResult: z.ZodObject<{
2810
2810
  spent_micro_usd: z.ZodCoercedBigInt<unknown>;
2811
2811
  updated_by: z.ZodString;
2812
2812
  }, z.core.$strip>;
2813
+ held_jobs_count: z.ZodOptional<z.ZodInt>;
2813
2814
  }, z.core.$strip>;
2814
2815
  /**
2815
2816
  * Response after bulk-revoking API keys for a workspace member.
@@ -12159,6 +12160,7 @@ export declare const zCreateBillingBudgetResponse: z.ZodObject<{
12159
12160
  spent_micro_usd: z.ZodCoercedBigInt<unknown>;
12160
12161
  updated_by: z.ZodString;
12161
12162
  }, z.core.$strip>;
12163
+ held_jobs_count: z.ZodOptional<z.ZodInt>;
12162
12164
  }, z.core.$strip>;
12163
12165
  export declare const zDeleteBillingBudgetPath: z.ZodObject<{
12164
12166
  id: z.ZodString;
@@ -12232,6 +12234,7 @@ export declare const zUpdateBillingBudgetResponse: z.ZodObject<{
12232
12234
  spent_micro_usd: z.ZodCoercedBigInt<unknown>;
12233
12235
  updated_by: z.ZodString;
12234
12236
  }, z.core.$strip>;
12237
+ held_jobs_count: z.ZodOptional<z.ZodInt>;
12235
12238
  }, z.core.$strip>;
12236
12239
  export declare const zGetBillingBudgetHistoryPath: z.ZodObject<{
12237
12240
  id: z.ZodString;
package/dist/zod.gen.js CHANGED
@@ -1599,7 +1599,8 @@ var zBudgetUpdateRequest = z.object({
1599
1599
  });
1600
1600
  var zBudgetWriteResult = z.object({
1601
1601
  auto_top_up_conflict: z.boolean(),
1602
- budget: zBudget
1602
+ budget: zBudget,
1603
+ held_jobs_count: z.int().gte(0).optional()
1603
1604
  });
1604
1605
  /**
1605
1606
  * Response after bulk-revoking API keys for a workspace member.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/ingest-types",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Comfy Cloud Ingest API TypeScript types and Zod schemas",
5
5
  "homepage": "https://comfy.org",
6
6
  "license": "MIT",