Skip to content

Commit 0bd273a

Browse files
committed
chore: clarify 'unspecified' enum values
1 parent 089070d commit 0bd273a

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

authzed/api/materialize/v0/watchpermissions.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ message WatchPermissionsResponse {
6666

6767
message PermissionChange {
6868
enum Permissionship {
69+
// Unspecified is an unused default value that should not be encountered in normal operation.
6970
PERMISSIONSHIP_UNSPECIFIED = 0;
7071
PERMISSIONSHIP_NO_PERMISSION = 1;
7172
PERMISSIONSHIP_HAS_PERMISSION = 2;

authzed/api/materialize/v0/watchpermissionsets.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ message LookupPermissionSetsResponse {
139139

140140
message PermissionSetChange {
141141
enum SetOperation {
142+
// Unspecified is an unused default value that should not be supplied in normal operation.
142143
SET_OPERATION_UNSPECIFIED = 0;
143144
SET_OPERATION_ADDED = 1;
144145
SET_OPERATION_REMOVED = 2;

authzed/api/v1/core.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ message Cursor {
155155
// this operation will no-op.
156156
message RelationshipUpdate {
157157
enum Operation {
158+
// Unspecified is an unused default value that should not be supplied in normal operation.
158159
OPERATION_UNSPECIFIED = 0;
159160
OPERATION_CREATE = 1;
160161
OPERATION_TOUCH = 2;
@@ -202,6 +203,7 @@ message PermissionRelationshipTree {
202203
// present in the first operand, and none of the other operands.
203204
message AlgebraicSubjectSet {
204205
enum Operation {
206+
// Unspecified is an unused default value that should not be supplied in normal operation.
205207
OPERATION_UNSPECIFIED = 0;
206208
OPERATION_UNION = 1;
207209
OPERATION_INTERSECTION = 2;

authzed/api/v1/debug.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ message DebugInformation {
3030
// API call.
3131
message CheckDebugTrace {
3232
enum PermissionType {
33+
// Unspecified is an unused default value that should not be encountered in normal operation.
3334
PERMISSION_TYPE_UNSPECIFIED = 0;
3435
PERMISSION_TYPE_RELATION = 1;
3536
PERMISSION_TYPE_PERMISSION = 2;
3637
}
3738

3839
enum Permissionship {
40+
// Unspecified is an unused default value that should not be encountered in normal operation.
3941
PERMISSIONSHIP_UNSPECIFIED = 0;
4042
PERMISSIONSHIP_NO_PERMISSION = 1;
4143
PERMISSIONSHIP_HAS_PERMISSION = 2;
@@ -130,6 +132,7 @@ message CheckDebugTrace {
130132
// CaveatEvalInfo holds information about a caveat expression that was evaluated.
131133
message CaveatEvalInfo {
132134
enum Result {
135+
// Unspecified is an unused default value that should not be encountered in normal operation.
133136
RESULT_UNSPECIFIED = 0;
134137

135138
RESULT_UNEVALUATED = 1;

authzed/api/v1/permission_service.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ message ReadRelationshipsResponse {
352352
// relationships that match the filter.
353353
message Precondition {
354354
enum Operation {
355+
// Unspecified is an unused default value that not be supplied in normal operation.
355356
OPERATION_UNSPECIFIED = 0;
356357
OPERATION_MUST_NOT_MATCH = 1;
357358
OPERATION_MUST_MATCH = 2;
@@ -444,6 +445,7 @@ message DeleteRelationshipsRequest {
444445

445446
message DeleteRelationshipsResponse {
446447
enum DeletionProgress {
448+
// Unspecified is an unused default value that should not be encountered in normal operation.
447449
DELETION_PROGRESS_UNSPECIFIED = 0;
448450

449451
// DELETION_PROGRESS_COMPLETE indicates that all remaining relationships matching the filter
@@ -511,6 +513,7 @@ message CheckPermissionRequest {
511513

512514
message CheckPermissionResponse {
513515
enum Permissionship {
516+
// Unspecified is an unused default value that should not be encountered in normal operation.
514517
PERMISSIONSHIP_UNSPECIFIED = 0;
515518
PERMISSIONSHIP_NO_PERMISSION = 1;
516519
PERMISSIONSHIP_HAS_PERMISSION = 2;
@@ -742,6 +745,7 @@ message LookupResourcesRequest {
742745

743746
// LookupPermissionship represents whether a Lookup response was partially evaluated or not
744747
enum LookupPermissionship {
748+
// Unspecified is an unused default value that should not be encountered in normal operation.
745749
LOOKUP_PERMISSIONSHIP_UNSPECIFIED = 0;
746750
LOOKUP_PERMISSIONSHIP_HAS_PERMISSION = 1;
747751
LOOKUP_PERMISSIONSHIP_CONDITIONAL_PERMISSION = 2;
@@ -784,6 +788,7 @@ message LookupResourcesResponse {
784788
// which the subject exists, streaming back the IDs of those subjects.
785789
message LookupSubjectsRequest {
786790
enum WildcardOption {
791+
// Unspecified is an unused default value that not be supplied in normal operation.
787792
WILDCARD_OPTION_UNSPECIFIED = 0;
788793
WILDCARD_OPTION_INCLUDE_WILDCARDS = 1;
789794
WILDCARD_OPTION_EXCLUDE_WILDCARDS = 2;

0 commit comments

Comments
 (0)