Skip to content

Commit

Permalink
Merge pull request #37 from openfga/headers-options-configs
Browse files Browse the repository at this point in the history
feat(client): add headers for Write/BatchCheck/ListRelations, add header overriding to client
  • Loading branch information
rhamzeh authored Dec 15, 2023
2 parents 4d42405 + cc9f9df commit 6614bf1
Show file tree
Hide file tree
Showing 131 changed files with 1,483 additions and 3,256 deletions.
3 changes: 3 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ pom.xml
.github/workflows/maven.yml
git_push.sh
.travis.yml

# Model tests intentionally ignored
**/test/**/model/*
128 changes: 37 additions & 91 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ README.md
VERSION.txt
api/openapi.yaml
build.gradle
docs/AbortedMessageResponse.md
docs/Any.md
docs/Assertion.md
docs/AssertionTupleKey.md
Expand Down Expand Up @@ -95,55 +96,65 @@ src/main/java/dev/openfga/sdk/api/auth/OAuth2Client.java
src/main/java/dev/openfga/sdk/api/client/ApiClient.java
src/main/java/dev/openfga/sdk/api/client/ApiResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientAssertion.java
src/main/java/dev/openfga/sdk/api/client/ClientBatchCheckResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientCheckRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientCheckResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientCreateStoreResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientDeleteStoreResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientExpandRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientExpandResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientGetStoreResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientListObjectsRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientListObjectsResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientListRelationsRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientListRelationsResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientListStoresResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientReadAssertionsResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientReadAuthorizationModelResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientReadAuthorizationModelsResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientReadChangesResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientReadRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientReadResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientRelationshipCondition.java
src/main/java/dev/openfga/sdk/api/client/ClientTupleKey.java
src/main/java/dev/openfga/sdk/api/client/ClientTupleKeyWithoutCondition.java
src/main/java/dev/openfga/sdk/api/client/ClientWriteAssertionsResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientWriteAuthorizationModelResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientWriteRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientWriteResponse.java
src/main/java/dev/openfga/sdk/api/client/HttpRequestAttempt.java
src/main/java/dev/openfga/sdk/api/client/OpenFgaClient.java
src/main/java/dev/openfga/sdk/api/client/model/ClientBatchCheckResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientCheckRequest.java
src/main/java/dev/openfga/sdk/api/client/model/ClientCheckResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientCreateStoreResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientDeleteStoreResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientExpandRequest.java
src/main/java/dev/openfga/sdk/api/client/model/ClientExpandResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientGetStoreResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientListObjectsRequest.java
src/main/java/dev/openfga/sdk/api/client/model/ClientListObjectsResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientListRelationsRequest.java
src/main/java/dev/openfga/sdk/api/client/model/ClientListRelationsResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientListStoresResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientReadAssertionsResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientReadAuthorizationModelResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientReadAuthorizationModelsResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientReadChangesRequest.java
src/main/java/dev/openfga/sdk/api/client/model/ClientReadChangesResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientReadRequest.java
src/main/java/dev/openfga/sdk/api/client/model/ClientReadResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientRelationshipCondition.java
src/main/java/dev/openfga/sdk/api/client/model/ClientTupleKey.java
src/main/java/dev/openfga/sdk/api/client/model/ClientTupleKeyWithoutCondition.java
src/main/java/dev/openfga/sdk/api/client/model/ClientWriteAssertionsResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientWriteAuthorizationModelResponse.java
src/main/java/dev/openfga/sdk/api/client/model/ClientWriteRequest.java
src/main/java/dev/openfga/sdk/api/client/model/ClientWriteResponse.java
src/main/java/dev/openfga/sdk/api/configuration/AdditionalHeadersSupplier.java
src/main/java/dev/openfga/sdk/api/configuration/ApiToken.java
src/main/java/dev/openfga/sdk/api/configuration/BaseConfiguration.java
src/main/java/dev/openfga/sdk/api/configuration/ClientBatchCheckOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientCheckOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientConfiguration.java
src/main/java/dev/openfga/sdk/api/configuration/ClientCreateStoreOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientCredentials.java
src/main/java/dev/openfga/sdk/api/configuration/ClientDeleteStoreOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientDeleteTuplesOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientExpandOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientGetStoreOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientListObjectsOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientListRelationsOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientListStoresOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientReadAssertionsOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientReadAuthorizationModelOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientReadAuthorizationModelsOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientReadChangesOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientReadLatestAuthorizationModelOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientReadOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientWriteAssertionsOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientWriteAuthorizationModelOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientWriteOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientWriteTuplesOptions.java
src/main/java/dev/openfga/sdk/api/configuration/Configuration.java
src/main/java/dev/openfga/sdk/api/configuration/ConfigurationOverride.java
src/main/java/dev/openfga/sdk/api/configuration/Credentials.java
src/main/java/dev/openfga/sdk/api/configuration/CredentialsMethod.java
src/main/java/dev/openfga/sdk/api/model/AbortedMessageResponse.java
src/main/java/dev/openfga/sdk/api/model/AbstractOpenApiSchema.java
src/main/java/dev/openfga/sdk/api/model/Any.java
src/main/java/dev/openfga/sdk/api/model/Assertion.java
Expand Down Expand Up @@ -231,69 +242,4 @@ src/test/java/dev/openfga/sdk/api/auth/OAuth2ClientTest.java
src/test/java/dev/openfga/sdk/api/client/OpenFgaClientTest.java
src/test/java/dev/openfga/sdk/api/configuration/ClientCredentialsTest.java
src/test/java/dev/openfga/sdk/api/configuration/ConfigurationTest.java
src/test/java/dev/openfga/sdk/api/model/AnyTest.java
src/test/java/dev/openfga/sdk/api/model/AssertionTest.java
src/test/java/dev/openfga/sdk/api/model/AssertionTupleKeyTest.java
src/test/java/dev/openfga/sdk/api/model/AuthorizationModelTest.java
src/test/java/dev/openfga/sdk/api/model/CheckRequestTest.java
src/test/java/dev/openfga/sdk/api/model/CheckRequestTupleKeyTest.java
src/test/java/dev/openfga/sdk/api/model/CheckResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ComputedTest.java
src/test/java/dev/openfga/sdk/api/model/ConditionParamTypeRefTest.java
src/test/java/dev/openfga/sdk/api/model/ConditionTest.java
src/test/java/dev/openfga/sdk/api/model/ContextualTupleKeysTest.java
src/test/java/dev/openfga/sdk/api/model/CreateStoreRequestTest.java
src/test/java/dev/openfga/sdk/api/model/CreateStoreResponseTest.java
src/test/java/dev/openfga/sdk/api/model/DifferenceTest.java
src/test/java/dev/openfga/sdk/api/model/ErrorCodeTest.java
src/test/java/dev/openfga/sdk/api/model/ExpandRequestTest.java
src/test/java/dev/openfga/sdk/api/model/ExpandRequestTupleKeyTest.java
src/test/java/dev/openfga/sdk/api/model/ExpandResponseTest.java
src/test/java/dev/openfga/sdk/api/model/GetStoreResponseTest.java
src/test/java/dev/openfga/sdk/api/model/InternalErrorCodeTest.java
src/test/java/dev/openfga/sdk/api/model/InternalErrorMessageResponseTest.java
src/test/java/dev/openfga/sdk/api/model/LeafTest.java
src/test/java/dev/openfga/sdk/api/model/ListObjectsRequestTest.java
src/test/java/dev/openfga/sdk/api/model/ListObjectsResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ListStoresResponseTest.java
src/test/java/dev/openfga/sdk/api/model/MetadataTest.java
src/test/java/dev/openfga/sdk/api/model/NodeTest.java
src/test/java/dev/openfga/sdk/api/model/NodesTest.java
src/test/java/dev/openfga/sdk/api/model/NotFoundErrorCodeTest.java
src/test/java/dev/openfga/sdk/api/model/NullValueTest.java
src/test/java/dev/openfga/sdk/api/model/ObjectRelationTest.java
src/test/java/dev/openfga/sdk/api/model/PathUnknownErrorMessageResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ReadAssertionsResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ReadAuthorizationModelResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ReadAuthorizationModelsResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ReadChangesResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ReadRequestTest.java
src/test/java/dev/openfga/sdk/api/model/ReadRequestTupleKeyTest.java
src/test/java/dev/openfga/sdk/api/model/ReadResponseTest.java
src/test/java/dev/openfga/sdk/api/model/RelationMetadataTest.java
src/test/java/dev/openfga/sdk/api/model/RelationReferenceTest.java
src/test/java/dev/openfga/sdk/api/model/RelationshipConditionTest.java
src/test/java/dev/openfga/sdk/api/model/StatusTest.java
src/test/java/dev/openfga/sdk/api/model/StoreTest.java
src/test/java/dev/openfga/sdk/api/model/TupleChangeTest.java
src/test/java/dev/openfga/sdk/api/model/TupleKeyTest.java
src/test/java/dev/openfga/sdk/api/model/TupleKeyWithoutConditionTest.java
src/test/java/dev/openfga/sdk/api/model/TupleOperationTest.java
src/test/java/dev/openfga/sdk/api/model/TupleTest.java
src/test/java/dev/openfga/sdk/api/model/TupleToUsersetTest.java
src/test/java/dev/openfga/sdk/api/model/TypeDefinitionTest.java
src/test/java/dev/openfga/sdk/api/model/TypeNameTest.java
src/test/java/dev/openfga/sdk/api/model/UsersTest.java
src/test/java/dev/openfga/sdk/api/model/UsersetTest.java
src/test/java/dev/openfga/sdk/api/model/UsersetTreeDifferenceTest.java
src/test/java/dev/openfga/sdk/api/model/UsersetTreeTest.java
src/test/java/dev/openfga/sdk/api/model/UsersetTreeTupleToUsersetTest.java
src/test/java/dev/openfga/sdk/api/model/UsersetsTest.java
src/test/java/dev/openfga/sdk/api/model/ValidationErrorMessageResponseTest.java
src/test/java/dev/openfga/sdk/api/model/WriteAssertionsRequestTest.java
src/test/java/dev/openfga/sdk/api/model/WriteAuthorizationModelRequestTest.java
src/test/java/dev/openfga/sdk/api/model/WriteAuthorizationModelResponseTest.java
src/test/java/dev/openfga/sdk/api/model/WriteRequestDeletesTest.java
src/test/java/dev/openfga/sdk/api/model/WriteRequestTest.java
src/test/java/dev/openfga/sdk/api/model/WriteRequestWritesTest.java
src/test/java/dev/openfga/sdk/util/StringUtilTest.java
Loading

0 comments on commit 6614bf1

Please sign in to comment.