diff --git a/build.gradle b/build.gradle index 464cf27..759fb3b 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ plugins { } group = 'co.permify' -version = '1.4.4' +version = '1.5.4' repositories { mavenCentral() diff --git a/docs/BulkCheckBody.md b/docs/BulkCheckBody.md new file mode 100644 index 0000000..d023f38 --- /dev/null +++ b/docs/BulkCheckBody.md @@ -0,0 +1,17 @@ + + +# BulkCheckBody + +PermissionBulkCheckRequest is the request message for the BulkCheck method in the Permission service. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metadata** | [**PermissionCheckRequestMetadata**](PermissionCheckRequestMetadata.md) | | [optional] | +|**items** | [**List<PermissionBulkCheckRequestItem>**](PermissionBulkCheckRequestItem.md) | List of permission check requests, maximum 100 items. | [optional] | +|**context** | [**Context**](Context.md) | | [optional] | +|**arguments** | [**List<Argument>**](Argument.md) | Additional arguments associated with this request. | [optional] | + + + diff --git a/docs/Component.md b/docs/Component.md new file mode 100644 index 0000000..f3477b2 --- /dev/null +++ b/docs/Component.md @@ -0,0 +1,15 @@ + + +# Component + +## Enum + + +* `PARSER` (value: `"COMPONENT_PARSER"`) + +* `TYPE_CHECKER` (value: `"COMPONENT_TYPE_CHECKER"`) + +* `RUNTIME` (value: `"COMPONENT_RUNTIME"`) + + + diff --git a/docs/Comprehension.md b/docs/Comprehension.md index 525f57a..5ba7290 100644 --- a/docs/Comprehension.md +++ b/docs/Comprehension.md @@ -2,13 +2,14 @@ # Comprehension -A comprehension expression applied to a list or map. Comprehensions are not part of the core syntax, but enabled with macros. A macro matches a specific call signature within a parsed AST and replaces the call with an alternate AST block. Macro expansion happens at parse time. The following macros are supported within CEL: Aggregate type macros may be applied to all elements in a list or all keys in a map: * `all`, `exists`, `exists_one` - test a predicate expression against the inputs and return `true` if the predicate is satisfied for all, any, or only one value `list.all(x, x < 10)`. * `filter` - test a predicate expression against the inputs and return the subset of elements which satisfy the predicate: `payments.filter(p, p > 1000)`. * `map` - apply an expression to all elements in the input and return the output aggregate type: `[1, 2, 3].map(i, i * i)`. The `has(m.x)` macro tests whether the property `x` is present in struct `m`. The semantics of this macro depend on the type of `m`. For proto2 messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the macro tests whether the property is set to its default. For map and struct types, the macro tests whether the property `x` is defined on `m`. +A comprehension expression applied to a list or map. Comprehensions are not part of the core syntax, but enabled with macros. A macro matches a specific call signature within a parsed AST and replaces the call with an alternate AST block. Macro expansion happens at parse time. The following macros are supported within CEL: Aggregate type macros may be applied to all elements in a list or all keys in a map: * `all`, `exists`, `exists_one` - test a predicate expression against the inputs and return `true` if the predicate is satisfied for all, any, or only one value `list.all(x, x < 10)`. * `filter` - test a predicate expression against the inputs and return the subset of elements which satisfy the predicate: `payments.filter(p, p > 1000)`. * `map` - apply an expression to all elements in the input and return the output aggregate type: `[1, 2, 3].map(i, i * i)`. The `has(m.x)` macro tests whether the property `x` is present in struct `m`. The semantics of this macro depend on the type of `m`. For proto2 messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the macro tests whether the property is set to its default. For map and struct types, the macro tests whether the property `x` is defined on `m`. Comprehensions for the standard environment macros evaluation can be best visualized as the following pseudocode: ``` let `accu_var` = `accu_init` for (let `iter_var` in `iter_range`) { if (!`loop_condition`) { break } `accu_var` = `loop_step` } return `result` ``` Comprehensions for the optional V2 macros which support map-to-map translation differ slightly from the standard environment macros in that they expose both the key or index in addition to the value for each list or map entry: ``` let `accu_var` = `accu_init` for (let `iter_var`, `iter_var2` in `iter_range`) { if (!`loop_condition`) { break } `accu_var` = `loop_step` } return `result` ``` ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**iterVar** | **String** | The name of the iteration variable. | [optional] | +|**iterVar** | **String** | The name of the first iteration variable. When the iter_range is a list, this variable is the list element. When the iter_range is a map, this variable is the map entry key. | [optional] | +|**iterVar2** | **String** | The name of the second iteration variable, empty if not set. When the iter_range is a list, this variable is the integer index. When the iter_range is a map, this variable is the map entry value. This field is only set for comprehension v2 macros. | [optional] | |**iterRange** | [**Expr**](Expr.md) | | [optional] | |**accuVar** | **String** | The name of the variable used for accumulation of the result. | [optional] | |**accuInit** | [**Expr**](Expr.md) | | [optional] | diff --git a/docs/Extension.md b/docs/Extension.md new file mode 100644 index 0000000..efb6a2d --- /dev/null +++ b/docs/Extension.md @@ -0,0 +1,16 @@ + + +# Extension + +An extension that was requested for the source expression. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] | +|**affectedComponents** | **List<Component>** | If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated. | [optional] | +|**version** | [**Version**](Version.md) | | [optional] | + + + diff --git a/docs/PermissionApi.md b/docs/PermissionApi.md index d9551a4..7c9318e 100644 --- a/docs/PermissionApi.md +++ b/docs/PermissionApi.md @@ -4,6 +4,8 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| +| [**permissionsBulkCheck**](PermissionApi.md#permissionsBulkCheck) | **POST** /v1/tenants/{tenant_id}/permissions/bulk-check | bulk check api | +| [**permissionsBulkCheckWithHttpInfo**](PermissionApi.md#permissionsBulkCheckWithHttpInfo) | **POST** /v1/tenants/{tenant_id}/permissions/bulk-check | bulk check api | | [**permissionsCheck**](PermissionApi.md#permissionsCheck) | **POST** /v1/tenants/{tenant_id}/permissions/check | check api | | [**permissionsCheckWithHttpInfo**](PermissionApi.md#permissionsCheckWithHttpInfo) | **POST** /v1/tenants/{tenant_id}/permissions/check | check api | | [**permissionsExpand**](PermissionApi.md#permissionsExpand) | **POST** /v1/tenants/{tenant_id}/permissions/expand | expand api | @@ -19,6 +21,146 @@ All URIs are relative to *http://localhost* +## permissionsBulkCheck + +> PermissionBulkCheckResponse permissionsBulkCheck(tenantId, body) + +bulk check api + +Check multiple permissions in a single request. Maximum 100 requests allowed. + +### Example + +```java +// Import classes: +import co.permify.sdk.client.ApiClient; +import co.permify.sdk.client.ApiException; +import co.permify.sdk.client.Configuration; +import co.permify.sdk.client.models.*; +import co.permify.sdk.api.PermissionApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + PermissionApi apiInstance = new PermissionApi(defaultClient); + String tenantId = "tenantId_example"; // String | Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant t1 for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. + BulkCheckBody body = new BulkCheckBody(); // BulkCheckBody | + try { + PermissionBulkCheckResponse result = apiInstance.permissionsBulkCheck(tenantId, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PermissionApi#permissionsBulkCheck"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. | | +| **body** | [**BulkCheckBody**](BulkCheckBody.md)| | | + +### Return type + +[**PermissionBulkCheckResponse**](PermissionBulkCheckResponse.md) + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | A successful response. | - | +| **0** | An unexpected error response. | - | + +## permissionsBulkCheckWithHttpInfo + +> ApiResponse permissionsBulkCheck permissionsBulkCheckWithHttpInfo(tenantId, body) + +bulk check api + +Check multiple permissions in a single request. Maximum 100 requests allowed. + +### Example + +```java +// Import classes: +import co.permify.sdk.client.ApiClient; +import co.permify.sdk.client.ApiException; +import co.permify.sdk.client.ApiResponse; +import co.permify.sdk.client.Configuration; +import co.permify.sdk.client.models.*; +import co.permify.sdk.api.PermissionApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + PermissionApi apiInstance = new PermissionApi(defaultClient); + String tenantId = "tenantId_example"; // String | Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant t1 for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. + BulkCheckBody body = new BulkCheckBody(); // BulkCheckBody | + try { + ApiResponse response = apiInstance.permissionsBulkCheckWithHttpInfo(tenantId, body); + System.out.println("Status code: " + response.getStatusCode()); + System.out.println("Response headers: " + response.getHeaders()); + System.out.println("Response body: " + response.getData()); + } catch (ApiException e) { + System.err.println("Exception when calling PermissionApi#permissionsBulkCheck"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. | | +| **body** | [**BulkCheckBody**](BulkCheckBody.md)| | | + +### Return type + +ApiResponse<[**PermissionBulkCheckResponse**](PermissionBulkCheckResponse.md)> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | A successful response. | - | +| **0** | An unexpected error response. | - | + + ## permissionsCheck > PermissionCheckResponse permissionsCheck(tenantId, body) diff --git a/docs/PermissionBulkCheckRequestItem.md b/docs/PermissionBulkCheckRequestItem.md new file mode 100644 index 0000000..1dc3356 --- /dev/null +++ b/docs/PermissionBulkCheckRequestItem.md @@ -0,0 +1,15 @@ + + +# PermissionBulkCheckRequestItem + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**entity** | [**Entity**](Entity.md) | | [optional] | +|**permission** | **String** | The action the user wants to perform on the resource | [optional] | +|**subject** | [**Subject**](Subject.md) | | [optional] | + + + diff --git a/docs/PermissionBulkCheckResponse.md b/docs/PermissionBulkCheckResponse.md new file mode 100644 index 0000000..b116fe1 --- /dev/null +++ b/docs/PermissionBulkCheckResponse.md @@ -0,0 +1,14 @@ + + +# PermissionBulkCheckResponse + +PermissionBulkCheckResponse is the response message for the BulkCheck method in the Permission service. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**results** | [**List<PermissionCheckResponse>**](PermissionCheckResponse.md) | List of permission check responses corresponding to each request. | [optional] | + + + diff --git a/docs/SourceInfo.md b/docs/SourceInfo.md index 1441340..b8713f1 100644 --- a/docs/SourceInfo.md +++ b/docs/SourceInfo.md @@ -13,6 +13,7 @@ Source information collected at parse time. |**lineOffsets** | **List<Integer>** | Monotonically increasing list of code point offsets where newlines `\\n` appear. The line number of a given position is the index `i` where for a given `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The column may be derivd from `id_positions[id] - line_offsets[i]`. | [optional] | |**positions** | **Map<String, Integer>** | A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source. | [optional] | |**macroCalls** | [**Map<String, Expr>**](Expr.md) | A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced. | [optional] | +|**extensions** | [**List<Extension>**](Extension.md) | A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported. | [optional] | diff --git a/docs/Version.md b/docs/Version.md new file mode 100644 index 0000000..4ac2946 --- /dev/null +++ b/docs/Version.md @@ -0,0 +1,14 @@ + + +# Version + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**major** | **String** | Major version changes indicate different required support level from the required components. | [optional] | +|**minor** | **String** | Minor version changes must not change the observed behavior from existing implementations, but may be provided informationally. | [optional] | + + + diff --git a/generator/openapi.json b/generator/openapi.json index 6b60679..c9f5c0f 100644 --- a/generator/openapi.json +++ b/generator/openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Permify API", "description": "Permify is an open source authorization service for creating fine-grained and scalable authorization systems.", - "version": "v1.4.4", + "version": "v1.5.4", "contact": { "name": "API Support", "url": "https://github.com/Permify/permify/issues", @@ -651,6 +651,47 @@ ] } }, + "/v1/tenants/{tenant_id}/permissions/bulk-check": { + "post": { + "summary": "bulk check api", + "description": "Check multiple permissions in a single request. Maximum 100 requests allowed.", + "operationId": "permissions.bulk-check", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PermissionBulkCheckResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Status" + } + } + }, + "parameters": [ + { + "name": "tenant_id", + "description": "Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant \u003ccode\u003et1\u003c/code\u003e for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkCheckBody" + } + } + ], + "tags": [ + "Permission" + ] + } + }, "/v1/tenants/{tenant_id}/permissions/check": { "post": { "summary": "check api", @@ -1477,6 +1518,36 @@ ], "description": "Enumerates the types of attribute.\n\n - ATTRIBUTE_TYPE_BOOLEAN: A boolean attribute type.\n - ATTRIBUTE_TYPE_BOOLEAN_ARRAY: A boolean array attribute type.\n - ATTRIBUTE_TYPE_STRING: A string attribute type.\n - ATTRIBUTE_TYPE_STRING_ARRAY: A string array attribute type.\n - ATTRIBUTE_TYPE_INTEGER: An integer attribute type.\n - ATTRIBUTE_TYPE_INTEGER_ARRAY: An integer array attribute type.\n - ATTRIBUTE_TYPE_DOUBLE: A double attribute type.\n - ATTRIBUTE_TYPE_DOUBLE_ARRAY: A double array attribute type." }, + "BulkCheckBody": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/PermissionCheckRequestMetadata", + "description": "Metadata associated with this request, required." + }, + "items": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/PermissionBulkCheckRequestItem" + }, + "description": "List of permission check requests, maximum 100 items." + }, + "context": { + "$ref": "#/definitions/Context", + "description": "Contextual data that can be dynamically added to permission check requests. See details on [Contextual Data](../../operations/contextual-tuples)" + }, + "arguments": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/Argument" + }, + "description": "Additional arguments associated with this request." + } + }, + "description": "PermissionBulkCheckRequest is the request message for the BulkCheck method in the Permission service." + }, "Bundle.DeleteBody": { "type": "object", "properties": { @@ -1637,16 +1708,29 @@ }, "description": "Child represents a node in the permission tree." }, + "Component": { + "type": "string", + "enum": [ + "COMPONENT_PARSER", + "COMPONENT_TYPE_CHECKER", + "COMPONENT_RUNTIME" + ], + "description": "CEL component specifier.\n\n - COMPONENT_PARSER: Parser. Converts a CEL string to an AST.\n - COMPONENT_TYPE_CHECKER: Type checker. Checks that references in an AST are defined and types\nagree.\n - COMPONENT_RUNTIME: Runtime. Evaluates a parsed and optionally checked CEL AST against a\ncontext." + }, "Comprehension": { "type": "object", "properties": { "iterVar": { "type": "string", - "description": "The name of the iteration variable." + "description": "The name of the first iteration variable.\nWhen the iter_range is a list, this variable is the list element.\nWhen the iter_range is a map, this variable is the map entry key." + }, + "iterVar2": { + "type": "string", + "description": "The name of the second iteration variable, empty if not set.\nWhen the iter_range is a list, this variable is the integer index.\nWhen the iter_range is a map, this variable is the map entry value.\nThis field is only set for comprehension v2 macros." }, "iterRange": { "$ref": "#/definitions/Expr", - "description": "The range over which var iterates." + "description": "The range over which the comprehension iterates." }, "accuVar": { "type": "string", @@ -1658,18 +1742,18 @@ }, "loopCondition": { "$ref": "#/definitions/Expr", - "description": "An expression which can contain iter_var and accu_var.\n\nReturns false when the result has been computed and may be used as\na hint to short-circuit the remainder of the comprehension." + "description": "An expression which can contain iter_var, iter_var2, and accu_var.\n\nReturns false when the result has been computed and may be used as\na hint to short-circuit the remainder of the comprehension." }, "loopStep": { "$ref": "#/definitions/Expr", - "description": "An expression which can contain iter_var and accu_var.\n\nComputes the next value of accu_var." + "description": "An expression which can contain iter_var, iter_var2, and accu_var.\n\nComputes the next value of accu_var." }, "result": { "$ref": "#/definitions/Expr", "description": "An expression which can contain accu_var.\n\nComputes the result." } }, - "description": "A comprehension expression applied to a list or map.\n\nComprehensions are not part of the core syntax, but enabled with macros.\nA macro matches a specific call signature within a parsed AST and replaces\nthe call with an alternate AST block. Macro expansion happens at parse\ntime.\n\nThe following macros are supported within CEL:\n\nAggregate type macros may be applied to all elements in a list or all keys\nin a map:\n\n* `all`, `exists`, `exists_one` - test a predicate expression against\n the inputs and return `true` if the predicate is satisfied for all,\n any, or only one value `list.all(x, x \u003c 10)`.\n* `filter` - test a predicate expression against the inputs and return\n the subset of elements which satisfy the predicate:\n `payments.filter(p, p \u003e 1000)`.\n* `map` - apply an expression to all elements in the input and return the\n output aggregate type: `[1, 2, 3].map(i, i * i)`.\n\nThe `has(m.x)` macro tests whether the property `x` is present in struct\n`m`. The semantics of this macro depend on the type of `m`. For proto2\nmessages `has(m.x)` is defined as 'defined, but not set`. For proto3, the\nmacro tests whether the property is set to its default. For map and struct\ntypes, the macro tests whether the property `x` is defined on `m`." + "description": "A comprehension expression applied to a list or map.\n\nComprehensions are not part of the core syntax, but enabled with macros.\nA macro matches a specific call signature within a parsed AST and replaces\nthe call with an alternate AST block. Macro expansion happens at parse\ntime.\n\nThe following macros are supported within CEL:\n\nAggregate type macros may be applied to all elements in a list or all keys\nin a map:\n\n* `all`, `exists`, `exists_one` - test a predicate expression against\n the inputs and return `true` if the predicate is satisfied for all,\n any, or only one value `list.all(x, x \u003c 10)`.\n* `filter` - test a predicate expression against the inputs and return\n the subset of elements which satisfy the predicate:\n `payments.filter(p, p \u003e 1000)`.\n* `map` - apply an expression to all elements in the input and return the\n output aggregate type: `[1, 2, 3].map(i, i * i)`.\n\nThe `has(m.x)` macro tests whether the property `x` is present in struct\n`m`. The semantics of this macro depend on the type of `m`. For proto2\nmessages `has(m.x)` is defined as 'defined, but not set`. For proto3, the\nmacro tests whether the property is set to its default. For map and struct\ntypes, the macro tests whether the property `x` is defined on `m`.\n\nComprehensions for the standard environment macros evaluation can be best\nvisualized as the following pseudocode:\n\n```\nlet `accu_var` = `accu_init`\nfor (let `iter_var` in `iter_range`) {\n if (!`loop_condition`) {\n break\n }\n `accu_var` = `loop_step`\n}\nreturn `result`\n```\n\nComprehensions for the optional V2 macros which support map-to-map\ntranslation differ slightly from the standard environment macros in that\nthey expose both the key or index in addition to the value for each list\nor map entry:\n\n```\nlet `accu_var` = `accu_init`\nfor (let `iter_var`, `iter_var2` in `iter_range`) {\n if (!`loop_condition`) {\n break\n }\n `accu_var` = `loop_step`\n}\nreturn `result`\n```" }, "ComputedAttribute": { "type": "object", @@ -1736,7 +1820,7 @@ "description": "protobuf.Timestamp value.\n\nDeprecated: timestamp is no longer considered a builtin cel type." } }, - "description": "Represents a primitive literal.\n\nNamed 'Constant' here for backwards compatibility.\n\nThis is similar as the primitives supported in the well-known type\n`google.protobuf.Value`, but richer so it can represent CEL's full range of\nprimitives.\n\nLists and structs are not included as constants as these aggregate types may\ncontain [Expr][google.api.expr.v1alpha1.Expr] elements which require evaluation and are thus not constant.\n\nExamples of literals include: `\"hello\"`, `b'bytes'`, `1u`, `4.2`, `-2`,\n`true`, `null`." + "description": "Represents a primitive literal.\n\nNamed 'Constant' here for backwards compatibility.\n\nThis is similar as the primitives supported in the well-known type\n`google.protobuf.Value`, but richer so it can represent CEL's full range of\nprimitives.\n\nLists and structs are not included as constants as these aggregate types may\ncontain [Expr][google.api.expr.v1alpha1.Expr] elements which require\nevaluation and are thus not constant.\n\nExamples of literals include: `\"hello\"`, `b'bytes'`, `1u`, `4.2`, `-2`,\n`true`, `null`." }, "Context": { "type": "object", @@ -2137,7 +2221,7 @@ "description": "A comprehension expression." } }, - "description": "An abstract representation of a common expression.\n\nExpressions are abstractly represented as a collection of identifiers,\nselect statements, function calls, literals, and comprehensions. All\noperators with the exception of the '.' operator are modelled as function\ncalls. This makes it easy to represent new operators into the existing AST.\n\nAll references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at\ntype-check for an expression to be valid. A reference may either be a bare\nidentifier `name` or a qualified identifier `google.api.name`. References\nmay either refer to a value or a function declaration.\n\nFor example, the expression `google.api.name.startsWith('expr')` references\nthe declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and\nthe function declaration `startsWith`." + "description": "An abstract representation of a common expression.\n\nExpressions are abstractly represented as a collection of identifiers,\nselect statements, function calls, literals, and comprehensions. All\noperators with the exception of the '.' operator are modelled as function\ncalls. This makes it easy to represent new operators into the existing AST.\n\nAll references within expressions must resolve to a\n[Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an\nexpression to be valid. A reference may either be a bare identifier `name` or\na qualified identifier `google.api.name`. References may either refer to a\nvalue or a function declaration.\n\nFor example, the expression `google.api.name.startsWith('expr')` references\nthe declaration `google.api.name` within a\n[Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the\nfunction declaration `startsWith`." }, "Expr.Call": { "type": "object", @@ -2161,6 +2245,27 @@ }, "description": "A call expression, including calls to predefined functions and operators.\n\nFor example, `value == 10`, `size(map_value)`." }, + "Extension": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Identifier for the extension. Example: constant_folding" + }, + "affectedComponents": { + "type": "array", + "items": { + "$ref": "#/definitions/Component" + }, + "description": "If set, the listed components must understand the extension for the\nexpression to evaluate correctly.\n\nThis field has set semantics, repeated values should be deduplicated." + }, + "version": { + "$ref": "#/definitions/Version", + "description": "Version info. May be skipped if it isn't meaningful for the extension.\n(for example constant_folding might always be v0.0)." + } + }, + "description": "An extension that was requested for the source expression." + }, "FunctionType": { "type": "object", "properties": { @@ -2184,7 +2289,7 @@ "properties": { "name": { "type": "string", - "description": "Required. Holds a single, unqualified identifier, possibly preceded by a\n'.'.\n\nQualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression." + "description": "Required. Holds a single, unqualified identifier, possibly preceded by a\n'.'.\n\nQualified names are represented by the\n[Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression." } }, "description": "An identifier expression. e.g. `request`." @@ -2437,6 +2542,39 @@ }, "description": "PermissionExpandRequest is the request message for the Expand method in the Permission service." }, + "PermissionBulkCheckRequestItem": { + "type": "object", + "properties": { + "entity": { + "$ref": "#/definitions/Entity", + "example": "repository:1", + "description": "Entity on which the permission needs to be checked, required." + }, + "permission": { + "type": "string", + "description": "The action the user wants to perform on the resource" + }, + "subject": { + "$ref": "#/definitions/Subject", + "description": "Subject for which the permission needs to be checked, required." + } + }, + "title": "BULK CHECK" + }, + "PermissionBulkCheckResponse": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/PermissionCheckResponse" + }, + "description": "List of permission check responses corresponding to each request." + } + }, + "description": "PermissionBulkCheckResponse is the response message for the BulkCheck method in the Permission service." + }, "PermissionCheckRequestMetadata": { "type": "object", "properties": { @@ -3058,6 +3196,14 @@ "$ref": "#/definitions/Expr" }, "description": "A map from the parse node id where a macro replacement was made to the\ncall `Expr` that resulted in a macro expansion.\n\nFor example, `has(value.field)` is a function call that is replaced by a\n`test_only` field selection in the AST. Likewise, the call\n`list.exists(e, e \u003e 10)` translates to a comprehension expression. The key\nin the map corresponds to the expression id of the expanded macro, and the\nvalue is the call `Expr` that was replaced." + }, + "extensions": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/Extension" + }, + "description": "A list of tags for extensions that were used while parsing or type checking\nthe source expression. For example, optimizations that require special\nruntime support may be specified.\n\nThese are used to check feature support between components in separate\nimplementations. This can be used to either skip redundant work or\nreport an error if the extension is unsupported." } }, "description": "Source information collected at parse time." @@ -3316,6 +3462,22 @@ } } }, + "Version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "format": "int64", + "description": "Major version changes indicate different required support level from\nthe required components." + }, + "minor": { + "type": "string", + "format": "int64", + "description": "Minor version changes must not change the observed behavior from\nexisting implementations, but may be provided informationally." + } + }, + "title": "Version" + }, "WatchBody": { "type": "object", "properties": { diff --git a/pom.xml b/pom.xml index 2430002..f363e06 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ permify-java jar Permify Java - 1.4.4 + 1.5.4 https://github.com/Permify/permify-java Java SDK for Permify - Authorization as a Service diff --git a/src/main/java/co/permify/sdk/api/BundleApi.java b/src/main/java/co/permify/sdk/api/BundleApi.java index d48fcc8..74230be 100644 --- a/src/main/java/co/permify/sdk/api/BundleApi.java +++ b/src/main/java/co/permify/sdk/api/BundleApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/api/DataApi.java b/src/main/java/co/permify/sdk/api/DataApi.java index 0c4d181..7f94599 100644 --- a/src/main/java/co/permify/sdk/api/DataApi.java +++ b/src/main/java/co/permify/sdk/api/DataApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/api/PermissionApi.java b/src/main/java/co/permify/sdk/api/PermissionApi.java index 03da5a0..5395afa 100644 --- a/src/main/java/co/permify/sdk/api/PermissionApi.java +++ b/src/main/java/co/permify/sdk/api/PermissionApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,10 +17,12 @@ import co.permify.sdk.client.ApiResponse; import co.permify.sdk.client.Pair; +import co.permify.sdk.model.BulkCheckBody; import co.permify.sdk.model.CheckBody; import co.permify.sdk.model.LookupEntityBody; import co.permify.sdk.model.LookupEntityStreamBody; import co.permify.sdk.model.LookupSubjectBody; +import co.permify.sdk.model.PermissionBulkCheckResponse; import co.permify.sdk.model.PermissionCheckResponse; import co.permify.sdk.model.PermissionExpandBody; import co.permify.sdk.model.PermissionExpandResponse; @@ -93,6 +95,90 @@ private String formatExceptionMessage(String operationId, int statusCode, String return operationId + " call failed with: " + statusCode + " - " + body; } + /** + * bulk check api + * Check multiple permissions in a single request. Maximum 100 requests allowed. + * @param tenantId Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. (required) + * @param body (required) + * @return PermissionBulkCheckResponse + * @throws ApiException if fails to make API call + */ + public PermissionBulkCheckResponse permissionsBulkCheck(String tenantId, BulkCheckBody body) throws ApiException { + ApiResponse localVarResponse = permissionsBulkCheckWithHttpInfo(tenantId, body); + return localVarResponse.getData(); + } + + /** + * bulk check api + * Check multiple permissions in a single request. Maximum 100 requests allowed. + * @param tenantId Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. (required) + * @param body (required) + * @return ApiResponse<PermissionBulkCheckResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse permissionsBulkCheckWithHttpInfo(String tenantId, BulkCheckBody body) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = permissionsBulkCheckRequestBuilder(tenantId, body); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("permissionsBulkCheck", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder permissionsBulkCheckRequestBuilder(String tenantId, BulkCheckBody body) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException(400, "Missing the required parameter 'tenantId' when calling permissionsBulkCheck"); + } + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling permissionsBulkCheck"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/v1/tenants/{tenant_id}/permissions/bulk-check" + .replace("{tenant_id}", ApiClient.urlEncode(tenantId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/json"); + localVarRequestBuilder.header("Accept", "application/json"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * check api * diff --git a/src/main/java/co/permify/sdk/api/SchemaApi.java b/src/main/java/co/permify/sdk/api/SchemaApi.java index 2409a75..142cb99 100644 --- a/src/main/java/co/permify/sdk/api/SchemaApi.java +++ b/src/main/java/co/permify/sdk/api/SchemaApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/api/TenancyApi.java b/src/main/java/co/permify/sdk/api/TenancyApi.java index 6fbcc7b..4057997 100644 --- a/src/main/java/co/permify/sdk/api/TenancyApi.java +++ b/src/main/java/co/permify/sdk/api/TenancyApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/api/WatchApi.java b/src/main/java/co/permify/sdk/api/WatchApi.java index 5a36204..d22b79f 100644 --- a/src/main/java/co/permify/sdk/api/WatchApi.java +++ b/src/main/java/co/permify/sdk/api/WatchApi.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/client/ApiClient.java b/src/main/java/co/permify/sdk/client/ApiClient.java index 2853d0a..3b8f37d 100644 --- a/src/main/java/co/permify/sdk/client/ApiClient.java +++ b/src/main/java/co/permify/sdk/client/ApiClient.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/client/ApiException.java b/src/main/java/co/permify/sdk/client/ApiException.java index c21a53b..948f99c 100644 --- a/src/main/java/co/permify/sdk/client/ApiException.java +++ b/src/main/java/co/permify/sdk/client/ApiException.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/client/ApiResponse.java b/src/main/java/co/permify/sdk/client/ApiResponse.java index 970716d..cd72a00 100644 --- a/src/main/java/co/permify/sdk/client/ApiResponse.java +++ b/src/main/java/co/permify/sdk/client/ApiResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/client/Configuration.java b/src/main/java/co/permify/sdk/client/Configuration.java index 04e9f2f..2082f68 100644 --- a/src/main/java/co/permify/sdk/client/Configuration.java +++ b/src/main/java/co/permify/sdk/client/Configuration.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,7 +15,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "v1.4.4"; + public static final String VERSION = "v1.5.4"; private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/co/permify/sdk/client/Pair.java b/src/main/java/co/permify/sdk/client/Pair.java index 9d6812b..0d6ed91 100644 --- a/src/main/java/co/permify/sdk/client/Pair.java +++ b/src/main/java/co/permify/sdk/client/Pair.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/client/RFC3339DateFormat.java b/src/main/java/co/permify/sdk/client/RFC3339DateFormat.java index f9c4f35..25c37a2 100644 --- a/src/main/java/co/permify/sdk/client/RFC3339DateFormat.java +++ b/src/main/java/co/permify/sdk/client/RFC3339DateFormat.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/AbstractOpenApiSchema.java b/src/main/java/co/permify/sdk/model/AbstractOpenApiSchema.java index 77f6c83..c5e99cc 100644 --- a/src/main/java/co/permify/sdk/model/AbstractOpenApiSchema.java +++ b/src/main/java/co/permify/sdk/model/AbstractOpenApiSchema.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/AbstractType.java b/src/main/java/co/permify/sdk/model/AbstractType.java index 2936686..acb7fc1 100644 --- a/src/main/java/co/permify/sdk/model/AbstractType.java +++ b/src/main/java/co/permify/sdk/model/AbstractType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Any.java b/src/main/java/co/permify/sdk/model/Any.java index f2439ea..a831f00 100644 --- a/src/main/java/co/permify/sdk/model/Any.java +++ b/src/main/java/co/permify/sdk/model/Any.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Argument.java b/src/main/java/co/permify/sdk/model/Argument.java index 6b61a68..23ffc9e 100644 --- a/src/main/java/co/permify/sdk/model/Argument.java +++ b/src/main/java/co/permify/sdk/model/Argument.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Attribute.java b/src/main/java/co/permify/sdk/model/Attribute.java index 79858e2..d9e21a6 100644 --- a/src/main/java/co/permify/sdk/model/Attribute.java +++ b/src/main/java/co/permify/sdk/model/Attribute.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/AttributeDefinition.java b/src/main/java/co/permify/sdk/model/AttributeDefinition.java index b646591..8ecb70d 100644 --- a/src/main/java/co/permify/sdk/model/AttributeDefinition.java +++ b/src/main/java/co/permify/sdk/model/AttributeDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/AttributeFilter.java b/src/main/java/co/permify/sdk/model/AttributeFilter.java index 1ea5839..45f7480 100644 --- a/src/main/java/co/permify/sdk/model/AttributeFilter.java +++ b/src/main/java/co/permify/sdk/model/AttributeFilter.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/AttributeReadRequestMetadata.java b/src/main/java/co/permify/sdk/model/AttributeReadRequestMetadata.java index b0bb992..d21b79a 100644 --- a/src/main/java/co/permify/sdk/model/AttributeReadRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/AttributeReadRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/AttributeReadResponse.java b/src/main/java/co/permify/sdk/model/AttributeReadResponse.java index 7067cf0..31a6165 100644 --- a/src/main/java/co/permify/sdk/model/AttributeReadResponse.java +++ b/src/main/java/co/permify/sdk/model/AttributeReadResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/AttributeType.java b/src/main/java/co/permify/sdk/model/AttributeType.java index 4912885..d113757 100644 --- a/src/main/java/co/permify/sdk/model/AttributeType.java +++ b/src/main/java/co/permify/sdk/model/AttributeType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/BulkCheckBody.java b/src/main/java/co/permify/sdk/model/BulkCheckBody.java new file mode 100644 index 0000000..94e90d5 --- /dev/null +++ b/src/main/java/co/permify/sdk/model/BulkCheckBody.java @@ -0,0 +1,290 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import co.permify.sdk.model.Argument; +import co.permify.sdk.model.Context; +import co.permify.sdk.model.PermissionBulkCheckRequestItem; +import co.permify.sdk.model.PermissionCheckRequestMetadata; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * PermissionBulkCheckRequest is the request message for the BulkCheck method in the Permission service. + */ +@JsonPropertyOrder({ + BulkCheckBody.JSON_PROPERTY_METADATA, + BulkCheckBody.JSON_PROPERTY_ITEMS, + BulkCheckBody.JSON_PROPERTY_CONTEXT, + BulkCheckBody.JSON_PROPERTY_ARGUMENTS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BulkCheckBody { + public static final String JSON_PROPERTY_METADATA = "metadata"; + private PermissionCheckRequestMetadata metadata; + + public static final String JSON_PROPERTY_ITEMS = "items"; + private List items; + + public static final String JSON_PROPERTY_CONTEXT = "context"; + private Context context; + + public static final String JSON_PROPERTY_ARGUMENTS = "arguments"; + private List arguments; + + public BulkCheckBody() { + } + + public BulkCheckBody metadata(PermissionCheckRequestMetadata metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_METADATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PermissionCheckRequestMetadata getMetadata() { + return metadata; + } + + + @JsonProperty(JSON_PROPERTY_METADATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(PermissionCheckRequestMetadata metadata) { + this.metadata = metadata; + } + + + public BulkCheckBody items(List items) { + this.items = items; + return this; + } + + public BulkCheckBody addItemsItem(PermissionBulkCheckRequestItem itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * List of permission check requests, maximum 100 items. + * @return items + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getItems() { + return items; + } + + + @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setItems(List items) { + this.items = items; + } + + + public BulkCheckBody context(Context context) { + this.context = context; + return this; + } + + /** + * Get context + * @return context + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Context getContext() { + return context; + } + + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(Context context) { + this.context = context; + } + + + public BulkCheckBody arguments(List arguments) { + this.arguments = arguments; + return this; + } + + public BulkCheckBody addArgumentsItem(Argument argumentsItem) { + if (this.arguments == null) { + this.arguments = new ArrayList<>(); + } + this.arguments.add(argumentsItem); + return this; + } + + /** + * Additional arguments associated with this request. + * @return arguments + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ARGUMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getArguments() { + return arguments; + } + + + @JsonProperty(JSON_PROPERTY_ARGUMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setArguments(List arguments) { + this.arguments = arguments; + } + + + /** + * Return true if this BulkCheckBody object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkCheckBody bulkCheckBody = (BulkCheckBody) o; + return Objects.equals(this.metadata, bulkCheckBody.metadata) && + Objects.equals(this.items, bulkCheckBody.items) && + Objects.equals(this.context, bulkCheckBody.context) && + Objects.equals(this.arguments, bulkCheckBody.arguments); + } + + @Override + public int hashCode() { + return Objects.hash(metadata, items, context, arguments); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkCheckBody {\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); + sb.append(" arguments: ").append(toIndentedString(arguments)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `metadata` to the URL query string + if (getMetadata() != null) { + joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); + } + + // add `items` to the URL query string + if (getItems() != null) { + for (int i = 0; i < getItems().size(); i++) { + if (getItems().get(i) != null) { + joiner.add(getItems().get(i).toUrlQueryString(String.format("%sitems%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + // add `context` to the URL query string + if (getContext() != null) { + joiner.add(getContext().toUrlQueryString(prefix + "context" + suffix)); + } + + // add `arguments` to the URL query string + if (getArguments() != null) { + for (int i = 0; i < getArguments().size(); i++) { + if (getArguments().get(i) != null) { + joiner.add(getArguments().get(i).toUrlQueryString(String.format("%sarguments%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/co/permify/sdk/model/BundleDeleteBody.java b/src/main/java/co/permify/sdk/model/BundleDeleteBody.java index e625706..b1e5908 100644 --- a/src/main/java/co/permify/sdk/model/BundleDeleteBody.java +++ b/src/main/java/co/permify/sdk/model/BundleDeleteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/BundleDeleteResponse.java b/src/main/java/co/permify/sdk/model/BundleDeleteResponse.java index d671451..cd1f28a 100644 --- a/src/main/java/co/permify/sdk/model/BundleDeleteResponse.java +++ b/src/main/java/co/permify/sdk/model/BundleDeleteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/BundleReadBody.java b/src/main/java/co/permify/sdk/model/BundleReadBody.java index 94a0261..c771731 100644 --- a/src/main/java/co/permify/sdk/model/BundleReadBody.java +++ b/src/main/java/co/permify/sdk/model/BundleReadBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/BundleReadResponse.java b/src/main/java/co/permify/sdk/model/BundleReadResponse.java index 49d0132..219c1b3 100644 --- a/src/main/java/co/permify/sdk/model/BundleReadResponse.java +++ b/src/main/java/co/permify/sdk/model/BundleReadResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/BundleRunResponse.java b/src/main/java/co/permify/sdk/model/BundleRunResponse.java index 0b85e4b..ed03f5d 100644 --- a/src/main/java/co/permify/sdk/model/BundleRunResponse.java +++ b/src/main/java/co/permify/sdk/model/BundleRunResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/BundleWriteBody.java b/src/main/java/co/permify/sdk/model/BundleWriteBody.java index 5a3353d..01b68bf 100644 --- a/src/main/java/co/permify/sdk/model/BundleWriteBody.java +++ b/src/main/java/co/permify/sdk/model/BundleWriteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/BundleWriteResponse.java b/src/main/java/co/permify/sdk/model/BundleWriteResponse.java index b897531..88bdd63 100644 --- a/src/main/java/co/permify/sdk/model/BundleWriteResponse.java +++ b/src/main/java/co/permify/sdk/model/BundleWriteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/CheckBody.java b/src/main/java/co/permify/sdk/model/CheckBody.java index be1f545..ac1da03 100644 --- a/src/main/java/co/permify/sdk/model/CheckBody.java +++ b/src/main/java/co/permify/sdk/model/CheckBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/CheckResult.java b/src/main/java/co/permify/sdk/model/CheckResult.java index 3a9844f..9c63bfd 100644 --- a/src/main/java/co/permify/sdk/model/CheckResult.java +++ b/src/main/java/co/permify/sdk/model/CheckResult.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/CheckedExpr.java b/src/main/java/co/permify/sdk/model/CheckedExpr.java index 8138674..78937e5 100644 --- a/src/main/java/co/permify/sdk/model/CheckedExpr.java +++ b/src/main/java/co/permify/sdk/model/CheckedExpr.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Child.java b/src/main/java/co/permify/sdk/model/Child.java index ddedcab..45e420c 100644 --- a/src/main/java/co/permify/sdk/model/Child.java +++ b/src/main/java/co/permify/sdk/model/Child.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Component.java b/src/main/java/co/permify/sdk/model/Component.java new file mode 100644 index 0000000..1d62bf9 --- /dev/null +++ b/src/main/java/co/permify/sdk/model/Component.java @@ -0,0 +1,80 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * CEL component specifier. - COMPONENT_PARSER: Parser. Converts a CEL string to an AST. - COMPONENT_TYPE_CHECKER: Type checker. Checks that references in an AST are defined and types agree. - COMPONENT_RUNTIME: Runtime. Evaluates a parsed and optionally checked CEL AST against a context. + */ +public enum Component { + + PARSER("COMPONENT_PARSER"), + + TYPE_CHECKER("COMPONENT_TYPE_CHECKER"), + + RUNTIME("COMPONENT_RUNTIME"); + + private String value; + + Component(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static Component fromValue(String value) { + for (Component b : Component.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + if (prefix == null) { + prefix = ""; + } + + return String.format("%s=%s", prefix, this.toString()); + } + +} + diff --git a/src/main/java/co/permify/sdk/model/Comprehension.java b/src/main/java/co/permify/sdk/model/Comprehension.java index 5b42286..8428544 100644 --- a/src/main/java/co/permify/sdk/model/Comprehension.java +++ b/src/main/java/co/permify/sdk/model/Comprehension.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,10 +30,11 @@ /** - * A comprehension expression applied to a list or map. Comprehensions are not part of the core syntax, but enabled with macros. A macro matches a specific call signature within a parsed AST and replaces the call with an alternate AST block. Macro expansion happens at parse time. The following macros are supported within CEL: Aggregate type macros may be applied to all elements in a list or all keys in a map: * `all`, `exists`, `exists_one` - test a predicate expression against the inputs and return `true` if the predicate is satisfied for all, any, or only one value `list.all(x, x < 10)`. * `filter` - test a predicate expression against the inputs and return the subset of elements which satisfy the predicate: `payments.filter(p, p > 1000)`. * `map` - apply an expression to all elements in the input and return the output aggregate type: `[1, 2, 3].map(i, i * i)`. The `has(m.x)` macro tests whether the property `x` is present in struct `m`. The semantics of this macro depend on the type of `m`. For proto2 messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the macro tests whether the property is set to its default. For map and struct types, the macro tests whether the property `x` is defined on `m`. + * A comprehension expression applied to a list or map. Comprehensions are not part of the core syntax, but enabled with macros. A macro matches a specific call signature within a parsed AST and replaces the call with an alternate AST block. Macro expansion happens at parse time. The following macros are supported within CEL: Aggregate type macros may be applied to all elements in a list or all keys in a map: * `all`, `exists`, `exists_one` - test a predicate expression against the inputs and return `true` if the predicate is satisfied for all, any, or only one value `list.all(x, x < 10)`. * `filter` - test a predicate expression against the inputs and return the subset of elements which satisfy the predicate: `payments.filter(p, p > 1000)`. * `map` - apply an expression to all elements in the input and return the output aggregate type: `[1, 2, 3].map(i, i * i)`. The `has(m.x)` macro tests whether the property `x` is present in struct `m`. The semantics of this macro depend on the type of `m`. For proto2 messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the macro tests whether the property is set to its default. For map and struct types, the macro tests whether the property `x` is defined on `m`. Comprehensions for the standard environment macros evaluation can be best visualized as the following pseudocode: ``` let `accu_var` = `accu_init` for (let `iter_var` in `iter_range`) { if (!`loop_condition`) { break } `accu_var` = `loop_step` } return `result` ``` Comprehensions for the optional V2 macros which support map-to-map translation differ slightly from the standard environment macros in that they expose both the key or index in addition to the value for each list or map entry: ``` let `accu_var` = `accu_init` for (let `iter_var`, `iter_var2` in `iter_range`) { if (!`loop_condition`) { break } `accu_var` = `loop_step` } return `result` ``` */ @JsonPropertyOrder({ Comprehension.JSON_PROPERTY_ITER_VAR, + Comprehension.JSON_PROPERTY_ITER_VAR2, Comprehension.JSON_PROPERTY_ITER_RANGE, Comprehension.JSON_PROPERTY_ACCU_VAR, Comprehension.JSON_PROPERTY_ACCU_INIT, @@ -46,6 +47,9 @@ public class Comprehension { public static final String JSON_PROPERTY_ITER_VAR = "iterVar"; private String iterVar; + public static final String JSON_PROPERTY_ITER_VAR2 = "iterVar2"; + private String iterVar2; + public static final String JSON_PROPERTY_ITER_RANGE = "iterRange"; private Expr iterRange; @@ -73,7 +77,7 @@ public Comprehension iterVar(String iterVar) { } /** - * The name of the iteration variable. + * The name of the first iteration variable. When the iter_range is a list, this variable is the list element. When the iter_range is a map, this variable is the map entry key. * @return iterVar **/ @jakarta.annotation.Nullable @@ -92,6 +96,31 @@ public void setIterVar(String iterVar) { } + public Comprehension iterVar2(String iterVar2) { + this.iterVar2 = iterVar2; + return this; + } + + /** + * The name of the second iteration variable, empty if not set. When the iter_range is a list, this variable is the integer index. When the iter_range is a map, this variable is the map entry value. This field is only set for comprehension v2 macros. + * @return iterVar2 + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ITER_VAR2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getIterVar2() { + return iterVar2; + } + + + @JsonProperty(JSON_PROPERTY_ITER_VAR2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIterVar2(String iterVar2) { + this.iterVar2 = iterVar2; + } + + public Comprehension iterRange(Expr iterRange) { this.iterRange = iterRange; return this; @@ -255,6 +284,7 @@ public boolean equals(Object o) { } Comprehension comprehension = (Comprehension) o; return Objects.equals(this.iterVar, comprehension.iterVar) && + Objects.equals(this.iterVar2, comprehension.iterVar2) && Objects.equals(this.iterRange, comprehension.iterRange) && Objects.equals(this.accuVar, comprehension.accuVar) && Objects.equals(this.accuInit, comprehension.accuInit) && @@ -265,7 +295,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(iterVar, iterRange, accuVar, accuInit, loopCondition, loopStep, result); + return Objects.hash(iterVar, iterVar2, iterRange, accuVar, accuInit, loopCondition, loopStep, result); } @Override @@ -273,6 +303,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Comprehension {\n"); sb.append(" iterVar: ").append(toIndentedString(iterVar)).append("\n"); + sb.append(" iterVar2: ").append(toIndentedString(iterVar2)).append("\n"); sb.append(" iterRange: ").append(toIndentedString(iterRange)).append("\n"); sb.append(" accuVar: ").append(toIndentedString(accuVar)).append("\n"); sb.append(" accuInit: ").append(toIndentedString(accuInit)).append("\n"); @@ -331,6 +362,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format("%siterVar%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIterVar()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } + // add `iterVar2` to the URL query string + if (getIterVar2() != null) { + joiner.add(String.format("%siterVar2%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIterVar2()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + // add `iterRange` to the URL query string if (getIterRange() != null) { joiner.add(getIterRange().toUrlQueryString(prefix + "iterRange" + suffix)); diff --git a/src/main/java/co/permify/sdk/model/ComputedAttribute.java b/src/main/java/co/permify/sdk/model/ComputedAttribute.java index 7805544..c3c6b0d 100644 --- a/src/main/java/co/permify/sdk/model/ComputedAttribute.java +++ b/src/main/java/co/permify/sdk/model/ComputedAttribute.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/ComputedUserSet.java b/src/main/java/co/permify/sdk/model/ComputedUserSet.java index f20475f..8867b4b 100644 --- a/src/main/java/co/permify/sdk/model/ComputedUserSet.java +++ b/src/main/java/co/permify/sdk/model/ComputedUserSet.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Constant.java b/src/main/java/co/permify/sdk/model/Constant.java index 03a3fb5..813fbc0 100644 --- a/src/main/java/co/permify/sdk/model/Constant.java +++ b/src/main/java/co/permify/sdk/model/Constant.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Context.java b/src/main/java/co/permify/sdk/model/Context.java index 71aba2b..1fb74dc 100644 --- a/src/main/java/co/permify/sdk/model/Context.java +++ b/src/main/java/co/permify/sdk/model/Context.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/CreateList.java b/src/main/java/co/permify/sdk/model/CreateList.java index 9bd1412..fb20e1d 100644 --- a/src/main/java/co/permify/sdk/model/CreateList.java +++ b/src/main/java/co/permify/sdk/model/CreateList.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/CreateStruct.java b/src/main/java/co/permify/sdk/model/CreateStruct.java index f94010f..00893c1 100644 --- a/src/main/java/co/permify/sdk/model/CreateStruct.java +++ b/src/main/java/co/permify/sdk/model/CreateStruct.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/DataBundle.java b/src/main/java/co/permify/sdk/model/DataBundle.java index bb35896..e1e1eba 100644 --- a/src/main/java/co/permify/sdk/model/DataBundle.java +++ b/src/main/java/co/permify/sdk/model/DataBundle.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/DataChange.java b/src/main/java/co/permify/sdk/model/DataChange.java index b0ab33f..b565590 100644 --- a/src/main/java/co/permify/sdk/model/DataChange.java +++ b/src/main/java/co/permify/sdk/model/DataChange.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/DataChangeOperation.java b/src/main/java/co/permify/sdk/model/DataChangeOperation.java index 9948120..2fcb45a 100644 --- a/src/main/java/co/permify/sdk/model/DataChangeOperation.java +++ b/src/main/java/co/permify/sdk/model/DataChangeOperation.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/DataChanges.java b/src/main/java/co/permify/sdk/model/DataChanges.java index 18f4856..d4a13db 100644 --- a/src/main/java/co/permify/sdk/model/DataChanges.java +++ b/src/main/java/co/permify/sdk/model/DataChanges.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/DataDeleteBody.java b/src/main/java/co/permify/sdk/model/DataDeleteBody.java index 3c9b72e..a3713a3 100644 --- a/src/main/java/co/permify/sdk/model/DataDeleteBody.java +++ b/src/main/java/co/permify/sdk/model/DataDeleteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/DataDeleteResponse.java b/src/main/java/co/permify/sdk/model/DataDeleteResponse.java index 1b531a7..e95eb17 100644 --- a/src/main/java/co/permify/sdk/model/DataDeleteResponse.java +++ b/src/main/java/co/permify/sdk/model/DataDeleteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/DataWriteBody.java b/src/main/java/co/permify/sdk/model/DataWriteBody.java index aabcd8b..814c834 100644 --- a/src/main/java/co/permify/sdk/model/DataWriteBody.java +++ b/src/main/java/co/permify/sdk/model/DataWriteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/DataWriteRequestMetadata.java b/src/main/java/co/permify/sdk/model/DataWriteRequestMetadata.java index 15642e4..daeef15 100644 --- a/src/main/java/co/permify/sdk/model/DataWriteRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/DataWriteRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/DataWriteResponse.java b/src/main/java/co/permify/sdk/model/DataWriteResponse.java index eb3fad4..09d1f16 100644 --- a/src/main/java/co/permify/sdk/model/DataWriteResponse.java +++ b/src/main/java/co/permify/sdk/model/DataWriteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/DeleteRelationshipsBody.java b/src/main/java/co/permify/sdk/model/DeleteRelationshipsBody.java index 4ebbd82..6c3dc55 100644 --- a/src/main/java/co/permify/sdk/model/DeleteRelationshipsBody.java +++ b/src/main/java/co/permify/sdk/model/DeleteRelationshipsBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Entity.java b/src/main/java/co/permify/sdk/model/Entity.java index f94a4e6..4fe7392 100644 --- a/src/main/java/co/permify/sdk/model/Entity.java +++ b/src/main/java/co/permify/sdk/model/Entity.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/EntityDefinition.java b/src/main/java/co/permify/sdk/model/EntityDefinition.java index 73c049d..a9d3621 100644 --- a/src/main/java/co/permify/sdk/model/EntityDefinition.java +++ b/src/main/java/co/permify/sdk/model/EntityDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/EntityDefinitionReference.java b/src/main/java/co/permify/sdk/model/EntityDefinitionReference.java index 8051b2a..4106a05 100644 --- a/src/main/java/co/permify/sdk/model/EntityDefinitionReference.java +++ b/src/main/java/co/permify/sdk/model/EntityDefinitionReference.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/EntityFilter.java b/src/main/java/co/permify/sdk/model/EntityFilter.java index 8546e5e..4bffae2 100644 --- a/src/main/java/co/permify/sdk/model/EntityFilter.java +++ b/src/main/java/co/permify/sdk/model/EntityFilter.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Entry.java b/src/main/java/co/permify/sdk/model/Entry.java index 3a8cbf4..f0777d0 100644 --- a/src/main/java/co/permify/sdk/model/Entry.java +++ b/src/main/java/co/permify/sdk/model/Entry.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/ExpandLeaf.java b/src/main/java/co/permify/sdk/model/ExpandLeaf.java index ac9ca37..529bc94 100644 --- a/src/main/java/co/permify/sdk/model/ExpandLeaf.java +++ b/src/main/java/co/permify/sdk/model/ExpandLeaf.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/ExpandTreeNode.java b/src/main/java/co/permify/sdk/model/ExpandTreeNode.java index 8b7046c..a309647 100644 --- a/src/main/java/co/permify/sdk/model/ExpandTreeNode.java +++ b/src/main/java/co/permify/sdk/model/ExpandTreeNode.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/ExpandTreeNodeOperation.java b/src/main/java/co/permify/sdk/model/ExpandTreeNodeOperation.java index 893f856..b314f37 100644 --- a/src/main/java/co/permify/sdk/model/ExpandTreeNodeOperation.java +++ b/src/main/java/co/permify/sdk/model/ExpandTreeNodeOperation.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Expr.java b/src/main/java/co/permify/sdk/model/Expr.java index 37cf485..93856e2 100644 --- a/src/main/java/co/permify/sdk/model/Expr.java +++ b/src/main/java/co/permify/sdk/model/Expr.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/ExprCall.java b/src/main/java/co/permify/sdk/model/ExprCall.java index 643362f..83d1e42 100644 --- a/src/main/java/co/permify/sdk/model/ExprCall.java +++ b/src/main/java/co/permify/sdk/model/ExprCall.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Extension.java b/src/main/java/co/permify/sdk/model/Extension.java new file mode 100644 index 0000000..912599e --- /dev/null +++ b/src/main/java/co/permify/sdk/model/Extension.java @@ -0,0 +1,240 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import co.permify.sdk.model.Component; +import co.permify.sdk.model.Version; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * An extension that was requested for the source expression. + */ +@JsonPropertyOrder({ + Extension.JSON_PROPERTY_ID, + Extension.JSON_PROPERTY_AFFECTED_COMPONENTS, + Extension.JSON_PROPERTY_VERSION +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Extension { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_AFFECTED_COMPONENTS = "affectedComponents"; + private List affectedComponents; + + public static final String JSON_PROPERTY_VERSION = "version"; + private Version version; + + public Extension() { + } + + public Extension id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public Extension affectedComponents(List affectedComponents) { + this.affectedComponents = affectedComponents; + return this; + } + + public Extension addAffectedComponentsItem(Component affectedComponentsItem) { + if (this.affectedComponents == null) { + this.affectedComponents = new ArrayList<>(); + } + this.affectedComponents.add(affectedComponentsItem); + return this; + } + + /** + * If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated. + * @return affectedComponents + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AFFECTED_COMPONENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getAffectedComponents() { + return affectedComponents; + } + + + @JsonProperty(JSON_PROPERTY_AFFECTED_COMPONENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAffectedComponents(List affectedComponents) { + this.affectedComponents = affectedComponents; + } + + + public Extension version(Version version) { + this.version = version; + return this; + } + + /** + * Get version + * @return version + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VERSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Version getVersion() { + return version; + } + + + @JsonProperty(JSON_PROPERTY_VERSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVersion(Version version) { + this.version = version; + } + + + /** + * Return true if this Extension object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Extension extension = (Extension) o; + return Objects.equals(this.id, extension.id) && + Objects.equals(this.affectedComponents, extension.affectedComponents) && + Objects.equals(this.version, extension.version); + } + + @Override + public int hashCode() { + return Objects.hash(id, affectedComponents, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Extension {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" affectedComponents: ").append(toIndentedString(affectedComponents)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `id` to the URL query string + if (getId() != null) { + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `affectedComponents` to the URL query string + if (getAffectedComponents() != null) { + for (int i = 0; i < getAffectedComponents().size(); i++) { + if (getAffectedComponents().get(i) != null) { + joiner.add(String.format("%saffectedComponents%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getAffectedComponents().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + } + + // add `version` to the URL query string + if (getVersion() != null) { + joiner.add(getVersion().toUrlQueryString(prefix + "version" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/co/permify/sdk/model/FunctionType.java b/src/main/java/co/permify/sdk/model/FunctionType.java index 7607c46..f2086d6 100644 --- a/src/main/java/co/permify/sdk/model/FunctionType.java +++ b/src/main/java/co/permify/sdk/model/FunctionType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Ident.java b/src/main/java/co/permify/sdk/model/Ident.java index 8e38c4f..7ccd1c1 100644 --- a/src/main/java/co/permify/sdk/model/Ident.java +++ b/src/main/java/co/permify/sdk/model/Ident.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Leaf.java b/src/main/java/co/permify/sdk/model/Leaf.java index 2d1861b..7eafe81 100644 --- a/src/main/java/co/permify/sdk/model/Leaf.java +++ b/src/main/java/co/permify/sdk/model/Leaf.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/ListType.java b/src/main/java/co/permify/sdk/model/ListType.java index 2071e73..1a9c871 100644 --- a/src/main/java/co/permify/sdk/model/ListType.java +++ b/src/main/java/co/permify/sdk/model/ListType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/LookupEntityBody.java b/src/main/java/co/permify/sdk/model/LookupEntityBody.java index 2c213e4..dd8e918 100644 --- a/src/main/java/co/permify/sdk/model/LookupEntityBody.java +++ b/src/main/java/co/permify/sdk/model/LookupEntityBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/LookupEntityStreamBody.java b/src/main/java/co/permify/sdk/model/LookupEntityStreamBody.java index 5329e2a..9010b4b 100644 --- a/src/main/java/co/permify/sdk/model/LookupEntityStreamBody.java +++ b/src/main/java/co/permify/sdk/model/LookupEntityStreamBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/LookupSubjectBody.java b/src/main/java/co/permify/sdk/model/LookupSubjectBody.java index 6293124..83f11f2 100644 --- a/src/main/java/co/permify/sdk/model/LookupSubjectBody.java +++ b/src/main/java/co/permify/sdk/model/LookupSubjectBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/MapType.java b/src/main/java/co/permify/sdk/model/MapType.java index 2a77bb4..fcecf74 100644 --- a/src/main/java/co/permify/sdk/model/MapType.java +++ b/src/main/java/co/permify/sdk/model/MapType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PartialWriteBody.java b/src/main/java/co/permify/sdk/model/PartialWriteBody.java index 280e3ea..2fa99e8 100644 --- a/src/main/java/co/permify/sdk/model/PartialWriteBody.java +++ b/src/main/java/co/permify/sdk/model/PartialWriteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Partials.java b/src/main/java/co/permify/sdk/model/Partials.java index 25632f7..37bbdeb 100644 --- a/src/main/java/co/permify/sdk/model/Partials.java +++ b/src/main/java/co/permify/sdk/model/Partials.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionBulkCheckRequestItem.java b/src/main/java/co/permify/sdk/model/PermissionBulkCheckRequestItem.java new file mode 100644 index 0000000..de8c2e0 --- /dev/null +++ b/src/main/java/co/permify/sdk/model/PermissionBulkCheckRequestItem.java @@ -0,0 +1,224 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import co.permify.sdk.model.Entity; +import co.permify.sdk.model.Subject; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * PermissionBulkCheckRequestItem + */ +@JsonPropertyOrder({ + PermissionBulkCheckRequestItem.JSON_PROPERTY_ENTITY, + PermissionBulkCheckRequestItem.JSON_PROPERTY_PERMISSION, + PermissionBulkCheckRequestItem.JSON_PROPERTY_SUBJECT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PermissionBulkCheckRequestItem { + public static final String JSON_PROPERTY_ENTITY = "entity"; + private Entity entity; + + public static final String JSON_PROPERTY_PERMISSION = "permission"; + private String permission; + + public static final String JSON_PROPERTY_SUBJECT = "subject"; + private Subject subject; + + public PermissionBulkCheckRequestItem() { + } + + public PermissionBulkCheckRequestItem entity(Entity entity) { + this.entity = entity; + return this; + } + + /** + * Get entity + * @return entity + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Entity getEntity() { + return entity; + } + + + @JsonProperty(JSON_PROPERTY_ENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntity(Entity entity) { + this.entity = entity; + } + + + public PermissionBulkCheckRequestItem permission(String permission) { + this.permission = permission; + return this; + } + + /** + * The action the user wants to perform on the resource + * @return permission + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PERMISSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPermission() { + return permission; + } + + + @JsonProperty(JSON_PROPERTY_PERMISSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPermission(String permission) { + this.permission = permission; + } + + + public PermissionBulkCheckRequestItem subject(Subject subject) { + this.subject = subject; + return this; + } + + /** + * Get subject + * @return subject + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Subject getSubject() { + return subject; + } + + + @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSubject(Subject subject) { + this.subject = subject; + } + + + /** + * Return true if this PermissionBulkCheckRequestItem object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PermissionBulkCheckRequestItem permissionBulkCheckRequestItem = (PermissionBulkCheckRequestItem) o; + return Objects.equals(this.entity, permissionBulkCheckRequestItem.entity) && + Objects.equals(this.permission, permissionBulkCheckRequestItem.permission) && + Objects.equals(this.subject, permissionBulkCheckRequestItem.subject); + } + + @Override + public int hashCode() { + return Objects.hash(entity, permission, subject); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PermissionBulkCheckRequestItem {\n"); + sb.append(" entity: ").append(toIndentedString(entity)).append("\n"); + sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); + sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `entity` to the URL query string + if (getEntity() != null) { + joiner.add(getEntity().toUrlQueryString(prefix + "entity" + suffix)); + } + + // add `permission` to the URL query string + if (getPermission() != null) { + joiner.add(String.format("%spermission%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermission()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `subject` to the URL query string + if (getSubject() != null) { + joiner.add(getSubject().toUrlQueryString(prefix + "subject" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/co/permify/sdk/model/PermissionBulkCheckResponse.java b/src/main/java/co/permify/sdk/model/PermissionBulkCheckResponse.java new file mode 100644 index 0000000..2c83b2d --- /dev/null +++ b/src/main/java/co/permify/sdk/model/PermissionBulkCheckResponse.java @@ -0,0 +1,166 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import co.permify.sdk.model.PermissionCheckResponse; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * PermissionBulkCheckResponse is the response message for the BulkCheck method in the Permission service. + */ +@JsonPropertyOrder({ + PermissionBulkCheckResponse.JSON_PROPERTY_RESULTS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PermissionBulkCheckResponse { + public static final String JSON_PROPERTY_RESULTS = "results"; + private List results; + + public PermissionBulkCheckResponse() { + } + + public PermissionBulkCheckResponse results(List results) { + this.results = results; + return this; + } + + public PermissionBulkCheckResponse addResultsItem(PermissionCheckResponse resultsItem) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results.add(resultsItem); + return this; + } + + /** + * List of permission check responses corresponding to each request. + * @return results + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RESULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getResults() { + return results; + } + + + @JsonProperty(JSON_PROPERTY_RESULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResults(List results) { + this.results = results; + } + + + /** + * Return true if this PermissionBulkCheckResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PermissionBulkCheckResponse permissionBulkCheckResponse = (PermissionBulkCheckResponse) o; + return Objects.equals(this.results, permissionBulkCheckResponse.results); + } + + @Override + public int hashCode() { + return Objects.hash(results); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PermissionBulkCheckResponse {\n"); + sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `results` to the URL query string + if (getResults() != null) { + for (int i = 0; i < getResults().size(); i++) { + if (getResults().get(i) != null) { + joiner.add(getResults().get(i).toUrlQueryString(String.format("%sresults%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/co/permify/sdk/model/PermissionCheckRequestMetadata.java b/src/main/java/co/permify/sdk/model/PermissionCheckRequestMetadata.java index 9beab0e..5c4bb98 100644 --- a/src/main/java/co/permify/sdk/model/PermissionCheckRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionCheckRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionCheckResponse.java b/src/main/java/co/permify/sdk/model/PermissionCheckResponse.java index 4e7b017..a4abafa 100644 --- a/src/main/java/co/permify/sdk/model/PermissionCheckResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionCheckResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionCheckResponseMetadata.java b/src/main/java/co/permify/sdk/model/PermissionCheckResponseMetadata.java index d8edad5..a2589f8 100644 --- a/src/main/java/co/permify/sdk/model/PermissionCheckResponseMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionCheckResponseMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionDefinition.java b/src/main/java/co/permify/sdk/model/PermissionDefinition.java index 66dbfa2..0e03351 100644 --- a/src/main/java/co/permify/sdk/model/PermissionDefinition.java +++ b/src/main/java/co/permify/sdk/model/PermissionDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionExpandBody.java b/src/main/java/co/permify/sdk/model/PermissionExpandBody.java index 1fe3a3c..95908bb 100644 --- a/src/main/java/co/permify/sdk/model/PermissionExpandBody.java +++ b/src/main/java/co/permify/sdk/model/PermissionExpandBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionExpandRequestMetadata.java b/src/main/java/co/permify/sdk/model/PermissionExpandRequestMetadata.java index c604097..d5d7263 100644 --- a/src/main/java/co/permify/sdk/model/PermissionExpandRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionExpandRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionExpandResponse.java b/src/main/java/co/permify/sdk/model/PermissionExpandResponse.java index 7d5ff12..1b7c279 100644 --- a/src/main/java/co/permify/sdk/model/PermissionExpandResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionExpandResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadata.java b/src/main/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadata.java index 2d9b04f..d510d91 100644 --- a/src/main/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionLookupEntityResponse.java b/src/main/java/co/permify/sdk/model/PermissionLookupEntityResponse.java index c46c935..cadf0b3 100644 --- a/src/main/java/co/permify/sdk/model/PermissionLookupEntityResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionLookupEntityResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionLookupEntityStreamResponse.java b/src/main/java/co/permify/sdk/model/PermissionLookupEntityStreamResponse.java index 50ad7c2..8f0c1ae 100644 --- a/src/main/java/co/permify/sdk/model/PermissionLookupEntityStreamResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionLookupEntityStreamResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadata.java b/src/main/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadata.java index 83ac720..f3e0d17 100644 --- a/src/main/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionLookupSubjectResponse.java b/src/main/java/co/permify/sdk/model/PermissionLookupSubjectResponse.java index f469555..4f5b04e 100644 --- a/src/main/java/co/permify/sdk/model/PermissionLookupSubjectResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionLookupSubjectResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadata.java b/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadata.java index 77f6bda..7caf768 100644 --- a/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionResponse.java b/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionResponse.java index c5ee49a..9553a45 100644 --- a/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionResponse.java +++ b/src/main/java/co/permify/sdk/model/PermissionSubjectPermissionResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/PrimitiveType.java b/src/main/java/co/permify/sdk/model/PrimitiveType.java index b626471..bc68667 100644 --- a/src/main/java/co/permify/sdk/model/PrimitiveType.java +++ b/src/main/java/co/permify/sdk/model/PrimitiveType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/ReadAttributesBody.java b/src/main/java/co/permify/sdk/model/ReadAttributesBody.java index cccbe8f..4c7294c 100644 --- a/src/main/java/co/permify/sdk/model/ReadAttributesBody.java +++ b/src/main/java/co/permify/sdk/model/ReadAttributesBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/ReadRelationshipsBody.java b/src/main/java/co/permify/sdk/model/ReadRelationshipsBody.java index 5e044be..37b0361 100644 --- a/src/main/java/co/permify/sdk/model/ReadRelationshipsBody.java +++ b/src/main/java/co/permify/sdk/model/ReadRelationshipsBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/RelationDefinition.java b/src/main/java/co/permify/sdk/model/RelationDefinition.java index f7e2bd4..743d0e7 100644 --- a/src/main/java/co/permify/sdk/model/RelationDefinition.java +++ b/src/main/java/co/permify/sdk/model/RelationDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/RelationReference.java b/src/main/java/co/permify/sdk/model/RelationReference.java index 3f155a0..b310ab5 100644 --- a/src/main/java/co/permify/sdk/model/RelationReference.java +++ b/src/main/java/co/permify/sdk/model/RelationReference.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/RelationshipDeleteResponse.java b/src/main/java/co/permify/sdk/model/RelationshipDeleteResponse.java index d33dbf1..911bacc 100644 --- a/src/main/java/co/permify/sdk/model/RelationshipDeleteResponse.java +++ b/src/main/java/co/permify/sdk/model/RelationshipDeleteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/RelationshipReadRequestMetadata.java b/src/main/java/co/permify/sdk/model/RelationshipReadRequestMetadata.java index bf00a14..a04ae11 100644 --- a/src/main/java/co/permify/sdk/model/RelationshipReadRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/RelationshipReadRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/RelationshipReadResponse.java b/src/main/java/co/permify/sdk/model/RelationshipReadResponse.java index 15759a3..6ce990f 100644 --- a/src/main/java/co/permify/sdk/model/RelationshipReadResponse.java +++ b/src/main/java/co/permify/sdk/model/RelationshipReadResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/RelationshipWriteRequestMetadata.java b/src/main/java/co/permify/sdk/model/RelationshipWriteRequestMetadata.java index 451c79a..12c2726 100644 --- a/src/main/java/co/permify/sdk/model/RelationshipWriteRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/RelationshipWriteRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/RelationshipWriteResponse.java b/src/main/java/co/permify/sdk/model/RelationshipWriteResponse.java index 4b71853..65237dd 100644 --- a/src/main/java/co/permify/sdk/model/RelationshipWriteResponse.java +++ b/src/main/java/co/permify/sdk/model/RelationshipWriteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Rewrite.java b/src/main/java/co/permify/sdk/model/Rewrite.java index 993e412..3d70b9c 100644 --- a/src/main/java/co/permify/sdk/model/Rewrite.java +++ b/src/main/java/co/permify/sdk/model/Rewrite.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/RewriteOperation.java b/src/main/java/co/permify/sdk/model/RewriteOperation.java index 15a9486..7585c03 100644 --- a/src/main/java/co/permify/sdk/model/RewriteOperation.java +++ b/src/main/java/co/permify/sdk/model/RewriteOperation.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/RuleDefinition.java b/src/main/java/co/permify/sdk/model/RuleDefinition.java index d96f6f8..be1bda5 100644 --- a/src/main/java/co/permify/sdk/model/RuleDefinition.java +++ b/src/main/java/co/permify/sdk/model/RuleDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/RunBundleBody.java b/src/main/java/co/permify/sdk/model/RunBundleBody.java index 4dd9901..e2cc4d4 100644 --- a/src/main/java/co/permify/sdk/model/RunBundleBody.java +++ b/src/main/java/co/permify/sdk/model/RunBundleBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaDefinition.java b/src/main/java/co/permify/sdk/model/SchemaDefinition.java index b8ebdd3..ccff2c2 100644 --- a/src/main/java/co/permify/sdk/model/SchemaDefinition.java +++ b/src/main/java/co/permify/sdk/model/SchemaDefinition.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaDefinitionReference.java b/src/main/java/co/permify/sdk/model/SchemaDefinitionReference.java index f7bf53b..5573398 100644 --- a/src/main/java/co/permify/sdk/model/SchemaDefinitionReference.java +++ b/src/main/java/co/permify/sdk/model/SchemaDefinitionReference.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaList.java b/src/main/java/co/permify/sdk/model/SchemaList.java index b7a435a..1f24810 100644 --- a/src/main/java/co/permify/sdk/model/SchemaList.java +++ b/src/main/java/co/permify/sdk/model/SchemaList.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaListBody.java b/src/main/java/co/permify/sdk/model/SchemaListBody.java index d18153a..0d72fb3 100644 --- a/src/main/java/co/permify/sdk/model/SchemaListBody.java +++ b/src/main/java/co/permify/sdk/model/SchemaListBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaListResponse.java b/src/main/java/co/permify/sdk/model/SchemaListResponse.java index 4dd491a..4f51c38 100644 --- a/src/main/java/co/permify/sdk/model/SchemaListResponse.java +++ b/src/main/java/co/permify/sdk/model/SchemaListResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadata.java b/src/main/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadata.java index 43c2e94..8e399a3 100644 --- a/src/main/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaPartialWriteResponse.java b/src/main/java/co/permify/sdk/model/SchemaPartialWriteResponse.java index a903493..3e9e0f0 100644 --- a/src/main/java/co/permify/sdk/model/SchemaPartialWriteResponse.java +++ b/src/main/java/co/permify/sdk/model/SchemaPartialWriteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaReadBody.java b/src/main/java/co/permify/sdk/model/SchemaReadBody.java index 0695427..ca5c6a3 100644 --- a/src/main/java/co/permify/sdk/model/SchemaReadBody.java +++ b/src/main/java/co/permify/sdk/model/SchemaReadBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaReadRequestMetadata.java b/src/main/java/co/permify/sdk/model/SchemaReadRequestMetadata.java index 76ff904..cf87980 100644 --- a/src/main/java/co/permify/sdk/model/SchemaReadRequestMetadata.java +++ b/src/main/java/co/permify/sdk/model/SchemaReadRequestMetadata.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaReadResponse.java b/src/main/java/co/permify/sdk/model/SchemaReadResponse.java index e01eaed..e427600 100644 --- a/src/main/java/co/permify/sdk/model/SchemaReadResponse.java +++ b/src/main/java/co/permify/sdk/model/SchemaReadResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaWriteBody.java b/src/main/java/co/permify/sdk/model/SchemaWriteBody.java index 6fa74d8..032a403 100644 --- a/src/main/java/co/permify/sdk/model/SchemaWriteBody.java +++ b/src/main/java/co/permify/sdk/model/SchemaWriteBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SchemaWriteResponse.java b/src/main/java/co/permify/sdk/model/SchemaWriteResponse.java index cdedb49..e0198d1 100644 --- a/src/main/java/co/permify/sdk/model/SchemaWriteResponse.java +++ b/src/main/java/co/permify/sdk/model/SchemaWriteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Select.java b/src/main/java/co/permify/sdk/model/Select.java index 9c00f69..b465a7d 100644 --- a/src/main/java/co/permify/sdk/model/Select.java +++ b/src/main/java/co/permify/sdk/model/Select.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SourceInfo.java b/src/main/java/co/permify/sdk/model/SourceInfo.java index 52e5ef5..59e5ce9 100644 --- a/src/main/java/co/permify/sdk/model/SourceInfo.java +++ b/src/main/java/co/permify/sdk/model/SourceInfo.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import java.util.Map; import java.util.HashMap; import co.permify.sdk.model.Expr; +import co.permify.sdk.model.Extension; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -41,7 +42,8 @@ SourceInfo.JSON_PROPERTY_LOCATION, SourceInfo.JSON_PROPERTY_LINE_OFFSETS, SourceInfo.JSON_PROPERTY_POSITIONS, - SourceInfo.JSON_PROPERTY_MACRO_CALLS + SourceInfo.JSON_PROPERTY_MACRO_CALLS, + SourceInfo.JSON_PROPERTY_EXTENSIONS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SourceInfo { @@ -60,6 +62,9 @@ public class SourceInfo { public static final String JSON_PROPERTY_MACRO_CALLS = "macroCalls"; private Map macroCalls = new HashMap<>(); + public static final String JSON_PROPERTY_EXTENSIONS = "extensions"; + private List extensions; + public SourceInfo() { } @@ -212,6 +217,39 @@ public void setMacroCalls(Map macroCalls) { } + public SourceInfo extensions(List extensions) { + this.extensions = extensions; + return this; + } + + public SourceInfo addExtensionsItem(Extension extensionsItem) { + if (this.extensions == null) { + this.extensions = new ArrayList<>(); + } + this.extensions.add(extensionsItem); + return this; + } + + /** + * A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported. + * @return extensions + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXTENSIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getExtensions() { + return extensions; + } + + + @JsonProperty(JSON_PROPERTY_EXTENSIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** * Return true if this SourceInfo object is equal to o. */ @@ -228,12 +266,13 @@ public boolean equals(Object o) { Objects.equals(this.location, sourceInfo.location) && Objects.equals(this.lineOffsets, sourceInfo.lineOffsets) && Objects.equals(this.positions, sourceInfo.positions) && - Objects.equals(this.macroCalls, sourceInfo.macroCalls); + Objects.equals(this.macroCalls, sourceInfo.macroCalls) && + Objects.equals(this.extensions, sourceInfo.extensions); } @Override public int hashCode() { - return Objects.hash(syntaxVersion, location, lineOffsets, positions, macroCalls); + return Objects.hash(syntaxVersion, location, lineOffsets, positions, macroCalls, extensions); } @Override @@ -245,6 +284,7 @@ public String toString() { sb.append(" lineOffsets: ").append(toIndentedString(lineOffsets)).append("\n"); sb.append(" positions: ").append(toIndentedString(positions)).append("\n"); sb.append(" macroCalls: ").append(toIndentedString(macroCalls)).append("\n"); + sb.append(" extensions: ").append(toIndentedString(extensions)).append("\n"); sb.append("}"); return sb.toString(); } @@ -330,6 +370,16 @@ public String toUrlQueryString(String prefix) { } } + // add `extensions` to the URL query string + if (getExtensions() != null) { + for (int i = 0; i < getExtensions().size(); i++) { + if (getExtensions().get(i) != null) { + joiner.add(getExtensions().get(i).toUrlQueryString(String.format("%sextensions%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + return joiner.toString(); } } diff --git a/src/main/java/co/permify/sdk/model/Status.java b/src/main/java/co/permify/sdk/model/Status.java index 49951e7..57b908e 100644 --- a/src/main/java/co/permify/sdk/model/Status.java +++ b/src/main/java/co/permify/sdk/model/Status.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponse.java b/src/main/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponse.java index c766c33..4d03349 100644 --- a/src/main/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponse.java +++ b/src/main/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/StreamResultOfWatchResponse.java b/src/main/java/co/permify/sdk/model/StreamResultOfWatchResponse.java index 1aff80b..5965dd9 100644 --- a/src/main/java/co/permify/sdk/model/StreamResultOfWatchResponse.java +++ b/src/main/java/co/permify/sdk/model/StreamResultOfWatchResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/StringArrayValue.java b/src/main/java/co/permify/sdk/model/StringArrayValue.java index f853782..95a7858 100644 --- a/src/main/java/co/permify/sdk/model/StringArrayValue.java +++ b/src/main/java/co/permify/sdk/model/StringArrayValue.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Subject.java b/src/main/java/co/permify/sdk/model/Subject.java index 46b9273..0041a78 100644 --- a/src/main/java/co/permify/sdk/model/Subject.java +++ b/src/main/java/co/permify/sdk/model/Subject.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SubjectFilter.java b/src/main/java/co/permify/sdk/model/SubjectFilter.java index edac45b..6f746dc 100644 --- a/src/main/java/co/permify/sdk/model/SubjectFilter.java +++ b/src/main/java/co/permify/sdk/model/SubjectFilter.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/SubjectPermissionBody.java b/src/main/java/co/permify/sdk/model/SubjectPermissionBody.java index a1b401f..615afea 100644 --- a/src/main/java/co/permify/sdk/model/SubjectPermissionBody.java +++ b/src/main/java/co/permify/sdk/model/SubjectPermissionBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Subjects.java b/src/main/java/co/permify/sdk/model/Subjects.java index d499c20..53a1542 100644 --- a/src/main/java/co/permify/sdk/model/Subjects.java +++ b/src/main/java/co/permify/sdk/model/Subjects.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Tenant.java b/src/main/java/co/permify/sdk/model/Tenant.java index 04844c2..c445e0a 100644 --- a/src/main/java/co/permify/sdk/model/Tenant.java +++ b/src/main/java/co/permify/sdk/model/Tenant.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/TenantCreateRequest.java b/src/main/java/co/permify/sdk/model/TenantCreateRequest.java index 00090ae..234c994 100644 --- a/src/main/java/co/permify/sdk/model/TenantCreateRequest.java +++ b/src/main/java/co/permify/sdk/model/TenantCreateRequest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/TenantCreateResponse.java b/src/main/java/co/permify/sdk/model/TenantCreateResponse.java index b5fff91..ba9c604 100644 --- a/src/main/java/co/permify/sdk/model/TenantCreateResponse.java +++ b/src/main/java/co/permify/sdk/model/TenantCreateResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/TenantDeleteResponse.java b/src/main/java/co/permify/sdk/model/TenantDeleteResponse.java index 20689cd..582f5e5 100644 --- a/src/main/java/co/permify/sdk/model/TenantDeleteResponse.java +++ b/src/main/java/co/permify/sdk/model/TenantDeleteResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/TenantListRequest.java b/src/main/java/co/permify/sdk/model/TenantListRequest.java index 751cdf2..31f4392 100644 --- a/src/main/java/co/permify/sdk/model/TenantListRequest.java +++ b/src/main/java/co/permify/sdk/model/TenantListRequest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/TenantListResponse.java b/src/main/java/co/permify/sdk/model/TenantListResponse.java index 63c1b42..dc44ada 100644 --- a/src/main/java/co/permify/sdk/model/TenantListResponse.java +++ b/src/main/java/co/permify/sdk/model/TenantListResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Tuple.java b/src/main/java/co/permify/sdk/model/Tuple.java index 1bf911c..0254e95 100644 --- a/src/main/java/co/permify/sdk/model/Tuple.java +++ b/src/main/java/co/permify/sdk/model/Tuple.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/TupleFilter.java b/src/main/java/co/permify/sdk/model/TupleFilter.java index 272821d..edf7b6d 100644 --- a/src/main/java/co/permify/sdk/model/TupleFilter.java +++ b/src/main/java/co/permify/sdk/model/TupleFilter.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/TupleSet.java b/src/main/java/co/permify/sdk/model/TupleSet.java index b9c633d..124e877 100644 --- a/src/main/java/co/permify/sdk/model/TupleSet.java +++ b/src/main/java/co/permify/sdk/model/TupleSet.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/TupleToUserSet.java b/src/main/java/co/permify/sdk/model/TupleToUserSet.java index a83faed..908b6d0 100644 --- a/src/main/java/co/permify/sdk/model/TupleToUserSet.java +++ b/src/main/java/co/permify/sdk/model/TupleToUserSet.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/V1Call.java b/src/main/java/co/permify/sdk/model/V1Call.java index 98c16d8..fc73b88 100644 --- a/src/main/java/co/permify/sdk/model/V1Call.java +++ b/src/main/java/co/permify/sdk/model/V1Call.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/V1Expand.java b/src/main/java/co/permify/sdk/model/V1Expand.java index 1366546..34f94e4 100644 --- a/src/main/java/co/permify/sdk/model/V1Expand.java +++ b/src/main/java/co/permify/sdk/model/V1Expand.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/V1Operation.java b/src/main/java/co/permify/sdk/model/V1Operation.java index c8c1e6f..f492ef7 100644 --- a/src/main/java/co/permify/sdk/model/V1Operation.java +++ b/src/main/java/co/permify/sdk/model/V1Operation.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/V1alpha1Reference.java b/src/main/java/co/permify/sdk/model/V1alpha1Reference.java index f5a1b2d..87d1afa 100644 --- a/src/main/java/co/permify/sdk/model/V1alpha1Reference.java +++ b/src/main/java/co/permify/sdk/model/V1alpha1Reference.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/V1alpha1Type.java b/src/main/java/co/permify/sdk/model/V1alpha1Type.java index df6a2b6..a4eaed4 100644 --- a/src/main/java/co/permify/sdk/model/V1alpha1Type.java +++ b/src/main/java/co/permify/sdk/model/V1alpha1Type.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Values.java b/src/main/java/co/permify/sdk/model/Values.java index 7e3a253..614300f 100644 --- a/src/main/java/co/permify/sdk/model/Values.java +++ b/src/main/java/co/permify/sdk/model/Values.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/Version.java b/src/main/java/co/permify/sdk/model/Version.java new file mode 100644 index 0000000..92f5ca7 --- /dev/null +++ b/src/main/java/co/permify/sdk/model/Version.java @@ -0,0 +1,186 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * Version + */ +@JsonPropertyOrder({ + Version.JSON_PROPERTY_MAJOR, + Version.JSON_PROPERTY_MINOR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Version { + public static final String JSON_PROPERTY_MAJOR = "major"; + private String major; + + public static final String JSON_PROPERTY_MINOR = "minor"; + private String minor; + + public Version() { + } + + public Version major(String major) { + this.major = major; + return this; + } + + /** + * Major version changes indicate different required support level from the required components. + * @return major + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MAJOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getMajor() { + return major; + } + + + @JsonProperty(JSON_PROPERTY_MAJOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMajor(String major) { + this.major = major; + } + + + public Version minor(String minor) { + this.minor = minor; + return this; + } + + /** + * Minor version changes must not change the observed behavior from existing implementations, but may be provided informationally. + * @return minor + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MINOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getMinor() { + return minor; + } + + + @JsonProperty(JSON_PROPERTY_MINOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMinor(String minor) { + this.minor = minor; + } + + + /** + * Return true if this Version object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Version version = (Version) o; + return Objects.equals(this.major, version.major) && + Objects.equals(this.minor, version.minor); + } + + @Override + public int hashCode() { + return Objects.hash(major, minor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Version {\n"); + sb.append(" major: ").append(toIndentedString(major)).append("\n"); + sb.append(" minor: ").append(toIndentedString(minor)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `major` to the URL query string + if (getMajor() != null) { + joiner.add(String.format("%smajor%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMajor()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `minor` to the URL query string + if (getMinor() != null) { + joiner.add(String.format("%sminor%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMinor()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/co/permify/sdk/model/WatchBody.java b/src/main/java/co/permify/sdk/model/WatchBody.java index f206f50..c0c8e86 100644 --- a/src/main/java/co/permify/sdk/model/WatchBody.java +++ b/src/main/java/co/permify/sdk/model/WatchBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/WatchResponse.java b/src/main/java/co/permify/sdk/model/WatchResponse.java index cb30337..bd281d9 100644 --- a/src/main/java/co/permify/sdk/model/WatchResponse.java +++ b/src/main/java/co/permify/sdk/model/WatchResponse.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/WellKnownType.java b/src/main/java/co/permify/sdk/model/WellKnownType.java index 47428ba..25af888 100644 --- a/src/main/java/co/permify/sdk/model/WellKnownType.java +++ b/src/main/java/co/permify/sdk/model/WellKnownType.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/co/permify/sdk/model/WriteRelationshipsBody.java b/src/main/java/co/permify/sdk/model/WriteRelationshipsBody.java index f2d97ac..505beee 100644 --- a/src/main/java/co/permify/sdk/model/WriteRelationshipsBody.java +++ b/src/main/java/co/permify/sdk/model/WriteRelationshipsBody.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/api/BundleApiTest.java b/src/test/java/co/permify/sdk/api/BundleApiTest.java index b0e99a4..7a0f701 100644 --- a/src/test/java/co/permify/sdk/api/BundleApiTest.java +++ b/src/test/java/co/permify/sdk/api/BundleApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/api/DataApiTest.java b/src/test/java/co/permify/sdk/api/DataApiTest.java index 09adf94..46e8d5e 100644 --- a/src/test/java/co/permify/sdk/api/DataApiTest.java +++ b/src/test/java/co/permify/sdk/api/DataApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/api/PermissionApiTest.java b/src/test/java/co/permify/sdk/api/PermissionApiTest.java index bb15e63..f5d51aa 100644 --- a/src/test/java/co/permify/sdk/api/PermissionApiTest.java +++ b/src/test/java/co/permify/sdk/api/PermissionApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,10 +14,12 @@ package co.permify.sdk.api; import co.permify.sdk.client.ApiException; +import co.permify.sdk.model.BulkCheckBody; import co.permify.sdk.model.CheckBody; import co.permify.sdk.model.LookupEntityBody; import co.permify.sdk.model.LookupEntityStreamBody; import co.permify.sdk.model.LookupSubjectBody; +import co.permify.sdk.model.PermissionBulkCheckResponse; import co.permify.sdk.model.PermissionCheckResponse; import co.permify.sdk.model.PermissionExpandBody; import co.permify.sdk.model.PermissionExpandResponse; @@ -46,6 +48,24 @@ public class PermissionApiTest { private final PermissionApi api = new PermissionApi(); + /** + * bulk check api + * + * Check multiple permissions in a single request. Maximum 100 requests allowed. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void permissionsBulkCheckTest() throws ApiException { + String tenantId = null; + BulkCheckBody body = null; + PermissionBulkCheckResponse response = + api.permissionsBulkCheck(tenantId, body); + + // TODO: test validations + } + /** * check api * diff --git a/src/test/java/co/permify/sdk/api/SchemaApiTest.java b/src/test/java/co/permify/sdk/api/SchemaApiTest.java index c59f940..37d8584 100644 --- a/src/test/java/co/permify/sdk/api/SchemaApiTest.java +++ b/src/test/java/co/permify/sdk/api/SchemaApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/api/TenancyApiTest.java b/src/test/java/co/permify/sdk/api/TenancyApiTest.java index 5b729bf..be490bc 100644 --- a/src/test/java/co/permify/sdk/api/TenancyApiTest.java +++ b/src/test/java/co/permify/sdk/api/TenancyApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/api/WatchApiTest.java b/src/test/java/co/permify/sdk/api/WatchApiTest.java index ec29496..f0c42b3 100644 --- a/src/test/java/co/permify/sdk/api/WatchApiTest.java +++ b/src/test/java/co/permify/sdk/api/WatchApiTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/AbstractTypeTest.java b/src/test/java/co/permify/sdk/model/AbstractTypeTest.java index ad40980..5b657cc 100644 --- a/src/test/java/co/permify/sdk/model/AbstractTypeTest.java +++ b/src/test/java/co/permify/sdk/model/AbstractTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/AnyTest.java b/src/test/java/co/permify/sdk/model/AnyTest.java index ee24a5d..1f2ad90 100644 --- a/src/test/java/co/permify/sdk/model/AnyTest.java +++ b/src/test/java/co/permify/sdk/model/AnyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ArgumentTest.java b/src/test/java/co/permify/sdk/model/ArgumentTest.java index ad5c52b..bd35381 100644 --- a/src/test/java/co/permify/sdk/model/ArgumentTest.java +++ b/src/test/java/co/permify/sdk/model/ArgumentTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/AttributeDefinitionTest.java b/src/test/java/co/permify/sdk/model/AttributeDefinitionTest.java index e39a62f..47030ac 100644 --- a/src/test/java/co/permify/sdk/model/AttributeDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/AttributeFilterTest.java b/src/test/java/co/permify/sdk/model/AttributeFilterTest.java index c70edb4..f6970c6 100644 --- a/src/test/java/co/permify/sdk/model/AttributeFilterTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeFilterTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/AttributeReadRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/AttributeReadRequestMetadataTest.java index a9b1452..159fce5 100644 --- a/src/test/java/co/permify/sdk/model/AttributeReadRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeReadRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/AttributeReadResponseTest.java b/src/test/java/co/permify/sdk/model/AttributeReadResponseTest.java index b1aa5db..9d73a66 100644 --- a/src/test/java/co/permify/sdk/model/AttributeReadResponseTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeReadResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/AttributeTest.java b/src/test/java/co/permify/sdk/model/AttributeTest.java index 5acb992..10afa1f 100644 --- a/src/test/java/co/permify/sdk/model/AttributeTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/AttributeTypeTest.java b/src/test/java/co/permify/sdk/model/AttributeTypeTest.java index 6127cdd..00717b7 100644 --- a/src/test/java/co/permify/sdk/model/AttributeTypeTest.java +++ b/src/test/java/co/permify/sdk/model/AttributeTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/BulkCheckBodyTest.java b/src/test/java/co/permify/sdk/model/BulkCheckBodyTest.java new file mode 100644 index 0000000..cc961bc --- /dev/null +++ b/src/test/java/co/permify/sdk/model/BulkCheckBodyTest.java @@ -0,0 +1,78 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import co.permify.sdk.model.Argument; +import co.permify.sdk.model.Context; +import co.permify.sdk.model.PermissionBulkCheckRequestItem; +import co.permify.sdk.model.PermissionCheckRequestMetadata; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for BulkCheckBody + */ +public class BulkCheckBodyTest { + private final BulkCheckBody model = new BulkCheckBody(); + + /** + * Model tests for BulkCheckBody + */ + @Test + public void testBulkCheckBody() { + // TODO: test BulkCheckBody + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'context' + */ + @Test + public void contextTest() { + // TODO: test context + } + + /** + * Test the property 'arguments' + */ + @Test + public void argumentsTest() { + // TODO: test arguments + } + +} diff --git a/src/test/java/co/permify/sdk/model/BundleDeleteBodyTest.java b/src/test/java/co/permify/sdk/model/BundleDeleteBodyTest.java index ad10eb9..8c586d0 100644 --- a/src/test/java/co/permify/sdk/model/BundleDeleteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/BundleDeleteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/BundleDeleteResponseTest.java b/src/test/java/co/permify/sdk/model/BundleDeleteResponseTest.java index e128567..f8116e9 100644 --- a/src/test/java/co/permify/sdk/model/BundleDeleteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/BundleDeleteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/BundleReadBodyTest.java b/src/test/java/co/permify/sdk/model/BundleReadBodyTest.java index 3b1626e..e4e2b28 100644 --- a/src/test/java/co/permify/sdk/model/BundleReadBodyTest.java +++ b/src/test/java/co/permify/sdk/model/BundleReadBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/BundleReadResponseTest.java b/src/test/java/co/permify/sdk/model/BundleReadResponseTest.java index 9520c0b..57ca508 100644 --- a/src/test/java/co/permify/sdk/model/BundleReadResponseTest.java +++ b/src/test/java/co/permify/sdk/model/BundleReadResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/BundleRunResponseTest.java b/src/test/java/co/permify/sdk/model/BundleRunResponseTest.java index 1db05db..669039e 100644 --- a/src/test/java/co/permify/sdk/model/BundleRunResponseTest.java +++ b/src/test/java/co/permify/sdk/model/BundleRunResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/BundleWriteBodyTest.java b/src/test/java/co/permify/sdk/model/BundleWriteBodyTest.java index 05c4d0a..e04024d 100644 --- a/src/test/java/co/permify/sdk/model/BundleWriteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/BundleWriteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/BundleWriteResponseTest.java b/src/test/java/co/permify/sdk/model/BundleWriteResponseTest.java index cfeb42b..8ff3309 100644 --- a/src/test/java/co/permify/sdk/model/BundleWriteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/BundleWriteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/CheckBodyTest.java b/src/test/java/co/permify/sdk/model/CheckBodyTest.java index 0413d20..d797c0c 100644 --- a/src/test/java/co/permify/sdk/model/CheckBodyTest.java +++ b/src/test/java/co/permify/sdk/model/CheckBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/CheckResultTest.java b/src/test/java/co/permify/sdk/model/CheckResultTest.java index a53956b..2a5eb9e 100644 --- a/src/test/java/co/permify/sdk/model/CheckResultTest.java +++ b/src/test/java/co/permify/sdk/model/CheckResultTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/CheckedExprTest.java b/src/test/java/co/permify/sdk/model/CheckedExprTest.java index e5b36c3..f3674ba 100644 --- a/src/test/java/co/permify/sdk/model/CheckedExprTest.java +++ b/src/test/java/co/permify/sdk/model/CheckedExprTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ChildTest.java b/src/test/java/co/permify/sdk/model/ChildTest.java index c441aba..1f029f4 100644 --- a/src/test/java/co/permify/sdk/model/ChildTest.java +++ b/src/test/java/co/permify/sdk/model/ChildTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ComponentTest.java b/src/test/java/co/permify/sdk/model/ComponentTest.java new file mode 100644 index 0000000..52bbfb3 --- /dev/null +++ b/src/test/java/co/permify/sdk/model/ComponentTest.java @@ -0,0 +1,32 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for Component + */ +public class ComponentTest { + /** + * Model tests for Component + */ + @Test + public void testComponent() { + // TODO: test Component + } + +} diff --git a/src/test/java/co/permify/sdk/model/ComprehensionTest.java b/src/test/java/co/permify/sdk/model/ComprehensionTest.java index 5eda61d..4d5468f 100644 --- a/src/test/java/co/permify/sdk/model/ComprehensionTest.java +++ b/src/test/java/co/permify/sdk/model/ComprehensionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -46,6 +46,14 @@ public void iterVarTest() { // TODO: test iterVar } + /** + * Test the property 'iterVar2' + */ + @Test + public void iterVar2Test() { + // TODO: test iterVar2 + } + /** * Test the property 'iterRange' */ diff --git a/src/test/java/co/permify/sdk/model/ComputedAttributeTest.java b/src/test/java/co/permify/sdk/model/ComputedAttributeTest.java index 1e3ed58..09c65a0 100644 --- a/src/test/java/co/permify/sdk/model/ComputedAttributeTest.java +++ b/src/test/java/co/permify/sdk/model/ComputedAttributeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ComputedUserSetTest.java b/src/test/java/co/permify/sdk/model/ComputedUserSetTest.java index d8867af..cc89660 100644 --- a/src/test/java/co/permify/sdk/model/ComputedUserSetTest.java +++ b/src/test/java/co/permify/sdk/model/ComputedUserSetTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ConstantTest.java b/src/test/java/co/permify/sdk/model/ConstantTest.java index 653fc18..b9df7cd 100644 --- a/src/test/java/co/permify/sdk/model/ConstantTest.java +++ b/src/test/java/co/permify/sdk/model/ConstantTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ContextTest.java b/src/test/java/co/permify/sdk/model/ContextTest.java index 4c74778..0abd745 100644 --- a/src/test/java/co/permify/sdk/model/ContextTest.java +++ b/src/test/java/co/permify/sdk/model/ContextTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/CreateListTest.java b/src/test/java/co/permify/sdk/model/CreateListTest.java index 72dda46..69f10e6 100644 --- a/src/test/java/co/permify/sdk/model/CreateListTest.java +++ b/src/test/java/co/permify/sdk/model/CreateListTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/CreateStructTest.java b/src/test/java/co/permify/sdk/model/CreateStructTest.java index ba9abe0..9036731 100644 --- a/src/test/java/co/permify/sdk/model/CreateStructTest.java +++ b/src/test/java/co/permify/sdk/model/CreateStructTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/DataBundleTest.java b/src/test/java/co/permify/sdk/model/DataBundleTest.java index 44b426a..764f81a 100644 --- a/src/test/java/co/permify/sdk/model/DataBundleTest.java +++ b/src/test/java/co/permify/sdk/model/DataBundleTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/DataChangeOperationTest.java b/src/test/java/co/permify/sdk/model/DataChangeOperationTest.java index f41c3b4..e7c7a84 100644 --- a/src/test/java/co/permify/sdk/model/DataChangeOperationTest.java +++ b/src/test/java/co/permify/sdk/model/DataChangeOperationTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/DataChangeTest.java b/src/test/java/co/permify/sdk/model/DataChangeTest.java index 1e2cdb6..2d4943e 100644 --- a/src/test/java/co/permify/sdk/model/DataChangeTest.java +++ b/src/test/java/co/permify/sdk/model/DataChangeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/DataChangesTest.java b/src/test/java/co/permify/sdk/model/DataChangesTest.java index df603bc..13445d5 100644 --- a/src/test/java/co/permify/sdk/model/DataChangesTest.java +++ b/src/test/java/co/permify/sdk/model/DataChangesTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/DataDeleteBodyTest.java b/src/test/java/co/permify/sdk/model/DataDeleteBodyTest.java index 738e681..20cb9a1 100644 --- a/src/test/java/co/permify/sdk/model/DataDeleteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/DataDeleteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/DataDeleteResponseTest.java b/src/test/java/co/permify/sdk/model/DataDeleteResponseTest.java index 8ea3c60..f60a8be 100644 --- a/src/test/java/co/permify/sdk/model/DataDeleteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/DataDeleteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/DataWriteBodyTest.java b/src/test/java/co/permify/sdk/model/DataWriteBodyTest.java index 01b53f9..23006a0 100644 --- a/src/test/java/co/permify/sdk/model/DataWriteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/DataWriteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/DataWriteRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/DataWriteRequestMetadataTest.java index c37473c..7a861a8 100644 --- a/src/test/java/co/permify/sdk/model/DataWriteRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/DataWriteRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/DataWriteResponseTest.java b/src/test/java/co/permify/sdk/model/DataWriteResponseTest.java index a72d139..17643e1 100644 --- a/src/test/java/co/permify/sdk/model/DataWriteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/DataWriteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/DeleteRelationshipsBodyTest.java b/src/test/java/co/permify/sdk/model/DeleteRelationshipsBodyTest.java index ec92cdd..b4693ab 100644 --- a/src/test/java/co/permify/sdk/model/DeleteRelationshipsBodyTest.java +++ b/src/test/java/co/permify/sdk/model/DeleteRelationshipsBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/EntityDefinitionReferenceTest.java b/src/test/java/co/permify/sdk/model/EntityDefinitionReferenceTest.java index ff63843..7613635 100644 --- a/src/test/java/co/permify/sdk/model/EntityDefinitionReferenceTest.java +++ b/src/test/java/co/permify/sdk/model/EntityDefinitionReferenceTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/EntityDefinitionTest.java b/src/test/java/co/permify/sdk/model/EntityDefinitionTest.java index ecef209..b9be3ba 100644 --- a/src/test/java/co/permify/sdk/model/EntityDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/EntityDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/EntityFilterTest.java b/src/test/java/co/permify/sdk/model/EntityFilterTest.java index 4df536d..6fa19d0 100644 --- a/src/test/java/co/permify/sdk/model/EntityFilterTest.java +++ b/src/test/java/co/permify/sdk/model/EntityFilterTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/EntityTest.java b/src/test/java/co/permify/sdk/model/EntityTest.java index eaccc01..8c5d347 100644 --- a/src/test/java/co/permify/sdk/model/EntityTest.java +++ b/src/test/java/co/permify/sdk/model/EntityTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/EntryTest.java b/src/test/java/co/permify/sdk/model/EntryTest.java index 583c9a3..c222adb 100644 --- a/src/test/java/co/permify/sdk/model/EntryTest.java +++ b/src/test/java/co/permify/sdk/model/EntryTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ExpandLeafTest.java b/src/test/java/co/permify/sdk/model/ExpandLeafTest.java index 39786e8..487230d 100644 --- a/src/test/java/co/permify/sdk/model/ExpandLeafTest.java +++ b/src/test/java/co/permify/sdk/model/ExpandLeafTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ExpandTreeNodeOperationTest.java b/src/test/java/co/permify/sdk/model/ExpandTreeNodeOperationTest.java index d300980..4722cc5 100644 --- a/src/test/java/co/permify/sdk/model/ExpandTreeNodeOperationTest.java +++ b/src/test/java/co/permify/sdk/model/ExpandTreeNodeOperationTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ExpandTreeNodeTest.java b/src/test/java/co/permify/sdk/model/ExpandTreeNodeTest.java index 0cb7f27..d2732d3 100644 --- a/src/test/java/co/permify/sdk/model/ExpandTreeNodeTest.java +++ b/src/test/java/co/permify/sdk/model/ExpandTreeNodeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ExprCallTest.java b/src/test/java/co/permify/sdk/model/ExprCallTest.java index d5678cb..dffddd1 100644 --- a/src/test/java/co/permify/sdk/model/ExprCallTest.java +++ b/src/test/java/co/permify/sdk/model/ExprCallTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ExprTest.java b/src/test/java/co/permify/sdk/model/ExprTest.java index 331818d..8b32274 100644 --- a/src/test/java/co/permify/sdk/model/ExprTest.java +++ b/src/test/java/co/permify/sdk/model/ExprTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ExtensionTest.java b/src/test/java/co/permify/sdk/model/ExtensionTest.java new file mode 100644 index 0000000..6a2b621 --- /dev/null +++ b/src/test/java/co/permify/sdk/model/ExtensionTest.java @@ -0,0 +1,68 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import co.permify.sdk.model.Component; +import co.permify.sdk.model.Version; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for Extension + */ +public class ExtensionTest { + private final Extension model = new Extension(); + + /** + * Model tests for Extension + */ + @Test + public void testExtension() { + // TODO: test Extension + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'affectedComponents' + */ + @Test + public void affectedComponentsTest() { + // TODO: test affectedComponents + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + +} diff --git a/src/test/java/co/permify/sdk/model/FunctionTypeTest.java b/src/test/java/co/permify/sdk/model/FunctionTypeTest.java index 117202b..49667dc 100644 --- a/src/test/java/co/permify/sdk/model/FunctionTypeTest.java +++ b/src/test/java/co/permify/sdk/model/FunctionTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/IdentTest.java b/src/test/java/co/permify/sdk/model/IdentTest.java index 5de3cea..29d2e49 100644 --- a/src/test/java/co/permify/sdk/model/IdentTest.java +++ b/src/test/java/co/permify/sdk/model/IdentTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/LeafTest.java b/src/test/java/co/permify/sdk/model/LeafTest.java index 37b3841..69df3a7 100644 --- a/src/test/java/co/permify/sdk/model/LeafTest.java +++ b/src/test/java/co/permify/sdk/model/LeafTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ListTypeTest.java b/src/test/java/co/permify/sdk/model/ListTypeTest.java index c77fe33..027ab03 100644 --- a/src/test/java/co/permify/sdk/model/ListTypeTest.java +++ b/src/test/java/co/permify/sdk/model/ListTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/LookupEntityBodyTest.java b/src/test/java/co/permify/sdk/model/LookupEntityBodyTest.java index 3c18b8f..e55bccf 100644 --- a/src/test/java/co/permify/sdk/model/LookupEntityBodyTest.java +++ b/src/test/java/co/permify/sdk/model/LookupEntityBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/LookupEntityStreamBodyTest.java b/src/test/java/co/permify/sdk/model/LookupEntityStreamBodyTest.java index 4fb5d86..249f29a 100644 --- a/src/test/java/co/permify/sdk/model/LookupEntityStreamBodyTest.java +++ b/src/test/java/co/permify/sdk/model/LookupEntityStreamBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/LookupSubjectBodyTest.java b/src/test/java/co/permify/sdk/model/LookupSubjectBodyTest.java index 05a4f38..5ba09e5 100644 --- a/src/test/java/co/permify/sdk/model/LookupSubjectBodyTest.java +++ b/src/test/java/co/permify/sdk/model/LookupSubjectBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/MapTypeTest.java b/src/test/java/co/permify/sdk/model/MapTypeTest.java index 8a47996..b7e7ec8 100644 --- a/src/test/java/co/permify/sdk/model/MapTypeTest.java +++ b/src/test/java/co/permify/sdk/model/MapTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PartialWriteBodyTest.java b/src/test/java/co/permify/sdk/model/PartialWriteBodyTest.java index 896ca5a..f3f3b89 100644 --- a/src/test/java/co/permify/sdk/model/PartialWriteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/PartialWriteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PartialsTest.java b/src/test/java/co/permify/sdk/model/PartialsTest.java index 193ac6c..f67d50f 100644 --- a/src/test/java/co/permify/sdk/model/PartialsTest.java +++ b/src/test/java/co/permify/sdk/model/PartialsTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionBulkCheckRequestItemTest.java b/src/test/java/co/permify/sdk/model/PermissionBulkCheckRequestItemTest.java new file mode 100644 index 0000000..76851e0 --- /dev/null +++ b/src/test/java/co/permify/sdk/model/PermissionBulkCheckRequestItemTest.java @@ -0,0 +1,66 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import co.permify.sdk.model.Entity; +import co.permify.sdk.model.Subject; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for PermissionBulkCheckRequestItem + */ +public class PermissionBulkCheckRequestItemTest { + private final PermissionBulkCheckRequestItem model = new PermissionBulkCheckRequestItem(); + + /** + * Model tests for PermissionBulkCheckRequestItem + */ + @Test + public void testPermissionBulkCheckRequestItem() { + // TODO: test PermissionBulkCheckRequestItem + } + + /** + * Test the property 'entity' + */ + @Test + public void entityTest() { + // TODO: test entity + } + + /** + * Test the property 'permission' + */ + @Test + public void permissionTest() { + // TODO: test permission + } + + /** + * Test the property 'subject' + */ + @Test + public void subjectTest() { + // TODO: test subject + } + +} diff --git a/src/test/java/co/permify/sdk/model/PermissionBulkCheckResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionBulkCheckResponseTest.java new file mode 100644 index 0000000..ec80bf5 --- /dev/null +++ b/src/test/java/co/permify/sdk/model/PermissionBulkCheckResponseTest.java @@ -0,0 +1,51 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import co.permify.sdk.model.PermissionCheckResponse; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for PermissionBulkCheckResponse + */ +public class PermissionBulkCheckResponseTest { + private final PermissionBulkCheckResponse model = new PermissionBulkCheckResponse(); + + /** + * Model tests for PermissionBulkCheckResponse + */ + @Test + public void testPermissionBulkCheckResponse() { + // TODO: test PermissionBulkCheckResponse + } + + /** + * Test the property 'results' + */ + @Test + public void resultsTest() { + // TODO: test results + } + +} diff --git a/src/test/java/co/permify/sdk/model/PermissionCheckRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionCheckRequestMetadataTest.java index 9c124e7..a682408 100644 --- a/src/test/java/co/permify/sdk/model/PermissionCheckRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionCheckRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionCheckResponseMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionCheckResponseMetadataTest.java index 51cc09f..5c09eb1 100644 --- a/src/test/java/co/permify/sdk/model/PermissionCheckResponseMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionCheckResponseMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionCheckResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionCheckResponseTest.java index c9e6c65..bdf27d5 100644 --- a/src/test/java/co/permify/sdk/model/PermissionCheckResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionCheckResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionDefinitionTest.java b/src/test/java/co/permify/sdk/model/PermissionDefinitionTest.java index 5844a15..2222a4c 100644 --- a/src/test/java/co/permify/sdk/model/PermissionDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionExpandBodyTest.java b/src/test/java/co/permify/sdk/model/PermissionExpandBodyTest.java index b17a74d..2f2cce0 100644 --- a/src/test/java/co/permify/sdk/model/PermissionExpandBodyTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionExpandBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionExpandRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionExpandRequestMetadataTest.java index 89826a8..d8de3f2 100644 --- a/src/test/java/co/permify/sdk/model/PermissionExpandRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionExpandRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionExpandResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionExpandResponseTest.java index fcaa76d..188b1f9 100644 --- a/src/test/java/co/permify/sdk/model/PermissionExpandResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionExpandResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadataTest.java index d171148..d9a040f 100644 --- a/src/test/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionLookupEntityRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionLookupEntityResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionLookupEntityResponseTest.java index 09c6a35..048bf36 100644 --- a/src/test/java/co/permify/sdk/model/PermissionLookupEntityResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionLookupEntityResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionLookupEntityStreamResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionLookupEntityStreamResponseTest.java index cd2eb6a..23b7975 100644 --- a/src/test/java/co/permify/sdk/model/PermissionLookupEntityStreamResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionLookupEntityStreamResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadataTest.java index 4333644..5ca2188 100644 --- a/src/test/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionLookupSubjectRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionLookupSubjectResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionLookupSubjectResponseTest.java index 71cc183..e5b3616 100644 --- a/src/test/java/co/permify/sdk/model/PermissionLookupSubjectResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionLookupSubjectResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadataTest.java index 11832ed..03f3896 100644 --- a/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionResponseTest.java b/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionResponseTest.java index e5e6486..ac43b61 100644 --- a/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionResponseTest.java +++ b/src/test/java/co/permify/sdk/model/PermissionSubjectPermissionResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/PrimitiveTypeTest.java b/src/test/java/co/permify/sdk/model/PrimitiveTypeTest.java index 7b298e5..15ee40a 100644 --- a/src/test/java/co/permify/sdk/model/PrimitiveTypeTest.java +++ b/src/test/java/co/permify/sdk/model/PrimitiveTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ReadAttributesBodyTest.java b/src/test/java/co/permify/sdk/model/ReadAttributesBodyTest.java index 6c33531..a48d59f 100644 --- a/src/test/java/co/permify/sdk/model/ReadAttributesBodyTest.java +++ b/src/test/java/co/permify/sdk/model/ReadAttributesBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ReadRelationshipsBodyTest.java b/src/test/java/co/permify/sdk/model/ReadRelationshipsBodyTest.java index c77f0d5..95ac0d3 100644 --- a/src/test/java/co/permify/sdk/model/ReadRelationshipsBodyTest.java +++ b/src/test/java/co/permify/sdk/model/ReadRelationshipsBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RelationDefinitionTest.java b/src/test/java/co/permify/sdk/model/RelationDefinitionTest.java index 0de1f08..781ac4b 100644 --- a/src/test/java/co/permify/sdk/model/RelationDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/RelationDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RelationReferenceTest.java b/src/test/java/co/permify/sdk/model/RelationReferenceTest.java index efa11c9..80d77f8 100644 --- a/src/test/java/co/permify/sdk/model/RelationReferenceTest.java +++ b/src/test/java/co/permify/sdk/model/RelationReferenceTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RelationshipDeleteResponseTest.java b/src/test/java/co/permify/sdk/model/RelationshipDeleteResponseTest.java index 29bf785..d37a5bd 100644 --- a/src/test/java/co/permify/sdk/model/RelationshipDeleteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/RelationshipDeleteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RelationshipReadRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/RelationshipReadRequestMetadataTest.java index 41b1a40..001aa25 100644 --- a/src/test/java/co/permify/sdk/model/RelationshipReadRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/RelationshipReadRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RelationshipReadResponseTest.java b/src/test/java/co/permify/sdk/model/RelationshipReadResponseTest.java index 9059d79..bd07556 100644 --- a/src/test/java/co/permify/sdk/model/RelationshipReadResponseTest.java +++ b/src/test/java/co/permify/sdk/model/RelationshipReadResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RelationshipWriteRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/RelationshipWriteRequestMetadataTest.java index 226c587..072ee84 100644 --- a/src/test/java/co/permify/sdk/model/RelationshipWriteRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/RelationshipWriteRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RelationshipWriteResponseTest.java b/src/test/java/co/permify/sdk/model/RelationshipWriteResponseTest.java index d5fc610..daf4979 100644 --- a/src/test/java/co/permify/sdk/model/RelationshipWriteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/RelationshipWriteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RewriteOperationTest.java b/src/test/java/co/permify/sdk/model/RewriteOperationTest.java index bcf3937..ec4d1a1 100644 --- a/src/test/java/co/permify/sdk/model/RewriteOperationTest.java +++ b/src/test/java/co/permify/sdk/model/RewriteOperationTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RewriteTest.java b/src/test/java/co/permify/sdk/model/RewriteTest.java index 3ea82c9..5c9e475 100644 --- a/src/test/java/co/permify/sdk/model/RewriteTest.java +++ b/src/test/java/co/permify/sdk/model/RewriteTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RuleDefinitionTest.java b/src/test/java/co/permify/sdk/model/RuleDefinitionTest.java index 67d0c7c..5d4a89d 100644 --- a/src/test/java/co/permify/sdk/model/RuleDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/RuleDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/RunBundleBodyTest.java b/src/test/java/co/permify/sdk/model/RunBundleBodyTest.java index 44c16ce..6629805 100644 --- a/src/test/java/co/permify/sdk/model/RunBundleBodyTest.java +++ b/src/test/java/co/permify/sdk/model/RunBundleBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaDefinitionReferenceTest.java b/src/test/java/co/permify/sdk/model/SchemaDefinitionReferenceTest.java index 33297f0..e31bd42 100644 --- a/src/test/java/co/permify/sdk/model/SchemaDefinitionReferenceTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaDefinitionReferenceTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaDefinitionTest.java b/src/test/java/co/permify/sdk/model/SchemaDefinitionTest.java index 4529016..92c0dbe 100644 --- a/src/test/java/co/permify/sdk/model/SchemaDefinitionTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaDefinitionTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaListBodyTest.java b/src/test/java/co/permify/sdk/model/SchemaListBodyTest.java index 0973bf5..b94a0c1 100644 --- a/src/test/java/co/permify/sdk/model/SchemaListBodyTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaListBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaListResponseTest.java b/src/test/java/co/permify/sdk/model/SchemaListResponseTest.java index 6696f13..7fe24f6 100644 --- a/src/test/java/co/permify/sdk/model/SchemaListResponseTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaListResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaListTest.java b/src/test/java/co/permify/sdk/model/SchemaListTest.java index d230266..9f921f7 100644 --- a/src/test/java/co/permify/sdk/model/SchemaListTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaListTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadataTest.java index 0e1bf13..f11cdb4 100644 --- a/src/test/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaPartialWriteRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaPartialWriteResponseTest.java b/src/test/java/co/permify/sdk/model/SchemaPartialWriteResponseTest.java index 76a282e..2952573 100644 --- a/src/test/java/co/permify/sdk/model/SchemaPartialWriteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaPartialWriteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaReadBodyTest.java b/src/test/java/co/permify/sdk/model/SchemaReadBodyTest.java index 30a1375..0cbff94 100644 --- a/src/test/java/co/permify/sdk/model/SchemaReadBodyTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaReadBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaReadRequestMetadataTest.java b/src/test/java/co/permify/sdk/model/SchemaReadRequestMetadataTest.java index 4ddf058..cebdcdc 100644 --- a/src/test/java/co/permify/sdk/model/SchemaReadRequestMetadataTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaReadRequestMetadataTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaReadResponseTest.java b/src/test/java/co/permify/sdk/model/SchemaReadResponseTest.java index cfac5d3..a894430 100644 --- a/src/test/java/co/permify/sdk/model/SchemaReadResponseTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaReadResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaWriteBodyTest.java b/src/test/java/co/permify/sdk/model/SchemaWriteBodyTest.java index a67e13e..8af54e9 100644 --- a/src/test/java/co/permify/sdk/model/SchemaWriteBodyTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaWriteBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SchemaWriteResponseTest.java b/src/test/java/co/permify/sdk/model/SchemaWriteResponseTest.java index 3e23dde..d5cb771 100644 --- a/src/test/java/co/permify/sdk/model/SchemaWriteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/SchemaWriteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SelectTest.java b/src/test/java/co/permify/sdk/model/SelectTest.java index 4892c59..704752c 100644 --- a/src/test/java/co/permify/sdk/model/SelectTest.java +++ b/src/test/java/co/permify/sdk/model/SelectTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SourceInfoTest.java b/src/test/java/co/permify/sdk/model/SourceInfoTest.java index 9901433..fd0e54d 100644 --- a/src/test/java/co/permify/sdk/model/SourceInfoTest.java +++ b/src/test/java/co/permify/sdk/model/SourceInfoTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,6 +14,7 @@ package co.permify.sdk.model; import co.permify.sdk.model.Expr; +import co.permify.sdk.model.Extension; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -82,4 +83,12 @@ public void macroCallsTest() { // TODO: test macroCalls } + /** + * Test the property 'extensions' + */ + @Test + public void extensionsTest() { + // TODO: test extensions + } + } diff --git a/src/test/java/co/permify/sdk/model/StatusTest.java b/src/test/java/co/permify/sdk/model/StatusTest.java index 5bc559e..3d73bd4 100644 --- a/src/test/java/co/permify/sdk/model/StatusTest.java +++ b/src/test/java/co/permify/sdk/model/StatusTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponseTest.java b/src/test/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponseTest.java index 344c984..90156eb 100644 --- a/src/test/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponseTest.java +++ b/src/test/java/co/permify/sdk/model/StreamResultOfPermissionLookupEntityStreamResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/StreamResultOfWatchResponseTest.java b/src/test/java/co/permify/sdk/model/StreamResultOfWatchResponseTest.java index a23267b..8fafd7e 100644 --- a/src/test/java/co/permify/sdk/model/StreamResultOfWatchResponseTest.java +++ b/src/test/java/co/permify/sdk/model/StreamResultOfWatchResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/StringArrayValueTest.java b/src/test/java/co/permify/sdk/model/StringArrayValueTest.java index 3ddee27..3a6e64c 100644 --- a/src/test/java/co/permify/sdk/model/StringArrayValueTest.java +++ b/src/test/java/co/permify/sdk/model/StringArrayValueTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SubjectFilterTest.java b/src/test/java/co/permify/sdk/model/SubjectFilterTest.java index 10977e9..0660ecc 100644 --- a/src/test/java/co/permify/sdk/model/SubjectFilterTest.java +++ b/src/test/java/co/permify/sdk/model/SubjectFilterTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SubjectPermissionBodyTest.java b/src/test/java/co/permify/sdk/model/SubjectPermissionBodyTest.java index 5edce2e..d75f7ef 100644 --- a/src/test/java/co/permify/sdk/model/SubjectPermissionBodyTest.java +++ b/src/test/java/co/permify/sdk/model/SubjectPermissionBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SubjectTest.java b/src/test/java/co/permify/sdk/model/SubjectTest.java index a216a8f..0695ea7 100644 --- a/src/test/java/co/permify/sdk/model/SubjectTest.java +++ b/src/test/java/co/permify/sdk/model/SubjectTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/SubjectsTest.java b/src/test/java/co/permify/sdk/model/SubjectsTest.java index d0ef830..8d59d96 100644 --- a/src/test/java/co/permify/sdk/model/SubjectsTest.java +++ b/src/test/java/co/permify/sdk/model/SubjectsTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/TenantCreateRequestTest.java b/src/test/java/co/permify/sdk/model/TenantCreateRequestTest.java index d7f6ccc..69002ab 100644 --- a/src/test/java/co/permify/sdk/model/TenantCreateRequestTest.java +++ b/src/test/java/co/permify/sdk/model/TenantCreateRequestTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/TenantCreateResponseTest.java b/src/test/java/co/permify/sdk/model/TenantCreateResponseTest.java index d483994..c4f8282 100644 --- a/src/test/java/co/permify/sdk/model/TenantCreateResponseTest.java +++ b/src/test/java/co/permify/sdk/model/TenantCreateResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/TenantDeleteResponseTest.java b/src/test/java/co/permify/sdk/model/TenantDeleteResponseTest.java index 8a2164b..32b93d9 100644 --- a/src/test/java/co/permify/sdk/model/TenantDeleteResponseTest.java +++ b/src/test/java/co/permify/sdk/model/TenantDeleteResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/TenantListRequestTest.java b/src/test/java/co/permify/sdk/model/TenantListRequestTest.java index 18a24c2..a6146bf 100644 --- a/src/test/java/co/permify/sdk/model/TenantListRequestTest.java +++ b/src/test/java/co/permify/sdk/model/TenantListRequestTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/TenantListResponseTest.java b/src/test/java/co/permify/sdk/model/TenantListResponseTest.java index a3d02db..768316c 100644 --- a/src/test/java/co/permify/sdk/model/TenantListResponseTest.java +++ b/src/test/java/co/permify/sdk/model/TenantListResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/TenantTest.java b/src/test/java/co/permify/sdk/model/TenantTest.java index ae57535..ac5ac6a 100644 --- a/src/test/java/co/permify/sdk/model/TenantTest.java +++ b/src/test/java/co/permify/sdk/model/TenantTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/TupleFilterTest.java b/src/test/java/co/permify/sdk/model/TupleFilterTest.java index 011f1cd..9173a26 100644 --- a/src/test/java/co/permify/sdk/model/TupleFilterTest.java +++ b/src/test/java/co/permify/sdk/model/TupleFilterTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/TupleSetTest.java b/src/test/java/co/permify/sdk/model/TupleSetTest.java index 2571093..21fb328 100644 --- a/src/test/java/co/permify/sdk/model/TupleSetTest.java +++ b/src/test/java/co/permify/sdk/model/TupleSetTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/TupleTest.java b/src/test/java/co/permify/sdk/model/TupleTest.java index ef16ef1..89ef5f9 100644 --- a/src/test/java/co/permify/sdk/model/TupleTest.java +++ b/src/test/java/co/permify/sdk/model/TupleTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/TupleToUserSetTest.java b/src/test/java/co/permify/sdk/model/TupleToUserSetTest.java index 047b647..087c841 100644 --- a/src/test/java/co/permify/sdk/model/TupleToUserSetTest.java +++ b/src/test/java/co/permify/sdk/model/TupleToUserSetTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/V1CallTest.java b/src/test/java/co/permify/sdk/model/V1CallTest.java index 79bfa67..789e0d0 100644 --- a/src/test/java/co/permify/sdk/model/V1CallTest.java +++ b/src/test/java/co/permify/sdk/model/V1CallTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/V1ExpandTest.java b/src/test/java/co/permify/sdk/model/V1ExpandTest.java index a6c2c53..81d0c58 100644 --- a/src/test/java/co/permify/sdk/model/V1ExpandTest.java +++ b/src/test/java/co/permify/sdk/model/V1ExpandTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/V1OperationTest.java b/src/test/java/co/permify/sdk/model/V1OperationTest.java index 1961bba..a656ceb 100644 --- a/src/test/java/co/permify/sdk/model/V1OperationTest.java +++ b/src/test/java/co/permify/sdk/model/V1OperationTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/V1alpha1ReferenceTest.java b/src/test/java/co/permify/sdk/model/V1alpha1ReferenceTest.java index 642894c..c5eea09 100644 --- a/src/test/java/co/permify/sdk/model/V1alpha1ReferenceTest.java +++ b/src/test/java/co/permify/sdk/model/V1alpha1ReferenceTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/V1alpha1TypeTest.java b/src/test/java/co/permify/sdk/model/V1alpha1TypeTest.java index e6f864b..7ef8047 100644 --- a/src/test/java/co/permify/sdk/model/V1alpha1TypeTest.java +++ b/src/test/java/co/permify/sdk/model/V1alpha1TypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/ValuesTest.java b/src/test/java/co/permify/sdk/model/ValuesTest.java index 48f70df..b262e47 100644 --- a/src/test/java/co/permify/sdk/model/ValuesTest.java +++ b/src/test/java/co/permify/sdk/model/ValuesTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/VersionTest.java b/src/test/java/co/permify/sdk/model/VersionTest.java new file mode 100644 index 0000000..24d5693 --- /dev/null +++ b/src/test/java/co/permify/sdk/model/VersionTest.java @@ -0,0 +1,56 @@ +/* + * Permify API + * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. + * + * The version of the OpenAPI document: v1.5.4 + * Contact: hello@permify.co + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package co.permify.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for Version + */ +public class VersionTest { + private final Version model = new Version(); + + /** + * Model tests for Version + */ + @Test + public void testVersion() { + // TODO: test Version + } + + /** + * Test the property 'major' + */ + @Test + public void majorTest() { + // TODO: test major + } + + /** + * Test the property 'minor' + */ + @Test + public void minorTest() { + // TODO: test minor + } + +} diff --git a/src/test/java/co/permify/sdk/model/WatchBodyTest.java b/src/test/java/co/permify/sdk/model/WatchBodyTest.java index 57aaadf..818ba91 100644 --- a/src/test/java/co/permify/sdk/model/WatchBodyTest.java +++ b/src/test/java/co/permify/sdk/model/WatchBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/WatchResponseTest.java b/src/test/java/co/permify/sdk/model/WatchResponseTest.java index 8b13641..69d49e3 100644 --- a/src/test/java/co/permify/sdk/model/WatchResponseTest.java +++ b/src/test/java/co/permify/sdk/model/WatchResponseTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/WellKnownTypeTest.java b/src/test/java/co/permify/sdk/model/WellKnownTypeTest.java index 9fc0b94..97cb97f 100644 --- a/src/test/java/co/permify/sdk/model/WellKnownTypeTest.java +++ b/src/test/java/co/permify/sdk/model/WellKnownTypeTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/co/permify/sdk/model/WriteRelationshipsBodyTest.java b/src/test/java/co/permify/sdk/model/WriteRelationshipsBodyTest.java index 7ec1ad1..dc0eed5 100644 --- a/src/test/java/co/permify/sdk/model/WriteRelationshipsBodyTest.java +++ b/src/test/java/co/permify/sdk/model/WriteRelationshipsBodyTest.java @@ -2,7 +2,7 @@ * Permify API * Permify is an open source authorization service for creating fine-grained and scalable authorization systems. * - * The version of the OpenAPI document: v1.4.4 + * The version of the OpenAPI document: v1.5.4 * Contact: hello@permify.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).