mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-05 03:59:09 +00:00
Compare commits
2 Commits
test/error
...
update-ing
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e6668e1bb6 | ||
|
|
5fba682609 |
@@ -16,6 +16,7 @@ export type {
|
||||
AssetCreated,
|
||||
AssetCreatedWritable,
|
||||
AssetDownloadResponse,
|
||||
AssetInfo,
|
||||
AssetMetadataResponse,
|
||||
AssetTagHistogramResponse,
|
||||
AssetUpdated,
|
||||
@@ -38,6 +39,11 @@ export type {
|
||||
CheckAssetByHashError,
|
||||
CheckAssetByHashErrors,
|
||||
CheckAssetByHashResponses,
|
||||
CheckHubUsernameData,
|
||||
CheckHubUsernameError,
|
||||
CheckHubUsernameErrors,
|
||||
CheckHubUsernameResponse,
|
||||
CheckHubUsernameResponses,
|
||||
ClaimInviteCodeData,
|
||||
ClaimInviteCodeError,
|
||||
ClaimInviteCodeErrors,
|
||||
@@ -62,7 +68,19 @@ export type {
|
||||
CreateDeletionRequestData,
|
||||
CreateDeletionRequestError,
|
||||
CreateDeletionRequestErrors,
|
||||
CreateDeletionRequestResponse,
|
||||
CreateDeletionRequestResponses,
|
||||
CreateHubAssetUploadUrlData,
|
||||
CreateHubAssetUploadUrlError,
|
||||
CreateHubAssetUploadUrlErrors,
|
||||
CreateHubAssetUploadUrlResponse,
|
||||
CreateHubAssetUploadUrlResponses,
|
||||
CreateHubProfileData,
|
||||
CreateHubProfileError,
|
||||
CreateHubProfileErrors,
|
||||
CreateHubProfileRequest,
|
||||
CreateHubProfileResponse,
|
||||
CreateHubProfileResponses,
|
||||
CreateInviteRequest,
|
||||
CreateSecretData,
|
||||
CreateSecretError,
|
||||
@@ -111,6 +129,11 @@ export type {
|
||||
DeleteAssetErrors,
|
||||
DeleteAssetResponse,
|
||||
DeleteAssetResponses,
|
||||
DeleteHubWorkflowData,
|
||||
DeleteHubWorkflowError,
|
||||
DeleteHubWorkflowErrors,
|
||||
DeleteHubWorkflowResponse,
|
||||
DeleteHubWorkflowResponses,
|
||||
DeleteSecretData,
|
||||
DeleteSecretError,
|
||||
DeleteSecretErrors,
|
||||
@@ -212,6 +235,16 @@ export type {
|
||||
GetGlobalSubgraphsErrors,
|
||||
GetGlobalSubgraphsResponse,
|
||||
GetGlobalSubgraphsResponses,
|
||||
GetHubProfileByUsernameData,
|
||||
GetHubProfileByUsernameError,
|
||||
GetHubProfileByUsernameErrors,
|
||||
GetHubProfileByUsernameResponse,
|
||||
GetHubProfileByUsernameResponses,
|
||||
GetHubWorkflowData,
|
||||
GetHubWorkflowError,
|
||||
GetHubWorkflowErrors,
|
||||
GetHubWorkflowResponse,
|
||||
GetHubWorkflowResponses,
|
||||
GetInviteCodeStatusData,
|
||||
GetInviteCodeStatusError,
|
||||
GetInviteCodeStatusErrors,
|
||||
@@ -250,11 +283,21 @@ export type {
|
||||
GetModelsInFolderErrors,
|
||||
GetModelsInFolderResponse,
|
||||
GetModelsInFolderResponses,
|
||||
GetMyHubProfileData,
|
||||
GetMyHubProfileError,
|
||||
GetMyHubProfileErrors,
|
||||
GetMyHubProfileResponse,
|
||||
GetMyHubProfileResponses,
|
||||
GetPaymentPortalData,
|
||||
GetPaymentPortalError,
|
||||
GetPaymentPortalErrors,
|
||||
GetPaymentPortalResponse,
|
||||
GetPaymentPortalResponses,
|
||||
GetPublishedWorkflowData,
|
||||
GetPublishedWorkflowError,
|
||||
GetPublishedWorkflowErrors,
|
||||
GetPublishedWorkflowResponse,
|
||||
GetPublishedWorkflowResponses,
|
||||
GetRawLogsData,
|
||||
GetRawLogsError,
|
||||
GetRawLogsErrors,
|
||||
@@ -305,11 +348,30 @@ export type {
|
||||
GetWorkspaceResponses,
|
||||
GlobalSubgraphData,
|
||||
GlobalSubgraphInfo,
|
||||
HubAssetUploadUrlRequest,
|
||||
HubAssetUploadUrlResponse,
|
||||
HubLabelInfo,
|
||||
HubLabelListResponse,
|
||||
HubProfile,
|
||||
HubProfileSummary,
|
||||
HubUsernameCheckResponse,
|
||||
HubWorkflowDetail,
|
||||
HubWorkflowListResponse,
|
||||
HubWorkflowSummary,
|
||||
HubWorkflowTemplateEntry,
|
||||
ImportPublishedAssetsData,
|
||||
ImportPublishedAssetsError,
|
||||
ImportPublishedAssetsErrors,
|
||||
ImportPublishedAssetsRequest,
|
||||
ImportPublishedAssetsResponse,
|
||||
ImportPublishedAssetsResponse2,
|
||||
ImportPublishedAssetsResponses,
|
||||
InviteCodeClaimResponse,
|
||||
InviteCodeStatusResponse,
|
||||
JobStatusResponse,
|
||||
JwkKey,
|
||||
JwksResponse,
|
||||
LabelRef,
|
||||
LeaveWorkspaceData,
|
||||
LeaveWorkspaceError,
|
||||
LeaveWorkspaceErrors,
|
||||
@@ -322,6 +384,21 @@ export type {
|
||||
ListAssetsResponse2,
|
||||
ListAssetsResponses,
|
||||
ListAssetsResponseWritable,
|
||||
ListHubLabelsData,
|
||||
ListHubLabelsError,
|
||||
ListHubLabelsErrors,
|
||||
ListHubLabelsResponse,
|
||||
ListHubLabelsResponses,
|
||||
ListHubWorkflowIndexData,
|
||||
ListHubWorkflowIndexError,
|
||||
ListHubWorkflowIndexErrors,
|
||||
ListHubWorkflowIndexResponse,
|
||||
ListHubWorkflowIndexResponses,
|
||||
ListHubWorkflowsData,
|
||||
ListHubWorkflowsError,
|
||||
ListHubWorkflowsErrors,
|
||||
ListHubWorkflowsResponse,
|
||||
ListHubWorkflowsResponses,
|
||||
ListInvitesResponse,
|
||||
ListMembersResponse,
|
||||
ListSecretsData,
|
||||
@@ -376,6 +453,11 @@ export type {
|
||||
PlanAvailability,
|
||||
PlanAvailabilityReason,
|
||||
PlanSeatSummary,
|
||||
PostAssetsFromWorkflowData,
|
||||
PostAssetsFromWorkflowError,
|
||||
PostAssetsFromWorkflowErrors,
|
||||
PostAssetsFromWorkflowResponse,
|
||||
PostAssetsFromWorkflowResponses,
|
||||
PreviewPlanInfo,
|
||||
PreviewSubscribeData,
|
||||
PreviewSubscribeError,
|
||||
@@ -384,6 +466,13 @@ export type {
|
||||
PreviewSubscribeResponse,
|
||||
PreviewSubscribeResponse2,
|
||||
PreviewSubscribeResponses,
|
||||
PublishedWorkflowDetail,
|
||||
PublishHubWorkflowData,
|
||||
PublishHubWorkflowError,
|
||||
PublishHubWorkflowErrors,
|
||||
PublishHubWorkflowRequest,
|
||||
PublishHubWorkflowResponse,
|
||||
PublishHubWorkflowResponses,
|
||||
RawLogsResponse,
|
||||
RemoveAssetTagsData,
|
||||
RemoveAssetTagsError,
|
||||
@@ -455,6 +544,12 @@ export type {
|
||||
UpdateAssetTagsErrors,
|
||||
UpdateAssetTagsResponse,
|
||||
UpdateAssetTagsResponses,
|
||||
UpdateHubProfileData,
|
||||
UpdateHubProfileError,
|
||||
UpdateHubProfileErrors,
|
||||
UpdateHubProfileRequest,
|
||||
UpdateHubProfileResponse,
|
||||
UpdateHubProfileResponses,
|
||||
UpdateSecretData,
|
||||
UpdateSecretError,
|
||||
UpdateSecretErrors,
|
||||
@@ -486,6 +581,8 @@ export type {
|
||||
UserResponse,
|
||||
ValidationError,
|
||||
ValidationResult,
|
||||
WorkflowApiAssetsRequest,
|
||||
WorkflowApiAssetsResponse,
|
||||
WorkflowForkedFrom,
|
||||
WorkflowListResponse,
|
||||
WorkflowResponse,
|
||||
|
||||
1000
packages/ingest-types/src/types.gen.ts
generated
1000
packages/ingest-types/src/types.gen.ts
generated
File diff suppressed because it is too large
Load Diff
402
packages/ingest-types/src/zod.gen.ts
generated
402
packages/ingest-types/src/zod.gen.ts
generated
@@ -2,6 +2,207 @@
|
||||
|
||||
import { z } from 'zod'
|
||||
|
||||
export const zHubUsernameCheckResponse = z.object({
|
||||
username: z.string(),
|
||||
available: z.boolean(),
|
||||
suggestions: z.array(z.string()).optional(),
|
||||
validation_error: z.string().optional()
|
||||
})
|
||||
|
||||
export const zHubAssetUploadUrlResponse = z.object({
|
||||
upload_url: z.string(),
|
||||
public_url: z.string(),
|
||||
token: z.string()
|
||||
})
|
||||
|
||||
export const zHubAssetUploadUrlRequest = z.object({
|
||||
filename: z.string(),
|
||||
content_type: z.string()
|
||||
})
|
||||
|
||||
export const zPublishHubWorkflowRequest = z.object({
|
||||
username: z.string(),
|
||||
name: z.string(),
|
||||
workflow_filename: z.string(),
|
||||
asset_ids: z.array(z.string()),
|
||||
description: z.string().optional(),
|
||||
tags: z.array(z.string()).optional(),
|
||||
models: z.array(z.string()).optional(),
|
||||
custom_nodes: z.array(z.string()).optional(),
|
||||
tutorial_url: z.string().optional(),
|
||||
metadata: z.record(z.unknown()).optional(),
|
||||
thumbnail_type: z.enum(['image', 'video', 'image_comparison']).optional(),
|
||||
thumbnail_token_or_url: z.string().optional(),
|
||||
thumbnail_comparison_token_or_url: z.string().optional(),
|
||||
sample_image_tokens_or_urls: z.array(z.string()).optional()
|
||||
})
|
||||
|
||||
export const zAssetInfo = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
preview_url: z.string(),
|
||||
storage_url: z.string(),
|
||||
model: z.boolean(),
|
||||
public: z.boolean(),
|
||||
in_library: z.boolean()
|
||||
})
|
||||
|
||||
export const zHubProfileSummary = z.object({
|
||||
username: z.string(),
|
||||
display_name: z.string().optional(),
|
||||
avatar_url: z.string().optional()
|
||||
})
|
||||
|
||||
export const zLabelRef = z.object({
|
||||
name: z.string(),
|
||||
display_name: z.string()
|
||||
})
|
||||
|
||||
export const zHubWorkflowDetail = z.object({
|
||||
share_id: z.string(),
|
||||
workflow_id: z.string(),
|
||||
name: z.string(),
|
||||
description: z.string().optional(),
|
||||
tags: z.array(zLabelRef).optional(),
|
||||
thumbnail_type: z.enum(['image', 'video', 'image_comparison']).optional(),
|
||||
thumbnail_url: z.string().optional(),
|
||||
thumbnail_comparison_url: z.string().optional(),
|
||||
models: z.array(zLabelRef).optional(),
|
||||
custom_nodes: z.array(zLabelRef).optional(),
|
||||
tutorial_url: z.string().optional(),
|
||||
metadata: z.record(z.unknown()).optional(),
|
||||
sample_image_urls: z.array(z.string()).optional(),
|
||||
publish_time: z.string().datetime().nullish(),
|
||||
workflow_json: z.record(z.unknown()),
|
||||
assets: z.array(zAssetInfo),
|
||||
profile: zHubProfileSummary
|
||||
})
|
||||
|
||||
export const zHubWorkflowSummary = z.object({
|
||||
share_id: z.string(),
|
||||
name: z.string(),
|
||||
description: z.string().optional(),
|
||||
tags: z.array(zLabelRef).optional(),
|
||||
models: z.array(zLabelRef).optional(),
|
||||
custom_nodes: z.array(zLabelRef).optional(),
|
||||
thumbnail_type: z.enum(['image', 'video', 'image_comparison']).optional(),
|
||||
thumbnail_url: z.string().optional(),
|
||||
thumbnail_comparison_url: z.string().optional(),
|
||||
publish_time: z.string().datetime().nullish(),
|
||||
profile: zHubProfileSummary,
|
||||
metadata: z.record(z.unknown()).optional(),
|
||||
tutorial_url: z.string().optional(),
|
||||
sample_image_urls: z.array(z.string()).optional()
|
||||
})
|
||||
|
||||
export const zHubWorkflowListResponse = z.object({
|
||||
workflows: z.array(z.union([zHubWorkflowSummary, zHubWorkflowDetail])),
|
||||
next_cursor: z.string().optional()
|
||||
})
|
||||
|
||||
export const zHubLabelInfo = z.object({
|
||||
name: z.string(),
|
||||
display_name: z.string(),
|
||||
description: z.string().optional(),
|
||||
type: z.enum(['tag', 'model', 'custom_node'])
|
||||
})
|
||||
|
||||
export const zHubLabelListResponse = z.object({
|
||||
labels: z.array(zHubLabelInfo)
|
||||
})
|
||||
|
||||
export const zHubWorkflowTemplateEntry = z.object({
|
||||
name: z.string(),
|
||||
title: z.string(),
|
||||
description: z.string().optional(),
|
||||
tags: z.array(z.string()).optional(),
|
||||
models: z.array(z.string()).optional(),
|
||||
requiresCustomNodes: z.array(z.string()).optional(),
|
||||
thumbnailVariant: z.string().optional(),
|
||||
mediaType: z.string().optional(),
|
||||
mediaSubtype: z.string().optional(),
|
||||
size: z.number().optional(),
|
||||
vram: z.number().optional(),
|
||||
openSource: z.boolean().optional(),
|
||||
profile: zHubProfileSummary.optional(),
|
||||
tutorialUrl: z.string().optional(),
|
||||
logos: z.array(z.record(z.unknown())).optional(),
|
||||
date: z.string().optional(),
|
||||
io: z
|
||||
.object({
|
||||
inputs: z.array(z.record(z.unknown())).optional(),
|
||||
outputs: z.array(z.record(z.unknown())).optional()
|
||||
})
|
||||
.optional(),
|
||||
includeOnDistributions: z.array(z.string()).optional(),
|
||||
thumbnailUrl: z.string().optional(),
|
||||
thumbnailComparisonUrl: z.string().optional(),
|
||||
shareId: z.string().optional(),
|
||||
extendedDescription: z.string().optional(),
|
||||
metaDescription: z.string().optional(),
|
||||
howToUse: z.array(z.string()).optional(),
|
||||
suggestedUseCases: z.array(z.string()).optional(),
|
||||
faqItems: z
|
||||
.array(
|
||||
z.object({
|
||||
question: z.string(),
|
||||
answer: z.string()
|
||||
})
|
||||
)
|
||||
.optional(),
|
||||
contentTemplate: z.string().optional()
|
||||
})
|
||||
|
||||
export const zUpdateHubProfileRequest = z.object({
|
||||
display_name: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
avatar_token: z.string().nullish(),
|
||||
website_urls: z.array(z.string()).optional()
|
||||
})
|
||||
|
||||
export const zCreateHubProfileRequest = z.object({
|
||||
workspace_id: z.string(),
|
||||
username: z.string(),
|
||||
display_name: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
avatar_token: z.string().optional(),
|
||||
website_urls: z.array(z.string()).optional()
|
||||
})
|
||||
|
||||
export const zHubProfile = z.object({
|
||||
username: z.string(),
|
||||
display_name: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
avatar_url: z.string().optional(),
|
||||
website_urls: z.array(z.string()).optional()
|
||||
})
|
||||
|
||||
export const zImportPublishedAssetsResponse = z.object({
|
||||
assets: z.array(zAssetInfo)
|
||||
})
|
||||
|
||||
export const zImportPublishedAssetsRequest = z.object({
|
||||
published_asset_ids: z.array(z.string())
|
||||
})
|
||||
|
||||
export const zPublishedWorkflowDetail = z.object({
|
||||
share_id: z.string(),
|
||||
workflow_id: z.string(),
|
||||
name: z.string(),
|
||||
listed: z.boolean(),
|
||||
publish_time: z.string().datetime().nullish(),
|
||||
workflow_json: z.record(z.unknown()),
|
||||
assets: z.array(zAssetInfo)
|
||||
})
|
||||
|
||||
export const zWorkflowApiAssetsResponse = z.object({
|
||||
assets: z.array(zAssetInfo)
|
||||
})
|
||||
|
||||
export const zWorkflowApiAssetsRequest = z.object({
|
||||
workflow_api_json: z.record(z.unknown())
|
||||
})
|
||||
|
||||
export const zForkWorkflowRequest = z.object({
|
||||
source_version: z.number().int(),
|
||||
name: z.string().optional()
|
||||
@@ -992,7 +1193,9 @@ export const zListAssetsData = z.object({
|
||||
.enum(['name', 'created_at', 'updated_at', 'size', 'last_access_time'])
|
||||
.optional(),
|
||||
order: z.enum(['asc', 'desc']).optional(),
|
||||
include_public: z.boolean().optional().default(true)
|
||||
job_ids: z.array(z.string().uuid()).optional(),
|
||||
include_public: z.boolean().optional().default(true),
|
||||
asset_hash: z.string().optional()
|
||||
})
|
||||
.optional()
|
||||
})
|
||||
@@ -1234,6 +1437,28 @@ export const zCheckAssetByHashData = z.object({
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
export const zPostAssetsFromWorkflowData = z.object({
|
||||
body: zWorkflowApiAssetsRequest,
|
||||
path: z.never().optional(),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
export const zPostAssetsFromWorkflowResponse = zWorkflowApiAssetsResponse
|
||||
|
||||
export const zImportPublishedAssetsData = z.object({
|
||||
body: zImportPublishedAssetsRequest,
|
||||
path: z.never().optional(),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Successfully imported assets
|
||||
*/
|
||||
export const zImportPublishedAssetsResponse2 = zImportPublishedAssetsResponse
|
||||
|
||||
export const zListSecretsData = z.object({
|
||||
body: z.never().optional(),
|
||||
path: z.never().optional(),
|
||||
@@ -1633,6 +1858,13 @@ export const zCreateDeletionRequestData = z.object({
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Created - deletion request created or already exists
|
||||
*/
|
||||
export const zCreateDeletionRequestResponse = z.object({
|
||||
user_found_in_cloud: z.boolean()
|
||||
})
|
||||
|
||||
export const zReportPartnerUsageData = z.object({
|
||||
body: zPartnerUsageRequest,
|
||||
path: z.never().optional(),
|
||||
@@ -1928,3 +2160,171 @@ export const zForkWorkflowData = z.object({
|
||||
* Workflow forked successfully
|
||||
*/
|
||||
export const zForkWorkflowResponse = zWorkflowResponse
|
||||
|
||||
export const zCreateHubProfileData = z.object({
|
||||
body: zCreateHubProfileRequest,
|
||||
path: z.never().optional(),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Hub profile created
|
||||
*/
|
||||
export const zCreateHubProfileResponse = zHubProfile
|
||||
|
||||
export const zGetMyHubProfileData = z.object({
|
||||
body: z.never().optional(),
|
||||
path: z.never().optional(),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Hub profile
|
||||
*/
|
||||
export const zGetMyHubProfileResponse = zHubProfile
|
||||
|
||||
export const zCheckHubUsernameData = z.object({
|
||||
body: z.never().optional(),
|
||||
path: z.never().optional(),
|
||||
query: z.object({
|
||||
username: z.string()
|
||||
})
|
||||
})
|
||||
|
||||
/**
|
||||
* Username availability result
|
||||
*/
|
||||
export const zCheckHubUsernameResponse = zHubUsernameCheckResponse
|
||||
|
||||
export const zGetHubProfileByUsernameData = z.object({
|
||||
body: z.never().optional(),
|
||||
path: z.object({
|
||||
username: z.string()
|
||||
}),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Hub profile
|
||||
*/
|
||||
export const zGetHubProfileByUsernameResponse = zHubProfile
|
||||
|
||||
export const zUpdateHubProfileData = z.object({
|
||||
body: zUpdateHubProfileRequest,
|
||||
path: z.object({
|
||||
username: z.string()
|
||||
}),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Hub profile updated
|
||||
*/
|
||||
export const zUpdateHubProfileResponse = zHubProfile
|
||||
|
||||
export const zCreateHubAssetUploadUrlData = z.object({
|
||||
body: zHubAssetUploadUrlRequest,
|
||||
path: z.never().optional(),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Presigned upload URL and token
|
||||
*/
|
||||
export const zCreateHubAssetUploadUrlResponse = zHubAssetUploadUrlResponse
|
||||
|
||||
export const zListHubLabelsData = z.object({
|
||||
body: z.never().optional(),
|
||||
path: z.never().optional(),
|
||||
query: z
|
||||
.object({
|
||||
type: z.enum(['tag', 'model', 'custom_node']).optional()
|
||||
})
|
||||
.optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* List of labels
|
||||
*/
|
||||
export const zListHubLabelsResponse = zHubLabelListResponse
|
||||
|
||||
export const zListHubWorkflowsData = z.object({
|
||||
body: z.never().optional(),
|
||||
path: z.never().optional(),
|
||||
query: z
|
||||
.object({
|
||||
cursor: z.string().optional(),
|
||||
limit: z.number().int().gte(1).lte(100).optional().default(20),
|
||||
search: z.string().optional(),
|
||||
tag: z.string().optional(),
|
||||
username: z.string().optional(),
|
||||
detail: z.boolean().optional().default(false)
|
||||
})
|
||||
.optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Paginated list of hub workflows
|
||||
*/
|
||||
export const zListHubWorkflowsResponse = zHubWorkflowListResponse
|
||||
|
||||
export const zPublishHubWorkflowData = z.object({
|
||||
body: zPublishHubWorkflowRequest,
|
||||
path: z.never().optional(),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Workflow published to hub
|
||||
*/
|
||||
export const zPublishHubWorkflowResponse = zHubWorkflowDetail
|
||||
|
||||
export const zListHubWorkflowIndexData = z.object({
|
||||
body: z.never().optional(),
|
||||
path: z.never().optional(),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* List of hub workflow template entries
|
||||
*/
|
||||
export const zListHubWorkflowIndexResponse = z.array(zHubWorkflowTemplateEntry)
|
||||
|
||||
export const zDeleteHubWorkflowData = z.object({
|
||||
body: z.never().optional(),
|
||||
path: z.object({
|
||||
share_id: z.string()
|
||||
}),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Successfully unpublished
|
||||
*/
|
||||
export const zDeleteHubWorkflowResponse = z.void()
|
||||
|
||||
export const zGetHubWorkflowData = z.object({
|
||||
body: z.never().optional(),
|
||||
path: z.object({
|
||||
share_id: z.string()
|
||||
}),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Hub workflow detail
|
||||
*/
|
||||
export const zGetHubWorkflowResponse = zHubWorkflowDetail
|
||||
|
||||
export const zGetPublishedWorkflowData = z.object({
|
||||
body: z.never().optional(),
|
||||
path: z.object({
|
||||
share_id: z.string()
|
||||
}),
|
||||
query: z.never().optional()
|
||||
})
|
||||
|
||||
/**
|
||||
* Published workflow details with asset statuses
|
||||
*/
|
||||
export const zGetPublishedWorkflowResponse = zPublishedWorkflowDetail
|
||||
|
||||
Reference in New Issue
Block a user