Skip to content

Commit 79bb07a

Browse files
authored
Merge pull request #81 from openfga/release/v0.4.2
release: v0.4.2
2 parents c6f9926 + 152417f commit 79bb07a

File tree

169 files changed

+416
-183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+416
-183
lines changed

.openapi-generator/FILES

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ docs/TupleToUserset.md
7777
docs/TypeDefinition.md
7878
docs/TypeName.md
7979
docs/TypedWildcard.md
80+
docs/UnauthenticatedResponse.md
8081
docs/UnprocessableContentErrorCode.md
8182
docs/UnprocessableContentMessageResponse.md
8283
docs/User.md
@@ -244,6 +245,7 @@ src/main/java/dev/openfga/sdk/api/model/TupleToUserset.java
244245
src/main/java/dev/openfga/sdk/api/model/TypeDefinition.java
245246
src/main/java/dev/openfga/sdk/api/model/TypeName.java
246247
src/main/java/dev/openfga/sdk/api/model/TypedWildcard.java
248+
src/main/java/dev/openfga/sdk/api/model/UnauthenticatedResponse.java
247249
src/main/java/dev/openfga/sdk/api/model/UnprocessableContentErrorCode.java
248250
src/main/java/dev/openfga/sdk/api/model/UnprocessableContentMessageResponse.java
249251
src/main/java/dev/openfga/sdk/api/model/User.java

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## v0.4.2
4+
5+
### [0.4.2](https://github.com/openfga/java-sdk/compare/v0.4.1...v0.4.2) (2024-05-02)
6+
7+
- feat: support the [ListUsers](https://github.com/openfga/rfcs/blob/main/20231214-listUsers-api.md) endpoint (#80)
8+
- fix: improve check for validity of token (#76)
9+
310
## v0.4.1
411

512
### [0.4.1](https://github.com/openfga/java-sdk/compare/v0.4.0...v0.4.1) (2024-04-09)

README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ It can be used with the following:
7676
* Gradle (Groovy)
7777

7878
```groovy
79-
implementation 'dev.openfga:openfga-sdk:0.4.1'
79+
implementation 'dev.openfga:openfga-sdk:0.4.2'
8080
```
8181

8282
* Gradle (Kotlin)
8383

8484
```kotlin
85-
implementation("dev.openfga:openfga-sdk:0.4.1")
85+
implementation("dev.openfga:openfga-sdk:0.4.2")
8686
```
8787

8888
* Apache Maven
@@ -91,26 +91,26 @@ implementation("dev.openfga:openfga-sdk:0.4.1")
9191
<dependency>
9292
<groupId>dev.openfga</groupId>
9393
<artifactId>openfga-sdk</artifactId>
94-
<version>0.4.1</version>
94+
<version>0.4.2</version>
9595
</dependency>
9696
```
9797

9898
* Ivy
9999

100100
```xml
101-
<dependency org="dev.openfga" name="openfga-sdk" rev="0.4.1"/>
101+
<dependency org="dev.openfga" name="openfga-sdk" rev="0.4.2"/>
102102
```
103103

104104
* SBT
105105

106106
```scala
107-
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.4.1"
107+
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.4.2"
108108
```
109109

110110
* Leiningen
111111

112112
```edn
113-
[dev.openfga/openfga-sdk "0.4.1"]
113+
[dev.openfga/openfga-sdk "0.4.2"]
114114
```
115115

116116

@@ -888,7 +888,7 @@ public class Example {
888888
| [**getStore**](docs/OpenFgaApi.md#getstore) | **GET** /stores/{store_id} | Get a store |
889889
| [**listObjects**](docs/OpenFgaApi.md#listobjects) | **POST** /stores/{store_id}/list-objects | List all objects of the given type that the user has a relation with |
890890
| [**listStores**](docs/OpenFgaApi.md#liststores) | **GET** /stores | List all stores |
891-
| [**listUsers**](docs/OpenFgaApi.md#listusers) | **POST** /stores/{store_id}/list-users | List the users matching the provided filter who have a certain relation to a particular type. |
891+
| [**listUsers**](docs/OpenFgaApi.md#listusers) | **POST** /stores/{store_id}/list-users | [EXPERIMENTAL] List the users matching the provided filter who have a certain relation to a particular type. |
892892
| [**read**](docs/OpenFgaApi.md#read) | **POST** /stores/{store_id}/read | Get tuples from the store that matches a query, without following userset rewrite rules |
893893
| [**readAssertions**](docs/OpenFgaApi.md#readassertions) | **GET** /stores/{store_id}/assertions/{authorization_model_id} | Read assertions for an authorization model ID |
894894
| [**readAuthorizationModel**](docs/OpenFgaApi.md#readauthorizationmodel) | **GET** /stores/{store_id}/authorization-models/{id} | Return a particular version of an authorization model |
@@ -1023,6 +1023,8 @@ public class Example {
10231023

10241024
- [TypedWildcard](https://github.com/openfga/java-sdk/blob/main/docs/TypedWildcard.md)
10251025

1026+
- [UnauthenticatedResponse](https://github.com/openfga/java-sdk/blob/main/docs/UnauthenticatedResponse.md)
1027+
10261028
- [UnprocessableContentErrorCode](https://github.com/openfga/java-sdk/blob/main/docs/UnprocessableContentErrorCode.md)
10271029

10281030
- [UnprocessableContentMessageResponse](https://github.com/openfga/java-sdk/blob/main/docs/UnprocessableContentMessageResponse.md)

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ plugins {
1919
apply from: 'publish.gradle'
2020

2121
group = 'dev.openfga'
22-
version = '0.4.1'
22+
version = '0.4.2'
2323

2424
repositories {
2525
mavenCentral()

docs/OpenFgaApi.md

+38-6
Large diffs are not rendered by default.

docs/UnauthenticatedResponse.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# UnauthenticatedResponse
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**code** | **ErrorCode** | | [optional] |
11+
|**message** | **String** | | [optional] |
12+
13+
14+

publish.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ publishing {
66
pom {
77
group = 'dev.openfga'
88
name = 'openfga-sdk'
9-
version = '0.4.1'
9+
version = '0.4.2'
1010
description = 'This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).'
1111
url = 'https://openfga.dev'
1212
licenses {

src/main/java/dev/openfga/sdk/api/OpenFgaApi.java

+5-5
Large diffs are not rendered by default.

src/main/java/dev/openfga/sdk/api/auth/AccessToken.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/auth/CredentialsFlowRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/auth/CredentialsFlowResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/auth/OAuth2Client.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/ApiClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/ApiResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/ClientAssertion.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/OpenFgaClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientBatchCheckResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientCheckRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientCheckResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientCreateStoreResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientDeleteStoreResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientExpandRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientExpandResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientGetStoreResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientListObjectsRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientListObjectsResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientListRelationsRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientListRelationsResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientListStoresResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientListUsersRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientListUsersResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientReadAssertionsResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientReadAuthorizationModelResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientReadAuthorizationModelsResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientReadChangesRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientReadChangesResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientReadRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/dev/openfga/sdk/api/client/model/ClientReadResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OpenFGA
33
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
44
*
5-
* The version of the OpenAPI document: 0.1
5+
* The version of the OpenAPI document: 1.x
66
* Contact: community@openfga.dev
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)