Skip to content

Commit 36bd43e

Browse files
committed
release: v0.1.1 with upgrade dependencies
1 parent a8f35ef commit 36bd43e

File tree

13 files changed

+97
-91
lines changed

13 files changed

+97
-91
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v0.1.1
4+
5+
### [0.1.1](https://github.com/openfga/python-sdk/compare/v0.1.0...v0.1.1) (2023-01-17)
6+
7+
- chore(deps): upgrade dependencies
8+
39
## v0.1.0
410

511
### [0.1.0](https://github.com/openfga/python-sdk/compare/v0.0.1...v0.1.0) (2022-12-14)

README.md

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -655,81 +655,81 @@ async def list_objects():
655655

656656
Class | Method | HTTP request | Description
657657
------------ | ------------- | ------------- | -------------
658-
*OpenFgaApi* | [**check**](docs/OpenFgaApi.md#check) | **POST** /stores/{store_id}/check | Check whether a user is authorized to access an object
659-
*OpenFgaApi* | [**create_store**](docs/OpenFgaApi.md#create_store) | **POST** /stores | Create a store
660-
*OpenFgaApi* | [**delete_store**](docs/OpenFgaApi.md#delete_store) | **DELETE** /stores/{store_id} | Delete a store
661-
*OpenFgaApi* | [**expand**](docs/OpenFgaApi.md#expand) | **POST** /stores/{store_id}/expand | Expand all relationships in userset tree format, and following userset rewrite rules. Useful to reason about and debug a certain relationship
662-
*OpenFgaApi* | [**get_store**](docs/OpenFgaApi.md#get_store) | **GET** /stores/{store_id} | Get a store
663-
*OpenFgaApi* | [**list_objects**](docs/OpenFgaApi.md#list_objects) | **POST** /stores/{store_id}/list-objects | [EXPERIMENTAL] Get all object ids of the given type that the user has a relation with
664-
*OpenFgaApi* | [**list_stores**](docs/OpenFgaApi.md#list_stores) | **GET** /stores | List all stores
665-
*OpenFgaApi* | [**read**](docs/OpenFgaApi.md#read) | **POST** /stores/{store_id}/read | Get tuples from the store that matches a query, without following userset rewrite rules
666-
*OpenFgaApi* | [**read_assertions**](docs/OpenFgaApi.md#read_assertions) | **GET** /stores/{store_id}/assertions/{authorization_model_id} | Read assertions for an authorization model ID
667-
*OpenFgaApi* | [**read_authorization_model**](docs/OpenFgaApi.md#read_authorization_model) | **GET** /stores/{store_id}/authorization-models/{id} | Return a particular version of an authorization model
668-
*OpenFgaApi* | [**read_authorization_models**](docs/OpenFgaApi.md#read_authorization_models) | **GET** /stores/{store_id}/authorization-models | Return all the authorization models for a particular store
669-
*OpenFgaApi* | [**read_changes**](docs/OpenFgaApi.md#read_changes) | **GET** /stores/{store_id}/changes | Return a list of all the tuple changes
670-
*OpenFgaApi* | [**write**](docs/OpenFgaApi.md#write) | **POST** /stores/{store_id}/write | Add or delete tuples from the store
671-
*OpenFgaApi* | [**write_assertions**](docs/OpenFgaApi.md#write_assertions) | **PUT** /stores/{store_id}/assertions/{authorization_model_id} | Upsert assertions for an authorization model ID
672-
*OpenFgaApi* | [**write_authorization_model**](docs/OpenFgaApi.md#write_authorization_model) | **POST** /stores/{store_id}/authorization-models | Create a new authorization model
658+
*OpenFgaApi* | [**check**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#check) | **POST** /stores/{store_id}/check | Check whether a user is authorized to access an object
659+
*OpenFgaApi* | [**create_store**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#create_store) | **POST** /stores | Create a store
660+
*OpenFgaApi* | [**delete_store**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#delete_store) | **DELETE** /stores/{store_id} | Delete a store
661+
*OpenFgaApi* | [**expand**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#expand) | **POST** /stores/{store_id}/expand | Expand all relationships in userset tree format, and following userset rewrite rules. Useful to reason about and debug a certain relationship
662+
*OpenFgaApi* | [**get_store**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#get_store) | **GET** /stores/{store_id} | Get a store
663+
*OpenFgaApi* | [**list_objects**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#list_objects) | **POST** /stores/{store_id}/list-objects | [EXPERIMENTAL] Get all objects of the given type that the user has a relation with
664+
*OpenFgaApi* | [**list_stores**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#list_stores) | **GET** /stores | List all stores
665+
*OpenFgaApi* | [**read**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#read) | **POST** /stores/{store_id}/read | Get tuples from the store that matches a query, without following userset rewrite rules
666+
*OpenFgaApi* | [**read_assertions**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#read_assertions) | **GET** /stores/{store_id}/assertions/{authorization_model_id} | Read assertions for an authorization model ID
667+
*OpenFgaApi* | [**read_authorization_model**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#read_authorization_model) | **GET** /stores/{store_id}/authorization-models/{id} | Return a particular version of an authorization model
668+
*OpenFgaApi* | [**read_authorization_models**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#read_authorization_models) | **GET** /stores/{store_id}/authorization-models | Return all the authorization models for a particular store
669+
*OpenFgaApi* | [**read_changes**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#read_changes) | **GET** /stores/{store_id}/changes | Return a list of all the tuple changes
670+
*OpenFgaApi* | [**write**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#write) | **POST** /stores/{store_id}/write | Add or delete tuples from the store
671+
*OpenFgaApi* | [**write_assertions**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#write_assertions) | **PUT** /stores/{store_id}/assertions/{authorization_model_id} | Upsert assertions for an authorization model ID
672+
*OpenFgaApi* | [**write_authorization_model**](https://github.com/openfga/python-sdk/blob/main/docs/OpenFgaApi.md#write_authorization_model) | **POST** /stores/{store_id}/authorization-models | Create a new authorization model
673673

674674

675675
### Models
676676

677677
## Documentation For Models
678678

679-
- [Any](docs/Any.md)
680-
- [Assertion](docs/Assertion.md)
681-
- [AuthorizationModel](docs/AuthorizationModel.md)
682-
- [CheckRequest](docs/CheckRequest.md)
683-
- [CheckResponse](docs/CheckResponse.md)
684-
- [Computed](docs/Computed.md)
685-
- [ContextualTupleKeys](docs/ContextualTupleKeys.md)
686-
- [CreateStoreRequest](docs/CreateStoreRequest.md)
687-
- [CreateStoreResponse](docs/CreateStoreResponse.md)
688-
- [Difference](docs/Difference.md)
689-
- [ErrorCode](docs/ErrorCode.md)
690-
- [ExpandRequest](docs/ExpandRequest.md)
691-
- [ExpandResponse](docs/ExpandResponse.md)
692-
- [GetStoreResponse](docs/GetStoreResponse.md)
693-
- [InternalErrorCode](docs/InternalErrorCode.md)
694-
- [InternalErrorMessageResponse](docs/InternalErrorMessageResponse.md)
695-
- [Leaf](docs/Leaf.md)
696-
- [ListObjectsRequest](docs/ListObjectsRequest.md)
697-
- [ListObjectsResponse](docs/ListObjectsResponse.md)
698-
- [ListStoresResponse](docs/ListStoresResponse.md)
699-
- [Metadata](docs/Metadata.md)
700-
- [Node](docs/Node.md)
701-
- [Nodes](docs/Nodes.md)
702-
- [NotFoundErrorCode](docs/NotFoundErrorCode.md)
703-
- [ObjectRelation](docs/ObjectRelation.md)
704-
- [PathUnknownErrorMessageResponse](docs/PathUnknownErrorMessageResponse.md)
705-
- [ReadAssertionsResponse](docs/ReadAssertionsResponse.md)
706-
- [ReadAuthorizationModelResponse](docs/ReadAuthorizationModelResponse.md)
707-
- [ReadAuthorizationModelsResponse](docs/ReadAuthorizationModelsResponse.md)
708-
- [ReadChangesResponse](docs/ReadChangesResponse.md)
709-
- [ReadRequest](docs/ReadRequest.md)
710-
- [ReadResponse](docs/ReadResponse.md)
711-
- [RelationMetadata](docs/RelationMetadata.md)
712-
- [RelationReference](docs/RelationReference.md)
713-
- [Status](docs/Status.md)
714-
- [Store](docs/Store.md)
715-
- [Tuple](docs/Tuple.md)
716-
- [TupleChange](docs/TupleChange.md)
717-
- [TupleKey](docs/TupleKey.md)
718-
- [TupleKeys](docs/TupleKeys.md)
719-
- [TupleOperation](docs/TupleOperation.md)
720-
- [TupleToUserset](docs/TupleToUserset.md)
721-
- [TypeDefinition](docs/TypeDefinition.md)
722-
- [Users](docs/Users.md)
723-
- [Userset](docs/Userset.md)
724-
- [UsersetTree](docs/UsersetTree.md)
725-
- [UsersetTreeDifference](docs/UsersetTreeDifference.md)
726-
- [UsersetTreeTupleToUserset](docs/UsersetTreeTupleToUserset.md)
727-
- [Usersets](docs/Usersets.md)
728-
- [ValidationErrorMessageResponse](docs/ValidationErrorMessageResponse.md)
729-
- [WriteAssertionsRequest](docs/WriteAssertionsRequest.md)
730-
- [WriteAuthorizationModelRequest](docs/WriteAuthorizationModelRequest.md)
731-
- [WriteAuthorizationModelResponse](docs/WriteAuthorizationModelResponse.md)
732-
- [WriteRequest](docs/WriteRequest.md)
679+
- [Any](https://github.com/openfga/python-sdk/blob/main/docs/Any.md)
680+
- [Assertion](https://github.com/openfga/python-sdk/blob/main/docs/Assertion.md)
681+
- [AuthorizationModel](https://github.com/openfga/python-sdk/blob/main/docs/AuthorizationModel.md)
682+
- [CheckRequest](https://github.com/openfga/python-sdk/blob/main/docs/CheckRequest.md)
683+
- [CheckResponse](https://github.com/openfga/python-sdk/blob/main/docs/CheckResponse.md)
684+
- [Computed](https://github.com/openfga/python-sdk/blob/main/docs/Computed.md)
685+
- [ContextualTupleKeys](https://github.com/openfga/python-sdk/blob/main/docs/ContextualTupleKeys.md)
686+
- [CreateStoreRequest](https://github.com/openfga/python-sdk/blob/main/docs/CreateStoreRequest.md)
687+
- [CreateStoreResponse](https://github.com/openfga/python-sdk/blob/main/docs/CreateStoreResponse.md)
688+
- [Difference](https://github.com/openfga/python-sdk/blob/main/docs/Difference.md)
689+
- [ErrorCode](https://github.com/openfga/python-sdk/blob/main/docs/ErrorCode.md)
690+
- [ExpandRequest](https://github.com/openfga/python-sdk/blob/main/docs/ExpandRequest.md)
691+
- [ExpandResponse](https://github.com/openfga/python-sdk/blob/main/docs/ExpandResponse.md)
692+
- [GetStoreResponse](https://github.com/openfga/python-sdk/blob/main/docs/GetStoreResponse.md)
693+
- [InternalErrorCode](https://github.com/openfga/python-sdk/blob/main/docs/InternalErrorCode.md)
694+
- [InternalErrorMessageResponse](https://github.com/openfga/python-sdk/blob/main/docs/InternalErrorMessageResponse.md)
695+
- [Leaf](https://github.com/openfga/python-sdk/blob/main/docs/Leaf.md)
696+
- [ListObjectsRequest](https://github.com/openfga/python-sdk/blob/main/docs/ListObjectsRequest.md)
697+
- [ListObjectsResponse](https://github.com/openfga/python-sdk/blob/main/docs/ListObjectsResponse.md)
698+
- [ListStoresResponse](https://github.com/openfga/python-sdk/blob/main/docs/ListStoresResponse.md)
699+
- [Metadata](https://github.com/openfga/python-sdk/blob/main/docs/Metadata.md)
700+
- [Node](https://github.com/openfga/python-sdk/blob/main/docs/Node.md)
701+
- [Nodes](https://github.com/openfga/python-sdk/blob/main/docs/Nodes.md)
702+
- [NotFoundErrorCode](https://github.com/openfga/python-sdk/blob/main/docs/NotFoundErrorCode.md)
703+
- [ObjectRelation](https://github.com/openfga/python-sdk/blob/main/docs/ObjectRelation.md)
704+
- [PathUnknownErrorMessageResponse](https://github.com/openfga/python-sdk/blob/main/docs/PathUnknownErrorMessageResponse.md)
705+
- [ReadAssertionsResponse](https://github.com/openfga/python-sdk/blob/main/docs/ReadAssertionsResponse.md)
706+
- [ReadAuthorizationModelResponse](https://github.com/openfga/python-sdk/blob/main/docs/ReadAuthorizationModelResponse.md)
707+
- [ReadAuthorizationModelsResponse](https://github.com/openfga/python-sdk/blob/main/docs/ReadAuthorizationModelsResponse.md)
708+
- [ReadChangesResponse](https://github.com/openfga/python-sdk/blob/main/docs/ReadChangesResponse.md)
709+
- [ReadRequest](https://github.com/openfga/python-sdk/blob/main/docs/ReadRequest.md)
710+
- [ReadResponse](https://github.com/openfga/python-sdk/blob/main/docs/ReadResponse.md)
711+
- [RelationMetadata](https://github.com/openfga/python-sdk/blob/main/docs/RelationMetadata.md)
712+
- [RelationReference](https://github.com/openfga/python-sdk/blob/main/docs/RelationReference.md)
713+
- [Status](https://github.com/openfga/python-sdk/blob/main/docs/Status.md)
714+
- [Store](https://github.com/openfga/python-sdk/blob/main/docs/Store.md)
715+
- [Tuple](https://github.com/openfga/python-sdk/blob/main/docs/Tuple.md)
716+
- [TupleChange](https://github.com/openfga/python-sdk/blob/main/docs/TupleChange.md)
717+
- [TupleKey](https://github.com/openfga/python-sdk/blob/main/docs/TupleKey.md)
718+
- [TupleKeys](https://github.com/openfga/python-sdk/blob/main/docs/TupleKeys.md)
719+
- [TupleOperation](https://github.com/openfga/python-sdk/blob/main/docs/TupleOperation.md)
720+
- [TupleToUserset](https://github.com/openfga/python-sdk/blob/main/docs/TupleToUserset.md)
721+
- [TypeDefinition](https://github.com/openfga/python-sdk/blob/main/docs/TypeDefinition.md)
722+
- [Users](https://github.com/openfga/python-sdk/blob/main/docs/Users.md)
723+
- [Userset](https://github.com/openfga/python-sdk/blob/main/docs/Userset.md)
724+
- [UsersetTree](https://github.com/openfga/python-sdk/blob/main/docs/UsersetTree.md)
725+
- [UsersetTreeDifference](https://github.com/openfga/python-sdk/blob/main/docs/UsersetTreeDifference.md)
726+
- [UsersetTreeTupleToUserset](https://github.com/openfga/python-sdk/blob/main/docs/UsersetTreeTupleToUserset.md)
727+
- [Usersets](https://github.com/openfga/python-sdk/blob/main/docs/Usersets.md)
728+
- [ValidationErrorMessageResponse](https://github.com/openfga/python-sdk/blob/main/docs/ValidationErrorMessageResponse.md)
729+
- [WriteAssertionsRequest](https://github.com/openfga/python-sdk/blob/main/docs/WriteAssertionsRequest.md)
730+
- [WriteAuthorizationModelRequest](https://github.com/openfga/python-sdk/blob/main/docs/WriteAuthorizationModelRequest.md)
731+
- [WriteAuthorizationModelResponse](https://github.com/openfga/python-sdk/blob/main/docs/WriteAuthorizationModelResponse.md)
732+
- [WriteRequest](https://github.com/openfga/python-sdk/blob/main/docs/WriteRequest.md)
733733

734734

735735

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.1.1

docs/OpenFgaApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99
[**delete_store**](OpenFgaApi.md#delete_store) | **DELETE** /stores/{store_id} | Delete a store
1010
[**expand**](OpenFgaApi.md#expand) | **POST** /stores/{store_id}/expand | Expand all relationships in userset tree format, and following userset rewrite rules. Useful to reason about and debug a certain relationship
1111
[**get_store**](OpenFgaApi.md#get_store) | **GET** /stores/{store_id} | Get a store
12-
[**list_objects**](OpenFgaApi.md#list_objects) | **POST** /stores/{store_id}/list-objects | [EXPERIMENTAL] Get all object ids of the given type that the user has a relation with
12+
[**list_objects**](OpenFgaApi.md#list_objects) | **POST** /stores/{store_id}/list-objects | [EXPERIMENTAL] Get all objects of the given type that the user has a relation with
1313
[**list_stores**](OpenFgaApi.md#list_stores) | **GET** /stores | List all stores
1414
[**read**](OpenFgaApi.md#read) | **POST** /stores/{store_id}/read | Get tuples from the store that matches a query, without following userset rewrite rules
1515
[**read_assertions**](OpenFgaApi.md#read_assertions) | **GET** /stores/{store_id}/assertions/{authorization_model_id} | Read assertions for an authorization model ID
@@ -417,9 +417,9 @@ No authorization required
417417
# **list_objects**
418418
> ListObjectsResponse list_objects(body)
419419
420-
[EXPERIMENTAL] Get all object ids of the given type that the user has a relation with
420+
[EXPERIMENTAL] Get all objects of the given type that the user has a relation with
421421

422-
The ListObjects API returns a list of all the objects of the given type that the user has a relation with. To achieve this, both the store tuples and the authorization model are used. An `authorization_model_id` may be specified in the body. If it is, it will be used to decide the underlying implementation used. If it is not specified, the latest authorization model ID will be used. You may also specify `contextual_tuples` that will be treated as regular tuples.
422+
The ListObjects API returns a list of all the objects of the given type that the user has a relation with. To achieve this, both the store tuples and the authorization model are used. An `authorization_model_id` may be specified in the body. If it is, it will be used to decide the underlying implementation used. If it is not specified, the latest authorization model ID will be used. You may also specify `contextual_tuples` that will be treated as regular tuples. The response will contain the related objects in an array in the \"objects\" field of the response and they will be strings in the object format `<type>:<id>` (e.g. \"document:roadmap\")
423423

424424
### Example
425425

@@ -456,7 +456,7 @@ async with openfga_sdk.ApiClient(configuration) as api_client:
456456
body = openfga_sdk.ListObjectsRequest() # ListObjectsRequest |
457457

458458
try:
459-
# [EXPERIMENTAL] Get all object ids of the given type that the user has a relation with
459+
# [EXPERIMENTAL] Get all objects of the given type that the user has a relation with
460460
api_response = await api_instance.api_instance.list_objects(body)
461461
pprint(api_response)
462462
except ApiException as e:

openfga_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
1515
"""
1616

17-
__version__ = "0.1.0"
17+
__version__ = "0.1.1"
1818

1919
# import apis into sdk package
2020
from openfga_sdk.api.open_fga_api import OpenFgaApi

0 commit comments

Comments
 (0)