2021-11-04 23:02:10 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
package headscale.v1;
|
|
|
|
option go_package = "github.com/juanfont/headscale/gen/go/v1";
|
|
|
|
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
|
|
|
|
message PreAuthKey {
|
2023-01-17 17:50:52 +01:00
|
|
|
string user = 1;
|
2021-11-04 23:02:10 +01:00
|
|
|
string id = 2;
|
|
|
|
string key = 3;
|
2021-11-08 21:47:40 +01:00
|
|
|
bool reusable = 4;
|
2021-11-04 23:02:10 +01:00
|
|
|
bool ephemeral = 5;
|
|
|
|
bool used = 6;
|
|
|
|
google.protobuf.Timestamp expiration = 7;
|
|
|
|
google.protobuf.Timestamp created_at = 8;
|
2022-08-25 08:12:50 +02:00
|
|
|
repeated string acl_tags = 9;
|
2021-11-04 23:02:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
message CreatePreAuthKeyRequest {
|
2023-01-17 17:50:52 +01:00
|
|
|
string user = 1;
|
2021-11-08 21:47:40 +01:00
|
|
|
bool reusable = 2;
|
2021-11-04 23:02:10 +01:00
|
|
|
bool ephemeral = 3;
|
|
|
|
google.protobuf.Timestamp expiration = 4;
|
2022-08-25 08:12:50 +02:00
|
|
|
repeated string acl_tags = 5;
|
2021-11-04 23:02:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
message CreatePreAuthKeyResponse {
|
|
|
|
PreAuthKey pre_auth_key = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExpirePreAuthKeyRequest {
|
2023-01-17 17:50:52 +01:00
|
|
|
string user = 1;
|
2021-11-04 23:02:10 +01:00
|
|
|
string key = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExpirePreAuthKeyResponse {
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListPreAuthKeysRequest {
|
2023-01-17 17:50:52 +01:00
|
|
|
string user = 1;
|
2021-11-04 23:02:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
message ListPreAuthKeysResponse {
|
|
|
|
repeated PreAuthKey pre_auth_keys = 1;
|
|
|
|
}
|