defmodule Zitadel.Authn.V1.KeyType do
use Protobuf, enum: true, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.EnumDescriptorProto{
__unknown_fields__: [],
name: "KeyType",
options: nil,
reserved_name: [],
reserved_range: [],
value: [
%Google.Protobuf.EnumValueDescriptorProto{
__unknown_fields__: [],
name: "KEY_TYPE_UNSPECIFIED",
number: 0,
options: nil
},
%Google.Protobuf.EnumValueDescriptorProto{
__unknown_fields__: [],
name: "KEY_TYPE_JSON",
number: 1,
options: nil
}
]
}
end
field(:KEY_TYPE_UNSPECIFIED, 0)
field(:KEY_TYPE_JSON, 1)
end
defmodule Zitadel.Authn.V1.Key do
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
__unknown_fields__: [],
enum_type: [],
extension: [],
extension_range: [],
field: [
%Google.Protobuf.FieldDescriptorProto{
__unknown_fields__: [],
default_value: nil,
extendee: nil,
json_name: "id",
label: :LABEL_OPTIONAL,
name: "id",
number: 1,
oneof_index: nil,
options: %Google.Protobuf.FieldOptions{
__pb_extensions__: %{},
__unknown_fields__: [
{1042, 2,
<<74, 19, 34, 54, 57, 54, 50, 57, 48, 50, 51, 57, 48, 54, 52, 56, 56, 51, 51, 52,
34>>}
],
ctype: :STRING,
deprecated: false,
jstype: :JS_NORMAL,
lazy: false,
packed: nil,
uninterpreted_option: [],
weak: false
},
proto3_optional: nil,
type: :TYPE_STRING,
type_name: nil
},
%Google.Protobuf.FieldDescriptorProto{
__unknown_fields__: [],
default_value: nil,
extendee: nil,
json_name: "details",
label: :LABEL_OPTIONAL,
name: "details",
number: 2,
oneof_index: nil,
options: nil,
proto3_optional: nil,
type: :TYPE_MESSAGE,
type_name: ".zitadel.v1.ObjectDetails"
},
%Google.Protobuf.FieldDescriptorProto{
__unknown_fields__: [],
default_value: nil,
extendee: nil,
json_name: "type",
label: :LABEL_OPTIONAL,
name: "type",
number: 3,
oneof_index: nil,
options: %Google.Protobuf.FieldOptions{
__pb_extensions__: %{},
__unknown_fields__: [
{1042, 2,
<<50, 24, 116, 104, 101, 32, 102, 105, 108, 101, 32, 116, 121, 112, 101, 32, 111,
102, 32, 116, 104, 101, 32, 107, 101, 121>>}
],
ctype: :STRING,
deprecated: false,
jstype: :JS_NORMAL,
lazy: false,
packed: nil,
uninterpreted_option: [],
weak: false
},
proto3_optional: nil,
type: :TYPE_ENUM,
type_name: ".zitadel.authn.v1.KeyType"
},
%Google.Protobuf.FieldDescriptorProto{
__unknown_fields__: [],
default_value: nil,
extendee: nil,
json_name: "expirationDate",
label: :LABEL_OPTIONAL,
name: "expiration_date",
number: 4,
oneof_index: nil,
options: %Google.Protobuf.FieldOptions{
__pb_extensions__: %{},
__unknown_fields__: [
{1042, 2,
<<50, 26, 116, 104, 101, 32, 100, 97, 116, 101, 32, 97, 32, 107, 101, 121, 32, 119,
105, 108, 108, 32, 101, 120, 112, 105, 114, 101, 74, 29, 34, 51, 48, 49, 57, 45,
48, 52, 45, 48, 49, 84, 48, 56, 58, 52, 53, 58, 48, 48, 46, 48, 48, 48, 48, 48,
48, 90, 34>>}
],
ctype: :STRING,
deprecated: false,
jstype: :JS_NORMAL,
lazy: false,
packed: nil,
uninterpreted_option: [],
weak: false
},
proto3_optional: nil,
type: :TYPE_MESSAGE,
type_name: ".google.protobuf.Timestamp"
}
],
name: "Key",
nested_type: [],
oneof_decl: [],
options: nil,
reserved_name: [],
reserved_range: []
}
end
field(:id, 1, type: :string, deprecated: false)
field(:details, 2, type: Zitadel.V1.ObjectDetails)
field(:type, 3, type: Zitadel.Authn.V1.KeyType, enum: true, deprecated: false)
field(:expiration_date, 4,
type: Google.Protobuf.Timestamp,
json_name: "expirationDate",
deprecated: false
)
end