-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade buf schema to v1.34.0 * Update package version to 1.2.0 * Add generated files for v1.34.0
- Loading branch information
1 parent
db8ebc6
commit 67e157e
Showing
19 changed files
with
486 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.