diff --git a/src/api/types.gen.ts b/src/api/types.gen.ts index 63ca278..348e310 100644 --- a/src/api/types.gen.ts +++ b/src/api/types.gen.ts @@ -50,7 +50,7 @@ export interface paths { content: { "application/json": { /** - * @example all + * @example active * @enum {string|null} */ state?: "active" | "archived" | "trashed" | "all" | null; @@ -346,7 +346,7 @@ export interface paths { content: { "application/json": { /** - * @example group_only + * @example public * @enum {string|null} */ visibility?: "public" | "group_only" | null; @@ -539,7 +539,7 @@ export interface paths { */ language_code?: string; /** - * @example published + * @example awaiting_publish * @enum {string} */ status?: "draft" | "awaiting_publish" | "published"; @@ -4357,7 +4357,7 @@ export interface paths { /** @example architecto */ status?: string | null; /** - * @example instant_accept + * @example scheduled_booking * @enum {string|null} */ dispatch_mode?: "instant_accept" | "quote" | "scheduled_booking" | "manual_selection" | null; @@ -4677,7 +4677,7 @@ export interface paths { content: { "application/json": { /** - * @example sent + * @example expired * @enum {string|null} */ status?: "sent" | "delivered" | "viewed" | "accepted" | "rejected" | "ignored" | "expired" | "taken_by_other" | null; @@ -4876,7 +4876,7 @@ export interface paths { */ status?: "created" | "confirmed" | "started" | "consumed" | "paid" | "fulfilled" | "canceled" | null; /** - * @example PAID + * @example UNPAID * @enum {string|null} */ payment_status?: "UNPAID" | "PAID" | null; @@ -5161,13 +5161,13 @@ export interface paths { content: { "application/json": { /** - * @example inactive + * @example online * @enum {string|null} */ status?: "offline" | "online" | "inactive" | "busy" | null; /** @example true */ is_disabled?: boolean | null; - /** @example true */ + /** @example false */ is_verified?: boolean | null; /** * @description Must be at least 1. @@ -5452,12 +5452,12 @@ export interface paths { content: { "application/json": { /** - * @example private + * @example public * @enum {string|null} */ visibility?: "public" | "friends" | "private" | null; /** - * @example blocked + * @example all * @enum {string|null} */ status?: "blocked" | "visible" | "all" | null; @@ -5786,7 +5786,7 @@ export interface paths { content: { "application/json": { /** - * @example blocked + * @example pending * @enum {string|null} */ status?: "pending" | "blocked" | "all" | null; @@ -6381,7 +6381,7 @@ export interface paths { q?: string | null; /** @example null */ type?: string | null; - /** @example false */ + /** @example true */ verified?: boolean | null; /** @example false */ is_global?: boolean | null; @@ -7880,9 +7880,9 @@ export interface paths { * @example b */ q?: string | null; - /** @example true */ + /** @example false */ status?: boolean | null; - /** @example true */ + /** @example false */ is_robot?: boolean | null; /** * @description Must not be greater than 100 characters. @@ -9960,7 +9960,7 @@ export interface paths { content: { "application/json": { /** - * @example blocked + * @example all * @enum {string|null} */ status?: "pending" | "blocked" | "all" | null; @@ -10395,7 +10395,7 @@ export interface paths { content: { "application/json": { /** - * @example web + * @example android * @enum {string|null} */ platform?: "ios" | "android" | "web" | "desktop" | null; diff --git a/src/api/types.ts b/src/api/types.ts index dc7c36f..b0523ce 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -469,7 +469,6 @@ export interface OfficialAccountPayload { slug: string name: string description?: string | null - avatar_url?: string | null owner_uid?: string | null verified?: boolean type: OfficialAccountType diff --git a/src/features/party/official-account-edit-sheet.tsx b/src/features/party/official-account-edit-sheet.tsx index a676a8f..3da2368 100644 --- a/src/features/party/official-account-edit-sheet.tsx +++ b/src/features/party/official-account-edit-sheet.tsx @@ -22,7 +22,6 @@ const schema = z.object({ slug: z.string().trim().min(1, '请填写账号标识').max(100).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, '仅支持小写字母、数字和连字符'), name: z.string().trim().min(1, '请填写显示名称').max(255), description: z.string(), - avatar_url: z.union([z.literal(''), z.url('请输入有效的头像 URL')]), owner_uid: z.union([z.literal(''), z.string().length(26, '用户 UID 必须为 26 个字符')]), type: z.enum(['subscription', 'service', 'system']), auto_reply_config: z.string().refine((value) => { @@ -60,7 +59,6 @@ export function OfficialAccountEditSheet({ account, creating, onOpenChange, onSa slug: values.slug.trim(), name: values.name.trim(), description: values.description.trim() || null, - avatar_url: values.avatar_url.trim() || null, owner_uid: values.owner_uid.trim() || null, type: values.type, auto_reply_config: values.auto_reply_config.trim() @@ -93,7 +91,6 @@ export function OfficialAccountEditSheet({ account, creating, onOpenChange, onSa } />