iachat/spec/enterprise/controllers/api/v1/accounts
Shivam Mishra 3b366f43e6
feat: setup captain limits (#10713)
This pull request introduces several changes to implement and manage
usage limits for the Captain AI service. The key changes include adding
configuration for plan limits, updating error messages, modifying
controllers and models to handle usage limits, and updating tests to
ensure the new functionality works correctly.

## Implementation Checklist

- [x] Ability to configure captain limits per check
- [x] Update response for `usage_limits` to include captain limits
- [x] Methods to increment or reset captain responses limits in the
`limits` column for the `Account` model
- [x] Check documents limit using a count query
- [x] Ensure Captain hand-off if a limit is reached
- [x] Ensure limits are enforced for Copilot Chat
- [x] Ensure limits are reset when stripe webhook comes in 
- [x] Increment usage for FAQ generation and Contact notes
- [x] Ensure documents limit is enforced

These changes ensure that the Captain AI service operates within the defined usage limits for different subscription plans, providing appropriate error messages and handling when limits are exceeded.
2025-01-23 01:23:18 +05:30
..
captain feat: setup captain limits (#10713) 2025-01-23 01:23:18 +05:30
agents_controller_spec.rb feat: API changes to support multi step user signup (#8933) 2024-02-20 16:48:51 +05:30
applied_slas_controller_spec.rb feat: SLA report filter (#9218) 2024-04-12 11:03:18 +05:30
audit_logs_controller_spec.rb feat: add auditlogs for account model (#7511) 2023-07-19 23:52:34 +05:30
conversations_controller_spec.rb feat: Conversation API to return applied_sla and sla_events (#9174) 2024-04-01 23:30:07 +05:30
custom_roles_controller_spec.rb chore: Fix flaky permissions test (#10074) 2024-09-04 16:13:29 -07:00
sla_policies_controller_spec.rb feat: sla 1 - refactor sla_policies model and add applied_sla model (#8602) 2024-01-23 23:48:02 +05:30