@comfyorg/ingest-types 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zod.gen.d.ts CHANGED
@@ -16,6 +16,48 @@ export declare const zAcceptedAutoTopUpSettings: z.ZodObject<{
16
16
  target_credits: z.ZodCoercedBigInt<unknown>;
17
17
  threshold_credits: z.ZodCoercedBigInt<unknown>;
18
18
  }, z.core.$strip>;
19
+ /**
20
+ * A person named in an access change.
21
+ */
22
+ export declare const zAccessEventPerson: z.ZodObject<{
23
+ name: z.ZodString;
24
+ user_id: z.ZodString;
25
+ }, z.core.$strip>;
26
+ /**
27
+ * One change to who can access what in the workspace.
28
+ */
29
+ export declare const zAccessEvent: z.ZodObject<{
30
+ action: z.ZodString;
31
+ actor: z.ZodObject<{
32
+ name: z.ZodString;
33
+ user_id: z.ZodString;
34
+ }, z.core.$strip>;
35
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
37
+ create_time: z.ZodISODateTime;
38
+ id: z.ZodUUID;
39
+ project_id: z.ZodOptional<z.ZodString>;
40
+ project_name: z.ZodOptional<z.ZodString>;
41
+ target: z.ZodOptional<z.ZodObject<{
42
+ name: z.ZodString;
43
+ user_id: z.ZodString;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ /**
47
+ * Where the next page of access changes starts.
48
+ */
49
+ export declare const zAccessEventsPagination: z.ZodObject<{
50
+ has_more: z.ZodBoolean;
51
+ next_cursor: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>;
53
+ /**
54
+ * The upload to add to the deployment, passed to comfy-deploy as written.
55
+ */
56
+ export declare const zAddDeploymentModelRequest: z.ZodObject<{
57
+ blobId: z.ZodString;
58
+ filename: z.ZodOptional<z.ZodString>;
59
+ type: z.ZodString;
60
+ }, z.core.$strip>;
19
61
  /**
20
62
  * Returned when a request to run the agent is declined before the turn starts, because of a billing or account condition on the workspace. The `error` object carries a `message` you can show the user, a `type` that matches the HTTP status, and a more specific `reason` you can branch on to offer the right next step.
21
63
  */
@@ -434,6 +476,7 @@ export declare const zAgentPostMessageRequest: z.ZodObject<{
434
476
  delete_approval: "delete_approval";
435
477
  }>>>;
436
478
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
479
+ canvas_selection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
437
480
  client_id: z.ZodOptional<z.ZodString>;
438
481
  client_message_id: z.ZodOptional<z.ZodString>;
439
482
  client_version: z.ZodOptional<z.ZodString>;
@@ -1097,6 +1140,7 @@ export declare const zAgentThreadSummary: z.ZodObject<{
1097
1140
  export declare const zAgentToolCallData: z.ZodObject<{
1098
1141
  doc_lineage_seq: z.ZodOptional<z.ZodInt>;
1099
1142
  doc_seq: z.ZodOptional<z.ZodInt>;
1143
+ download: z.ZodOptional<z.ZodString>;
1100
1144
  duration_ms: z.ZodOptional<z.ZodInt>;
1101
1145
  error_code: z.ZodOptional<z.ZodString>;
1102
1146
  job_id: z.ZodOptional<z.ZodString>;
@@ -1121,6 +1165,7 @@ export declare const zAgentToolCallFrame: z.ZodObject<{
1121
1165
  data: z.ZodObject<{
1122
1166
  doc_lineage_seq: z.ZodOptional<z.ZodInt>;
1123
1167
  doc_seq: z.ZodOptional<z.ZodInt>;
1168
+ download: z.ZodOptional<z.ZodString>;
1124
1169
  duration_ms: z.ZodOptional<z.ZodInt>;
1125
1170
  error_code: z.ZodOptional<z.ZodString>;
1126
1171
  job_id: z.ZodOptional<z.ZodString>;
@@ -1520,6 +1565,7 @@ export declare const zAsset: z.ZodObject<{
1520
1565
  name: z.ZodString;
1521
1566
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1522
1567
  preview_url: z.ZodOptional<z.ZodURL>;
1568
+ project_id: z.ZodOptional<z.ZodString>;
1523
1569
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1524
1570
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
1525
1571
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1544,6 +1590,7 @@ export declare const zAssetCreated: z.ZodIntersection<z.ZodObject<{
1544
1590
  name: z.ZodString;
1545
1591
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1546
1592
  preview_url: z.ZodOptional<z.ZodURL>;
1593
+ project_id: z.ZodOptional<z.ZodString>;
1547
1594
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1548
1595
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
1549
1596
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -2197,26 +2244,6 @@ export declare const zBillingHandoffCheckoutRequest: z.ZodObject<{
2197
2244
  plan_slug: z.ZodString;
2198
2245
  team_credit_stop_id: z.ZodOptional<z.ZodString>;
2199
2246
  }, z.core.$strip>;
2200
- /**
2201
- * Asks for a one-time handoff that signs a billing receiver tab in as the caller.
2202
- */
2203
- export declare const zBillingHandoffCreateRequest: z.ZodObject<{
2204
- amount_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
2205
- client_version: z.ZodString;
2206
- intent: z.ZodOptional<z.ZodEnum<{
2207
- "top-up": "top-up";
2208
- subscription: "subscription";
2209
- }>>;
2210
- receiver: z.ZodEnum<{
2211
- billing_web: "billing_web";
2212
- platform: "platform";
2213
- }>;
2214
- surface: z.ZodEnum<{
2215
- local_web: "local_web";
2216
- desktop: "desktop";
2217
- }>;
2218
- workspace_id: z.ZodString;
2219
- }, z.core.$strip>;
2220
2247
  /**
2221
2248
  * An issued handoff. The token is single use and expires within 60 seconds.
2222
2249
  */
@@ -2346,10 +2373,27 @@ export declare const zBillingCompanyDetailsUpdateRequest: z.ZodObject<{
2346
2373
  value: z.ZodString;
2347
2374
  }, z.core.$strip>>;
2348
2375
  }, z.core.$strip>;
2376
+ /**
2377
+ * What happened to a threshold alert's email. `sent`: the email provider accepted it for at least one recipient, which is not proof it was delivered or read. `failed`: no one was sent it and at least one send failed. `skipped`: there was nothing to send, for example no recipient has an email address. Show `failed` and `skipped` as "not sent"; neither means the threshold was not crossed.
2378
+ *
2379
+ */
2380
+ export declare const zBudgetAlertStatus: z.ZodEnum<{
2381
+ failed: "failed";
2382
+ sent: "sent";
2383
+ skipped: "skipped";
2384
+ }>;
2385
+ /**
2386
+ * The email outcome of one threshold alert in the current billing period. It records the email, not the crossing.
2387
+ *
2388
+ */
2349
2389
  export declare const zBudgetAlert: z.ZodObject<{
2350
2390
  percent: z.ZodInt;
2351
- sent_at: z.ZodISODateTime;
2352
- status: z.ZodString;
2391
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
2392
+ status: z.ZodEnum<{
2393
+ failed: "failed";
2394
+ sent: "sent";
2395
+ skipped: "skipped";
2396
+ }>;
2353
2397
  }, z.core.$strip>;
2354
2398
  export declare const zBudgetChange: z.ZodObject<{
2355
2399
  action: z.ZodEnum<{
@@ -2411,10 +2455,16 @@ export declare const zBudget: z.ZodObject<{
2411
2455
  alert_percents: z.ZodArray<z.ZodInt>;
2412
2456
  alerts: z.ZodArray<z.ZodObject<{
2413
2457
  percent: z.ZodInt;
2414
- sent_at: z.ZodISODateTime;
2415
- status: z.ZodString;
2458
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
2459
+ status: z.ZodEnum<{
2460
+ failed: "failed";
2461
+ sent: "sent";
2462
+ skipped: "skipped";
2463
+ }>;
2416
2464
  }, z.core.$strip>>;
2465
+ alerts_available: z.ZodBoolean;
2417
2466
  created_by: z.ZodString;
2467
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
2418
2468
  ends_at: z.ZodNullable<z.ZodISODateTime>;
2419
2469
  id: z.ZodString;
2420
2470
  limit_credits: z.ZodCoercedBigInt<unknown>;
@@ -2423,6 +2473,7 @@ export declare const zBudget: z.ZodObject<{
2423
2473
  hard: "hard";
2424
2474
  soft: "soft";
2425
2475
  }>;
2476
+ owner_email: z.ZodNullable<z.ZodString>;
2426
2477
  percent_used: z.ZodCoercedBigInt<unknown>;
2427
2478
  repeat: z.ZodEnum<{
2428
2479
  current_period: "current_period";
@@ -2470,10 +2521,16 @@ export declare const zBudgetList: z.ZodObject<{
2470
2521
  alert_percents: z.ZodArray<z.ZodInt>;
2471
2522
  alerts: z.ZodArray<z.ZodObject<{
2472
2523
  percent: z.ZodInt;
2473
- sent_at: z.ZodISODateTime;
2474
- status: z.ZodString;
2524
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
2525
+ status: z.ZodEnum<{
2526
+ failed: "failed";
2527
+ sent: "sent";
2528
+ skipped: "skipped";
2529
+ }>;
2475
2530
  }, z.core.$strip>>;
2531
+ alerts_available: z.ZodBoolean;
2476
2532
  created_by: z.ZodString;
2533
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
2477
2534
  ends_at: z.ZodNullable<z.ZodISODateTime>;
2478
2535
  id: z.ZodString;
2479
2536
  limit_credits: z.ZodCoercedBigInt<unknown>;
@@ -2482,6 +2539,7 @@ export declare const zBudgetList: z.ZodObject<{
2482
2539
  hard: "hard";
2483
2540
  soft: "soft";
2484
2541
  }>;
2542
+ owner_email: z.ZodNullable<z.ZodString>;
2485
2543
  percent_used: z.ZodCoercedBigInt<unknown>;
2486
2544
  repeat: z.ZodEnum<{
2487
2545
  current_period: "current_period";
@@ -2523,10 +2581,16 @@ export declare const zBudgetWriteResult: z.ZodObject<{
2523
2581
  alert_percents: z.ZodArray<z.ZodInt>;
2524
2582
  alerts: z.ZodArray<z.ZodObject<{
2525
2583
  percent: z.ZodInt;
2526
- sent_at: z.ZodISODateTime;
2527
- status: z.ZodString;
2584
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
2585
+ status: z.ZodEnum<{
2586
+ failed: "failed";
2587
+ sent: "sent";
2588
+ skipped: "skipped";
2589
+ }>;
2528
2590
  }, z.core.$strip>>;
2591
+ alerts_available: z.ZodBoolean;
2529
2592
  created_by: z.ZodString;
2593
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
2530
2594
  ends_at: z.ZodNullable<z.ZodISODateTime>;
2531
2595
  id: z.ZodString;
2532
2596
  limit_credits: z.ZodCoercedBigInt<unknown>;
@@ -2535,6 +2599,7 @@ export declare const zBudgetWriteResult: z.ZodObject<{
2535
2599
  hard: "hard";
2536
2600
  soft: "soft";
2537
2601
  }>;
2602
+ owner_email: z.ZodNullable<z.ZodString>;
2538
2603
  percent_used: z.ZodCoercedBigInt<unknown>;
2539
2604
  repeat: z.ZodEnum<{
2540
2605
  current_period: "current_period";
@@ -4140,6 +4205,70 @@ export declare const zDeployToCloudError: z.ZodObject<{
4140
4205
  export declare const zDeploymentCompatibilityRequest: z.ZodObject<{
4141
4206
  node_types: z.ZodArray<z.ZodString>;
4142
4207
  }, z.core.$strip>;
4208
+ /**
4209
+ * comfy-builder's BlobUploadComplete (its POST /v1/blobs/{id}/complete 200), passed through as written.
4210
+ */
4211
+ export declare const zDeploymentModelUploadComplete: z.ZodObject<{
4212
+ blobId: z.ZodString;
4213
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4214
+ }, z.core.$strip>;
4215
+ /**
4216
+ * comfy-builder's 409 on the parts and complete routes, passed through as written. It never carries `code`.
4217
+ */
4218
+ export declare const zDeploymentModelUploadConflict: z.ZodObject<{
4219
+ error: z.ZodString;
4220
+ message: z.ZodOptional<z.ZodString>;
4221
+ }, z.core.$strip>;
4222
+ /**
4223
+ * comfy-builder's BlobUploadPart, passed through as written.
4224
+ */
4225
+ export declare const zDeploymentModelUploadPart: z.ZodObject<{
4226
+ expiresAt: z.ZodISODateTime;
4227
+ offsetBytes: z.ZodCoercedBigInt<unknown>;
4228
+ partNumber: z.ZodInt;
4229
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4230
+ uploadUrl: z.ZodString;
4231
+ }, z.core.$strip>;
4232
+ /**
4233
+ * comfy-builder's BlobUpload (its POST /v1/blobs 201), passed through as written; the fields are comfy-builder's.
4234
+ */
4235
+ export declare const zDeploymentModelUpload: z.ZodObject<{
4236
+ blobId: z.ZodString;
4237
+ deduplicated: z.ZodBoolean;
4238
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
4239
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
4240
+ expiresAt: z.ZodISODateTime;
4241
+ offsetBytes: z.ZodCoercedBigInt<unknown>;
4242
+ partNumber: z.ZodInt;
4243
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4244
+ uploadUrl: z.ZodString;
4245
+ }, z.core.$strip>>>;
4246
+ uploadUrl: z.ZodOptional<z.ZodString>;
4247
+ }, z.core.$strip>;
4248
+ /**
4249
+ * comfy-builder's BlobUploadParts (its POST /v1/blobs/{id}/parts 200), passed through as written.
4250
+ */
4251
+ export declare const zDeploymentModelUploadParts: z.ZodObject<{
4252
+ blobId: z.ZodString;
4253
+ parts: z.ZodArray<z.ZodObject<{
4254
+ expiresAt: z.ZodISODateTime;
4255
+ offsetBytes: z.ZodCoercedBigInt<unknown>;
4256
+ partNumber: z.ZodInt;
4257
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4258
+ uploadUrl: z.ZodString;
4259
+ }, z.core.$strip>>;
4260
+ }, z.core.$strip>;
4261
+ /**
4262
+ * comfy-builder's CreateBlobRequest without `kind`, which ingest sets to `model`; the fields are passed on as written.
4263
+ */
4264
+ export declare const zDeploymentModelUploadRequest: z.ZodObject<{
4265
+ blake3: z.ZodOptional<z.ZodString>;
4266
+ filename: z.ZodString;
4267
+ parts: z.ZodOptional<z.ZodBoolean>;
4268
+ reuse: z.ZodOptional<z.ZodBoolean>;
4269
+ sha256: z.ZodString;
4270
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
4271
+ }, z.core.$strip>;
4143
4272
  export declare const zDeploymentNodeCompatibility: z.ZodObject<{
4144
4273
  deployment_id: z.ZodString;
4145
4274
  missing_node_types: z.ZodArray<z.ZodString>;
@@ -4783,6 +4912,7 @@ export declare const zJobEntry: z.ZodObject<{
4783
4912
  outputs_count: z.ZodOptional<z.ZodInt>;
4784
4913
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4785
4914
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
4915
+ project_id: z.ZodOptional<z.ZodString>;
4786
4916
  status: z.ZodEnum<{
4787
4917
  cancelled: "cancelled";
4788
4918
  completed: "completed";
@@ -4843,6 +4973,7 @@ export declare const zJobDetailResponse: z.ZodObject<{
4843
4973
  outputs_count: z.ZodOptional<z.ZodInt>;
4844
4974
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4845
4975
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
4976
+ project_id: z.ZodOptional<z.ZodString>;
4846
4977
  queue_position: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4847
4978
  queue_reason: z.ZodOptional<z.ZodEnum<{
4848
4979
  concurrency_limit: "concurrency_limit";
@@ -5138,6 +5269,32 @@ export declare const zHubWorkflowListResponse: z.ZodObject<{
5138
5269
  workflow_json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5139
5270
  }, z.core.$strip>]>>;
5140
5271
  }, z.core.$strip>;
5272
+ /**
5273
+ * A page of access changes, newest first.
5274
+ */
5275
+ export declare const zListAccessEventsResponse: z.ZodObject<{
5276
+ events: z.ZodArray<z.ZodObject<{
5277
+ action: z.ZodString;
5278
+ actor: z.ZodObject<{
5279
+ name: z.ZodString;
5280
+ user_id: z.ZodString;
5281
+ }, z.core.$strip>;
5282
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5283
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5284
+ create_time: z.ZodISODateTime;
5285
+ id: z.ZodUUID;
5286
+ project_id: z.ZodOptional<z.ZodString>;
5287
+ project_name: z.ZodOptional<z.ZodString>;
5288
+ target: z.ZodOptional<z.ZodObject<{
5289
+ name: z.ZodString;
5290
+ user_id: z.ZodString;
5291
+ }, z.core.$strip>>;
5292
+ }, z.core.$strip>>;
5293
+ pagination: z.ZodObject<{
5294
+ has_more: z.ZodBoolean;
5295
+ next_cursor: z.ZodOptional<z.ZodString>;
5296
+ }, z.core.$strip>;
5297
+ }, z.core.$strip>;
5141
5298
  /**
5142
5299
  * Paginated list of assets belonging to the authenticated user.
5143
5300
  */
@@ -5157,6 +5314,7 @@ export declare const zListAssetsResponse: z.ZodObject<{
5157
5314
  name: z.ZodString;
5158
5315
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
5159
5316
  preview_url: z.ZodOptional<z.ZodURL>;
5317
+ project_id: z.ZodOptional<z.ZodString>;
5160
5318
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5161
5319
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
5162
5320
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -5577,6 +5735,7 @@ export declare const zJobsListResponse: z.ZodObject<{
5577
5735
  outputs_count: z.ZodOptional<z.ZodInt>;
5578
5736
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5579
5737
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
5738
+ project_id: z.ZodOptional<z.ZodString>;
5580
5739
  status: z.ZodEnum<{
5581
5740
  cancelled: "cancelled";
5582
5741
  completed: "completed";
@@ -5736,6 +5895,10 @@ export declare const zPlanSeatSummary: z.ZodObject<{
5736
5895
  total_cost_cents: z.ZodCoercedBigInt<unknown>;
5737
5896
  total_credits_cents: z.ZodCoercedBigInt<unknown>;
5738
5897
  }, z.core.$strip>;
5898
+ /**
5899
+ * comfy-deploy's or comfy-builder's answer, passed through as written; its shape is that service's. Their refusals are `{error, message}` (Echo's own only `message`) and never carry `code`.
5900
+ */
5901
+ export declare const zPlatformPassthroughBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5739
5902
  /**
5740
5903
  * Request body for previewing the cost of a plan subscription change.
5741
5904
  */
@@ -5752,6 +5915,317 @@ export declare const zPreviousPlan: z.ZodObject<{
5752
5915
  plan_slug: z.ZodString;
5753
5916
  team_credit_stop_id: z.ZodOptional<z.ZodString>;
5754
5917
  }, z.core.$strip>;
5918
+ /**
5919
+ * What the caller may do with one kind of thing in a project. `write` includes `read`. On things that belong to one person (runs, assets, usage) the level carries a scope: `_own` covers what the caller created and `_all` covers everyone's, and `_all` includes `_own`.
5920
+ */
5921
+ export declare const zProjectPermissionLevel: z.ZodEnum<{
5922
+ read: "read";
5923
+ write: "write";
5924
+ read_own: "read_own";
5925
+ read_all: "read_all";
5926
+ write_own: "write_own";
5927
+ write_all: "write_all";
5928
+ }>;
5929
+ /**
5930
+ * The caller's permissions in this project, for showing and hiding actions. Render each as received; do not rebuild them from `my_role` or the workspace role. An absent key means no access. Each write is checked again by the server.
5931
+ */
5932
+ export declare const zProjectPermissions: z.ZodObject<{
5933
+ project: z.ZodOptional<z.ZodEnum<{
5934
+ read: "read";
5935
+ write: "write";
5936
+ read_own: "read_own";
5937
+ read_all: "read_all";
5938
+ write_own: "write_own";
5939
+ write_all: "write_all";
5940
+ }>>;
5941
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
5942
+ read: "read";
5943
+ write: "write";
5944
+ read_own: "read_own";
5945
+ read_all: "read_all";
5946
+ write_own: "write_own";
5947
+ write_all: "write_all";
5948
+ }>>;
5949
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
5950
+ read: "read";
5951
+ write: "write";
5952
+ read_own: "read_own";
5953
+ read_all: "read_all";
5954
+ write_own: "write_own";
5955
+ write_all: "write_all";
5956
+ }>>;
5957
+ 'project.members': z.ZodOptional<z.ZodEnum<{
5958
+ read: "read";
5959
+ write: "write";
5960
+ read_own: "read_own";
5961
+ read_all: "read_all";
5962
+ write_own: "write_own";
5963
+ write_all: "write_all";
5964
+ }>>;
5965
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
5966
+ read: "read";
5967
+ write: "write";
5968
+ read_own: "read_own";
5969
+ read_all: "read_all";
5970
+ write_own: "write_own";
5971
+ write_all: "write_all";
5972
+ }>>;
5973
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
5974
+ read: "read";
5975
+ write: "write";
5976
+ read_own: "read_own";
5977
+ read_all: "read_all";
5978
+ write_own: "write_own";
5979
+ write_all: "write_all";
5980
+ }>>;
5981
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
5982
+ read: "read";
5983
+ write: "write";
5984
+ read_own: "read_own";
5985
+ read_all: "read_all";
5986
+ write_own: "write_own";
5987
+ write_all: "write_all";
5988
+ }>>;
5989
+ }, z.core.$strip>;
5990
+ /**
5991
+ * How many projects the workspace may have and has.
5992
+ */
5993
+ export declare const zProjectQuota: z.ZodObject<{
5994
+ active: z.ZodInt;
5995
+ can_create: z.ZodBoolean;
5996
+ max_active: z.ZodInt;
5997
+ }, z.core.$strip>;
5998
+ /**
5999
+ * A person's role in one project. A Runner runs existing workflows. A Builder also creates and edits workflows. A Project admin also manages the project, its members and its deployments.
6000
+ */
6001
+ export declare const zProjectRole: z.ZodEnum<{
6002
+ runner: "runner";
6003
+ builder: "builder";
6004
+ project_admin: "project_admin";
6005
+ }>;
6006
+ /**
6007
+ * A private, invite-only space inside a workspace, or the workspace's default project.
6008
+ */
6009
+ export declare const zProject: z.ZodObject<{
6010
+ create_time: z.ZodISODateTime;
6011
+ created_by_user_id: z.ZodOptional<z.ZodString>;
6012
+ description: z.ZodOptional<z.ZodString>;
6013
+ id: z.ZodString;
6014
+ is_default: z.ZodBoolean;
6015
+ my_role: z.ZodOptional<z.ZodEnum<{
6016
+ runner: "runner";
6017
+ builder: "builder";
6018
+ project_admin: "project_admin";
6019
+ }>>;
6020
+ name: z.ZodString;
6021
+ permissions: z.ZodObject<{
6022
+ project: z.ZodOptional<z.ZodEnum<{
6023
+ read: "read";
6024
+ write: "write";
6025
+ read_own: "read_own";
6026
+ read_all: "read_all";
6027
+ write_own: "write_own";
6028
+ write_all: "write_all";
6029
+ }>>;
6030
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
6031
+ read: "read";
6032
+ write: "write";
6033
+ read_own: "read_own";
6034
+ read_all: "read_all";
6035
+ write_own: "write_own";
6036
+ write_all: "write_all";
6037
+ }>>;
6038
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
6039
+ read: "read";
6040
+ write: "write";
6041
+ read_own: "read_own";
6042
+ read_all: "read_all";
6043
+ write_own: "write_own";
6044
+ write_all: "write_all";
6045
+ }>>;
6046
+ 'project.members': z.ZodOptional<z.ZodEnum<{
6047
+ read: "read";
6048
+ write: "write";
6049
+ read_own: "read_own";
6050
+ read_all: "read_all";
6051
+ write_own: "write_own";
6052
+ write_all: "write_all";
6053
+ }>>;
6054
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
6055
+ read: "read";
6056
+ write: "write";
6057
+ read_own: "read_own";
6058
+ read_all: "read_all";
6059
+ write_own: "write_own";
6060
+ write_all: "write_all";
6061
+ }>>;
6062
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
6063
+ read: "read";
6064
+ write: "write";
6065
+ read_own: "read_own";
6066
+ read_all: "read_all";
6067
+ write_own: "write_own";
6068
+ write_all: "write_all";
6069
+ }>>;
6070
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
6071
+ read: "read";
6072
+ write: "write";
6073
+ read_own: "read_own";
6074
+ read_all: "read_all";
6075
+ write_own: "write_own";
6076
+ write_all: "write_all";
6077
+ }>>;
6078
+ }, z.core.$strip>;
6079
+ shared_cloud_allowed: z.ZodBoolean;
6080
+ update_time: z.ZodISODateTime;
6081
+ workspace_id: z.ZodString;
6082
+ writable: z.ZodBoolean;
6083
+ }, z.core.$strip>;
6084
+ /**
6085
+ * The projects the caller can view, with the workspace's project quota.
6086
+ */
6087
+ export declare const zListProjectsResponse: z.ZodObject<{
6088
+ projects: z.ZodArray<z.ZodObject<{
6089
+ create_time: z.ZodISODateTime;
6090
+ created_by_user_id: z.ZodOptional<z.ZodString>;
6091
+ description: z.ZodOptional<z.ZodString>;
6092
+ id: z.ZodString;
6093
+ is_default: z.ZodBoolean;
6094
+ my_role: z.ZodOptional<z.ZodEnum<{
6095
+ runner: "runner";
6096
+ builder: "builder";
6097
+ project_admin: "project_admin";
6098
+ }>>;
6099
+ name: z.ZodString;
6100
+ permissions: z.ZodObject<{
6101
+ project: z.ZodOptional<z.ZodEnum<{
6102
+ read: "read";
6103
+ write: "write";
6104
+ read_own: "read_own";
6105
+ read_all: "read_all";
6106
+ write_own: "write_own";
6107
+ write_all: "write_all";
6108
+ }>>;
6109
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
6110
+ read: "read";
6111
+ write: "write";
6112
+ read_own: "read_own";
6113
+ read_all: "read_all";
6114
+ write_own: "write_own";
6115
+ write_all: "write_all";
6116
+ }>>;
6117
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
6118
+ read: "read";
6119
+ write: "write";
6120
+ read_own: "read_own";
6121
+ read_all: "read_all";
6122
+ write_own: "write_own";
6123
+ write_all: "write_all";
6124
+ }>>;
6125
+ 'project.members': z.ZodOptional<z.ZodEnum<{
6126
+ read: "read";
6127
+ write: "write";
6128
+ read_own: "read_own";
6129
+ read_all: "read_all";
6130
+ write_own: "write_own";
6131
+ write_all: "write_all";
6132
+ }>>;
6133
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
6134
+ read: "read";
6135
+ write: "write";
6136
+ read_own: "read_own";
6137
+ read_all: "read_all";
6138
+ write_own: "write_own";
6139
+ write_all: "write_all";
6140
+ }>>;
6141
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
6142
+ read: "read";
6143
+ write: "write";
6144
+ read_own: "read_own";
6145
+ read_all: "read_all";
6146
+ write_own: "write_own";
6147
+ write_all: "write_all";
6148
+ }>>;
6149
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
6150
+ read: "read";
6151
+ write: "write";
6152
+ read_own: "read_own";
6153
+ read_all: "read_all";
6154
+ write_own: "write_own";
6155
+ write_all: "write_all";
6156
+ }>>;
6157
+ }, z.core.$strip>;
6158
+ shared_cloud_allowed: z.ZodBoolean;
6159
+ update_time: z.ZodISODateTime;
6160
+ workspace_id: z.ZodString;
6161
+ writable: z.ZodBoolean;
6162
+ }, z.core.$strip>>;
6163
+ projects_in_use: z.ZodBoolean;
6164
+ quota: z.ZodObject<{
6165
+ active: z.ZodInt;
6166
+ can_create: z.ZodBoolean;
6167
+ max_active: z.ZodInt;
6168
+ }, z.core.$strip>;
6169
+ }, z.core.$strip>;
6170
+ /**
6171
+ * A person in a project, with their project role.
6172
+ */
6173
+ export declare const zProjectMember: z.ZodObject<{
6174
+ added_by_user_id: z.ZodOptional<z.ZodString>;
6175
+ create_time: z.ZodISODateTime;
6176
+ email: z.ZodString;
6177
+ name: z.ZodString;
6178
+ role: z.ZodEnum<{
6179
+ runner: "runner";
6180
+ builder: "builder";
6181
+ project_admin: "project_admin";
6182
+ }>;
6183
+ user_id: z.ZodString;
6184
+ }, z.core.$strip>;
6185
+ /**
6186
+ * The people in a project.
6187
+ */
6188
+ export declare const zListProjectMembersResponse: z.ZodObject<{
6189
+ members: z.ZodArray<z.ZodObject<{
6190
+ added_by_user_id: z.ZodOptional<z.ZodString>;
6191
+ create_time: z.ZodISODateTime;
6192
+ email: z.ZodString;
6193
+ name: z.ZodString;
6194
+ role: z.ZodEnum<{
6195
+ runner: "runner";
6196
+ builder: "builder";
6197
+ project_admin: "project_admin";
6198
+ }>;
6199
+ user_id: z.ZodString;
6200
+ }, z.core.$strip>>;
6201
+ }, z.core.$strip>;
6202
+ /**
6203
+ * A workspace member to add to a project, with their project role.
6204
+ */
6205
+ export declare const zProjectMemberInput: z.ZodObject<{
6206
+ role: z.ZodEnum<{
6207
+ runner: "runner";
6208
+ builder: "builder";
6209
+ project_admin: "project_admin";
6210
+ }>;
6211
+ user_id: z.ZodString;
6212
+ }, z.core.$strip>;
6213
+ /**
6214
+ * Request body for creating a project.
6215
+ */
6216
+ export declare const zCreateProjectRequest: z.ZodObject<{
6217
+ description: z.ZodOptional<z.ZodString>;
6218
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
6219
+ role: z.ZodEnum<{
6220
+ runner: "runner";
6221
+ builder: "builder";
6222
+ project_admin: "project_admin";
6223
+ }>;
6224
+ user_id: z.ZodString;
6225
+ }, z.core.$strip>>>;
6226
+ name: z.ZodString;
6227
+ shared_cloud_allowed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6228
+ }, z.core.$strip>;
5755
6229
  /**
5756
6230
  * Error response for ComfyUI prompt execution.
5757
6231
  */
@@ -6231,6 +6705,16 @@ export declare const zServerDocFrame: z.ZodUnion<readonly [z.ZodObject<{
6231
6705
  doc_ops_result: "doc_ops_result";
6232
6706
  }>;
6233
6707
  }, z.core.$strip>]>;
6708
+ /**
6709
+ * Request body for adding a project member or changing their role.
6710
+ */
6711
+ export declare const zSetProjectMemberRequest: z.ZodObject<{
6712
+ role: z.ZodEnum<{
6713
+ runner: "runner";
6714
+ builder: "builder";
6715
+ project_admin: "project_admin";
6716
+ }>;
6717
+ }, z.core.$strip>;
6234
6718
  /**
6235
6719
  * The deployment a start was asked for, and its status after the ask.
6236
6720
  */
@@ -7678,6 +8162,31 @@ export declare const zTopupAutoTopUpSettings: z.ZodObject<{
7678
8162
  target_credits: z.ZodCoercedBigInt<unknown>;
7679
8163
  threshold_credits: z.ZodCoercedBigInt<unknown>;
7680
8164
  }, z.core.$strip>;
8165
+ /**
8166
+ * Asks for a one-time handoff that signs a billing receiver tab in as the caller.
8167
+ */
8168
+ export declare const zBillingHandoffCreateRequest: z.ZodObject<{
8169
+ amount_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8170
+ auto_top_up: z.ZodOptional<z.ZodObject<{
8171
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
8172
+ target_credits: z.ZodCoercedBigInt<unknown>;
8173
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
8174
+ }, z.core.$strip>>;
8175
+ client_version: z.ZodString;
8176
+ intent: z.ZodOptional<z.ZodEnum<{
8177
+ "top-up": "top-up";
8178
+ subscription: "subscription";
8179
+ }>>;
8180
+ receiver: z.ZodEnum<{
8181
+ billing_web: "billing_web";
8182
+ platform: "platform";
8183
+ }>;
8184
+ surface: z.ZodEnum<{
8185
+ local_web: "local_web";
8186
+ desktop: "desktop";
8187
+ }>;
8188
+ workspace_id: z.ZodString;
8189
+ }, z.core.$strip>;
7681
8190
  /**
7682
8191
  * Request body for creating a hosted credit top-up checkout session.
7683
8192
  */
@@ -7691,6 +8200,14 @@ export declare const zCreateTopupCheckoutRequest: z.ZodObject<{
7691
8200
  idempotency_key: z.ZodOptional<z.ZodString>;
7692
8201
  return_url: z.ZodURL;
7693
8202
  }, z.core.$strip>;
8203
+ export declare const zCreateTopupPurchaseRequest: z.ZodObject<{
8204
+ amount_cents: z.ZodCoercedBigInt<unknown>;
8205
+ auto_top_up: z.ZodOptional<z.ZodObject<{
8206
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
8207
+ target_credits: z.ZodCoercedBigInt<unknown>;
8208
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
8209
+ }, z.core.$strip>>;
8210
+ }, z.core.$strip>;
7694
8211
  /**
7695
8212
  * Pay once with exactly one new-card confirmation token or explicitly selected attached card. Keep the exact request and key on retry; never fall back to the on-file route.
7696
8213
  */
@@ -7705,10 +8222,31 @@ export declare const zInteractiveTopupRequest: z.ZodObject<{
7705
8222
  confirmation_token: z.ZodOptional<z.ZodString>;
7706
8223
  idempotency_key: z.ZodString;
7707
8224
  make_default: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8225
+ purchase_id: z.ZodOptional<z.ZodString>;
7708
8226
  return_url: z.ZodOptional<z.ZodString>;
7709
8227
  save_payment_method: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7710
8228
  saved_payment_method_id: z.ZodOptional<z.ZodString>;
7711
8229
  }, z.core.$strip>;
8230
+ export declare const zTopupPurchase: z.ZodObject<{
8231
+ amount_cents: z.ZodCoercedBigInt<unknown>;
8232
+ auto_top_up: z.ZodOptional<z.ZodObject<{
8233
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
8234
+ target_credits: z.ZodCoercedBigInt<unknown>;
8235
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
8236
+ }, z.core.$strip>>;
8237
+ billing_op_id: z.ZodOptional<z.ZodString>;
8238
+ billing_op_status: z.ZodOptional<z.ZodString>;
8239
+ expires_at: z.ZodISODateTime;
8240
+ purchase_id: z.ZodString;
8241
+ status: z.ZodEnum<{
8242
+ expired: "expired";
8243
+ reconciliation_needed: "reconciliation_needed";
8244
+ processing: "processing";
8245
+ paid: "paid";
8246
+ open: "open";
8247
+ superseded: "superseded";
8248
+ }>;
8249
+ }, z.core.$strip>;
7712
8250
  /**
7713
8251
  * What a credit top-up of the requested amount would grant.
7714
8252
  */
@@ -7736,6 +8274,14 @@ export declare const zUpdateMemberRoleRequest: z.ZodObject<{
7736
8274
  member: "member";
7737
8275
  }>;
7738
8276
  }, z.core.$strip>;
8277
+ /**
8278
+ * Request body for changing a project. Only the fields sent are changed.
8279
+ */
8280
+ export declare const zUpdateProjectRequest: z.ZodObject<{
8281
+ description: z.ZodOptional<z.ZodString>;
8282
+ name: z.ZodOptional<z.ZodString>;
8283
+ shared_cloud_allowed: z.ZodOptional<z.ZodBoolean>;
8284
+ }, z.core.$strip>;
7739
8285
  /**
7740
8286
  * Request body for updating an existing user secret.
7741
8287
  */
@@ -8077,6 +8623,7 @@ export declare const zWorkflowResponse: z.ZodObject<{
8077
8623
  id: z.ZodString;
8078
8624
  latest_version: z.ZodInt;
8079
8625
  name: z.ZodOptional<z.ZodString>;
8626
+ project_id: z.ZodOptional<z.ZodString>;
8080
8627
  updated_at: z.ZodISODateTime;
8081
8628
  }, z.core.$strip>;
8082
8629
  /**
@@ -8098,6 +8645,7 @@ export declare const zWorkflowListResponse: z.ZodObject<{
8098
8645
  id: z.ZodString;
8099
8646
  latest_version: z.ZodInt;
8100
8647
  name: z.ZodOptional<z.ZodString>;
8648
+ project_id: z.ZodOptional<z.ZodString>;
8101
8649
  updated_at: z.ZodISODateTime;
8102
8650
  }, z.core.$strip>>;
8103
8651
  pagination: z.ZodObject<{
@@ -8223,7 +8771,45 @@ export declare const zErrorResponse: z.ZodObject<{
8223
8771
  organization_id: z.ZodOptional<z.ZodString>;
8224
8772
  }, z.core.$strip>;
8225
8773
  /**
8226
- * A 403 body: ErrorResponse, or AuthTypeNotAllowedError for a credential the route does not take.
8774
+ * A 403 on the deployment model routes. A body with `accepted` is ingest's authentication refusing the credential before any other check (AuthTypeNotAllowedError, `{error: {message, type: auth_type_not_allowed}, accepted}`, no `code`): a credential these routes never take, such as `X-ComfyAPI-Secret`, or the session while `web_session_enabled` is off for the user. Otherwise `code` tells them apart as in DeploymentModelsRefusalBody: a body with `code` is ingest's own refusal, and one with neither `code` nor `accepted` is the platform's 403, passed through as written.
8775
+ */
8776
+ export declare const zDeploymentModelsForbiddenBody: z.ZodUnion<readonly [z.ZodObject<{
8777
+ code: z.ZodString;
8778
+ denied_reasons: z.ZodOptional<z.ZodObject<{
8779
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
8780
+ organization_managed: "organization_managed";
8781
+ owned_workspace_limit: "owned_workspace_limit";
8782
+ }>>;
8783
+ }, z.core.$strip>>;
8784
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8785
+ message: z.ZodString;
8786
+ organization_id: z.ZodOptional<z.ZodString>;
8787
+ }, z.core.$strip>, z.ZodObject<{
8788
+ accepted: z.ZodArray<z.ZodString>;
8789
+ error: z.ZodObject<{
8790
+ message: z.ZodString;
8791
+ type: z.ZodEnum<{
8792
+ auth_type_not_allowed: "auth_type_not_allowed";
8793
+ }>;
8794
+ }, z.core.$strip>;
8795
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
8796
+ /**
8797
+ * A refusal on the deployment model routes: ingest's own (and the session's), as ErrorResponse `{code, message}`, or the platform's, passed through as written. One status can carry either; `code` tells them apart. A body with `code` is ingest's own refusal, made before or instead of the platform's answer; a body without it is the platform's, comfy-deploy's or comfy-builder's `{error, message}` (or only `message`), which never carries `code`. The one exception is a 403 with `accepted`, ingest's authentication refusal (see DeploymentModelsForbiddenBody).
8798
+ */
8799
+ export declare const zDeploymentModelsRefusalBody: z.ZodUnion<readonly [z.ZodObject<{
8800
+ code: z.ZodString;
8801
+ denied_reasons: z.ZodOptional<z.ZodObject<{
8802
+ can_create_workspace: z.ZodOptional<z.ZodEnum<{
8803
+ organization_managed: "organization_managed";
8804
+ owned_workspace_limit: "owned_workspace_limit";
8805
+ }>>;
8806
+ }, z.core.$strip>>;
8807
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8808
+ message: z.ZodString;
8809
+ organization_id: z.ZodOptional<z.ZodString>;
8810
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
8811
+ /**
8812
+ * A 403 body: ErrorResponse, or AuthTypeNotAllowedError for a credential the route does not take.
8227
8813
  */
8228
8814
  export declare const zForbiddenError: z.ZodUnion<readonly [z.ZodObject<{
8229
8815
  code: z.ZodString;
@@ -8754,6 +9340,7 @@ export declare const zMember: z.ZodObject<{
8754
9340
  owner: "owner";
8755
9341
  member: "member";
8756
9342
  }>;
9343
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
8757
9344
  }, z.core.$strip>;
8758
9345
  /**
8759
9346
  * List of members in the current workspace.
@@ -8775,6 +9362,7 @@ export declare const zListMembersResponse: z.ZodObject<{
8775
9362
  owner: "owner";
8776
9363
  member: "member";
8777
9364
  }>;
9365
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
8778
9366
  }, z.core.$strip>>;
8779
9367
  pagination: z.ZodObject<{
8780
9368
  has_more: z.ZodBoolean;
@@ -8864,6 +9452,7 @@ export declare const zWorkspaceWithRole: z.ZodObject<{
8864
9452
  team: "team";
8865
9453
  personal: "personal";
8866
9454
  }>;
9455
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
8867
9456
  }, z.core.$strip>;
8868
9457
  /**
8869
9458
  * Paginated list of workspaces the authenticated user belongs to.
@@ -8910,6 +9499,7 @@ export declare const zListWorkspacesResponse: z.ZodObject<{
8910
9499
  team: "team";
8911
9500
  personal: "personal";
8912
9501
  }>;
9502
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
8913
9503
  }, z.core.$strip>>;
8914
9504
  }, z.core.$strip>;
8915
9505
  /**
@@ -8929,6 +9519,7 @@ export declare const zAssetWritable: z.ZodObject<{
8929
9519
  name: z.ZodString;
8930
9520
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
8931
9521
  preview_url: z.ZodOptional<z.ZodURL>;
9522
+ project_id: z.ZodOptional<z.ZodString>;
8932
9523
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8933
9524
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8934
9525
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -8952,6 +9543,7 @@ export declare const zAssetCreatedWritable: z.ZodIntersection<z.ZodObject<{
8952
9543
  name: z.ZodString;
8953
9544
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
8954
9545
  preview_url: z.ZodOptional<z.ZodURL>;
9546
+ project_id: z.ZodOptional<z.ZodString>;
8955
9547
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8956
9548
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
8957
9549
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9006,6 +9598,7 @@ export declare const zListAssetsResponseWritable: z.ZodObject<{
9006
9598
  name: z.ZodString;
9007
9599
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9008
9600
  preview_url: z.ZodOptional<z.ZodURL>;
9601
+ project_id: z.ZodOptional<z.ZodString>;
9009
9602
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9010
9603
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9011
9604
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9016,6 +9609,18 @@ export declare const zListAssetsResponseWritable: z.ZodObject<{
9016
9609
  next_cursor: z.ZodOptional<z.ZodString>;
9017
9610
  total: z.ZodInt;
9018
9611
  }, z.core.$strip>;
9612
+ /**
9613
+ * The blobId the model upload route answered
9614
+ */
9615
+ export declare const zDeploymentModelUploadBlobId: z.ZodString;
9616
+ /**
9617
+ * One of the workspace's deployments (dep-{uuid} format)
9618
+ */
9619
+ export declare const zDeploymentModelsDeploymentId: z.ZodString;
9620
+ /**
9621
+ * Workspace ID (w-{uuid} format)
9622
+ */
9623
+ export declare const zDeploymentModelsWorkspaceId: z.ZodString;
9019
9624
  /**
9020
9625
  * The workspace a media request reads from, where a media tag cannot
9021
9626
  * send `X-Comfy-Workspace-ID`. It applies only while
@@ -9032,6 +9637,24 @@ export declare const zListAssetsResponseWritable: z.ZodObject<{
9032
9637
  *
9033
9638
  */
9034
9639
  export declare const zMediaWorkspaceId: z.ZodString;
9640
+ /**
9641
+ * The project a request acts in. The operations that list it are the
9642
+ * ones that read it: they list workflows, runs or assets, or create
9643
+ * one. Absent means the workspace's default project, which is how
9644
+ * existing clients keep working.
9645
+ *
9646
+ * An operation on one existing workflow, run or asset does not take
9647
+ * it: the row's own project decides. Any other operation that creates
9648
+ * a workflow, run or asset acts in the default project until it lists
9649
+ * this parameter.
9650
+ *
9651
+ * The project must be in the workspace the request resolves to. A
9652
+ * project that does not exist, or that the caller may not view, is 404
9653
+ * `not_found`; the two look the same. Where Projects is not enabled for
9654
+ * the workspace the header is ignored.
9655
+ *
9656
+ */
9657
+ export declare const zProjectId: z.ZodString;
9035
9658
  /**
9036
9659
  * JWKS response
9037
9660
  */
@@ -9483,6 +10106,7 @@ export declare const zAgentPostMessageBody: z.ZodObject<{
9483
10106
  delete_approval: "delete_approval";
9484
10107
  }>>>;
9485
10108
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
10109
+ canvas_selection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9486
10110
  client_id: z.ZodOptional<z.ZodString>;
9487
10111
  client_message_id: z.ZodOptional<z.ZodString>;
9488
10112
  client_version: z.ZodOptional<z.ZodString>;
@@ -9557,6 +10181,9 @@ export declare const zAgentCancelMessageResponse: z.ZodObject<{
9557
10181
  export declare const zAgentGetUsageStatusResponse: z.ZodObject<{
9558
10182
  has_used_agent: z.ZodBoolean;
9559
10183
  }, z.core.$strip>;
10184
+ export declare const zListAssetsHeaders: z.ZodObject<{
10185
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10186
+ }, z.core.$strip>;
9560
10187
  export declare const zListAssetsQuery: z.ZodObject<{
9561
10188
  include_tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
9562
10189
  exclude_tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9604,6 +10231,7 @@ export declare const zListAssetsResponse2: z.ZodObject<{
9604
10231
  name: z.ZodString;
9605
10232
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9606
10233
  preview_url: z.ZodOptional<z.ZodURL>;
10234
+ project_id: z.ZodOptional<z.ZodString>;
9607
10235
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9608
10236
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9609
10237
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9624,6 +10252,9 @@ export declare const zCreateAssetBody: z.ZodObject<{
9624
10252
  tags: z.ZodOptional<z.ZodString>;
9625
10253
  user_metadata: z.ZodOptional<z.ZodString>;
9626
10254
  }, z.core.$strip>;
10255
+ export declare const zCreateAssetHeaders: z.ZodObject<{
10256
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10257
+ }, z.core.$strip>;
9627
10258
  /**
9628
10259
  * Asset already existed for this user (deduplicated by content hash); the
9629
10260
  * existing asset is returned with created_new=false.
@@ -9644,6 +10275,7 @@ export declare const zCreateAssetResponse: z.ZodIntersection<z.ZodObject<{
9644
10275
  name: z.ZodString;
9645
10276
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9646
10277
  preview_url: z.ZodOptional<z.ZodURL>;
10278
+ project_id: z.ZodOptional<z.ZodString>;
9647
10279
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9648
10280
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9649
10281
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9680,6 +10312,7 @@ export declare const zGetAssetByIdResponse: z.ZodObject<{
9680
10312
  name: z.ZodString;
9681
10313
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9682
10314
  preview_url: z.ZodOptional<z.ZodURL>;
10315
+ project_id: z.ZodOptional<z.ZodString>;
9683
10316
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9684
10317
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9685
10318
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9778,6 +10411,7 @@ export declare const zCreateAssetDownloadResponse: z.ZodUnion<readonly [z.ZodInt
9778
10411
  name: z.ZodString;
9779
10412
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9780
10413
  preview_url: z.ZodOptional<z.ZodURL>;
10414
+ project_id: z.ZodOptional<z.ZodString>;
9781
10415
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9782
10416
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9783
10417
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -9839,6 +10473,9 @@ export declare const zCreateAssetFromHashBody: z.ZodObject<{
9839
10473
  tags: z.ZodArray<z.ZodString>;
9840
10474
  user_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9841
10475
  }, z.core.$strip>;
10476
+ export declare const zCreateAssetFromHashHeaders: z.ZodObject<{
10477
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
10478
+ }, z.core.$strip>;
9842
10479
  /**
9843
10480
  * Asset reference already existed for this user (deduplicated by content
9844
10481
  * hash); the existing asset is returned with created_new=false.
@@ -9859,6 +10496,7 @@ export declare const zCreateAssetFromHashResponse: z.ZodIntersection<z.ZodObject
9859
10496
  name: z.ZodString;
9860
10497
  preview_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9861
10498
  preview_url: z.ZodOptional<z.ZodURL>;
10499
+ project_id: z.ZodOptional<z.ZodString>;
9862
10500
  short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9863
10501
  size: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
9864
10502
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -10112,6 +10750,11 @@ export declare const zRedeemDesktopLoginCodeResponse: z.ZodObject<{
10112
10750
  }, z.core.$strip>;
10113
10751
  export declare const zCreateBillingHandoffBody: z.ZodObject<{
10114
10752
  amount_cents: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
10753
+ auto_top_up: z.ZodOptional<z.ZodObject<{
10754
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
10755
+ target_credits: z.ZodCoercedBigInt<unknown>;
10756
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
10757
+ }, z.core.$strip>>;
10115
10758
  client_version: z.ZodString;
10116
10759
  intent: z.ZodOptional<z.ZodEnum<{
10117
10760
  "top-up": "top-up";
@@ -10422,10 +11065,16 @@ export declare const zListBillingBudgetsResponse: z.ZodObject<{
10422
11065
  alert_percents: z.ZodArray<z.ZodInt>;
10423
11066
  alerts: z.ZodArray<z.ZodObject<{
10424
11067
  percent: z.ZodInt;
10425
- sent_at: z.ZodISODateTime;
10426
- status: z.ZodString;
11068
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
11069
+ status: z.ZodEnum<{
11070
+ failed: "failed";
11071
+ sent: "sent";
11072
+ skipped: "skipped";
11073
+ }>;
10427
11074
  }, z.core.$strip>>;
11075
+ alerts_available: z.ZodBoolean;
10428
11076
  created_by: z.ZodString;
11077
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
10429
11078
  ends_at: z.ZodNullable<z.ZodISODateTime>;
10430
11079
  id: z.ZodString;
10431
11080
  limit_credits: z.ZodCoercedBigInt<unknown>;
@@ -10434,6 +11083,7 @@ export declare const zListBillingBudgetsResponse: z.ZodObject<{
10434
11083
  hard: "hard";
10435
11084
  soft: "soft";
10436
11085
  }>;
11086
+ owner_email: z.ZodNullable<z.ZodString>;
10437
11087
  percent_used: z.ZodCoercedBigInt<unknown>;
10438
11088
  repeat: z.ZodEnum<{
10439
11089
  current_period: "current_period";
@@ -10485,10 +11135,16 @@ export declare const zCreateBillingBudgetResponse: z.ZodObject<{
10485
11135
  alert_percents: z.ZodArray<z.ZodInt>;
10486
11136
  alerts: z.ZodArray<z.ZodObject<{
10487
11137
  percent: z.ZodInt;
10488
- sent_at: z.ZodISODateTime;
10489
- status: z.ZodString;
11138
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
11139
+ status: z.ZodEnum<{
11140
+ failed: "failed";
11141
+ sent: "sent";
11142
+ skipped: "skipped";
11143
+ }>;
10490
11144
  }, z.core.$strip>>;
11145
+ alerts_available: z.ZodBoolean;
10491
11146
  created_by: z.ZodString;
11147
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
10492
11148
  ends_at: z.ZodNullable<z.ZodISODateTime>;
10493
11149
  id: z.ZodString;
10494
11150
  limit_credits: z.ZodCoercedBigInt<unknown>;
@@ -10497,6 +11153,7 @@ export declare const zCreateBillingBudgetResponse: z.ZodObject<{
10497
11153
  hard: "hard";
10498
11154
  soft: "soft";
10499
11155
  }>;
11156
+ owner_email: z.ZodNullable<z.ZodString>;
10500
11157
  percent_used: z.ZodCoercedBigInt<unknown>;
10501
11158
  repeat: z.ZodEnum<{
10502
11159
  current_period: "current_period";
@@ -10551,10 +11208,16 @@ export declare const zUpdateBillingBudgetResponse: z.ZodObject<{
10551
11208
  alert_percents: z.ZodArray<z.ZodInt>;
10552
11209
  alerts: z.ZodArray<z.ZodObject<{
10553
11210
  percent: z.ZodInt;
10554
- sent_at: z.ZodISODateTime;
10555
- status: z.ZodString;
11211
+ sent_at: z.ZodNullable<z.ZodISODateTime>;
11212
+ status: z.ZodEnum<{
11213
+ failed: "failed";
11214
+ sent: "sent";
11215
+ skipped: "skipped";
11216
+ }>;
10556
11217
  }, z.core.$strip>>;
11218
+ alerts_available: z.ZodBoolean;
10557
11219
  created_by: z.ZodString;
11220
+ crossed_alert_percent: z.ZodNullable<z.ZodInt>;
10558
11221
  ends_at: z.ZodNullable<z.ZodISODateTime>;
10559
11222
  id: z.ZodString;
10560
11223
  limit_credits: z.ZodCoercedBigInt<unknown>;
@@ -10563,6 +11226,7 @@ export declare const zUpdateBillingBudgetResponse: z.ZodObject<{
10563
11226
  hard: "hard";
10564
11227
  soft: "soft";
10565
11228
  }>;
11229
+ owner_email: z.ZodNullable<z.ZodString>;
10566
11230
  percent_used: z.ZodCoercedBigInt<unknown>;
10567
11231
  repeat: z.ZodEnum<{
10568
11232
  current_period: "current_period";
@@ -11850,6 +12514,7 @@ export declare const zCreateInteractiveTopupBody: z.ZodObject<{
11850
12514
  confirmation_token: z.ZodOptional<z.ZodString>;
11851
12515
  idempotency_key: z.ZodString;
11852
12516
  make_default: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12517
+ purchase_id: z.ZodOptional<z.ZodString>;
11853
12518
  return_url: z.ZodOptional<z.ZodString>;
11854
12519
  save_payment_method: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11855
12520
  saved_payment_method_id: z.ZodOptional<z.ZodString>;
@@ -11867,6 +12532,63 @@ export declare const zCreateInteractiveTopupResponse: z.ZodObject<{
11867
12532
  }>;
11868
12533
  topup_id: z.ZodString;
11869
12534
  }, z.core.$strip>;
12535
+ export declare const zCreateTopupPurchaseBody: z.ZodObject<{
12536
+ amount_cents: z.ZodCoercedBigInt<unknown>;
12537
+ auto_top_up: z.ZodOptional<z.ZodObject<{
12538
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
12539
+ target_credits: z.ZodCoercedBigInt<unknown>;
12540
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
12541
+ }, z.core.$strip>>;
12542
+ }, z.core.$strip>;
12543
+ /**
12544
+ * Purchase opened; Cache-Control no-store.
12545
+ */
12546
+ export declare const zCreateTopupPurchaseResponse: z.ZodObject<{
12547
+ amount_cents: z.ZodCoercedBigInt<unknown>;
12548
+ auto_top_up: z.ZodOptional<z.ZodObject<{
12549
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
12550
+ target_credits: z.ZodCoercedBigInt<unknown>;
12551
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
12552
+ }, z.core.$strip>>;
12553
+ billing_op_id: z.ZodOptional<z.ZodString>;
12554
+ billing_op_status: z.ZodOptional<z.ZodString>;
12555
+ expires_at: z.ZodISODateTime;
12556
+ purchase_id: z.ZodString;
12557
+ status: z.ZodEnum<{
12558
+ expired: "expired";
12559
+ reconciliation_needed: "reconciliation_needed";
12560
+ processing: "processing";
12561
+ paid: "paid";
12562
+ open: "open";
12563
+ superseded: "superseded";
12564
+ }>;
12565
+ }, z.core.$strip>;
12566
+ export declare const zGetTopupPurchasePath: z.ZodObject<{
12567
+ id: z.ZodString;
12568
+ }, z.core.$strip>;
12569
+ /**
12570
+ * Current purchase facts; Cache-Control no-store.
12571
+ */
12572
+ export declare const zGetTopupPurchaseResponse: z.ZodObject<{
12573
+ amount_cents: z.ZodCoercedBigInt<unknown>;
12574
+ auto_top_up: z.ZodOptional<z.ZodObject<{
12575
+ monthly_budget_cents: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
12576
+ target_credits: z.ZodCoercedBigInt<unknown>;
12577
+ threshold_credits: z.ZodCoercedBigInt<unknown>;
12578
+ }, z.core.$strip>>;
12579
+ billing_op_id: z.ZodOptional<z.ZodString>;
12580
+ billing_op_status: z.ZodOptional<z.ZodString>;
12581
+ expires_at: z.ZodISODateTime;
12582
+ purchase_id: z.ZodString;
12583
+ status: z.ZodEnum<{
12584
+ expired: "expired";
12585
+ reconciliation_needed: "reconciliation_needed";
12586
+ processing: "processing";
12587
+ paid: "paid";
12588
+ open: "open";
12589
+ superseded: "superseded";
12590
+ }>;
12591
+ }, z.core.$strip>;
11870
12592
  export declare const zCreateTopupQuoteBody: z.ZodObject<{
11871
12593
  amount_cents: z.ZodCoercedBigInt<unknown>;
11872
12594
  }, z.core.$strip>;
@@ -12071,10 +12793,10 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
12071
12793
  ready: "ready";
12072
12794
  }>;
12073
12795
  }, z.core.$strip>>;
12074
- 'agent-credit-usage-summary': z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12796
+ 'agent-credit-usage-summary': z.ZodOptional<z.ZodEnum<{
12075
12797
  control: "control";
12076
12798
  treatment: "treatment";
12077
- }>>>;
12799
+ }>>;
12078
12800
  'agent-free-use-message-placement': z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12079
12801
  control: "control";
12080
12802
  "top-banner": "top-banner";
@@ -12106,6 +12828,7 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
12106
12828
  model_upload_folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
12107
12829
  new_free_tier_subscriptions: z.ZodOptional<z.ZodBoolean>;
12108
12830
  open_on_cloud_enabled: z.ZodOptional<z.ZodBoolean>;
12831
+ open_on_cloud_model_upload_enabled: z.ZodOptional<z.ZodBoolean>;
12109
12832
  open_on_cloud_use_local_agent_enabled: z.ZodOptional<z.ZodBoolean>;
12110
12833
  private_workflow_links_enabled: z.ZodOptional<z.ZodBoolean>;
12111
12834
  sso_enabled: z.ZodOptional<z.ZodBoolean>;
@@ -12723,6 +13446,9 @@ export declare const zGetJobStatusResponse: z.ZodObject<{
12723
13446
  }>;
12724
13447
  updated_at: z.ZodISODateTime;
12725
13448
  }, z.core.$strip>;
13449
+ export declare const zListJobsHeaders: z.ZodObject<{
13450
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
13451
+ }, z.core.$strip>;
12726
13452
  export declare const zListJobsQuery: z.ZodObject<{
12727
13453
  status: z.ZodOptional<z.ZodString>;
12728
13454
  workflow_id: z.ZodOptional<z.ZodString>;
@@ -12777,6 +13503,7 @@ export declare const zListJobsResponse: z.ZodObject<{
12777
13503
  outputs_count: z.ZodOptional<z.ZodInt>;
12778
13504
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12779
13505
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
13506
+ project_id: z.ZodOptional<z.ZodString>;
12780
13507
  status: z.ZodEnum<{
12781
13508
  cancelled: "cancelled";
12782
13509
  completed: "completed";
@@ -12849,6 +13576,7 @@ export declare const zGetJobDetailResponse: z.ZodObject<{
12849
13576
  outputs_count: z.ZodOptional<z.ZodInt>;
12850
13577
  preview_output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12851
13578
  previewable_outputs_count: z.ZodOptional<z.ZodInt>;
13579
+ project_id: z.ZodOptional<z.ZodString>;
12852
13580
  queue_position: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
12853
13581
  queue_reason: z.ZodOptional<z.ZodEnum<{
12854
13582
  concurrency_limit: "concurrency_limit";
@@ -12951,6 +13679,404 @@ export declare const zGetNodeInfoResponse: z.ZodRecord<z.ZodString, z.ZodObject<
12951
13679
  export declare const zGetLegacyObjectInfoByNodeClassPath: z.ZodObject<{
12952
13680
  node_class: z.ZodString;
12953
13681
  }, z.core.$strip>;
13682
+ /**
13683
+ * Projects the caller can view. Also answered to a workspace whose plan no longer includes Projects (a lapsed or downgraded plan) but that still has projects other than the default: those projects are frozen and read-only, each with `writable: false`, and the quota has `max_active: 0` and `can_create: false`. Do not read a 200 as the plan including Projects; read `writable` on each project and `quota.can_create`.
13684
+ */
13685
+ export declare const zListProjectsResponse2: z.ZodObject<{
13686
+ projects: z.ZodArray<z.ZodObject<{
13687
+ create_time: z.ZodISODateTime;
13688
+ created_by_user_id: z.ZodOptional<z.ZodString>;
13689
+ description: z.ZodOptional<z.ZodString>;
13690
+ id: z.ZodString;
13691
+ is_default: z.ZodBoolean;
13692
+ my_role: z.ZodOptional<z.ZodEnum<{
13693
+ runner: "runner";
13694
+ builder: "builder";
13695
+ project_admin: "project_admin";
13696
+ }>>;
13697
+ name: z.ZodString;
13698
+ permissions: z.ZodObject<{
13699
+ project: z.ZodOptional<z.ZodEnum<{
13700
+ read: "read";
13701
+ write: "write";
13702
+ read_own: "read_own";
13703
+ read_all: "read_all";
13704
+ write_own: "write_own";
13705
+ write_all: "write_all";
13706
+ }>>;
13707
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
13708
+ read: "read";
13709
+ write: "write";
13710
+ read_own: "read_own";
13711
+ read_all: "read_all";
13712
+ write_own: "write_own";
13713
+ write_all: "write_all";
13714
+ }>>;
13715
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
13716
+ read: "read";
13717
+ write: "write";
13718
+ read_own: "read_own";
13719
+ read_all: "read_all";
13720
+ write_own: "write_own";
13721
+ write_all: "write_all";
13722
+ }>>;
13723
+ 'project.members': z.ZodOptional<z.ZodEnum<{
13724
+ read: "read";
13725
+ write: "write";
13726
+ read_own: "read_own";
13727
+ read_all: "read_all";
13728
+ write_own: "write_own";
13729
+ write_all: "write_all";
13730
+ }>>;
13731
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
13732
+ read: "read";
13733
+ write: "write";
13734
+ read_own: "read_own";
13735
+ read_all: "read_all";
13736
+ write_own: "write_own";
13737
+ write_all: "write_all";
13738
+ }>>;
13739
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
13740
+ read: "read";
13741
+ write: "write";
13742
+ read_own: "read_own";
13743
+ read_all: "read_all";
13744
+ write_own: "write_own";
13745
+ write_all: "write_all";
13746
+ }>>;
13747
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
13748
+ read: "read";
13749
+ write: "write";
13750
+ read_own: "read_own";
13751
+ read_all: "read_all";
13752
+ write_own: "write_own";
13753
+ write_all: "write_all";
13754
+ }>>;
13755
+ }, z.core.$strip>;
13756
+ shared_cloud_allowed: z.ZodBoolean;
13757
+ update_time: z.ZodISODateTime;
13758
+ workspace_id: z.ZodString;
13759
+ writable: z.ZodBoolean;
13760
+ }, z.core.$strip>>;
13761
+ projects_in_use: z.ZodBoolean;
13762
+ quota: z.ZodObject<{
13763
+ active: z.ZodInt;
13764
+ can_create: z.ZodBoolean;
13765
+ max_active: z.ZodInt;
13766
+ }, z.core.$strip>;
13767
+ }, z.core.$strip>;
13768
+ export declare const zCreateProjectBody: z.ZodObject<{
13769
+ description: z.ZodOptional<z.ZodString>;
13770
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
13771
+ role: z.ZodEnum<{
13772
+ runner: "runner";
13773
+ builder: "builder";
13774
+ project_admin: "project_admin";
13775
+ }>;
13776
+ user_id: z.ZodString;
13777
+ }, z.core.$strip>>>;
13778
+ name: z.ZodString;
13779
+ shared_cloud_allowed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13780
+ }, z.core.$strip>;
13781
+ /**
13782
+ * Project created
13783
+ */
13784
+ export declare const zCreateProjectResponse: z.ZodObject<{
13785
+ create_time: z.ZodISODateTime;
13786
+ created_by_user_id: z.ZodOptional<z.ZodString>;
13787
+ description: z.ZodOptional<z.ZodString>;
13788
+ id: z.ZodString;
13789
+ is_default: z.ZodBoolean;
13790
+ my_role: z.ZodOptional<z.ZodEnum<{
13791
+ runner: "runner";
13792
+ builder: "builder";
13793
+ project_admin: "project_admin";
13794
+ }>>;
13795
+ name: z.ZodString;
13796
+ permissions: z.ZodObject<{
13797
+ project: z.ZodOptional<z.ZodEnum<{
13798
+ read: "read";
13799
+ write: "write";
13800
+ read_own: "read_own";
13801
+ read_all: "read_all";
13802
+ write_own: "write_own";
13803
+ write_all: "write_all";
13804
+ }>>;
13805
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
13806
+ read: "read";
13807
+ write: "write";
13808
+ read_own: "read_own";
13809
+ read_all: "read_all";
13810
+ write_own: "write_own";
13811
+ write_all: "write_all";
13812
+ }>>;
13813
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
13814
+ read: "read";
13815
+ write: "write";
13816
+ read_own: "read_own";
13817
+ read_all: "read_all";
13818
+ write_own: "write_own";
13819
+ write_all: "write_all";
13820
+ }>>;
13821
+ 'project.members': z.ZodOptional<z.ZodEnum<{
13822
+ read: "read";
13823
+ write: "write";
13824
+ read_own: "read_own";
13825
+ read_all: "read_all";
13826
+ write_own: "write_own";
13827
+ write_all: "write_all";
13828
+ }>>;
13829
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
13830
+ read: "read";
13831
+ write: "write";
13832
+ read_own: "read_own";
13833
+ read_all: "read_all";
13834
+ write_own: "write_own";
13835
+ write_all: "write_all";
13836
+ }>>;
13837
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
13838
+ read: "read";
13839
+ write: "write";
13840
+ read_own: "read_own";
13841
+ read_all: "read_all";
13842
+ write_own: "write_own";
13843
+ write_all: "write_all";
13844
+ }>>;
13845
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
13846
+ read: "read";
13847
+ write: "write";
13848
+ read_own: "read_own";
13849
+ read_all: "read_all";
13850
+ write_own: "write_own";
13851
+ write_all: "write_all";
13852
+ }>>;
13853
+ }, z.core.$strip>;
13854
+ shared_cloud_allowed: z.ZodBoolean;
13855
+ update_time: z.ZodISODateTime;
13856
+ workspace_id: z.ZodString;
13857
+ writable: z.ZodBoolean;
13858
+ }, z.core.$strip>;
13859
+ export declare const zGetProjectPath: z.ZodObject<{
13860
+ id: z.ZodString;
13861
+ }, z.core.$strip>;
13862
+ /**
13863
+ * The project. In a workspace whose plan no longer includes Projects (a lapsed or downgraded plan), a project other than the default is still answered to whoever may view it, frozen, with `writable: false`. Do not read a 200 as the project taking writes, or as the plan including Projects; read `writable` and `permissions`.
13864
+ */
13865
+ export declare const zGetProjectResponse: z.ZodObject<{
13866
+ create_time: z.ZodISODateTime;
13867
+ created_by_user_id: z.ZodOptional<z.ZodString>;
13868
+ description: z.ZodOptional<z.ZodString>;
13869
+ id: z.ZodString;
13870
+ is_default: z.ZodBoolean;
13871
+ my_role: z.ZodOptional<z.ZodEnum<{
13872
+ runner: "runner";
13873
+ builder: "builder";
13874
+ project_admin: "project_admin";
13875
+ }>>;
13876
+ name: z.ZodString;
13877
+ permissions: z.ZodObject<{
13878
+ project: z.ZodOptional<z.ZodEnum<{
13879
+ read: "read";
13880
+ write: "write";
13881
+ read_own: "read_own";
13882
+ read_all: "read_all";
13883
+ write_own: "write_own";
13884
+ write_all: "write_all";
13885
+ }>>;
13886
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
13887
+ read: "read";
13888
+ write: "write";
13889
+ read_own: "read_own";
13890
+ read_all: "read_all";
13891
+ write_own: "write_own";
13892
+ write_all: "write_all";
13893
+ }>>;
13894
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
13895
+ read: "read";
13896
+ write: "write";
13897
+ read_own: "read_own";
13898
+ read_all: "read_all";
13899
+ write_own: "write_own";
13900
+ write_all: "write_all";
13901
+ }>>;
13902
+ 'project.members': z.ZodOptional<z.ZodEnum<{
13903
+ read: "read";
13904
+ write: "write";
13905
+ read_own: "read_own";
13906
+ read_all: "read_all";
13907
+ write_own: "write_own";
13908
+ write_all: "write_all";
13909
+ }>>;
13910
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
13911
+ read: "read";
13912
+ write: "write";
13913
+ read_own: "read_own";
13914
+ read_all: "read_all";
13915
+ write_own: "write_own";
13916
+ write_all: "write_all";
13917
+ }>>;
13918
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
13919
+ read: "read";
13920
+ write: "write";
13921
+ read_own: "read_own";
13922
+ read_all: "read_all";
13923
+ write_own: "write_own";
13924
+ write_all: "write_all";
13925
+ }>>;
13926
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
13927
+ read: "read";
13928
+ write: "write";
13929
+ read_own: "read_own";
13930
+ read_all: "read_all";
13931
+ write_own: "write_own";
13932
+ write_all: "write_all";
13933
+ }>>;
13934
+ }, z.core.$strip>;
13935
+ shared_cloud_allowed: z.ZodBoolean;
13936
+ update_time: z.ZodISODateTime;
13937
+ workspace_id: z.ZodString;
13938
+ writable: z.ZodBoolean;
13939
+ }, z.core.$strip>;
13940
+ export declare const zUpdateProjectBody: z.ZodObject<{
13941
+ description: z.ZodOptional<z.ZodString>;
13942
+ name: z.ZodOptional<z.ZodString>;
13943
+ shared_cloud_allowed: z.ZodOptional<z.ZodBoolean>;
13944
+ }, z.core.$strip>;
13945
+ export declare const zUpdateProjectPath: z.ZodObject<{
13946
+ id: z.ZodString;
13947
+ }, z.core.$strip>;
13948
+ /**
13949
+ * Project updated
13950
+ */
13951
+ export declare const zUpdateProjectResponse: z.ZodObject<{
13952
+ create_time: z.ZodISODateTime;
13953
+ created_by_user_id: z.ZodOptional<z.ZodString>;
13954
+ description: z.ZodOptional<z.ZodString>;
13955
+ id: z.ZodString;
13956
+ is_default: z.ZodBoolean;
13957
+ my_role: z.ZodOptional<z.ZodEnum<{
13958
+ runner: "runner";
13959
+ builder: "builder";
13960
+ project_admin: "project_admin";
13961
+ }>>;
13962
+ name: z.ZodString;
13963
+ permissions: z.ZodObject<{
13964
+ project: z.ZodOptional<z.ZodEnum<{
13965
+ read: "read";
13966
+ write: "write";
13967
+ read_own: "read_own";
13968
+ read_all: "read_all";
13969
+ write_own: "write_own";
13970
+ write_all: "write_all";
13971
+ }>>;
13972
+ 'project.assets': z.ZodOptional<z.ZodEnum<{
13973
+ read: "read";
13974
+ write: "write";
13975
+ read_own: "read_own";
13976
+ read_all: "read_all";
13977
+ write_own: "write_own";
13978
+ write_all: "write_all";
13979
+ }>>;
13980
+ 'project.deployments': z.ZodOptional<z.ZodEnum<{
13981
+ read: "read";
13982
+ write: "write";
13983
+ read_own: "read_own";
13984
+ read_all: "read_all";
13985
+ write_own: "write_own";
13986
+ write_all: "write_all";
13987
+ }>>;
13988
+ 'project.members': z.ZodOptional<z.ZodEnum<{
13989
+ read: "read";
13990
+ write: "write";
13991
+ read_own: "read_own";
13992
+ read_all: "read_all";
13993
+ write_own: "write_own";
13994
+ write_all: "write_all";
13995
+ }>>;
13996
+ 'project.queue': z.ZodOptional<z.ZodEnum<{
13997
+ read: "read";
13998
+ write: "write";
13999
+ read_own: "read_own";
14000
+ read_all: "read_all";
14001
+ write_own: "write_own";
14002
+ write_all: "write_all";
14003
+ }>>;
14004
+ 'project.usage': z.ZodOptional<z.ZodEnum<{
14005
+ read: "read";
14006
+ write: "write";
14007
+ read_own: "read_own";
14008
+ read_all: "read_all";
14009
+ write_own: "write_own";
14010
+ write_all: "write_all";
14011
+ }>>;
14012
+ 'project.workflow': z.ZodOptional<z.ZodEnum<{
14013
+ read: "read";
14014
+ write: "write";
14015
+ read_own: "read_own";
14016
+ read_all: "read_all";
14017
+ write_own: "write_own";
14018
+ write_all: "write_all";
14019
+ }>>;
14020
+ }, z.core.$strip>;
14021
+ shared_cloud_allowed: z.ZodBoolean;
14022
+ update_time: z.ZodISODateTime;
14023
+ workspace_id: z.ZodString;
14024
+ writable: z.ZodBoolean;
14025
+ }, z.core.$strip>;
14026
+ export declare const zListProjectMembersPath: z.ZodObject<{
14027
+ id: z.ZodString;
14028
+ }, z.core.$strip>;
14029
+ /**
14030
+ * Project members
14031
+ */
14032
+ export declare const zListProjectMembersResponse2: z.ZodObject<{
14033
+ members: z.ZodArray<z.ZodObject<{
14034
+ added_by_user_id: z.ZodOptional<z.ZodString>;
14035
+ create_time: z.ZodISODateTime;
14036
+ email: z.ZodString;
14037
+ name: z.ZodString;
14038
+ role: z.ZodEnum<{
14039
+ runner: "runner";
14040
+ builder: "builder";
14041
+ project_admin: "project_admin";
14042
+ }>;
14043
+ user_id: z.ZodString;
14044
+ }, z.core.$strip>>;
14045
+ }, z.core.$strip>;
14046
+ export declare const zRemoveProjectMemberPath: z.ZodObject<{
14047
+ id: z.ZodString;
14048
+ userId: z.ZodString;
14049
+ }, z.core.$strip>;
14050
+ /**
14051
+ * Member removed
14052
+ */
14053
+ export declare const zRemoveProjectMemberResponse: z.ZodVoid;
14054
+ export declare const zSetProjectMemberBody: z.ZodObject<{
14055
+ role: z.ZodEnum<{
14056
+ runner: "runner";
14057
+ builder: "builder";
14058
+ project_admin: "project_admin";
14059
+ }>;
14060
+ }, z.core.$strip>;
14061
+ export declare const zSetProjectMemberPath: z.ZodObject<{
14062
+ id: z.ZodString;
14063
+ userId: z.ZodString;
14064
+ }, z.core.$strip>;
14065
+ /**
14066
+ * The member, with the role now in effect
14067
+ */
14068
+ export declare const zSetProjectMemberResponse: z.ZodObject<{
14069
+ added_by_user_id: z.ZodOptional<z.ZodString>;
14070
+ create_time: z.ZodISODateTime;
14071
+ email: z.ZodString;
14072
+ name: z.ZodString;
14073
+ role: z.ZodEnum<{
14074
+ runner: "runner";
14075
+ builder: "builder";
14076
+ project_admin: "project_admin";
14077
+ }>;
14078
+ user_id: z.ZodString;
14079
+ }, z.core.$strip>;
12954
14080
  /**
12955
14081
  * Success
12956
14082
  */
