Skip to content

Commit

Permalink
Task: Upgrade to v1.34.0 (#28)
Browse files Browse the repository at this point in the history
* Upgrade buf schema to v1.34.0

* Update package version to 1.2.0

* Add generated files for v1.34.0
  • Loading branch information
goodhamgupta authored Sep 8, 2024
1 parent db8ebc6 commit 67e157e
Show file tree
Hide file tree
Showing 19 changed files with 486 additions and 146 deletions.
2 changes: 1 addition & 1 deletion buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

86 changes: 86 additions & 0 deletions lib/api/materialize/v0/watchpermissions.pb.ex
Original file line number Diff line number Diff line change
@@ -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
162 changes: 162 additions & 0 deletions lib/api/materialize/v0/watchpermissionsets.pb.ex
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions lib/api/v0/core.pb.ex
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)

Expand Down
Loading

0 comments on commit 67e157e

Please sign in to comment.