From 9208a9be33f27dec181307974bba36c6e322ead9 Mon Sep 17 00:00:00 2001 From: Tanner Stirrat Date: Mon, 9 Sep 2024 17:09:04 -0600 Subject: [PATCH] Revert "Push updated versions of pb2 filesA" This reverts commit 426602da29edb33cedd4812a56845a2d9790f63a. --- authzed/api/v0/core_pb2.py | 34 ++-- authzed/api/v0/developer_pb2.py | 16 +- authzed/api/v1/core_pb2.py | 52 +++--- authzed/api/v1/debug_pb2.py | 26 +-- authzed/api/v1/error_reason_pb2.py | 16 +- authzed/api/v1/experimental_service_pb2.py | 44 ++---- authzed/api/v1/openapi_pb2.py | 16 +- authzed/api/v1/permission_service_pb2.py | 148 ++++++++---------- authzed/api/v1/schema_service_pb2.py | 26 +-- authzed/api/v1/watch_service_pb2.py | 20 +-- authzed/api/v1alpha1/schema_pb2.py | 20 +-- .../v1alpha1/watchresources_service_pb2.py | 22 +-- 12 files changed, 160 insertions(+), 280 deletions(-) diff --git a/authzed/api/v0/core_pb2.py b/authzed/api/v0/core_pb2.py index 3bffd31..cc7cca9 100644 --- a/authzed/api/v0/core_pb2.py +++ b/authzed/api/v0/core_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v0/core.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v0/core.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -30,26 +20,26 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v0.core_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\022com.authzed.api.v0Z2github.com/authzed/authzed-go/proto/authzed/api/v0' - _globals['_RELATIONTUPLE'].fields_by_name['object_and_relation']._loaded_options = None + _globals['_RELATIONTUPLE'].fields_by_name['object_and_relation']._options = None _globals['_RELATIONTUPLE'].fields_by_name['object_and_relation']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_RELATIONTUPLE'].fields_by_name['user']._loaded_options = None + _globals['_RELATIONTUPLE'].fields_by_name['user']._options = None _globals['_RELATIONTUPLE'].fields_by_name['user']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_OBJECTANDRELATION'].fields_by_name['namespace']._loaded_options = None + _globals['_OBJECTANDRELATION'].fields_by_name['namespace']._options = None _globals['_OBJECTANDRELATION'].fields_by_name['namespace']._serialized_options = b'\372BErC(\200\0012>^([a-z][a-z0-9_]{1,61}[a-z0-9]/)?[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_OBJECTANDRELATION'].fields_by_name['object_id']._loaded_options = None + _globals['_OBJECTANDRELATION'].fields_by_name['object_id']._options = None _globals['_OBJECTANDRELATION'].fields_by_name['object_id']._serialized_options = b'\372B2r0(\200\0012+^(([a-zA-Z0-9_][a-zA-Z0-9/_|-]{0,127})|\\*)$' - _globals['_OBJECTANDRELATION'].fields_by_name['relation']._loaded_options = None + _globals['_OBJECTANDRELATION'].fields_by_name['relation']._options = None _globals['_OBJECTANDRELATION'].fields_by_name['relation']._serialized_options = b'\372B-r+(@2\'^(\\.\\.\\.|[a-z][a-z0-9_]{1,62}[a-z0-9])$' - _globals['_RELATIONREFERENCE'].fields_by_name['namespace']._loaded_options = None + _globals['_RELATIONREFERENCE'].fields_by_name['namespace']._options = None _globals['_RELATIONREFERENCE'].fields_by_name['namespace']._serialized_options = b'\372BErC(\200\0012>^([a-z][a-z0-9_]{1,61}[a-z0-9]/)?[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_RELATIONREFERENCE'].fields_by_name['relation']._loaded_options = None + _globals['_RELATIONREFERENCE'].fields_by_name['relation']._options = None _globals['_RELATIONREFERENCE'].fields_by_name['relation']._serialized_options = b'\372B-r+(@2\'^(\\.\\.\\.|[a-z][a-z0-9_]{1,62}[a-z0-9])$' - _globals['_USER'].oneofs_by_name['user_oneof']._loaded_options = None + _globals['_USER'].oneofs_by_name['user_oneof']._options = None _globals['_USER'].oneofs_by_name['user_oneof']._serialized_options = b'\370B\001' - _globals['_USER'].fields_by_name['userset']._loaded_options = None + _globals['_USER'].fields_by_name['userset']._options = None _globals['_USER'].fields_by_name['userset']._serialized_options = b'\372B\005\212\001\002\020\001' _globals['_RELATIONTUPLE']._serialized_start=71 _globals['_RELATIONTUPLE']._serialized_end=231 diff --git a/authzed/api/v0/developer_pb2.py b/authzed/api/v0/developer_pb2.py index 802d1c9..d617b71 100644 --- a/authzed/api/v0/developer_pb2.py +++ b/authzed/api/v0/developer_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v0/developer.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v0/developer.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -30,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v0.developer_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\022com.authzed.api.v0Z2github.com/authzed/authzed-go/proto/authzed/api/v0' _globals['_FORMATSCHEMAREQUEST']._serialized_start=77 _globals['_FORMATSCHEMAREQUEST']._serialized_end=122 diff --git a/authzed/api/v1/core_pb2.py b/authzed/api/v1/core_pb2.py index eec937c..941543a 100644 --- a/authzed/api/v1/core_pb2.py +++ b/authzed/api/v1/core_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v1/core.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v1/core.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -31,44 +21,44 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v1.core_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\022com.authzed.api.v1Z2github.com/authzed/authzed-go/proto/authzed/api/v1' - _globals['_RELATIONSHIP'].fields_by_name['resource']._loaded_options = None + _globals['_RELATIONSHIP'].fields_by_name['resource']._options = None _globals['_RELATIONSHIP'].fields_by_name['resource']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_RELATIONSHIP'].fields_by_name['relation']._loaded_options = None + _globals['_RELATIONSHIP'].fields_by_name['relation']._options = None _globals['_RELATIONSHIP'].fields_by_name['relation']._serialized_options = b'\372B$r\"(@2\036^[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_RELATIONSHIP'].fields_by_name['subject']._loaded_options = None + _globals['_RELATIONSHIP'].fields_by_name['subject']._options = None _globals['_RELATIONSHIP'].fields_by_name['subject']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_RELATIONSHIP'].fields_by_name['optional_caveat']._loaded_options = None + _globals['_RELATIONSHIP'].fields_by_name['optional_caveat']._options = None _globals['_RELATIONSHIP'].fields_by_name['optional_caveat']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_CONTEXTUALIZEDCAVEAT'].fields_by_name['caveat_name']._loaded_options = None + _globals['_CONTEXTUALIZEDCAVEAT'].fields_by_name['caveat_name']._options = None _globals['_CONTEXTUALIZEDCAVEAT'].fields_by_name['caveat_name']._serialized_options = b'\372B-r+(\200\0012&^([a-zA-Z0-9_][a-zA-Z0-9/_|-]{0,127})$' - _globals['_CONTEXTUALIZEDCAVEAT'].fields_by_name['context']._loaded_options = None + _globals['_CONTEXTUALIZEDCAVEAT'].fields_by_name['context']._options = None _globals['_CONTEXTUALIZEDCAVEAT'].fields_by_name['context']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_SUBJECTREFERENCE'].fields_by_name['object']._loaded_options = None + _globals['_SUBJECTREFERENCE'].fields_by_name['object']._options = None _globals['_SUBJECTREFERENCE'].fields_by_name['object']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_SUBJECTREFERENCE'].fields_by_name['optional_relation']._loaded_options = None + _globals['_SUBJECTREFERENCE'].fields_by_name['optional_relation']._options = None _globals['_SUBJECTREFERENCE'].fields_by_name['optional_relation']._serialized_options = b'\372B\'r%(@2!^([a-z][a-z0-9_]{1,62}[a-z0-9])?$' - _globals['_OBJECTREFERENCE'].fields_by_name['object_type']._loaded_options = None + _globals['_OBJECTREFERENCE'].fields_by_name['object_type']._options = None _globals['_OBJECTREFERENCE'].fields_by_name['object_type']._serialized_options = b'\372BErC(\200\0012>^([a-z][a-z0-9_]{1,61}[a-z0-9]/)*[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_OBJECTREFERENCE'].fields_by_name['object_id']._loaded_options = None + _globals['_OBJECTREFERENCE'].fields_by_name['object_id']._options = None _globals['_OBJECTREFERENCE'].fields_by_name['object_id']._serialized_options = b'\372B&r$(\200\0102\037^(([a-zA-Z0-9/_|\\-=+]{1,})|\\*)$' - _globals['_ZEDTOKEN'].fields_by_name['token']._loaded_options = None + _globals['_ZEDTOKEN'].fields_by_name['token']._options = None _globals['_ZEDTOKEN'].fields_by_name['token']._serialized_options = b'\372B\004r\002 \001' - _globals['_CURSOR'].fields_by_name['token']._loaded_options = None + _globals['_CURSOR'].fields_by_name['token']._options = None _globals['_CURSOR'].fields_by_name['token']._serialized_options = b'\372B\010r\006 \001(\200\240\006' - _globals['_RELATIONSHIPUPDATE'].fields_by_name['operation']._loaded_options = None + _globals['_RELATIONSHIPUPDATE'].fields_by_name['operation']._options = None _globals['_RELATIONSHIPUPDATE'].fields_by_name['operation']._serialized_options = b'\372B\007\202\001\004\020\001 \000' - _globals['_RELATIONSHIPUPDATE'].fields_by_name['relationship']._loaded_options = None + _globals['_RELATIONSHIPUPDATE'].fields_by_name['relationship']._options = None _globals['_RELATIONSHIPUPDATE'].fields_by_name['relationship']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_PERMISSIONRELATIONSHIPTREE'].oneofs_by_name['tree_type']._loaded_options = None + _globals['_PERMISSIONRELATIONSHIPTREE'].oneofs_by_name['tree_type']._options = None _globals['_PERMISSIONRELATIONSHIPTREE'].oneofs_by_name['tree_type']._serialized_options = b'\370B\001' - _globals['_ALGEBRAICSUBJECTSET'].fields_by_name['operation']._loaded_options = None + _globals['_ALGEBRAICSUBJECTSET'].fields_by_name['operation']._options = None _globals['_ALGEBRAICSUBJECTSET'].fields_by_name['operation']._serialized_options = b'\372B\007\202\001\004\020\001 \000' - _globals['_ALGEBRAICSUBJECTSET'].fields_by_name['children']._loaded_options = None + _globals['_ALGEBRAICSUBJECTSET'].fields_by_name['children']._options = None _globals['_ALGEBRAICSUBJECTSET'].fields_by_name['children']._serialized_options = b'\372B\n\222\001\007\"\005\212\001\002\020\001' - _globals['_PARTIALCAVEATINFO'].fields_by_name['missing_required_context']._loaded_options = None + _globals['_PARTIALCAVEATINFO'].fields_by_name['missing_required_context']._options = None _globals['_PARTIALCAVEATINFO'].fields_by_name['missing_required_context']._serialized_options = b'\372B\005\222\001\002\010\001' _globals['_RELATIONSHIP']._serialized_start=101 _globals['_RELATIONSHIP']._serialized_end=414 diff --git a/authzed/api/v1/debug_pb2.py b/authzed/api/v1/debug_pb2.py index 21f3ecf..f2c061e 100644 --- a/authzed/api/v1/debug_pb2.py +++ b/authzed/api/v1/debug_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v1/debug.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v1/debug.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -33,18 +23,18 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v1.debug_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\022com.authzed.api.v1Z2github.com/authzed/authzed-go/proto/authzed/api/v1' - _globals['_CHECKDEBUGTRACE'].oneofs_by_name['resolution']._loaded_options = None + _globals['_CHECKDEBUGTRACE'].oneofs_by_name['resolution']._options = None _globals['_CHECKDEBUGTRACE'].oneofs_by_name['resolution']._serialized_options = b'\370B\001' - _globals['_CHECKDEBUGTRACE'].fields_by_name['resource']._loaded_options = None + _globals['_CHECKDEBUGTRACE'].fields_by_name['resource']._options = None _globals['_CHECKDEBUGTRACE'].fields_by_name['resource']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_CHECKDEBUGTRACE'].fields_by_name['permission_type']._loaded_options = None + _globals['_CHECKDEBUGTRACE'].fields_by_name['permission_type']._options = None _globals['_CHECKDEBUGTRACE'].fields_by_name['permission_type']._serialized_options = b'\372B\007\202\001\004\020\001 \000' - _globals['_CHECKDEBUGTRACE'].fields_by_name['subject']._loaded_options = None + _globals['_CHECKDEBUGTRACE'].fields_by_name['subject']._options = None _globals['_CHECKDEBUGTRACE'].fields_by_name['subject']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_CHECKDEBUGTRACE'].fields_by_name['result']._loaded_options = None + _globals['_CHECKDEBUGTRACE'].fields_by_name['result']._options = None _globals['_CHECKDEBUGTRACE'].fields_by_name['result']._serialized_options = b'\372B\007\202\001\004\020\001 \000' _globals['_DEBUGINFORMATION']._serialized_start=160 _globals['_DEBUGINFORMATION']._serialized_end=266 diff --git a/authzed/api/v1/error_reason_pb2.py b/authzed/api/v1/error_reason_pb2.py index 21aec49..8a00ff0 100644 --- a/authzed/api/v1/error_reason_pb2.py +++ b/authzed/api/v1/error_reason_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v1/error_reason.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v1/error_reason.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -29,8 +19,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v1.error_reason_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\022com.authzed.api.v1Z2github.com/authzed/authzed-go/proto/authzed/api/v1' _globals['_ERRORREASON']._serialized_start=54 _globals['_ERRORREASON']._serialized_end=1019 diff --git a/authzed/api/v1/experimental_service_pb2.py b/authzed/api/v1/experimental_service_pb2.py index 6377406..97eec13 100644 --- a/authzed/api/v1/experimental_service_pb2.py +++ b/authzed/api/v1/experimental_service_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v1/experimental_service.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v1/experimental_service.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -35,36 +25,36 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v1.experimental_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\022com.authzed.api.v1Z2github.com/authzed/authzed-go/proto/authzed/api/v1' - _globals['_BULKCHECKPERMISSIONREQUEST'].fields_by_name['items']._loaded_options = None + _globals['_BULKCHECKPERMISSIONREQUEST'].fields_by_name['items']._options = None _globals['_BULKCHECKPERMISSIONREQUEST'].fields_by_name['items']._serialized_options = b'\372B\n\222\001\007\"\005\212\001\002\020\001' - _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['resource']._loaded_options = None + _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['resource']._options = None _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['resource']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['permission']._loaded_options = None + _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['permission']._options = None _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['permission']._serialized_options = b'\372B\'r%(@2!^([a-z][a-z0-9_]{1,62}[a-z0-9])?$' - _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['subject']._loaded_options = None + _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['subject']._options = None _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['subject']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['context']._loaded_options = None + _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['context']._options = None _globals['_BULKCHECKPERMISSIONREQUESTITEM'].fields_by_name['context']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_BULKCHECKPERMISSIONRESPONSE'].fields_by_name['checked_at']._loaded_options = None + _globals['_BULKCHECKPERMISSIONRESPONSE'].fields_by_name['checked_at']._options = None _globals['_BULKCHECKPERMISSIONRESPONSE'].fields_by_name['checked_at']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_BULKCHECKPERMISSIONRESPONSE'].fields_by_name['pairs']._loaded_options = None + _globals['_BULKCHECKPERMISSIONRESPONSE'].fields_by_name['pairs']._options = None _globals['_BULKCHECKPERMISSIONRESPONSE'].fields_by_name['pairs']._serialized_options = b'\372B\n\222\001\007\"\005\212\001\002\020\001' - _globals['_BULKCHECKPERMISSIONRESPONSEITEM'].fields_by_name['permissionship']._loaded_options = None + _globals['_BULKCHECKPERMISSIONRESPONSEITEM'].fields_by_name['permissionship']._options = None _globals['_BULKCHECKPERMISSIONRESPONSEITEM'].fields_by_name['permissionship']._serialized_options = b'\372B\007\202\001\004\020\001 \000' - _globals['_BULKCHECKPERMISSIONRESPONSEITEM'].fields_by_name['partial_caveat_info']._loaded_options = None + _globals['_BULKCHECKPERMISSIONRESPONSEITEM'].fields_by_name['partial_caveat_info']._options = None _globals['_BULKCHECKPERMISSIONRESPONSEITEM'].fields_by_name['partial_caveat_info']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_BULKIMPORTRELATIONSHIPSREQUEST'].fields_by_name['relationships']._loaded_options = None + _globals['_BULKIMPORTRELATIONSHIPSREQUEST'].fields_by_name['relationships']._options = None _globals['_BULKIMPORTRELATIONSHIPSREQUEST'].fields_by_name['relationships']._serialized_options = b'\372B\n\222\001\007\"\005\212\001\002\020\001' - _globals['_BULKEXPORTRELATIONSHIPSREQUEST'].fields_by_name['optional_limit']._loaded_options = None + _globals['_BULKEXPORTRELATIONSHIPSREQUEST'].fields_by_name['optional_limit']._options = None _globals['_BULKEXPORTRELATIONSHIPSREQUEST'].fields_by_name['optional_limit']._serialized_options = b'\372B\007*\005\030\220N(\000' - _globals['_EXPERIMENTALSERVICE'].methods_by_name['BulkImportRelationships']._loaded_options = None + _globals['_EXPERIMENTALSERVICE'].methods_by_name['BulkImportRelationships']._options = None _globals['_EXPERIMENTALSERVICE'].methods_by_name['BulkImportRelationships']._serialized_options = b'\202\323\344\223\002.\")/v1/experimental/relationships/bulkimport:\001*' - _globals['_EXPERIMENTALSERVICE'].methods_by_name['BulkExportRelationships']._loaded_options = None + _globals['_EXPERIMENTALSERVICE'].methods_by_name['BulkExportRelationships']._options = None _globals['_EXPERIMENTALSERVICE'].methods_by_name['BulkExportRelationships']._serialized_options = b'\202\323\344\223\002.\")/v1/experimental/relationships/bulkexport:\001*' - _globals['_EXPERIMENTALSERVICE'].methods_by_name['BulkCheckPermission']._loaded_options = None + _globals['_EXPERIMENTALSERVICE'].methods_by_name['BulkCheckPermission']._options = None _globals['_EXPERIMENTALSERVICE'].methods_by_name['BulkCheckPermission']._serialized_options = b'\202\323\344\223\0025\"0/v1/experimental/permissions/bulkcheckpermission:\001*' _globals['_BULKCHECKPERMISSIONREQUEST']._serialized_start=240 _globals['_BULKCHECKPERMISSIONREQUEST']._serialized_end=416 diff --git a/authzed/api/v1/openapi_pb2.py b/authzed/api/v1/openapi_pb2.py index 9eb423b..f607b96 100644 --- a/authzed/api/v1/openapi_pb2.py +++ b/authzed/api/v1/openapi_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v1/openapi.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v1/openapi.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -30,7 +20,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v1.openapi_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\022com.authzed.api.v1Z2github.com/authzed/authzed-go/proto/authzed/api/v1\222A\264\002\022\234\001\n\007Authzed\"D\n\rAuthzed, Inc.\022\036https://github.com/authzed/api\032\023support@authzed.com*F\n\022Apache 2.0 License\0220https://github.com/authzed/api/blob/main/LICENSE2\0031.0*\003\001\002\0042\020application/json:\020application/jsonZ#\n!\n\nApiKeyAuth\022\023\010\002\032\rAuthorization \002rE\n\033More about the Authzed API.\022&https://docs.authzed.com/reference/api' # @@protoc_insertion_point(module_scope) diff --git a/authzed/api/v1/permission_service_pb2.py b/authzed/api/v1/permission_service_pb2.py index 7f509be..2168090 100644 --- a/authzed/api/v1/permission_service_pb2.py +++ b/authzed/api/v1/permission_service_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v1/permission_service.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v1/permission_service.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -35,140 +25,140 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v1.permission_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\022com.authzed.api.v1Z2github.com/authzed/authzed-go/proto/authzed/api/v1' - _globals['_CONSISTENCY'].oneofs_by_name['requirement']._loaded_options = None + _globals['_CONSISTENCY'].oneofs_by_name['requirement']._options = None _globals['_CONSISTENCY'].oneofs_by_name['requirement']._serialized_options = b'\370B\001' - _globals['_CONSISTENCY'].fields_by_name['minimize_latency']._loaded_options = None + _globals['_CONSISTENCY'].fields_by_name['minimize_latency']._options = None _globals['_CONSISTENCY'].fields_by_name['minimize_latency']._serialized_options = b'\372B\004j\002\010\001' - _globals['_CONSISTENCY'].fields_by_name['fully_consistent']._loaded_options = None + _globals['_CONSISTENCY'].fields_by_name['fully_consistent']._options = None _globals['_CONSISTENCY'].fields_by_name['fully_consistent']._serialized_options = b'\372B\004j\002\010\001' - _globals['_RELATIONSHIPFILTER'].fields_by_name['resource_type']._loaded_options = None + _globals['_RELATIONSHIPFILTER'].fields_by_name['resource_type']._options = None _globals['_RELATIONSHIPFILTER'].fields_by_name['resource_type']._serialized_options = b'\372BHrF(\200\0012A^(([a-z][a-z0-9_]{1,61}[a-z0-9]/)*[a-z][a-z0-9_]{1,62}[a-z0-9])?$' - _globals['_RELATIONSHIPFILTER'].fields_by_name['optional_resource_id']._loaded_options = None + _globals['_RELATIONSHIPFILTER'].fields_by_name['optional_resource_id']._options = None _globals['_RELATIONSHIPFILTER'].fields_by_name['optional_resource_id']._serialized_options = b'\372B\"r (\200\0102\033^([a-zA-Z0-9/_|\\-=+]{1,})?$' - _globals['_RELATIONSHIPFILTER'].fields_by_name['optional_resource_id_prefix']._loaded_options = None + _globals['_RELATIONSHIPFILTER'].fields_by_name['optional_resource_id_prefix']._options = None _globals['_RELATIONSHIPFILTER'].fields_by_name['optional_resource_id_prefix']._serialized_options = b'\372B\"r (\200\0102\033^([a-zA-Z0-9/_|\\-=+]{1,})?$' - _globals['_RELATIONSHIPFILTER'].fields_by_name['optional_relation']._loaded_options = None + _globals['_RELATIONSHIPFILTER'].fields_by_name['optional_relation']._options = None _globals['_RELATIONSHIPFILTER'].fields_by_name['optional_relation']._serialized_options = b'\372B\'r%(@2!^([a-z][a-z0-9_]{1,62}[a-z0-9])?$' - _globals['_SUBJECTFILTER_RELATIONFILTER'].fields_by_name['relation']._loaded_options = None + _globals['_SUBJECTFILTER_RELATIONFILTER'].fields_by_name['relation']._options = None _globals['_SUBJECTFILTER_RELATIONFILTER'].fields_by_name['relation']._serialized_options = b'\372B\'r%(@2!^([a-z][a-z0-9_]{1,62}[a-z0-9])?$' - _globals['_SUBJECTFILTER'].fields_by_name['subject_type']._loaded_options = None + _globals['_SUBJECTFILTER'].fields_by_name['subject_type']._options = None _globals['_SUBJECTFILTER'].fields_by_name['subject_type']._serialized_options = b'\372BErC(\200\0012>^([a-z][a-z0-9_]{1,61}[a-z0-9]/)*[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_SUBJECTFILTER'].fields_by_name['optional_subject_id']._loaded_options = None + _globals['_SUBJECTFILTER'].fields_by_name['optional_subject_id']._options = None _globals['_SUBJECTFILTER'].fields_by_name['optional_subject_id']._serialized_options = b'\372B\'r%(\200\0102 ^(([a-zA-Z0-9/_|\\-=+]{1,})|\\*)?$' - _globals['_READRELATIONSHIPSREQUEST'].fields_by_name['relationship_filter']._loaded_options = None + _globals['_READRELATIONSHIPSREQUEST'].fields_by_name['relationship_filter']._options = None _globals['_READRELATIONSHIPSREQUEST'].fields_by_name['relationship_filter']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_READRELATIONSHIPSREQUEST'].fields_by_name['optional_limit']._loaded_options = None + _globals['_READRELATIONSHIPSREQUEST'].fields_by_name['optional_limit']._options = None _globals['_READRELATIONSHIPSREQUEST'].fields_by_name['optional_limit']._serialized_options = b'\372B\007*\005\030\350\007(\000' - _globals['_READRELATIONSHIPSRESPONSE'].fields_by_name['read_at']._loaded_options = None + _globals['_READRELATIONSHIPSRESPONSE'].fields_by_name['read_at']._options = None _globals['_READRELATIONSHIPSRESPONSE'].fields_by_name['read_at']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_READRELATIONSHIPSRESPONSE'].fields_by_name['relationship']._loaded_options = None + _globals['_READRELATIONSHIPSRESPONSE'].fields_by_name['relationship']._options = None _globals['_READRELATIONSHIPSRESPONSE'].fields_by_name['relationship']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_PRECONDITION'].fields_by_name['operation']._loaded_options = None + _globals['_PRECONDITION'].fields_by_name['operation']._options = None _globals['_PRECONDITION'].fields_by_name['operation']._serialized_options = b'\372B\007\202\001\004\020\001 \000' - _globals['_PRECONDITION'].fields_by_name['filter']._loaded_options = None + _globals['_PRECONDITION'].fields_by_name['filter']._options = None _globals['_PRECONDITION'].fields_by_name['filter']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_WRITERELATIONSHIPSREQUEST'].fields_by_name['updates']._loaded_options = None + _globals['_WRITERELATIONSHIPSREQUEST'].fields_by_name['updates']._options = None _globals['_WRITERELATIONSHIPSREQUEST'].fields_by_name['updates']._serialized_options = b'\372B\n\222\001\007\"\005\212\001\002\020\001' - _globals['_WRITERELATIONSHIPSREQUEST'].fields_by_name['optional_preconditions']._loaded_options = None + _globals['_WRITERELATIONSHIPSREQUEST'].fields_by_name['optional_preconditions']._options = None _globals['_WRITERELATIONSHIPSREQUEST'].fields_by_name['optional_preconditions']._serialized_options = b'\372B\n\222\001\007\"\005\212\001\002\020\001' - _globals['_DELETERELATIONSHIPSREQUEST'].fields_by_name['relationship_filter']._loaded_options = None + _globals['_DELETERELATIONSHIPSREQUEST'].fields_by_name['relationship_filter']._options = None _globals['_DELETERELATIONSHIPSREQUEST'].fields_by_name['relationship_filter']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_DELETERELATIONSHIPSREQUEST'].fields_by_name['optional_preconditions']._loaded_options = None + _globals['_DELETERELATIONSHIPSREQUEST'].fields_by_name['optional_preconditions']._options = None _globals['_DELETERELATIONSHIPSREQUEST'].fields_by_name['optional_preconditions']._serialized_options = b'\372B\n\222\001\007\"\005\212\001\002\020\001' - _globals['_DELETERELATIONSHIPSREQUEST'].fields_by_name['optional_limit']._loaded_options = None + _globals['_DELETERELATIONSHIPSREQUEST'].fields_by_name['optional_limit']._options = None _globals['_DELETERELATIONSHIPSREQUEST'].fields_by_name['optional_limit']._serialized_options = b'\372B\007*\005\030\350\007(\000' - _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['resource']._loaded_options = None + _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['resource']._options = None _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['resource']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['permission']._loaded_options = None + _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['permission']._options = None _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['permission']._serialized_options = b'\372B\'r%(@2!^([a-z][a-z0-9_]{1,62}[a-z0-9])?$' - _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['subject']._loaded_options = None + _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['subject']._options = None _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['subject']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['context']._loaded_options = None + _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['context']._options = None _globals['_CHECKPERMISSIONREQUEST'].fields_by_name['context']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_CHECKPERMISSIONRESPONSE'].fields_by_name['checked_at']._loaded_options = None + _globals['_CHECKPERMISSIONRESPONSE'].fields_by_name['checked_at']._options = None _globals['_CHECKPERMISSIONRESPONSE'].fields_by_name['checked_at']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_CHECKPERMISSIONRESPONSE'].fields_by_name['permissionship']._loaded_options = None + _globals['_CHECKPERMISSIONRESPONSE'].fields_by_name['permissionship']._options = None _globals['_CHECKPERMISSIONRESPONSE'].fields_by_name['permissionship']._serialized_options = b'\372B\007\202\001\004\020\001 \000' - _globals['_CHECKPERMISSIONRESPONSE'].fields_by_name['partial_caveat_info']._loaded_options = None + _globals['_CHECKPERMISSIONRESPONSE'].fields_by_name['partial_caveat_info']._options = None _globals['_CHECKPERMISSIONRESPONSE'].fields_by_name['partial_caveat_info']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_CHECKBULKPERMISSIONSREQUEST'].fields_by_name['items']._loaded_options = None + _globals['_CHECKBULKPERMISSIONSREQUEST'].fields_by_name['items']._options = None _globals['_CHECKBULKPERMISSIONSREQUEST'].fields_by_name['items']._serialized_options = b'\372B\n\222\001\007\"\005\212\001\002\020\001' - _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['resource']._loaded_options = None + _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['resource']._options = None _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['resource']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['permission']._loaded_options = None + _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['permission']._options = None _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['permission']._serialized_options = b'\372B\'r%(@2!^([a-z][a-z0-9_]{1,62}[a-z0-9])?$' - _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['subject']._loaded_options = None + _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['subject']._options = None _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['subject']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['context']._loaded_options = None + _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['context']._options = None _globals['_CHECKBULKPERMISSIONSREQUESTITEM'].fields_by_name['context']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_CHECKBULKPERMISSIONSRESPONSE'].fields_by_name['checked_at']._loaded_options = None + _globals['_CHECKBULKPERMISSIONSRESPONSE'].fields_by_name['checked_at']._options = None _globals['_CHECKBULKPERMISSIONSRESPONSE'].fields_by_name['checked_at']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_CHECKBULKPERMISSIONSRESPONSE'].fields_by_name['pairs']._loaded_options = None + _globals['_CHECKBULKPERMISSIONSRESPONSE'].fields_by_name['pairs']._options = None _globals['_CHECKBULKPERMISSIONSRESPONSE'].fields_by_name['pairs']._serialized_options = b'\372B\n\222\001\007\"\005\212\001\002\020\001' - _globals['_CHECKBULKPERMISSIONSRESPONSEITEM'].fields_by_name['permissionship']._loaded_options = None + _globals['_CHECKBULKPERMISSIONSRESPONSEITEM'].fields_by_name['permissionship']._options = None _globals['_CHECKBULKPERMISSIONSRESPONSEITEM'].fields_by_name['permissionship']._serialized_options = b'\372B\007\202\001\004\020\001 \000' - _globals['_CHECKBULKPERMISSIONSRESPONSEITEM'].fields_by_name['partial_caveat_info']._loaded_options = None + _globals['_CHECKBULKPERMISSIONSRESPONSEITEM'].fields_by_name['partial_caveat_info']._options = None _globals['_CHECKBULKPERMISSIONSRESPONSEITEM'].fields_by_name['partial_caveat_info']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_EXPANDPERMISSIONTREEREQUEST'].fields_by_name['resource']._loaded_options = None + _globals['_EXPANDPERMISSIONTREEREQUEST'].fields_by_name['resource']._options = None _globals['_EXPANDPERMISSIONTREEREQUEST'].fields_by_name['resource']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_EXPANDPERMISSIONTREEREQUEST'].fields_by_name['permission']._loaded_options = None + _globals['_EXPANDPERMISSIONTREEREQUEST'].fields_by_name['permission']._options = None _globals['_EXPANDPERMISSIONTREEREQUEST'].fields_by_name['permission']._serialized_options = b'\372B\'r%(@2!^([a-z][a-z0-9_]{1,62}[a-z0-9])?$' - _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['resource_object_type']._loaded_options = None + _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['resource_object_type']._options = None _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['resource_object_type']._serialized_options = b'\372BErC(\200\0012>^([a-z][a-z0-9_]{1,61}[a-z0-9]/)*[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['permission']._loaded_options = None + _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['permission']._options = None _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['permission']._serialized_options = b'\372B$r\"(@2\036^[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['subject']._loaded_options = None + _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['subject']._options = None _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['subject']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['context']._loaded_options = None + _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['context']._options = None _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['context']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['optional_limit']._loaded_options = None + _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['optional_limit']._options = None _globals['_LOOKUPRESOURCESREQUEST'].fields_by_name['optional_limit']._serialized_options = b'\372B\007*\005\030\350\007(\000' - _globals['_LOOKUPRESOURCESRESPONSE'].fields_by_name['permissionship']._loaded_options = None + _globals['_LOOKUPRESOURCESRESPONSE'].fields_by_name['permissionship']._options = None _globals['_LOOKUPRESOURCESRESPONSE'].fields_by_name['permissionship']._serialized_options = b'\372B\007\202\001\004\020\001 \000' - _globals['_LOOKUPRESOURCESRESPONSE'].fields_by_name['partial_caveat_info']._loaded_options = None + _globals['_LOOKUPRESOURCESRESPONSE'].fields_by_name['partial_caveat_info']._options = None _globals['_LOOKUPRESOURCESRESPONSE'].fields_by_name['partial_caveat_info']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['resource']._loaded_options = None + _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['resource']._options = None _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['resource']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['permission']._loaded_options = None + _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['permission']._options = None _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['permission']._serialized_options = b'\372B\'r%(@2!^([a-z][a-z0-9_]{1,62}[a-z0-9])?$' - _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['subject_object_type']._loaded_options = None + _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['subject_object_type']._options = None _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['subject_object_type']._serialized_options = b'\372BErC(\200\0012>^([a-z][a-z0-9_]{1,61}[a-z0-9]/)*[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['optional_subject_relation']._loaded_options = None + _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['optional_subject_relation']._options = None _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['optional_subject_relation']._serialized_options = b'\372B\'r%(@2!^([a-z][a-z0-9_]{1,62}[a-z0-9])?$' - _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['context']._loaded_options = None + _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['context']._options = None _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['context']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['optional_concrete_limit']._loaded_options = None + _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['optional_concrete_limit']._options = None _globals['_LOOKUPSUBJECTSREQUEST'].fields_by_name['optional_concrete_limit']._serialized_options = b'\372B\007*\005\030\350\007(\000' - _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['subject_object_id']._loaded_options = None + _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['subject_object_id']._options = None _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['subject_object_id']._serialized_options = b'\030\001' - _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['excluded_subject_ids']._loaded_options = None + _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['excluded_subject_ids']._options = None _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['excluded_subject_ids']._serialized_options = b'\030\001' - _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['permissionship']._loaded_options = None + _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['permissionship']._options = None _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['permissionship']._serialized_options = b'\030\001\372B\007\202\001\004\020\001 \000' - _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['partial_caveat_info']._loaded_options = None + _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['partial_caveat_info']._options = None _globals['_LOOKUPSUBJECTSRESPONSE'].fields_by_name['partial_caveat_info']._serialized_options = b'\030\001\372B\005\212\001\002\020\000' - _globals['_RESOLVEDSUBJECT'].fields_by_name['permissionship']._loaded_options = None + _globals['_RESOLVEDSUBJECT'].fields_by_name['permissionship']._options = None _globals['_RESOLVEDSUBJECT'].fields_by_name['permissionship']._serialized_options = b'\372B\007\202\001\004\020\001 \000' - _globals['_RESOLVEDSUBJECT'].fields_by_name['partial_caveat_info']._loaded_options = None + _globals['_RESOLVEDSUBJECT'].fields_by_name['partial_caveat_info']._options = None _globals['_RESOLVEDSUBJECT'].fields_by_name['partial_caveat_info']._serialized_options = b'\372B\005\212\001\002\020\000' - _globals['_PERMISSIONSSERVICE'].methods_by_name['ReadRelationships']._loaded_options = None + _globals['_PERMISSIONSSERVICE'].methods_by_name['ReadRelationships']._options = None _globals['_PERMISSIONSSERVICE'].methods_by_name['ReadRelationships']._serialized_options = b'\202\323\344\223\002\033\"\026/v1/relationships/read:\001*' - _globals['_PERMISSIONSSERVICE'].methods_by_name['WriteRelationships']._loaded_options = None + _globals['_PERMISSIONSSERVICE'].methods_by_name['WriteRelationships']._options = None _globals['_PERMISSIONSSERVICE'].methods_by_name['WriteRelationships']._serialized_options = b'\202\323\344\223\002\034\"\027/v1/relationships/write:\001*' - _globals['_PERMISSIONSSERVICE'].methods_by_name['DeleteRelationships']._loaded_options = None + _globals['_PERMISSIONSSERVICE'].methods_by_name['DeleteRelationships']._options = None _globals['_PERMISSIONSSERVICE'].methods_by_name['DeleteRelationships']._serialized_options = b'\202\323\344\223\002\035\"\030/v1/relationships/delete:\001*' - _globals['_PERMISSIONSSERVICE'].methods_by_name['CheckPermission']._loaded_options = None + _globals['_PERMISSIONSSERVICE'].methods_by_name['CheckPermission']._options = None _globals['_PERMISSIONSSERVICE'].methods_by_name['CheckPermission']._serialized_options = b'\202\323\344\223\002\032\"\025/v1/permissions/check:\001*' - _globals['_PERMISSIONSSERVICE'].methods_by_name['CheckBulkPermissions']._loaded_options = None + _globals['_PERMISSIONSSERVICE'].methods_by_name['CheckBulkPermissions']._options = None _globals['_PERMISSIONSSERVICE'].methods_by_name['CheckBulkPermissions']._serialized_options = b'\202\323\344\223\002\036\"\031/v1/permissions/checkbulk:\001*' - _globals['_PERMISSIONSSERVICE'].methods_by_name['ExpandPermissionTree']._loaded_options = None + _globals['_PERMISSIONSSERVICE'].methods_by_name['ExpandPermissionTree']._options = None _globals['_PERMISSIONSSERVICE'].methods_by_name['ExpandPermissionTree']._serialized_options = b'\202\323\344\223\002\033\"\026/v1/permissions/expand:\001*' - _globals['_PERMISSIONSSERVICE'].methods_by_name['LookupResources']._loaded_options = None + _globals['_PERMISSIONSSERVICE'].methods_by_name['LookupResources']._options = None _globals['_PERMISSIONSSERVICE'].methods_by_name['LookupResources']._serialized_options = b'\202\323\344\223\002\036\"\031/v1/permissions/resources:\001*' - _globals['_PERMISSIONSSERVICE'].methods_by_name['LookupSubjects']._loaded_options = None + _globals['_PERMISSIONSSERVICE'].methods_by_name['LookupSubjects']._options = None _globals['_PERMISSIONSSERVICE'].methods_by_name['LookupSubjects']._serialized_options = b'\202\323\344\223\002\035\"\030/v1/permissions/subjects:\001*' _globals['_LOOKUPPERMISSIONSHIP']._serialized_start=8296 _globals['_LOOKUPPERMISSIONSHIP']._serialized_end=8449 diff --git a/authzed/api/v1/schema_service_pb2.py b/authzed/api/v1/schema_service_pb2.py index 708ca89..d37b1cb 100644 --- a/authzed/api/v1/schema_service_pb2.py +++ b/authzed/api/v1/schema_service_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v1/schema_service.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v1/schema_service.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -32,18 +22,18 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v1.schema_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\022com.authzed.api.v1Z2github.com/authzed/authzed-go/proto/authzed/api/v1' - _globals['_READSCHEMARESPONSE'].fields_by_name['read_at']._loaded_options = None + _globals['_READSCHEMARESPONSE'].fields_by_name['read_at']._options = None _globals['_READSCHEMARESPONSE'].fields_by_name['read_at']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_WRITESCHEMAREQUEST'].fields_by_name['schema']._loaded_options = None + _globals['_WRITESCHEMAREQUEST'].fields_by_name['schema']._options = None _globals['_WRITESCHEMAREQUEST'].fields_by_name['schema']._serialized_options = b'\372B\007r\005(\200\200\200\002' - _globals['_WRITESCHEMARESPONSE'].fields_by_name['written_at']._loaded_options = None + _globals['_WRITESCHEMARESPONSE'].fields_by_name['written_at']._options = None _globals['_WRITESCHEMARESPONSE'].fields_by_name['written_at']._serialized_options = b'\372B\005\212\001\002\020\001' - _globals['_SCHEMASERVICE'].methods_by_name['ReadSchema']._loaded_options = None + _globals['_SCHEMASERVICE'].methods_by_name['ReadSchema']._options = None _globals['_SCHEMASERVICE'].methods_by_name['ReadSchema']._serialized_options = b'\202\323\344\223\002\024\"\017/v1/schema/read:\001*' - _globals['_SCHEMASERVICE'].methods_by_name['WriteSchema']._loaded_options = None + _globals['_SCHEMASERVICE'].methods_by_name['WriteSchema']._options = None _globals['_SCHEMASERVICE'].methods_by_name['WriteSchema']._serialized_options = b'\202\323\344\223\002\025\"\020/v1/schema/write:\001*' _globals['_READSCHEMAREQUEST']._serialized_start=137 _globals['_READSCHEMAREQUEST']._serialized_end=156 diff --git a/authzed/api/v1/watch_service_pb2.py b/authzed/api/v1/watch_service_pb2.py index fd0576e..eceab76 100644 --- a/authzed/api/v1/watch_service_pb2.py +++ b/authzed/api/v1/watch_service_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v1/watch_service.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v1/watch_service.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -33,12 +23,12 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v1.watch_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\022com.authzed.api.v1Z2github.com/authzed/authzed-go/proto/authzed/api/v1' - _globals['_WATCHREQUEST'].fields_by_name['optional_object_types']._loaded_options = None + _globals['_WATCHREQUEST'].fields_by_name['optional_object_types']._options = None _globals['_WATCHREQUEST'].fields_by_name['optional_object_types']._serialized_options = b'\372BL\222\001I\010\000\"ErC(\200\0012>^([a-z][a-z0-9_]{1,62}[a-z0-9]/)*[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_WATCHSERVICE'].methods_by_name['Watch']._loaded_options = None + _globals['_WATCHSERVICE'].methods_by_name['Watch']._options = None _globals['_WATCHSERVICE'].methods_by_name['Watch']._serialized_options = b'\202\323\344\223\002\016\"\t/v1/watch:\001*' _globals['_WATCHREQUEST']._serialized_start=178 _globals['_WATCHREQUEST']._serialized_end=508 diff --git a/authzed/api/v1alpha1/schema_pb2.py b/authzed/api/v1alpha1/schema_pb2.py index ed5c9e4..669d36e 100644 --- a/authzed/api/v1alpha1/schema_pb2.py +++ b/authzed/api/v1alpha1/schema_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v1alpha1/schema.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v1alpha1/schema.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -30,12 +20,12 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v1alpha1.schema_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\030com.authzed.api.v1alpha1Z8github.com/authzed/authzed-go/proto/authzed/api/v1alpha1' - _globals['_READSCHEMAREQUEST'].fields_by_name['object_definitions_names']._loaded_options = None + _globals['_READSCHEMAREQUEST'].fields_by_name['object_definitions_names']._options = None _globals['_READSCHEMAREQUEST'].fields_by_name['object_definitions_names']._serialized_options = b'\372BJ\222\001G\"ErC(\200\0012>^([a-z][a-z0-9_]{1,62}[a-z0-9]/)*[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_WRITESCHEMAREQUEST'].fields_by_name['schema']._loaded_options = None + _globals['_WRITESCHEMAREQUEST'].fields_by_name['schema']._options = None _globals['_WRITESCHEMAREQUEST'].fields_by_name['schema']._serialized_options = b'\372B\006r\004(\200\200\020' _globals['_READSCHEMAREQUEST']._serialized_start=85 _globals['_READSCHEMAREQUEST']._serialized_end=242 diff --git a/authzed/api/v1alpha1/watchresources_service_pb2.py b/authzed/api/v1alpha1/watchresources_service_pb2.py index 1acecce..4ba7eff 100644 --- a/authzed/api/v1alpha1/watchresources_service_pb2.py +++ b/authzed/api/v1alpha1/watchresources_service_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: authzed/api/v1alpha1/watchresources_service.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 4.25.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 28, - 0, - '', - 'authzed/api/v1alpha1/watchresources_service.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -32,14 +22,14 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authzed.api.v1alpha1.watchresources_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\030com.authzed.api.v1alpha1Z8github.com/authzed/authzed-go/proto/authzed/api/v1alpha1' - _globals['_WATCHRESOURCESREQUEST'].fields_by_name['resource_object_type']._loaded_options = None + _globals['_WATCHRESOURCESREQUEST'].fields_by_name['resource_object_type']._options = None _globals['_WATCHRESOURCESREQUEST'].fields_by_name['resource_object_type']._serialized_options = b'\372BErC(\200\0012>^([a-z][a-z0-9_]{1,61}[a-z0-9]/)*[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_WATCHRESOURCESREQUEST'].fields_by_name['permission']._loaded_options = None + _globals['_WATCHRESOURCESREQUEST'].fields_by_name['permission']._options = None _globals['_WATCHRESOURCESREQUEST'].fields_by_name['permission']._serialized_options = b'\372B$r\"(@2\036^[a-z][a-z0-9_]{1,62}[a-z0-9]$' - _globals['_WATCHRESOURCESSERVICE'].methods_by_name['WatchResources']._loaded_options = None + _globals['_WATCHRESOURCESSERVICE'].methods_by_name['WatchResources']._options = None _globals['_WATCHRESOURCESSERVICE'].methods_by_name['WatchResources']._serialized_options = b'\202\323\344\223\002\032\"\025/v1alpha1/lookupwatch:\001*' _globals['_WATCHRESOURCESREQUEST']._serialized_start=158 _globals['_WATCHRESOURCESREQUEST']._serialized_end=564