From 67e157ea43148631beac123279cebe434494763d Mon Sep 17 00:00:00 2001 From: Shubham Gupta <14368181+goodhamgupta@users.noreply.github.com> Date: Sun, 8 Sep 2024 13:02:21 +0800 Subject: [PATCH] Task: Upgrade to v1.34.0 (#28) * Upgrade buf schema to v1.34.0 * Update package version to 1.2.0 * Add generated files for v1.34.0 --- buf.gen.yaml | 2 +- lib/api/materialize/v0/watchpermissions.pb.ex | 86 ++++++++++ .../materialize/v0/watchpermissionsets.pb.ex | 162 ++++++++++++++++++ lib/api/v0/core.pb.ex | 8 +- lib/api/v0/developer.pb.ex | 36 ++-- lib/api/v1/core.pb.ex | 26 +-- lib/api/v1/debug.pb.ex | 14 +- lib/api/v1/error_reason.pb.ex | 5 +- lib/api/v1/experimental_service.pb.ex | 145 +++++++++++++--- lib/api/v1/permission_service.pb.ex | 60 +++---- lib/api/v1/schema_service.pb.ex | 8 +- lib/api/v1/watch_service.pb.ex | 4 +- lib/api/v1alpha1/schema.pb.ex | 8 +- lib/api/v1alpha1/watchresources_service.pb.ex | 8 +- lib/google/rpc/code.pb.ex | 2 +- .../rpc/context/attribute_context.pb.ex | 24 +-- lib/google/rpc/error_details.pb.ex | 30 ++-- lib/google/rpc/status.pb.ex | 2 +- mix.exs | 2 +- 19 files changed, 486 insertions(+), 146 deletions(-) create mode 100644 lib/api/materialize/v0/watchpermissions.pb.ex create mode 100644 lib/api/materialize/v0/watchpermissionsets.pb.ex diff --git a/buf.gen.yaml b/buf.gen.yaml index ab3158f..94c307e 100755 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -7,6 +7,6 @@ plugins: opt: - plugins=grpc inputs: - - module: "buf.build/authzed/api:v1.33.0 " + - module: "buf.build/authzed/api:v1.34.0 " - module: "buf.build/googleapis/googleapis" diff --git a/lib/api/materialize/v0/watchpermissions.pb.ex b/lib/api/materialize/v0/watchpermissions.pb.ex new file mode 100644 index 0000000..dd790e7 --- /dev/null +++ b/lib/api/materialize/v0/watchpermissions.pb.ex @@ -0,0 +1,86 @@ +defmodule Authzed.Api.Materialize.V0.PermissionChange.Permissionship do + @moduledoc false + + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:PERMISSIONSHIP_UNSPECIFIED, 0) + field(:PERMISSIONSHIP_NO_PERMISSION, 1) + field(:PERMISSIONSHIP_HAS_PERMISSION, 2) + field(:PERMISSIONSHIP_CONDITIONAL_PERMISSION, 3) +end + +defmodule Authzed.Api.Materialize.V0.WatchPermissionsRequest do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:permissions, 1, repeated: true, type: Authzed.Api.Materialize.V0.WatchedPermission) + + field(:optional_starting_after, 2, + type: Authzed.Api.V1.ZedToken, + json_name: "optionalStartingAfter" + ) +end + +defmodule Authzed.Api.Materialize.V0.WatchedPermission do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:resource_type, 1, type: :string, json_name: "resourceType") + field(:permission, 2, type: :string) + field(:subject_type, 3, type: :string, json_name: "subjectType") + field(:optional_subject_relation, 4, type: :string, json_name: "optionalSubjectRelation") +end + +defmodule Authzed.Api.Materialize.V0.WatchPermissionsResponse do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + oneof(:response, 0) + + field(:change, 1, type: Authzed.Api.Materialize.V0.PermissionChange, oneof: 0) + + field(:completed_revision, 2, + type: Authzed.Api.V1.ZedToken, + json_name: "completedRevision", + oneof: 0 + ) +end + +defmodule Authzed.Api.Materialize.V0.PermissionChange do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:revision, 1, type: Authzed.Api.V1.ZedToken) + field(:resource, 2, type: Authzed.Api.V1.ObjectReference) + field(:permission, 3, type: :string) + field(:subject, 4, type: Authzed.Api.V1.SubjectReference) + + field(:permissionship, 5, + type: Authzed.Api.Materialize.V0.PermissionChange.Permissionship, + enum: true + ) +end + +defmodule Authzed.Api.Materialize.V0.WatchPermissionsService.Service do + @moduledoc false + + use GRPC.Service, + name: "authzed.api.materialize.v0.WatchPermissionsService", + protoc_gen_elixir_version: "0.12.0" + + rpc( + :WatchPermissions, + Authzed.Api.Materialize.V0.WatchPermissionsRequest, + stream(Authzed.Api.Materialize.V0.WatchPermissionsResponse) + ) +end + +defmodule Authzed.Api.Materialize.V0.WatchPermissionsService.Stub do + @moduledoc false + + use GRPC.Stub, service: Authzed.Api.Materialize.V0.WatchPermissionsService.Service +end diff --git a/lib/api/materialize/v0/watchpermissionsets.pb.ex b/lib/api/materialize/v0/watchpermissionsets.pb.ex new file mode 100644 index 0000000..fdbd40f --- /dev/null +++ b/lib/api/materialize/v0/watchpermissionsets.pb.ex @@ -0,0 +1,162 @@ +defmodule Authzed.Api.Materialize.V0.PermissionSetChange.SetOperation do + @moduledoc false + + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:SET_OPERATION_UNSPECIFIED, 0) + field(:SET_OPERATION_ADDED, 1) + field(:SET_OPERATION_REMOVED, 2) +end + +defmodule Authzed.Api.Materialize.V0.WatchPermissionSetsRequest do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:optional_starting_after, 1, + type: Authzed.Api.V1.ZedToken, + json_name: "optionalStartingAfter" + ) +end + +defmodule Authzed.Api.Materialize.V0.WatchPermissionSetsResponse do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + oneof(:response, 0) + + field(:change, 1, type: Authzed.Api.Materialize.V0.PermissionSetChange, oneof: 0) + + field(:completed_revision, 2, + type: Authzed.Api.V1.ZedToken, + json_name: "completedRevision", + oneof: 0 + ) + + field(:lookup_permission_sets_required, 3, + type: Authzed.Api.Materialize.V0.LookupPermissionSetsRequired, + json_name: "lookupPermissionSetsRequired", + oneof: 0 + ) +end + +defmodule Authzed.Api.Materialize.V0.Cursor do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:limit, 1, type: :uint32) + field(:token, 4, type: Authzed.Api.V1.ZedToken) + field(:starting_index, 5, type: :uint32, json_name: "startingIndex") + field(:completed_members, 6, type: :bool, json_name: "completedMembers") +end + +defmodule Authzed.Api.Materialize.V0.LookupPermissionSetsRequest do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:limit, 1, type: :uint32) + + field(:optional_starting_after_cursor, 4, + type: Authzed.Api.Materialize.V0.Cursor, + json_name: "optionalStartingAfterCursor" + ) +end + +defmodule Authzed.Api.Materialize.V0.LookupPermissionSetsResponse do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:change, 1, type: Authzed.Api.Materialize.V0.PermissionSetChange) + field(:cursor, 2, type: Authzed.Api.Materialize.V0.Cursor) +end + +defmodule Authzed.Api.Materialize.V0.PermissionSetChange do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + oneof(:child, 0) + + field(:at_revision, 1, type: Authzed.Api.V1.ZedToken, json_name: "atRevision") + + field(:operation, 2, + type: Authzed.Api.Materialize.V0.PermissionSetChange.SetOperation, + enum: true + ) + + field(:parent_set, 3, type: Authzed.Api.Materialize.V0.SetReference, json_name: "parentSet") + + field(:child_set, 4, + type: Authzed.Api.Materialize.V0.SetReference, + json_name: "childSet", + oneof: 0 + ) + + field(:child_member, 5, + type: Authzed.Api.Materialize.V0.MemberReference, + json_name: "childMember", + oneof: 0 + ) +end + +defmodule Authzed.Api.Materialize.V0.SetReference do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:object_type, 1, type: :string, json_name: "objectType") + field(:object_id, 2, type: :string, json_name: "objectId") + field(:permission_or_relation, 3, type: :string, json_name: "permissionOrRelation") +end + +defmodule Authzed.Api.Materialize.V0.MemberReference do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:object_type, 1, type: :string, json_name: "objectType") + field(:object_id, 2, type: :string, json_name: "objectId") + + field(:optional_permission_or_relation, 3, + type: :string, + json_name: "optionalPermissionOrRelation" + ) +end + +defmodule Authzed.Api.Materialize.V0.LookupPermissionSetsRequired do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:required_lookup_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "requiredLookupAt") +end + +defmodule Authzed.Api.Materialize.V0.WatchPermissionSetsService.Service do + @moduledoc false + + use GRPC.Service, + name: "authzed.api.materialize.v0.WatchPermissionSetsService", + protoc_gen_elixir_version: "0.12.0" + + rpc( + :WatchPermissionSets, + Authzed.Api.Materialize.V0.WatchPermissionSetsRequest, + stream(Authzed.Api.Materialize.V0.WatchPermissionSetsResponse) + ) + + rpc( + :LookupPermissionSets, + Authzed.Api.Materialize.V0.LookupPermissionSetsRequest, + stream(Authzed.Api.Materialize.V0.LookupPermissionSetsResponse) + ) +end + +defmodule Authzed.Api.Materialize.V0.WatchPermissionSetsService.Stub do + @moduledoc false + + use GRPC.Stub, service: Authzed.Api.Materialize.V0.WatchPermissionSetsService.Service +end diff --git a/lib/api/v0/core.pb.ex b/lib/api/v0/core.pb.ex index d24d01a..b01728b 100644 --- a/lib/api/v0/core.pb.ex +++ b/lib/api/v0/core.pb.ex @@ -1,7 +1,7 @@ defmodule Authzed.Api.V0.RelationTuple do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:object_and_relation, 1, type: Authzed.Api.V0.ObjectAndRelation, @@ -15,7 +15,7 @@ end defmodule Authzed.Api.V0.ObjectAndRelation do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:namespace, 1, type: :string, deprecated: false) field(:object_id, 2, type: :string, json_name: "objectId", deprecated: false) @@ -25,7 +25,7 @@ end defmodule Authzed.Api.V0.RelationReference do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:namespace, 1, type: :string, deprecated: false) field(:relation, 3, type: :string, deprecated: false) @@ -34,7 +34,7 @@ end defmodule Authzed.Api.V0.User do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" oneof(:user_oneof, 0) diff --git a/lib/api/v0/developer.pb.ex b/lib/api/v0/developer.pb.ex index 7b8553b..0bec94a 100644 --- a/lib/api/v0/developer.pb.ex +++ b/lib/api/v0/developer.pb.ex @@ -1,7 +1,7 @@ defmodule Authzed.Api.V0.LookupShareResponse.LookupStatus do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:UNKNOWN_REFERENCE, 0) field(:FAILED_TO_LOOKUP, 1) @@ -12,7 +12,7 @@ end defmodule Authzed.Api.V0.DeveloperError.Source do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:UNKNOWN_SOURCE, 0) field(:SCHEMA, 1) @@ -25,7 +25,7 @@ end defmodule Authzed.Api.V0.DeveloperError.ErrorKind do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:UNKNOWN_KIND, 0) field(:PARSE_ERROR, 1) @@ -42,7 +42,7 @@ end defmodule Authzed.Api.V0.FormatSchemaRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:schema, 1, type: :string) end @@ -50,7 +50,7 @@ end defmodule Authzed.Api.V0.FormatSchemaResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:error, 1, type: Authzed.Api.V0.DeveloperError) field(:formatted_schema, 2, type: :string, json_name: "formattedSchema") @@ -59,7 +59,7 @@ end defmodule Authzed.Api.V0.UpgradeSchemaRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:namespace_configs, 1, repeated: true, type: :string, json_name: "namespaceConfigs") end @@ -67,7 +67,7 @@ end defmodule Authzed.Api.V0.UpgradeSchemaResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:error, 1, type: Authzed.Api.V0.DeveloperError) field(:upgraded_schema, 2, type: :string, json_name: "upgradedSchema") @@ -76,7 +76,7 @@ end defmodule Authzed.Api.V0.ShareRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:schema, 1, type: :string) field(:relationships_yaml, 2, type: :string, json_name: "relationshipsYaml") @@ -87,7 +87,7 @@ end defmodule Authzed.Api.V0.ShareResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:share_reference, 1, type: :string, json_name: "shareReference") end @@ -95,7 +95,7 @@ end defmodule Authzed.Api.V0.LookupShareRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:share_reference, 1, type: :string, json_name: "shareReference") end @@ -103,7 +103,7 @@ end defmodule Authzed.Api.V0.LookupShareResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:status, 1, type: Authzed.Api.V0.LookupShareResponse.LookupStatus, enum: true) field(:schema, 2, type: :string) @@ -115,7 +115,7 @@ end defmodule Authzed.Api.V0.RequestContext do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:schema, 1, type: :string) field(:relationships, 2, repeated: true, type: Authzed.Api.V0.RelationTuple) @@ -124,7 +124,7 @@ end defmodule Authzed.Api.V0.EditCheckRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:context, 1, type: Authzed.Api.V0.RequestContext) @@ -138,7 +138,7 @@ end defmodule Authzed.Api.V0.EditCheckResult do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:relationship, 1, type: Authzed.Api.V0.RelationTuple) field(:is_member, 2, type: :bool, json_name: "isMember") @@ -148,7 +148,7 @@ end defmodule Authzed.Api.V0.EditCheckResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:request_errors, 1, repeated: true, @@ -166,7 +166,7 @@ end defmodule Authzed.Api.V0.ValidateRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:context, 1, type: Authzed.Api.V0.RequestContext) field(:validation_yaml, 3, type: :string, json_name: "validationYaml") @@ -177,7 +177,7 @@ end defmodule Authzed.Api.V0.ValidateResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:request_errors, 1, repeated: true, @@ -197,7 +197,7 @@ end defmodule Authzed.Api.V0.DeveloperError do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:message, 1, type: :string) field(:line, 2, type: :uint32) diff --git a/lib/api/v1/core.pb.ex b/lib/api/v1/core.pb.ex index 285b01f..0fabc91 100644 --- a/lib/api/v1/core.pb.ex +++ b/lib/api/v1/core.pb.ex @@ -1,7 +1,7 @@ defmodule Authzed.Api.V1.RelationshipUpdate.Operation do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:OPERATION_UNSPECIFIED, 0) field(:OPERATION_CREATE, 1) @@ -12,7 +12,7 @@ end defmodule Authzed.Api.V1.AlgebraicSubjectSet.Operation do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:OPERATION_UNSPECIFIED, 0) field(:OPERATION_UNION, 1) @@ -23,7 +23,7 @@ end defmodule Authzed.Api.V1.Relationship do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:resource, 1, type: Authzed.Api.V1.ObjectReference, deprecated: false) field(:relation, 2, type: :string, deprecated: false) @@ -39,7 +39,7 @@ end defmodule Authzed.Api.V1.ContextualizedCaveat do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:caveat_name, 1, type: :string, json_name: "caveatName", deprecated: false) field(:context, 2, type: Google.Protobuf.Struct, deprecated: false) @@ -48,7 +48,7 @@ end defmodule Authzed.Api.V1.SubjectReference do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:object, 1, type: Authzed.Api.V1.ObjectReference, deprecated: false) field(:optional_relation, 2, type: :string, json_name: "optionalRelation", deprecated: false) @@ -57,7 +57,7 @@ end defmodule Authzed.Api.V1.ObjectReference do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:object_type, 1, type: :string, json_name: "objectType", deprecated: false) field(:object_id, 2, type: :string, json_name: "objectId", deprecated: false) @@ -66,7 +66,7 @@ end defmodule Authzed.Api.V1.ZedToken do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:token, 1, type: :string, deprecated: false) end @@ -74,7 +74,7 @@ end defmodule Authzed.Api.V1.Cursor do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:token, 1, type: :string, deprecated: false) end @@ -82,7 +82,7 @@ end defmodule Authzed.Api.V1.RelationshipUpdate do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:operation, 1, type: Authzed.Api.V1.RelationshipUpdate.Operation, @@ -96,7 +96,7 @@ end defmodule Authzed.Api.V1.PermissionRelationshipTree do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" oneof(:tree_type, 0) @@ -109,7 +109,7 @@ end defmodule Authzed.Api.V1.AlgebraicSubjectSet do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:operation, 1, type: Authzed.Api.V1.AlgebraicSubjectSet.Operation, @@ -127,7 +127,7 @@ end defmodule Authzed.Api.V1.DirectSubjectSet do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:subjects, 1, repeated: true, type: Authzed.Api.V1.SubjectReference) end @@ -135,7 +135,7 @@ end defmodule Authzed.Api.V1.PartialCaveatInfo do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:missing_required_context, 1, repeated: true, diff --git a/lib/api/v1/debug.pb.ex b/lib/api/v1/debug.pb.ex index 3eaa2c3..1300445 100644 --- a/lib/api/v1/debug.pb.ex +++ b/lib/api/v1/debug.pb.ex @@ -1,7 +1,7 @@ defmodule Authzed.Api.V1.CheckDebugTrace.PermissionType do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:PERMISSION_TYPE_UNSPECIFIED, 0) field(:PERMISSION_TYPE_RELATION, 1) @@ -11,7 +11,7 @@ end defmodule Authzed.Api.V1.CheckDebugTrace.Permissionship do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:PERMISSIONSHIP_UNSPECIFIED, 0) field(:PERMISSIONSHIP_NO_PERMISSION, 1) @@ -22,7 +22,7 @@ end defmodule Authzed.Api.V1.CaveatEvalInfo.Result do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:RESULT_UNSPECIFIED, 0) field(:RESULT_UNEVALUATED, 1) @@ -34,7 +34,7 @@ end defmodule Authzed.Api.V1.DebugInformation do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:check, 1, type: Authzed.Api.V1.CheckDebugTrace) field(:schema_used, 2, type: :string, json_name: "schemaUsed") @@ -43,7 +43,7 @@ end defmodule Authzed.Api.V1.CheckDebugTrace.SubProblems do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:traces, 1, repeated: true, type: Authzed.Api.V1.CheckDebugTrace) end @@ -51,7 +51,7 @@ end defmodule Authzed.Api.V1.CheckDebugTrace do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" oneof(:resolution, 0) @@ -91,7 +91,7 @@ end defmodule Authzed.Api.V1.CaveatEvalInfo do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:expression, 1, type: :string) field(:result, 2, type: Authzed.Api.V1.CaveatEvalInfo.Result, enum: true) diff --git a/lib/api/v1/error_reason.pb.ex b/lib/api/v1/error_reason.pb.ex index eb0ef02..3a5170d 100644 --- a/lib/api/v1/error_reason.pb.ex +++ b/lib/api/v1/error_reason.pb.ex @@ -1,7 +1,7 @@ defmodule Authzed.Api.V1.ErrorReason do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:ERROR_REASON_UNSPECIFIED, 0) field(:ERROR_REASON_SCHEMA_PARSE_ERROR, 1) @@ -29,4 +29,7 @@ defmodule Authzed.Api.V1.ErrorReason do field(:ERROR_REASON_INVALID_FILTER, 23) field(:ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES, 24) field(:ERROR_REASON_EMPTY_PRECONDITION, 25) + field(:ERROR_REASON_COUNTER_ALREADY_REGISTERED, 26) + field(:ERROR_REASON_COUNTER_NOT_REGISTERED, 27) + field(:ERROR_REASON_WILDCARD_NOT_ALLOWED, 28) end diff --git a/lib/api/v1/experimental_service.pb.ex b/lib/api/v1/experimental_service.pb.ex index 3363e58..dea1d95 100644 --- a/lib/api/v1/experimental_service.pb.ex +++ b/lib/api/v1/experimental_service.pb.ex @@ -1,7 +1,78 @@ +defmodule Authzed.Api.V1.ExperimentalRegisterRelationshipCounterRequest do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:name, 1, type: :string, deprecated: false) + + field(:relationship_filter, 2, + type: Authzed.Api.V1.RelationshipFilter, + json_name: "relationshipFilter", + deprecated: false + ) +end + +defmodule Authzed.Api.V1.ExperimentalRegisterRelationshipCounterResponse do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" +end + +defmodule Authzed.Api.V1.ExperimentalCountRelationshipsRequest do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:name, 1, type: :string, deprecated: false) +end + +defmodule Authzed.Api.V1.ExperimentalCountRelationshipsResponse do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + oneof(:counter_result, 0) + + field(:counter_still_calculating, 1, + type: :bool, + json_name: "counterStillCalculating", + oneof: 0 + ) + + field(:read_counter_value, 2, + type: Authzed.Api.V1.ReadCounterValue, + json_name: "readCounterValue", + oneof: 0 + ) +end + +defmodule Authzed.Api.V1.ReadCounterValue do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:relationship_count, 1, type: :uint64, json_name: "relationshipCount") + field(:read_at, 2, type: Authzed.Api.V1.ZedToken, json_name: "readAt", deprecated: false) +end + +defmodule Authzed.Api.V1.ExperimentalUnregisterRelationshipCounterRequest do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" + + field(:name, 1, type: :string, deprecated: false) +end + +defmodule Authzed.Api.V1.ExperimentalUnregisterRelationshipCounterResponse do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" +end + defmodule Authzed.Api.V1.BulkCheckPermissionRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) @@ -15,7 +86,7 @@ end defmodule Authzed.Api.V1.BulkCheckPermissionRequestItem do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:resource, 1, type: Authzed.Api.V1.ObjectReference, deprecated: false) field(:permission, 2, type: :string, deprecated: false) @@ -26,7 +97,7 @@ end defmodule Authzed.Api.V1.BulkCheckPermissionResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:checked_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "checkedAt", deprecated: false) @@ -40,7 +111,7 @@ end defmodule Authzed.Api.V1.BulkCheckPermissionPair do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" oneof(:response, 0) @@ -52,7 +123,7 @@ end defmodule Authzed.Api.V1.BulkCheckPermissionResponseItem do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:permissionship, 1, type: Authzed.Api.V1.CheckPermissionResponse.Permissionship, @@ -70,7 +141,7 @@ end defmodule Authzed.Api.V1.BulkImportRelationshipsRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:relationships, 1, repeated: true, type: Authzed.Api.V1.Relationship, deprecated: false) end @@ -78,7 +149,7 @@ end defmodule Authzed.Api.V1.BulkImportRelationshipsResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:num_loaded, 1, type: :uint64, json_name: "numLoaded") end @@ -86,7 +157,7 @@ end defmodule Authzed.Api.V1.BulkExportRelationshipsRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) field(:optional_limit, 2, type: :uint32, json_name: "optionalLimit", deprecated: false) @@ -101,7 +172,7 @@ end defmodule Authzed.Api.V1.BulkExportRelationshipsResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:after_result_cursor, 1, type: Authzed.Api.V1.Cursor, json_name: "afterResultCursor") field(:relationships, 2, repeated: true, type: Authzed.Api.V1.Relationship) @@ -110,7 +181,7 @@ end defmodule Authzed.Api.V1.ExperimentalReflectSchemaRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) @@ -124,7 +195,7 @@ end defmodule Authzed.Api.V1.ExperimentalReflectSchemaResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:definitions, 1, repeated: true, type: Authzed.Api.V1.ExpDefinition) field(:caveats, 2, repeated: true, type: Authzed.Api.V1.ExpCaveat) @@ -134,7 +205,7 @@ end defmodule Authzed.Api.V1.ExpSchemaFilter do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:optional_definition_name_filter, 1, type: :string, @@ -153,7 +224,7 @@ end defmodule Authzed.Api.V1.ExpDefinition do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:name, 1, type: :string) field(:comment, 2, type: :string) @@ -164,7 +235,7 @@ end defmodule Authzed.Api.V1.ExpCaveat do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:name, 1, type: :string) field(:comment, 2, type: :string) @@ -175,7 +246,7 @@ end defmodule Authzed.Api.V1.ExpCaveatParameter do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:name, 1, type: :string) field(:type, 2, type: :string) @@ -185,7 +256,7 @@ end defmodule Authzed.Api.V1.ExpRelation do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:name, 1, type: :string) field(:comment, 2, type: :string) @@ -201,7 +272,7 @@ end defmodule Authzed.Api.V1.ExpTypeReference do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" oneof(:typeref, 0) @@ -215,7 +286,7 @@ end defmodule Authzed.Api.V1.ExpPermission do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:name, 1, type: :string) field(:comment, 2, type: :string) @@ -225,7 +296,7 @@ end defmodule Authzed.Api.V1.ExperimentalComputablePermissionsRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) field(:definition_name, 2, type: :string, json_name: "definitionName") @@ -240,7 +311,7 @@ end defmodule Authzed.Api.V1.ExpRelationReference do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:definition_name, 1, type: :string, json_name: "definitionName") field(:relation_name, 2, type: :string, json_name: "relationName") @@ -250,7 +321,7 @@ end defmodule Authzed.Api.V1.ExperimentalComputablePermissionsResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:permissions, 1, repeated: true, type: Authzed.Api.V1.ExpRelationReference) field(:read_at, 2, type: Authzed.Api.V1.ZedToken, json_name: "readAt") @@ -259,7 +330,7 @@ end defmodule Authzed.Api.V1.ExperimentalDependentRelationsRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) field(:definition_name, 2, type: :string, json_name: "definitionName") @@ -269,7 +340,7 @@ end defmodule Authzed.Api.V1.ExperimentalDependentRelationsResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:relations, 1, repeated: true, type: Authzed.Api.V1.ExpRelationReference) field(:read_at, 2, type: Authzed.Api.V1.ZedToken, json_name: "readAt") @@ -278,7 +349,7 @@ end defmodule Authzed.Api.V1.ExperimentalDiffSchemaRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) field(:comparison_schema, 2, type: :string, json_name: "comparisonSchema") @@ -287,7 +358,7 @@ end defmodule Authzed.Api.V1.ExperimentalDiffSchemaResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:diffs, 1, repeated: true, type: Authzed.Api.V1.ExpSchemaDiff) field(:read_at, 2, type: Authzed.Api.V1.ZedToken, json_name: "readAt") @@ -296,7 +367,7 @@ end defmodule Authzed.Api.V1.ExpRelationSubjectTypeChange do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:relation, 1, type: Authzed.Api.V1.ExpRelation) @@ -309,7 +380,7 @@ end defmodule Authzed.Api.V1.ExpCaveatParameterTypeChange do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:parameter, 1, type: Authzed.Api.V1.ExpCaveatParameter) field(:previous_type, 2, type: :string, json_name: "previousType") @@ -318,7 +389,7 @@ end defmodule Authzed.Api.V1.ExpSchemaDiff do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" oneof(:diff, 0) @@ -476,6 +547,24 @@ defmodule Authzed.Api.V1.ExperimentalService.Service do Authzed.Api.V1.ExperimentalDiffSchemaRequest, Authzed.Api.V1.ExperimentalDiffSchemaResponse ) + + rpc( + :ExperimentalRegisterRelationshipCounter, + Authzed.Api.V1.ExperimentalRegisterRelationshipCounterRequest, + Authzed.Api.V1.ExperimentalRegisterRelationshipCounterResponse + ) + + rpc( + :ExperimentalCountRelationships, + Authzed.Api.V1.ExperimentalCountRelationshipsRequest, + Authzed.Api.V1.ExperimentalCountRelationshipsResponse + ) + + rpc( + :ExperimentalUnregisterRelationshipCounter, + Authzed.Api.V1.ExperimentalUnregisterRelationshipCounterRequest, + Authzed.Api.V1.ExperimentalUnregisterRelationshipCounterResponse + ) end defmodule Authzed.Api.V1.ExperimentalService.Stub do diff --git a/lib/api/v1/permission_service.pb.ex b/lib/api/v1/permission_service.pb.ex index a8f11bc..609609b 100644 --- a/lib/api/v1/permission_service.pb.ex +++ b/lib/api/v1/permission_service.pb.ex @@ -1,7 +1,7 @@ defmodule Authzed.Api.V1.LookupPermissionship do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:LOOKUP_PERMISSIONSHIP_UNSPECIFIED, 0) field(:LOOKUP_PERMISSIONSHIP_HAS_PERMISSION, 1) @@ -11,7 +11,7 @@ end defmodule Authzed.Api.V1.Precondition.Operation do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:OPERATION_UNSPECIFIED, 0) field(:OPERATION_MUST_NOT_MATCH, 1) @@ -21,7 +21,7 @@ end defmodule Authzed.Api.V1.DeleteRelationshipsResponse.DeletionProgress do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:DELETION_PROGRESS_UNSPECIFIED, 0) field(:DELETION_PROGRESS_COMPLETE, 1) @@ -31,7 +31,7 @@ end defmodule Authzed.Api.V1.CheckPermissionResponse.Permissionship do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:PERMISSIONSHIP_UNSPECIFIED, 0) field(:PERMISSIONSHIP_NO_PERMISSION, 1) @@ -42,7 +42,7 @@ end defmodule Authzed.Api.V1.LookupSubjectsRequest.WildcardOption do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:WILDCARD_OPTION_UNSPECIFIED, 0) field(:WILDCARD_OPTION_INCLUDE_WILDCARDS, 1) @@ -52,7 +52,7 @@ end defmodule Authzed.Api.V1.Consistency do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" oneof(:requirement, 0) @@ -86,7 +86,7 @@ end defmodule Authzed.Api.V1.RelationshipFilter do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:resource_type, 1, type: :string, json_name: "resourceType", deprecated: false) @@ -113,7 +113,7 @@ end defmodule Authzed.Api.V1.SubjectFilter.RelationFilter do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:relation, 1, type: :string, deprecated: false) end @@ -121,7 +121,7 @@ end defmodule Authzed.Api.V1.SubjectFilter do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:subject_type, 1, type: :string, json_name: "subjectType", deprecated: false) field(:optional_subject_id, 2, type: :string, json_name: "optionalSubjectId", deprecated: false) @@ -135,7 +135,7 @@ end defmodule Authzed.Api.V1.ReadRelationshipsRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) @@ -152,7 +152,7 @@ end defmodule Authzed.Api.V1.ReadRelationshipsResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:read_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "readAt", deprecated: false) field(:relationship, 2, type: Authzed.Api.V1.Relationship, deprecated: false) @@ -162,7 +162,7 @@ end defmodule Authzed.Api.V1.Precondition do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:operation, 1, type: Authzed.Api.V1.Precondition.Operation, enum: true, deprecated: false) field(:filter, 2, type: Authzed.Api.V1.RelationshipFilter, deprecated: false) @@ -171,7 +171,7 @@ end defmodule Authzed.Api.V1.WriteRelationshipsRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:updates, 1, repeated: true, type: Authzed.Api.V1.RelationshipUpdate, deprecated: false) @@ -186,7 +186,7 @@ end defmodule Authzed.Api.V1.WriteRelationshipsResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:written_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "writtenAt") end @@ -194,7 +194,7 @@ end defmodule Authzed.Api.V1.DeleteRelationshipsRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:relationship_filter, 1, type: Authzed.Api.V1.RelationshipFilter, @@ -220,7 +220,7 @@ end defmodule Authzed.Api.V1.DeleteRelationshipsResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:deleted_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "deletedAt") @@ -234,7 +234,7 @@ end defmodule Authzed.Api.V1.CheckPermissionRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) field(:resource, 2, type: Authzed.Api.V1.ObjectReference, deprecated: false) @@ -247,7 +247,7 @@ end defmodule Authzed.Api.V1.CheckPermissionResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:checked_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "checkedAt", deprecated: false) @@ -269,7 +269,7 @@ end defmodule Authzed.Api.V1.CheckBulkPermissionsRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) @@ -283,7 +283,7 @@ end defmodule Authzed.Api.V1.CheckBulkPermissionsRequestItem do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:resource, 1, type: Authzed.Api.V1.ObjectReference, deprecated: false) field(:permission, 2, type: :string, deprecated: false) @@ -294,7 +294,7 @@ end defmodule Authzed.Api.V1.CheckBulkPermissionsResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:checked_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "checkedAt", deprecated: false) @@ -308,7 +308,7 @@ end defmodule Authzed.Api.V1.CheckBulkPermissionsPair do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" oneof(:response, 0) @@ -320,7 +320,7 @@ end defmodule Authzed.Api.V1.CheckBulkPermissionsResponseItem do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:permissionship, 1, type: Authzed.Api.V1.CheckPermissionResponse.Permissionship, @@ -338,7 +338,7 @@ end defmodule Authzed.Api.V1.ExpandPermissionTreeRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) field(:resource, 2, type: Authzed.Api.V1.ObjectReference, deprecated: false) @@ -348,7 +348,7 @@ end defmodule Authzed.Api.V1.ExpandPermissionTreeResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:expanded_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "expandedAt") field(:tree_root, 2, type: Authzed.Api.V1.PermissionRelationshipTree, json_name: "treeRoot") @@ -357,7 +357,7 @@ end defmodule Authzed.Api.V1.LookupResourcesRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) @@ -377,7 +377,7 @@ end defmodule Authzed.Api.V1.LookupResourcesResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:looked_up_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "lookedUpAt") field(:resource_object_id, 2, type: :string, json_name: "resourceObjectId") @@ -400,7 +400,7 @@ end defmodule Authzed.Api.V1.LookupSubjectsRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:consistency, 1, type: Authzed.Api.V1.Consistency) field(:resource, 2, type: Authzed.Api.V1.ObjectReference, deprecated: false) @@ -433,7 +433,7 @@ end defmodule Authzed.Api.V1.LookupSubjectsResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:looked_up_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "lookedUpAt") field(:subject_object_id, 2, type: :string, json_name: "subjectObjectId", deprecated: true) @@ -471,7 +471,7 @@ end defmodule Authzed.Api.V1.ResolvedSubject do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:subject_object_id, 1, type: :string, json_name: "subjectObjectId") diff --git a/lib/api/v1/schema_service.pb.ex b/lib/api/v1/schema_service.pb.ex index e311189..2331e33 100644 --- a/lib/api/v1/schema_service.pb.ex +++ b/lib/api/v1/schema_service.pb.ex @@ -1,13 +1,13 @@ defmodule Authzed.Api.V1.ReadSchemaRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" end defmodule Authzed.Api.V1.ReadSchemaResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:schema_text, 1, type: :string, json_name: "schemaText") field(:read_at, 2, type: Authzed.Api.V1.ZedToken, json_name: "readAt", deprecated: false) @@ -16,7 +16,7 @@ end defmodule Authzed.Api.V1.WriteSchemaRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:schema, 1, type: :string, deprecated: false) end @@ -24,7 +24,7 @@ end defmodule Authzed.Api.V1.WriteSchemaResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:written_at, 1, type: Authzed.Api.V1.ZedToken, json_name: "writtenAt", deprecated: false) end diff --git a/lib/api/v1/watch_service.pb.ex b/lib/api/v1/watch_service.pb.ex index 8ae2779..42d7d18 100644 --- a/lib/api/v1/watch_service.pb.ex +++ b/lib/api/v1/watch_service.pb.ex @@ -1,7 +1,7 @@ defmodule Authzed.Api.V1.WatchRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:optional_object_types, 1, repeated: true, @@ -25,7 +25,7 @@ end defmodule Authzed.Api.V1.WatchResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:updates, 1, repeated: true, type: Authzed.Api.V1.RelationshipUpdate) field(:changes_through, 2, type: Authzed.Api.V1.ZedToken, json_name: "changesThrough") diff --git a/lib/api/v1alpha1/schema.pb.ex b/lib/api/v1alpha1/schema.pb.ex index 36ba2d5..56d198a 100644 --- a/lib/api/v1alpha1/schema.pb.ex +++ b/lib/api/v1alpha1/schema.pb.ex @@ -1,7 +1,7 @@ defmodule Authzed.Api.V1alpha1.ReadSchemaRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:object_definitions_names, 1, repeated: true, @@ -14,7 +14,7 @@ end defmodule Authzed.Api.V1alpha1.ReadSchemaResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:object_definitions, 1, repeated: true, type: :string, json_name: "objectDefinitions") @@ -27,7 +27,7 @@ end defmodule Authzed.Api.V1alpha1.WriteSchemaRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:schema, 1, type: :string, deprecated: false) @@ -40,7 +40,7 @@ end defmodule Authzed.Api.V1alpha1.WriteSchemaResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:object_definitions_names, 1, repeated: true, diff --git a/lib/api/v1alpha1/watchresources_service.pb.ex b/lib/api/v1alpha1/watchresources_service.pb.ex index c75c9af..6817533 100644 --- a/lib/api/v1alpha1/watchresources_service.pb.ex +++ b/lib/api/v1alpha1/watchresources_service.pb.ex @@ -1,7 +1,7 @@ defmodule Authzed.Api.V1alpha1.PermissionUpdate.Permissionship do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:PERMISSIONSHIP_UNSPECIFIED, 0) field(:PERMISSIONSHIP_NO_PERMISSION, 1) @@ -11,7 +11,7 @@ end defmodule Authzed.Api.V1alpha1.WatchResourcesRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:resource_object_type, 1, type: :string, @@ -32,7 +32,7 @@ end defmodule Authzed.Api.V1alpha1.PermissionUpdate do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:subject, 1, type: Authzed.Api.V1.SubjectReference) field(:resource, 2, type: Authzed.Api.V1.ObjectReference) @@ -48,7 +48,7 @@ end defmodule Authzed.Api.V1alpha1.WatchResourcesResponse do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:updates, 1, repeated: true, type: Authzed.Api.V1alpha1.PermissionUpdate) field(:changes_through, 2, type: Authzed.Api.V1.ZedToken, json_name: "changesThrough") diff --git a/lib/google/rpc/code.pb.ex b/lib/google/rpc/code.pb.ex index 80b0dcc..354671e 100644 --- a/lib/google/rpc/code.pb.ex +++ b/lib/google/rpc/code.pb.ex @@ -1,7 +1,7 @@ defmodule Google.Rpc.Code do @moduledoc false - use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:OK, 0) field(:CANCELLED, 1) diff --git a/lib/google/rpc/context/attribute_context.pb.ex b/lib/google/rpc/context/attribute_context.pb.ex index 35c0529..a05c54a 100644 --- a/lib/google/rpc/context/attribute_context.pb.ex +++ b/lib/google/rpc/context/attribute_context.pb.ex @@ -1,7 +1,7 @@ defmodule Google.Rpc.Context.AttributeContext.Peer.LabelsEntry do @moduledoc false - use Protobuf, map: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, map: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:key, 1, type: :string) field(:value, 2, type: :string) @@ -10,7 +10,7 @@ end defmodule Google.Rpc.Context.AttributeContext.Peer do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:ip, 1, type: :string) field(:port, 2, type: :int64) @@ -28,7 +28,7 @@ end defmodule Google.Rpc.Context.AttributeContext.Api do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:service, 1, type: :string) field(:operation, 2, type: :string) @@ -39,7 +39,7 @@ end defmodule Google.Rpc.Context.AttributeContext.Auth do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:principal, 1, type: :string) field(:audiences, 2, repeated: true, type: :string) @@ -51,7 +51,7 @@ end defmodule Google.Rpc.Context.AttributeContext.Request.HeadersEntry do @moduledoc false - use Protobuf, map: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, map: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:key, 1, type: :string) field(:value, 2, type: :string) @@ -60,7 +60,7 @@ end defmodule Google.Rpc.Context.AttributeContext.Request do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:id, 1, type: :string) field(:method, 2, type: :string) @@ -85,7 +85,7 @@ end defmodule Google.Rpc.Context.AttributeContext.Response.HeadersEntry do @moduledoc false - use Protobuf, map: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, map: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:key, 1, type: :string) field(:value, 2, type: :string) @@ -94,7 +94,7 @@ end defmodule Google.Rpc.Context.AttributeContext.Response do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:code, 1, type: :int64) field(:size, 2, type: :int64) @@ -112,7 +112,7 @@ end defmodule Google.Rpc.Context.AttributeContext.Resource.LabelsEntry do @moduledoc false - use Protobuf, map: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, map: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:key, 1, type: :string) field(:value, 2, type: :string) @@ -121,7 +121,7 @@ end defmodule Google.Rpc.Context.AttributeContext.Resource.AnnotationsEntry do @moduledoc false - use Protobuf, map: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, map: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:key, 1, type: :string) field(:value, 2, type: :string) @@ -130,7 +130,7 @@ end defmodule Google.Rpc.Context.AttributeContext.Resource do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:service, 1, type: :string) field(:name, 2, type: :string) @@ -161,7 +161,7 @@ end defmodule Google.Rpc.Context.AttributeContext do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:origin, 7, type: Google.Rpc.Context.AttributeContext.Peer) field(:source, 1, type: Google.Rpc.Context.AttributeContext.Peer) diff --git a/lib/google/rpc/error_details.pb.ex b/lib/google/rpc/error_details.pb.ex index 183cb85..64181ea 100644 --- a/lib/google/rpc/error_details.pb.ex +++ b/lib/google/rpc/error_details.pb.ex @@ -1,7 +1,7 @@ defmodule Google.Rpc.ErrorInfo.MetadataEntry do @moduledoc false - use Protobuf, map: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, map: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:key, 1, type: :string) field(:value, 2, type: :string) @@ -10,7 +10,7 @@ end defmodule Google.Rpc.ErrorInfo do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:reason, 1, type: :string) field(:domain, 2, type: :string) @@ -20,7 +20,7 @@ end defmodule Google.Rpc.RetryInfo do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:retry_delay, 1, type: Google.Protobuf.Duration, json_name: "retryDelay") end @@ -28,7 +28,7 @@ end defmodule Google.Rpc.DebugInfo do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:stack_entries, 1, repeated: true, type: :string, json_name: "stackEntries") field(:detail, 2, type: :string) @@ -37,7 +37,7 @@ end defmodule Google.Rpc.QuotaFailure.Violation do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:subject, 1, type: :string) field(:description, 2, type: :string) @@ -46,7 +46,7 @@ end defmodule Google.Rpc.QuotaFailure do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:violations, 1, repeated: true, type: Google.Rpc.QuotaFailure.Violation) end @@ -54,7 +54,7 @@ end defmodule Google.Rpc.PreconditionFailure.Violation do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:type, 1, type: :string) field(:subject, 2, type: :string) @@ -64,7 +64,7 @@ end defmodule Google.Rpc.PreconditionFailure do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:violations, 1, repeated: true, type: Google.Rpc.PreconditionFailure.Violation) end @@ -72,7 +72,7 @@ end defmodule Google.Rpc.BadRequest.FieldViolation do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:field, 1, type: :string) field(:description, 2, type: :string) @@ -81,7 +81,7 @@ end defmodule Google.Rpc.BadRequest do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:field_violations, 1, repeated: true, @@ -93,7 +93,7 @@ end defmodule Google.Rpc.RequestInfo do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:request_id, 1, type: :string, json_name: "requestId") field(:serving_data, 2, type: :string, json_name: "servingData") @@ -102,7 +102,7 @@ end defmodule Google.Rpc.ResourceInfo do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:resource_type, 1, type: :string, json_name: "resourceType") field(:resource_name, 2, type: :string, json_name: "resourceName") @@ -113,7 +113,7 @@ end defmodule Google.Rpc.Help.Link do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:description, 1, type: :string) field(:url, 2, type: :string) @@ -122,7 +122,7 @@ end defmodule Google.Rpc.Help do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:links, 1, repeated: true, type: Google.Rpc.Help.Link) end @@ -130,7 +130,7 @@ end defmodule Google.Rpc.LocalizedMessage do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:locale, 1, type: :string) field(:message, 2, type: :string) diff --git a/lib/google/rpc/status.pb.ex b/lib/google/rpc/status.pb.ex index 22a2368..66f77c6 100644 --- a/lib/google/rpc/status.pb.ex +++ b/lib/google/rpc/status.pb.ex @@ -1,7 +1,7 @@ defmodule Google.Rpc.Status do @moduledoc false - use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3 + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" field(:code, 1, type: :int32) field(:message, 2, type: :string) diff --git a/mix.exs b/mix.exs index aba42a0..ec7340b 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Authzed.MixProject do use Mix.Project - @version "1.0.1" + @version "1.2.0" @repo_url "https://github.com/goodhamgupta/authzed_ex/" def project do