diff --git a/frontend/shared/api/endpoints.ts b/frontend/shared/api/endpoints.ts index a107b51..b4dfad6 100644 --- a/frontend/shared/api/endpoints.ts +++ b/frontend/shared/api/endpoints.ts @@ -6,9 +6,26 @@ export const endpoints = { profiles: "profiles", quickProfileDraft: "profiles/quick-draft", jobs: "jobs", + jobCancel: (taskId: string) => `jobs/${taskId}/cancel`, + jobRetry: (taskId: string) => `jobs/${taskId}/retry`, + jobDeadLetterRetry: "jobs/dead-letter/retry", + jobDeadLetterMoveFailed: "jobs/dead-letter/move-failed", settingsSchema: "settings/schema", settingsCurrent: "settings/current", + settingsReload: "settings/reload", + settingsExport: "settings/export", storageStatus: "storage/status", mediaSign: "media/sign", + materialCategories: "material-categories", + materials: "materials", + material: (materialId: string) => `materials/${materialId}`, + materialRecognize: (materialId: string) => `materials/${materialId}/recognize`, + materialConfirm: (materialId: string) => `materials/${materialId}/confirm`, + wardrobe: (profileId: string) => `profiles/${profileId}/wardrobe`, + wardrobeMatch: (profileId: string) => `profiles/${profileId}/wardrobe/match`, + apiDiscoveryDialects: "api-discovery/dialects", + apiDiscoveryProbeModel: "api-discovery/probe-model", + apiDiscoveryCapabilities: "api-discovery/capabilities", + apiDiscoveryManualOverride: "api-discovery/manual-override", webManifest: "web/manifest", } as const diff --git a/frontend/shared/types/discovery.ts b/frontend/shared/types/discovery.ts new file mode 100644 index 0000000..8abf4c8 --- /dev/null +++ b/frontend/shared/types/discovery.ts @@ -0,0 +1,17 @@ +export interface ApiDialect { + dialect: string + label: string + capabilities: string[] +} + +export interface CapabilityProfile { + capability_profile_id: string + provider_id: string + model_id: string + dialect: string + status: "confirmed_supported" | "confirmed_unsupported" | "unconfirmed" | string + capabilities: Record + probe_result: Record + created_at?: string + updated_at?: string +} diff --git a/frontend/shared/types/material.ts b/frontend/shared/types/material.ts new file mode 100644 index 0000000..e06fdac --- /dev/null +++ b/frontend/shared/types/material.ts @@ -0,0 +1,32 @@ +export interface MaterialCategory { + category_id: string + name: string + parent_id?: string | null + category_type: string + sort_order: number + metadata: Record + created_at: string + updated_at: string +} + +export interface Material { + material_id: string + category_id?: string | null + display_name: string + image_uri?: string | null + thumbnail_uri?: string | null + prompt?: string | null + negative_prompt?: string | null + tags: string[] + recognition_status: string + metadata: Record + created_at: string + updated_at: string +} + +export interface MaterialListResult { + items: Material[] + total: number + page: number + page_size: number +} diff --git a/frontend/shared/types/settings.ts b/frontend/shared/types/settings.ts index f6eba35..9f8d5a5 100644 --- a/frontend/shared/types/settings.ts +++ b/frontend/shared/types/settings.ts @@ -17,3 +17,13 @@ export interface CurrentSettings { config_path: string config: Record } + +export interface ReloadSettingsResult { + reloaded: boolean + config: Record +} + +export interface ExportSettingsResult { + redacted: boolean + config: Record +} diff --git a/frontend/shared/types/wardrobe.ts b/frontend/shared/types/wardrobe.ts new file mode 100644 index 0000000..9c5ba5a --- /dev/null +++ b/frontend/shared/types/wardrobe.ts @@ -0,0 +1,22 @@ +export interface WardrobeItem { + wardrobe_item_id: string + profile_id: string + material_id: string + wardrobe_category: string + tags: string[] + season?: string | null + style?: string | null + is_favorite: boolean + usage_count: number + last_used_at?: string | null + created_at: string + updated_at: string +} + +export interface WardrobeMatchResult { + profile_id?: string + items?: WardrobeItem[] + matched_items?: WardrobeItem[] + selected?: WardrobeItem | null + [key: string]: unknown +} diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index 5c149ff..33a4935 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -1,15 +1,23 @@