v3-agent-quota.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-agent-quota.yaml
  2. get:
  3. summary: '查看我的 AI 对话额度'
  4. tags:
  5. - agent-quota
  6. operationId: get_api_v3_agent_quota
  7. description: |-
  8. 可选登录:带 Bearer 看自己账号;游客带 `device_id`。登录用户读取时会顺带把今天(和昨天)
  9. 的读经、编辑时长结算成积分,所以读完马上就能看到到账。
  10. 实现:`V3\AgentQuotaController@__invoke`
  11. security:
  12. - { }
  13. -
  14. bearerAuth: []
  15. parameters:
  16. -
  17. name: device_id
  18. in: query
  19. schema:
  20. type: string
  21. description: '设备匿名 id(uuid)。未登录时必填'
  22. responses:
  23. 200:
  24. description: 成功
  25. content:
  26. application/json:
  27. schema:
  28. type: object
  29. properties:
  30. data:
  31. type: object
  32. properties:
  33. account_type:
  34. type: string
  35. day:
  36. type: string
  37. resets_at:
  38. type: string
  39. policy_version:
  40. type: integer
  41. daily_free:
  42. type: integer
  43. free_used:
  44. type: integer
  45. free_remaining:
  46. type: integer
  47. earned_balance:
  48. type: integer
  49. cost:
  50. type: object
  51. properties:
  52. normal: { type: integer }
  53. deep: { type: integer }
  54. earned_today:
  55. type: object
  56. properties:
  57. reading: { type: integer }
  58. editing: { type: integer }
  59. earn:
  60. type: object
  61. 422:
  62. $ref: '../../main.yaml#/components/responses/ProblemValidation'