Skip to content

Commit 8f98fc9

Browse files
author
GitHub Actions Bot
committed
Update python SDK from OpenAPI changes
1 parent a87d29d commit 8f98fc9

File tree

276 files changed

+503
-326
lines changed

Some content is hidden

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

276 files changed

+503
-326
lines changed

Diff for: docs/Argument.md

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Argument defines the type of argument in a Call. It can be either a ComputedAttr
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**computed_attribute** | [**ComputedAttribute**](ComputedAttribute.md) | | [optional]
10-
**context_attribute** | [**ContextAttribute**](ContextAttribute.md) | | [optional]
1110

1211
## Example
1312

Diff for: docs/LookupEntityBody.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Name | Type | Description | Notes
1111
**permission** | **str** | Name of the permission to check, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. | [optional]
1212
**subject** | [**Subject**](Subject.md) | | [optional]
1313
**context** | [**Context**](Context.md) | | [optional]
14-
**page_size** | **int** | page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. | [optional]
14+
**scope** | [**Dict[str, StringArrayValue]**](StringArrayValue.md) | Scope: A map that associates entity types with lists of identifiers. Each entry helps filter requests by specifying which entities are relevant to the operation. | [optional]
15+
**page_size** | **int** | page_size is the number of entities to be returned in the response. The value should be between 1 and 100. | [optional]
1516
**continuous_token** | **str** | continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. | [optional]
1617

1718
## Example

Diff for: docs/LookupEntityStreamBody.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Name | Type | Description | Notes
1111
**permission** | **str** | Name of the permission to check, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. | [optional]
1212
**subject** | [**Subject**](Subject.md) | | [optional]
1313
**context** | [**Context**](Context.md) | | [optional]
14-
**page_size** | **int** | page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. | [optional]
14+
**scope** | [**Dict[str, StringArrayValue]**](StringArrayValue.md) | Scope: A map that associates entity types with lists of identifiers. Each entry helps filter requests by specifying which entities are relevant to the operation. | [optional]
15+
**page_size** | **int** | page_size is the number of entities to be returned in the response. The value should be between 1 and 100. | [optional]
1516
**continuous_token** | **str** | continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. | [optional]
1617

1718
## Example

Diff for: docs/LookupSubjectBody.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**permission** | **str** | Permission to be checked, can be a permission or relation. Required, and must match the pattern \"^([a-zA-Z][a-zA-Z0-9_]{1,62}[a-zA-Z0-9])$\", max 64 bytes. | [optional]
1212
**subject_reference** | [**RelationReference**](RelationReference.md) | | [optional]
1313
**context** | [**Context**](Context.md) | | [optional]
14-
**page_size** | **int** | page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. | [optional]
14+
**page_size** | **int** | page_size is the number of subjects to be returned in the response. The value should be between 1 and 100. | [optional]
1515
**continuous_token** | **str** | continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. | [optional]
1616

1717
## Example

Diff for: docs/SchemaListBody.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SchemaListRequest is the request message for the List method in the Schema servi
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**page_size** | **int** | page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. | [optional]
9+
**page_size** | **int** | page_size is the number of schemas to be returned in the response. The value should be between 1 and 100. | [optional]
1010
**continuous_token** | **str** | continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. | [optional]
1111

1212
## Example

Diff for: docs/StringArrayValue.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# StringArrayValue
2+
3+
Wrapper for an array of strings.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**data** | **List[str]** | The array of strings. | [optional]
10+
11+
## Example
12+
13+
```python
14+
from permify.models.string_array_value import StringArrayValue
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of StringArrayValue from a JSON string
19+
string_array_value_instance = StringArrayValue.from_json(json)
20+
# print the JSON string representation of the object
21+
print(StringArrayValue.to_json())
22+
23+
# convert the object into a dict
24+
string_array_value_dict = string_array_value_instance.to_dict()
25+
# create an instance of StringArrayValue from a dict
26+
string_array_value_from_dict = StringArrayValue.from_dict(string_array_value_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

Diff for: permify/api/bundle_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/api/data_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/api/health_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/api/permission_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/api/schema_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/api/tenancy_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/api/watch_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/abstract_type.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/any.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/argument.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -21,7 +21,6 @@
2121
from pydantic import BaseModel, ConfigDict, Field
2222
from typing import Any, ClassVar, Dict, List, Optional
2323
from permify.models.computed_attribute import ComputedAttribute
24-
from permify.models.context_attribute import ContextAttribute
2524
from typing import Optional, Set
2625
from typing_extensions import Self
2726

@@ -30,8 +29,7 @@ class Argument(BaseModel):
3029
Argument defines the type of argument in a Call. It can be either a ComputedAttribute or a ContextAttribute.
3130
""" # noqa: E501
3231
computed_attribute: Optional[ComputedAttribute] = Field(default=None, alias="computedAttribute")
33-
context_attribute: Optional[ContextAttribute] = Field(default=None, alias="contextAttribute")
34-
__properties: ClassVar[List[str]] = ["computedAttribute", "contextAttribute"]
32+
__properties: ClassVar[List[str]] = ["computedAttribute"]
3533

3634
model_config = ConfigDict(
3735
populate_by_name=True,
@@ -75,9 +73,6 @@ def to_dict(self) -> Dict[str, Any]:
7573
# override the default output from pydantic by calling `to_dict()` of computed_attribute
7674
if self.computed_attribute:
7775
_dict['computedAttribute'] = self.computed_attribute.to_dict()
78-
# override the default output from pydantic by calling `to_dict()` of context_attribute
79-
if self.context_attribute:
80-
_dict['contextAttribute'] = self.context_attribute.to_dict()
8176
return _dict
8277

8378
@classmethod
@@ -90,8 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9085
return cls.model_validate(obj)
9186

9287
_obj = cls.model_validate({
93-
"computedAttribute": ComputedAttribute.from_dict(obj["computedAttribute"]) if obj.get("computedAttribute") is not None else None,
94-
"contextAttribute": ContextAttribute.from_dict(obj["contextAttribute"]) if obj.get("contextAttribute") is not None else None
88+
"computedAttribute": ComputedAttribute.from_dict(obj["computedAttribute"]) if obj.get("computedAttribute") is not None else None
9589
})
9690
return _obj
9791

Diff for: permify/models/attribute.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/attribute_definition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/attribute_filter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/attribute_read_request_metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/attribute_read_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/attribute_type.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/bundle_delete_body.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/bundle_delete_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/bundle_read_body.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/bundle_read_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/bundle_run_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/bundle_write_body.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/bundle_write_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/check_result.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/checked_expr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/child.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/comprehension.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/computed_attribute.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/computed_user_set.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/constant.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

Diff for: permify/models/context.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v1.0.7
8+
The version of the OpenAPI document: v1.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

0 commit comments

Comments
 (0)