Skip to content

Commit

Permalink
chore(client): move model types to .model package
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Dec 14, 2023
1 parent 61c8ca3 commit cc9f9df
Show file tree
Hide file tree
Showing 33 changed files with 74 additions and 54 deletions.
54 changes: 27 additions & 27 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -96,35 +96,35 @@ 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/ClientReadChangesRequest.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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import static java.util.UUID.randomUUID;

import dev.openfga.sdk.api.*;
import dev.openfga.sdk.api.client.model.*;
import dev.openfga.sdk.api.configuration.*;
import dev.openfga.sdk.api.model.*;
import dev.openfga.sdk.errors.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.model.CheckResponse;
import dev.openfga.sdk.errors.FgaError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.model.CheckRequestTupleKey;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.CheckResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.CreateStoreResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import java.util.List;
import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

public class ClientExpandRequest {
private String relation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.ExpandResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.GetStoreResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.ListObjectsResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import java.util.List;
import java.util.stream.Collectors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.ListStoresResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.ReadAssertionsResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.ReadAuthorizationModelResponse;
import dev.openfga.sdk.api.model.ReadAuthorizationModelsResponse;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.ReadAuthorizationModelsResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

public class ClientReadChangesRequest {
private String type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.ReadChangesResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

public class ClientReadRequest {
private String user;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.ReadResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.model.RelationshipCondition;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.model.ContextualTupleKeys;
import dev.openfga.sdk.api.model.TupleKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.model.TupleKeyWithoutCondition;
import dev.openfga.sdk.api.model.WriteRequestDeletes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import java.util.List;
import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import dev.openfga.sdk.api.model.WriteAuthorizationModelResponse;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.client.model;

import dev.openfga.sdk.api.client.ApiResponse;
import java.util.List;
import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import dev.openfga.sdk.api.client.model.*;
import dev.openfga.sdk.api.configuration.*;
import dev.openfga.sdk.api.model.*;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import dev.openfga.sdk.api.client.model.*;
import dev.openfga.sdk.api.configuration.*;
import dev.openfga.sdk.api.model.*;
import java.io.IOException;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/dev/openfga/sdk/api/OpenFgaApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.pgssoft.httpclient.HttpClientMock;
import dev.openfga.sdk.api.client.*;
import dev.openfga.sdk.api.client.model.*;
import dev.openfga.sdk.api.configuration.*;
import dev.openfga.sdk.api.model.*;
import dev.openfga.sdk.errors.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.fasterxml.jackson.databind.ObjectMapper;
import com.pgssoft.httpclient.HttpClientMock;
import dev.openfga.sdk.api.client.model.*;
import dev.openfga.sdk.api.configuration.*;
import dev.openfga.sdk.api.model.*;
import dev.openfga.sdk.errors.*;
Expand Down

0 comments on commit cc9f9df

Please sign in to comment.