openapi: 3.1.0 info: title: Ydisks 闲鱼助手 API version: 1.0.0 description: 版本化 HTTP API 的唯一契约源。 servers: - url: / paths: "/api/v1/account-tasks/{cid}": get: operationId: getApiV1AccountTasksBycid summary: getApiV1AccountTasksBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AccountTaskSettingsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1AccountTasksBycid summary: putApiV1AccountTasksBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AccountTaskSettingsUpdateRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AccountTaskSettingsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/account-tasks/{cid}/run": post: operationId: postApiV1AccountTasksBycidRun summary: postApiV1AccountTasksBycidRun parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AccountTaskRunRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AccountTaskRunResponseEnvelope' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/account-tasks/{cid}/runs": get: operationId: getApiV1AccountTasksBycidRuns summary: getApiV1AccountTasksBycidRuns parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AccountTaskRunsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts": get: operationId: getApiV1Accounts summary: getApiV1Accounts security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AccountIDList' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: operationId: postApiV1Accounts summary: postApiV1Accounts security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AccountCreateRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AccountMutationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/{cid}": delete: operationId: deleteApiV1AccountsBycid summary: deleteApiV1AccountsBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' get: operationId: getApiV1AccountsBycid summary: getApiV1AccountsBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AccountDetailResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1AccountsBycid summary: putApiV1AccountsBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AccountUpdateRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/{cid}/auto-confirm": get: operationId: getApiV1AccountsBycidAutoConfirm summary: getApiV1AccountsBycidAutoConfirm parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AutoConfirmResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1AccountsBycidAutoConfirm summary: putApiV1AccountsBycidAutoConfirm parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AutoConfirmRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/{cid}/login-info": put: operationId: putApiV1AccountsBycidLoginInfo summary: putApiV1AccountsBycidLoginInfo parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AccountLoginInfoRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/{cid}/long-login": get: operationId: getApiV1AccountsBycidLongLogin summary: getApiV1AccountsBycidLongLogin parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/LongLoginResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1AccountsBycidLongLogin summary: putApiV1AccountsBycidLongLogin parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/LongLoginSettingsRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/LongLoginResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/{cid}/pause-duration": get: operationId: getApiV1AccountsBycidPauseDuration summary: getApiV1AccountsBycidPauseDuration parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/PauseDurationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1AccountsBycidPauseDuration summary: putApiV1AccountsBycidPauseDuration parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PauseDurationRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/CookieSettingsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/{cid}/refresh-profile": post: operationId: postApiV1AccountsBycidRefreshProfile summary: postApiV1AccountsBycidRefreshProfile parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/CookieProfileResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/{cid}/remark": put: operationId: putApiV1AccountsBycidRemark summary: putApiV1AccountsBycidRemark parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AccountRemarkRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/{cid}/settings": put: operationId: putApiV1AccountsBycidSettings summary: putApiV1AccountsBycidSettings parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AccountSettingsUpdateRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/CookieSettingsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/{cid}/status": put: operationId: putApiV1AccountsBycidStatus summary: putApiV1AccountsBycidStatus parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AccountStatusRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/details": get: operationId: getApiV1AccountsDetails summary: getApiV1AccountsDetails security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AccountDetailList' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/accounts/runtime-status": get: operationId: getApiV1AccountsRuntimeStatus summary: getApiV1AccountsRuntimeStatus security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/RuntimeStatusMap' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/admin/cookies": get: operationId: getApiV1AdminCookies summary: getApiV1AdminCookies security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: type: [array, 'null'] items: $ref: '#/components/schemas/AdminCookie' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/admin/notifications/outbox/uncertain": get: operationId: getApiV1AdminNotificationsOutboxUncertain summary: getApiV1AdminNotificationsOutboxUncertain security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/NotificationUncertainOutboxResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/admin/password": post: operationId: postApiV1AdminPassword summary: postApiV1AdminPassword security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/admin/stats": get: operationId: getApiV1AdminStats summary: getApiV1AdminStats security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AdminStatsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/admin/tasks": get: operationId: getApiV1AdminTasks summary: getApiV1AdminTasks security: [{cookieAuth: []}] parameters: - name: limit in: query required: false schema: {type: integer, minimum: 1, maximum: 128} responses: '200': description: 成功 content: application/json: schema: type: array items: $ref: '#/components/schemas/AdminTask' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/admin/users": get: operationId: getApiV1AdminUsers summary: getApiV1AdminUsers security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: type: array items: $ref: '#/components/schemas/AdminUser' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/admin/users/{user_id}": delete: operationId: deleteApiV1AdminUsersByuser_id summary: deleteApiV1AdminUsersByuser_id parameters: - name: user_id in: path required: true schema: type: integer security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/analytics/dashboard": get: operationId: getApiV1AnalyticsDashboard summary: getApiV1AnalyticsDashboard security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/DashboardStatsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/analytics/orders": get: operationId: getApiV1AnalyticsOrders summary: getApiV1AnalyticsOrders security: [{cookieAuth: []}] parameters: - name: start_date in: query required: true schema: {type: string, format: date} - name: end_date in: query required: true schema: {type: string, format: date} - name: timezone_offset_minutes in: query required: false schema: {type: integer} responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AnalyticsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/analytics/orders/valid": get: operationId: getApiV1AnalyticsOrdersValid summary: getApiV1AnalyticsOrdersValid security: [{cookieAuth: []}] parameters: - name: start_date in: query required: true schema: {type: string, format: date} - name: end_date in: query required: true schema: {type: string, format: date} - name: timezone_offset_minutes in: query required: false schema: {type: integer} - name: page in: query required: false schema: {type: integer, minimum: 1} - name: page_size in: query required: false schema: {type: integer, minimum: 1, maximum: 500} responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ValidOrdersResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/automation-issues": get: operationId: getApiV1AutomationIssues summary: getApiV1AutomationIssues security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AutomationIssuesResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/automation-pending-tasks/{task_id}/resolve": post: operationId: postApiV1AutomationPendingTasksBytask_idResolve summary: postApiV1AutomationPendingTasksBytask_idResolve parameters: - name: task_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/automation-rules": get: operationId: getApiV1AutomationRules summary: getApiV1AutomationRules security: [{cookieAuth: []}] parameters: - name: page in: query required: false schema: {type: integer, minimum: 1} - name: page_size in: query required: false schema: {type: integer, minimum: 1, maximum: 100} - name: cookie_id in: query required: false schema: {type: string} - name: trigger_type in: query required: false schema: {type: string} - name: enabled in: query required: false schema: {type: boolean} - name: search in: query required: false schema: {type: string} responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AutomationRulesResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: operationId: postApiV1AutomationRules summary: postApiV1AutomationRules security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '409': description: AI 议价与固定规则改价配置冲突 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/automation-rules/{rule_id}": delete: operationId: deleteApiV1AutomationRulesByrule_id summary: deleteApiV1AutomationRulesByrule_id parameters: - name: rule_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1AutomationRulesByrule_id summary: putApiV1AutomationRulesByrule_id parameters: - name: rule_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '409': description: AI 议价与固定规则改价配置冲突 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/automation-runs/{run_id}/resolve": post: operationId: postApiV1AutomationRunsByrun_idResolve summary: postApiV1AutomationRunsByrun_idResolve parameters: - name: run_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/cards": get: operationId: getApiV1Cards summary: getApiV1Cards security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: type: array items: $ref: '#/components/schemas/CardResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: operationId: postApiV1Cards summary: postApiV1Cards security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CardMutationRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/MutationIDResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/cards/{card_id}": delete: operationId: deleteApiV1CardsBycard_id summary: deleteApiV1CardsBycard_id parameters: - name: card_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' get: operationId: getApiV1CardsBycard_id summary: getApiV1CardsBycard_id parameters: - name: card_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/CardResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1CardsBycard_id summary: putApiV1CardsBycard_id parameters: - name: card_id in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CardMutationRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/cards/{card_id}/append-data": post: operationId: postApiV1CardsBycard_idAppendData summary: postApiV1CardsBycard_idAppendData parameters: - name: card_id in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CardAppendRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/CardAppendResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/cards/{card_id}/details": get: operationId: getApiV1CardsBycard_idDetails summary: getApiV1CardsBycard_idDetails parameters: - name: card_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/CardResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/cards/batch": post: operationId: postApiV1CardsBatch summary: postApiV1CardsBatch security: [{cookieAuth: []}] requestBody: required: true content: multipart/form-data: schema: type: object required: [file] properties: file: {type: string, format: binary} responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/CardBatchResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/chat/images": post: operationId: postApiV1ChatImages summary: postApiV1ChatImages security: [{cookieAuth: []}] requestBody: required: true content: multipart/form-data: schema: type: object required: [account_id, chat_id, buyer_id, image] properties: account_id: {type: string} chat_id: {type: string} buyer_id: {type: string} buyer_name: {type: string} buyer_avatar_url: {type: string} item_id: {type: string} item_title: {type: string} image: {type: string, format: binary} responses: '201': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ChatMessageEnvelope' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/chat/messages": get: operationId: getApiV1ChatMessages summary: getApiV1ChatMessages security: [{cookieAuth: []}] parameters: - name: account_id in: query required: true schema: {type: string} - name: chat_id in: query required: true schema: {type: string} - name: cursor in: query required: false schema: {type: integer} - name: before_id in: query required: false schema: {type: integer} - name: limit in: query required: false schema: {type: integer, minimum: 1, maximum: 200} responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ChatMessagePage' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: operationId: postApiV1ChatMessages summary: postApiV1ChatMessages security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChatMessageRequest' responses: '201': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ChatMessageEnvelope' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/chat/read": post: operationId: postApiV1ChatRead summary: postApiV1ChatRead security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChatReadRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/chat/sessions": get: operationId: getApiV1ChatSessions summary: getApiV1ChatSessions security: [{cookieAuth: []}] parameters: - name: account_id in: query required: true schema: {type: string} - name: cursor in: query required: false schema: {type: integer} - name: refresh in: query required: false schema: {type: integer, enum: [0, 1]} - name: limit in: query required: false schema: {type: integer, minimum: 1, maximum: 200} responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ChatSessionPage' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/chat/ws": get: operationId: getApiV1ChatWs summary: getApiV1ChatWs security: [{cookieAuth: []}] x-contract-success-exception: kind: websocket x-websocket-message-schema: $ref: '#/components/schemas/ChatWebSocketEvent' responses: '101': description: WebSocket 握手成功 '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/default-replies": get: operationId: getApiV1DefaultReplies summary: getApiV1DefaultReplies security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/DefaultReplyMapResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/default-replies/{cid}": delete: operationId: deleteApiV1DefaultRepliesBycid summary: deleteApiV1DefaultRepliesBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' get: operationId: getApiV1DefaultRepliesBycid summary: getApiV1DefaultRepliesBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/DefaultReplyResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1DefaultRepliesBycid summary: putApiV1DefaultRepliesBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/default-replies/{cid}/clear-records": post: operationId: postApiV1DefaultRepliesBycidClearRecords summary: postApiV1DefaultRepliesBycidClearRecords parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/default-replies/list": get: operationId: getApiV1DefaultRepliesList summary: getApiV1DefaultRepliesList security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/DefaultReplyListResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items": get: operationId: getApiV1Items summary: getApiV1Items security: [{cookieAuth: []}] parameters: - name: cookie_id in: query required: false schema: {type: string} responses: '200': description: 成功 content: application/json: schema: type: array items: $ref: '#/components/schemas/ItemListResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/{cookie_id}": post: operationId: postApiV1ItemsBycookie_id summary: postApiV1ItemsBycookie_id parameters: - name: cookie_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/{cookie_id}/{item_id}": delete: operationId: deleteApiV1ItemsBycookie_idByitem_id summary: deleteApiV1ItemsBycookie_idByitem_id parameters: - name: cookie_id in: path required: true schema: type: string - name: item_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' get: operationId: getApiV1ItemsBycookie_idByitem_id summary: getApiV1ItemsBycookie_idByitem_id parameters: - name: cookie_id in: path required: true schema: type: string - name: item_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ItemDetailResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1ItemsBycookie_idByitem_id summary: putApiV1ItemsBycookie_idByitem_id parameters: - name: cookie_id in: path required: true schema: type: string - name: item_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/{cookie_id}/{item_id}/multi-quantity-delivery": put: operationId: putApiV1ItemsBycookie_idByitem_idMultiQuantityDelivery summary: putApiV1ItemsBycookie_idByitem_idMultiQuantityDelivery parameters: - name: cookie_id in: path required: true schema: type: string - name: item_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/{cookie_id}/{item_id}/multi-spec": put: operationId: putApiV1ItemsBycookie_idByitem_idMultiSpec summary: putApiV1ItemsBycookie_idByitem_idMultiSpec parameters: - name: cookie_id in: path required: true schema: type: string - name: item_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/cookie/{cookie_id}": get: operationId: getApiV1ItemsCookieBycookie_id summary: getApiV1ItemsCookieBycookie_id parameters: - name: cookie_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ItemListArrayResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/get-all-from-account": post: operationId: postApiV1ItemsGetAllFromAccount summary: postApiV1ItemsGetAllFromAccount security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/get-by-page": post: operationId: postApiV1ItemsGetByPage summary: postApiV1ItemsGetByPage security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/publish": post: operationId: postApiV1ItemsPublish summary: postApiV1ItemsPublish security: [{cookieAuth: []}] requestBody: required: true content: multipart/form-data: schema: $ref: '#/components/schemas/ItemPublishRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/publish-batches": get: operationId: getApiV1ItemsPublishBatches summary: getApiV1ItemsPublishBatches security: [{cookieAuth: []}] parameters: - name: limit in: query required: false schema: {type: integer, minimum: 1, maximum: 100} responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ItemPublishBatchListResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: operationId: postApiV1ItemsPublishBatches summary: postApiV1ItemsPublishBatches security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ItemPublishBatchStartRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/BatchIDResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/publish-batches/{batch_id}": delete: operationId: deleteApiV1ItemsPublishBatchesBybatch_id summary: deleteApiV1ItemsPublishBatchesBybatch_id parameters: - name: batch_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' get: operationId: getApiV1ItemsPublishBatchesBybatch_id summary: getApiV1ItemsPublishBatchesBybatch_id parameters: - name: batch_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ItemPublishBatchResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/publish-batches/{batch_id}/cancel": post: operationId: postApiV1ItemsPublishBatchesBybatch_idCancel summary: postApiV1ItemsPublishBatchesBybatch_idCancel parameters: - name: batch_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/BatchCancelResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/publish-batches/{batch_id}/result.csv": get: operationId: getApiV1ItemsPublishBatchesBybatch_idResultCsv summary: getApiV1ItemsPublishBatchesBybatch_idResultCsv parameters: - name: batch_id in: path required: true schema: type: string security: [{cookieAuth: []}] x-contract-success-exception: kind: binary responses: '200': description: CSV 文件 content: text/csv: schema: type: string format: binary '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/publish-batches/{batch_id}/retry-failed": post: operationId: postApiV1ItemsPublishBatchesBybatch_idRetryFailed summary: postApiV1ItemsPublishBatchesBybatch_idRetryFailed parameters: - name: batch_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/BatchIDResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/publish-batches/preview": post: operationId: postApiV1ItemsPublishBatchesPreview summary: postApiV1ItemsPublishBatchesPreview security: [{cookieAuth: []}] requestBody: required: true content: multipart/form-data: schema: $ref: '#/components/schemas/ItemPublishBatchPreviewRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ItemPublishBatchPreviewResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/items/publish-categories/recommend": post: operationId: postApiV1ItemsPublishCategoriesRecommend summary: postApiV1ItemsPublishCategoriesRecommend security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CategoryRecommendationRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/CategoryRecommendationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/notifications/accounts/{cid}/bindings": get: operationId: getApiV1NotificationsAccountsBycidBindings summary: getApiV1NotificationsAccountsBycidBindings parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AccountBindingsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: operationId: postApiV1NotificationsAccountsBycidBindings summary: postApiV1NotificationsAccountsBycidBindings parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/NotificationBindingRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/notifications/channels": get: operationId: getApiV1NotificationsChannels summary: getApiV1NotificationsChannels security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: type: array items: $ref: '#/components/schemas/NotificationChannelResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: operationId: postApiV1NotificationsChannels summary: postApiV1NotificationsChannels security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/NotificationChannelCreateRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/MutationIDResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/notifications/channels/{channel_id}": delete: operationId: deleteApiV1NotificationsChannelsBychannel_id summary: deleteApiV1NotificationsChannelsBychannel_id parameters: - name: channel_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1NotificationsChannelsBychannel_id summary: putApiV1NotificationsChannelsBychannel_id parameters: - name: channel_id in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/NotificationChannelPatchRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/notifications/channels/{channel_id}/test": post: operationId: postApiV1NotificationsChannelsBychannel_idTest summary: postApiV1NotificationsChannelsBychannel_idTest parameters: - name: channel_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/notifications/messages": get: operationId: getApiV1NotificationsMessages summary: getApiV1NotificationsMessages security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/NotificationBindingsByAccount' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/notifications/messages/{notification_id}": delete: operationId: deleteApiV1NotificationsMessagesBynotification_id summary: deleteApiV1NotificationsMessagesBynotification_id parameters: - name: notification_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/notifications/messages/account/{cid}": delete: operationId: deleteApiV1NotificationsMessagesAccountBycid summary: deleteApiV1NotificationsMessagesAccountBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/notifications/outbox/uncertain": get: operationId: getApiV1NotificationsOutboxUncertain summary: getApiV1NotificationsOutboxUncertain security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/NotificationUncertainOutboxResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/orders": get: operationId: getApiV1Orders summary: getApiV1Orders security: [{cookieAuth: []}] parameters: - name: cookie_id in: query required: false schema: {type: string} - name: status in: query required: false schema: {type: string} - name: search in: query required: false schema: {type: string} - name: page in: query required: false schema: {type: integer, minimum: 1} - name: page_size in: query required: false schema: {type: integer, minimum: 1, maximum: 500} responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OrderListResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/orders/{order_id}": delete: operationId: deleteApiV1OrdersByorder_id summary: deleteApiV1OrdersByorder_id parameters: - name: order_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' get: operationId: getApiV1OrdersByorder_id summary: getApiV1OrdersByorder_id parameters: - name: order_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OrderDetailResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1OrdersByorder_id summary: putApiV1OrdersByorder_id parameters: - name: order_id in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/OrderUpdateRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/orders/{order_id}/refresh": post: operationId: postApiV1OrdersByorder_idRefresh summary: postApiV1OrdersByorder_idRefresh parameters: - name: order_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OrderSingleRefreshResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/orders/import": post: operationId: postApiV1OrdersImport summary: postApiV1OrdersImport security: [{cookieAuth: []}] requestBody: required: true content: multipart/form-data: schema: type: object properties: file: {type: string, format: binary} application/json: schema: type: array items: $ref: '#/components/schemas/OrderUpdateRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OrderBatchResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/orders/manual-ship": post: operationId: postApiV1OrdersManualShip summary: postApiV1OrdersManualShip security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ManualShipRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OrderBatchResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/orders/refresh": post: operationId: postApiV1OrdersRefresh summary: postApiV1OrdersRefresh security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/OrderRefreshRequest' multipart/form-data: schema: {$ref: '#/components/schemas/OrderRefreshRequest'} responses: '202': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OrderRefreshJobStartResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/orders/refresh/{job_id}": delete: operationId: deleteApiV1OrdersRefreshByjob_id summary: deleteApiV1OrdersRefreshByjob_id parameters: - name: job_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OrderRefreshJobCancelResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' get: operationId: getApiV1OrdersRefreshByjob_id summary: getApiV1OrdersRefreshByjob_id parameters: - name: job_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OrderRefreshJobStatusResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/password-login": post: operationId: postApiV1PasswordLogin summary: postApiV1PasswordLogin security: [{cookieAuth: []}] x-contract-success-exception: kind: permanently_disabled requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/PasswordLoginDisabledRequest' responses: '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '501': description: 密码登录已永久关闭 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/password-login/cancel/{session_id}": delete: operationId: deleteApiV1PasswordLoginCancelBysession_id summary: deleteApiV1PasswordLoginCancelBysession_id parameters: - name: session_id in: path required: true schema: type: string security: [{cookieAuth: []}] x-contract-success-exception: kind: permanently_disabled responses: '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '501': description: 密码登录已永久关闭 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/password-login/check/{session_id}": get: operationId: getApiV1PasswordLoginCheckBysession_id summary: getApiV1PasswordLoginCheckBysession_id parameters: - name: session_id in: path required: true schema: type: string security: [{cookieAuth: []}] x-contract-success-exception: kind: permanently_disabled responses: '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '501': description: 密码登录已永久关闭 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/qr-login/check/{session_id}": get: operationId: getApiV1QrLoginCheckBysession_id summary: getApiV1QrLoginCheckBysession_id parameters: - name: session_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/QRLoginStatusResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/qr-login/complete-verification/{session_id}": post: operationId: postApiV1QrLoginCompleteVerificationBysession_id summary: postApiV1QrLoginCompleteVerificationBysession_id parameters: - name: session_id in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/QRLoginVerificationRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/QRLoginVerificationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/qr-login/generate": post: operationId: postApiV1QrLoginGenerate summary: postApiV1QrLoginGenerate security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/QRLoginGenerateResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/qr-login/status/{session_id}": get: operationId: getApiV1QrLoginStatusBysession_id summary: getApiV1QrLoginStatusBysession_id parameters: - name: session_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/QRLoginStatusResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/reply-rules/{cid}": get: operationId: getApiV1ReplyRulesBycid summary: getApiV1ReplyRulesBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/KeywordBasicListResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: operationId: postApiV1ReplyRulesBycid summary: postApiV1ReplyRulesBycid parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/reply-rules/{cid}/index/{index}": delete: operationId: deleteApiV1ReplyRulesBycidIndexByindex summary: deleteApiV1ReplyRulesBycidIndexByindex parameters: - name: cid in: path required: true schema: type: string - name: index in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/reply-rules/{cid}/items": get: operationId: getApiV1ReplyRulesBycidItems summary: getApiV1ReplyRulesBycidItems parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/KeywordItemListResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: operationId: postApiV1ReplyRulesBycidItems summary: postApiV1ReplyRulesBycidItems parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/reply-rules/{cid}/typed": get: operationId: getApiV1ReplyRulesBycidTyped summary: getApiV1ReplyRulesBycidTyped parameters: - name: cid in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/KeywordTypedListResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/reply-rules/{cid}/typed/{id}": delete: operationId: deleteApiV1ReplyRulesBycidTypedByid summary: deleteApiV1ReplyRulesBycidTypedByid parameters: - name: cid in: path required: true schema: type: string - name: id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1ReplyRulesBycidTypedByid summary: putApiV1ReplyRulesBycidTypedByid parameters: - name: cid in: path required: true schema: type: string - name: id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/reply-rules/items": get: operationId: getApiV1ReplyRulesItems summary: getApiV1ReplyRulesItems security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ItemReplyListResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/reply-rules/items/{cookie_id}/{item_id}": delete: operationId: deleteApiV1ReplyRulesItemsBycookie_idByitem_id summary: deleteApiV1ReplyRulesItemsBycookie_idByitem_id parameters: - name: cookie_id in: path required: true schema: type: string - name: item_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' get: operationId: getApiV1ReplyRulesItemsBycookie_idByitem_id summary: getApiV1ReplyRulesItemsBycookie_idByitem_id parameters: - name: cookie_id in: path required: true schema: type: string - name: item_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ItemReplyResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1ReplyRulesItemsBycookie_idByitem_id summary: putApiV1ReplyRulesItemsBycookie_idByitem_id parameters: - name: cookie_id in: path required: true schema: type: string - name: item_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/session": get: operationId: getApiV1Session summary: getApiV1Session security: [] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/SessionStatusResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/session/credentials": put: operationId: putApiV1SessionCredentials summary: putApiV1SessionCredentials security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CredentialUpdateRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/session/initialize": post: operationId: postApiV1SessionInitialize summary: postApiV1SessionInitialize security: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/InitializeRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/SessionResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/session/login": post: operationId: postApiV1SessionLogin summary: postApiV1SessionLogin security: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/LoginRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/SessionResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/session/logout": post: operationId: postApiV1SessionLogout summary: postApiV1SessionLogout security: [] requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/EmptyRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/MessageResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/session/password": post: operationId: postApiV1SessionPassword summary: postApiV1SessionPassword security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PasswordChangeRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/settings/ai-models": post: operationId: postApiV1SettingsAiModels summary: postApiV1SettingsAiModels security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AIModelsRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AIModelsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/settings/ai-reply": get: operationId: getApiV1SettingsAiReply summary: getApiV1SettingsAiReply security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AIReplySettingsMapResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/settings/ai-reply/{cookie_id}": get: operationId: getApiV1SettingsAiReplyBycookie_id summary: getApiV1SettingsAiReplyBycookie_id parameters: - name: cookie_id in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/AIReplySettingsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1SettingsAiReplyBycookie_id summary: putApiV1SettingsAiReplyBycookie_id parameters: - name: cookie_id in: path required: true schema: type: string security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AIReplySettingsUpdateRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '409': description: AI 议价与固定规则改价配置冲突 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/settings/system": get: operationId: getApiV1SettingsSystem summary: getApiV1SettingsSystem security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/SystemSettingsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1SettingsSystem summary: putApiV1SettingsSystem security: [{cookieAuth: []}] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SystemSettingsUpdateRequest' responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/OperationResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/settings/system/{key}": put: operationId: putApiV1SettingsSystemBykey summary: putApiV1SettingsSystemBykey parameters: - name: key in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/settings/system/public": get: operationId: getApiV1SettingsSystemPublic summary: getApiV1SettingsSystemPublic security: [] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/settings/user": get: operationId: getApiV1SettingsUser summary: getApiV1SettingsUser security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/api/v1/settings/user/{key}": get: operationId: getApiV1SettingsUserBykey summary: getApiV1SettingsUserBykey parameters: - name: key in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/UserSettingResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: operationId: putApiV1SettingsUserBykey summary: putApiV1SettingsUserBykey parameters: - name: key in: path required: true schema: type: string security: [{cookieAuth: []}] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' "/health": get: operationId: getHealth summary: getHealth security: [] responses: '200': description: 成功 content: application/json: schema: $ref: '#/components/schemas/HealthResponse' '400': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '401': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: 统一错误响应 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '503': description: 数据库不可用 content: application/json: schema: $ref: '#/components/schemas/HealthDegradedResponse' components: securitySchemes: cookieAuth: type: apiKey in: cookie name: session schemas: ApiResponse: type: object required: [success] properties: success: type: boolean description: 统一响应的稳定字段;业务成功字段由各阶段 operation schema 收紧。 NotificationUncertainOutboxItem: type: object required: [id, channel_id, event_type, attempt_count, uncertain_at, has_error] properties: id: {type: integer} channel_id: {type: integer} owner_user_id: {type: integer} event_type: {type: string} attempt_count: {type: integer} uncertain_at: {type: integer} has_error: {type: boolean} NotificationUncertainOutboxResponse: type: object required: [total, items] properties: total: {type: integer} items: {type: array, items: {$ref: '#/components/schemas/NotificationUncertainOutboxItem'}} AutomationRunIssue: type: object required: [id, cookie_id, order_id, trigger_type, error_message, issue_kind, allowed_resolutions, action_cursor, sent_count, updated_at] properties: id: {type: integer} cookie_id: {type: string} order_id: {type: string} trigger_type: {type: string} error_message: {type: string} issue_kind: {type: string} allowed_resolutions: {type: array, items: {type: string}} action_cursor: {type: integer} sent_count: {type: integer} updated_at: {type: string} DeferredAutomationIssue: type: object required: [id, cookie_id, trigger_type, error_message, attempt_count, updated_at] properties: id: {type: integer} cookie_id: {type: string} trigger_type: {type: string} error_message: {type: string} attempt_count: {type: integer} updated_at: {type: string} AutomationIssuesResponse: type: object required: [runs, pending_tasks] properties: runs: {type: array, items: {$ref: '#/components/schemas/AutomationRunIssue'}} pending_tasks: {type: array, items: {$ref: '#/components/schemas/DeferredAutomationIssue'}} AutomationActionResponse: type: object required: [id, action_type, card_id, card_name, delivery_count, message_template, delay_seconds, config_json, enabled, sort_order] properties: id: {type: integer} action_type: {type: string} card_id: {type: integer} card_name: {type: string} delivery_count: {type: integer} message_template: {type: string} delay_seconds: {type: integer} config_json: {type: string} enabled: {type: boolean} sort_order: {type: integer} AutomationRuleResponse: type: object required: [id, cookie_id, item_id, item_title, name, trigger_type, enabled, priority, config_json, actions, created_at, updated_at] properties: id: {type: integer} cookie_id: {type: string} item_id: {type: string} item_title: {type: string} name: {type: string} trigger_type: {type: string} enabled: {type: boolean} priority: {type: integer} config_json: {type: string} actions: {type: array, items: {$ref: '#/components/schemas/AutomationActionResponse'}} created_at: {type: string} updated_at: {type: string} AutomationRuleListResponse: type: array items: {$ref: '#/components/schemas/AutomationRuleResponse'} AutomationRulePageResponse: type: object required: [success, data, total, page, page_size, total_pages, trigger_counts] properties: success: {type: boolean} data: {type: array, items: {$ref: '#/components/schemas/AutomationRuleResponse'}} total: {type: integer} page: {type: integer} page_size: {type: integer} total_pages: {type: integer} trigger_counts: type: object additionalProperties: {type: integer} AutomationRulesResponse: oneOf: - $ref: '#/components/schemas/AutomationRuleListResponse' - $ref: '#/components/schemas/AutomationRulePageResponse' DefaultReplyResponse: type: object required: [enabled, reply_content, reply_once] properties: cookie_id: {type: string} enabled: {type: boolean} reply_content: {type: string} reply_image_url: {type: string} reply_once: {type: boolean} AccountTaskSettingsResponse: type: object required: [account_id, auto_rate_enabled, rate_content, auto_polish_enabled, polish_time, last_rate_scan_at, last_polish_date, last_polish_at] properties: account_id: {type: string} auto_rate_enabled: {type: boolean} rate_content: {type: string} auto_polish_enabled: {type: boolean} polish_time: {type: string} last_rate_scan_at: {type: integer} last_polish_date: {type: string} last_polish_at: {type: integer} AccountTaskSettingsUpdateRequest: type: object required: [auto_rate_enabled, rate_content, auto_polish_enabled, polish_time] properties: account_id: {type: string} auto_rate_enabled: {type: boolean} rate_content: {type: string} auto_polish_enabled: {type: boolean} polish_time: {type: string} last_rate_scan_at: {type: integer} last_polish_date: {type: string} last_polish_at: {type: integer} AccountTaskRunRequest: type: object required: [task_type] properties: task_type: type: string enum: [auto_rate, auto_polish] AccountTaskRunResponse: type: object required: [id, run_key, account_id, task_type, target_id, run_date, status, success_count, failed_count, error_message, next_retry_at, started_at, finished_at] properties: id: {type: integer} run_key: {type: string} account_id: {type: string} task_type: {type: string} target_id: {type: string} run_date: {type: string} status: {type: string} success_count: {type: integer} failed_count: {type: integer} error_message: {type: string} next_retry_at: {type: integer} started_at: {type: integer} finished_at: {type: integer} AccountTaskRunsResponse: type: object required: [runs] properties: runs: type: array items: {$ref: '#/components/schemas/AccountTaskRunResponse'} AccountTaskSummaryResponse: type: object required: [task_type, found, success, failed, skipped] properties: task_type: type: string enum: [auto_rate, auto_polish] found: {type: integer} success: {type: integer} failed: {type: integer} skipped: {type: integer} message: {type: string} AccountTaskRunResponseEnvelope: type: object required: [success, summary] properties: success: {type: boolean} summary: {$ref: '#/components/schemas/AccountTaskSummaryResponse'} AccountBindingsResponse: type: object required: [cookie_id, channel_ids] properties: cookie_id: {type: string} channel_ids: type: [array, 'null'] items: {type: integer} KeywordBasicResponse: type: object required: [keyword, reply] properties: keyword: {type: string} reply: {type: string} KeywordBasicListResponse: type: array items: {$ref: '#/components/schemas/KeywordBasicResponse'} KeywordItemResponse: type: object required: [keyword, reply, item_id] properties: keyword: {type: string} reply: {type: string} item_id: {type: string} KeywordItemListResponse: type: array items: {$ref: '#/components/schemas/KeywordItemResponse'} KeywordTypedResponse: type: object required: [id, keyword, reply, item_id, type, image_url] properties: id: {type: integer} keyword: {type: string} reply: {type: string} item_id: {type: string} type: {type: string} image_url: {type: string} KeywordTypedListResponse: type: array items: {$ref: '#/components/schemas/KeywordTypedResponse'} DefaultReplyMapResponse: type: object additionalProperties: $ref: '#/components/schemas/DefaultReplyResponse' DefaultReplyListResponse: type: [array, 'null'] items: {$ref: '#/components/schemas/DefaultReplyResponse'} ItemReplyResponse: type: object required: [reply_content] properties: item_id: {type: string} cookie_id: {type: string} reply_content: {type: string} ItemReplyListResponse: type: array items: {$ref: '#/components/schemas/ItemReplyResponse'} AIReplySettingsResponse: type: object required: [ai_enabled, auto_adjust_price_enabled, max_discount_percent, max_discount_amount, max_bargain_rounds, custom_prompts] properties: cookie_id: {type: string} ai_enabled: {type: boolean} auto_adjust_price_enabled: {type: boolean} max_discount_percent: {type: integer} max_discount_amount: {type: integer} max_bargain_rounds: {type: integer} custom_prompts: {type: string} AIReplySettingsUpdateRequest: type: object required: [ai_enabled, auto_adjust_price_enabled, max_discount_percent, max_discount_amount, max_bargain_rounds, custom_prompts] properties: ai_enabled: {type: boolean} auto_adjust_price_enabled: {type: boolean} max_discount_percent: {type: integer, minimum: 0, maximum: 100} max_discount_amount: {type: integer, minimum: 0} max_bargain_rounds: {type: integer, minimum: 1, maximum: 10} custom_prompts: {type: string} AIReplySettingsMapResponse: type: object additionalProperties: $ref: '#/components/schemas/AIReplySettingsResponse' SettingsResponse: type: object additionalProperties: {type: string} UserSettingResponse: type: object required: [value] properties: value: {type: string} PublishCategoryResponse: type: object required: [cat_id, cat_name] properties: cat_id: {type: string} cat_name: {type: string} channel_cat_id: {type: string} tb_cat_id: {type: string} PublishCardAction: type: object required: [card_id, delivery_count, delay_seconds] properties: card_id: {type: integer} delivery_count: {type: integer} delay_seconds: {type: integer} PublishCardAutomation: type: object required: [enabled, actions] properties: enabled: {type: boolean} actions: {type: [array, 'null'], items: {$ref: '#/components/schemas/PublishCardAction'}} PublishReviewRequestConfig: type: object required: [enabled, after_shipped_hours, message, max_attempts, delay_seconds] properties: enabled: {type: boolean} after_shipped_hours: {type: integer} message: {type: string} max_attempts: {type: integer} delay_seconds: {type: integer} PublishAutomationConfig: type: object required: [paid_delivery, review_gift, review_request] properties: paid_delivery: {$ref: '#/components/schemas/PublishCardAutomation'} review_gift: {$ref: '#/components/schemas/PublishCardAutomation'} review_request: {$ref: '#/components/schemas/PublishReviewRequestConfig'} PublishLocation: type: object properties: area: {type: string} city: {type: string} division_id: {type: string} longitude: {type: number} latitude: {type: number} poi_id: {type: string} poi_name: {type: string} province: {type: string} ItemPublishRequest: type: object required: [cookie_id, title, description, price, original_price, quantity, postage_mode, postage, images] properties: cookie_id: {type: string} title: {type: string} description: {type: string} price: {type: string} original_price: {type: string} quantity: {type: integer, minimum: 1} postage_mode: {type: string} postage: {type: string} location: {type: string} images: type: array items: {type: string, format: binary} ItemPublishBatchPreviewRow: type: object required: [row_no, valid, cookie_id, title, price, quantity, images, category, automation] properties: row_no: {type: integer} valid: {type: boolean} errors: {type: array, items: {type: string}} cookie_id: {type: string} title: {type: string} price: {type: string} quantity: {type: integer} images: {type: array, items: {type: string}} category: {$ref: '#/components/schemas/PublishCategoryResponse'} automation: {$ref: '#/components/schemas/PublishAutomationConfig'} ItemPublishBatchPreviewResponse: type: object required: [success, preview_id, total, valid, invalid, rows] properties: success: {type: boolean} preview_id: {type: string} total: {type: integer} valid: {type: integer} invalid: {type: integer} rows: {type: array, items: {$ref: '#/components/schemas/ItemPublishBatchPreviewRow'}} ItemPublishBatchRowResponse: type: object required: [id, row_no, cookie_id, title, price, quantity, images, category, automation, status, item_id, item_url, error_message, failure_kind] properties: id: {type: integer} row_no: {type: integer} cookie_id: {type: string} title: {type: string} price: {type: string} quantity: {type: integer} images: {type: array, items: {type: string}} category: {$ref: '#/components/schemas/PublishCategoryResponse'} automation: {$ref: '#/components/schemas/PublishAutomationConfig'} status: {type: string} item_id: {type: string} item_url: {type: string} error_message: {type: string} failure_kind: {type: string} ItemPublishBatchResponse: type: object required: [id, status, filename, total, success, failed, pending, running, retryable, rows, location, publish_interval_seconds, created_at, updated_at] properties: id: {type: string} status: {type: string} filename: {type: string} total: {type: integer} success: {type: integer} failed: {type: integer} pending: {type: integer} running: {type: integer} retryable: {type: integer} rows: {type: array, items: {$ref: '#/components/schemas/ItemPublishBatchRowResponse'}} location: {$ref: '#/components/schemas/PublishLocation'} publish_interval_seconds: {type: integer} created_at: {type: string} updated_at: {type: string} ItemPublishBatchListResponse: type: object required: [batches] properties: batches: {type: array, items: {$ref: '#/components/schemas/ItemPublishBatchResponse'}} BatchIDResponse: type: object required: [success, batch_id] properties: success: {type: boolean} batch_id: {type: string} BatchCancelResponse: type: object required: [success, status] properties: success: {type: boolean} status: {type: string} CategoryRecommendationResponse: type: object required: [success, category] properties: success: {type: boolean} category: {$ref: '#/components/schemas/PublishCategoryResponse'} CategoryRecommendationRequest: type: object required: [cookie_id, keyword] properties: cookie_id: {type: string} keyword: {type: string} ItemPublishBatchStartRequest: type: object properties: preview_id: {type: string} batch_id: {type: string} ItemPublishBatchPreviewRequest: type: object required: [default_cookie_id, file] properties: default_cookie_id: {type: string} file: {type: string, format: binary} images_zip: {type: string, format: binary} fallback_category_id: {type: string} fallback_category_name: {type: string} fallback_channel_category_id: {type: string} fallback_tb_category_id: {type: string} location: {type: string} publish_interval_seconds: {type: integer} HealthResponse: type: object required: [status, database, version, commit] properties: status: {type: string, enum: [ok]} database: {type: string, enum: [ok]} version: {type: string} commit: {type: string} build_time: {type: string} HealthDegradedResponse: type: object required: [status, database] properties: status: {type: string, enum: [degraded]} database: {type: string, enum: [unavailable]} CardMutationRequest: type: object properties: name: {type: string} type: {type: string, enum: [api, text, data, image]} api_config: {type: string} text_content: {type: string} data_content: {type: string} image_url: {type: string} description: {type: string} enabled: {type: boolean} delay_seconds: {type: integer} is_multi_spec: {type: boolean} spec_name: {type: string} spec_value: {type: string} CardAppendRequest: type: object required: [content] properties: content: {type: string} CardBatchResultResponse: type: object required: [row_no, success, name] properties: row_no: {type: integer} success: {type: boolean} id: {type: integer} name: {type: string} type: {type: string} error: {type: string} CardBatchResponse: type: object required: [success, total, created, failed, rows] properties: success: {type: boolean} total: {type: integer} created: {type: integer} failed: {type: integer} rows: type: array items: {$ref: '#/components/schemas/CardBatchResultResponse'} CardAppendResponse: type: object required: [success, added] properties: success: {type: boolean} added: {type: integer} MutationIDResponse: type: object required: [success, id] properties: success: {type: boolean} id: {type: integer} CardResponse: type: object required: [id, name, type, api_config, text_content, data_content, image_url, description, enabled, delay_seconds, is_multi_spec, spec_name, spec_value] properties: id: {type: integer} name: {type: string} type: {type: string, enum: [api, text, data, image]} api_config: {type: string} text_content: {type: string} data_content: {type: string} image_url: {type: string} description: {type: string} enabled: {type: boolean} delay_seconds: {type: integer} is_multi_spec: {type: boolean} spec_name: {type: string} spec_value: {type: string} user_id: {type: integer} ItemListResponse: type: object required: [id, cookie_id, item_id, item_title, item_description, item_category, item_price, item_detail, item_image, is_multi_spec, multi_quantity_delivery, is_multi_qty_ship] properties: id: {type: integer} cookie_id: {type: string} item_id: {type: string} item_title: {type: string} item_description: {type: string} item_category: {type: string} item_price: {type: string} item_detail: {type: string} item_image: {type: string} is_multi_spec: {type: boolean} multi_quantity_delivery: {type: boolean} is_multi_qty_ship: {type: boolean} ItemListArrayResponse: type: array items: {$ref: '#/components/schemas/ItemListResponse'} ItemDetailResponse: type: object required: [cookie_id, item_id, item_title, item_description, item_category, item_price, item_detail, is_multi_spec, multi_quantity_delivery] properties: cookie_id: {type: string} item_id: {type: string} item_title: {type: string} item_description: {type: string} item_category: {type: string} item_price: {type: string} item_detail: {type: string} is_multi_spec: {type: boolean} multi_quantity_delivery: {type: boolean} NotificationChannelResponse: type: object required: [id, name, type, enabled] properties: id: {type: integer} name: {type: string} type: {type: string} event_types: {type: string} enabled: {type: boolean} user_id: {type: integer} NotificationChannelCreateRequest: type: object required: [name, type] properties: name: {type: string} type: {type: string} config: {type: string} event_types: {type: string} enabled: {type: boolean} NotificationChannelPatchRequest: type: object properties: name: {type: string} type: {type: string} config: {type: string} event_types: {type: string} enabled: {type: boolean} NotificationBindingRequest: type: object properties: channel_ids: type: array items: {type: integer} channel_id: {type: integer} enabled: {type: boolean} NotificationBinding: type: object required: [id, channel_id, channel_name, enabled] properties: id: {type: integer} channel_id: {type: integer} channel_name: {type: string} enabled: {type: boolean} NotificationBindingsByAccount: type: object additionalProperties: type: array items: $ref: '#/components/schemas/NotificationBinding' SessionResponse: type: object required: [success, message, is_admin] properties: success: type: boolean token: type: [string, 'null'] message: type: string user_id: type: integer username: type: string is_admin: type: boolean LoginRequest: type: object properties: username: type: string password: type: string email: type: string verification_code: type: string InitializeRequest: type: object required: [password] properties: password: type: string PasswordChangeRequest: type: object required: [current_password, new_password] properties: current_password: type: string new_password: type: string PasswordLoginDisabledRequest: type: object properties: account_id: type: string account: type: string password: type: string show_browser: type: boolean CredentialUpdateRequest: type: object required: [current_password, new_username] properties: current_password: type: string new_username: type: string new_password: type: string QRLoginVerificationRequest: type: object properties: target_account_id: type: string EmptyRequest: type: object additionalProperties: false AccountIDList: type: array items: type: string AccountCreateRequest: type: object required: [id, value] properties: id: type: string value: type: string login_method: type: string AccountUpdateRequest: type: object required: [value] properties: id: type: string value: type: string login_method: type: string last_refresh_at: type: integer AccountMutationResponse: type: object required: [success] properties: success: type: boolean id: type: string AccountDetailResponse: type: object required: [id, has_cookie, enabled, auto_confirm, remark, pause_duration, paused_until, paused, show_browser, username, nickname, avatar_url, login_method, last_login_at, profile_error, auto_rate_enabled, rate_content, auto_polish_enabled, polish_time, last_rate_scan_at, last_polish_date, last_polish_at] properties: id: type: string has_cookie: type: boolean enabled: type: boolean auto_confirm: type: boolean remark: type: string pause_duration: type: integer paused_until: type: integer paused: type: boolean show_browser: type: boolean username: type: string nickname: type: string avatar_url: type: string login_method: type: string last_login_at: type: integer profile_error: type: string auto_rate_enabled: type: boolean rate_content: type: string auto_polish_enabled: type: boolean polish_time: type: string last_rate_scan_at: type: integer last_polish_date: type: string last_polish_at: type: integer AccountDetailList: type: array items: $ref: '#/components/schemas/AccountDetailResponse' AccountStatusRequest: type: object required: [enabled] properties: enabled: type: boolean AccountSettingsUpdateRequest: type: object properties: cookie: type: string remark: type: string auto_confirm: type: boolean pause_duration: type: integer minimum: 0 maximum: 1440 username: type: string login_password: type: string clear_password: type: boolean show_browser: type: boolean channel_ids: type: array items: type: integer AccountLoginInfoRequest: type: object properties: username: type: string login_password: type: string clear_password: type: boolean show_browser: type: boolean LongLoginSettingsRequest: type: object required: [enabled] properties: enabled: type: boolean LongLoginResponse: type: object required: [can_open_long_login, enabled] properties: can_open_long_login: type: boolean enabled: type: boolean AutoConfirmRequest: type: object required: [auto_confirm] properties: auto_confirm: type: boolean AutoConfirmResponse: type: object required: [auto_confirm] properties: auto_confirm: type: boolean AccountRemarkRequest: type: object required: [remark] properties: remark: type: string maxLength: 500 PauseDurationRequest: type: object required: [pause_duration] properties: pause_duration: type: integer minimum: 0 maximum: 1440 PauseDurationResponse: type: object required: [pause_duration, paused_until, paused] properties: pause_duration: type: integer paused_until: type: integer paused: type: boolean CookieSettingsResponse: type: object required: [success, paused_until, paused] properties: success: type: boolean paused_until: type: integer paused: type: boolean CookieProfileResponse: type: object required: [success, id, nickname, avatar_url, profile_error] properties: success: type: boolean id: type: string nickname: type: string avatar_url: type: string profile_error: type: string RuntimeStatus: type: object required: [state, connected, failures, updated_at] properties: state: type: string enum: [starting, connecting, online, reconnecting, auth_expired, verification_required, runtime_conflict, error, stopped, disabled] message: type: string connected: type: boolean failures: type: integer updated_at: type: string format: date-time RuntimeStatusMap: type: object additionalProperties: $ref: '#/components/schemas/RuntimeStatus' AIModelsRequest: type: object required: [base_url] properties: base_url: type: string api_key: type: string AIModelsResponse: type: object required: [models] properties: models: type: array items: type: string SecretSettingChange: type: object required: [action] properties: action: type: string enum: [retain, replace, clear] value: type: string SystemSettingValueMap: type: object additionalProperties: oneOf: - type: string - type: number - type: boolean SystemSettingsUpdateRequest: type: object properties: values: $ref: '#/components/schemas/SystemSettingValueMap' secrets: type: object additionalProperties: $ref: '#/components/schemas/SecretSettingChange' SystemSettingsResponse: type: object additionalProperties: oneOf: - type: string - type: number - type: boolean ChatSession: type: object required: [account_id, chat_id, buyer_id, buyer_name, last_message, last_message_at, unread_count] properties: account_id: {type: string} chat_id: {type: string} buyer_id: {type: string} buyer_name: {type: string} buyer_avatar_url: {type: string} item_id: {type: string} item_title: {type: string} last_message: {type: string} last_message_at: {type: integer} unread_count: {type: integer} ChatMessage: type: object required: [id, account_id, chat_id, message_key, direction, sender_id, sender_name, message_type, content, status, sent_at] properties: id: {type: integer} account_id: {type: string} chat_id: {type: string} message_key: {type: string} direction: {type: string, enum: [incoming, outgoing]} sender_id: {type: string} sender_name: {type: string} message_type: {type: string, enum: [text, image, video, system]} content: {type: string} status: {type: string, enum: [received, sending, sent, failed]} read_status: {type: integer} read_at: {type: integer} sent_at: {type: integer} ChatSessionPage: type: object required: [sessions, has_more] properties: sessions: {type: array, items: {$ref: '#/components/schemas/ChatSession'}} has_more: {type: boolean} next_cursor: {type: integer} ChatMessagePage: type: object required: [messages, has_more] properties: messages: {type: array, items: {$ref: '#/components/schemas/ChatMessage'}} has_more: {type: boolean} next_cursor: {type: integer} session: {$ref: '#/components/schemas/ChatSession'} ChatMessageEnvelope: type: object required: [message] properties: message: {$ref: '#/components/schemas/ChatMessage'} ChatReadyEvent: type: object required: [type, at] properties: type: {type: string, enum: [ready]} at: {type: integer} ChatEvent: type: object required: [type] properties: type: {type: string, enum: [message.created, message.updated]} message: {$ref: '#/components/schemas/ChatMessage'} session: {$ref: '#/components/schemas/ChatSession'} ChatWebSocketEvent: anyOf: - $ref: '#/components/schemas/ChatReadyEvent' - $ref: '#/components/schemas/ChatEvent' ChatMessageRequest: type: object required: [account_id, chat_id, buyer_id, text] properties: account_id: {type: string} chat_id: {type: string} buyer_id: {type: string} buyer_name: {type: string} item_id: {type: string} item_title: {type: string} text: {type: string, maxLength: 2000} ChatReadRequest: type: object required: [account_id, chat_id] properties: account_id: {type: string} chat_id: {type: string} message_ids: {type: array, items: {type: object, additionalProperties: {oneOf: [{type: string}, {type: number}]}}} OrderDTO: type: object required: [order_id, item_id, item_title, item_image, buyer_id, quantity, amount, order_status, status, cookie_id, created_at] properties: order_id: {type: string} item_id: {type: string} item_title: {type: string} item_image: {type: string} buyer_id: {type: string} spec_name: {type: string} spec_value: {type: string} quantity: {type: string} amount: {type: string} order_status: {type: string} status: {type: string} cookie_id: {type: string} is_bargain: {type: integer} system_shipped: {type: boolean} receiver_name: {type: string} receiver_phone: {type: string} receiver_address: {type: string} receiver_city: {type: string} created_at: {type: string} updated_at: {type: string} OrderListResponse: type: object required: [success, data, total, page, page_size, total_pages] properties: success: {type: boolean} data: {type: array, items: {$ref: '#/components/schemas/OrderDTO'}} total: {type: integer} page: {type: integer} page_size: {type: integer} total_pages: {type: integer} OrderDetailResponse: allOf: - {$ref: '#/components/schemas/OrderDTO'} - type: object required: [success, data] properties: success: {type: boolean} data: {$ref: '#/components/schemas/OrderDTO'} OrderUpdateRequest: type: object properties: order_status: {type: string} status: {type: string} item_id: {type: string} buyer_id: {type: string} spec_name: {type: string} spec_value: {type: string} quantity: {oneOf: [{type: string}, {type: number}]} amount: {oneOf: [{type: string}, {type: number}]} receiver_name: {type: string} receiver_phone: {type: string} receiver_address: {type: string} receiver_city: {type: string} chat_id: {type: string} system_shipped: {type: boolean} item_title: {type: string} OrderRefreshRequest: type: object properties: cookie_id: {type: string} status: {type: string} OrderRefreshDetail: type: object required: [quantity, spec_name, spec_value, order_status, amount] properties: quantity: {type: string} spec_name: {type: string} spec_value: {type: string} order_status: {type: string} amount: {type: string} OrderSingleRefreshResponse: type: object required: [success, message, order] properties: success: {type: boolean} message: {type: string} order: {$ref: '#/components/schemas/OrderRefreshDetail'} OrderRefreshResult: type: object required: [success] properties: success: {type: boolean} cookie_id: {type: string} stage: {type: string} message: {type: string} error: {type: string} discovered: {type: integer} updated: {type: integer} soft_deleted: {type: boolean} order_id: {type: string} old_status: {type: string} new_status: {type: string} OrderRefreshSummary: type: object required: [discovered, list_updated, soft_deleted, detail_total, total, updated, no_change, failed] properties: discovered: {type: integer} list_updated: {type: integer} soft_deleted: {type: integer} detail_total: {type: integer} total: {type: integer} updated: {type: integer} no_change: {type: integer} failed: {type: integer} OrderRefreshResponse: type: object required: [partial_failure, message, summary, results] properties: partial_failure: {type: boolean} message: {type: string} summary: {$ref: '#/components/schemas/OrderRefreshSummary'} results: {type: array, items: {$ref: '#/components/schemas/OrderRefreshResult'}} OrderRefreshJobStartResponse: type: object required: [success, job_id, status] properties: success: {type: boolean} job_id: {type: string} status: {type: string, enum: [queued, running]} OrderRefreshJobStatusResponse: type: object required: [success, job_id, status] properties: success: {type: boolean} job_id: {type: string} status: {type: string, enum: [queued, running, succeeded, failed, cancelled]} error_message: {type: string} result: {$ref: '#/components/schemas/OrderRefreshResponse'} OrderRefreshJobCancelResponse: type: object required: [success, job_id, status] properties: success: {type: boolean} job_id: {type: string} status: {type: string, enum: [cancelled]} ManualShipRequest: type: object required: [order_ids, ship_mode] properties: order_ids: {type: array, items: {type: string}} ship_mode: {type: string, enum: [status_only, full_delivery]} OrderBatchResult: type: object required: [message] properties: order_id: {type: string} status: {type: string} success: {type: boolean} message: {type: string} cookie_id: {type: string} reconciliation_id: {type: string} reconciliation_warning: {type: string} stage: {type: string} OrderBatchResponse: type: object required: [partial_failure, message, success_count, failed_count, results] properties: partial_failure: {type: boolean} message: {type: string} total: {type: integer} success_count: {type: integer} failed_count: {type: integer} results: {type: array, items: {$ref: '#/components/schemas/OrderBatchResult'}} AdminStatsResponse: type: object required: [total_users, total_cookies, active_cookies, total_cards, total_keywords, total_orders] properties: total_users: {type: integer} total_cookies: {type: integer} active_cookies: {type: integer} total_cards: {type: integer} total_keywords: {type: integer} total_orders: {type: integer} AdminUser: type: object required: [id, username, email, is_active, is_admin, created_at, cookie_count] properties: id: {type: integer} username: {type: string} email: {type: string} is_active: {type: boolean} is_admin: {type: boolean} created_at: {type: string} cookie_count: {type: integer} AdminCookie: type: object required: [id, user_id, remark, created_at, owner, enabled] properties: id: {type: string} user_id: {type: integer} remark: {type: string} created_at: {type: string} owner: {type: string} enabled: {type: boolean} AdminTask: type: object required: [id, name, state, started_at] properties: id: {type: string} name: {type: string} state: {type: string, enum: [running, succeeded, failed, canceled, timed_out]} started_at: {type: string, format: date-time} finished_at: {type: string, format: date-time} deadline_at: {type: string, format: date-time} DashboardStatsResponse: type: object required: [total_cookies, active_cookies, total_cards, available_card_stock, total_keywords, total_orders] properties: total_cookies: {type: integer} active_cookies: {type: integer} total_cards: {type: integer} available_card_stock: {type: integer} total_keywords: {type: integer} total_orders: {type: integer} AnalyticsResponse: type: object required: [revenue_stats, daily_stats, status_stats, city_stats, item_stats] properties: revenue_stats: {type: object, required: [total_orders, total_amount, avg_amount, unique_buyers, unique_items], properties: {total_orders: {type: integer}, total_amount: {type: number}, avg_amount: {type: number}, unique_buyers: {type: integer}, unique_items: {type: integer}}} daily_stats: {type: array, items: {type: object, required: [date, order_count, amount], properties: {date: {type: string}, order_count: {type: integer}, amount: {type: number}}}} status_stats: {type: array, items: {type: object, required: [status, count, amount], properties: {status: {type: string}, count: {type: integer}, amount: {type: number}}}} city_stats: {type: array, items: {type: object, required: [city, order_count, total_amount], properties: {city: {type: string}, order_count: {type: integer}, total_amount: {type: number}}}} item_stats: {type: array, items: {type: object, required: [item_id, order_count, total_amount, avg_amount], properties: {item_id: {type: string}, order_count: {type: integer}, total_amount: {type: number}, avg_amount: {type: number}}}} ValidOrdersResponse: type: object required: [orders, total, page, page_size, truncated] properties: orders: {type: array, items: {$ref: '#/components/schemas/OrderDTO'}} total: {type: integer} page: {type: integer} page_size: {type: integer} truncated: {type: boolean} SessionStatusResponse: type: object required: [authenticated, initialized, is_admin] properties: authenticated: type: boolean initialized: type: boolean user_id: type: integer username: type: string is_admin: type: boolean OperationResponse: type: object required: [success] properties: success: type: boolean message: type: string requires_relogin: type: boolean MessageResponse: type: object required: [message] properties: message: type: string QRLoginGenerateResponse: type: object required: [success, session_id, qr_code_url] properties: success: type: boolean session_id: type: string qr_code_url: type: string message: type: string QRLoginStatusResponse: type: object required: [status] properties: success: type: boolean status: type: string message: type: string verification_screenshot: type: string face_qr_url: type: string session_id: type: string account_id: type: string is_new_account: type: boolean QRLoginVerificationResponse: type: object required: [success, unb] properties: success: type: boolean unb: type: string account_id: type: string is_new_account: type: boolean ErrorResponse: type: object required: [code, message] properties: code: type: string message: type: string request_id: type: string details: type: object additionalProperties: true