@@ -12968,6 +14094,9 @@ export declare const zExecutePromptBody: z.ZodObject<{
12968
14094
  workflow_id: z.ZodOptional<z.ZodString>;
12969
14095
  workflow_version_id: z.ZodOptional<z.ZodString>;
12970
14096
  }, z.core.$strip>;
14097
+ export declare const zExecutePromptHeaders: z.ZodObject<{
14098
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14099
+ }, z.core.$strip>;
12971
14100
  /**
12972
14101
  * Success - Prompt accepted
12973
14102
  */
@@ -13285,6 +14414,9 @@ export declare const zUploadImageBody: z.ZodObject<{
13285
14414
  subfolder: z.ZodOptional<z.ZodString>;
13286
14415
  type: z.ZodOptional<z.ZodString>;
13287
14416
  }, z.core.$strip>;
14417
+ export declare const zUploadImageHeaders: z.ZodObject<{
14418
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14419
+ }, z.core.$strip>;
13288
14420
  /**
13289
14421
  * Image uploaded successfully
13290
14422
  */
@@ -13297,6 +14429,9 @@ export declare const zUploadMaskBody: z.ZodObject<{
13297
14429
  image: z.ZodString;
13298
14430
  original_ref: z.ZodString;
13299
14431
  }, z.core.$strip>;
