Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions authzed/api/v1/core.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ message ObjectReference {
pattern : "^(([a-zA-Z0-9/_|\\-=+]{1,})|\\*)$",
max_bytes : 1024,
} ];
google.protobuf.Struct object_data = 3 [ (validate.rules).message.required = false ];
}

// ZedToken is used to provide causality metadata between Write and Check
Expand Down
23 changes: 23 additions & 0 deletions authzed/api/v1/permission_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ message ReadRelationshipsRequest {
// optional_cursor, if specified, indicates the cursor after which results should resume being returned.
// The cursor can be found on the ReadRelationshipsResponse object.
Cursor optional_cursor = 4;
// include_object_data, if true, indicates that object data should be included in the response.
bool include_object_data = 5;
}

// ReadRelationshipsResponse contains a Relationship found that matches the
Expand All @@ -260,6 +262,13 @@ message ReadRelationshipsResponse {
// after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
// result.
Cursor after_result_cursor = 3;

// resource_object_data is the optional object data associated with the resource.
google.protobuf.Struct resource_object_data = 4 [ (validate.rules).message.required = false ];

// subject_object_data is the optional object data associated with the subject.
google.protobuf.Struct subject_object_data = 5 [ (validate.rules).message.required = false ];

}

// Precondition specifies how and the existence or absence of certain
Expand Down Expand Up @@ -532,6 +541,9 @@ message LookupResourcesRequest {
// optional_cursor, if specified, indicates the cursor after which results should resume being returned.
// The cursor can be found on the LookupResourcesResponse object.
Cursor optional_cursor = 7;

// include_object_data, if true, indicates that object data should be included in the response.
bool include_object_data = 8;
}

// LookupPermissionship represents whether a Lookup response was partially evaluated or not
Expand Down Expand Up @@ -559,6 +571,9 @@ message LookupResourcesResponse {
// after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this
// result.
Cursor after_result_cursor = 5;

// resource_object_data is the optional object data associated with the resource.
google.protobuf.Struct resource_object_data = 6 [ (validate.rules).message.required = false ];
}

// LookupSubjectsRequest performs a lookup of all subjects of a particular
Expand Down Expand Up @@ -631,6 +646,9 @@ message LookupSubjectsRequest {
// wildcard_option specifies whether wildcards should be returned by LookupSubjects.
// For backwards compatibility, defaults to WILDCARD_OPTION_INCLUDE_WILDCARDS if unspecified.
WildcardOption wildcard_option = 9;

// include_object_data, if true, indicates that object data should be included in the response.
bool include_object_data = 10;
}

// LookupSubjectsResponse contains a single matching subject object ID for the
Expand Down Expand Up @@ -681,6 +699,9 @@ message ResolvedSubject {

// partial_caveat_info holds information of a partially-evaluated caveated response
PartialCaveatInfo partial_caveat_info = 3 [ (validate.rules).message.required = false ];

// subject_object_data is the optional object data associated with the subject.
google.protobuf.Struct subject_object_data = 4 [ (validate.rules).message.required = false ];
}

// ImportBulkRelationshipsRequest represents one batch of the streaming
Expand Down Expand Up @@ -720,6 +741,8 @@ message ExportBulkRelationshipsRequest {
// optional_relationship_filter, if specified, indicates the
// filter to apply to each relationship to be exported.
RelationshipFilter optional_relationship_filter = 4;
// include_object_data, if true, indicates that object data should be included in the response.
bool include_object_data = 5;
}

// ExportBulkRelationshipsResponse is one page in a stream of relationship
Expand Down