{"openapi":"3.1.0","info":{"title":"封阳智稿 API","description":"已排版 HTML 到微信公众号草稿箱。","version":"1.6.0"},"paths":{"/api/billing/plans":{"get":{"summary":"Plans","operationId":"plans_api_billing_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/orders":{"get":{"summary":"Orders","operationId":"orders_api_billing_orders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Order","operationId":"create_order_api_billing_orders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrder"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/entitlements":{"get":{"summary":"Entitlements","operationId":"entitlements_api_billing_entitlements_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/orders/{order_id}":{"get":{"summary":"Get Order","operationId":"get_order_api_billing_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/orders/{order_id}/refresh":{"post":{"summary":"Refresh","operationId":"refresh_api_billing_orders__order_id__refresh_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/orders/{order_id}/qr":{"get":{"summary":"Order Qr","operationId":"order_qr_api_billing_orders__order_id__qr_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/wechat/notify":{"post":{"summary":"Notify","operationId":"notify_payments_wechat_notify_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/me":{"get":{"summary":"Me","operationId":"me_api_admin_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/export/{resource}":{"get":{"summary":"Export","operationId":"export_api_admin_export__resource__get","parameters":[{"name":"resource","in":"path","required":true,"schema":{"type":"string","title":"Resource"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/overview":{"get":{"summary":"Overview","operationId":"overview_api_admin_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/users":{"get":{"summary":"Users","operationId":"users_api_admin_users_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":24,"default":"","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{uid}":{"get":{"summary":"User Detail","operationId":"user_detail_api_admin_users__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Edit User","operationId":"edit_user_api_admin_users__uid__patch","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{uid}/revoke-sessions":{"post":{"summary":"Revoke User Sessions","operationId":"revoke_user_sessions_api_admin_users__uid__revoke_sessions_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__admin_routes__Reason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/roles":{"get":{"summary":"Roles","operationId":"roles_api_admin_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Role","operationId":"create_role_api_admin_roles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChange"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/roles/{rid}":{"patch":{"summary":"Edit Role","operationId":"edit_role_api_admin_roles__rid__patch","parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"string","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{uid}/role":{"put":{"summary":"Assign Role","operationId":"assign_role_api_admin_users__uid__role_put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignRole"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/grants":{"get":{"summary":"Grants","operationId":"grants_api_admin_grants_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"User Id"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":24,"default":"","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{uid}/grants":{"post":{"summary":"Add Grant","operationId":"add_grant_api_admin_users__uid__grants_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/grants/{gid}":{"patch":{"summary":"Edit Grant","operationId":"edit_grant_api_admin_grants__gid__patch","parameters":[{"name":"gid","in":"path","required":true,"schema":{"type":"string","title":"Gid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/entitlements":{"get":{"summary":"Entitlements","operationId":"entitlements_api_profile_entitlements_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/orders":{"get":{"summary":"Orders","operationId":"orders_api_admin_orders_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"User Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orders/{order_id}":{"get":{"summary":"Detail","operationId":"detail_api_admin_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orders/{order_id}/refresh":{"post":{"summary":"Refresh","operationId":"refresh_api_admin_orders__order_id__refresh_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__admin_billing__Reason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orders/{order_id}/close":{"post":{"summary":"Close","operationId":"close_api_admin_orders__order_id__close_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__admin_billing__Reason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/plans":{"get":{"summary":"Plans","operationId":"plans_api_admin_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Add Plan","operationId":"add_plan_api_admin_plans_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/plans/{plan_id}":{"patch":{"summary":"Edit Plan","operationId":"edit_plan_api_admin_plans__plan_id__patch","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds":{"get":{"summary":"Refunds","operationId":"refunds_api_admin_refunds_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"User Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orders/{order_id}/refunds":{"post":{"summary":"Request Refund","operationId":"request_refund_api_admin_orders__order_id__refunds_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds/{refund_id}/submit":{"post":{"summary":"Submit","operationId":"submit_api_admin_refunds__refund_id__submit_post","parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","title":"Refund Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundSubmit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds/{refund_id}/refresh":{"post":{"summary":"Refund Refresh","operationId":"refund_refresh_api_admin_refunds__refund_id__refresh_post","parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","title":"Refund Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__admin_billing__Reason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds/{refund_id}/reject":{"post":{"summary":"Reject","operationId":"reject_api_admin_refunds__refund_id__reject_post","parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","title":"Refund Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__admin_billing__Reason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/refunds":{"get":{"summary":"User Refunds","operationId":"user_refunds_api_billing_refunds_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/orders/{order_id}/refund-request":{"post":{"summary":"User Request","operationId":"user_request_api_billing_orders__order_id__refund_request_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__admin_billing__Reason"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/wechat/refund-notify":{"post":{"summary":"Refund Notify","operationId":"refund_notify_payments_wechat_refund_notify_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/billing/reconciliations":{"get":{"summary":"Reconciliations","operationId":"reconciliations_api_admin_billing_reconciliations_get","parameters":[{"name":"order_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Order Id"}},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","default":"","title":"Outcome"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/billing/status":{"get":{"summary":"Status","operationId":"status_api_admin_billing_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/events":{"post":{"summary":"Client Event","operationId":"client_event_api_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback":{"post":{"summary":"Create Feedback","operationId":"create_feedback_api_feedback_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Own Feedback","operationId":"own_feedback_api_feedback_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","resolved"],"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback":{"get":{"summary":"Feedback List","operationId":"feedback_list_api_admin_feedback_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"User Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","resolved"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback/{feedback_id}":{"patch":{"summary":"Update Feedback","operationId":"update_feedback_api_admin_feedback__feedback_id__patch","parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","title":"Feedback Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/events":{"get":{"summary":"Events","operationId":"events_api_admin_events_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"User Id"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["client","server"],"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/audit":{"get":{"summary":"Audits","operationId":"audits_api_admin_audit_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"User Id"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Action"}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"enum":["success","failure","denied"],"type":"string"},{"type":"null"}],"title":"Outcome"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/operations":{"get":{"summary":"Operations","operationId":"operations_api_admin_operations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/account":{"get":{"summary":"Account","operationId":"account_api_admin_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Change","operationId":"change_api_admin_account_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/account/revoke-sessions":{"post":{"summary":"Revoke","operationId":"revoke_api_admin_account_revoke_sessions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRevoke"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/reauth":{"post":{"summary":"Reauthenticate","operationId":"reauthenticate_api_admin_reauth_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reauthentication"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/account/totp/setup":{"post":{"summary":"Setup","operationId":"setup_api_admin_account_totp_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credentials"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/account/totp/enable":{"post":{"summary":"Enable","operationId":"enable_api_admin_account_totp_enable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpEnable"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/account/totp/disable":{"post":{"summary":"Disable","operationId":"disable_api_admin_account_totp_disable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialReason"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{uid}/removal-preview":{"get":{"summary":"Preview","operationId":"preview_api_admin_users__uid__removal_preview_get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{uid}/remove":{"post":{"summary":"Remove","operationId":"remove_api_admin_users__uid__remove_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveUser"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{uid}/restore":{"post":{"summary":"Restore","operationId":"restore_api_admin_users__uid__restore_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__admin_routes__Reason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{uid}/revoke-keys":{"post":{"summary":"Revoke All Keys","operationId":"revoke_all_keys_api_admin_users__uid__revoke_keys_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__admin_routes__Reason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/status":{"get":{"summary":"Status","operationId":"status_api_platform_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/platform":{"get":{"summary":"Get Platform","operationId":"get_platform_api_admin_platform_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Update Platform","operationId":"update_platform_api_admin_platform_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/platform/impact":{"get":{"summary":"Impact","operationId":"impact_api_admin_platform_impact_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/registration-invites":{"get":{"summary":"List Invites","operationId":"list_invites_api_admin_registration_invites_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Invite","operationId":"invite_api_admin_registration_invites_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/registration-invites/{invite_id}/revoke":{"post":{"summary":"Revoke","operationId":"revoke_api_admin_registration_invites__invite_id__revoke_post","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__platform_control__Reason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/exceptions":{"get":{"summary":"Exceptions","operationId":"exceptions_api_admin_exceptions_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","maxLength":30,"default":"","title":"Kind"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","pattern":"^(open|resolved|all)$","default":"open","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/exceptions/{incident_id}/resolve":{"post":{"summary":"Resolve","operationId":"resolve_api_admin_exceptions__incident_id__resolve_post","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/grants/{target}/impact":{"get":{"summary":"Grant","operationId":"grant_api_admin_grants__target__impact_get","parameters":[{"name":"target","in":"path","required":true,"schema":{"type":"string","title":"Target"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{target}/role-impact":{"get":{"summary":"Role","operationId":"role_api_admin_users__target__role_impact_get","parameters":[{"name":"target","in":"path","required":true,"schema":{"type":"string","title":"Target"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds/{target}/impact":{"get":{"summary":"Refund","operationId":"refund_api_admin_refunds__target__impact_get","parameters":[{"name":"target","in":"path","required":true,"schema":{"type":"string","title":"Target"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/accounts":{"get":{"summary":"Accounts","operationId":"accounts_v1_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/assets":{"post":{"summary":"Upload","operationId":"upload_v1_assets_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_v1_assets_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/assets/from-url":{"post":{"summary":"Create Image Link","operationId":"create_image_link_v1_assets_from_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageLinkCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/draft-jobs/validate":{"post":{"summary":"Validate Draft","operationId":"validate_draft_v1_draft_jobs_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/draft-jobs":{"post":{"summary":"Create Job","operationId":"create_job_v1_draft_jobs_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Jobs","operationId":"list_jobs_v1_draft_jobs_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":24,"default":"","title":"Status"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"User Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/draft-jobs/{job_id}":{"get":{"summary":"Get Job","operationId":"get_job_v1_draft_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/{draft_id}":{"get":{"summary":"Get Draft","operationId":"get_draft_v1_drafts__draft_id__get","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountChange":{"properties":{"current_password":{"type":"string","maxLength":256,"minLength":1,"title":"Current Password"},"otp":{"anyOf":[{"type":"string","pattern":"^[0-9]{6}$"},{"type":"null"}],"title":"Otp"},"recovery_code":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Recovery Code"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"username":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]{2,79}$"},{"type":"null"}],"title":"Username"},"new_password":{"anyOf":[{"type":"string","maxLength":256,"minLength":12},{"type":"null"}],"title":"New Password"}},"additionalProperties":false,"type":"object","required":["current_password","reason"],"title":"AccountChange"},"Article":{"properties":{"article_type":{"type":"string","const":"news","title":"Article Type","default":"news"},"title":{"type":"string","maxLength":64,"minLength":1,"title":"Title"},"author":{"type":"string","maxLength":16,"title":"Author","default":""},"digest":{"type":"string","maxLength":120,"title":"Digest","default":""},"content_html":{"type":"string","maxLength":100000,"minLength":1,"title":"Content Html"},"cover_asset_id":{"type":"string","pattern":"^asset_[a-f0-9]{32}$","title":"Cover Asset Id"},"pic_crop_235_1":{"anyOf":[{"type":"string","maxLength":35},{"type":"null"}],"title":"Pic Crop 235 1"},"pic_crop_1_1":{"anyOf":[{"type":"string","maxLength":35},{"type":"null"}],"title":"Pic Crop 1 1"}},"additionalProperties":false,"type":"object","required":["title","content_html","cover_asset_id"],"title":"Article"},"AssignRole":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"impact_token":{"type":"string","maxLength":2048,"title":"Impact Token","default":""},"role_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Role Id"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"AssignRole"},"Body_upload_v1_assets_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_v1_assets_post"},"ConfigChange":{"properties":{"registration_mode":{"type":"string","enum":["inherit","open","closed","invite"],"title":"Registration Mode"},"drafts_paused":{"type":"boolean","title":"Drafts Paused"},"connections_paused":{"type":"boolean","title":"Connections Paused"},"sales_paused":{"type":"boolean","title":"Sales Paused"},"public_message":{"type":"string","maxLength":500,"title":"Public Message","default":""},"expected_version":{"type":"integer","minimum":1.0,"title":"Expected Version"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["registration_mode","drafts_paused","connections_paused","sales_paused","expected_version","reason"],"title":"ConfigChange"},"CreateOrder":{"properties":{"plan_id":{"type":"string","maxLength":60,"minLength":1,"title":"Plan Id"},"renew_entitlement_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Renew Entitlement Id"}},"additionalProperties":false,"type":"object","required":["plan_id"],"title":"CreateOrder"},"CredentialReason":{"properties":{"current_password":{"type":"string","maxLength":256,"minLength":1,"title":"Current Password"},"otp":{"anyOf":[{"type":"string","pattern":"^[0-9]{6}$"},{"type":"null"}],"title":"Otp"},"recovery_code":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Recovery Code"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["current_password","reason"],"title":"CredentialReason"},"Credentials":{"properties":{"current_password":{"type":"string","maxLength":256,"minLength":1,"title":"Current Password"},"otp":{"anyOf":[{"type":"string","pattern":"^[0-9]{6}$"},{"type":"null"}],"title":"Otp"},"recovery_code":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Recovery Code"}},"additionalProperties":false,"type":"object","required":["current_password"],"title":"Credentials"},"DraftRequest":{"properties":{"account_id":{"type":"string","maxLength":64,"minLength":1,"title":"Account Id"},"articles":{"items":{"oneOf":[{"$ref":"#/components/schemas/Article"},{"$ref":"#/components/schemas/NewspicArticle"}]},"type":"array","maxItems":1,"minItems":1,"title":"Articles"}},"additionalProperties":false,"type":"object","required":["account_id","articles"],"title":"DraftRequest"},"EventInput":{"properties":{"kind":{"type":"string","maxLength":40,"title":"Kind"},"page":{"type":"string","maxLength":20,"title":"Page"},"code":{"type":"string","maxLength":30,"title":"Code","default":""},"duration_ms":{"anyOf":[{"type":"integer","maximum":300000.0,"minimum":0.0},{"type":"null"}],"title":"Duration Ms"},"target_id":{"type":"string","maxLength":64,"title":"Target Id","default":""}},"additionalProperties":false,"type":"object","required":["kind","page"],"title":"EventInput"},"FeedbackInput":{"properties":{"category":{"type":"string","enum":["account","draft","payment","other"],"title":"Category"},"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"},"target_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Target Id"}},"additionalProperties":false,"type":"object","required":["category","message"],"title":"FeedbackInput"},"FeedbackUpdate":{"properties":{"status":{"type":"string","enum":["open","resolved"],"title":"Status"},"reply":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reply"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["status","reason"],"title":"FeedbackUpdate"},"GrantChange":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"impact_token":{"type":"string","maxLength":2048,"title":"Impact Token","default":""},"expires_at":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Expires At"},"revoke":{"type":"boolean","title":"Revoke","default":false}},"additionalProperties":false,"type":"object","required":["reason"],"title":"GrantChange"},"GrantCreate":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"slots":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Slots"},"starts_at":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Starts At"},"expires_at":{"type":"number","exclusiveMinimum":0.0,"title":"Expires At"},"kind":{"type":"string","enum":["gift","trial","compensation"],"title":"Kind","default":"gift"}},"additionalProperties":false,"type":"object","required":["reason","slots","expires_at"],"title":"GrantCreate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImageLinkCreate":{"properties":{"url":{"type":"string","maxLength":4096,"minLength":1,"title":"Url"}},"additionalProperties":false,"type":"object","required":["url"],"title":"ImageLinkCreate"},"InviteCreate":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"expires_at":{"type":"number","exclusiveMinimum":0.0,"title":"Expires At"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["email","expires_at","reason"],"title":"InviteCreate"},"NewspicArticle":{"properties":{"article_type":{"type":"string","const":"newspic","title":"Article Type"},"title":{"type":"string","maxLength":32,"minLength":1,"title":"Title"},"content":{"type":"string","maxLength":20000,"minLength":1,"title":"Content","description":"纯文本；20000字符为平台限制，非微信官方限额。"},"image_asset_ids":{"items":{"type":"string","pattern":"^asset_[a-f0-9]{32}$"},"type":"array","maxItems":20,"minItems":1,"title":"Image Asset Ids"}},"additionalProperties":false,"type":"object","required":["article_type","title","content","image_asset_ids"],"title":"NewspicArticle"},"PlanCreate":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,60}$","title":"Id"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"extra_slots":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Extra Slots"},"duration_days":{"type":"integer","maximum":366.0,"minimum":1.0,"title":"Duration Days"},"price_cents":{"type":"integer","maximum":10000000.0,"minimum":1.0,"title":"Price Cents"},"active":{"type":"boolean","title":"Active","default":true}},"additionalProperties":false,"type":"object","required":["reason","id","name","extra_slots","duration_days","price_cents"],"title":"PlanCreate"},"PlanPatch":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"extra_slots":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Extra Slots"},"duration_days":{"anyOf":[{"type":"integer","maximum":366.0,"minimum":1.0},{"type":"null"}],"title":"Duration Days"},"price_cents":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":1.0},{"type":"null"}],"title":"Price Cents"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"PlanPatch"},"Reauthentication":{"properties":{"current_password":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Current Password"},"otp":{"anyOf":[{"type":"string","pattern":"^[0-9]{6}$"},{"type":"null"}],"title":"Otp"},"recovery_code":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Recovery Code"},"action":{"type":"string","enum":["user.remove","user.restore","user.keys_revoke","platform.update","exception.resolve","grant.update","refund.submit","role.assign"],"title":"Action"},"target_id":{"type":"string","maxLength":100,"minLength":1,"title":"Target Id"}},"additionalProperties":false,"type":"object","required":["action","target_id"],"title":"Reauthentication"},"RefundCreate":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"amount_cents":{"type":"integer","maximum":10000000.0,"minimum":1.0,"title":"Amount Cents"},"revoke_entitlement":{"type":"boolean","title":"Revoke Entitlement"}},"additionalProperties":false,"type":"object","required":["reason","amount_cents","revoke_entitlement"],"title":"RefundCreate"},"RefundSubmit":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"impact_token":{"type":"string","maxLength":2048,"title":"Impact Token","default":""}},"additionalProperties":false,"type":"object","required":["reason"],"title":"RefundSubmit"},"RemoveUser":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"impact_token":{"type":"string","maxLength":2048,"minLength":1,"title":"Impact Token"}},"additionalProperties":false,"type":"object","required":["reason","impact_token"],"title":"RemoveUser"},"ResolveInput":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"ResolveInput"},"RoleChange":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"permissions":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Permissions"}},"additionalProperties":false,"type":"object","required":["reason","name","permissions"],"title":"RoleChange"},"SessionRevoke":{"properties":{"current_password":{"type":"string","maxLength":256,"minLength":1,"title":"Current Password"},"otp":{"anyOf":[{"type":"string","pattern":"^[0-9]{6}$"},{"type":"null"}],"title":"Otp"},"recovery_code":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Recovery Code"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"include_current":{"type":"boolean","title":"Include Current","default":false}},"additionalProperties":false,"type":"object","required":["current_password","reason"],"title":"SessionRevoke"},"TotpEnable":{"properties":{"current_password":{"type":"string","maxLength":256,"minLength":1,"title":"Current Password"},"code":{"type":"string","pattern":"^[0-9]{6}$","title":"Code"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["current_password","code","reason"],"title":"TotpEnable"},"UserChange":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"status":{"anyOf":[{"type":"string","enum":["active","suspended"]},{"type":"null"}],"title":"Status"},"display_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Display Name"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"UserChange"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"app__admin_billing__Reason":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"Reason"},"app__admin_routes__Reason":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"Reason"},"app__platform_control__Reason":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"Reason"}}}}