From f58c206566cca4bbbcd74f3a445a8d3682b70699 Mon Sep 17 00:00:00 2001 From: SoulPancake Date: Wed, 3 Jun 2026 13:49:22 +0530 Subject: [PATCH 1/2] chore: reverse sync java sdk with generator --- README.md | 87 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 3b193303..936e313d 100644 --- a/README.md +++ b/README.md @@ -18,42 +18,42 @@ This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the - [Resources](#resources) - [Installation](#installation) - [Getting Started](#getting-started) - - [Initializing the API Client](#initializing-the-api-client) - - [Custom Headers](#custom-headers) - - [Get your Store ID](#get-your-store-id) - - [Calling the API](#calling-the-api) - - [Stores](#stores) - - [List All Stores](#list-stores) - - [Create a Store](#create-store) - - [Get a Store](#get-store) - - [Delete a Store](#delete-store) - - [Authorization Models](#authorization-models) - - [Read Authorization Models](#read-authorization-models) - - [Write Authorization Model](#write-authorization-model) - - [Read a Single Authorization Model](#read-a-single-authorization-model) - - [Read the Latest Authorization Model](#read-the-latest-authorization-model) - - [Relationship Tuples](#relationship-tuples) - - [Read Relationship Tuple Changes (Watch)](#read-relationship-tuple-changes-watch) - - [Read Relationship Tuples](#read-relationship-tuples) - - [Write (Create and Delete) Relationship Tuples](#write-create-and-delete-relationship-tuples) - - [Relationship Queries](#relationship-queries) - - [Check](#check) - - [Batch Check](#batch-check) - - [Expand](#expand) - - [List Objects](#list-objects) - - [List Relations](#list-relations) - - [List Users](#list-users) - - [Assertions](#assertions) - - [Read Assertions](#read-assertions) - - [Write Assertions](#write-assertions) - - [Calling Other Endpoints](#calling-other-endpoints) - - [Retries](#retries) - - [API Endpoints](#api-endpoints) - - [Models](#models) - - [OpenTelemetry](#opentelemetry) + - [Initializing the API Client](#initializing-the-api-client) + - [Custom Headers](#custom-headers) + - [Get your Store ID](#get-your-store-id) + - [Calling the API](#calling-the-api) + - [Stores](#stores) + - [List All Stores](#list-stores) + - [Create a Store](#create-store) + - [Get a Store](#get-store) + - [Delete a Store](#delete-store) + - [Authorization Models](#authorization-models) + - [Read Authorization Models](#read-authorization-models) + - [Write Authorization Model](#write-authorization-model) + - [Read a Single Authorization Model](#read-a-single-authorization-model) + - [Read the Latest Authorization Model](#read-the-latest-authorization-model) + - [Relationship Tuples](#relationship-tuples) + - [Read Relationship Tuple Changes (Watch)](#read-relationship-tuple-changes-watch) + - [Read Relationship Tuples](#read-relationship-tuples) + - [Write (Create and Delete) Relationship Tuples](#write-create-and-delete-relationship-tuples) + - [Relationship Queries](#relationship-queries) + - [Check](#check) + - [Batch Check](#batch-check) + - [Expand](#expand) + - [List Objects](#list-objects) + - [List Relations](#list-relations) + - [List Users](#list-users) + - [Assertions](#assertions) + - [Read Assertions](#read-assertions) + - [Write Assertions](#write-assertions) + - [Retries](#retries) + - [Calling Other Endpoints](#calling-other-endpoints) + - [API Endpoints](#api-endpoints) + - [Models](#models) + - [OpenTelemetry](#opentelemetry) - [Contributing](#contributing) - - [Issues](#issues) - - [Pull Requests](#pull-requests) + - [Issues](#issues) + - [Pull Requests](#pull-requests) - [License](#license) ## About @@ -67,7 +67,7 @@ OpenFGA is designed to make it easy for application builders to model their perm - [OpenFGA Documentation](https://openfga.dev/docs) - [OpenFGA API Documentation](https://openfga.dev/api/service) -- [X](https://x.com/openfga) + - [X](https://x.com/openfga) - [OpenFGA Community](https://openfga.dev/community) - [Zanzibar Academy](https://zanzibar.academy) - [Google's Zanzibar Paper (2019)](https://research.google/pubs/pub48190/) @@ -663,12 +663,12 @@ Write conflict handling can be controlled using the `onDuplicate` option for wri > Note: this requires OpenFGA [v1.10.0](https://github.com/openfga/openfga/releases/tag/v1.10.0) or later. - `onDuplicate`: Controls behavior when attempting to create a tuple that already exists - - `WriteRequestWrites.OnDuplicateEnum.ERROR` (default): Return an error - - `WriteRequestWrites.OnDuplicateEnum.IGNORE`: Skip the duplicate tuple and continue - + - `WriteRequestWrites.OnDuplicateEnum.ERROR` (default): Return an error + - `WriteRequestWrites.OnDuplicateEnum.IGNORE`: Skip the duplicate tuple and continue + - `onMissing`: Controls behavior when attempting to delete a tuple that doesn't exist - - `WriteRequestDeletes.OnMissingEnum.ERROR` (default): Return an error - - `WriteRequestDeletes.OnMissingEnum.IGNORE`: Skip the missing tuple and continue + - `WriteRequestDeletes.OnMissingEnum.ERROR` (default): Return an error + - `WriteRequestDeletes.OnMissingEnum.IGNORE`: Skip the missing tuple and continue **Using conflict options with the `write()` method:** @@ -863,7 +863,7 @@ response.getResult() = [{ */ ``` -If you are using an OpenFGA version less than 1.8.0, you can use `clientBatchCheck`, +If you are using an OpenFGA version less than 1.8.0, you can use `clientBatchCheck`, which calls `check` in parallel. It will return `allowed: false` if it encounters an error, and will return the error in the body. If 429s are encountered, the underlying check will retry up to 3 times. For 5xx errors, all requests will retry with delay calculation using `Retry-After` headers when provided or exponential backoff as fallback. @@ -1238,7 +1238,7 @@ System.out.println("Headers: " + rawResponse.getHeaders()); class CustomEndpointResponse { private boolean allowed; private String reason; - + public boolean isAllowed() { return allowed; } public void setAllowed(boolean allowed) { this.allowed = allowed; } public String getReason() { return reason; } @@ -1287,6 +1287,7 @@ For a complete working example, see [examples/api-executor](examples/api-executo See [docs/ApiExecutor.md](docs/ApiExecutor.md) for complete API reference and examples for both `ApiExecutor` and `StreamingApiExecutor`. + ### API Endpoints | Method | HTTP request | Description | From de9da9eb098670dee6908f312abd257cfd69265d Mon Sep 17 00:00:00 2001 From: SoulPancake Date: Wed, 3 Jun 2026 13:55:04 +0530 Subject: [PATCH 2/2] fix: whitespace changes --- README.md | 84 +++++++++++++++++++++++++++---------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 936e313d..ae027fe8 100644 --- a/README.md +++ b/README.md @@ -18,42 +18,42 @@ This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the - [Resources](#resources) - [Installation](#installation) - [Getting Started](#getting-started) - - [Initializing the API Client](#initializing-the-api-client) - - [Custom Headers](#custom-headers) - - [Get your Store ID](#get-your-store-id) - - [Calling the API](#calling-the-api) - - [Stores](#stores) - - [List All Stores](#list-stores) - - [Create a Store](#create-store) - - [Get a Store](#get-store) - - [Delete a Store](#delete-store) - - [Authorization Models](#authorization-models) - - [Read Authorization Models](#read-authorization-models) - - [Write Authorization Model](#write-authorization-model) - - [Read a Single Authorization Model](#read-a-single-authorization-model) - - [Read the Latest Authorization Model](#read-the-latest-authorization-model) - - [Relationship Tuples](#relationship-tuples) - - [Read Relationship Tuple Changes (Watch)](#read-relationship-tuple-changes-watch) - - [Read Relationship Tuples](#read-relationship-tuples) - - [Write (Create and Delete) Relationship Tuples](#write-create-and-delete-relationship-tuples) - - [Relationship Queries](#relationship-queries) - - [Check](#check) - - [Batch Check](#batch-check) - - [Expand](#expand) - - [List Objects](#list-objects) - - [List Relations](#list-relations) - - [List Users](#list-users) - - [Assertions](#assertions) - - [Read Assertions](#read-assertions) - - [Write Assertions](#write-assertions) - - [Retries](#retries) - - [Calling Other Endpoints](#calling-other-endpoints) - - [API Endpoints](#api-endpoints) - - [Models](#models) - - [OpenTelemetry](#opentelemetry) + - [Initializing the API Client](#initializing-the-api-client) + - [Custom Headers](#custom-headers) + - [Get your Store ID](#get-your-store-id) + - [Calling the API](#calling-the-api) + - [Stores](#stores) + - [List All Stores](#list-stores) + - [Create a Store](#create-store) + - [Get a Store](#get-store) + - [Delete a Store](#delete-store) + - [Authorization Models](#authorization-models) + - [Read Authorization Models](#read-authorization-models) + - [Write Authorization Model](#write-authorization-model) + - [Read a Single Authorization Model](#read-a-single-authorization-model) + - [Read the Latest Authorization Model](#read-the-latest-authorization-model) + - [Relationship Tuples](#relationship-tuples) + - [Read Relationship Tuple Changes (Watch)](#read-relationship-tuple-changes-watch) + - [Read Relationship Tuples](#read-relationship-tuples) + - [Write (Create and Delete) Relationship Tuples](#write-create-and-delete-relationship-tuples) + - [Relationship Queries](#relationship-queries) + - [Check](#check) + - [Batch Check](#batch-check) + - [Expand](#expand) + - [List Objects](#list-objects) + - [List Relations](#list-relations) + - [List Users](#list-users) + - [Assertions](#assertions) + - [Read Assertions](#read-assertions) + - [Write Assertions](#write-assertions) + - [Retries](#retries) + - [Calling Other Endpoints](#calling-other-endpoints) + - [API Endpoints](#api-endpoints) + - [Models](#models) + - [OpenTelemetry](#opentelemetry) - [Contributing](#contributing) - - [Issues](#issues) - - [Pull Requests](#pull-requests) + - [Issues](#issues) + - [Pull Requests](#pull-requests) - [License](#license) ## About @@ -67,7 +67,7 @@ OpenFGA is designed to make it easy for application builders to model their perm - [OpenFGA Documentation](https://openfga.dev/docs) - [OpenFGA API Documentation](https://openfga.dev/api/service) - - [X](https://x.com/openfga) +- [X](https://x.com/openfga) - [OpenFGA Community](https://openfga.dev/community) - [Zanzibar Academy](https://zanzibar.academy) - [Google's Zanzibar Paper (2019)](https://research.google/pubs/pub48190/) @@ -663,12 +663,12 @@ Write conflict handling can be controlled using the `onDuplicate` option for wri > Note: this requires OpenFGA [v1.10.0](https://github.com/openfga/openfga/releases/tag/v1.10.0) or later. - `onDuplicate`: Controls behavior when attempting to create a tuple that already exists - - `WriteRequestWrites.OnDuplicateEnum.ERROR` (default): Return an error - - `WriteRequestWrites.OnDuplicateEnum.IGNORE`: Skip the duplicate tuple and continue - + - `WriteRequestWrites.OnDuplicateEnum.ERROR` (default): Return an error + - `WriteRequestWrites.OnDuplicateEnum.IGNORE`: Skip the duplicate tuple and continue + - `onMissing`: Controls behavior when attempting to delete a tuple that doesn't exist - - `WriteRequestDeletes.OnMissingEnum.ERROR` (default): Return an error - - `WriteRequestDeletes.OnMissingEnum.IGNORE`: Skip the missing tuple and continue + - `WriteRequestDeletes.OnMissingEnum.ERROR` (default): Return an error + - `WriteRequestDeletes.OnMissingEnum.IGNORE`: Skip the missing tuple and continue **Using conflict options with the `write()` method:** @@ -863,7 +863,7 @@ response.getResult() = [{ */ ``` -If you are using an OpenFGA version less than 1.8.0, you can use `clientBatchCheck`, +If you are using an OpenFGA version less than 1.8.0, you can use `clientBatchCheck`, which calls `check` in parallel. It will return `allowed: false` if it encounters an error, and will return the error in the body. If 429s are encountered, the underlying check will retry up to 3 times. For 5xx errors, all requests will retry with delay calculation using `Retry-After` headers when provided or exponential backoff as fallback.