Skip to content
Open
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
13 changes: 13 additions & 0 deletions authzed/api/v1/permission_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,19 @@ message RelationshipFilter {

// optional_subject_filter is the optional filter for the subjects of the relationships.
SubjectFilter optional_subject_filter = 4;

// optional_resource_ids is the *optional* list of resource IDs for bulk operations.
// If specified, optional_resource_id and optional_resource_id_prefix cannot be specified.
// This enables efficient bulk queries using SQL IN clauses.
repeated string optional_resource_ids = 6 [(validate.rules).repeated = {
max_items: 100,
items: {
string: {
pattern: "^([a-zA-Z0-9/_|\\-=+]{1,})?$"
max_bytes: 1024
}
}
}];
}

// SubjectFilter specifies a filter on the subject of a relationship.
Expand Down