mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-20 11:58:47 +00:00
100 lines
2.7 KiB
Protocol Buffer
100 lines
2.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package zitadel.session.v2alpha;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
import "validate/validate.proto";
|
|
|
|
option go_package = "github.com/zitadel/zitadel/pkg/grpc/session/v2alpha;session";
|
|
|
|
message Session {
|
|
string id = 1 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"id of the session\"";
|
|
}
|
|
];
|
|
google.protobuf.Timestamp creation_date = 2 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"time when the session was created\"";
|
|
}
|
|
];
|
|
google.protobuf.Timestamp change_date = 3 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"time when the session was last updated\"";
|
|
}
|
|
];
|
|
uint64 sequence = 4 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"sequence of the session\"";
|
|
}
|
|
];
|
|
Factors factors = 5 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"checked factors of the session, e.g. the user, password and more\"";
|
|
}
|
|
];
|
|
map<string, bytes> metadata = 6 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"custom key value list\"";
|
|
}
|
|
];
|
|
}
|
|
|
|
message Factors {
|
|
UserFactor user = 1;
|
|
PasswordFactor password = 2;
|
|
PasskeyFactor passkey = 3;
|
|
}
|
|
|
|
message UserFactor {
|
|
google.protobuf.Timestamp verified_at = 1 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"time when the user was last checked\"";
|
|
}
|
|
];
|
|
string id = 2 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"id of the checked user\"";
|
|
}
|
|
];
|
|
string login_name = 3 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"login name of the checked user\"";
|
|
}
|
|
];
|
|
string display_name = 4 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"display name of the checked user\"";
|
|
}
|
|
];
|
|
}
|
|
|
|
message PasswordFactor {
|
|
google.protobuf.Timestamp verified_at = 1 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"time when the password was last checked\"";
|
|
}
|
|
];
|
|
}
|
|
|
|
message PasskeyFactor {
|
|
google.protobuf.Timestamp verified_at = 1 [
|
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
description: "\"time when the passkey challenge was last checked\"";
|
|
}
|
|
];
|
|
}
|
|
|
|
message SearchQuery {
|
|
oneof query {
|
|
option (validate.required) = true;
|
|
|
|
IDsQuery ids_query = 1;
|
|
}
|
|
}
|
|
|
|
message IDsQuery {
|
|
repeated string ids = 1;
|
|
}
|