14432
+ export declare const zUploadMaskHeaders: z.ZodObject<{
14433
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
14434
+ }, z.core.$strip>;
13300
14435
  /**
13301
14436
  * Mask uploaded successfully
13302
14437
  */
@@ -13328,6 +14463,7 @@ export declare const zUploadGrantPutResponse: z.ZodUnion<readonly [z.ZodObject<{
13328
14463
  id: z.ZodString;
13329
14464
  latest_version: z.ZodInt;
13330
14465
  name: z.ZodOptional<z.ZodString>;
14466
+ project_id: z.ZodOptional<z.ZodString>;
13331
14467
  updated_at: z.ZodISODateTime;
13332
14468
  }, z.core.$strip>]>;
13333
14469
  /**
@@ -13581,6 +14717,14 @@ export declare const zListCccWebsiteCardsQuery: z.ZodObject<{
13581
14717
  en: "en";
13582
14718
  "zh-CN": "zh-CN";
13583
14719
  ja: "ja";
14720
+ "zh-TW": "zh-TW";
14721
+ ko: "ko";
14722
+ es: "es";
14723
+ "pt-BR": "pt-BR";
14724
+ ru: "ru";
14725
+ fr: "fr";
14726
+ tr: "tr";
14727
+ ar: "ar";
13584
14728
  }>>>;
13585
14729
  q: z.ZodOptional<z.ZodString>;
13586
14730
  sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -14476,6 +15620,14 @@ export declare const zListCccWebsiteModelDirectoryQuery: z.ZodObject<{
14476
15620
  en: "en";
14477
15621
  "zh-CN": "zh-CN";
14478
15622
  ja: "ja";
15623
+ "zh-TW": "zh-TW";
15624
+ ko: "ko";
15625
+ es: "es";
15626
+ "pt-BR": "pt-BR";
15627
+ ru: "ru";
15628
+ fr: "fr";
15629
+ tr: "tr";
15630
+ ar: "ar";
14479
15631
  }>>>;
14480
15632
  }, z.core.$strip>;
14481
15633
  /**
@@ -14715,6 +15867,14 @@ export declare const zGetCccWebsiteRootPresentationQuery: z.ZodObject<{
14715
15867
  en: "en";
14716
15868
  "zh-CN": "zh-CN";
14717
15869
  ja: "ja";
15870
+ "zh-TW": "zh-TW";
15871
+ ko: "ko";
15872
+ es: "es";
15873
+ "pt-BR": "pt-BR";
15874
+ ru: "ru";
15875
+ fr: "fr";
15876
+ tr: "tr";
15877
+ ar: "ar";
14718
15878
  }>>>;
14719
15879
  revision_id: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
14720
15880
  }, z.core.$strip>;
@@ -15018,6 +16178,9 @@ export declare const zGetApiViewVideoAliasResponse: z.ZodString;
15018
16178
  * Empty object for workflow templates
15019
16179
  */
