diff --git a/src/api/types.gen.ts b/src/api/types.gen.ts index 970da9b..9074af5 100644 --- a/src/api/types.gen.ts +++ b/src/api/types.gen.ts @@ -50,7 +50,7 @@ export interface paths { content: { "application/json": { /** - * @example active + * @example all * @enum {string|null} */ state?: "active" | "archived" | "trashed" | "all" | null; @@ -346,7 +346,7 @@ export interface paths { content: { "application/json": { /** - * @example public + * @example group_only * @enum {string|null} */ visibility?: "public" | "group_only" | null; @@ -4357,7 +4357,7 @@ export interface paths { /** @example architecto */ status?: string | null; /** - * @example quote + * @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 ignored + * @example viewed * @enum {string|null} */ status?: "sent" | "delivered" | "viewed" | "accepted" | "rejected" | "ignored" | "expired" | "taken_by_other" | null; @@ -4871,12 +4871,12 @@ export interface paths { content: { "application/json": { /** - * @example started + * @example paid * @enum {string|null} */ status?: "created" | "confirmed" | "started" | "consumed" | "paid" | "fulfilled" | "canceled" | null; /** - * @example PAID + * @example UNPAID * @enum {string|null} */ payment_status?: "UNPAID" | "PAID" | null; @@ -5165,7 +5165,7 @@ export interface paths { * @enum {string|null} */ status?: "offline" | "online" | "inactive" | "busy" | null; - /** @example true */ + /** @example false */ is_disabled?: boolean | null; /** @example true */ is_verified?: boolean | null; @@ -5452,12 +5452,12 @@ export interface paths { content: { "application/json": { /** - * @example friends + * @example private * @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 all * @enum {string|null} */ status?: "pending" | "blocked" | "all" | null; @@ -9751,7 +9751,7 @@ export interface paths { content: { "application/json": { /** - * @example blocked + * @example all * @enum {string|null} */ status?: "pending" | "blocked" | "all" | null; @@ -10071,6 +10071,78 @@ export interface paths { }; trace?: never; }; + "/api/admin/v1/notification/devices/stats": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * [管理] 获取设备统计信息 + * @description 获取系统级别的设备统计数据。 + */ + get: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @example true */ + success?: boolean; + data?: { + /** @example 150 */ + total_devices?: number; + /** @example 89 */ + online_devices?: number; + platform_stats?: { + /** @example 45 */ + ios?: number; + /** @example 67 */ + android?: number; + /** @example 23 */ + web?: number; + /** @example 15 */ + desktop?: number; + }; + }; + /** @example Device statistics retrieved successfully */ + message?: string; + }; + }; + }; + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @example false */ + success?: boolean; + /** @example Failed to retrieve statistics: [error message] */ + message?: string; + }; + }; + }; + }; + }; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/api/admin/v1/notification/devices": { parameters: { query?: never; @@ -10114,11 +10186,11 @@ export interface paths { content: { "application/json": { /** - * @example android + * @example desktop * @enum {string|null} */ platform?: "ios" | "android" | "web" | "desktop" | null; - /** @example false */ + /** @example true */ is_online?: boolean | null; /** * @description Must be at least 1.