Skip to content

Commit

Permalink
Add FGA client to support FGA endpoints (#353)
Browse files Browse the repository at this point in the history
* Fix typo for IdempotencyKey json encoding

* Add FGA client and methods

* Add object types list and batch update methods

* Add Authorized method to CheckResponse and return CheckResponse from all check methods

* Make ObjectId required for UpdateObjectOpts

* Update FGA tests

* Rename Warrants field to Checks

* Update CheckResponse to include DebugInfo struct

* Rename BatchCheck to CheckBatch

* Remove single check method and rename CheckMany to Check

* Rename Warrants field to Checks

* Rename fga Object to Resource

* Update json encoding for checks

* Update CheckResultAuthorized constant to be lowercase and add new CheckResultNotAuthorized constant

* Add constants for Warrant create/delete operations + add constants for check operations ('any_of', 'all_of', etc).

* Fix grammar in resource comments

* Implement EncodeValues for Context type

---------

Co-authored-by: Karan Kajla <[email protected]>
  • Loading branch information
stanleyphu and kkajla12 authored Jul 23, 2024
1 parent 607d637 commit 6f9ed28
Show file tree
Hide file tree
Showing 6 changed files with 4,698 additions and 1 deletion.
Loading

0 comments on commit 6f9ed28

Please sign in to comment.