From 20c144a1b6cc04661efc4c4b9064ca4ccdd179fc Mon Sep 17 00:00:00 2001 From: Mateen Kasim Date: Wed, 11 Sep 2024 16:31:54 -0400 Subject: [PATCH 1/2] Export Cursor from root --- authzed/api/v1/__init__.py | 2 ++ authzed/api/v1/__init__.pyi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/authzed/api/v1/__init__.py b/authzed/api/v1/__init__.py index 3d05ec6..fc9a7df 100644 --- a/authzed/api/v1/__init__.py +++ b/authzed/api/v1/__init__.py @@ -7,6 +7,7 @@ from authzed.api.v1.core_pb2 import ( AlgebraicSubjectSet, + Cursor, ContextualizedCaveat, DirectSubjectSet, ObjectReference, @@ -186,6 +187,7 @@ def __init__( "CheckPermissionRequest", "CheckPermissionResponse", "Consistency", + "Cursor", "DeleteRelationshipsRequest", "DeleteRelationshipsResponse", "ExpandPermissionTreeRequest", diff --git a/authzed/api/v1/__init__.pyi b/authzed/api/v1/__init__.pyi index c581b74..c501d4f 100644 --- a/authzed/api/v1/__init__.pyi +++ b/authzed/api/v1/__init__.pyi @@ -4,6 +4,7 @@ import grpc from authzed.api.v1.core_pb2 import ( AlgebraicSubjectSet, + Cursor, ContextualizedCaveat, DirectSubjectSet, ObjectReference, @@ -138,6 +139,7 @@ __all__ = [ "CheckPermissionRequest", "CheckPermissionResponse", "Consistency", + "Cursor", "DeleteRelationshipsRequest", "DeleteRelationshipsResponse", "ExpandPermissionTreeRequest", From 6f35a4165b16d466f3a69d6f6bcb807cf7df3744 Mon Sep 17 00:00:00 2001 From: Mateen Kasim Date: Wed, 11 Sep 2024 16:39:13 -0400 Subject: [PATCH 2/2] Organize imports --- authzed/api/v1/__init__.py | 2 +- authzed/api/v1/__init__.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/authzed/api/v1/__init__.py b/authzed/api/v1/__init__.py index fc9a7df..fa2dd8f 100644 --- a/authzed/api/v1/__init__.py +++ b/authzed/api/v1/__init__.py @@ -7,8 +7,8 @@ from authzed.api.v1.core_pb2 import ( AlgebraicSubjectSet, - Cursor, ContextualizedCaveat, + Cursor, DirectSubjectSet, ObjectReference, PermissionRelationshipTree, diff --git a/authzed/api/v1/__init__.pyi b/authzed/api/v1/__init__.pyi index c501d4f..c2214b3 100644 --- a/authzed/api/v1/__init__.pyi +++ b/authzed/api/v1/__init__.pyi @@ -4,8 +4,8 @@ import grpc from authzed.api.v1.core_pb2 import ( AlgebraicSubjectSet, - Cursor, ContextualizedCaveat, + Cursor, DirectSubjectSet, ObjectReference, PermissionRelationshipTree,