Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert #140 #143

Merged
merged 1 commit into from
Mar 11, 2024
Merged
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
176 changes: 0 additions & 176 deletions docs/openapiv2/apidocs.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

115 changes: 0 additions & 115 deletions openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax = "proto3";

Check failure on line 1 in openfga/v1/openfga_service.proto

View workflow job for this annotation

GitHub Actions / build

Previously present message "ListUsersFilter" was deleted from file.

Check failure on line 1 in openfga/v1/openfga_service.proto

View workflow job for this annotation

GitHub Actions / build

Previously present message "ListUsersRequest" was deleted from file.

Check failure on line 1 in openfga/v1/openfga_service.proto

View workflow job for this annotation

GitHub Actions / build

Previously present message "ListUsersResponse" was deleted from file.

Check failure on line 1 in openfga/v1/openfga_service.proto

View workflow job for this annotation

GitHub Actions / build

Previously present message "User" was deleted from file.

Check failure on line 1 in openfga/v1/openfga_service.proto

View workflow job for this annotation

GitHub Actions / build

Previously present message "UsersetUser" was deleted from file.

package openfga.v1;

Expand All @@ -13,7 +13,7 @@
import "protoc-gen-openapiv2/options/annotations.proto";
import "validate/validate.proto";

service OpenFGAService {

Check failure on line 16 in openfga/v1/openfga_service.proto

View workflow job for this annotation

GitHub Actions / build

Previously present RPC "ListUsers" on service "OpenFGAService" was deleted.
rpc Read(ReadRequest) returns (ReadResponse) {
option (google.api.http) = {
post: "/stores/{store_id}/read"
Expand Down Expand Up @@ -672,20 +672,6 @@
"The objects given will not be sorted, and therefore two identical calls can give a given different set of objects."
};
}

rpc ListUsers(ListUsersRequest) returns (ListUsersResponse) {
option (google.api.http) = {
post: "/stores/{store_id}/list-users",
body: "*"
};

option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "List all users of the given type that the object has a relation with"
tags: ["Relationship Queries"]
operation_id: "ListUsers"
description: ""
};
}
}

message ListObjectsRequest {
Expand Down Expand Up @@ -745,107 +731,6 @@
];
}

message ListUsersRequest {
string store_id = 1 [
json_name = "store_id",
(validate.rules).string = {pattern: "^[ABCDEFGHJKMNPQRSTVWXYZ0-9]{26}$"},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"01YCP46JKYM8FJCQ37NMBYHE5X\""}
];

string authorization_model_id = 2 [
json_name = "authorization_model_id",
(validate.rules).string = {
pattern: "^[ABCDEFGHJKMNPQRSTVWXYZ0-9]{26}$",
ignore_empty: true
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"01G5JAVJ41T49E9TT3SKVS7X1J\""}
];

Object object = 3 [
json_name = "object",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"document:example\""},
(google.api.field_behavior) = REQUIRED
];

string relation = 4 [
(validate.rules).string = {pattern: "^[^:#@\\s]{1,50}$"},
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"reader\""}
];

repeated ListUsersFilter user_filters = 5 [
json_name = "user_filters",
(google.api.field_behavior) = REQUIRED,
(validate.rules).repeated = {
min_items: 1,
max_items: 1
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "[{\"type\": \"user\"}, {\"type\": \"group\", \"relation\": \"member\"}]"}
];

openfga.v1.ContextualTupleKeys contextual_tuples = 6 [json_name = "contextual_tuples"];
}

message ListUsersFilter {
string type = 1 [
(validate.rules).string = {
pattern: "^[^:#@\\s]{1,254}$",
ignore_empty: false
},
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"group\""}
];
string relation = 2 [
(validate.rules).string = {
pattern: "^[^:#@\\s]{1,50}$",
ignore_empty: true
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"member\""}
];
}

message User {
oneof user {
Object object = 1;
UsersetUser userset = 2;
Wildcard wildcard = 3;
}
}

message UsersetUser {
string type = 1 [
(validate.rules).string = {
pattern: "^[^:#@\\s]{1,254}$",
ignore_empty: false
},
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"group\""}
];
string id = 2 [
(validate.rules).string = {
pattern: "[^#:\\s]+$",
ignore_empty: false
},
(google.api.field_behavior) = REQUIRED
];
string relation = 3 [
(validate.rules).string = {
pattern: "^[^:#@\\s]{1,50}$",
ignore_empty: true
},
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"member\""}
];
}

message ListUsersResponse {
repeated User users = 1 [
json_name = "users",
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: ""}
];
}

message StreamedListObjectsRequest {
string store_id = 1 [
json_name = "store_id",
Expand Down
Loading
Loading