Adds the consistency parameter to the following endpoints:
Check
List Users
List Objects + Streamed List Objects
Expand
Read
The parameter is an enum with two values:
UNSPECIFIED - This value should not be sent to the API but is the default. Intended to mean value not provided and will imply MINIMIZE_LATENCY behavior
MINIMIZE_LATENCY - behavior is as-is today, prefer the usage of caching methods to reduce query time
HIGHER_CONSISTENCY - used to signal to the API to prefer higher consistency at the expense of potentially reduced performance
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected
Description
Adds the consistency parameter to the following endpoints:
The parameter is an enum with two values:
UNSPECIFIED
- This value should not be sent to the API but is the default. Intended to mean value not provided and will implyMINIMIZE_LATENCY
behaviorMINIMIZE_LATENCY
- behavior is as-is today, prefer the usage of caching methods to reduce query timeHIGHER_CONSISTENCY
- used to signal to the API to prefer higher consistency at the expense of potentially reduced performanceReferences
Review Checklist
main