// Copyright 2022 ReductStore
// Licensed under the Business Source License 1.1
syntax = "proto3";
import "google/protobuf/timestamp.proto";
package reduct.proto.auth;
// API token
message Token {
// Permissions
message Permissions {
bool full_access = 1; // if true, allows to manage buckets, tokens, write and read all buckets
repeated string read = 2; // list of buckets for reading
repeated string write = 3; // list of buckets for writing
}
string name = 1; // name of topic
string value = 2; // string which represents token
google.protobuf.Timestamp created_at = 3; // creating time
Permissions permissions = 4; // permissions
}
message TokenRepo {
repeated Token tokens = 1; // tokens in repo
}