syntax = "proto3";

package types.v1;

import "google/protobuf/timestamp.proto";

option go_package = "types/v1;typesv1";

message EnvironmentToken {
  int64 environment_id = 1;
  int64 token_id = 2;
  string token = 3;
  repeated EnvironmentRole roles = 4;
  google.protobuf.Timestamp expires_at = 5;
  google.protobuf.Timestamp revoked_at = 6;
  google.protobuf.Timestamp last_used_at = 7;
}

enum EnvironmentRole {
  EnvironmentRole_Invalid = 0;
  EnvironmentRole_Ingestor = 1;
}