15020
16180
  export declare const zGetWorkflowTemplatesResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16181
+ export declare const zListWorkflowsHeaders: z.ZodObject<{
16182
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
16183
+ }, z.core.$strip>;
15021
16184
  export declare const zListWorkflowsQuery: z.ZodObject<{
15022
16185
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
15023
16186
  offset: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
@@ -15055,6 +16218,7 @@ export declare const zListWorkflowsResponse: z.ZodObject<{
15055
16218
  id: z.ZodString;
15056
16219
  latest_version: z.ZodInt;
15057
16220
  name: z.ZodOptional<z.ZodString>;
16221
+ project_id: z.ZodOptional<z.ZodString>;
15058
16222
  updated_at: z.ZodISODateTime;
15059
16223
  }, z.core.$strip>>;
15060
16224
  pagination: z.ZodObject<{
@@ -15076,6 +16240,9 @@ export declare const zCreateWorkflowBody: z.ZodObject<{
15076
16240
  name: z.ZodOptional<z.ZodString>;
15077
16241
  workflow_json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15078
16242
  }, z.core.$strip>;
16243
+ export declare const zCreateWorkflowHeaders: z.ZodObject<{
16244
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
16245
+ }, z.core.$strip>;
15079
16246
  /**
15080
16247
  * Workflow created successfully
15081
16248
  */
@@ -15094,6 +16261,7 @@ export declare const zCreateWorkflowResponse: z.ZodObject<{
15094
16261
  id: z.ZodString;
15095
16262
  latest_version: z.ZodInt;
15096
16263
  name: z.ZodOptional<z.ZodString>;
16264
+ project_id: z.ZodOptional<z.ZodString>;
15097
16265
  updated_at: z.ZodISODateTime;
15098
16266
  }, z.core.$strip>;
15099
16267
  export declare const zDeleteWorkflowPath: z.ZodObject<{
@@ -15124,6 +16292,7 @@ export declare const zGetWorkflowResponse: z.ZodObject<{
15124
16292
  id: z.ZodString;
15125
16293
  latest_version: z.ZodInt;
15126
16294
  name: z.ZodOptional<z.ZodString>;
16295
+ project_id: z.ZodOptional<z.ZodString>;
15127
16296
  updated_at: z.ZodISODateTime;
15128
16297
  }, z.core.$strip>;
15129
16298
  export declare const zUpdateWorkflowBody: z.ZodObject<{
@@ -15155,6 +16324,7 @@ export declare const zUpdateWorkflowResponse: z.ZodObject<{
15155
16324
  id: z.ZodString;
15156
16325
  latest_version: z.ZodInt;
15157
16326
  name: z.ZodOptional<z.ZodString>;
16327
+ project_id: z.ZodOptional<z.ZodString>;
15158
16328
  updated_at: z.ZodISODateTime;
15159
16329
  }, z.core.$strip>;
15160
16330
  export declare const zGetWorkflowContentPath: z.ZodObject<{
@@ -15175,6 +16345,9 @@ export declare const zForkWorkflowBody: z.ZodObject<{
15175
16345
  name: z.ZodOptional<z.ZodString>;
15176
16346
  source_version: z.ZodInt;
15177
16347
  }, z.core.$strip>;
16348
+ export declare const zForkWorkflowHeaders: z.ZodObject<{
16349
+ 'X-Comfy-Project-ID': z.ZodOptional<z.ZodString>;
16350
+ }, z.core.$strip>;
15178
16351
  export declare const zForkWorkflowPath: z.ZodObject<{
15179
16352
  workflow_id: z.ZodString;
15180
16353
  }, z.core.$strip>;
@@ -15196,6 +16369,7 @@ export declare const zForkWorkflowResponse: z.ZodObject<{
15196
16369
  id: z.ZodString;
15197
16370
  latest_version: z.ZodInt;
15198
16371
  name: z.ZodOptional<z.ZodString>;
16372
+ project_id: z.ZodOptional<z.ZodString>;
15199
16373
  updated_at: z.ZodISODateTime;
15200
16374
  }, z.core.$strip>;
15201
16375
  export declare const zGetWorkflowSidebarFilePath: z.ZodObject<{
@@ -15266,6 +16440,37 @@ export declare const zCreateWorkflowUploadUrlResponse: z.ZodObject<{
15266
16440
  expires_in: z.ZodInt;
15267
16441
  upload_path: z.ZodString;
15268
16442
  }, z.core.$strip>;
16443
+ export declare const zListWorkspaceAccessEventsQuery: z.ZodObject<{
16444
+ project_id: z.ZodOptional<z.ZodString>;
16445
+ after: z.ZodOptional<z.ZodString>;
16446
+ limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
16447
+ }, z.core.$strip>;
16448
+ /**
16449
+ * Access changes, newest first
16450
+ */
16451
+ export declare const zListWorkspaceAccessEventsResponse: z.ZodObject<{
16452
+ events: z.ZodArray<z.ZodObject<{
16453
+ action: z.ZodString;
16454
+ actor: z.ZodObject<{
16455
+ name: z.ZodString;
16456
+ user_id: z.ZodString;
16457
+ }, z.core.$strip>;
16458
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16459
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16460
+ create_time: z.ZodISODateTime;
16461
+ id: z.ZodUUID;
16462
+ project_id: z.ZodOptional<z.ZodString>;
16463
+ project_name: z.ZodOptional<z.ZodString>;
16464
+ target: z.ZodOptional<z.ZodObject<{
16465
+ name: z.ZodString;
16466
+ user_id: z.ZodString;
16467
+ }, z.core.$strip>>;
16468
+ }, z.core.$strip>>;
16469
+ pagination: z.ZodObject<{
16470
+ has_more: z.ZodBoolean;
16471
+ next_cursor: z.ZodOptional<z.ZodString>;
16472
+ }, z.core.$strip>;
16473
+ }, z.core.$strip>;
15269
16474
  export declare const zListWorkspaceApiKeysQuery: z.ZodObject<{
15270
16475
  include_revoked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15271
16476
  }, z.core.$strip>;
@@ -15383,6 +16588,7 @@ export declare const zListWorkspaceMembersResponse: z.ZodObject<{
15383
16588
  owner: "owner";
15384
16589
  member: "member";
15385
16590
  }>;
16591
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
15386
16592
  }, z.core.$strip>>;
15387
16593
  pagination: z.ZodObject<{
15388
16594
  has_more: z.ZodBoolean;
@@ -15436,6 +16642,55 @@ export declare const zUpdateWorkspaceMemberRoleResponse: z.ZodObject<{
15436
16642
  owner: "owner";
15437
16643
  member: "member";
15438
16644
  }>;
16645
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
16646
+ }, z.core.$strip>;
16647
+ export declare const zRevokeWorkspaceAdminPath: z.ZodObject<{
16648
+ userId: z.ZodString;
16649
+ }, z.core.$strip>;
16650
+ /**
16651
+ * The member, with `workspace_admin` false
16652
+ */
16653
+ export declare const zRevokeWorkspaceAdminResponse: z.ZodObject<{
16654
+ capabilities: z.ZodOptional<z.ZodObject<{
16655
+ can_change_role: z.ZodBoolean;
16656
+ can_remove: z.ZodBoolean;
16657
+ can_set_credit_limit: z.ZodBoolean;
16658
+ }, z.core.$strip>>;
16659
+ email: z.ZodString;
16660
+ id: z.ZodString;
16661
+ is_original_owner: z.ZodBoolean;
16662
+ joined_at: z.ZodISODateTime;
16663
+ managed_by_directory: z.ZodOptional<z.ZodBoolean>;
16664
+ name: z.ZodString;
16665
+ role: z.ZodEnum<{
16666
+ owner: "owner";
16667
+ member: "member";
16668
+ }>;
16669
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
16670
+ }, z.core.$strip>;
16671
+ export declare const zGrantWorkspaceAdminPath: z.ZodObject<{
16672
+ userId: z.ZodString;
16673
+ }, z.core.$strip>;
16674
+ /**
16675
+ * The member, with `workspace_admin` true
16676
+ */
16677
+ export declare const zGrantWorkspaceAdminResponse: z.ZodObject<{
16678
+ capabilities: z.ZodOptional<z.ZodObject<{
16679
+ can_change_role: z.ZodBoolean;
16680
+ can_remove: z.ZodBoolean;
16681
+ can_set_credit_limit: z.ZodBoolean;
16682
+ }, z.core.$strip>>;
16683
+ email: z.ZodString;
16684
+ id: z.ZodString;
16685
+ is_original_owner: z.ZodBoolean;
16686
+ joined_at: z.ZodISODateTime;
16687
+ managed_by_directory: z.ZodOptional<z.ZodBoolean>;
16688
+ name: z.ZodString;
16689
+ role: z.ZodEnum<{
16690
+ owner: "owner";
16691
+ member: "member";
16692
+ }>;
16693
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
15439
16694
  }, z.core.$strip>;
15440
16695
  /**
15441
16696
  * The policy document
@@ -15509,6 +16764,7 @@ export declare const zListWorkspacesResponse2: z.ZodObject<{
15509
16764
  team: "team";
15510
16765
  personal: "personal";
15511
16766
  }>;
16767
+ workspace_admin: z.ZodOptional<z.ZodBoolean>;
15512
16768
  }, z.core.$strip>>;
15513
16769
  }, z.core.$strip>;
15514
16770
  export declare const zCreateWorkspaceBody: z.ZodObject<{
@@ -15661,6 +16917,94 @@ export declare const zListWorkspaceDeploymentsResponse: z.ZodObject<{
15661
16917
  }>>;
15662
16918
  picked_deployment_id: z.ZodOptional<z.ZodString>;
15663
16919
  }, z.core.$strip>;
16920
+ export declare const zCreateWorkspaceDeploymentModelUploadBody: z.ZodObject<{
16921
+ blake3: z.ZodOptional<z.ZodString>;
16922
+ filename: z.ZodString;
16923
+ parts: z.ZodOptional<z.ZodBoolean>;
16924
+ reuse: z.ZodOptional<z.ZodBoolean>;
16925
+ sha256: z.ZodString;
16926
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
16927
+ }, z.core.$strip>;
16928
+ export declare const zCreateWorkspaceDeploymentModelUploadPath: z.ZodObject<{
16929
+ id: z.ZodString;
16930
+ deployment_id: z.ZodString;
16931
+ }, z.core.$strip>;
16932
+ /**
16933
+ * comfy-builder's BlobUpload, unchanged
16934
+ */
16935
+ export declare const zCreateWorkspaceDeploymentModelUploadResponse: z.ZodObject<{
16936
+ blobId: z.ZodString;
16937
+ deduplicated: z.ZodBoolean;
16938
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
16939
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
16940
+ expiresAt: z.ZodISODateTime;
16941
+ offsetBytes: z.ZodCoercedBigInt<unknown>;
16942
+ partNumber: z.ZodInt;
16943
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
16944
+ uploadUrl: z.ZodString;
16945
+ }, z.core.$strip>>>;
16946
+ uploadUrl: z.ZodOptional<z.ZodString>;
16947
+ }, z.core.$strip>;
16948
+ export declare const zCompleteWorkspaceDeploymentModelUploadPath: z.ZodObject<{
16949
+ id: z.ZodString;
16950
+ deployment_id: z.ZodString;
16951
+ blob_id: z.ZodString;
16952
+ }, z.core.$strip>;
16953
+ /**
16954
+ * comfy-builder's BlobUploadComplete, unchanged
16955
+ */
16956
+ export declare const zCompleteWorkspaceDeploymentModelUploadResponse: z.ZodObject<{
16957
+ blobId: z.ZodString;
16958
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
16959
+ }, z.core.$strip>;
16960
+ export declare const zRefreshWorkspaceDeploymentModelUploadPartsPath: z.ZodObject<{
16961
+ id: z.ZodString;
16962
+ deployment_id: z.ZodString;
16963
+ blob_id: z.ZodString;
16964
+ }, z.core.$strip>;
16965
+ /**
16966
+ * comfy-builder's BlobUploadParts, unchanged
16967
+ */
16968
+ export declare const zRefreshWorkspaceDeploymentModelUploadPartsResponse: z.ZodObject<{
16969
+ blobId: z.ZodString;
16970
+ parts: z.ZodArray<z.ZodObject<{
16971
+ expiresAt: z.ZodISODateTime;
16972
+ offsetBytes: z.ZodCoercedBigInt<unknown>;
16973
+ partNumber: z.ZodInt;
16974
+ sizeBytes: z.ZodCoercedBigInt<unknown>;
16975
+ uploadUrl: z.ZodString;
16976
+ }, z.core.$strip>>;
16977
+ }, z.core.$strip>;
16978
+ export declare const zListWorkspaceDeploymentModelsPath: z.ZodObject<{
16979
+ id: z.ZodString;
16980
+ deployment_id: z.ZodString;
16981
+ }, z.core.$strip>;
16982
+ /**
16983
+ * comfy-deploy's model list, unchanged
16984
+ */
16985
+ export declare const zListWorkspaceDeploymentModelsResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16986
+ export declare const zAddWorkspaceDeploymentModelBody: z.ZodObject<{
16987
+ blobId: z.ZodString;
16988
+ filename: z.ZodOptional<z.ZodString>;
16989
+ type: z.ZodString;
16990
+ }, z.core.$strip>;
16991
+ export declare const zAddWorkspaceDeploymentModelPath: z.ZodObject<{
16992
+ id: z.ZodString;
16993
+ deployment_id: z.ZodString;
16994
+ }, z.core.$strip>;
16995
+ /**
16996
+ * comfy-deploy's new entry, unchanged
16997
+ */
16998
+ export declare const zAddWorkspaceDeploymentModelResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16999
+ export declare const zRemoveWorkspaceDeploymentModelPath: z.ZodObject<{
17000
+ id: z.ZodString;
17001
+ deployment_id: z.ZodString;
17002
+ model_id: z.ZodString;
17003
+ }, z.core.$strip>;
17004
+ /**
17005
+ * comfy-deploy's entry, now removing, unchanged
17006
+ */
17007
+ export declare const zRemoveWorkspaceDeploymentModelResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15664
17008
  export declare const zStartWorkspaceDeploymentPath: z.ZodObject<{
15665
17009
  id: z.ZodString;
15666
17010
  deployment_id: z.ZodString;
@@ -15718,6 +17062,19 @@ export declare const zRedirectExtensionScriptsPath: z.ZodObject<{
15718
17062
  * Service is healthy
15719
17063
  */
15720
17064
  export declare const zGetHealthResponse: z.ZodString;
17065
+ export declare const zAgentGetSupportReplayHeaders: z.ZodObject<{
17066
+ 'X-Comfy-Replay-Support-Secret': z.ZodString;
17067
+ 'X-Comfy-Workspace-ID': z.ZodString;
17068
+ 'X-Comfy-Replay-Requester': z.ZodString;
17069
+ 'X-Comfy-Replay-Reason': z.ZodString;
17070
+ }, z.core.$strip>;
17071
+ export declare const zAgentGetSupportReplayPath: z.ZodObject<{
17072
+ id: z.ZodUUID;
17073
+ }, z.core.$strip>;
17074
+ /**
17075
+ * A degraded or full AgentReplayBundleV1.
17076
+ */
17077
+ export declare const zAgentGetSupportReplayResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15721
17078
  /**
15722
17079
  * Map of folder type name to list of path entries
15723
17080
  */