@comfyorg/ingest-types 1.0.0 → 1.1.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/index.d.ts +1 -1
- package/dist/types.gen.d.ts +1494 -89
- package/dist/zod.gen.d.ts +915 -84
- package/dist/zod.gen.js +300 -13
- package/package.json +2 -2
package/dist/zod.gen.js
CHANGED
|
@@ -167,6 +167,25 @@ export const zWorkflowApiAssetsResponse = z.object({
|
|
|
167
167
|
export const zWorkflowApiAssetsRequest = z.object({
|
|
168
168
|
workflow_api_json: z.record(z.unknown())
|
|
169
169
|
});
|
|
170
|
+
/**
|
|
171
|
+
* The user a web session belongs to
|
|
172
|
+
*/
|
|
173
|
+
export const zWebSessionUser = z.object({
|
|
174
|
+
email: z.string(),
|
|
175
|
+
email_verified: z.boolean(),
|
|
176
|
+
id: z.string(),
|
|
177
|
+
name: z.string().optional(),
|
|
178
|
+
sign_in_provider: z.string().optional()
|
|
179
|
+
});
|
|
180
|
+
/**
|
|
181
|
+
* The live web session and the user it belongs to
|
|
182
|
+
*/
|
|
183
|
+
export const zWebSessionResponse = z.object({
|
|
184
|
+
absolute_expires_at: z.string().datetime(),
|
|
185
|
+
csrf_token: z.string(),
|
|
186
|
+
expires_at: z.string().datetime(),
|
|
187
|
+
user: zWebSessionUser
|
|
188
|
+
});
|
|
170
189
|
/**
|
|
171
190
|
* Details of a single validation error encountered during asset operations.
|
|
172
191
|
*/
|
|
@@ -280,6 +299,41 @@ export const zUpdateHubProfileRequest = z.object({
|
|
|
280
299
|
display_name: z.string().optional(),
|
|
281
300
|
website_urls: z.array(z.string()).optional()
|
|
282
301
|
});
|
|
302
|
+
/**
|
|
303
|
+
* What a credit top-up of the requested amount would grant.
|
|
304
|
+
*/
|
|
305
|
+
export const zTopupQuoteResponse = z.object({
|
|
306
|
+
amount_cents: z.coerce
|
|
307
|
+
.bigint()
|
|
308
|
+
.min(BigInt('-9223372036854775808'), {
|
|
309
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
310
|
+
})
|
|
311
|
+
.max(BigInt('9223372036854775807'), {
|
|
312
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
313
|
+
}),
|
|
314
|
+
credits: z.coerce
|
|
315
|
+
.bigint()
|
|
316
|
+
.min(BigInt('-9223372036854775808'), {
|
|
317
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
318
|
+
})
|
|
319
|
+
.max(BigInt('9223372036854775807'), {
|
|
320
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
321
|
+
}),
|
|
322
|
+
expires_at: z.string().datetime()
|
|
323
|
+
});
|
|
324
|
+
/**
|
|
325
|
+
* 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. 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.
|
|
326
|
+
*/
|
|
327
|
+
export const zToolCallSummary = z.object({
|
|
328
|
+
duration_ms: z.number().int().optional(),
|
|
329
|
+
error_code: z.string().optional(),
|
|
330
|
+
finished_at: z.string().datetime().optional(),
|
|
331
|
+
id: z.string(),
|
|
332
|
+
started_at: z.string().datetime().optional(),
|
|
333
|
+
status: z.enum(['success', 'error']),
|
|
334
|
+
tool_call_id: z.string(),
|
|
335
|
+
tool_name: z.string()
|
|
336
|
+
});
|
|
283
337
|
/**
|
|
284
338
|
* Pre/post-discount price for a team credit stop, in cents.
|
|
285
339
|
*/
|
|
@@ -446,6 +500,16 @@ export const zSubscriptionDiscount = z.object({
|
|
|
446
500
|
})
|
|
447
501
|
.optional(),
|
|
448
502
|
code: z.string(),
|
|
503
|
+
duration: z.enum(['once', 'repeating', 'forever']).optional(),
|
|
504
|
+
duration_in_months: z.coerce
|
|
505
|
+
.bigint()
|
|
506
|
+
.min(BigInt('-9223372036854775808'), {
|
|
507
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
508
|
+
})
|
|
509
|
+
.max(BigInt('9223372036854775807'), {
|
|
510
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
511
|
+
})
|
|
512
|
+
.optional(),
|
|
449
513
|
kind: z.enum(['plan', 'promotion']),
|
|
450
514
|
name: z.string().optional()
|
|
451
515
|
});
|
|
@@ -531,6 +595,14 @@ export const zDocOpsResultFrame = z.object({
|
|
|
531
595
|
});
|
|
532
596
|
export const zDocResetData = z.object({
|
|
533
597
|
actor: z.string().max(256).optional(),
|
|
598
|
+
lineage_seq: z.coerce
|
|
599
|
+
.bigint()
|
|
600
|
+
.min(BigInt('-9223372036854775808'), {
|
|
601
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
602
|
+
})
|
|
603
|
+
.max(BigInt('9223372036854775807'), {
|
|
604
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
605
|
+
}),
|
|
534
606
|
seq: z.coerce
|
|
535
607
|
.bigint()
|
|
536
608
|
.min(BigInt('-9223372036854775808'), {
|
|
@@ -551,6 +623,15 @@ export const zDocResetFrame = z.object({
|
|
|
551
623
|
});
|
|
552
624
|
export const zDocUpdateData = z.object({
|
|
553
625
|
actor: z.string().max(256).optional(),
|
|
626
|
+
lineage_seq: z.coerce
|
|
627
|
+
.bigint()
|
|
628
|
+
.min(BigInt('-9223372036854775808'), {
|
|
629
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
630
|
+
})
|
|
631
|
+
.max(BigInt('9223372036854775807'), {
|
|
632
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
633
|
+
}),
|
|
634
|
+
op_ids: z.array(z.string().min(1).max(128)).max(256).optional(),
|
|
554
635
|
seq: z.coerce
|
|
555
636
|
.bigint()
|
|
556
637
|
.min(BigInt('-9223372036854775808'), {
|
|
@@ -636,6 +717,12 @@ export const zSavedPaymentMethod = z.object({
|
|
|
636
717
|
.optional(),
|
|
637
718
|
type: z.string()
|
|
638
719
|
});
|
|
720
|
+
/**
|
|
721
|
+
* Response after signing out of all devices
|
|
722
|
+
*/
|
|
723
|
+
export const zRevokeAllSessionsResponse = z.object({
|
|
724
|
+
revoked: z.number().int()
|
|
725
|
+
});
|
|
639
726
|
/**
|
|
640
727
|
* Response after accepting a resubscribe request.
|
|
641
728
|
*/
|
|
@@ -650,6 +737,22 @@ export const zResubscribeResponse = z.object({
|
|
|
650
737
|
export const zResubscribeRequest = z.object({
|
|
651
738
|
idempotency_key: z.string().optional()
|
|
652
739
|
});
|
|
740
|
+
/**
|
|
741
|
+
* The newest open renewal invoice of the workspace's Stripe subscription (active, or canceled but not yet ended). Returned only to workspace owners on the stripe billing rail while billing_status is payment_failed or paused, and not while a payment for it is processing. hosted_invoice_url is a bearer payment link.
|
|
742
|
+
*/
|
|
743
|
+
export const zRenewalInvoice = z.object({
|
|
744
|
+
amount_due: z.coerce
|
|
745
|
+
.bigint()
|
|
746
|
+
.min(BigInt('-9223372036854775808'), {
|
|
747
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
748
|
+
})
|
|
749
|
+
.max(BigInt('9223372036854775807'), {
|
|
750
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
751
|
+
}),
|
|
752
|
+
currency: z.string(),
|
|
753
|
+
hosted_invoice_url: z.string(),
|
|
754
|
+
next_payment_attempt: z.string().datetime().optional()
|
|
755
|
+
});
|
|
653
756
|
/**
|
|
654
757
|
* Response after a queue management action (delete or clear).
|
|
655
758
|
*/
|
|
@@ -809,6 +912,15 @@ export const zPreviewPlanInfo = z.object({
|
|
|
809
912
|
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
810
913
|
}),
|
|
811
914
|
duration: zSubscriptionDuration,
|
|
915
|
+
list_price_cents: z.coerce
|
|
916
|
+
.bigint()
|
|
917
|
+
.min(BigInt('-9223372036854775808'), {
|
|
918
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
919
|
+
})
|
|
920
|
+
.max(BigInt('9223372036854775807'), {
|
|
921
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
922
|
+
})
|
|
923
|
+
.optional(),
|
|
812
924
|
period_end: z.string().datetime().optional(),
|
|
813
925
|
period_start: z.string().datetime().optional(),
|
|
814
926
|
price_cents: z.coerce
|
|
@@ -837,6 +949,15 @@ export const zPreviewSubscribeResponse = z.object({
|
|
|
837
949
|
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
838
950
|
})
|
|
839
951
|
.optional(),
|
|
952
|
+
balance_applied_cents: z.coerce
|
|
953
|
+
.bigint()
|
|
954
|
+
.min(BigInt('-9223372036854775808'), {
|
|
955
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
956
|
+
})
|
|
957
|
+
.max(BigInt('9223372036854775807'), {
|
|
958
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
959
|
+
})
|
|
960
|
+
.optional(),
|
|
840
961
|
cost_next_period_cents: z.coerce
|
|
841
962
|
.bigint()
|
|
842
963
|
.min(BigInt('-9223372036854775808'), {
|
|
@@ -892,6 +1013,15 @@ export const zPreviewSubscribeResponse = z.object({
|
|
|
892
1013
|
.optional(),
|
|
893
1014
|
renewal_at: z.string().datetime().optional(),
|
|
894
1015
|
requires_reactivation_confirmation: z.boolean().optional(),
|
|
1016
|
+
subtotal_cents: z.coerce
|
|
1017
|
+
.bigint()
|
|
1018
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1019
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
1020
|
+
})
|
|
1021
|
+
.max(BigInt('9223372036854775807'), {
|
|
1022
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
1023
|
+
})
|
|
1024
|
+
.optional(),
|
|
895
1025
|
transition_type: z.enum([
|
|
896
1026
|
'new_subscription',
|
|
897
1027
|
'upgrade',
|
|
@@ -930,6 +1060,15 @@ export const zPlanAvailability = z.object({
|
|
|
930
1060
|
*/
|
|
931
1061
|
export const zPlan = z.object({
|
|
932
1062
|
availability: zPlanAvailability,
|
|
1063
|
+
credits: z.coerce
|
|
1064
|
+
.bigint()
|
|
1065
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1066
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
1067
|
+
})
|
|
1068
|
+
.max(BigInt('9223372036854775807'), {
|
|
1069
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
1070
|
+
})
|
|
1071
|
+
.optional(),
|
|
933
1072
|
credits_cents: z.coerce
|
|
934
1073
|
.bigint()
|
|
935
1074
|
.min(BigInt('-9223372036854775808'), {
|
|
@@ -1164,6 +1303,16 @@ export const zMember = z.object({
|
|
|
1164
1303
|
name: z.string(),
|
|
1165
1304
|
role: z.enum(['owner', 'member'])
|
|
1166
1305
|
});
|
|
1306
|
+
/**
|
|
1307
|
+
* 400 for a missing `filename` or a `res` that is not a number, on the media routes served outside the generated wrapper.
|
|
1308
|
+
*/
|
|
1309
|
+
export const zMediaQueryError = z.object({
|
|
1310
|
+
error: z.string()
|
|
1311
|
+
});
|
|
1312
|
+
/**
|
|
1313
|
+
* A 400 from a media route served outside the generated wrapper: ErrorResponse, or MediaQueryError for a bad query parameter.
|
|
1314
|
+
*/
|
|
1315
|
+
export const zMediaBadRequestError = z.union([zErrorResponse, zMediaQueryError]);
|
|
1167
1316
|
/**
|
|
1168
1317
|
* Paginated list of workspaces the authenticated user belongs to.
|
|
1169
1318
|
*/
|
|
@@ -1823,6 +1972,23 @@ export const zForkWorkflowRequest = z.object({
|
|
|
1823
1972
|
name: z.string().optional(),
|
|
1824
1973
|
source_version: z.number().int()
|
|
1825
1974
|
});
|
|
1975
|
+
/**
|
|
1976
|
+
* 403 for a credential the route does not take. `accepted` names the ones it does, as `WWW-Authenticate` does.
|
|
1977
|
+
*/
|
|
1978
|
+
export const zAuthTypeNotAllowedError = z.object({
|
|
1979
|
+
accepted: z.array(z.string()),
|
|
1980
|
+
error: z.object({
|
|
1981
|
+
message: z.string(),
|
|
1982
|
+
type: z.enum(['auth_type_not_allowed'])
|
|
1983
|
+
})
|
|
1984
|
+
});
|
|
1985
|
+
/**
|
|
1986
|
+
* A 403 body: ErrorResponse, or AuthTypeNotAllowedError for a credential the route does not take.
|
|
1987
|
+
*/
|
|
1988
|
+
export const zForbiddenError = z.union([
|
|
1989
|
+
zErrorResponse,
|
|
1990
|
+
zAuthTypeNotAllowedError
|
|
1991
|
+
]);
|
|
1826
1992
|
/**
|
|
1827
1993
|
* Response after submitting feedback
|
|
1828
1994
|
*/
|
|
@@ -1923,6 +2089,7 @@ export const zCurrentWorkspaceResponse = z.object({
|
|
|
1923
2089
|
auth_method: z.string(),
|
|
1924
2090
|
id: z.string(),
|
|
1925
2091
|
name: z.string(),
|
|
2092
|
+
permissions: z.array(z.string()).optional(),
|
|
1926
2093
|
role: z.enum(['owner', 'member']).optional(),
|
|
1927
2094
|
type: z.enum(['personal', 'team'])
|
|
1928
2095
|
});
|
|
@@ -1999,6 +2166,19 @@ export const zCreateTopupRequest = z.object({
|
|
|
1999
2166
|
checkout_attempt_id: z.string().optional(),
|
|
2000
2167
|
idempotency_key: z.string().optional()
|
|
2001
2168
|
});
|
|
2169
|
+
/**
|
|
2170
|
+
* Request body for previewing a credit top-up.
|
|
2171
|
+
*/
|
|
2172
|
+
export const zCreateTopupQuoteRequest = z.object({
|
|
2173
|
+
amount_cents: z.coerce
|
|
2174
|
+
.bigint()
|
|
2175
|
+
.min(BigInt('-9223372036854775808'), {
|
|
2176
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
2177
|
+
})
|
|
2178
|
+
.max(BigInt('9223372036854775807'), {
|
|
2179
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
2180
|
+
})
|
|
2181
|
+
});
|
|
2002
2182
|
/**
|
|
2003
2183
|
* A hosted Stripe Checkout session for a credit top-up.
|
|
2004
2184
|
*/
|
|
@@ -2010,7 +2190,7 @@ export const zCreateTopupCheckoutResponse = z.object({
|
|
|
2010
2190
|
* Request body for creating a hosted credit top-up checkout session.
|
|
2011
2191
|
*/
|
|
2012
2192
|
export const zCreateTopupCheckoutRequest = z.object({
|
|
2013
|
-
amount_cents: z.coerce.bigint().gte(BigInt(500)).lte(BigInt(
|
|
2193
|
+
amount_cents: z.coerce.bigint().gte(BigInt(500)).lte(BigInt(1600000)),
|
|
2014
2194
|
idempotency_key: z.string().optional(),
|
|
2015
2195
|
return_url: z.string().url()
|
|
2016
2196
|
});
|
|
@@ -2060,7 +2240,8 @@ export const zCreateHubProfileRequest = z.object({
|
|
|
2060
2240
|
export const zChurnkeyAuthResponse = z.object({
|
|
2061
2241
|
auth_hash: z.string(),
|
|
2062
2242
|
customer_id: z.string(),
|
|
2063
|
-
mode: z.enum(['live', 'test', 'sandbox'])
|
|
2243
|
+
mode: z.enum(['live', 'test', 'sandbox']),
|
|
2244
|
+
offer_subscription_id: z.string().min(1).optional()
|
|
2064
2245
|
});
|
|
2065
2246
|
/**
|
|
2066
2247
|
* Response after successfully cancelling a subscription.
|
|
@@ -2126,7 +2307,10 @@ export const zBillingStatusResponse = z.object({
|
|
|
2126
2307
|
pending_billing_op_type: z.enum(['subscription', 'topup']).optional(),
|
|
2127
2308
|
plan_slug: z.string().optional(),
|
|
2128
2309
|
renewal_date: z.string().datetime().optional(),
|
|
2310
|
+
renewal_invoice: zRenewalInvoice.optional(),
|
|
2129
2311
|
scheduled_change: zScheduledPlanChange.nullable(),
|
|
2312
|
+
scoped_effective_has_funds: z.record(z.boolean()).optional(),
|
|
2313
|
+
scoped_has_funds: z.record(z.boolean()).optional(),
|
|
2130
2314
|
subscription_duration: zSubscriptionDuration.optional(),
|
|
2131
2315
|
subscription_status: z.enum(['active', 'ended', 'canceled']).optional(),
|
|
2132
2316
|
subscription_tier: zSubscriptionTier.optional(),
|
|
@@ -2140,11 +2324,31 @@ export const zBillingPlansResponse = z.object({
|
|
|
2140
2324
|
plans: z.array(zPlan),
|
|
2141
2325
|
team_credit_stops: zTeamCreditStops.optional()
|
|
2142
2326
|
});
|
|
2327
|
+
/**
|
|
2328
|
+
* Display only. The plan the operation targets; for a scheduled change,
|
|
2329
|
+
* the plan it switches to at period end. Present only for succeeded
|
|
2330
|
+
* plan changes, initial subscriptions and resubscribes. Visible to any
|
|
2331
|
+
* workspace member who can read the operation.
|
|
2332
|
+
*
|
|
2333
|
+
*/
|
|
2334
|
+
export const zBillingOpReceiptPlan = z.object({
|
|
2335
|
+
duration: zSubscriptionDuration,
|
|
2336
|
+
slug: z.string()
|
|
2337
|
+
});
|
|
2143
2338
|
/**
|
|
2144
2339
|
* Status of an asynchronous billing operation.
|
|
2145
2340
|
*/
|
|
2146
2341
|
export const zBillingOpStatusResponse = z.object({
|
|
2147
2342
|
action_url: z.string().optional(),
|
|
2343
|
+
amount_charged_cents: z.coerce
|
|
2344
|
+
.bigint()
|
|
2345
|
+
.min(BigInt('-9223372036854775808'), {
|
|
2346
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
2347
|
+
})
|
|
2348
|
+
.max(BigInt('9223372036854775807'), {
|
|
2349
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
2350
|
+
})
|
|
2351
|
+
.optional(),
|
|
2148
2352
|
authentication_state: z
|
|
2149
2353
|
.enum([
|
|
2150
2354
|
'requires_action',
|
|
@@ -2155,6 +2359,15 @@ export const zBillingOpStatusResponse = z.object({
|
|
|
2155
2359
|
])
|
|
2156
2360
|
.optional(),
|
|
2157
2361
|
completed_at: z.string().datetime().optional(),
|
|
2362
|
+
credits_added: z.coerce
|
|
2363
|
+
.bigint()
|
|
2364
|
+
.min(BigInt('-9223372036854775808'), {
|
|
2365
|
+
message: 'Invalid value: Expected int64 to be >= -9223372036854775808'
|
|
2366
|
+
})
|
|
2367
|
+
.max(BigInt('9223372036854775807'), {
|
|
2368
|
+
message: 'Invalid value: Expected int64 to be <= 9223372036854775807'
|
|
2369
|
+
})
|
|
2370
|
+
.optional(),
|
|
2158
2371
|
decline_reason: z
|
|
2159
2372
|
.enum([
|
|
2160
2373
|
'card_declined',
|
|
@@ -2164,6 +2377,7 @@ export const zBillingOpStatusResponse = z.object({
|
|
|
2164
2377
|
'authentication_required',
|
|
2165
2378
|
'authentication_failed',
|
|
2166
2379
|
'processing_error',
|
|
2380
|
+
'payment_not_completed',
|
|
2167
2381
|
'generic'
|
|
2168
2382
|
])
|
|
2169
2383
|
.optional(),
|
|
@@ -2177,6 +2391,7 @@ export const zBillingOpStatusResponse = z.object({
|
|
|
2177
2391
|
'in_progress'
|
|
2178
2392
|
])
|
|
2179
2393
|
.optional(),
|
|
2394
|
+
plan: zBillingOpReceiptPlan.optional(),
|
|
2180
2395
|
recovery_action: z
|
|
2181
2396
|
.enum([
|
|
2182
2397
|
'retry',
|
|
@@ -2448,10 +2663,10 @@ export const zAgentPostMessageRequest = z.object({
|
|
|
2448
2663
|
attachments: z.array(z.string()).optional(),
|
|
2449
2664
|
content: z.string(),
|
|
2450
2665
|
current_tab: z.string().optional(),
|
|
2666
|
+
current_tab_unbound: z.boolean().optional(),
|
|
2451
2667
|
draft: z
|
|
2452
2668
|
.object({
|
|
2453
|
-
content: z.record(z.unknown()).optional()
|
|
2454
|
-
version: z.number().int().nullish()
|
|
2669
|
+
content: z.record(z.unknown()).optional()
|
|
2455
2670
|
})
|
|
2456
2671
|
.optional(),
|
|
2457
2672
|
open_tabs: z
|
|
@@ -2487,7 +2702,11 @@ export const zAgentPendingAsk = z.object({
|
|
|
2487
2702
|
* A persisted message in an agent thread.
|
|
2488
2703
|
*/
|
|
2489
2704
|
export const zAgentMessage = z.object({
|
|
2490
|
-
content: z
|
|
2705
|
+
content: z
|
|
2706
|
+
.object({
|
|
2707
|
+
tool_calls: z.array(zToolCallSummary).optional()
|
|
2708
|
+
})
|
|
2709
|
+
.optional(),
|
|
2491
2710
|
id: z.string(),
|
|
2492
2711
|
pending_ask: zAgentPendingAsk.optional(),
|
|
2493
2712
|
role: z.enum(['user', 'assistant', 'tool', 'system']),
|
|
@@ -2595,6 +2814,22 @@ export const zListAssetsResponseWritable = z.object({
|
|
|
2595
2814
|
export const zAssetCreatedWritable = zAssetWritable.and(z.object({
|
|
2596
2815
|
created_new: z.boolean()
|
|
2597
2816
|
}));
|
|
2817
|
+
/**
|
|
2818
|
+
* The workspace a media request reads from, where a media tag cannot
|
|
2819
|
+
* send `X-Comfy-Workspace-ID`. It applies only while
|
|
2820
|
+
* `web_session_enabled` is on for the user; with it off, and always on
|
|
2821
|
+
* the `CookieAuth` cookie, it is ignored.
|
|
2822
|
+
*
|
|
2823
|
+
* On a `WebSessionAuth` request it selects the workspace: a workspace
|
|
2824
|
+
* the user cannot access is 403 `workspace_access_denied`, and a
|
|
2825
|
+
* malformed value, or one that disagrees with `X-Comfy-Workspace-ID`,
|
|
2826
|
+
* is 400 `workspace_id_invalid`. A token or API key keeps its own
|
|
2827
|
+
* workspace, and naming another is 400 `workspace_id_invalid`. A cookie
|
|
2828
|
+
* request that names no workspace looks a filename up across all of the
|
|
2829
|
+
* user's workspaces, and an asset id up in the personal one.
|
|
2830
|
+
*
|
|
2831
|
+
*/
|
|
2832
|
+
export const zMediaWorkspaceId = z.string();
|
|
2598
2833
|
/**
|
|
2599
2834
|
* JWKS response
|
|
2600
2835
|
*/
|
|
@@ -2796,7 +3031,11 @@ export const zGetAssetContentPath = z.object({
|
|
|
2796
3031
|
id: z.string()
|
|
2797
3032
|
});
|
|
2798
3033
|
export const zGetAssetContentQuery = z.object({
|
|
2799
|
-
disposition: z
|
|
3034
|
+
disposition: z
|
|
3035
|
+
.enum(['inline', 'attachment'])
|
|
3036
|
+
.optional()
|
|
3037
|
+
.default('attachment'),
|
|
3038
|
+
workspace_id: z.string().optional()
|
|
2800
3039
|
});
|
|
2801
3040
|
/**
|
|
2802
3041
|
* Asset content stream (local runtime streams the bytes directly)
|
|
@@ -2946,10 +3185,18 @@ export const zRedeemDesktopLoginCodeResponse = zDesktopLoginCodeRedeemResponse;
|
|
|
2946
3185
|
* Session deleted successfully
|
|
2947
3186
|
*/
|
|
2948
3187
|
export const zDeleteSessionResponse2 = zDeleteSessionResponse;
|
|
3188
|
+
/**
|
|
3189
|
+
* The live session
|
|
3190
|
+
*/
|
|
3191
|
+
export const zGetSessionResponse = zWebSessionResponse;
|
|
2949
3192
|
/**
|
|
2950
3193
|
* Session created successfully
|
|
2951
3194
|
*/
|
|
2952
3195
|
export const zCreateSessionResponse2 = zCreateSessionResponse;
|
|
3196
|
+
/**
|
|
3197
|
+
* Every session ended
|
|
3198
|
+
*/
|
|
3199
|
+
export const zRevokeAllSessionsResponse2 = zRevokeAllSessionsResponse;
|
|
2953
3200
|
export const zExchangeTokenBody = zExchangeTokenRequest;
|
|
2954
3201
|
/**
|
|
2955
3202
|
* Token exchanged successfully
|
|
@@ -3043,6 +3290,11 @@ export const zCreateTopupCheckoutBody = zCreateTopupCheckoutRequest;
|
|
|
3043
3290
|
* Checkout session created
|
|
3044
3291
|
*/
|
|
3045
3292
|
export const zCreateTopupCheckoutResponse2 = zCreateTopupCheckoutResponse;
|
|
3293
|
+
export const zCreateTopupQuoteBody = zCreateTopupQuoteRequest;
|
|
3294
|
+
/**
|
|
3295
|
+
* Top-up quote
|
|
3296
|
+
*/
|
|
3297
|
+
export const zCreateTopupQuoteResponse = zTopupQuoteResponse;
|
|
3046
3298
|
export const zGetBillingUsageTimeSeriesQuery = z.object({
|
|
3047
3299
|
group_by: z
|
|
3048
3300
|
.enum(['model', 'endpoint', 'product'])
|
|
@@ -3088,6 +3340,7 @@ export const zGetExtensionsResponse = z.array(z.string());
|
|
|
3088
3340
|
* Success
|
|
3089
3341
|
*/
|
|
3090
3342
|
export const zGetFeaturesResponse = z.object({
|
|
3343
|
+
billing_web_url: z.string().optional(),
|
|
3091
3344
|
free_tier_balance: z
|
|
3092
3345
|
.object({
|
|
3093
3346
|
allowance: z.number().int(),
|
|
@@ -3096,7 +3349,9 @@ export const zGetFeaturesResponse = z.object({
|
|
|
3096
3349
|
})
|
|
3097
3350
|
.optional(),
|
|
3098
3351
|
max_upload_size: z.number().int().optional(),
|
|
3099
|
-
|
|
3352
|
+
stripe_publishable_key: z.string().optional(),
|
|
3353
|
+
supports_preview_metadata: z.boolean().optional(),
|
|
3354
|
+
web_session_probe: z.boolean().optional()
|
|
3100
3355
|
});
|
|
3101
3356
|
export const zSubmitFeedbackBody = zFeedbackRequest;
|
|
3102
3357
|
/**
|
|
@@ -3582,7 +3837,8 @@ export const zGetUsersInfoResponse = z.object({
|
|
|
3582
3837
|
storage: z.string()
|
|
3583
3838
|
});
|
|
3584
3839
|
export const zGetVhsQueryVideoQuery = z.object({
|
|
3585
|
-
filename: z.string()
|
|
3840
|
+
filename: z.string(),
|
|
3841
|
+
workspace_id: z.string().optional()
|
|
3586
3842
|
});
|
|
3587
3843
|
/**
|
|
3588
3844
|
* Video metadata
|
|
@@ -3598,13 +3854,27 @@ export const zGetVhsQueryVideoResponse = z.object({
|
|
|
3598
3854
|
export const zGetVhsViewAudioQuery = z.object({
|
|
3599
3855
|
filename: z.string(),
|
|
3600
3856
|
type: z.string().optional(),
|
|
3601
|
-
subfolder: z.string().optional()
|
|
3857
|
+
subfolder: z.string().optional(),
|
|
3858
|
+
channel: z.string().optional(),
|
|
3859
|
+
res: z.number().int().gte(64).lte(1024).optional(),
|
|
3860
|
+
workspace_id: z.string().optional()
|
|
3602
3861
|
});
|
|
3862
|
+
/**
|
|
3863
|
+
* JPEG thumbnail for `res`
|
|
3864
|
+
*/
|
|
3865
|
+
export const zGetVhsViewAudioResponse = z.string();
|
|
3603
3866
|
export const zGetVhsViewVideoQuery = z.object({
|
|
3604
3867
|
filename: z.string(),
|
|
3605
3868
|
type: z.string().optional(),
|
|
3606
|
-
subfolder: z.string().optional()
|
|
3869
|
+
subfolder: z.string().optional(),
|
|
3870
|
+
channel: z.string().optional(),
|
|
3871
|
+
res: z.number().int().gte(64).lte(1024).optional(),
|
|
3872
|
+
workspace_id: z.string().optional()
|
|
3607
3873
|
});
|
|
3874
|
+
/**
|
|
3875
|
+
* JPEG thumbnail for `res`
|
|
3876
|
+
*/
|
|
3877
|
+
export const zGetVhsViewVideoResponse = z.string();
|
|
3608
3878
|
export const zViewFileQuery = z.object({
|
|
3609
3879
|
filename: z.string(),
|
|
3610
3880
|
subfolder: z.string().optional(),
|
|
@@ -3615,7 +3885,8 @@ export const zViewFileQuery = z.object({
|
|
|
3615
3885
|
workflow: z.string().optional(),
|
|
3616
3886
|
timestamp: z.number().int().optional(),
|
|
3617
3887
|
channel: z.string().optional(),
|
|
3618
|
-
res: z.number().int().gte(64).lte(1024).optional()
|
|
3888
|
+
res: z.number().int().gte(64).lte(1024).optional(),
|
|
3889
|
+
workspace_id: z.string().optional()
|
|
3619
3890
|
});
|
|
3620
3891
|
/**
|
|
3621
3892
|
* Resized JPEG thumbnail (returned when res parameter is used)
|
|
@@ -3625,8 +3896,15 @@ export const zGetLegacyViewMetadataPath = z.object({
|
|
|
3625
3896
|
folder_name: z.string()
|
|
3626
3897
|
});
|
|
3627
3898
|
export const zGetApiViewVideoAliasQuery = z.object({
|
|
3628
|
-
filename: z.string()
|
|
3899
|
+
filename: z.string(),
|
|
3900
|
+
channel: z.string().optional(),
|
|
3901
|
+
res: z.number().int().gte(64).lte(1024).optional(),
|
|
3902
|
+
workspace_id: z.string().optional()
|
|
3629
3903
|
});
|
|
3904
|
+
/**
|
|
3905
|
+
* JPEG thumbnail for `res`
|
|
3906
|
+
*/
|
|
3907
|
+
export const zGetApiViewVideoAliasResponse = z.string();
|
|
3630
3908
|
/**
|
|
3631
3909
|
* Empty object for workflow templates
|
|
3632
3910
|
*/
|
|
@@ -3919,8 +4197,17 @@ export const zGetTemplateProxyPath = z.object({
|
|
|
3919
4197
|
path: z.string()
|
|
3920
4198
|
});
|
|
3921
4199
|
export const zGetViewCompatAliasQuery = z.object({
|
|
3922
|
-
filename: z.string()
|
|
4200
|
+
filename: z.string(),
|
|
4201
|
+
channel: z.string().optional(),
|
|
4202
|
+
res: z.number().int().gte(64).lte(1024).optional(),
|
|
4203
|
+
workspace_id: z.string().optional()
|
|
3923
4204
|
});
|
|
4205
|
+
/**
|
|
4206
|
+
* JPEG thumbnail for `res`
|
|
4207
|
+
*/
|
|
4208
|
+
export const zGetViewCompatAliasResponse = z.string();
|
|
3924
4209
|
export const zGetWebsocketQuery = z.object({
|
|
4210
|
+
token: z.string().optional(),
|
|
4211
|
+
workspace_id: z.string().optional(),
|
|
3925
4212
|
clientId: z.string().optional()
|
|
3926
4213
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comfyorg/ingest-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Comfy Cloud Ingest API TypeScript types and Zod schemas",
|
|
5
5
|
"homepage": "https://comfy.org",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"build": "pnpm run clean && tsc -p tsconfig.build.json",
|
|
46
46
|
"clean": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\"",
|
|
47
47
|
"generate": "openapi-ts && node -e \"const fs=require('fs'); ['src/zod.gen.ts'].forEach(f => fs.writeFileSync(f, fs.readFileSync(f,'utf8').replaceAll(\\\"from 'zod/v3'\\\", \\\"from 'zod'\\\")));\"",
|
|
48
|
-
"typecheck": "tsc --noEmit"
|
|
48
|
+
"typecheck": "tsx ../../scripts/vue-tsc-native.ts --noEmit"
|
|
49
49
|
}
|
|
50
50
|
}
|