diff --git a/.gitignore b/.gitignore index 2a82aba2e2..e4f3db01e5 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,7 @@ debug # IDE .idea .vscode + +# credential +google-credentials +key.json \ No newline at end of file diff --git a/cmd/zitadel/main.go b/cmd/zitadel/main.go index fc5f748139..17c108d930 100644 --- a/cmd/zitadel/main.go +++ b/cmd/zitadel/main.go @@ -44,20 +44,17 @@ func main() { ctx := context.Background() if *managementEnabled { - err = management.Start(ctx, conf.Mgmt, conf.AuthZ) - logging.Log("MAIN-39Nv5").OnError(err).Fatal("error starting management api") + management.Start(ctx, conf.Mgmt, conf.AuthZ) } if *authEnabled { - err = auth.Start(ctx, conf.Auth, conf.AuthZ) - logging.Log("MAIN-x0nD2").OnError(err).Fatal("error starting auth api") + auth.Start(ctx, conf.Auth, conf.AuthZ) } if *loginEnabled { err = login.Start(ctx, conf.Login) logging.Log("MAIN-53RF2").OnError(err).Fatal("error starting login ui") } if *adminEnabled { - err = admin.Start(ctx, conf.Admin, conf.AuthZ) - logging.Log("MAIN-0na71").OnError(err).Fatal("error starting admin api") + admin.Start(ctx, conf.Admin, conf.AuthZ) } if *consoleEnabled { err = console.Start(ctx, conf.Console) diff --git a/go.mod b/go.mod index 6951ede648..b4ce9ed1ba 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/ghodss/yaml v1.0.0 github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b github.com/golang/mock v1.4.3 - github.com/golang/protobuf v1.3.5 + github.com/golang/protobuf v1.4.0-rc.4 github.com/google/uuid v1.1.1 // indirect github.com/gorilla/schema v1.1.0 github.com/gorilla/securecookie v1.1.1 @@ -37,5 +37,6 @@ require ( google.golang.org/api v0.20.0 // indirect google.golang.org/genproto v0.0.0-20200319113533-08878b785e9c google.golang.org/grpc v1.28.0 + google.golang.org/protobuf v1.20.1 gopkg.in/yaml.v2 v2.2.8 // indirect ) diff --git a/go.sum b/go.sum index e8bca6a47d..35f95765e3 100644 --- a/go.sum +++ b/go.sum @@ -76,6 +76,11 @@ github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.5 h1:F768QJ1E9tib+q5Sc8MkdJi1RxLTbRcTf8LJV56aRls= github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4 h1:+EOh4OY6tjM6ZueeUKinl1f0U2820HzQOuf1iqMnsks= +github.com/golang/protobuf v1.4.0-rc.4/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= @@ -324,6 +329,12 @@ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.20.1 h1:ESRXHgpUBG5D2I5mmsQIyYxB/tQIZfSZ8wLyFDf/N/U= +google.golang.org/protobuf v1.20.1/go.mod h1:KqelGeouBkcbcuB3HCk4/YH2tmNLk6YSWA5LIWeI/lY= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/google-credentials/.gitignore b/google-credentials/.gitignore deleted file mode 100644 index 3f62406e6a..0000000000 --- a/google-credentials/.gitignore +++ /dev/null @@ -1 +0,0 @@ -key.json diff --git a/pkg/admin/admin.go b/pkg/admin/admin.go index 8d2d89d75f..a21970d817 100644 --- a/pkg/admin/admin.go +++ b/pkg/admin/admin.go @@ -2,8 +2,6 @@ package admin import ( "context" - "github.com/caos/logging" - app "github.com/caos/zitadel/internal/admin" "github.com/caos/zitadel/internal/api/auth" "github.com/caos/zitadel/pkg/admin/api" @@ -14,8 +12,6 @@ type Config struct { API api.Config } -func Start(ctx context.Context, config Config, authZ auth.Config) error { - err := api.Start(ctx, config.API) - logging.Log("MAIN-lfo5h").OnError(err).Panic("unable to start api") - return err +func Start(ctx context.Context, config Config, authZ auth.Config) { + api.Start(ctx, config.API) } diff --git a/pkg/admin/api/api.go b/pkg/admin/api/api.go index 8b163bff39..92604a142f 100644 --- a/pkg/admin/api/api.go +++ b/pkg/admin/api/api.go @@ -16,13 +16,10 @@ type Config struct { GRPC grpc_util.Config } -func Start(ctx context.Context, conf Config) error { - api := &API{ - grpcServer: *grpc.StartServer(conf.GRPC.ToServerConfig()), - gateway: *grpc.StartGateway(conf.GRPC.ToGatewayConfig()), - } - server.StartServer(ctx, &api.grpcServer) - server.StartGateway(ctx, &api.gateway) +func Start(ctx context.Context, conf Config) { + grpcServer := grpc.StartServer(conf.GRPC.ToServerConfig()) + grpcGateway := grpc.StartGateway(conf.GRPC.ToGatewayConfig()) - return nil + server.StartServer(ctx, grpcServer) + server.StartGateway(ctx, grpcGateway) } diff --git a/pkg/auth/api/api.go b/pkg/auth/api/api.go index dcdb4f2672..e59bdd1bec 100644 --- a/pkg/auth/api/api.go +++ b/pkg/auth/api/api.go @@ -8,22 +8,14 @@ import ( "github.com/caos/zitadel/pkg/auth/api/grpc" ) -type API struct { - grpcServer grpc.Server - gateway grpc.Gateway -} - type Config struct { GRPC grpc_util.Config } -func Start(ctx context.Context, conf Config) error { - api := &API{ - grpcServer: *grpc.StartServer(conf.GRPC.ToServerConfig()), - gateway: *grpc.StartGateway(conf.GRPC.ToGatewayConfig()), - } - server.StartServer(ctx, &api.grpcServer) - server.StartGateway(ctx, &api.gateway) +func Start(ctx context.Context, conf Config) { + grpcServer := grpc.StartServer(conf.GRPC.ToServerConfig()) + grpcGateway := grpc.StartGateway(conf.GRPC.ToGatewayConfig()) - return nil + server.StartServer(ctx, grpcServer) + server.StartGateway(ctx, grpcGateway) } diff --git a/pkg/auth/api/grpc/application.go b/pkg/auth/api/grpc/application.go deleted file mode 100644 index ddde7358f1..0000000000 --- a/pkg/auth/api/grpc/application.go +++ /dev/null @@ -1,18 +0,0 @@ -package grpc - -import ( - "context" - "github.com/caos/zitadel/internal/errors" -) - -func (s *Server) GetApplicationByID(ctx context.Context, request *ApplicationID) (*Application, error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-Rfh8e", "Not implemented") -} - -func (s *Server) SearchApplications(ctx context.Context, appSearch *ApplicationSearchRequest) (*ApplicationSearchResponse, error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-ju8Rd", "Not implemented") -} - -func (s *Server) AuthorizeApplication(ctx context.Context, auth *ApplicationAuthorizeRequest) (*Application, error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-lo8ws", "Not implemented") -} diff --git a/pkg/auth/api/grpc/auth.pb.go b/pkg/auth/api/grpc/auth.pb.go index 523d941590..0166dff10d 100644 --- a/pkg/auth/api/grpc/auth.pb.go +++ b/pkg/auth/api/grpc/auth.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.20.1 +// protoc v3.11.3 // source: auth.proto package grpc import ( context "context" - fmt "fmt" _ "github.com/caos/zitadel/internal/protoc/protoc-gen-authoption/authoption" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" @@ -17,47 +19,22 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type UserAgentState int32 - const ( - UserAgentState_USERAGENTSTATE_UNSPECIFIED UserAgentState = 0 - UserAgentState_USERAGENTSTATE_ACTIVE UserAgentState = 1 - UserAgentState_USERAGENTSTATE_TERMINATED UserAgentState = 2 + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -var UserAgentState_name = map[int32]string{ - 0: "USERAGENTSTATE_UNSPECIFIED", - 1: "USERAGENTSTATE_ACTIVE", - 2: "USERAGENTSTATE_TERMINATED", -} - -var UserAgentState_value = map[string]int32{ - "USERAGENTSTATE_UNSPECIFIED": 0, - "USERAGENTSTATE_ACTIVE": 1, - "USERAGENTSTATE_TERMINATED": 2, -} - -func (x UserAgentState) String() string { - return proto.EnumName(UserAgentState_name, int32(x)) -} - -func (UserAgentState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{0} -} +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type UserSessionState int32 @@ -67,150 +44,45 @@ const ( UserSessionState_USERSESSIONSTATE_TERMINATED UserSessionState = 2 ) -var UserSessionState_name = map[int32]string{ - 0: "USERSESSIONSTATE_UNSPECIFIED", - 1: "USERSESSIONSTATE_ACTIVE", - 2: "USERSESSIONSTATE_TERMINATED", -} +// Enum value maps for UserSessionState. +var ( + UserSessionState_name = map[int32]string{ + 0: "USERSESSIONSTATE_UNSPECIFIED", + 1: "USERSESSIONSTATE_ACTIVE", + 2: "USERSESSIONSTATE_TERMINATED", + } + UserSessionState_value = map[string]int32{ + "USERSESSIONSTATE_UNSPECIFIED": 0, + "USERSESSIONSTATE_ACTIVE": 1, + "USERSESSIONSTATE_TERMINATED": 2, + } +) -var UserSessionState_value = map[string]int32{ - "USERSESSIONSTATE_UNSPECIFIED": 0, - "USERSESSIONSTATE_ACTIVE": 1, - "USERSESSIONSTATE_TERMINATED": 2, +func (x UserSessionState) Enum() *UserSessionState { + p := new(UserSessionState) + *p = x + return p } func (x UserSessionState) String() string { - return proto.EnumName(UserSessionState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (UserSessionState) Descriptor() protoreflect.EnumDescriptor { + return file_auth_proto_enumTypes[0].Descriptor() +} + +func (UserSessionState) Type() protoreflect.EnumType { + return &file_auth_proto_enumTypes[0] +} + +func (x UserSessionState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use UserSessionState.Descriptor instead. func (UserSessionState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{1} -} - -type NextStepType int32 - -const ( - NextStepType_NEXTSTEP_UNSPECIFIED NextStepType = 0 - NextStepType_NEXTSTEP_LOGIN NextStepType = 1 - NextStepType_NEXTSTEP_PASSWORD NextStepType = 2 - NextStepType_NEXTSTEP_CHANGE_PASSWORD NextStepType = 3 - NextStepType_NEXTSTEP_MFA_PROMPT NextStepType = 4 - NextStepType_NEXTSTEP_MFA_INIT_CHOICE NextStepType = 5 - NextStepType_NEXTSTEP_MFA_INIT_CREATE NextStepType = 6 - NextStepType_NEXTSTEP_MFA_INIT_VERIFY NextStepType = 7 - NextStepType_NEXTSTEP_MFA_INIT_DONE NextStepType = 8 - NextStepType_NEXTSTEP_MFA_VERIFY NextStepType = 9 - NextStepType_NEXTSTEP_MFA_VERIFY_ASYNC NextStepType = 10 - NextStepType_NEXTSTEP_VERIFY_EMAIL NextStepType = 11 - NextStepType_NEXTSTEP_REDIRECT_TO_CALLBACK NextStepType = 12 - NextStepType_NEXTSTEP_INIT_PASSWORD NextStepType = 13 - NextStepType_NEXTSTEP_CHOOSE_USER NextStepType = 14 -) - -var NextStepType_name = map[int32]string{ - 0: "NEXTSTEP_UNSPECIFIED", - 1: "NEXTSTEP_LOGIN", - 2: "NEXTSTEP_PASSWORD", - 3: "NEXTSTEP_CHANGE_PASSWORD", - 4: "NEXTSTEP_MFA_PROMPT", - 5: "NEXTSTEP_MFA_INIT_CHOICE", - 6: "NEXTSTEP_MFA_INIT_CREATE", - 7: "NEXTSTEP_MFA_INIT_VERIFY", - 8: "NEXTSTEP_MFA_INIT_DONE", - 9: "NEXTSTEP_MFA_VERIFY", - 10: "NEXTSTEP_MFA_VERIFY_ASYNC", - 11: "NEXTSTEP_VERIFY_EMAIL", - 12: "NEXTSTEP_REDIRECT_TO_CALLBACK", - 13: "NEXTSTEP_INIT_PASSWORD", - 14: "NEXTSTEP_CHOOSE_USER", -} - -var NextStepType_value = map[string]int32{ - "NEXTSTEP_UNSPECIFIED": 0, - "NEXTSTEP_LOGIN": 1, - "NEXTSTEP_PASSWORD": 2, - "NEXTSTEP_CHANGE_PASSWORD": 3, - "NEXTSTEP_MFA_PROMPT": 4, - "NEXTSTEP_MFA_INIT_CHOICE": 5, - "NEXTSTEP_MFA_INIT_CREATE": 6, - "NEXTSTEP_MFA_INIT_VERIFY": 7, - "NEXTSTEP_MFA_INIT_DONE": 8, - "NEXTSTEP_MFA_VERIFY": 9, - "NEXTSTEP_MFA_VERIFY_ASYNC": 10, - "NEXTSTEP_VERIFY_EMAIL": 11, - "NEXTSTEP_REDIRECT_TO_CALLBACK": 12, - "NEXTSTEP_INIT_PASSWORD": 13, - "NEXTSTEP_CHOOSE_USER": 14, -} - -func (x NextStepType) String() string { - return proto.EnumName(NextStepType_name, int32(x)) -} - -func (NextStepType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{2} -} - -type AuthSessionType int32 - -const ( - AuthSessionType_AUTHSESSIONTYPE_UNSPECIFIED AuthSessionType = 0 - AuthSessionType_AUTHSESSIONTYPE_OIDC AuthSessionType = 1 - AuthSessionType_AUTHSESSIONTYPE_SAML AuthSessionType = 2 -) - -var AuthSessionType_name = map[int32]string{ - 0: "AUTHSESSIONTYPE_UNSPECIFIED", - 1: "AUTHSESSIONTYPE_OIDC", - 2: "AUTHSESSIONTYPE_SAML", -} - -var AuthSessionType_value = map[string]int32{ - "AUTHSESSIONTYPE_UNSPECIFIED": 0, - "AUTHSESSIONTYPE_OIDC": 1, - "AUTHSESSIONTYPE_SAML": 2, -} - -func (x AuthSessionType) String() string { - return proto.EnumName(AuthSessionType_name, int32(x)) -} - -func (AuthSessionType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{3} -} - -type Prompt int32 - -const ( - Prompt_PROMPT_UNSPECIFIED Prompt = 0 - Prompt_PROMPT_NONE Prompt = 1 - Prompt_PROMPT_LOGIN Prompt = 2 - Prompt_PROMPT_CONSENT Prompt = 3 - Prompt_PROMPT_SELECT_ACCOUNT Prompt = 4 -) - -var Prompt_name = map[int32]string{ - 0: "PROMPT_UNSPECIFIED", - 1: "PROMPT_NONE", - 2: "PROMPT_LOGIN", - 3: "PROMPT_CONSENT", - 4: "PROMPT_SELECT_ACCOUNT", -} - -var Prompt_value = map[string]int32{ - "PROMPT_UNSPECIFIED": 0, - "PROMPT_NONE": 1, - "PROMPT_LOGIN": 2, - "PROMPT_CONSENT": 3, - "PROMPT_SELECT_ACCOUNT": 4, -} - -func (x Prompt) String() string { - return proto.EnumName(Prompt_name, int32(x)) -} - -func (Prompt) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{4} + return file_auth_proto_rawDescGZIP(), []int{0} } type OIDCResponseType int32 @@ -221,49 +93,45 @@ const ( OIDCResponseType_OIDCRESPONSETYPE_ID_TOKEN_TOKEN OIDCResponseType = 2 ) -var OIDCResponseType_name = map[int32]string{ - 0: "OIDCRESPONSETYPE_CODE", - 1: "OIDCRESPONSETYPE_ID_TOKEN", - 2: "OIDCRESPONSETYPE_ID_TOKEN_TOKEN", -} +// Enum value maps for OIDCResponseType. +var ( + OIDCResponseType_name = map[int32]string{ + 0: "OIDCRESPONSETYPE_CODE", + 1: "OIDCRESPONSETYPE_ID_TOKEN", + 2: "OIDCRESPONSETYPE_ID_TOKEN_TOKEN", + } + OIDCResponseType_value = map[string]int32{ + "OIDCRESPONSETYPE_CODE": 0, + "OIDCRESPONSETYPE_ID_TOKEN": 1, + "OIDCRESPONSETYPE_ID_TOKEN_TOKEN": 2, + } +) -var OIDCResponseType_value = map[string]int32{ - "OIDCRESPONSETYPE_CODE": 0, - "OIDCRESPONSETYPE_ID_TOKEN": 1, - "OIDCRESPONSETYPE_ID_TOKEN_TOKEN": 2, +func (x OIDCResponseType) Enum() *OIDCResponseType { + p := new(OIDCResponseType) + *p = x + return p } func (x OIDCResponseType) String() string { - return proto.EnumName(OIDCResponseType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (OIDCResponseType) Descriptor() protoreflect.EnumDescriptor { + return file_auth_proto_enumTypes[1].Descriptor() +} + +func (OIDCResponseType) Type() protoreflect.EnumType { + return &file_auth_proto_enumTypes[1] +} + +func (x OIDCResponseType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OIDCResponseType.Descriptor instead. func (OIDCResponseType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{5} -} - -type CodeChallengeMethod int32 - -const ( - CodeChallengeMethod_CODECHALLENGEMETHOD_PLAIN CodeChallengeMethod = 0 - CodeChallengeMethod_CODECHALLENGEMETHOD_S256 CodeChallengeMethod = 1 -) - -var CodeChallengeMethod_name = map[int32]string{ - 0: "CODECHALLENGEMETHOD_PLAIN", - 1: "CODECHALLENGEMETHOD_S256", -} - -var CodeChallengeMethod_value = map[string]int32{ - "CODECHALLENGEMETHOD_PLAIN": 0, - "CODECHALLENGEMETHOD_S256": 1, -} - -func (x CodeChallengeMethod) String() string { - return proto.EnumName(CodeChallengeMethod_name, int32(x)) -} - -func (CodeChallengeMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{6} + return file_auth_proto_rawDescGZIP(), []int{1} } type UserState int32 @@ -278,32 +146,53 @@ const ( UserState_USERSTATE_INITIAL UserState = 6 ) -var UserState_name = map[int32]string{ - 0: "USERSTATE_UNSPECIEFIED", - 1: "USERSTATE_ACTIVE", - 2: "USERSTATE_INACTIVE", - 3: "USERSTATE_DELETED", - 4: "USERSTATE_LOCKED", - 5: "USERSTATE_SUSPEND", - 6: "USERSTATE_INITIAL", -} +// Enum value maps for UserState. +var ( + UserState_name = map[int32]string{ + 0: "USERSTATE_UNSPECIEFIED", + 1: "USERSTATE_ACTIVE", + 2: "USERSTATE_INACTIVE", + 3: "USERSTATE_DELETED", + 4: "USERSTATE_LOCKED", + 5: "USERSTATE_SUSPEND", + 6: "USERSTATE_INITIAL", + } + UserState_value = map[string]int32{ + "USERSTATE_UNSPECIEFIED": 0, + "USERSTATE_ACTIVE": 1, + "USERSTATE_INACTIVE": 2, + "USERSTATE_DELETED": 3, + "USERSTATE_LOCKED": 4, + "USERSTATE_SUSPEND": 5, + "USERSTATE_INITIAL": 6, + } +) -var UserState_value = map[string]int32{ - "USERSTATE_UNSPECIEFIED": 0, - "USERSTATE_ACTIVE": 1, - "USERSTATE_INACTIVE": 2, - "USERSTATE_DELETED": 3, - "USERSTATE_LOCKED": 4, - "USERSTATE_SUSPEND": 5, - "USERSTATE_INITIAL": 6, +func (x UserState) Enum() *UserState { + p := new(UserState) + *p = x + return p } func (x UserState) String() string { - return proto.EnumName(UserState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (UserState) Descriptor() protoreflect.EnumDescriptor { + return file_auth_proto_enumTypes[2].Descriptor() +} + +func (UserState) Type() protoreflect.EnumType { + return &file_auth_proto_enumTypes[2] +} + +func (x UserState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use UserState.Descriptor instead. func (UserState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{7} + return file_auth_proto_rawDescGZIP(), []int{2} } type Gender int32 @@ -315,51 +204,47 @@ const ( Gender_GENDER_DIVERSE Gender = 3 ) -var Gender_name = map[int32]string{ - 0: "GENDER_UNSPECIFIED", - 1: "GENDER_FEMALE", - 2: "GENDER_MALE", - 3: "GENDER_DIVERSE", -} +// Enum value maps for Gender. +var ( + Gender_name = map[int32]string{ + 0: "GENDER_UNSPECIFIED", + 1: "GENDER_FEMALE", + 2: "GENDER_MALE", + 3: "GENDER_DIVERSE", + } + Gender_value = map[string]int32{ + "GENDER_UNSPECIFIED": 0, + "GENDER_FEMALE": 1, + "GENDER_MALE": 2, + "GENDER_DIVERSE": 3, + } +) -var Gender_value = map[string]int32{ - "GENDER_UNSPECIFIED": 0, - "GENDER_FEMALE": 1, - "GENDER_MALE": 2, - "GENDER_DIVERSE": 3, +func (x Gender) Enum() *Gender { + p := new(Gender) + *p = x + return p } func (x Gender) String() string { - return proto.EnumName(Gender_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (Gender) Descriptor() protoreflect.EnumDescriptor { + return file_auth_proto_enumTypes[3].Descriptor() +} + +func (Gender) Type() protoreflect.EnumType { + return &file_auth_proto_enumTypes[3] +} + +func (x Gender) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Gender.Descriptor instead. func (Gender) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{8} -} - -type NotificationType int32 - -const ( - NotificationType_NOTIFICATIONTYPE_EMAIL NotificationType = 0 - NotificationType_NOTIFICATIONTYPE_SMS NotificationType = 1 -) - -var NotificationType_name = map[int32]string{ - 0: "NOTIFICATIONTYPE_EMAIL", - 1: "NOTIFICATIONTYPE_SMS", -} - -var NotificationType_value = map[string]int32{ - "NOTIFICATIONTYPE_EMAIL": 0, - "NOTIFICATIONTYPE_SMS": 1, -} - -func (x NotificationType) String() string { - return proto.EnumName(NotificationType_name, int32(x)) -} - -func (NotificationType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{9} + return file_auth_proto_rawDescGZIP(), []int{3} } type MfaType int32 @@ -370,24 +255,45 @@ const ( MfaType_MFATYPE_OTP MfaType = 2 ) -var MfaType_name = map[int32]string{ - 0: "MFATYPE_UNSPECIFIED", - 1: "MFATYPE_SMS", - 2: "MFATYPE_OTP", -} +// Enum value maps for MfaType. +var ( + MfaType_name = map[int32]string{ + 0: "MFATYPE_UNSPECIFIED", + 1: "MFATYPE_SMS", + 2: "MFATYPE_OTP", + } + MfaType_value = map[string]int32{ + "MFATYPE_UNSPECIFIED": 0, + "MFATYPE_SMS": 1, + "MFATYPE_OTP": 2, + } +) -var MfaType_value = map[string]int32{ - "MFATYPE_UNSPECIFIED": 0, - "MFATYPE_SMS": 1, - "MFATYPE_OTP": 2, +func (x MfaType) Enum() *MfaType { + p := new(MfaType) + *p = x + return p } func (x MfaType) String() string { - return proto.EnumName(MfaType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (MfaType) Descriptor() protoreflect.EnumDescriptor { + return file_auth_proto_enumTypes[4].Descriptor() +} + +func (MfaType) Type() protoreflect.EnumType { + return &file_auth_proto_enumTypes[4] +} + +func (x MfaType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MfaType.Descriptor instead. func (MfaType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{10} + return file_auth_proto_rawDescGZIP(), []int{4} } type MFAState int32 @@ -399,178 +305,93 @@ const ( MFAState_MFASTATE_REMOVED MFAState = 3 ) -var MFAState_name = map[int32]string{ - 0: "MFASTATE_UNSPECIFIED", - 1: "MFASTATE_NOT_READY", - 2: "MFASTATE_READY", - 3: "MFASTATE_REMOVED", -} +// Enum value maps for MFAState. +var ( + MFAState_name = map[int32]string{ + 0: "MFASTATE_UNSPECIFIED", + 1: "MFASTATE_NOT_READY", + 2: "MFASTATE_READY", + 3: "MFASTATE_REMOVED", + } + MFAState_value = map[string]int32{ + "MFASTATE_UNSPECIFIED": 0, + "MFASTATE_NOT_READY": 1, + "MFASTATE_READY": 2, + "MFASTATE_REMOVED": 3, + } +) -var MFAState_value = map[string]int32{ - "MFASTATE_UNSPECIFIED": 0, - "MFASTATE_NOT_READY": 1, - "MFASTATE_READY": 2, - "MFASTATE_REMOVED": 3, +func (x MFAState) Enum() *MFAState { + p := new(MFAState) + *p = x + return p } func (x MFAState) String() string { - return proto.EnumName(MFAState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (MFAState) Descriptor() protoreflect.EnumDescriptor { + return file_auth_proto_enumTypes[5].Descriptor() +} + +func (MFAState) Type() protoreflect.EnumType { + return &file_auth_proto_enumTypes[5] +} + +func (x MFAState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MFAState.Descriptor instead. func (MFAState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{11} + return file_auth_proto_rawDescGZIP(), []int{5} } -type AppState int32 +type MyProjectOrgSearchKey int32 const ( - AppState_APPSTATE_UNSPECIFIED AppState = 0 - AppState_APPSTATE_ACTIVE AppState = 1 - AppState_APPSTATE_INACTIVE AppState = 2 - AppState_APPSTATE_DELETED AppState = 3 + MyProjectOrgSearchKey_MYPROJECTORGSEARCHKEY_UNSPECIFIED MyProjectOrgSearchKey = 0 + MyProjectOrgSearchKey_MYPROJECTORGSEARCHKEY_ORG_NAME MyProjectOrgSearchKey = 1 ) -var AppState_name = map[int32]string{ - 0: "APPSTATE_UNSPECIFIED", - 1: "APPSTATE_ACTIVE", - 2: "APPSTATE_INACTIVE", - 3: "APPSTATE_DELETED", -} - -var AppState_value = map[string]int32{ - "APPSTATE_UNSPECIFIED": 0, - "APPSTATE_ACTIVE": 1, - "APPSTATE_INACTIVE": 2, - "APPSTATE_DELETED": 3, -} - -func (x AppState) String() string { - return proto.EnumName(AppState_name, int32(x)) -} - -func (AppState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{12} -} - -type OIDCGrantType int32 - -const ( - OIDCGrantType_OIDCGRANTTYPE_AUTHORIZATION_CODE OIDCGrantType = 0 - OIDCGrantType_OIDCGRANTTYPE_GRANT_TYPE_NONE OIDCGrantType = 1 - OIDCGrantType_OIDCGRANTTYPE_REFRESH_TOKEN OIDCGrantType = 2 +// Enum value maps for MyProjectOrgSearchKey. +var ( + MyProjectOrgSearchKey_name = map[int32]string{ + 0: "MYPROJECTORGSEARCHKEY_UNSPECIFIED", + 1: "MYPROJECTORGSEARCHKEY_ORG_NAME", + } + MyProjectOrgSearchKey_value = map[string]int32{ + "MYPROJECTORGSEARCHKEY_UNSPECIFIED": 0, + "MYPROJECTORGSEARCHKEY_ORG_NAME": 1, + } ) -var OIDCGrantType_name = map[int32]string{ - 0: "OIDCGRANTTYPE_AUTHORIZATION_CODE", - 1: "OIDCGRANTTYPE_GRANT_TYPE_NONE", - 2: "OIDCGRANTTYPE_REFRESH_TOKEN", +func (x MyProjectOrgSearchKey) Enum() *MyProjectOrgSearchKey { + p := new(MyProjectOrgSearchKey) + *p = x + return p } -var OIDCGrantType_value = map[string]int32{ - "OIDCGRANTTYPE_AUTHORIZATION_CODE": 0, - "OIDCGRANTTYPE_GRANT_TYPE_NONE": 1, - "OIDCGRANTTYPE_REFRESH_TOKEN": 2, +func (x MyProjectOrgSearchKey) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (x OIDCGrantType) String() string { - return proto.EnumName(OIDCGrantType_name, int32(x)) +func (MyProjectOrgSearchKey) Descriptor() protoreflect.EnumDescriptor { + return file_auth_proto_enumTypes[6].Descriptor() } -func (OIDCGrantType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{13} +func (MyProjectOrgSearchKey) Type() protoreflect.EnumType { + return &file_auth_proto_enumTypes[6] } -type OIDCApplicationType int32 - -const ( - OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB OIDCApplicationType = 0 - OIDCApplicationType_OIDCAPPLICATIONTYPE_USER_AGENT OIDCApplicationType = 1 - OIDCApplicationType_OIDCAPPLICATIONTYPE_NATIVE OIDCApplicationType = 2 -) - -var OIDCApplicationType_name = map[int32]string{ - 0: "OIDCAPPLICATIONTYPE_WEB", - 1: "OIDCAPPLICATIONTYPE_USER_AGENT", - 2: "OIDCAPPLICATIONTYPE_NATIVE", +func (x MyProjectOrgSearchKey) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -var OIDCApplicationType_value = map[string]int32{ - "OIDCAPPLICATIONTYPE_WEB": 0, - "OIDCAPPLICATIONTYPE_USER_AGENT": 1, - "OIDCAPPLICATIONTYPE_NATIVE": 2, -} - -func (x OIDCApplicationType) String() string { - return proto.EnumName(OIDCApplicationType_name, int32(x)) -} - -func (OIDCApplicationType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{14} -} - -type OIDCAuthMethodType int32 - -const ( - OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC OIDCAuthMethodType = 0 - OIDCAuthMethodType_OIDCAUTHMETHODTYPE_POST OIDCAuthMethodType = 1 - OIDCAuthMethodType_OIDCAUTHMETHODTYPE_NONE OIDCAuthMethodType = 2 -) - -var OIDCAuthMethodType_name = map[int32]string{ - 0: "OIDCAUTHMETHODTYPE_BASIC", - 1: "OIDCAUTHMETHODTYPE_POST", - 2: "OIDCAUTHMETHODTYPE_NONE", -} - -var OIDCAuthMethodType_value = map[string]int32{ - "OIDCAUTHMETHODTYPE_BASIC": 0, - "OIDCAUTHMETHODTYPE_POST": 1, - "OIDCAUTHMETHODTYPE_NONE": 2, -} - -func (x OIDCAuthMethodType) String() string { - return proto.EnumName(OIDCAuthMethodType_name, int32(x)) -} - -func (OIDCAuthMethodType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{15} -} - -type ApplicationSearchKey int32 - -const ( - ApplicationSearchKey_APPLICATIONSEARCHKEY_UNSPECIFIED ApplicationSearchKey = 0 - ApplicationSearchKey_APPLICATIONSEARCHKEY_APP_TYPE ApplicationSearchKey = 1 - ApplicationSearchKey_APPLICATIONSEARCHKEY_STATE ApplicationSearchKey = 2 - ApplicationSearchKey_APPLICATIONSEARCHKEY_CLIENT_ID ApplicationSearchKey = 3 - ApplicationSearchKey_APPLICATIONSEARCHKEY_APP_NAME ApplicationSearchKey = 4 - ApplicationSearchKey_APPLICATIONSEARCHKEY_PROJECT_ID ApplicationSearchKey = 5 -) - -var ApplicationSearchKey_name = map[int32]string{ - 0: "APPLICATIONSEARCHKEY_UNSPECIFIED", - 1: "APPLICATIONSEARCHKEY_APP_TYPE", - 2: "APPLICATIONSEARCHKEY_STATE", - 3: "APPLICATIONSEARCHKEY_CLIENT_ID", - 4: "APPLICATIONSEARCHKEY_APP_NAME", - 5: "APPLICATIONSEARCHKEY_PROJECT_ID", -} - -var ApplicationSearchKey_value = map[string]int32{ - "APPLICATIONSEARCHKEY_UNSPECIFIED": 0, - "APPLICATIONSEARCHKEY_APP_TYPE": 1, - "APPLICATIONSEARCHKEY_STATE": 2, - "APPLICATIONSEARCHKEY_CLIENT_ID": 3, - "APPLICATIONSEARCHKEY_APP_NAME": 4, - "APPLICATIONSEARCHKEY_PROJECT_ID": 5, -} - -func (x ApplicationSearchKey) String() string { - return proto.EnumName(ApplicationSearchKey_name, int32(x)) -} - -func (ApplicationSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{16} +// Deprecated: Use MyProjectOrgSearchKey.Descriptor instead. +func (MyProjectOrgSearchKey) EnumDescriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{6} } type SearchMethod int32 @@ -581,2544 +402,225 @@ const ( SearchMethod_SEARCHMETHOD_CONTAINS SearchMethod = 2 ) -var SearchMethod_name = map[int32]string{ - 0: "SEARCHMETHOD_EQUALS", - 1: "SEARCHMETHOD_STARTS_WITH", - 2: "SEARCHMETHOD_CONTAINS", -} +// Enum value maps for SearchMethod. +var ( + SearchMethod_name = map[int32]string{ + 0: "SEARCHMETHOD_EQUALS", + 1: "SEARCHMETHOD_STARTS_WITH", + 2: "SEARCHMETHOD_CONTAINS", + } + SearchMethod_value = map[string]int32{ + "SEARCHMETHOD_EQUALS": 0, + "SEARCHMETHOD_STARTS_WITH": 1, + "SEARCHMETHOD_CONTAINS": 2, + } +) -var SearchMethod_value = map[string]int32{ - "SEARCHMETHOD_EQUALS": 0, - "SEARCHMETHOD_STARTS_WITH": 1, - "SEARCHMETHOD_CONTAINS": 2, +func (x SearchMethod) Enum() *SearchMethod { + p := new(SearchMethod) + *p = x + return p } func (x SearchMethod) String() string { - return proto.EnumName(SearchMethod_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (SearchMethod) Descriptor() protoreflect.EnumDescriptor { + return file_auth_proto_enumTypes[7].Descriptor() +} + +func (SearchMethod) Type() protoreflect.EnumType { + return &file_auth_proto_enumTypes[7] +} + +func (x SearchMethod) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SearchMethod.Descriptor instead. func (SearchMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{17} -} - -type GrantSearchKey int32 - -const ( - GrantSearchKey_GRANTSEARCHKEY_UNSPECIFIED GrantSearchKey = 0 - GrantSearchKey_GRANTSEARCHKEY_ORG_ID GrantSearchKey = 1 - GrantSearchKey_GRANTSEARCHKEY_PROJECT_ID GrantSearchKey = 2 - GrantSearchKey_GRANTSEARCHKEY_USER_ID GrantSearchKey = 3 -) - -var GrantSearchKey_name = map[int32]string{ - 0: "GRANTSEARCHKEY_UNSPECIFIED", - 1: "GRANTSEARCHKEY_ORG_ID", - 2: "GRANTSEARCHKEY_PROJECT_ID", - 3: "GRANTSEARCHKEY_USER_ID", -} - -var GrantSearchKey_value = map[string]int32{ - "GRANTSEARCHKEY_UNSPECIFIED": 0, - "GRANTSEARCHKEY_ORG_ID": 1, - "GRANTSEARCHKEY_PROJECT_ID": 2, - "GRANTSEARCHKEY_USER_ID": 3, -} - -func (x GrantSearchKey) String() string { - return proto.EnumName(GrantSearchKey_name, int32(x)) -} - -func (GrantSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{18} -} - -type MyProjectOrgSearchKey int32 - -const ( - MyProjectOrgSearchKey_MYPROJECTORGSEARCHKEY_UNSPECIFIED MyProjectOrgSearchKey = 0 - MyProjectOrgSearchKey_MYPROJECTORGSEARCHKEY_ORG_NAME MyProjectOrgSearchKey = 1 -) - -var MyProjectOrgSearchKey_name = map[int32]string{ - 0: "MYPROJECTORGSEARCHKEY_UNSPECIFIED", - 1: "MYPROJECTORGSEARCHKEY_ORG_NAME", -} - -var MyProjectOrgSearchKey_value = map[string]int32{ - "MYPROJECTORGSEARCHKEY_UNSPECIFIED": 0, - "MYPROJECTORGSEARCHKEY_ORG_NAME": 1, -} - -func (x MyProjectOrgSearchKey) String() string { - return proto.EnumName(MyProjectOrgSearchKey_name, int32(x)) -} - -func (MyProjectOrgSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{19} -} - -type SessionRequest struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - BrowserInfo *BrowserInformation `protobuf:"bytes,2,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SessionRequest) Reset() { *m = SessionRequest{} } -func (m *SessionRequest) String() string { return proto.CompactTextString(m) } -func (*SessionRequest) ProtoMessage() {} -func (*SessionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{0} -} - -func (m *SessionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SessionRequest.Unmarshal(m, b) -} -func (m *SessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SessionRequest.Marshal(b, m, deterministic) -} -func (m *SessionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SessionRequest.Merge(m, src) -} -func (m *SessionRequest) XXX_Size() int { - return xxx_messageInfo_SessionRequest.Size(m) -} -func (m *SessionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SessionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SessionRequest proto.InternalMessageInfo - -func (m *SessionRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *SessionRequest) GetBrowserInfo() *BrowserInformation { - if m != nil { - return m.BrowserInfo - } - return nil -} - -type UserAgent struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - BrowserInfo *BrowserInformation `protobuf:"bytes,2,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"` - State UserAgentState `protobuf:"varint,3,opt,name=state,proto3,enum=zitadel.auth.api.v1.UserAgentState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserAgent) Reset() { *m = UserAgent{} } -func (m *UserAgent) String() string { return proto.CompactTextString(m) } -func (*UserAgent) ProtoMessage() {} -func (*UserAgent) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{1} -} - -func (m *UserAgent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserAgent.Unmarshal(m, b) -} -func (m *UserAgent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserAgent.Marshal(b, m, deterministic) -} -func (m *UserAgent) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserAgent.Merge(m, src) -} -func (m *UserAgent) XXX_Size() int { - return xxx_messageInfo_UserAgent.Size(m) -} -func (m *UserAgent) XXX_DiscardUnknown() { - xxx_messageInfo_UserAgent.DiscardUnknown(m) -} - -var xxx_messageInfo_UserAgent proto.InternalMessageInfo - -func (m *UserAgent) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserAgent) GetBrowserInfo() *BrowserInformation { - if m != nil { - return m.BrowserInfo - } - return nil -} - -func (m *UserAgent) GetState() UserAgentState { - if m != nil { - return m.State - } - return UserAgentState_USERAGENTSTATE_UNSPECIFIED -} - -type UserAgentID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserAgentID) Reset() { *m = UserAgentID{} } -func (m *UserAgentID) String() string { return proto.CompactTextString(m) } -func (*UserAgentID) ProtoMessage() {} -func (*UserAgentID) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{2} -} - -func (m *UserAgentID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserAgentID.Unmarshal(m, b) -} -func (m *UserAgentID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserAgentID.Marshal(b, m, deterministic) -} -func (m *UserAgentID) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserAgentID.Merge(m, src) -} -func (m *UserAgentID) XXX_Size() int { - return xxx_messageInfo_UserAgentID.Size(m) -} -func (m *UserAgentID) XXX_DiscardUnknown() { - xxx_messageInfo_UserAgentID.DiscardUnknown(m) -} - -var xxx_messageInfo_UserAgentID proto.InternalMessageInfo - -func (m *UserAgentID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type UserAgentCreation struct { - BrowserInfo *BrowserInformation `protobuf:"bytes,1,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserAgentCreation) Reset() { *m = UserAgentCreation{} } -func (m *UserAgentCreation) String() string { return proto.CompactTextString(m) } -func (*UserAgentCreation) ProtoMessage() {} -func (*UserAgentCreation) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{3} -} - -func (m *UserAgentCreation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserAgentCreation.Unmarshal(m, b) -} -func (m *UserAgentCreation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserAgentCreation.Marshal(b, m, deterministic) -} -func (m *UserAgentCreation) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserAgentCreation.Merge(m, src) -} -func (m *UserAgentCreation) XXX_Size() int { - return xxx_messageInfo_UserAgentCreation.Size(m) -} -func (m *UserAgentCreation) XXX_DiscardUnknown() { - xxx_messageInfo_UserAgentCreation.DiscardUnknown(m) -} - -var xxx_messageInfo_UserAgentCreation proto.InternalMessageInfo - -func (m *UserAgentCreation) GetBrowserInfo() *BrowserInformation { - if m != nil { - return m.BrowserInfo - } - return nil -} - -type UserAgents struct { - Sessions []*UserAgent `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserAgents) Reset() { *m = UserAgents{} } -func (m *UserAgents) String() string { return proto.CompactTextString(m) } -func (*UserAgents) ProtoMessage() {} -func (*UserAgents) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{4} -} - -func (m *UserAgents) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserAgents.Unmarshal(m, b) -} -func (m *UserAgents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserAgents.Marshal(b, m, deterministic) -} -func (m *UserAgents) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserAgents.Merge(m, src) -} -func (m *UserAgents) XXX_Size() int { - return xxx_messageInfo_UserAgents.Size(m) -} -func (m *UserAgents) XXX_DiscardUnknown() { - xxx_messageInfo_UserAgents.DiscardUnknown(m) -} - -var xxx_messageInfo_UserAgents proto.InternalMessageInfo - -func (m *UserAgents) GetSessions() []*UserAgent { - if m != nil { - return m.Sessions - } - return nil -} - -type AuthSessionCreation struct { - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - Type AuthSessionType `protobuf:"varint,2,opt,name=type,proto3,enum=zitadel.auth.api.v1.AuthSessionType" json:"type,omitempty"` - BrowserInfo *BrowserInformation `protobuf:"bytes,3,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"` - ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - RedirectUri string `protobuf:"bytes,5,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` - State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` - Prompt Prompt `protobuf:"varint,7,opt,name=prompt,proto3,enum=zitadel.auth.api.v1.Prompt" json:"prompt,omitempty"` - AuthContextClassReference []string `protobuf:"bytes,8,rep,name=auth_context_class_reference,json=authContextClassReference,proto3" json:"auth_context_class_reference,omitempty"` - UiLocales []string `protobuf:"bytes,9,rep,name=ui_locales,json=uiLocales,proto3" json:"ui_locales,omitempty"` - LoginHint string `protobuf:"bytes,10,opt,name=login_hint,json=loginHint,proto3" json:"login_hint,omitempty"` - MaxAge uint32 `protobuf:"varint,11,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` - // Types that are valid to be assigned to TypeInfo: - // *AuthSessionCreation_Oidc - TypeInfo isAuthSessionCreation_TypeInfo `protobuf_oneof:"type_info"` - PreselectedUserId string `protobuf:"bytes,13,opt,name=preselected_user_id,json=preselectedUserId,proto3" json:"preselected_user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AuthSessionCreation) Reset() { *m = AuthSessionCreation{} } -func (m *AuthSessionCreation) String() string { return proto.CompactTextString(m) } -func (*AuthSessionCreation) ProtoMessage() {} -func (*AuthSessionCreation) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{5} -} - -func (m *AuthSessionCreation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuthSessionCreation.Unmarshal(m, b) -} -func (m *AuthSessionCreation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuthSessionCreation.Marshal(b, m, deterministic) -} -func (m *AuthSessionCreation) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuthSessionCreation.Merge(m, src) -} -func (m *AuthSessionCreation) XXX_Size() int { - return xxx_messageInfo_AuthSessionCreation.Size(m) -} -func (m *AuthSessionCreation) XXX_DiscardUnknown() { - xxx_messageInfo_AuthSessionCreation.DiscardUnknown(m) -} - -var xxx_messageInfo_AuthSessionCreation proto.InternalMessageInfo - -func (m *AuthSessionCreation) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -func (m *AuthSessionCreation) GetType() AuthSessionType { - if m != nil { - return m.Type - } - return AuthSessionType_AUTHSESSIONTYPE_UNSPECIFIED -} - -func (m *AuthSessionCreation) GetBrowserInfo() *BrowserInformation { - if m != nil { - return m.BrowserInfo - } - return nil -} - -func (m *AuthSessionCreation) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *AuthSessionCreation) GetRedirectUri() string { - if m != nil { - return m.RedirectUri - } - return "" -} - -func (m *AuthSessionCreation) GetState() string { - if m != nil { - return m.State - } - return "" -} - -func (m *AuthSessionCreation) GetPrompt() Prompt { - if m != nil { - return m.Prompt - } - return Prompt_PROMPT_UNSPECIFIED -} - -func (m *AuthSessionCreation) GetAuthContextClassReference() []string { - if m != nil { - return m.AuthContextClassReference - } - return nil -} - -func (m *AuthSessionCreation) GetUiLocales() []string { - if m != nil { - return m.UiLocales - } - return nil -} - -func (m *AuthSessionCreation) GetLoginHint() string { - if m != nil { - return m.LoginHint - } - return "" -} - -func (m *AuthSessionCreation) GetMaxAge() uint32 { - if m != nil { - return m.MaxAge - } - return 0 -} - -type isAuthSessionCreation_TypeInfo interface { - isAuthSessionCreation_TypeInfo() -} - -type AuthSessionCreation_Oidc struct { - Oidc *AuthRequestOIDC `protobuf:"bytes,12,opt,name=oidc,proto3,oneof"` -} - -func (*AuthSessionCreation_Oidc) isAuthSessionCreation_TypeInfo() {} - -func (m *AuthSessionCreation) GetTypeInfo() isAuthSessionCreation_TypeInfo { - if m != nil { - return m.TypeInfo - } - return nil -} - -func (m *AuthSessionCreation) GetOidc() *AuthRequestOIDC { - if x, ok := m.GetTypeInfo().(*AuthSessionCreation_Oidc); ok { - return x.Oidc - } - return nil -} - -func (m *AuthSessionCreation) GetPreselectedUserId() string { - if m != nil { - return m.PreselectedUserId - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*AuthSessionCreation) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*AuthSessionCreation_Oidc)(nil), - } -} - -type AuthSessionResponse struct { - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Type AuthSessionType `protobuf:"varint,3,opt,name=type,proto3,enum=zitadel.auth.api.v1.AuthSessionType" json:"type,omitempty"` - ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - RedirectUri string `protobuf:"bytes,5,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` - State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` - Prompt Prompt `protobuf:"varint,7,opt,name=prompt,proto3,enum=zitadel.auth.api.v1.Prompt" json:"prompt,omitempty"` - AuthContextClassReference []string `protobuf:"bytes,8,rep,name=auth_context_class_reference,json=authContextClassReference,proto3" json:"auth_context_class_reference,omitempty"` - UiLocales []string `protobuf:"bytes,9,rep,name=ui_locales,json=uiLocales,proto3" json:"ui_locales,omitempty"` - LoginHint string `protobuf:"bytes,10,opt,name=login_hint,json=loginHint,proto3" json:"login_hint,omitempty"` - MaxAge uint32 `protobuf:"varint,11,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` - // Types that are valid to be assigned to TypeInfo: - // *AuthSessionResponse_Oidc - TypeInfo isAuthSessionResponse_TypeInfo `protobuf_oneof:"type_info"` - PossibleSteps []*NextStep `protobuf:"bytes,13,rep,name=possible_steps,json=possibleSteps,proto3" json:"possible_steps,omitempty"` - ProjectClientIds []string `protobuf:"bytes,14,rep,name=project_client_ids,json=projectClientIds,proto3" json:"project_client_ids,omitempty"` - UserSession *UserSession `protobuf:"bytes,15,opt,name=user_session,json=userSession,proto3" json:"user_session,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AuthSessionResponse) Reset() { *m = AuthSessionResponse{} } -func (m *AuthSessionResponse) String() string { return proto.CompactTextString(m) } -func (*AuthSessionResponse) ProtoMessage() {} -func (*AuthSessionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{6} -} - -func (m *AuthSessionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuthSessionResponse.Unmarshal(m, b) -} -func (m *AuthSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuthSessionResponse.Marshal(b, m, deterministic) -} -func (m *AuthSessionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuthSessionResponse.Merge(m, src) -} -func (m *AuthSessionResponse) XXX_Size() int { - return xxx_messageInfo_AuthSessionResponse.Size(m) -} -func (m *AuthSessionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AuthSessionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AuthSessionResponse proto.InternalMessageInfo - -func (m *AuthSessionResponse) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -func (m *AuthSessionResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *AuthSessionResponse) GetType() AuthSessionType { - if m != nil { - return m.Type - } - return AuthSessionType_AUTHSESSIONTYPE_UNSPECIFIED -} - -func (m *AuthSessionResponse) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *AuthSessionResponse) GetRedirectUri() string { - if m != nil { - return m.RedirectUri - } - return "" -} - -func (m *AuthSessionResponse) GetState() string { - if m != nil { - return m.State - } - return "" -} - -func (m *AuthSessionResponse) GetPrompt() Prompt { - if m != nil { - return m.Prompt - } - return Prompt_PROMPT_UNSPECIFIED -} - -func (m *AuthSessionResponse) GetAuthContextClassReference() []string { - if m != nil { - return m.AuthContextClassReference - } - return nil -} - -func (m *AuthSessionResponse) GetUiLocales() []string { - if m != nil { - return m.UiLocales - } - return nil -} - -func (m *AuthSessionResponse) GetLoginHint() string { - if m != nil { - return m.LoginHint - } - return "" -} - -func (m *AuthSessionResponse) GetMaxAge() uint32 { - if m != nil { - return m.MaxAge - } - return 0 -} - -type isAuthSessionResponse_TypeInfo interface { - isAuthSessionResponse_TypeInfo() -} - -type AuthSessionResponse_Oidc struct { - Oidc *AuthRequestOIDC `protobuf:"bytes,12,opt,name=oidc,proto3,oneof"` -} - -func (*AuthSessionResponse_Oidc) isAuthSessionResponse_TypeInfo() {} - -func (m *AuthSessionResponse) GetTypeInfo() isAuthSessionResponse_TypeInfo { - if m != nil { - return m.TypeInfo - } - return nil -} - -func (m *AuthSessionResponse) GetOidc() *AuthRequestOIDC { - if x, ok := m.GetTypeInfo().(*AuthSessionResponse_Oidc); ok { - return x.Oidc - } - return nil -} - -func (m *AuthSessionResponse) GetPossibleSteps() []*NextStep { - if m != nil { - return m.PossibleSteps - } - return nil -} - -func (m *AuthSessionResponse) GetProjectClientIds() []string { - if m != nil { - return m.ProjectClientIds - } - return nil -} - -func (m *AuthSessionResponse) GetUserSession() *UserSession { - if m != nil { - return m.UserSession - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*AuthSessionResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*AuthSessionResponse_Oidc)(nil), - } -} - -type AuthSessionView struct { - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - AuthSessionId string `protobuf:"bytes,2,opt,name=auth_session_id,json=authSessionId,proto3" json:"auth_session_id,omitempty"` - Type AuthSessionType `protobuf:"varint,3,opt,name=type,proto3,enum=zitadel.auth.api.v1.AuthSessionType" json:"type,omitempty"` - ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - UserSessionId string `protobuf:"bytes,5,opt,name=user_session_id,json=userSessionId,proto3" json:"user_session_id,omitempty"` - ProjectClientIds []string `protobuf:"bytes,6,rep,name=project_client_ids,json=projectClientIds,proto3" json:"project_client_ids,omitempty"` - TokenId string `protobuf:"bytes,7,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - TokenExpiration *timestamp.Timestamp `protobuf:"bytes,8,opt,name=token_expiration,json=tokenExpiration,proto3" json:"token_expiration,omitempty"` - UserId string `protobuf:"bytes,9,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AuthSessionView) Reset() { *m = AuthSessionView{} } -func (m *AuthSessionView) String() string { return proto.CompactTextString(m) } -func (*AuthSessionView) ProtoMessage() {} -func (*AuthSessionView) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{7} -} - -func (m *AuthSessionView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuthSessionView.Unmarshal(m, b) -} -func (m *AuthSessionView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuthSessionView.Marshal(b, m, deterministic) -} -func (m *AuthSessionView) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuthSessionView.Merge(m, src) -} -func (m *AuthSessionView) XXX_Size() int { - return xxx_messageInfo_AuthSessionView.Size(m) -} -func (m *AuthSessionView) XXX_DiscardUnknown() { - xxx_messageInfo_AuthSessionView.DiscardUnknown(m) -} - -var xxx_messageInfo_AuthSessionView proto.InternalMessageInfo - -func (m *AuthSessionView) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -func (m *AuthSessionView) GetAuthSessionId() string { - if m != nil { - return m.AuthSessionId - } - return "" -} - -func (m *AuthSessionView) GetType() AuthSessionType { - if m != nil { - return m.Type - } - return AuthSessionType_AUTHSESSIONTYPE_UNSPECIFIED -} - -func (m *AuthSessionView) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *AuthSessionView) GetUserSessionId() string { - if m != nil { - return m.UserSessionId - } - return "" -} - -func (m *AuthSessionView) GetProjectClientIds() []string { - if m != nil { - return m.ProjectClientIds - } - return nil -} - -func (m *AuthSessionView) GetTokenId() string { - if m != nil { - return m.TokenId - } - return "" -} - -func (m *AuthSessionView) GetTokenExpiration() *timestamp.Timestamp { - if m != nil { - return m.TokenExpiration - } - return nil -} - -func (m *AuthSessionView) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -type TokenID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TokenID) Reset() { *m = TokenID{} } -func (m *TokenID) String() string { return proto.CompactTextString(m) } -func (*TokenID) ProtoMessage() {} -func (*TokenID) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{8} -} - -func (m *TokenID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TokenID.Unmarshal(m, b) -} -func (m *TokenID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TokenID.Marshal(b, m, deterministic) -} -func (m *TokenID) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenID.Merge(m, src) -} -func (m *TokenID) XXX_Size() int { - return xxx_messageInfo_TokenID.Size(m) -} -func (m *TokenID) XXX_DiscardUnknown() { - xxx_messageInfo_TokenID.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenID proto.InternalMessageInfo - -func (m *TokenID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type UserSessionID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserSessionID) Reset() { *m = UserSessionID{} } -func (m *UserSessionID) String() string { return proto.CompactTextString(m) } -func (*UserSessionID) ProtoMessage() {} -func (*UserSessionID) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{9} -} - -func (m *UserSessionID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserSessionID.Unmarshal(m, b) -} -func (m *UserSessionID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserSessionID.Marshal(b, m, deterministic) -} -func (m *UserSessionID) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserSessionID.Merge(m, src) -} -func (m *UserSessionID) XXX_Size() int { - return xxx_messageInfo_UserSessionID.Size(m) -} -func (m *UserSessionID) XXX_DiscardUnknown() { - xxx_messageInfo_UserSessionID.DiscardUnknown(m) -} - -var xxx_messageInfo_UserSessionID proto.InternalMessageInfo - -func (m *UserSessionID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserSessionID) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -type UserSessions struct { - UserSessions []*UserSession `protobuf:"bytes,1,rep,name=user_sessions,json=userSessions,proto3" json:"user_sessions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserSessions) Reset() { *m = UserSessions{} } -func (m *UserSessions) String() string { return proto.CompactTextString(m) } -func (*UserSessions) ProtoMessage() {} -func (*UserSessions) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{10} -} - -func (m *UserSessions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserSessions.Unmarshal(m, b) -} -func (m *UserSessions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserSessions.Marshal(b, m, deterministic) -} -func (m *UserSessions) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserSessions.Merge(m, src) -} -func (m *UserSessions) XXX_Size() int { - return xxx_messageInfo_UserSessions.Size(m) -} -func (m *UserSessions) XXX_DiscardUnknown() { - xxx_messageInfo_UserSessions.DiscardUnknown(m) -} - -var xxx_messageInfo_UserSessions proto.InternalMessageInfo - -func (m *UserSessions) GetUserSessions() []*UserSession { - if m != nil { - return m.UserSessions - } - return nil -} - -type UserSession struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - AuthState UserSessionState `protobuf:"varint,3,opt,name=auth_state,json=authState,proto3,enum=zitadel.auth.api.v1.UserSessionState" json:"auth_state,omitempty"` - User *AuthUser `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` - PasswordVerified bool `protobuf:"varint,5,opt,name=password_verified,json=passwordVerified,proto3" json:"password_verified,omitempty"` - Mfa MfaType `protobuf:"varint,6,opt,name=mfa,proto3,enum=zitadel.auth.api.v1.MfaType" json:"mfa,omitempty"` - MfaVerified bool `protobuf:"varint,7,opt,name=mfa_verified,json=mfaVerified,proto3" json:"mfa_verified,omitempty"` - AuthTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=auth_time,json=authTime,proto3" json:"auth_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserSession) Reset() { *m = UserSession{} } -func (m *UserSession) String() string { return proto.CompactTextString(m) } -func (*UserSession) ProtoMessage() {} -func (*UserSession) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{11} -} - -func (m *UserSession) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserSession.Unmarshal(m, b) -} -func (m *UserSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserSession.Marshal(b, m, deterministic) -} -func (m *UserSession) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserSession.Merge(m, src) -} -func (m *UserSession) XXX_Size() int { - return xxx_messageInfo_UserSession.Size(m) -} -func (m *UserSession) XXX_DiscardUnknown() { - xxx_messageInfo_UserSession.DiscardUnknown(m) -} - -var xxx_messageInfo_UserSession proto.InternalMessageInfo - -func (m *UserSession) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserSession) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -func (m *UserSession) GetAuthState() UserSessionState { - if m != nil { - return m.AuthState - } - return UserSessionState_USERSESSIONSTATE_UNSPECIFIED -} - -func (m *UserSession) GetUser() *AuthUser { - if m != nil { - return m.User - } - return nil -} - -func (m *UserSession) GetPasswordVerified() bool { - if m != nil { - return m.PasswordVerified - } - return false -} - -func (m *UserSession) GetMfa() MfaType { - if m != nil { - return m.Mfa - } - return MfaType_MFATYPE_UNSPECIFIED -} - -func (m *UserSession) GetMfaVerified() bool { - if m != nil { - return m.MfaVerified - } - return false -} - -func (m *UserSession) GetAuthTime() *timestamp.Timestamp { - if m != nil { - return m.AuthTime - } - return nil + return file_auth_proto_rawDescGZIP(), []int{7} } type UserSessionViews struct { - UserSessions []*UserSessionView `protobuf:"bytes,1,rep,name=user_sessions,json=userSessions,proto3" json:"user_sessions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserSessions []*UserSessionView `protobuf:"bytes,1,rep,name=user_sessions,json=userSessions,proto3" json:"user_sessions,omitempty"` } -func (m *UserSessionViews) Reset() { *m = UserSessionViews{} } -func (m *UserSessionViews) String() string { return proto.CompactTextString(m) } -func (*UserSessionViews) ProtoMessage() {} +func (x *UserSessionViews) Reset() { + *x = UserSessionViews{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserSessionViews) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserSessionViews) ProtoMessage() {} + +func (x *UserSessionViews) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserSessionViews.ProtoReflect.Descriptor instead. func (*UserSessionViews) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{12} + return file_auth_proto_rawDescGZIP(), []int{0} } -func (m *UserSessionViews) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserSessionViews.Unmarshal(m, b) -} -func (m *UserSessionViews) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserSessionViews.Marshal(b, m, deterministic) -} -func (m *UserSessionViews) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserSessionViews.Merge(m, src) -} -func (m *UserSessionViews) XXX_Size() int { - return xxx_messageInfo_UserSessionViews.Size(m) -} -func (m *UserSessionViews) XXX_DiscardUnknown() { - xxx_messageInfo_UserSessionViews.DiscardUnknown(m) -} - -var xxx_messageInfo_UserSessionViews proto.InternalMessageInfo - -func (m *UserSessionViews) GetUserSessions() []*UserSessionView { - if m != nil { - return m.UserSessions +func (x *UserSessionViews) GetUserSessions() []*UserSessionView { + if x != nil { + return x.UserSessions } return nil } type UserSessionView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - AuthState UserSessionState `protobuf:"varint,3,opt,name=auth_state,json=authState,proto3,enum=zitadel.auth.api.v1.UserSessionState" json:"auth_state,omitempty"` - UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` + AuthState UserSessionState `protobuf:"varint,3,opt,name=auth_state,json=authState,proto3,enum=zitadel.auth.api.v1.UserSessionState" json:"auth_state,omitempty"` + UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` } -func (m *UserSessionView) Reset() { *m = UserSessionView{} } -func (m *UserSessionView) String() string { return proto.CompactTextString(m) } -func (*UserSessionView) ProtoMessage() {} +func (x *UserSessionView) Reset() { + *x = UserSessionView{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserSessionView) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserSessionView) ProtoMessage() {} + +func (x *UserSessionView) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserSessionView.ProtoReflect.Descriptor instead. func (*UserSessionView) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{13} + return file_auth_proto_rawDescGZIP(), []int{1} } -func (m *UserSessionView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserSessionView.Unmarshal(m, b) -} -func (m *UserSessionView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserSessionView.Marshal(b, m, deterministic) -} -func (m *UserSessionView) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserSessionView.Merge(m, src) -} -func (m *UserSessionView) XXX_Size() int { - return xxx_messageInfo_UserSessionView.Size(m) -} -func (m *UserSessionView) XXX_DiscardUnknown() { - xxx_messageInfo_UserSessionView.DiscardUnknown(m) -} - -var xxx_messageInfo_UserSessionView proto.InternalMessageInfo - -func (m *UserSessionView) GetId() string { - if m != nil { - return m.Id +func (x *UserSessionView) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *UserSessionView) GetAgentId() string { - if m != nil { - return m.AgentId +func (x *UserSessionView) GetAgentId() string { + if x != nil { + return x.AgentId } return "" } -func (m *UserSessionView) GetAuthState() UserSessionState { - if m != nil { - return m.AuthState +func (x *UserSessionView) GetAuthState() UserSessionState { + if x != nil { + return x.AuthState } return UserSessionState_USERSESSIONSTATE_UNSPECIFIED } -func (m *UserSessionView) GetUserId() string { - if m != nil { - return m.UserId +func (x *UserSessionView) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *UserSessionView) GetUserName() string { - if m != nil { - return m.UserName +func (x *UserSessionView) GetUserName() string { + if x != nil { + return x.UserName } return "" } -type AuthUser struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AuthUser) Reset() { *m = AuthUser{} } -func (m *AuthUser) String() string { return proto.CompactTextString(m) } -func (*AuthUser) ProtoMessage() {} -func (*AuthUser) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{14} -} - -func (m *AuthUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuthUser.Unmarshal(m, b) -} -func (m *AuthUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuthUser.Marshal(b, m, deterministic) -} -func (m *AuthUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuthUser.Merge(m, src) -} -func (m *AuthUser) XXX_Size() int { - return xxx_messageInfo_AuthUser.Size(m) -} -func (m *AuthUser) XXX_DiscardUnknown() { - xxx_messageInfo_AuthUser.DiscardUnknown(m) -} - -var xxx_messageInfo_AuthUser proto.InternalMessageInfo - -func (m *AuthUser) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *AuthUser) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -type AuthSessionID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - BrowserInfo *BrowserInformation `protobuf:"bytes,3,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AuthSessionID) Reset() { *m = AuthSessionID{} } -func (m *AuthSessionID) String() string { return proto.CompactTextString(m) } -func (*AuthSessionID) ProtoMessage() {} -func (*AuthSessionID) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{15} -} - -func (m *AuthSessionID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuthSessionID.Unmarshal(m, b) -} -func (m *AuthSessionID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuthSessionID.Marshal(b, m, deterministic) -} -func (m *AuthSessionID) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuthSessionID.Merge(m, src) -} -func (m *AuthSessionID) XXX_Size() int { - return xxx_messageInfo_AuthSessionID.Size(m) -} -func (m *AuthSessionID) XXX_DiscardUnknown() { - xxx_messageInfo_AuthSessionID.DiscardUnknown(m) -} - -var xxx_messageInfo_AuthSessionID proto.InternalMessageInfo - -func (m *AuthSessionID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *AuthSessionID) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -func (m *AuthSessionID) GetBrowserInfo() *BrowserInformation { - if m != nil { - return m.BrowserInfo - } - return nil -} - -type SelectUserRequest struct { - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - AuthSessionId string `protobuf:"bytes,2,opt,name=auth_session_id,json=authSessionId,proto3" json:"auth_session_id,omitempty"` - UserSessionId string `protobuf:"bytes,3,opt,name=user_session_id,json=userSessionId,proto3" json:"user_session_id,omitempty"` - BrowserInfo *BrowserInformation `protobuf:"bytes,4,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SelectUserRequest) Reset() { *m = SelectUserRequest{} } -func (m *SelectUserRequest) String() string { return proto.CompactTextString(m) } -func (*SelectUserRequest) ProtoMessage() {} -func (*SelectUserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{16} -} - -func (m *SelectUserRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SelectUserRequest.Unmarshal(m, b) -} -func (m *SelectUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SelectUserRequest.Marshal(b, m, deterministic) -} -func (m *SelectUserRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelectUserRequest.Merge(m, src) -} -func (m *SelectUserRequest) XXX_Size() int { - return xxx_messageInfo_SelectUserRequest.Size(m) -} -func (m *SelectUserRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SelectUserRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SelectUserRequest proto.InternalMessageInfo - -func (m *SelectUserRequest) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -func (m *SelectUserRequest) GetAuthSessionId() string { - if m != nil { - return m.AuthSessionId - } - return "" -} - -func (m *SelectUserRequest) GetUserSessionId() string { - if m != nil { - return m.UserSessionId - } - return "" -} - -func (m *SelectUserRequest) GetBrowserInfo() *BrowserInformation { - if m != nil { - return m.BrowserInfo - } - return nil -} - -type VerifyUserRequest struct { - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - AuthSessionId string `protobuf:"bytes,2,opt,name=auth_session_id,json=authSessionId,proto3" json:"auth_session_id,omitempty"` - UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - BrowserInfo *BrowserInformation `protobuf:"bytes,4,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VerifyUserRequest) Reset() { *m = VerifyUserRequest{} } -func (m *VerifyUserRequest) String() string { return proto.CompactTextString(m) } -func (*VerifyUserRequest) ProtoMessage() {} -func (*VerifyUserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{17} -} - -func (m *VerifyUserRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyUserRequest.Unmarshal(m, b) -} -func (m *VerifyUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyUserRequest.Marshal(b, m, deterministic) -} -func (m *VerifyUserRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyUserRequest.Merge(m, src) -} -func (m *VerifyUserRequest) XXX_Size() int { - return xxx_messageInfo_VerifyUserRequest.Size(m) -} -func (m *VerifyUserRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyUserRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VerifyUserRequest proto.InternalMessageInfo - -func (m *VerifyUserRequest) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -func (m *VerifyUserRequest) GetAuthSessionId() string { - if m != nil { - return m.AuthSessionId - } - return "" -} - -func (m *VerifyUserRequest) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *VerifyUserRequest) GetBrowserInfo() *BrowserInformation { - if m != nil { - return m.BrowserInfo - } - return nil -} - -type VerifyPasswordRequest struct { - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - AuthSessionId string `protobuf:"bytes,2,opt,name=auth_session_id,json=authSessionId,proto3" json:"auth_session_id,omitempty"` - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` - BrowserInfo *BrowserInformation `protobuf:"bytes,4,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VerifyPasswordRequest) Reset() { *m = VerifyPasswordRequest{} } -func (m *VerifyPasswordRequest) String() string { return proto.CompactTextString(m) } -func (*VerifyPasswordRequest) ProtoMessage() {} -func (*VerifyPasswordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{18} -} - -func (m *VerifyPasswordRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyPasswordRequest.Unmarshal(m, b) -} -func (m *VerifyPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyPasswordRequest.Marshal(b, m, deterministic) -} -func (m *VerifyPasswordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyPasswordRequest.Merge(m, src) -} -func (m *VerifyPasswordRequest) XXX_Size() int { - return xxx_messageInfo_VerifyPasswordRequest.Size(m) -} -func (m *VerifyPasswordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyPasswordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VerifyPasswordRequest proto.InternalMessageInfo - -func (m *VerifyPasswordRequest) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -func (m *VerifyPasswordRequest) GetAuthSessionId() string { - if m != nil { - return m.AuthSessionId - } - return "" -} - -func (m *VerifyPasswordRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -func (m *VerifyPasswordRequest) GetBrowserInfo() *BrowserInformation { - if m != nil { - return m.BrowserInfo - } - return nil -} - -type VerifyMfaRequest struct { - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - AuthSessionId string `protobuf:"bytes,2,opt,name=auth_session_id,json=authSessionId,proto3" json:"auth_session_id,omitempty"` - BrowserInfo *BrowserInformation `protobuf:"bytes,3,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"` - // Types that are valid to be assigned to Mfa: - // *VerifyMfaRequest_Otp - Mfa isVerifyMfaRequest_Mfa `protobuf_oneof:"mfa"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VerifyMfaRequest) Reset() { *m = VerifyMfaRequest{} } -func (m *VerifyMfaRequest) String() string { return proto.CompactTextString(m) } -func (*VerifyMfaRequest) ProtoMessage() {} -func (*VerifyMfaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{19} -} - -func (m *VerifyMfaRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyMfaRequest.Unmarshal(m, b) -} -func (m *VerifyMfaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyMfaRequest.Marshal(b, m, deterministic) -} -func (m *VerifyMfaRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyMfaRequest.Merge(m, src) -} -func (m *VerifyMfaRequest) XXX_Size() int { - return xxx_messageInfo_VerifyMfaRequest.Size(m) -} -func (m *VerifyMfaRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyMfaRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VerifyMfaRequest proto.InternalMessageInfo - -func (m *VerifyMfaRequest) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -func (m *VerifyMfaRequest) GetAuthSessionId() string { - if m != nil { - return m.AuthSessionId - } - return "" -} - -func (m *VerifyMfaRequest) GetBrowserInfo() *BrowserInformation { - if m != nil { - return m.BrowserInfo - } - return nil -} - -type isVerifyMfaRequest_Mfa interface { - isVerifyMfaRequest_Mfa() -} - -type VerifyMfaRequest_Otp struct { - Otp *AuthSessionMultiFactorOTP `protobuf:"bytes,4,opt,name=otp,proto3,oneof"` -} - -func (*VerifyMfaRequest_Otp) isVerifyMfaRequest_Mfa() {} - -func (m *VerifyMfaRequest) GetMfa() isVerifyMfaRequest_Mfa { - if m != nil { - return m.Mfa - } - return nil -} - -func (m *VerifyMfaRequest) GetOtp() *AuthSessionMultiFactorOTP { - if x, ok := m.GetMfa().(*VerifyMfaRequest_Otp); ok { - return x.Otp - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*VerifyMfaRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*VerifyMfaRequest_Otp)(nil), - } -} - -type AuthSessionMultiFactorOTP struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AuthSessionMultiFactorOTP) Reset() { *m = AuthSessionMultiFactorOTP{} } -func (m *AuthSessionMultiFactorOTP) String() string { return proto.CompactTextString(m) } -func (*AuthSessionMultiFactorOTP) ProtoMessage() {} -func (*AuthSessionMultiFactorOTP) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{20} -} - -func (m *AuthSessionMultiFactorOTP) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuthSessionMultiFactorOTP.Unmarshal(m, b) -} -func (m *AuthSessionMultiFactorOTP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuthSessionMultiFactorOTP.Marshal(b, m, deterministic) -} -func (m *AuthSessionMultiFactorOTP) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuthSessionMultiFactorOTP.Merge(m, src) -} -func (m *AuthSessionMultiFactorOTP) XXX_Size() int { - return xxx_messageInfo_AuthSessionMultiFactorOTP.Size(m) -} -func (m *AuthSessionMultiFactorOTP) XXX_DiscardUnknown() { - xxx_messageInfo_AuthSessionMultiFactorOTP.DiscardUnknown(m) -} - -var xxx_messageInfo_AuthSessionMultiFactorOTP proto.InternalMessageInfo - -func (m *AuthSessionMultiFactorOTP) GetCode() string { - if m != nil { - return m.Code - } - return "" -} - -type NextStep struct { - Type NextStepType `protobuf:"varint,1,opt,name=type,proto3,enum=zitadel.auth.api.v1.NextStepType" json:"type,omitempty"` - // Types that are valid to be assigned to Data: - // *NextStep_Login - // *NextStep_Password - // *NextStep_MfaVerify - // *NextStep_MfaPrompt - // *NextStep_ChooseUser - Data isNextStep_Data `protobuf_oneof:"data"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NextStep) Reset() { *m = NextStep{} } -func (m *NextStep) String() string { return proto.CompactTextString(m) } -func (*NextStep) ProtoMessage() {} -func (*NextStep) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{21} -} - -func (m *NextStep) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NextStep.Unmarshal(m, b) -} -func (m *NextStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NextStep.Marshal(b, m, deterministic) -} -func (m *NextStep) XXX_Merge(src proto.Message) { - xxx_messageInfo_NextStep.Merge(m, src) -} -func (m *NextStep) XXX_Size() int { - return xxx_messageInfo_NextStep.Size(m) -} -func (m *NextStep) XXX_DiscardUnknown() { - xxx_messageInfo_NextStep.DiscardUnknown(m) -} - -var xxx_messageInfo_NextStep proto.InternalMessageInfo - -func (m *NextStep) GetType() NextStepType { - if m != nil { - return m.Type - } - return NextStepType_NEXTSTEP_UNSPECIFIED -} - -type isNextStep_Data interface { - isNextStep_Data() -} - -type NextStep_Login struct { - Login *LoginData `protobuf:"bytes,2,opt,name=login,proto3,oneof"` -} - -type NextStep_Password struct { - Password *PasswordData `protobuf:"bytes,3,opt,name=password,proto3,oneof"` -} - -type NextStep_MfaVerify struct { - MfaVerify *MfaVerifyData `protobuf:"bytes,4,opt,name=mfa_verify,json=mfaVerify,proto3,oneof"` -} - -type NextStep_MfaPrompt struct { - MfaPrompt *MfaPromptData `protobuf:"bytes,5,opt,name=mfa_prompt,json=mfaPrompt,proto3,oneof"` -} - -type NextStep_ChooseUser struct { - ChooseUser *ChooseUserData `protobuf:"bytes,6,opt,name=choose_user,json=chooseUser,proto3,oneof"` -} - -func (*NextStep_Login) isNextStep_Data() {} - -func (*NextStep_Password) isNextStep_Data() {} - -func (*NextStep_MfaVerify) isNextStep_Data() {} - -func (*NextStep_MfaPrompt) isNextStep_Data() {} - -func (*NextStep_ChooseUser) isNextStep_Data() {} - -func (m *NextStep) GetData() isNextStep_Data { - if m != nil { - return m.Data - } - return nil -} - -func (m *NextStep) GetLogin() *LoginData { - if x, ok := m.GetData().(*NextStep_Login); ok { - return x.Login - } - return nil -} - -func (m *NextStep) GetPassword() *PasswordData { - if x, ok := m.GetData().(*NextStep_Password); ok { - return x.Password - } - return nil -} - -func (m *NextStep) GetMfaVerify() *MfaVerifyData { - if x, ok := m.GetData().(*NextStep_MfaVerify); ok { - return x.MfaVerify - } - return nil -} - -func (m *NextStep) GetMfaPrompt() *MfaPromptData { - if x, ok := m.GetData().(*NextStep_MfaPrompt); ok { - return x.MfaPrompt - } - return nil -} - -func (m *NextStep) GetChooseUser() *ChooseUserData { - if x, ok := m.GetData().(*NextStep_ChooseUser); ok { - return x.ChooseUser - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*NextStep) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*NextStep_Login)(nil), - (*NextStep_Password)(nil), - (*NextStep_MfaVerify)(nil), - (*NextStep_MfaPrompt)(nil), - (*NextStep_ChooseUser)(nil), - } -} - -type LoginData struct { - ErrMsg string `protobuf:"bytes,1,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoginData) Reset() { *m = LoginData{} } -func (m *LoginData) String() string { return proto.CompactTextString(m) } -func (*LoginData) ProtoMessage() {} -func (*LoginData) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{22} -} - -func (m *LoginData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoginData.Unmarshal(m, b) -} -func (m *LoginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoginData.Marshal(b, m, deterministic) -} -func (m *LoginData) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoginData.Merge(m, src) -} -func (m *LoginData) XXX_Size() int { - return xxx_messageInfo_LoginData.Size(m) -} -func (m *LoginData) XXX_DiscardUnknown() { - xxx_messageInfo_LoginData.DiscardUnknown(m) -} - -var xxx_messageInfo_LoginData proto.InternalMessageInfo - -func (m *LoginData) GetErrMsg() string { - if m != nil { - return m.ErrMsg - } - return "" -} - -type PasswordData struct { - ErrMsg string `protobuf:"bytes,1,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"` - FailureCount uint32 `protobuf:"varint,2,opt,name=failure_count,json=failureCount,proto3" json:"failure_count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordData) Reset() { *m = PasswordData{} } -func (m *PasswordData) String() string { return proto.CompactTextString(m) } -func (*PasswordData) ProtoMessage() {} -func (*PasswordData) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{23} -} - -func (m *PasswordData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordData.Unmarshal(m, b) -} -func (m *PasswordData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordData.Marshal(b, m, deterministic) -} -func (m *PasswordData) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordData.Merge(m, src) -} -func (m *PasswordData) XXX_Size() int { - return xxx_messageInfo_PasswordData.Size(m) -} -func (m *PasswordData) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordData.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordData proto.InternalMessageInfo - -func (m *PasswordData) GetErrMsg() string { - if m != nil { - return m.ErrMsg - } - return "" -} - -func (m *PasswordData) GetFailureCount() uint32 { - if m != nil { - return m.FailureCount - } - return 0 -} - -type MfaVerifyData struct { - ErrMsg string `protobuf:"bytes,1,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"` - FailureCount uint32 `protobuf:"varint,2,opt,name=failure_count,json=failureCount,proto3" json:"failure_count,omitempty"` - MfaProviders []MfaType `protobuf:"varint,3,rep,packed,name=mfa_providers,json=mfaProviders,proto3,enum=zitadel.auth.api.v1.MfaType" json:"mfa_providers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MfaVerifyData) Reset() { *m = MfaVerifyData{} } -func (m *MfaVerifyData) String() string { return proto.CompactTextString(m) } -func (*MfaVerifyData) ProtoMessage() {} -func (*MfaVerifyData) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{24} -} - -func (m *MfaVerifyData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MfaVerifyData.Unmarshal(m, b) -} -func (m *MfaVerifyData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MfaVerifyData.Marshal(b, m, deterministic) -} -func (m *MfaVerifyData) XXX_Merge(src proto.Message) { - xxx_messageInfo_MfaVerifyData.Merge(m, src) -} -func (m *MfaVerifyData) XXX_Size() int { - return xxx_messageInfo_MfaVerifyData.Size(m) -} -func (m *MfaVerifyData) XXX_DiscardUnknown() { - xxx_messageInfo_MfaVerifyData.DiscardUnknown(m) -} - -var xxx_messageInfo_MfaVerifyData proto.InternalMessageInfo - -func (m *MfaVerifyData) GetErrMsg() string { - if m != nil { - return m.ErrMsg - } - return "" -} - -func (m *MfaVerifyData) GetFailureCount() uint32 { - if m != nil { - return m.FailureCount - } - return 0 -} - -func (m *MfaVerifyData) GetMfaProviders() []MfaType { - if m != nil { - return m.MfaProviders - } - return nil -} - -type MfaPromptData struct { - Required bool `protobuf:"varint,1,opt,name=required,proto3" json:"required,omitempty"` - MfaProviders []MfaType `protobuf:"varint,2,rep,packed,name=mfa_providers,json=mfaProviders,proto3,enum=zitadel.auth.api.v1.MfaType" json:"mfa_providers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MfaPromptData) Reset() { *m = MfaPromptData{} } -func (m *MfaPromptData) String() string { return proto.CompactTextString(m) } -func (*MfaPromptData) ProtoMessage() {} -func (*MfaPromptData) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{25} -} - -func (m *MfaPromptData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MfaPromptData.Unmarshal(m, b) -} -func (m *MfaPromptData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MfaPromptData.Marshal(b, m, deterministic) -} -func (m *MfaPromptData) XXX_Merge(src proto.Message) { - xxx_messageInfo_MfaPromptData.Merge(m, src) -} -func (m *MfaPromptData) XXX_Size() int { - return xxx_messageInfo_MfaPromptData.Size(m) -} -func (m *MfaPromptData) XXX_DiscardUnknown() { - xxx_messageInfo_MfaPromptData.DiscardUnknown(m) -} - -var xxx_messageInfo_MfaPromptData proto.InternalMessageInfo - -func (m *MfaPromptData) GetRequired() bool { - if m != nil { - return m.Required - } - return false -} - -func (m *MfaPromptData) GetMfaProviders() []MfaType { - if m != nil { - return m.MfaProviders - } - return nil -} - -type ChooseUserData struct { - Users []*ChooseUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChooseUserData) Reset() { *m = ChooseUserData{} } -func (m *ChooseUserData) String() string { return proto.CompactTextString(m) } -func (*ChooseUserData) ProtoMessage() {} -func (*ChooseUserData) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{26} -} - -func (m *ChooseUserData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChooseUserData.Unmarshal(m, b) -} -func (m *ChooseUserData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChooseUserData.Marshal(b, m, deterministic) -} -func (m *ChooseUserData) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChooseUserData.Merge(m, src) -} -func (m *ChooseUserData) XXX_Size() int { - return xxx_messageInfo_ChooseUserData.Size(m) -} -func (m *ChooseUserData) XXX_DiscardUnknown() { - xxx_messageInfo_ChooseUserData.DiscardUnknown(m) -} - -var xxx_messageInfo_ChooseUserData proto.InternalMessageInfo - -func (m *ChooseUserData) GetUsers() []*ChooseUser { - if m != nil { - return m.Users - } - return nil -} - -type ChooseUser struct { - UserSessionId string `protobuf:"bytes,1,opt,name=user_session_id,json=userSessionId,proto3" json:"user_session_id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - UserSessionState UserSessionState `protobuf:"varint,4,opt,name=user_session_state,json=userSessionState,proto3,enum=zitadel.auth.api.v1.UserSessionState" json:"user_session_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChooseUser) Reset() { *m = ChooseUser{} } -func (m *ChooseUser) String() string { return proto.CompactTextString(m) } -func (*ChooseUser) ProtoMessage() {} -func (*ChooseUser) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{27} -} - -func (m *ChooseUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChooseUser.Unmarshal(m, b) -} -func (m *ChooseUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChooseUser.Marshal(b, m, deterministic) -} -func (m *ChooseUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChooseUser.Merge(m, src) -} -func (m *ChooseUser) XXX_Size() int { - return xxx_messageInfo_ChooseUser.Size(m) -} -func (m *ChooseUser) XXX_DiscardUnknown() { - xxx_messageInfo_ChooseUser.DiscardUnknown(m) -} - -var xxx_messageInfo_ChooseUser proto.InternalMessageInfo - -func (m *ChooseUser) GetUserSessionId() string { - if m != nil { - return m.UserSessionId - } - return "" -} - -func (m *ChooseUser) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ChooseUser) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *ChooseUser) GetUserSessionState() UserSessionState { - if m != nil { - return m.UserSessionState - } - return UserSessionState_USERSESSIONSTATE_UNSPECIFIED -} - -type SkipMfaInitRequest struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SkipMfaInitRequest) Reset() { *m = SkipMfaInitRequest{} } -func (m *SkipMfaInitRequest) String() string { return proto.CompactTextString(m) } -func (*SkipMfaInitRequest) ProtoMessage() {} -func (*SkipMfaInitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{28} -} - -func (m *SkipMfaInitRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SkipMfaInitRequest.Unmarshal(m, b) -} -func (m *SkipMfaInitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SkipMfaInitRequest.Marshal(b, m, deterministic) -} -func (m *SkipMfaInitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SkipMfaInitRequest.Merge(m, src) -} -func (m *SkipMfaInitRequest) XXX_Size() int { - return xxx_messageInfo_SkipMfaInitRequest.Size(m) -} -func (m *SkipMfaInitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SkipMfaInitRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SkipMfaInitRequest proto.InternalMessageInfo - -func (m *SkipMfaInitRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -type BrowserInformation struct { - UserAgent string `protobuf:"bytes,1,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` - RemoteIp *IP `protobuf:"bytes,2,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"` - AcceptLanguage string `protobuf:"bytes,3,opt,name=accept_language,json=acceptLanguage,proto3" json:"accept_language,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BrowserInformation) Reset() { *m = BrowserInformation{} } -func (m *BrowserInformation) String() string { return proto.CompactTextString(m) } -func (*BrowserInformation) ProtoMessage() {} -func (*BrowserInformation) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{29} -} - -func (m *BrowserInformation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BrowserInformation.Unmarshal(m, b) -} -func (m *BrowserInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BrowserInformation.Marshal(b, m, deterministic) -} -func (m *BrowserInformation) XXX_Merge(src proto.Message) { - xxx_messageInfo_BrowserInformation.Merge(m, src) -} -func (m *BrowserInformation) XXX_Size() int { - return xxx_messageInfo_BrowserInformation.Size(m) -} -func (m *BrowserInformation) XXX_DiscardUnknown() { - xxx_messageInfo_BrowserInformation.DiscardUnknown(m) -} - -var xxx_messageInfo_BrowserInformation proto.InternalMessageInfo - -func (m *BrowserInformation) GetUserAgent() string { - if m != nil { - return m.UserAgent - } - return "" -} - -func (m *BrowserInformation) GetRemoteIp() *IP { - if m != nil { - return m.RemoteIp - } - return nil -} - -func (m *BrowserInformation) GetAcceptLanguage() string { - if m != nil { - return m.AcceptLanguage - } - return "" -} - -type IP struct { - V4 string `protobuf:"bytes,1,opt,name=V4,proto3" json:"V4,omitempty"` - V6 string `protobuf:"bytes,2,opt,name=V6,proto3" json:"V6,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IP) Reset() { *m = IP{} } -func (m *IP) String() string { return proto.CompactTextString(m) } -func (*IP) ProtoMessage() {} -func (*IP) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{30} -} - -func (m *IP) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IP.Unmarshal(m, b) -} -func (m *IP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IP.Marshal(b, m, deterministic) -} -func (m *IP) XXX_Merge(src proto.Message) { - xxx_messageInfo_IP.Merge(m, src) -} -func (m *IP) XXX_Size() int { - return xxx_messageInfo_IP.Size(m) -} -func (m *IP) XXX_DiscardUnknown() { - xxx_messageInfo_IP.DiscardUnknown(m) -} - -var xxx_messageInfo_IP proto.InternalMessageInfo - -func (m *IP) GetV4() string { - if m != nil { - return m.V4 - } - return "" -} - -func (m *IP) GetV6() string { - if m != nil { - return m.V6 - } - return "" -} - -type AuthRequestOIDC struct { - Scope []string `protobuf:"bytes,1,rep,name=scope,proto3" json:"scope,omitempty"` - ResponseType OIDCResponseType `protobuf:"varint,2,opt,name=response_type,json=responseType,proto3,enum=zitadel.auth.api.v1.OIDCResponseType" json:"response_type,omitempty"` - Nonce string `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` - CodeChallenge *CodeChallenge `protobuf:"bytes,4,opt,name=code_challenge,json=codeChallenge,proto3" json:"code_challenge,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AuthRequestOIDC) Reset() { *m = AuthRequestOIDC{} } -func (m *AuthRequestOIDC) String() string { return proto.CompactTextString(m) } -func (*AuthRequestOIDC) ProtoMessage() {} -func (*AuthRequestOIDC) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{31} -} - -func (m *AuthRequestOIDC) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuthRequestOIDC.Unmarshal(m, b) -} -func (m *AuthRequestOIDC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuthRequestOIDC.Marshal(b, m, deterministic) -} -func (m *AuthRequestOIDC) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuthRequestOIDC.Merge(m, src) -} -func (m *AuthRequestOIDC) XXX_Size() int { - return xxx_messageInfo_AuthRequestOIDC.Size(m) -} -func (m *AuthRequestOIDC) XXX_DiscardUnknown() { - xxx_messageInfo_AuthRequestOIDC.DiscardUnknown(m) -} - -var xxx_messageInfo_AuthRequestOIDC proto.InternalMessageInfo - -func (m *AuthRequestOIDC) GetScope() []string { - if m != nil { - return m.Scope - } - return nil -} - -func (m *AuthRequestOIDC) GetResponseType() OIDCResponseType { - if m != nil { - return m.ResponseType - } - return OIDCResponseType_OIDCRESPONSETYPE_CODE -} - -func (m *AuthRequestOIDC) GetNonce() string { - if m != nil { - return m.Nonce - } - return "" -} - -func (m *AuthRequestOIDC) GetCodeChallenge() *CodeChallenge { - if m != nil { - return m.CodeChallenge - } - return nil -} - -type CodeChallenge struct { - Challenge string `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` - Method CodeChallengeMethod `protobuf:"varint,2,opt,name=method,proto3,enum=zitadel.auth.api.v1.CodeChallengeMethod" json:"method,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CodeChallenge) Reset() { *m = CodeChallenge{} } -func (m *CodeChallenge) String() string { return proto.CompactTextString(m) } -func (*CodeChallenge) ProtoMessage() {} -func (*CodeChallenge) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{32} -} - -func (m *CodeChallenge) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CodeChallenge.Unmarshal(m, b) -} -func (m *CodeChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CodeChallenge.Marshal(b, m, deterministic) -} -func (m *CodeChallenge) XXX_Merge(src proto.Message) { - xxx_messageInfo_CodeChallenge.Merge(m, src) -} -func (m *CodeChallenge) XXX_Size() int { - return xxx_messageInfo_CodeChallenge.Size(m) -} -func (m *CodeChallenge) XXX_DiscardUnknown() { - xxx_messageInfo_CodeChallenge.DiscardUnknown(m) -} - -var xxx_messageInfo_CodeChallenge proto.InternalMessageInfo - -func (m *CodeChallenge) GetChallenge() string { - if m != nil { - return m.Challenge - } - return "" -} - -func (m *CodeChallenge) GetMethod() CodeChallengeMethod { - if m != nil { - return m.Method - } - return CodeChallengeMethod_CODECHALLENGEMETHOD_PLAIN -} - type UserID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *UserID) Reset() { *m = UserID{} } -func (m *UserID) String() string { return proto.CompactTextString(m) } -func (*UserID) ProtoMessage() {} +func (x *UserID) Reset() { + *x = UserID{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserID) ProtoMessage() {} + +func (x *UserID) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserID.ProtoReflect.Descriptor instead. func (*UserID) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{33} + return file_auth_proto_rawDescGZIP(), []int{2} } -func (m *UserID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserID.Unmarshal(m, b) -} -func (m *UserID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserID.Marshal(b, m, deterministic) -} -func (m *UserID) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserID.Merge(m, src) -} -func (m *UserID) XXX_Size() int { - return xxx_messageInfo_UserID.Size(m) -} -func (m *UserID) XXX_DiscardUnknown() { - xxx_messageInfo_UserID.DiscardUnknown(m) -} - -var xxx_messageInfo_UserID proto.InternalMessageInfo - -func (m *UserID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type UniqueUserRequest struct { - UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UniqueUserRequest) Reset() { *m = UniqueUserRequest{} } -func (m *UniqueUserRequest) String() string { return proto.CompactTextString(m) } -func (*UniqueUserRequest) ProtoMessage() {} -func (*UniqueUserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{34} -} - -func (m *UniqueUserRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UniqueUserRequest.Unmarshal(m, b) -} -func (m *UniqueUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UniqueUserRequest.Marshal(b, m, deterministic) -} -func (m *UniqueUserRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UniqueUserRequest.Merge(m, src) -} -func (m *UniqueUserRequest) XXX_Size() int { - return xxx_messageInfo_UniqueUserRequest.Size(m) -} -func (m *UniqueUserRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UniqueUserRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UniqueUserRequest proto.InternalMessageInfo - -func (m *UniqueUserRequest) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *UniqueUserRequest) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -type UniqueUserResponse struct { - IsUnique bool `protobuf:"varint,1,opt,name=is_unique,json=isUnique,proto3" json:"is_unique,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UniqueUserResponse) Reset() { *m = UniqueUserResponse{} } -func (m *UniqueUserResponse) String() string { return proto.CompactTextString(m) } -func (*UniqueUserResponse) ProtoMessage() {} -func (*UniqueUserResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{35} -} - -func (m *UniqueUserResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UniqueUserResponse.Unmarshal(m, b) -} -func (m *UniqueUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UniqueUserResponse.Marshal(b, m, deterministic) -} -func (m *UniqueUserResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UniqueUserResponse.Merge(m, src) -} -func (m *UniqueUserResponse) XXX_Size() int { - return xxx_messageInfo_UniqueUserResponse.Size(m) -} -func (m *UniqueUserResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UniqueUserResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UniqueUserResponse proto.InternalMessageInfo - -func (m *UniqueUserResponse) GetIsUnique() bool { - if m != nil { - return m.IsUnique - } - return false -} - -type RegisterUserRequest struct { - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,6,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=zitadel.auth.api.v1.Gender" json:"gender,omitempty"` - Password string `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"` - OrgId string `protobuf:"bytes,9,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegisterUserRequest) Reset() { *m = RegisterUserRequest{} } -func (m *RegisterUserRequest) String() string { return proto.CompactTextString(m) } -func (*RegisterUserRequest) ProtoMessage() {} -func (*RegisterUserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{36} -} - -func (m *RegisterUserRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RegisterUserRequest.Unmarshal(m, b) -} -func (m *RegisterUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RegisterUserRequest.Marshal(b, m, deterministic) -} -func (m *RegisterUserRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterUserRequest.Merge(m, src) -} -func (m *RegisterUserRequest) XXX_Size() int { - return xxx_messageInfo_RegisterUserRequest.Size(m) -} -func (m *RegisterUserRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterUserRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RegisterUserRequest proto.InternalMessageInfo - -func (m *RegisterUserRequest) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *RegisterUserRequest) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *RegisterUserRequest) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *RegisterUserRequest) GetNickName() string { - if m != nil { - return m.NickName - } - return "" -} - -func (m *RegisterUserRequest) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *RegisterUserRequest) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage - } - return "" -} - -func (m *RegisterUserRequest) GetGender() Gender { - if m != nil { - return m.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (m *RegisterUserRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -func (m *RegisterUserRequest) GetOrgId() string { - if m != nil { - return m.OrgId - } - return "" -} - -type RegisterUserExternalIDPRequest struct { - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,6,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=zitadel.auth.api.v1.Gender" json:"gender,omitempty"` - IdpProvider *IDPProvider `protobuf:"bytes,8,opt,name=idp_provider,json=idpProvider,proto3" json:"idp_provider,omitempty"` - OrgId string `protobuf:"bytes,9,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegisterUserExternalIDPRequest) Reset() { *m = RegisterUserExternalIDPRequest{} } -func (m *RegisterUserExternalIDPRequest) String() string { return proto.CompactTextString(m) } -func (*RegisterUserExternalIDPRequest) ProtoMessage() {} -func (*RegisterUserExternalIDPRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{37} -} - -func (m *RegisterUserExternalIDPRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RegisterUserExternalIDPRequest.Unmarshal(m, b) -} -func (m *RegisterUserExternalIDPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RegisterUserExternalIDPRequest.Marshal(b, m, deterministic) -} -func (m *RegisterUserExternalIDPRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterUserExternalIDPRequest.Merge(m, src) -} -func (m *RegisterUserExternalIDPRequest) XXX_Size() int { - return xxx_messageInfo_RegisterUserExternalIDPRequest.Size(m) -} -func (m *RegisterUserExternalIDPRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterUserExternalIDPRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RegisterUserExternalIDPRequest proto.InternalMessageInfo - -func (m *RegisterUserExternalIDPRequest) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *RegisterUserExternalIDPRequest) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *RegisterUserExternalIDPRequest) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *RegisterUserExternalIDPRequest) GetNickName() string { - if m != nil { - return m.NickName - } - return "" -} - -func (m *RegisterUserExternalIDPRequest) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *RegisterUserExternalIDPRequest) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage - } - return "" -} - -func (m *RegisterUserExternalIDPRequest) GetGender() Gender { - if m != nil { - return m.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (m *RegisterUserExternalIDPRequest) GetIdpProvider() *IDPProvider { - if m != nil { - return m.IdpProvider - } - return nil -} - -func (m *RegisterUserExternalIDPRequest) GetOrgId() string { - if m != nil { - return m.OrgId - } - return "" -} - -type IDPProvider struct { - Provider string `protobuf:"bytes,8,opt,name=provider,proto3" json:"provider,omitempty"` - ExternalIdpID string `protobuf:"bytes,9,opt,name=externalIdpID,proto3" json:"externalIdpID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IDPProvider) Reset() { *m = IDPProvider{} } -func (m *IDPProvider) String() string { return proto.CompactTextString(m) } -func (*IDPProvider) ProtoMessage() {} -func (*IDPProvider) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{38} -} - -func (m *IDPProvider) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IDPProvider.Unmarshal(m, b) -} -func (m *IDPProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IDPProvider.Marshal(b, m, deterministic) -} -func (m *IDPProvider) XXX_Merge(src proto.Message) { - xxx_messageInfo_IDPProvider.Merge(m, src) -} -func (m *IDPProvider) XXX_Size() int { - return xxx_messageInfo_IDPProvider.Size(m) -} -func (m *IDPProvider) XXX_DiscardUnknown() { - xxx_messageInfo_IDPProvider.DiscardUnknown(m) -} - -var xxx_messageInfo_IDPProvider proto.InternalMessageInfo - -func (m *IDPProvider) GetProvider() string { - if m != nil { - return m.Provider - } - return "" -} - -func (m *IDPProvider) GetExternalIdpID() string { - if m != nil { - return m.ExternalIdpID +func (x *UserID) GetId() string { + if x != nil { + return x.Id } return "" } type User struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` State UserState `protobuf:"varint,2,opt,name=state,proto3,enum=zitadel.auth.api.v1.UserState" json:"state,omitempty"` CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` @@ -3143,3056 +645,2774 @@ type User struct { Region string `protobuf:"bytes,22,opt,name=region,proto3" json:"region,omitempty"` StreetAddress string `protobuf:"bytes,23,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` PasswordChangeRequired bool `protobuf:"varint,24,opt,name=password_change_required,json=passwordChangeRequired,proto3" json:"password_change_required,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *User) Reset() { *m = User{} } -func (m *User) String() string { return proto.CompactTextString(m) } -func (*User) ProtoMessage() {} +func (x *User) Reset() { + *x = User{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use User.ProtoReflect.Descriptor instead. func (*User) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{39} + return file_auth_proto_rawDescGZIP(), []int{3} } -func (m *User) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_User.Unmarshal(m, b) -} -func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_User.Marshal(b, m, deterministic) -} -func (m *User) XXX_Merge(src proto.Message) { - xxx_messageInfo_User.Merge(m, src) -} -func (m *User) XXX_Size() int { - return xxx_messageInfo_User.Size(m) -} -func (m *User) XXX_DiscardUnknown() { - xxx_messageInfo_User.DiscardUnknown(m) -} - -var xxx_messageInfo_User proto.InternalMessageInfo - -func (m *User) GetId() string { - if m != nil { - return m.Id +func (x *User) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *User) GetState() UserState { - if m != nil { - return m.State +func (x *User) GetState() UserState { + if x != nil { + return x.State } return UserState_USERSTATE_UNSPECIEFIED } -func (m *User) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate +func (x *User) GetCreationDate() *timestamp.Timestamp { + if x != nil { + return x.CreationDate } return nil } -func (m *User) GetActivationDate() *timestamp.Timestamp { - if m != nil { - return m.ActivationDate +func (x *User) GetActivationDate() *timestamp.Timestamp { + if x != nil { + return x.ActivationDate } return nil } -func (m *User) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate +func (x *User) GetChangeDate() *timestamp.Timestamp { + if x != nil { + return x.ChangeDate } return nil } -func (m *User) GetLastLogin() *timestamp.Timestamp { - if m != nil { - return m.LastLogin +func (x *User) GetLastLogin() *timestamp.Timestamp { + if x != nil { + return x.LastLogin } return nil } -func (m *User) GetPasswordChanged() *timestamp.Timestamp { - if m != nil { - return m.PasswordChanged +func (x *User) GetPasswordChanged() *timestamp.Timestamp { + if x != nil { + return x.PasswordChanged } return nil } -func (m *User) GetUserName() string { - if m != nil { - return m.UserName +func (x *User) GetUserName() string { + if x != nil { + return x.UserName } return "" } -func (m *User) GetFirstName() string { - if m != nil { - return m.FirstName +func (x *User) GetFirstName() string { + if x != nil { + return x.FirstName } return "" } -func (m *User) GetLastName() string { - if m != nil { - return m.LastName +func (x *User) GetLastName() string { + if x != nil { + return x.LastName } return "" } -func (m *User) GetNickName() string { - if m != nil { - return m.NickName +func (x *User) GetNickName() string { + if x != nil { + return x.NickName } return "" } -func (m *User) GetDisplayName() string { - if m != nil { - return m.DisplayName +func (x *User) GetDisplayName() string { + if x != nil { + return x.DisplayName } return "" } -func (m *User) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage +func (x *User) GetPreferredLanguage() string { + if x != nil { + return x.PreferredLanguage } return "" } -func (m *User) GetGender() Gender { - if m != nil { - return m.Gender +func (x *User) GetGender() Gender { + if x != nil { + return x.Gender } return Gender_GENDER_UNSPECIFIED } -func (m *User) GetEmail() string { - if m != nil { - return m.Email +func (x *User) GetEmail() string { + if x != nil { + return x.Email } return "" } -func (m *User) GetIsEmailVerified() bool { - if m != nil { - return m.IsEmailVerified +func (x *User) GetIsEmailVerified() bool { + if x != nil { + return x.IsEmailVerified } return false } -func (m *User) GetPhone() string { - if m != nil { - return m.Phone +func (x *User) GetPhone() string { + if x != nil { + return x.Phone } return "" } -func (m *User) GetIsPhoneVerified() bool { - if m != nil { - return m.IsPhoneVerified +func (x *User) GetIsPhoneVerified() bool { + if x != nil { + return x.IsPhoneVerified } return false } -func (m *User) GetCountry() string { - if m != nil { - return m.Country +func (x *User) GetCountry() string { + if x != nil { + return x.Country } return "" } -func (m *User) GetLocality() string { - if m != nil { - return m.Locality +func (x *User) GetLocality() string { + if x != nil { + return x.Locality } return "" } -func (m *User) GetPostalCode() string { - if m != nil { - return m.PostalCode +func (x *User) GetPostalCode() string { + if x != nil { + return x.PostalCode } return "" } -func (m *User) GetRegion() string { - if m != nil { - return m.Region +func (x *User) GetRegion() string { + if x != nil { + return x.Region } return "" } -func (m *User) GetStreetAddress() string { - if m != nil { - return m.StreetAddress +func (x *User) GetStreetAddress() string { + if x != nil { + return x.StreetAddress } return "" } -func (m *User) GetPasswordChangeRequired() bool { - if m != nil { - return m.PasswordChangeRequired +func (x *User) GetPasswordChangeRequired() bool { + if x != nil { + return x.PasswordChangeRequired } return false } type UserProfile struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,5,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,7,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=zitadel.auth.api.v1.Gender" json:"gender,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` + FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + NickName string `protobuf:"bytes,5,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` + DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + PreferredLanguage string `protobuf:"bytes,7,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` + Gender Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=zitadel.auth.api.v1.Gender" json:"gender,omitempty"` } -func (m *UserProfile) Reset() { *m = UserProfile{} } -func (m *UserProfile) String() string { return proto.CompactTextString(m) } -func (*UserProfile) ProtoMessage() {} +func (x *UserProfile) Reset() { + *x = UserProfile{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserProfile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserProfile) ProtoMessage() {} + +func (x *UserProfile) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserProfile.ProtoReflect.Descriptor instead. func (*UserProfile) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{40} + return file_auth_proto_rawDescGZIP(), []int{4} } -func (m *UserProfile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserProfile.Unmarshal(m, b) -} -func (m *UserProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserProfile.Marshal(b, m, deterministic) -} -func (m *UserProfile) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserProfile.Merge(m, src) -} -func (m *UserProfile) XXX_Size() int { - return xxx_messageInfo_UserProfile.Size(m) -} -func (m *UserProfile) XXX_DiscardUnknown() { - xxx_messageInfo_UserProfile.DiscardUnknown(m) -} - -var xxx_messageInfo_UserProfile proto.InternalMessageInfo - -func (m *UserProfile) GetId() string { - if m != nil { - return m.Id +func (x *UserProfile) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *UserProfile) GetUserName() string { - if m != nil { - return m.UserName +func (x *UserProfile) GetUserName() string { + if x != nil { + return x.UserName } return "" } -func (m *UserProfile) GetFirstName() string { - if m != nil { - return m.FirstName +func (x *UserProfile) GetFirstName() string { + if x != nil { + return x.FirstName } return "" } -func (m *UserProfile) GetLastName() string { - if m != nil { - return m.LastName +func (x *UserProfile) GetLastName() string { + if x != nil { + return x.LastName } return "" } -func (m *UserProfile) GetNickName() string { - if m != nil { - return m.NickName +func (x *UserProfile) GetNickName() string { + if x != nil { + return x.NickName } return "" } -func (m *UserProfile) GetDisplayName() string { - if m != nil { - return m.DisplayName +func (x *UserProfile) GetDisplayName() string { + if x != nil { + return x.DisplayName } return "" } -func (m *UserProfile) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage +func (x *UserProfile) GetPreferredLanguage() string { + if x != nil { + return x.PreferredLanguage } return "" } -func (m *UserProfile) GetGender() Gender { - if m != nil { - return m.Gender +func (x *UserProfile) GetGender() Gender { + if x != nil { + return x.Gender } return Gender_GENDER_UNSPECIFIED } type UpdateUserProfileRequest struct { - FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,3,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,5,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=zitadel.auth.api.v1.Gender" json:"gender,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + NickName string `protobuf:"bytes,3,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` + DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + PreferredLanguage string `protobuf:"bytes,5,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` + Gender Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=zitadel.auth.api.v1.Gender" json:"gender,omitempty"` } -func (m *UpdateUserProfileRequest) Reset() { *m = UpdateUserProfileRequest{} } -func (m *UpdateUserProfileRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateUserProfileRequest) ProtoMessage() {} +func (x *UpdateUserProfileRequest) Reset() { + *x = UpdateUserProfileRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserProfileRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserProfileRequest) ProtoMessage() {} + +func (x *UpdateUserProfileRequest) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateUserProfileRequest.ProtoReflect.Descriptor instead. func (*UpdateUserProfileRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{41} + return file_auth_proto_rawDescGZIP(), []int{5} } -func (m *UpdateUserProfileRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateUserProfileRequest.Unmarshal(m, b) -} -func (m *UpdateUserProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateUserProfileRequest.Marshal(b, m, deterministic) -} -func (m *UpdateUserProfileRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateUserProfileRequest.Merge(m, src) -} -func (m *UpdateUserProfileRequest) XXX_Size() int { - return xxx_messageInfo_UpdateUserProfileRequest.Size(m) -} -func (m *UpdateUserProfileRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateUserProfileRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateUserProfileRequest proto.InternalMessageInfo - -func (m *UpdateUserProfileRequest) GetFirstName() string { - if m != nil { - return m.FirstName +func (x *UpdateUserProfileRequest) GetFirstName() string { + if x != nil { + return x.FirstName } return "" } -func (m *UpdateUserProfileRequest) GetLastName() string { - if m != nil { - return m.LastName +func (x *UpdateUserProfileRequest) GetLastName() string { + if x != nil { + return x.LastName } return "" } -func (m *UpdateUserProfileRequest) GetNickName() string { - if m != nil { - return m.NickName +func (x *UpdateUserProfileRequest) GetNickName() string { + if x != nil { + return x.NickName } return "" } -func (m *UpdateUserProfileRequest) GetDisplayName() string { - if m != nil { - return m.DisplayName +func (x *UpdateUserProfileRequest) GetDisplayName() string { + if x != nil { + return x.DisplayName } return "" } -func (m *UpdateUserProfileRequest) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage +func (x *UpdateUserProfileRequest) GetPreferredLanguage() string { + if x != nil { + return x.PreferredLanguage } return "" } -func (m *UpdateUserProfileRequest) GetGender() Gender { - if m != nil { - return m.Gender +func (x *UpdateUserProfileRequest) GetGender() Gender { + if x != nil { + return x.Gender } return Gender_GENDER_UNSPECIFIED } type UserEmail struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,3,opt,name=isEmailVerified,proto3" json:"isEmailVerified,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + IsEmailVerified bool `protobuf:"varint,3,opt,name=isEmailVerified,proto3" json:"isEmailVerified,omitempty"` } -func (m *UserEmail) Reset() { *m = UserEmail{} } -func (m *UserEmail) String() string { return proto.CompactTextString(m) } -func (*UserEmail) ProtoMessage() {} +func (x *UserEmail) Reset() { + *x = UserEmail{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserEmail) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserEmail) ProtoMessage() {} + +func (x *UserEmail) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserEmail.ProtoReflect.Descriptor instead. func (*UserEmail) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{42} + return file_auth_proto_rawDescGZIP(), []int{6} } -func (m *UserEmail) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserEmail.Unmarshal(m, b) -} -func (m *UserEmail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserEmail.Marshal(b, m, deterministic) -} -func (m *UserEmail) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserEmail.Merge(m, src) -} -func (m *UserEmail) XXX_Size() int { - return xxx_messageInfo_UserEmail.Size(m) -} -func (m *UserEmail) XXX_DiscardUnknown() { - xxx_messageInfo_UserEmail.DiscardUnknown(m) -} - -var xxx_messageInfo_UserEmail proto.InternalMessageInfo - -func (m *UserEmail) GetId() string { - if m != nil { - return m.Id +func (x *UserEmail) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *UserEmail) GetEmail() string { - if m != nil { - return m.Email +func (x *UserEmail) GetEmail() string { + if x != nil { + return x.Email } return "" } -func (m *UserEmail) GetIsEmailVerified() bool { - if m != nil { - return m.IsEmailVerified +func (x *UserEmail) GetIsEmailVerified() bool { + if x != nil { + return x.IsEmailVerified } return false } type VerifyMyUserEmailRequest struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` } -func (m *VerifyMyUserEmailRequest) Reset() { *m = VerifyMyUserEmailRequest{} } -func (m *VerifyMyUserEmailRequest) String() string { return proto.CompactTextString(m) } -func (*VerifyMyUserEmailRequest) ProtoMessage() {} +func (x *VerifyMyUserEmailRequest) Reset() { + *x = VerifyMyUserEmailRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyMyUserEmailRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyMyUserEmailRequest) ProtoMessage() {} + +func (x *VerifyMyUserEmailRequest) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyMyUserEmailRequest.ProtoReflect.Descriptor instead. func (*VerifyMyUserEmailRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{43} + return file_auth_proto_rawDescGZIP(), []int{7} } -func (m *VerifyMyUserEmailRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyMyUserEmailRequest.Unmarshal(m, b) -} -func (m *VerifyMyUserEmailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyMyUserEmailRequest.Marshal(b, m, deterministic) -} -func (m *VerifyMyUserEmailRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyMyUserEmailRequest.Merge(m, src) -} -func (m *VerifyMyUserEmailRequest) XXX_Size() int { - return xxx_messageInfo_VerifyMyUserEmailRequest.Size(m) -} -func (m *VerifyMyUserEmailRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyMyUserEmailRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VerifyMyUserEmailRequest proto.InternalMessageInfo - -func (m *VerifyMyUserEmailRequest) GetCode() string { - if m != nil { - return m.Code +func (x *VerifyMyUserEmailRequest) GetCode() string { + if x != nil { + return x.Code } return "" } type VerifyUserEmailRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` } -func (m *VerifyUserEmailRequest) Reset() { *m = VerifyUserEmailRequest{} } -func (m *VerifyUserEmailRequest) String() string { return proto.CompactTextString(m) } -func (*VerifyUserEmailRequest) ProtoMessage() {} +func (x *VerifyUserEmailRequest) Reset() { + *x = VerifyUserEmailRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyUserEmailRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyUserEmailRequest) ProtoMessage() {} + +func (x *VerifyUserEmailRequest) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyUserEmailRequest.ProtoReflect.Descriptor instead. func (*VerifyUserEmailRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{44} + return file_auth_proto_rawDescGZIP(), []int{8} } -func (m *VerifyUserEmailRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyUserEmailRequest.Unmarshal(m, b) -} -func (m *VerifyUserEmailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyUserEmailRequest.Marshal(b, m, deterministic) -} -func (m *VerifyUserEmailRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyUserEmailRequest.Merge(m, src) -} -func (m *VerifyUserEmailRequest) XXX_Size() int { - return xxx_messageInfo_VerifyUserEmailRequest.Size(m) -} -func (m *VerifyUserEmailRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyUserEmailRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VerifyUserEmailRequest proto.InternalMessageInfo - -func (m *VerifyUserEmailRequest) GetId() string { - if m != nil { - return m.Id +func (x *VerifyUserEmailRequest) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *VerifyUserEmailRequest) GetCode() string { - if m != nil { - return m.Code +func (x *VerifyUserEmailRequest) GetCode() string { + if x != nil { + return x.Code } return "" } type UpdateUserEmailRequest struct { - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` } -func (m *UpdateUserEmailRequest) Reset() { *m = UpdateUserEmailRequest{} } -func (m *UpdateUserEmailRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateUserEmailRequest) ProtoMessage() {} +func (x *UpdateUserEmailRequest) Reset() { + *x = UpdateUserEmailRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserEmailRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserEmailRequest) ProtoMessage() {} + +func (x *UpdateUserEmailRequest) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateUserEmailRequest.ProtoReflect.Descriptor instead. func (*UpdateUserEmailRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{45} + return file_auth_proto_rawDescGZIP(), []int{9} } -func (m *UpdateUserEmailRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateUserEmailRequest.Unmarshal(m, b) -} -func (m *UpdateUserEmailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateUserEmailRequest.Marshal(b, m, deterministic) -} -func (m *UpdateUserEmailRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateUserEmailRequest.Merge(m, src) -} -func (m *UpdateUserEmailRequest) XXX_Size() int { - return xxx_messageInfo_UpdateUserEmailRequest.Size(m) -} -func (m *UpdateUserEmailRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateUserEmailRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateUserEmailRequest proto.InternalMessageInfo - -func (m *UpdateUserEmailRequest) GetEmail() string { - if m != nil { - return m.Email +func (x *UpdateUserEmailRequest) GetEmail() string { + if x != nil { + return x.Email } return "" } type UserPhone struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,3,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` + IsPhoneVerified bool `protobuf:"varint,3,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` } -func (m *UserPhone) Reset() { *m = UserPhone{} } -func (m *UserPhone) String() string { return proto.CompactTextString(m) } -func (*UserPhone) ProtoMessage() {} +func (x *UserPhone) Reset() { + *x = UserPhone{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserPhone) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserPhone) ProtoMessage() {} + +func (x *UserPhone) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserPhone.ProtoReflect.Descriptor instead. func (*UserPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{46} + return file_auth_proto_rawDescGZIP(), []int{10} } -func (m *UserPhone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserPhone.Unmarshal(m, b) -} -func (m *UserPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserPhone.Marshal(b, m, deterministic) -} -func (m *UserPhone) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserPhone.Merge(m, src) -} -func (m *UserPhone) XXX_Size() int { - return xxx_messageInfo_UserPhone.Size(m) -} -func (m *UserPhone) XXX_DiscardUnknown() { - xxx_messageInfo_UserPhone.DiscardUnknown(m) -} - -var xxx_messageInfo_UserPhone proto.InternalMessageInfo - -func (m *UserPhone) GetId() string { - if m != nil { - return m.Id +func (x *UserPhone) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *UserPhone) GetPhone() string { - if m != nil { - return m.Phone +func (x *UserPhone) GetPhone() string { + if x != nil { + return x.Phone } return "" } -func (m *UserPhone) GetIsPhoneVerified() bool { - if m != nil { - return m.IsPhoneVerified +func (x *UserPhone) GetIsPhoneVerified() bool { + if x != nil { + return x.IsPhoneVerified } return false } type UpdateUserPhoneRequest struct { - Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` } -func (m *UpdateUserPhoneRequest) Reset() { *m = UpdateUserPhoneRequest{} } -func (m *UpdateUserPhoneRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateUserPhoneRequest) ProtoMessage() {} +func (x *UpdateUserPhoneRequest) Reset() { + *x = UpdateUserPhoneRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserPhoneRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserPhoneRequest) ProtoMessage() {} + +func (x *UpdateUserPhoneRequest) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateUserPhoneRequest.ProtoReflect.Descriptor instead. func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{47} + return file_auth_proto_rawDescGZIP(), []int{11} } -func (m *UpdateUserPhoneRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateUserPhoneRequest.Unmarshal(m, b) -} -func (m *UpdateUserPhoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateUserPhoneRequest.Marshal(b, m, deterministic) -} -func (m *UpdateUserPhoneRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateUserPhoneRequest.Merge(m, src) -} -func (m *UpdateUserPhoneRequest) XXX_Size() int { - return xxx_messageInfo_UpdateUserPhoneRequest.Size(m) -} -func (m *UpdateUserPhoneRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateUserPhoneRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateUserPhoneRequest proto.InternalMessageInfo - -func (m *UpdateUserPhoneRequest) GetPhone() string { - if m != nil { - return m.Phone +func (x *UpdateUserPhoneRequest) GetPhone() string { + if x != nil { + return x.Phone } return "" } type VerifyUserPhoneRequest struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` } -func (m *VerifyUserPhoneRequest) Reset() { *m = VerifyUserPhoneRequest{} } -func (m *VerifyUserPhoneRequest) String() string { return proto.CompactTextString(m) } -func (*VerifyUserPhoneRequest) ProtoMessage() {} +func (x *VerifyUserPhoneRequest) Reset() { + *x = VerifyUserPhoneRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyUserPhoneRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyUserPhoneRequest) ProtoMessage() {} + +func (x *VerifyUserPhoneRequest) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyUserPhoneRequest.ProtoReflect.Descriptor instead. func (*VerifyUserPhoneRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{48} + return file_auth_proto_rawDescGZIP(), []int{12} } -func (m *VerifyUserPhoneRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyUserPhoneRequest.Unmarshal(m, b) -} -func (m *VerifyUserPhoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyUserPhoneRequest.Marshal(b, m, deterministic) -} -func (m *VerifyUserPhoneRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyUserPhoneRequest.Merge(m, src) -} -func (m *VerifyUserPhoneRequest) XXX_Size() int { - return xxx_messageInfo_VerifyUserPhoneRequest.Size(m) -} -func (m *VerifyUserPhoneRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyUserPhoneRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VerifyUserPhoneRequest proto.InternalMessageInfo - -func (m *VerifyUserPhoneRequest) GetCode() string { - if m != nil { - return m.Code +func (x *VerifyUserPhoneRequest) GetCode() string { + if x != nil { + return x.Code } return "" } type UserAddress struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,3,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,6,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"` + Locality string `protobuf:"bytes,3,opt,name=locality,proto3" json:"locality,omitempty"` + PostalCode string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` + Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"` + StreetAddress string `protobuf:"bytes,6,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` } -func (m *UserAddress) Reset() { *m = UserAddress{} } -func (m *UserAddress) String() string { return proto.CompactTextString(m) } -func (*UserAddress) ProtoMessage() {} +func (x *UserAddress) Reset() { + *x = UserAddress{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserAddress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserAddress) ProtoMessage() {} + +func (x *UserAddress) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserAddress.ProtoReflect.Descriptor instead. func (*UserAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{49} + return file_auth_proto_rawDescGZIP(), []int{13} } -func (m *UserAddress) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserAddress.Unmarshal(m, b) -} -func (m *UserAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserAddress.Marshal(b, m, deterministic) -} -func (m *UserAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserAddress.Merge(m, src) -} -func (m *UserAddress) XXX_Size() int { - return xxx_messageInfo_UserAddress.Size(m) -} -func (m *UserAddress) XXX_DiscardUnknown() { - xxx_messageInfo_UserAddress.DiscardUnknown(m) -} - -var xxx_messageInfo_UserAddress proto.InternalMessageInfo - -func (m *UserAddress) GetId() string { - if m != nil { - return m.Id +func (x *UserAddress) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *UserAddress) GetCountry() string { - if m != nil { - return m.Country +func (x *UserAddress) GetCountry() string { + if x != nil { + return x.Country } return "" } -func (m *UserAddress) GetLocality() string { - if m != nil { - return m.Locality +func (x *UserAddress) GetLocality() string { + if x != nil { + return x.Locality } return "" } -func (m *UserAddress) GetPostalCode() string { - if m != nil { - return m.PostalCode +func (x *UserAddress) GetPostalCode() string { + if x != nil { + return x.PostalCode } return "" } -func (m *UserAddress) GetRegion() string { - if m != nil { - return m.Region +func (x *UserAddress) GetRegion() string { + if x != nil { + return x.Region } return "" } -func (m *UserAddress) GetStreetAddress() string { - if m != nil { - return m.StreetAddress +func (x *UserAddress) GetStreetAddress() string { + if x != nil { + return x.StreetAddress } return "" } type UpdateUserAddressRequest struct { - Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,2,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,3,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,5,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` + Locality string `protobuf:"bytes,2,opt,name=locality,proto3" json:"locality,omitempty"` + PostalCode string `protobuf:"bytes,3,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` + Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` + StreetAddress string `protobuf:"bytes,5,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` } -func (m *UpdateUserAddressRequest) Reset() { *m = UpdateUserAddressRequest{} } -func (m *UpdateUserAddressRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateUserAddressRequest) ProtoMessage() {} +func (x *UpdateUserAddressRequest) Reset() { + *x = UpdateUserAddressRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserAddressRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserAddressRequest) ProtoMessage() {} + +func (x *UpdateUserAddressRequest) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateUserAddressRequest.ProtoReflect.Descriptor instead. func (*UpdateUserAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{50} + return file_auth_proto_rawDescGZIP(), []int{14} } -func (m *UpdateUserAddressRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateUserAddressRequest.Unmarshal(m, b) -} -func (m *UpdateUserAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateUserAddressRequest.Marshal(b, m, deterministic) -} -func (m *UpdateUserAddressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateUserAddressRequest.Merge(m, src) -} -func (m *UpdateUserAddressRequest) XXX_Size() int { - return xxx_messageInfo_UpdateUserAddressRequest.Size(m) -} -func (m *UpdateUserAddressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateUserAddressRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateUserAddressRequest proto.InternalMessageInfo - -func (m *UpdateUserAddressRequest) GetCountry() string { - if m != nil { - return m.Country +func (x *UpdateUserAddressRequest) GetCountry() string { + if x != nil { + return x.Country } return "" } -func (m *UpdateUserAddressRequest) GetLocality() string { - if m != nil { - return m.Locality +func (x *UpdateUserAddressRequest) GetLocality() string { + if x != nil { + return x.Locality } return "" } -func (m *UpdateUserAddressRequest) GetPostalCode() string { - if m != nil { - return m.PostalCode +func (x *UpdateUserAddressRequest) GetPostalCode() string { + if x != nil { + return x.PostalCode } return "" } -func (m *UpdateUserAddressRequest) GetRegion() string { - if m != nil { - return m.Region +func (x *UpdateUserAddressRequest) GetRegion() string { + if x != nil { + return x.Region } return "" } -func (m *UpdateUserAddressRequest) GetStreetAddress() string { - if m != nil { - return m.StreetAddress +func (x *UpdateUserAddressRequest) GetStreetAddress() string { + if x != nil { + return x.StreetAddress } return "" } type PasswordID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *PasswordID) Reset() { *m = PasswordID{} } -func (m *PasswordID) String() string { return proto.CompactTextString(m) } -func (*PasswordID) ProtoMessage() {} +func (x *PasswordID) Reset() { + *x = PasswordID{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PasswordID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PasswordID) ProtoMessage() {} + +func (x *PasswordID) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PasswordID.ProtoReflect.Descriptor instead. func (*PasswordID) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{51} + return file_auth_proto_rawDescGZIP(), []int{15} } -func (m *PasswordID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordID.Unmarshal(m, b) -} -func (m *PasswordID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordID.Marshal(b, m, deterministic) -} -func (m *PasswordID) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordID.Merge(m, src) -} -func (m *PasswordID) XXX_Size() int { - return xxx_messageInfo_PasswordID.Size(m) -} -func (m *PasswordID) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordID.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordID proto.InternalMessageInfo - -func (m *PasswordID) GetId() string { - if m != nil { - return m.Id +func (x *PasswordID) GetId() string { + if x != nil { + return x.Id } return "" } type PasswordRequest struct { - Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` } -func (m *PasswordRequest) Reset() { *m = PasswordRequest{} } -func (m *PasswordRequest) String() string { return proto.CompactTextString(m) } -func (*PasswordRequest) ProtoMessage() {} +func (x *PasswordRequest) Reset() { + *x = PasswordRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PasswordRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PasswordRequest) ProtoMessage() {} + +func (x *PasswordRequest) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PasswordRequest.ProtoReflect.Descriptor instead. func (*PasswordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{52} + return file_auth_proto_rawDescGZIP(), []int{16} } -func (m *PasswordRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordRequest.Unmarshal(m, b) -} -func (m *PasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordRequest.Marshal(b, m, deterministic) -} -func (m *PasswordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordRequest.Merge(m, src) -} -func (m *PasswordRequest) XXX_Size() int { - return xxx_messageInfo_PasswordRequest.Size(m) -} -func (m *PasswordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordRequest proto.InternalMessageInfo - -func (m *PasswordRequest) GetPassword() string { - if m != nil { - return m.Password +func (x *PasswordRequest) GetPassword() string { + if x != nil { + return x.Password } return "" } -type ResetPasswordRequest struct { - UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Type NotificationType `protobuf:"varint,2,opt,name=type,proto3,enum=zitadel.auth.api.v1.NotificationType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResetPasswordRequest) Reset() { *m = ResetPasswordRequest{} } -func (m *ResetPasswordRequest) String() string { return proto.CompactTextString(m) } -func (*ResetPasswordRequest) ProtoMessage() {} -func (*ResetPasswordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{53} -} - -func (m *ResetPasswordRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResetPasswordRequest.Unmarshal(m, b) -} -func (m *ResetPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResetPasswordRequest.Marshal(b, m, deterministic) -} -func (m *ResetPasswordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetPasswordRequest.Merge(m, src) -} -func (m *ResetPasswordRequest) XXX_Size() int { - return xxx_messageInfo_ResetPasswordRequest.Size(m) -} -func (m *ResetPasswordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResetPasswordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ResetPasswordRequest proto.InternalMessageInfo - -func (m *ResetPasswordRequest) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *ResetPasswordRequest) GetType() NotificationType { - if m != nil { - return m.Type - } - return NotificationType_NOTIFICATIONTYPE_EMAIL -} - -type ResetPassword struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` - NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResetPassword) Reset() { *m = ResetPassword{} } -func (m *ResetPassword) String() string { return proto.CompactTextString(m) } -func (*ResetPassword) ProtoMessage() {} -func (*ResetPassword) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{54} -} - -func (m *ResetPassword) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResetPassword.Unmarshal(m, b) -} -func (m *ResetPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResetPassword.Marshal(b, m, deterministic) -} -func (m *ResetPassword) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetPassword.Merge(m, src) -} -func (m *ResetPassword) XXX_Size() int { - return xxx_messageInfo_ResetPassword.Size(m) -} -func (m *ResetPassword) XXX_DiscardUnknown() { - xxx_messageInfo_ResetPassword.DiscardUnknown(m) -} - -var xxx_messageInfo_ResetPassword proto.InternalMessageInfo - -func (m *ResetPassword) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ResetPassword) GetCode() string { - if m != nil { - return m.Code - } - return "" -} - -func (m *ResetPassword) GetNewPassword() string { - if m != nil { - return m.NewPassword - } - return "" -} - -type SetPasswordNotificationRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type NotificationType `protobuf:"varint,2,opt,name=type,proto3,enum=zitadel.auth.api.v1.NotificationType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetPasswordNotificationRequest) Reset() { *m = SetPasswordNotificationRequest{} } -func (m *SetPasswordNotificationRequest) String() string { return proto.CompactTextString(m) } -func (*SetPasswordNotificationRequest) ProtoMessage() {} -func (*SetPasswordNotificationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{55} -} - -func (m *SetPasswordNotificationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetPasswordNotificationRequest.Unmarshal(m, b) -} -func (m *SetPasswordNotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetPasswordNotificationRequest.Marshal(b, m, deterministic) -} -func (m *SetPasswordNotificationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetPasswordNotificationRequest.Merge(m, src) -} -func (m *SetPasswordNotificationRequest) XXX_Size() int { - return xxx_messageInfo_SetPasswordNotificationRequest.Size(m) -} -func (m *SetPasswordNotificationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetPasswordNotificationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SetPasswordNotificationRequest proto.InternalMessageInfo - -func (m *SetPasswordNotificationRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *SetPasswordNotificationRequest) GetType() NotificationType { - if m != nil { - return m.Type - } - return NotificationType_NOTIFICATIONTYPE_EMAIL -} - type PasswordChange struct { - OldPassword string `protobuf:"bytes,1,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` - NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OldPassword string `protobuf:"bytes,1,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` + NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` } -func (m *PasswordChange) Reset() { *m = PasswordChange{} } -func (m *PasswordChange) String() string { return proto.CompactTextString(m) } -func (*PasswordChange) ProtoMessage() {} +func (x *PasswordChange) Reset() { + *x = PasswordChange{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PasswordChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PasswordChange) ProtoMessage() {} + +func (x *PasswordChange) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PasswordChange.ProtoReflect.Descriptor instead. func (*PasswordChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{56} + return file_auth_proto_rawDescGZIP(), []int{17} } -func (m *PasswordChange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordChange.Unmarshal(m, b) -} -func (m *PasswordChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordChange.Marshal(b, m, deterministic) -} -func (m *PasswordChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordChange.Merge(m, src) -} -func (m *PasswordChange) XXX_Size() int { - return xxx_messageInfo_PasswordChange.Size(m) -} -func (m *PasswordChange) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordChange.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordChange proto.InternalMessageInfo - -func (m *PasswordChange) GetOldPassword() string { - if m != nil { - return m.OldPassword +func (x *PasswordChange) GetOldPassword() string { + if x != nil { + return x.OldPassword } return "" } -func (m *PasswordChange) GetNewPassword() string { - if m != nil { - return m.NewPassword +func (x *PasswordChange) GetNewPassword() string { + if x != nil { + return x.NewPassword } return "" } type VerifyMfaOtp struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` } -func (m *VerifyMfaOtp) Reset() { *m = VerifyMfaOtp{} } -func (m *VerifyMfaOtp) String() string { return proto.CompactTextString(m) } -func (*VerifyMfaOtp) ProtoMessage() {} +func (x *VerifyMfaOtp) Reset() { + *x = VerifyMfaOtp{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyMfaOtp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyMfaOtp) ProtoMessage() {} + +func (x *VerifyMfaOtp) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyMfaOtp.ProtoReflect.Descriptor instead. func (*VerifyMfaOtp) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{57} + return file_auth_proto_rawDescGZIP(), []int{18} } -func (m *VerifyMfaOtp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyMfaOtp.Unmarshal(m, b) -} -func (m *VerifyMfaOtp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyMfaOtp.Marshal(b, m, deterministic) -} -func (m *VerifyMfaOtp) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyMfaOtp.Merge(m, src) -} -func (m *VerifyMfaOtp) XXX_Size() int { - return xxx_messageInfo_VerifyMfaOtp.Size(m) -} -func (m *VerifyMfaOtp) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyMfaOtp.DiscardUnknown(m) -} - -var xxx_messageInfo_VerifyMfaOtp proto.InternalMessageInfo - -func (m *VerifyMfaOtp) GetCode() string { - if m != nil { - return m.Code +func (x *VerifyMfaOtp) GetCode() string { + if x != nil { + return x.Code } return "" } type MultiFactors struct { - Mfas []*MultiFactor `protobuf:"bytes,1,rep,name=mfas,proto3" json:"mfas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Mfas []*MultiFactor `protobuf:"bytes,1,rep,name=mfas,proto3" json:"mfas,omitempty"` } -func (m *MultiFactors) Reset() { *m = MultiFactors{} } -func (m *MultiFactors) String() string { return proto.CompactTextString(m) } -func (*MultiFactors) ProtoMessage() {} +func (x *MultiFactors) Reset() { + *x = MultiFactors{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MultiFactors) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MultiFactors) ProtoMessage() {} + +func (x *MultiFactors) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MultiFactors.ProtoReflect.Descriptor instead. func (*MultiFactors) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{58} + return file_auth_proto_rawDescGZIP(), []int{19} } -func (m *MultiFactors) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MultiFactors.Unmarshal(m, b) -} -func (m *MultiFactors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MultiFactors.Marshal(b, m, deterministic) -} -func (m *MultiFactors) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiFactors.Merge(m, src) -} -func (m *MultiFactors) XXX_Size() int { - return xxx_messageInfo_MultiFactors.Size(m) -} -func (m *MultiFactors) XXX_DiscardUnknown() { - xxx_messageInfo_MultiFactors.DiscardUnknown(m) -} - -var xxx_messageInfo_MultiFactors proto.InternalMessageInfo - -func (m *MultiFactors) GetMfas() []*MultiFactor { - if m != nil { - return m.Mfas +func (x *MultiFactors) GetMfas() []*MultiFactor { + if x != nil { + return x.Mfas } return nil } type MultiFactor struct { - Type MfaType `protobuf:"varint,1,opt,name=type,proto3,enum=zitadel.auth.api.v1.MfaType" json:"type,omitempty"` - State MFAState `protobuf:"varint,2,opt,name=state,proto3,enum=zitadel.auth.api.v1.MFAState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type MfaType `protobuf:"varint,1,opt,name=type,proto3,enum=zitadel.auth.api.v1.MfaType" json:"type,omitempty"` + State MFAState `protobuf:"varint,2,opt,name=state,proto3,enum=zitadel.auth.api.v1.MFAState" json:"state,omitempty"` } -func (m *MultiFactor) Reset() { *m = MultiFactor{} } -func (m *MultiFactor) String() string { return proto.CompactTextString(m) } -func (*MultiFactor) ProtoMessage() {} +func (x *MultiFactor) Reset() { + *x = MultiFactor{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MultiFactor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MultiFactor) ProtoMessage() {} + +func (x *MultiFactor) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MultiFactor.ProtoReflect.Descriptor instead. func (*MultiFactor) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{59} + return file_auth_proto_rawDescGZIP(), []int{20} } -func (m *MultiFactor) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MultiFactor.Unmarshal(m, b) -} -func (m *MultiFactor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MultiFactor.Marshal(b, m, deterministic) -} -func (m *MultiFactor) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiFactor.Merge(m, src) -} -func (m *MultiFactor) XXX_Size() int { - return xxx_messageInfo_MultiFactor.Size(m) -} -func (m *MultiFactor) XXX_DiscardUnknown() { - xxx_messageInfo_MultiFactor.DiscardUnknown(m) -} - -var xxx_messageInfo_MultiFactor proto.InternalMessageInfo - -func (m *MultiFactor) GetType() MfaType { - if m != nil { - return m.Type +func (x *MultiFactor) GetType() MfaType { + if x != nil { + return x.Type } return MfaType_MFATYPE_UNSPECIFIED } -func (m *MultiFactor) GetState() MFAState { - if m != nil { - return m.State +func (x *MultiFactor) GetState() MFAState { + if x != nil { + return x.State } return MFAState_MFASTATE_UNSPECIFIED } type MfaOtpResponse struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` - State MFAState `protobuf:"varint,4,opt,name=state,proto3,enum=zitadel.auth.api.v1.MFAState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` + State MFAState `protobuf:"varint,4,opt,name=state,proto3,enum=zitadel.auth.api.v1.MFAState" json:"state,omitempty"` } -func (m *MfaOtpResponse) Reset() { *m = MfaOtpResponse{} } -func (m *MfaOtpResponse) String() string { return proto.CompactTextString(m) } -func (*MfaOtpResponse) ProtoMessage() {} +func (x *MfaOtpResponse) Reset() { + *x = MfaOtpResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MfaOtpResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MfaOtpResponse) ProtoMessage() {} + +func (x *MfaOtpResponse) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MfaOtpResponse.ProtoReflect.Descriptor instead. func (*MfaOtpResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{60} + return file_auth_proto_rawDescGZIP(), []int{21} } -func (m *MfaOtpResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MfaOtpResponse.Unmarshal(m, b) -} -func (m *MfaOtpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MfaOtpResponse.Marshal(b, m, deterministic) -} -func (m *MfaOtpResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MfaOtpResponse.Merge(m, src) -} -func (m *MfaOtpResponse) XXX_Size() int { - return xxx_messageInfo_MfaOtpResponse.Size(m) -} -func (m *MfaOtpResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MfaOtpResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MfaOtpResponse proto.InternalMessageInfo - -func (m *MfaOtpResponse) GetUserId() string { - if m != nil { - return m.UserId +func (x *MfaOtpResponse) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *MfaOtpResponse) GetUrl() string { - if m != nil { - return m.Url +func (x *MfaOtpResponse) GetUrl() string { + if x != nil { + return x.Url } return "" } -func (m *MfaOtpResponse) GetSecret() string { - if m != nil { - return m.Secret +func (x *MfaOtpResponse) GetSecret() string { + if x != nil { + return x.Secret } return "" } -func (m *MfaOtpResponse) GetState() MFAState { - if m != nil { - return m.State +func (x *MfaOtpResponse) GetState() MFAState { + if x != nil { + return x.State } return MFAState_MFASTATE_UNSPECIFIED } -type ApplicationID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationID) Reset() { *m = ApplicationID{} } -func (m *ApplicationID) String() string { return proto.CompactTextString(m) } -func (*ApplicationID) ProtoMessage() {} -func (*ApplicationID) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{61} -} - -func (m *ApplicationID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationID.Unmarshal(m, b) -} -func (m *ApplicationID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationID.Marshal(b, m, deterministic) -} -func (m *ApplicationID) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationID.Merge(m, src) -} -func (m *ApplicationID) XXX_Size() int { - return xxx_messageInfo_ApplicationID.Size(m) -} -func (m *ApplicationID) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationID.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationID proto.InternalMessageInfo - -func (m *ApplicationID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type Application struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State AppState `protobuf:"varint,2,opt,name=state,proto3,enum=zitadel.auth.api.v1.AppState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - // Types that are valid to be assigned to AppConfig: - // *Application_OidcConfig - AppConfig isApplication_AppConfig `protobuf_oneof:"app_config"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Application) Reset() { *m = Application{} } -func (m *Application) String() string { return proto.CompactTextString(m) } -func (*Application) ProtoMessage() {} -func (*Application) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{62} -} - -func (m *Application) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Application.Unmarshal(m, b) -} -func (m *Application) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Application.Marshal(b, m, deterministic) -} -func (m *Application) XXX_Merge(src proto.Message) { - xxx_messageInfo_Application.Merge(m, src) -} -func (m *Application) XXX_Size() int { - return xxx_messageInfo_Application.Size(m) -} -func (m *Application) XXX_DiscardUnknown() { - xxx_messageInfo_Application.DiscardUnknown(m) -} - -var xxx_messageInfo_Application proto.InternalMessageInfo - -func (m *Application) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Application) GetState() AppState { - if m != nil { - return m.State - } - return AppState_APPSTATE_UNSPECIFIED -} - -func (m *Application) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *Application) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *Application) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type isApplication_AppConfig interface { - isApplication_AppConfig() -} - -type Application_OidcConfig struct { - OidcConfig *OIDCConfig `protobuf:"bytes,8,opt,name=oidc_config,json=oidcConfig,proto3,oneof"` -} - -func (*Application_OidcConfig) isApplication_AppConfig() {} - -func (m *Application) GetAppConfig() isApplication_AppConfig { - if m != nil { - return m.AppConfig - } - return nil -} - -func (m *Application) GetOidcConfig() *OIDCConfig { - if x, ok := m.GetAppConfig().(*Application_OidcConfig); ok { - return x.OidcConfig - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Application) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Application_OidcConfig)(nil), - } -} - -type OIDCConfig struct { - RedirectUris []string `protobuf:"bytes,1,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"` - ResponseTypes []OIDCResponseType `protobuf:"varint,2,rep,packed,name=response_types,json=responseTypes,proto3,enum=zitadel.auth.api.v1.OIDCResponseType" json:"response_types,omitempty"` - GrantTypes []OIDCGrantType `protobuf:"varint,3,rep,packed,name=grant_types,json=grantTypes,proto3,enum=zitadel.auth.api.v1.OIDCGrantType" json:"grant_types,omitempty"` - ApplicationType OIDCApplicationType `protobuf:"varint,4,opt,name=application_type,json=applicationType,proto3,enum=zitadel.auth.api.v1.OIDCApplicationType" json:"application_type,omitempty"` - ClientSecret string `protobuf:"bytes,5,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - ClientId string `protobuf:"bytes,6,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - AuthMethodType OIDCAuthMethodType `protobuf:"varint,7,opt,name=auth_method_type,json=authMethodType,proto3,enum=zitadel.auth.api.v1.OIDCAuthMethodType" json:"auth_method_type,omitempty"` - PostLogoutRedirectUris []string `protobuf:"bytes,8,rep,name=post_logout_redirect_uris,json=postLogoutRedirectUris,proto3" json:"post_logout_redirect_uris,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OIDCConfig) Reset() { *m = OIDCConfig{} } -func (m *OIDCConfig) String() string { return proto.CompactTextString(m) } -func (*OIDCConfig) ProtoMessage() {} -func (*OIDCConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{63} -} - -func (m *OIDCConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OIDCConfig.Unmarshal(m, b) -} -func (m *OIDCConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OIDCConfig.Marshal(b, m, deterministic) -} -func (m *OIDCConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_OIDCConfig.Merge(m, src) -} -func (m *OIDCConfig) XXX_Size() int { - return xxx_messageInfo_OIDCConfig.Size(m) -} -func (m *OIDCConfig) XXX_DiscardUnknown() { - xxx_messageInfo_OIDCConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_OIDCConfig proto.InternalMessageInfo - -func (m *OIDCConfig) GetRedirectUris() []string { - if m != nil { - return m.RedirectUris - } - return nil -} - -func (m *OIDCConfig) GetResponseTypes() []OIDCResponseType { - if m != nil { - return m.ResponseTypes - } - return nil -} - -func (m *OIDCConfig) GetGrantTypes() []OIDCGrantType { - if m != nil { - return m.GrantTypes - } - return nil -} - -func (m *OIDCConfig) GetApplicationType() OIDCApplicationType { - if m != nil { - return m.ApplicationType - } - return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB -} - -func (m *OIDCConfig) GetClientSecret() string { - if m != nil { - return m.ClientSecret - } - return "" -} - -func (m *OIDCConfig) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *OIDCConfig) GetAuthMethodType() OIDCAuthMethodType { - if m != nil { - return m.AuthMethodType - } - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC -} - -func (m *OIDCConfig) GetPostLogoutRedirectUris() []string { - if m != nil { - return m.PostLogoutRedirectUris - } - return nil -} - -type ApplicationSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - SortingColumn ApplicationSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=zitadel.auth.api.v1.ApplicationSearchKey" json:"sorting_column,omitempty"` - Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` - Queries []*ApplicationSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationSearchRequest) Reset() { *m = ApplicationSearchRequest{} } -func (m *ApplicationSearchRequest) String() string { return proto.CompactTextString(m) } -func (*ApplicationSearchRequest) ProtoMessage() {} -func (*ApplicationSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{64} -} - -func (m *ApplicationSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationSearchRequest.Unmarshal(m, b) -} -func (m *ApplicationSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationSearchRequest.Marshal(b, m, deterministic) -} -func (m *ApplicationSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationSearchRequest.Merge(m, src) -} -func (m *ApplicationSearchRequest) XXX_Size() int { - return xxx_messageInfo_ApplicationSearchRequest.Size(m) -} -func (m *ApplicationSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationSearchRequest proto.InternalMessageInfo - -func (m *ApplicationSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ApplicationSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ApplicationSearchRequest) GetSortingColumn() ApplicationSearchKey { - if m != nil { - return m.SortingColumn - } - return ApplicationSearchKey_APPLICATIONSEARCHKEY_UNSPECIFIED -} - -func (m *ApplicationSearchRequest) GetAsc() bool { - if m != nil { - return m.Asc - } - return false -} - -func (m *ApplicationSearchRequest) GetQueries() []*ApplicationSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type ApplicationSearchQuery struct { - Key ApplicationSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=zitadel.auth.api.v1.ApplicationSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=zitadel.auth.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationSearchQuery) Reset() { *m = ApplicationSearchQuery{} } -func (m *ApplicationSearchQuery) String() string { return proto.CompactTextString(m) } -func (*ApplicationSearchQuery) ProtoMessage() {} -func (*ApplicationSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{65} -} - -func (m *ApplicationSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationSearchQuery.Unmarshal(m, b) -} -func (m *ApplicationSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationSearchQuery.Marshal(b, m, deterministic) -} -func (m *ApplicationSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationSearchQuery.Merge(m, src) -} -func (m *ApplicationSearchQuery) XXX_Size() int { - return xxx_messageInfo_ApplicationSearchQuery.Size(m) -} -func (m *ApplicationSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationSearchQuery proto.InternalMessageInfo - -func (m *ApplicationSearchQuery) GetKey() ApplicationSearchKey { - if m != nil { - return m.Key - } - return ApplicationSearchKey_APPLICATIONSEARCHKEY_UNSPECIFIED -} - -func (m *ApplicationSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *ApplicationSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type ApplicationSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*Application `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationSearchResponse) Reset() { *m = ApplicationSearchResponse{} } -func (m *ApplicationSearchResponse) String() string { return proto.CompactTextString(m) } -func (*ApplicationSearchResponse) ProtoMessage() {} -func (*ApplicationSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{66} -} - -func (m *ApplicationSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationSearchResponse.Unmarshal(m, b) -} -func (m *ApplicationSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationSearchResponse.Marshal(b, m, deterministic) -} -func (m *ApplicationSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationSearchResponse.Merge(m, src) -} -func (m *ApplicationSearchResponse) XXX_Size() int { - return xxx_messageInfo_ApplicationSearchResponse.Size(m) -} -func (m *ApplicationSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationSearchResponse proto.InternalMessageInfo - -func (m *ApplicationSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ApplicationSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ApplicationSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *ApplicationSearchResponse) GetResult() []*Application { - if m != nil { - return m.Result - } - return nil -} - -type ApplicationAuthorizeRequest struct { - // Types that are valid to be assigned to Auth: - // *ApplicationAuthorizeRequest_OidcClientAuth - Auth isApplicationAuthorizeRequest_Auth `protobuf_oneof:"auth"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationAuthorizeRequest) Reset() { *m = ApplicationAuthorizeRequest{} } -func (m *ApplicationAuthorizeRequest) String() string { return proto.CompactTextString(m) } -func (*ApplicationAuthorizeRequest) ProtoMessage() {} -func (*ApplicationAuthorizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{67} -} - -func (m *ApplicationAuthorizeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationAuthorizeRequest.Unmarshal(m, b) -} -func (m *ApplicationAuthorizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationAuthorizeRequest.Marshal(b, m, deterministic) -} -func (m *ApplicationAuthorizeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationAuthorizeRequest.Merge(m, src) -} -func (m *ApplicationAuthorizeRequest) XXX_Size() int { - return xxx_messageInfo_ApplicationAuthorizeRequest.Size(m) -} -func (m *ApplicationAuthorizeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationAuthorizeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationAuthorizeRequest proto.InternalMessageInfo - -type isApplicationAuthorizeRequest_Auth interface { - isApplicationAuthorizeRequest_Auth() -} - -type ApplicationAuthorizeRequest_OidcClientAuth struct { - OidcClientAuth *OIDCClientAuth `protobuf:"bytes,1,opt,name=oidc_client_auth,json=oidcClientAuth,proto3,oneof"` -} - -func (*ApplicationAuthorizeRequest_OidcClientAuth) isApplicationAuthorizeRequest_Auth() {} - -func (m *ApplicationAuthorizeRequest) GetAuth() isApplicationAuthorizeRequest_Auth { - if m != nil { - return m.Auth - } - return nil -} - -func (m *ApplicationAuthorizeRequest) GetOidcClientAuth() *OIDCClientAuth { - if x, ok := m.GetAuth().(*ApplicationAuthorizeRequest_OidcClientAuth); ok { - return x.OidcClientAuth - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ApplicationAuthorizeRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ApplicationAuthorizeRequest_OidcClientAuth)(nil), - } -} - type OIDCClientAuth struct { - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` } -func (m *OIDCClientAuth) Reset() { *m = OIDCClientAuth{} } -func (m *OIDCClientAuth) String() string { return proto.CompactTextString(m) } -func (*OIDCClientAuth) ProtoMessage() {} +func (x *OIDCClientAuth) Reset() { + *x = OIDCClientAuth{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OIDCClientAuth) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OIDCClientAuth) ProtoMessage() {} + +func (x *OIDCClientAuth) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OIDCClientAuth.ProtoReflect.Descriptor instead. func (*OIDCClientAuth) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{68} + return file_auth_proto_rawDescGZIP(), []int{22} } -func (m *OIDCClientAuth) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OIDCClientAuth.Unmarshal(m, b) -} -func (m *OIDCClientAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OIDCClientAuth.Marshal(b, m, deterministic) -} -func (m *OIDCClientAuth) XXX_Merge(src proto.Message) { - xxx_messageInfo_OIDCClientAuth.Merge(m, src) -} -func (m *OIDCClientAuth) XXX_Size() int { - return xxx_messageInfo_OIDCClientAuth.Size(m) -} -func (m *OIDCClientAuth) XXX_DiscardUnknown() { - xxx_messageInfo_OIDCClientAuth.DiscardUnknown(m) -} - -var xxx_messageInfo_OIDCClientAuth proto.InternalMessageInfo - -func (m *OIDCClientAuth) GetClientId() string { - if m != nil { - return m.ClientId +func (x *OIDCClientAuth) GetClientId() string { + if x != nil { + return x.ClientId } return "" } -func (m *OIDCClientAuth) GetClientSecret() string { - if m != nil { - return m.ClientSecret - } - return "" -} - -type GrantSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - SortingColumn GrantSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=zitadel.auth.api.v1.GrantSearchKey" json:"sorting_column,omitempty"` - Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` - Queries []*GrantSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GrantSearchRequest) Reset() { *m = GrantSearchRequest{} } -func (m *GrantSearchRequest) String() string { return proto.CompactTextString(m) } -func (*GrantSearchRequest) ProtoMessage() {} -func (*GrantSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{69} -} - -func (m *GrantSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GrantSearchRequest.Unmarshal(m, b) -} -func (m *GrantSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GrantSearchRequest.Marshal(b, m, deterministic) -} -func (m *GrantSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GrantSearchRequest.Merge(m, src) -} -func (m *GrantSearchRequest) XXX_Size() int { - return xxx_messageInfo_GrantSearchRequest.Size(m) -} -func (m *GrantSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GrantSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GrantSearchRequest proto.InternalMessageInfo - -func (m *GrantSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *GrantSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *GrantSearchRequest) GetSortingColumn() GrantSearchKey { - if m != nil { - return m.SortingColumn - } - return GrantSearchKey_GRANTSEARCHKEY_UNSPECIFIED -} - -func (m *GrantSearchRequest) GetAsc() bool { - if m != nil { - return m.Asc - } - return false -} - -func (m *GrantSearchRequest) GetQueries() []*GrantSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type GrantSearchQuery struct { - Key GrantSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=zitadel.auth.api.v1.GrantSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=zitadel.auth.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GrantSearchQuery) Reset() { *m = GrantSearchQuery{} } -func (m *GrantSearchQuery) String() string { return proto.CompactTextString(m) } -func (*GrantSearchQuery) ProtoMessage() {} -func (*GrantSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{70} -} - -func (m *GrantSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GrantSearchQuery.Unmarshal(m, b) -} -func (m *GrantSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GrantSearchQuery.Marshal(b, m, deterministic) -} -func (m *GrantSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GrantSearchQuery.Merge(m, src) -} -func (m *GrantSearchQuery) XXX_Size() int { - return xxx_messageInfo_GrantSearchQuery.Size(m) -} -func (m *GrantSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GrantSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_GrantSearchQuery proto.InternalMessageInfo - -func (m *GrantSearchQuery) GetKey() GrantSearchKey { - if m != nil { - return m.Key - } - return GrantSearchKey_GRANTSEARCHKEY_UNSPECIFIED -} - -func (m *GrantSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *GrantSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type GrantSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*Grant `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GrantSearchResponse) Reset() { *m = GrantSearchResponse{} } -func (m *GrantSearchResponse) String() string { return proto.CompactTextString(m) } -func (*GrantSearchResponse) ProtoMessage() {} -func (*GrantSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{71} -} - -func (m *GrantSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GrantSearchResponse.Unmarshal(m, b) -} -func (m *GrantSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GrantSearchResponse.Marshal(b, m, deterministic) -} -func (m *GrantSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GrantSearchResponse.Merge(m, src) -} -func (m *GrantSearchResponse) XXX_Size() int { - return xxx_messageInfo_GrantSearchResponse.Size(m) -} -func (m *GrantSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GrantSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GrantSearchResponse proto.InternalMessageInfo - -func (m *GrantSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *GrantSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *GrantSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *GrantSearchResponse) GetResult() []*Grant { - if m != nil { - return m.Result - } - return nil -} - -type Grant struct { - OrgId string `protobuf:"bytes,1,opt,name=OrgId,proto3" json:"OrgId,omitempty"` - ProjectId string `protobuf:"bytes,2,opt,name=ProjectId,proto3" json:"ProjectId,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=UserId,proto3" json:"UserId,omitempty"` - Roles []string `protobuf:"bytes,4,rep,name=Roles,proto3" json:"Roles,omitempty"` - OrgName string `protobuf:"bytes,5,opt,name=OrgName,proto3" json:"OrgName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Grant) Reset() { *m = Grant{} } -func (m *Grant) String() string { return proto.CompactTextString(m) } -func (*Grant) ProtoMessage() {} -func (*Grant) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{72} -} - -func (m *Grant) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Grant.Unmarshal(m, b) -} -func (m *Grant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Grant.Marshal(b, m, deterministic) -} -func (m *Grant) XXX_Merge(src proto.Message) { - xxx_messageInfo_Grant.Merge(m, src) -} -func (m *Grant) XXX_Size() int { - return xxx_messageInfo_Grant.Size(m) -} -func (m *Grant) XXX_DiscardUnknown() { - xxx_messageInfo_Grant.DiscardUnknown(m) -} - -var xxx_messageInfo_Grant proto.InternalMessageInfo - -func (m *Grant) GetOrgId() string { - if m != nil { - return m.OrgId - } - return "" -} - -func (m *Grant) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *Grant) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *Grant) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -func (m *Grant) GetOrgName() string { - if m != nil { - return m.OrgName +func (x *OIDCClientAuth) GetClientSecret() string { + if x != nil { + return x.ClientSecret } return "" } type MyProjectOrgSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` - Queries []*MyProjectOrgSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` + Queries []*MyProjectOrgSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` } -func (m *MyProjectOrgSearchRequest) Reset() { *m = MyProjectOrgSearchRequest{} } -func (m *MyProjectOrgSearchRequest) String() string { return proto.CompactTextString(m) } -func (*MyProjectOrgSearchRequest) ProtoMessage() {} +func (x *MyProjectOrgSearchRequest) Reset() { + *x = MyProjectOrgSearchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MyProjectOrgSearchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MyProjectOrgSearchRequest) ProtoMessage() {} + +func (x *MyProjectOrgSearchRequest) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MyProjectOrgSearchRequest.ProtoReflect.Descriptor instead. func (*MyProjectOrgSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{73} + return file_auth_proto_rawDescGZIP(), []int{23} } -func (m *MyProjectOrgSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MyProjectOrgSearchRequest.Unmarshal(m, b) -} -func (m *MyProjectOrgSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MyProjectOrgSearchRequest.Marshal(b, m, deterministic) -} -func (m *MyProjectOrgSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MyProjectOrgSearchRequest.Merge(m, src) -} -func (m *MyProjectOrgSearchRequest) XXX_Size() int { - return xxx_messageInfo_MyProjectOrgSearchRequest.Size(m) -} -func (m *MyProjectOrgSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MyProjectOrgSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MyProjectOrgSearchRequest proto.InternalMessageInfo - -func (m *MyProjectOrgSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset +func (x *MyProjectOrgSearchRequest) GetOffset() uint64 { + if x != nil { + return x.Offset } return 0 } -func (m *MyProjectOrgSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit +func (x *MyProjectOrgSearchRequest) GetLimit() uint64 { + if x != nil { + return x.Limit } return 0 } -func (m *MyProjectOrgSearchRequest) GetAsc() bool { - if m != nil { - return m.Asc +func (x *MyProjectOrgSearchRequest) GetAsc() bool { + if x != nil { + return x.Asc } return false } -func (m *MyProjectOrgSearchRequest) GetQueries() []*MyProjectOrgSearchQuery { - if m != nil { - return m.Queries +func (x *MyProjectOrgSearchRequest) GetQueries() []*MyProjectOrgSearchQuery { + if x != nil { + return x.Queries } return nil } type MyProjectOrgSearchQuery struct { - Key MyProjectOrgSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=zitadel.auth.api.v1.MyProjectOrgSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=zitadel.auth.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key MyProjectOrgSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=zitadel.auth.api.v1.MyProjectOrgSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=zitadel.auth.api.v1.SearchMethod" json:"method,omitempty"` + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` } -func (m *MyProjectOrgSearchQuery) Reset() { *m = MyProjectOrgSearchQuery{} } -func (m *MyProjectOrgSearchQuery) String() string { return proto.CompactTextString(m) } -func (*MyProjectOrgSearchQuery) ProtoMessage() {} +func (x *MyProjectOrgSearchQuery) Reset() { + *x = MyProjectOrgSearchQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MyProjectOrgSearchQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MyProjectOrgSearchQuery) ProtoMessage() {} + +func (x *MyProjectOrgSearchQuery) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MyProjectOrgSearchQuery.ProtoReflect.Descriptor instead. func (*MyProjectOrgSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{74} + return file_auth_proto_rawDescGZIP(), []int{24} } -func (m *MyProjectOrgSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MyProjectOrgSearchQuery.Unmarshal(m, b) -} -func (m *MyProjectOrgSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MyProjectOrgSearchQuery.Marshal(b, m, deterministic) -} -func (m *MyProjectOrgSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_MyProjectOrgSearchQuery.Merge(m, src) -} -func (m *MyProjectOrgSearchQuery) XXX_Size() int { - return xxx_messageInfo_MyProjectOrgSearchQuery.Size(m) -} -func (m *MyProjectOrgSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_MyProjectOrgSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_MyProjectOrgSearchQuery proto.InternalMessageInfo - -func (m *MyProjectOrgSearchQuery) GetKey() MyProjectOrgSearchKey { - if m != nil { - return m.Key +func (x *MyProjectOrgSearchQuery) GetKey() MyProjectOrgSearchKey { + if x != nil { + return x.Key } return MyProjectOrgSearchKey_MYPROJECTORGSEARCHKEY_UNSPECIFIED } -func (m *MyProjectOrgSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method +func (x *MyProjectOrgSearchQuery) GetMethod() SearchMethod { + if x != nil { + return x.Method } return SearchMethod_SEARCHMETHOD_EQUALS } -func (m *MyProjectOrgSearchQuery) GetValue() string { - if m != nil { - return m.Value +func (x *MyProjectOrgSearchQuery) GetValue() string { + if x != nil { + return x.Value } return "" } type MyProjectOrgSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*Org `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` + Result []*Org `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` } -func (m *MyProjectOrgSearchResponse) Reset() { *m = MyProjectOrgSearchResponse{} } -func (m *MyProjectOrgSearchResponse) String() string { return proto.CompactTextString(m) } -func (*MyProjectOrgSearchResponse) ProtoMessage() {} +func (x *MyProjectOrgSearchResponse) Reset() { + *x = MyProjectOrgSearchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MyProjectOrgSearchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MyProjectOrgSearchResponse) ProtoMessage() {} + +func (x *MyProjectOrgSearchResponse) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MyProjectOrgSearchResponse.ProtoReflect.Descriptor instead. func (*MyProjectOrgSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{75} + return file_auth_proto_rawDescGZIP(), []int{25} } -func (m *MyProjectOrgSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MyProjectOrgSearchResponse.Unmarshal(m, b) -} -func (m *MyProjectOrgSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MyProjectOrgSearchResponse.Marshal(b, m, deterministic) -} -func (m *MyProjectOrgSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MyProjectOrgSearchResponse.Merge(m, src) -} -func (m *MyProjectOrgSearchResponse) XXX_Size() int { - return xxx_messageInfo_MyProjectOrgSearchResponse.Size(m) -} -func (m *MyProjectOrgSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MyProjectOrgSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MyProjectOrgSearchResponse proto.InternalMessageInfo - -func (m *MyProjectOrgSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset +func (x *MyProjectOrgSearchResponse) GetOffset() uint64 { + if x != nil { + return x.Offset } return 0 } -func (m *MyProjectOrgSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit +func (x *MyProjectOrgSearchResponse) GetLimit() uint64 { + if x != nil { + return x.Limit } return 0 } -func (m *MyProjectOrgSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult +func (x *MyProjectOrgSearchResponse) GetTotalResult() uint64 { + if x != nil { + return x.TotalResult } return 0 } -func (m *MyProjectOrgSearchResponse) GetResult() []*Org { - if m != nil { - return m.Result +func (x *MyProjectOrgSearchResponse) GetResult() []*Org { + if x != nil { + return x.Result } return nil } type IsAdminResponse struct { - IsAdmin bool `protobuf:"varint,1,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IsAdmin bool `protobuf:"varint,1,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` } -func (m *IsAdminResponse) Reset() { *m = IsAdminResponse{} } -func (m *IsAdminResponse) String() string { return proto.CompactTextString(m) } -func (*IsAdminResponse) ProtoMessage() {} +func (x *IsAdminResponse) Reset() { + *x = IsAdminResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IsAdminResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IsAdminResponse) ProtoMessage() {} + +func (x *IsAdminResponse) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IsAdminResponse.ProtoReflect.Descriptor instead. func (*IsAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{76} + return file_auth_proto_rawDescGZIP(), []int{26} } -func (m *IsAdminResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IsAdminResponse.Unmarshal(m, b) -} -func (m *IsAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IsAdminResponse.Marshal(b, m, deterministic) -} -func (m *IsAdminResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsAdminResponse.Merge(m, src) -} -func (m *IsAdminResponse) XXX_Size() int { - return xxx_messageInfo_IsAdminResponse.Size(m) -} -func (m *IsAdminResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IsAdminResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_IsAdminResponse proto.InternalMessageInfo - -func (m *IsAdminResponse) GetIsAdmin() bool { - if m != nil { - return m.IsAdmin +func (x *IsAdminResponse) GetIsAdmin() bool { + if x != nil { + return x.IsAdmin } return false } type Org struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (m *Org) Reset() { *m = Org{} } -func (m *Org) String() string { return proto.CompactTextString(m) } -func (*Org) ProtoMessage() {} +func (x *Org) Reset() { + *x = Org{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Org) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Org) ProtoMessage() {} + +func (x *Org) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Org.ProtoReflect.Descriptor instead. func (*Org) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{77} + return file_auth_proto_rawDescGZIP(), []int{27} } -func (m *Org) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Org.Unmarshal(m, b) -} -func (m *Org) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Org.Marshal(b, m, deterministic) -} -func (m *Org) XXX_Merge(src proto.Message) { - xxx_messageInfo_Org.Merge(m, src) -} -func (m *Org) XXX_Size() int { - return xxx_messageInfo_Org.Size(m) -} -func (m *Org) XXX_DiscardUnknown() { - xxx_messageInfo_Org.DiscardUnknown(m) -} - -var xxx_messageInfo_Org proto.InternalMessageInfo - -func (m *Org) GetId() string { - if m != nil { - return m.Id +func (x *Org) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Org) GetName() string { - if m != nil { - return m.Name +func (x *Org) GetName() string { + if x != nil { + return x.Name } return "" } -type CreateTokenRequest struct { - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - AuthSessionId string `protobuf:"bytes,2,opt,name=auth_session_id,json=authSessionId,proto3" json:"auth_session_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateTokenRequest) Reset() { *m = CreateTokenRequest{} } -func (m *CreateTokenRequest) String() string { return proto.CompactTextString(m) } -func (*CreateTokenRequest) ProtoMessage() {} -func (*CreateTokenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{78} -} - -func (m *CreateTokenRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateTokenRequest.Unmarshal(m, b) -} -func (m *CreateTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateTokenRequest.Marshal(b, m, deterministic) -} -func (m *CreateTokenRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateTokenRequest.Merge(m, src) -} -func (m *CreateTokenRequest) XXX_Size() int { - return xxx_messageInfo_CreateTokenRequest.Size(m) -} -func (m *CreateTokenRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateTokenRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateTokenRequest proto.InternalMessageInfo - -func (m *CreateTokenRequest) GetAgentId() string { - if m != nil { - return m.AgentId - } - return "" -} - -func (m *CreateTokenRequest) GetAuthSessionId() string { - if m != nil { - return m.AuthSessionId - } - return "" -} - -type Token struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Expiration *timestamp.Timestamp `protobuf:"bytes,8,opt,name=expiration,proto3" json:"expiration,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Token) Reset() { *m = Token{} } -func (m *Token) String() string { return proto.CompactTextString(m) } -func (*Token) ProtoMessage() {} -func (*Token) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{79} -} - -func (m *Token) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Token.Unmarshal(m, b) -} -func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Token.Marshal(b, m, deterministic) -} -func (m *Token) XXX_Merge(src proto.Message) { - xxx_messageInfo_Token.Merge(m, src) -} -func (m *Token) XXX_Size() int { - return xxx_messageInfo_Token.Size(m) -} -func (m *Token) XXX_DiscardUnknown() { - xxx_messageInfo_Token.DiscardUnknown(m) -} - -var xxx_messageInfo_Token proto.InternalMessageInfo - -func (m *Token) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Token) GetExpiration() *timestamp.Timestamp { - if m != nil { - return m.Expiration - } - return nil -} - type MyPermissions struct { - Permissions []string `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Permissions []string `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` } -func (m *MyPermissions) Reset() { *m = MyPermissions{} } -func (m *MyPermissions) String() string { return proto.CompactTextString(m) } -func (*MyPermissions) ProtoMessage() {} +func (x *MyPermissions) Reset() { + *x = MyPermissions{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MyPermissions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MyPermissions) ProtoMessage() {} + +func (x *MyPermissions) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MyPermissions.ProtoReflect.Descriptor instead. func (*MyPermissions) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{80} + return file_auth_proto_rawDescGZIP(), []int{28} } -func (m *MyPermissions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MyPermissions.Unmarshal(m, b) -} -func (m *MyPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MyPermissions.Marshal(b, m, deterministic) -} -func (m *MyPermissions) XXX_Merge(src proto.Message) { - xxx_messageInfo_MyPermissions.Merge(m, src) -} -func (m *MyPermissions) XXX_Size() int { - return xxx_messageInfo_MyPermissions.Size(m) -} -func (m *MyPermissions) XXX_DiscardUnknown() { - xxx_messageInfo_MyPermissions.DiscardUnknown(m) -} - -var xxx_messageInfo_MyPermissions proto.InternalMessageInfo - -func (m *MyPermissions) GetPermissions() []string { - if m != nil { - return m.Permissions +func (x *MyPermissions) GetPermissions() []string { + if x != nil { + return x.Permissions } return nil } -type VerifyUserInitRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +var File_auth_proto protoreflect.FileDescriptor + +var file_auth_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x7a, 0x69, + 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, + 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5d, 0x0a, 0x10, + 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x69, 0x65, 0x77, 0x73, + 0x12, 0x49, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, + 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x0c, 0x75, + 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x0f, + 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x69, 0x65, 0x77, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0a, 0x61, 0x75, + 0x74, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, + 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, + 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x18, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x22, 0xe2, 0x07, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, + 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, + 0x12, 0x43, 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, + 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, + 0x74, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x45, 0x0a, + 0x10, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x0f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, + 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, + 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, + 0x61, 0x67, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x06, + 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x7a, + 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, 0x65, 0x6d, + 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x10, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x11, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, + 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x12, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, + 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, + 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, + 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x72, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x64, 0x22, 0x9a, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, + 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, + 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, + 0x75, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x33, 0x0a, + 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, + 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x22, 0xb6, 0x02, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x29, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, + 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x09, 0x6c, 0x61, + 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, + 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, + 0xc8, 0x01, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x0c, + 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x0b, + 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x12, 0x70, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, + 0x18, 0xc8, 0x01, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, + 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, + 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x5b, 0x0a, 0x09, 0x55, + 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x28, + 0x0a, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x3a, 0x0a, 0x18, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x79, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x04, + 0x63, 0x6f, 0x64, 0x65, 0x22, 0x48, 0x0a, 0x16, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x55, 0x73, + 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, + 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, + 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x3a, + 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, + 0x18, 0xc8, 0x01, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x5d, 0x0a, 0x09, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2a, 0x0a, + 0x11, 0x69, 0x73, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, + 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x50, 0x68, 0x6f, 0x6e, + 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x39, 0x0a, 0x16, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x72, 0x04, 0x10, 0x01, 0x18, 0x14, 0x52, 0x05, 0x70, + 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x38, 0x0a, 0x16, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, + 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, + 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0xb3, + 0x01, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, + 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, + 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, + 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, + 0x0e, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x22, 0xe2, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x22, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x07, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x24, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, + 0x01, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x29, 0x0a, 0x0b, 0x70, + 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, + 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, + 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x65, + 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, + 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x1c, 0x0a, 0x0a, 0x50, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x38, 0x0a, 0x0f, 0x50, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0xfa, 0x42, + 0x06, 0x72, 0x04, 0x10, 0x01, 0x18, 0x48, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x22, 0x6c, 0x0a, 0x0e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x12, 0x2c, 0x0a, 0x0c, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x72, 0x04, + 0x10, 0x01, 0x18, 0x48, 0x52, 0x0b, 0x6f, 0x6c, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x12, 0x2c, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x72, 0x04, 0x10, 0x01, + 0x18, 0x48, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, + 0x22, 0x0a, 0x0c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x66, 0x61, 0x4f, 0x74, 0x70, 0x12, + 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, + 0x6f, 0x64, 0x65, 0x22, 0x44, 0x0a, 0x0c, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x73, 0x12, 0x34, 0x0a, 0x04, 0x6d, 0x66, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, + 0x74, 0x6f, 0x72, 0x52, 0x04, 0x6d, 0x66, 0x61, 0x73, 0x22, 0x74, 0x0a, 0x0b, 0x4d, 0x75, 0x6c, + 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, + 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x66, 0x61, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x7a, 0x69, 0x74, 0x61, + 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x46, 0x41, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, + 0x88, 0x01, 0x0a, 0x0e, 0x4d, 0x66, 0x61, 0x4f, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, + 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, + 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, + 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x33, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, + 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x46, 0x41, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x52, 0x0a, 0x0e, 0x4f, 0x49, + 0x44, 0x43, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, + 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0xa3, + 0x01, 0x0a, 0x19, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, + 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x73, + 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x73, 0x63, 0x12, 0x46, 0x0a, 0x07, + 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, + 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x46, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, + 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, + 0x02, 0x20, 0x00, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x39, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, + 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x9f, 0x01, 0x0a, 0x1a, 0x4d, 0x79, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x7a, 0x69, 0x74, 0x61, + 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x72, 0x67, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x2c, 0x0a, 0x0f, 0x49, + 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, + 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x69, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x29, 0x0a, 0x03, 0x4f, 0x72, 0x67, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x0d, 0x4d, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x72, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x53, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x55, + 0x53, 0x45, 0x52, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, + 0x17, 0x55, 0x53, 0x45, 0x52, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x53, 0x54, 0x41, 0x54, + 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x55, 0x53, + 0x45, 0x52, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x54, + 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x71, 0x0a, 0x10, 0x4f, + 0x49, 0x44, 0x43, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x19, 0x0a, 0x15, 0x4f, 0x49, 0x44, 0x43, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x49, + 0x44, 0x43, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, + 0x44, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x49, 0x44, + 0x43, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x44, + 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x02, 0x2a, 0xb0, + 0x01, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x16, + 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x45, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x53, 0x45, 0x52, + 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x16, + 0x0a, 0x12, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x41, 0x43, + 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, + 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x14, 0x0a, + 0x10, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x45, + 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, + 0x5f, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, + 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x4c, 0x10, + 0x06, 0x2a, 0x58, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x12, 0x47, + 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x46, 0x45, + 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, + 0x5f, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x47, 0x45, 0x4e, 0x44, 0x45, + 0x52, 0x5f, 0x44, 0x49, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x03, 0x2a, 0x44, 0x0a, 0x07, 0x4d, + 0x66, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x4d, 0x46, 0x41, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x0f, 0x0a, 0x0b, 0x4d, 0x46, 0x41, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4d, 0x53, 0x10, 0x01, + 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x46, 0x41, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x54, 0x50, 0x10, + 0x02, 0x2a, 0x66, 0x0a, 0x08, 0x4d, 0x46, 0x41, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, + 0x14, 0x4d, 0x46, 0x41, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x4d, 0x46, 0x41, 0x53, 0x54, + 0x41, 0x54, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x01, 0x12, + 0x12, 0x0a, 0x0e, 0x4d, 0x46, 0x41, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, + 0x59, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x46, 0x41, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x62, 0x0a, 0x15, 0x4d, 0x79, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, + 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x4d, 0x59, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x4f, + 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x59, 0x50, + 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, + 0x45, 0x59, 0x5f, 0x4f, 0x52, 0x47, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x2a, 0x60, 0x0a, + 0x0c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x17, 0x0a, + 0x13, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x45, 0x51, + 0x55, 0x41, 0x4c, 0x53, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, + 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x53, 0x5f, 0x57, 0x49, + 0x54, 0x48, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, + 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x10, 0x02, 0x32, + 0x96, 0x1a, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x4b, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x10, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, 0x47, 0x0a, 0x05, + 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x0e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x08, 0x12, 0x06, 0x2f, + 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x4e, 0x0a, 0x08, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x22, 0x11, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x7f, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x55, 0x73, + 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x25, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, + 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x69, 0x65, 0x77, 0x73, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x12, 0x12, 0x10, 0x2f, 0x6d, 0x65, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x7a, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x55, + 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, + 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x82, + 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x12, 0x97, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x79, 0x55, + 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x2d, 0x2e, 0x7a, 0x69, 0x74, + 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x7a, 0x69, 0x74, 0x61, + 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x16, 0x1a, 0x11, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x74, 0x0a, 0x0e, + 0x47, 0x65, 0x74, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, + 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x82, + 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x12, 0x8f, 0x01, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x55, + 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2b, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, + 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, + 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x1a, 0x0f, 0x2f, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x3a, 0x01, + 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x12, 0x91, 0x01, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, + 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2d, 0x2e, 0x7a, 0x69, 0x74, + 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, + 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x2f, 0x5f, 0x76, 0x65, 0x72, 0x69, + 0x66, 0x79, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x92, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x73, + 0x65, 0x6e, 0x64, 0x4d, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x28, 0x22, 0x23, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x65, 0x6d, + 0x61, 0x69, 0x6c, 0x2f, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x76, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, + 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x74, 0x0a, + 0x0e, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, + 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, + 0x0f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, + 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x12, 0x8f, 0x01, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, + 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2b, 0x2e, 0x7a, 0x69, 0x74, 0x61, + 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, + 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x1a, 0x0f, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x3a, + 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x8f, 0x01, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2b, 0x2e, 0x7a, 0x69, + 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x2f, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, + 0x79, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, + 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x92, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x73, 0x65, + 0x6e, 0x64, 0x4d, 0x79, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x28, 0x22, 0x23, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x68, 0x6f, + 0x6e, 0x65, 0x2f, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x7a, 0x0a, 0x10, + 0x47, 0x65, 0x74, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, + 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x13, 0x12, 0x11, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x97, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x2d, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x20, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x1a, 0x11, 0x2f, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x01, 0x2a, 0x82, + 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x12, 0x71, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x4d, 0x66, 0x61, 0x73, 0x12, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x21, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, + 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, + 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x6d, 0x66, + 0x61, 0x73, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x80, 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x4d, 0x79, 0x50, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x24, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, + 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x1a, 0x13, 0x2f, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x8a, 0x01, 0x0a, 0x10, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x23, 0x2e, + 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x20, 0x1a, 0x1b, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x3a, + 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x79, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x4d, 0x66, 0x61, 0x4f, + 0x54, 0x50, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x23, 0x2e, 0x7a, 0x69, 0x74, + 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x66, 0x61, 0x4f, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, + 0x6d, 0x65, 0x2f, 0x6d, 0x66, 0x61, 0x2f, 0x6f, 0x74, 0x70, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, + 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x8f, 0x01, 0x0a, 0x0c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x66, 0x61, 0x4f, 0x54, + 0x50, 0x12, 0x21, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x66, + 0x61, 0x4f, 0x74, 0x70, 0x1a, 0x23, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, + 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x66, 0x61, 0x4f, 0x74, + 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1e, 0x1a, 0x19, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x6d, 0x66, 0x61, + 0x2f, 0x6f, 0x74, 0x70, 0x2f, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x3a, 0x01, 0x2a, 0x82, + 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x12, 0x6c, 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x66, 0x61, 0x4f, + 0x54, 0x50, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x2a, 0x11, 0x2f, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x6d, 0x66, 0x61, 0x2f, 0x6f, 0x74, 0x70, 0x82, 0xb5, 0x18, + 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x5a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x49, 0x44, 0x12, + 0x1b, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x19, 0x2e, 0x7a, + 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x12, + 0x0b, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0xb1, 0x01, 0x0a, + 0x13, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x4f, 0x72, 0x67, 0x73, 0x12, 0x2e, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, + 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, + 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, + 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x67, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, + 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x7a, 0x0a, 0x0a, 0x49, 0x73, 0x49, 0x61, 0x6d, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x24, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, + 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x73, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x2f, 0x5f, 0x69, + 0x73, 0x69, 0x61, 0x6d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x89, 0x01, 0x0a, + 0x17, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x5a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x50, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x1a, 0x22, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x70, + 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7a, 0x69, 0x74, 0x61, 0x64, + 0x65, 0x6c, 0x2f, 0x6d, 0x65, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0xb7, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x6f, 0x73, 0x2f, 0x7a, 0x69, 0x74, + 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x92, 0x41, 0x88, 0x01, 0x12, 0x3b, 0x0a, 0x08, 0x41, 0x75, + 0x74, 0x68, 0x20, 0x41, 0x50, 0x49, 0x22, 0x2a, 0x12, 0x28, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, + 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x6f, + 0x73, 0x2f, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x75, + 0x74, 0x68, 0x32, 0x03, 0x30, 0x2e, 0x31, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3a, 0x10, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, + 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, + 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *VerifyUserInitRequest) Reset() { *m = VerifyUserInitRequest{} } -func (m *VerifyUserInitRequest) String() string { return proto.CompactTextString(m) } -func (*VerifyUserInitRequest) ProtoMessage() {} -func (*VerifyUserInitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8bbd6f3875b0e874, []int{81} +var ( + file_auth_proto_rawDescOnce sync.Once + file_auth_proto_rawDescData = file_auth_proto_rawDesc +) + +func file_auth_proto_rawDescGZIP() []byte { + file_auth_proto_rawDescOnce.Do(func() { + file_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_proto_rawDescData) + }) + return file_auth_proto_rawDescData } -func (m *VerifyUserInitRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyUserInitRequest.Unmarshal(m, b) +var file_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 8) +var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 29) +var file_auth_proto_goTypes = []interface{}{ + (UserSessionState)(0), // 0: zitadel.auth.api.v1.UserSessionState + (OIDCResponseType)(0), // 1: zitadel.auth.api.v1.OIDCResponseType + (UserState)(0), // 2: zitadel.auth.api.v1.UserState + (Gender)(0), // 3: zitadel.auth.api.v1.Gender + (MfaType)(0), // 4: zitadel.auth.api.v1.MfaType + (MFAState)(0), // 5: zitadel.auth.api.v1.MFAState + (MyProjectOrgSearchKey)(0), // 6: zitadel.auth.api.v1.MyProjectOrgSearchKey + (SearchMethod)(0), // 7: zitadel.auth.api.v1.SearchMethod + (*UserSessionViews)(nil), // 8: zitadel.auth.api.v1.UserSessionViews + (*UserSessionView)(nil), // 9: zitadel.auth.api.v1.UserSessionView + (*UserID)(nil), // 10: zitadel.auth.api.v1.UserID + (*User)(nil), // 11: zitadel.auth.api.v1.User + (*UserProfile)(nil), // 12: zitadel.auth.api.v1.UserProfile + (*UpdateUserProfileRequest)(nil), // 13: zitadel.auth.api.v1.UpdateUserProfileRequest + (*UserEmail)(nil), // 14: zitadel.auth.api.v1.UserEmail + (*VerifyMyUserEmailRequest)(nil), // 15: zitadel.auth.api.v1.VerifyMyUserEmailRequest + (*VerifyUserEmailRequest)(nil), // 16: zitadel.auth.api.v1.VerifyUserEmailRequest + (*UpdateUserEmailRequest)(nil), // 17: zitadel.auth.api.v1.UpdateUserEmailRequest + (*UserPhone)(nil), // 18: zitadel.auth.api.v1.UserPhone + (*UpdateUserPhoneRequest)(nil), // 19: zitadel.auth.api.v1.UpdateUserPhoneRequest + (*VerifyUserPhoneRequest)(nil), // 20: zitadel.auth.api.v1.VerifyUserPhoneRequest + (*UserAddress)(nil), // 21: zitadel.auth.api.v1.UserAddress + (*UpdateUserAddressRequest)(nil), // 22: zitadel.auth.api.v1.UpdateUserAddressRequest + (*PasswordID)(nil), // 23: zitadel.auth.api.v1.PasswordID + (*PasswordRequest)(nil), // 24: zitadel.auth.api.v1.PasswordRequest + (*PasswordChange)(nil), // 25: zitadel.auth.api.v1.PasswordChange + (*VerifyMfaOtp)(nil), // 26: zitadel.auth.api.v1.VerifyMfaOtp + (*MultiFactors)(nil), // 27: zitadel.auth.api.v1.MultiFactors + (*MultiFactor)(nil), // 28: zitadel.auth.api.v1.MultiFactor + (*MfaOtpResponse)(nil), // 29: zitadel.auth.api.v1.MfaOtpResponse + (*OIDCClientAuth)(nil), // 30: zitadel.auth.api.v1.OIDCClientAuth + (*MyProjectOrgSearchRequest)(nil), // 31: zitadel.auth.api.v1.MyProjectOrgSearchRequest + (*MyProjectOrgSearchQuery)(nil), // 32: zitadel.auth.api.v1.MyProjectOrgSearchQuery + (*MyProjectOrgSearchResponse)(nil), // 33: zitadel.auth.api.v1.MyProjectOrgSearchResponse + (*IsAdminResponse)(nil), // 34: zitadel.auth.api.v1.IsAdminResponse + (*Org)(nil), // 35: zitadel.auth.api.v1.Org + (*MyPermissions)(nil), // 36: zitadel.auth.api.v1.MyPermissions + (*timestamp.Timestamp)(nil), // 37: google.protobuf.Timestamp + (*empty.Empty)(nil), // 38: google.protobuf.Empty + (*_struct.Struct)(nil), // 39: google.protobuf.Struct } -func (m *VerifyUserInitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyUserInitRequest.Marshal(b, m, deterministic) -} -func (m *VerifyUserInitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyUserInitRequest.Merge(m, src) -} -func (m *VerifyUserInitRequest) XXX_Size() int { - return xxx_messageInfo_VerifyUserInitRequest.Size(m) -} -func (m *VerifyUserInitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyUserInitRequest.DiscardUnknown(m) +var file_auth_proto_depIdxs = []int32{ + 9, // 0: zitadel.auth.api.v1.UserSessionViews.user_sessions:type_name -> zitadel.auth.api.v1.UserSessionView + 0, // 1: zitadel.auth.api.v1.UserSessionView.auth_state:type_name -> zitadel.auth.api.v1.UserSessionState + 2, // 2: zitadel.auth.api.v1.User.state:type_name -> zitadel.auth.api.v1.UserState + 37, // 3: zitadel.auth.api.v1.User.creation_date:type_name -> google.protobuf.Timestamp + 37, // 4: zitadel.auth.api.v1.User.activation_date:type_name -> google.protobuf.Timestamp + 37, // 5: zitadel.auth.api.v1.User.change_date:type_name -> google.protobuf.Timestamp + 37, // 6: zitadel.auth.api.v1.User.last_login:type_name -> google.protobuf.Timestamp + 37, // 7: zitadel.auth.api.v1.User.password_changed:type_name -> google.protobuf.Timestamp + 3, // 8: zitadel.auth.api.v1.User.gender:type_name -> zitadel.auth.api.v1.Gender + 3, // 9: zitadel.auth.api.v1.UserProfile.gender:type_name -> zitadel.auth.api.v1.Gender + 3, // 10: zitadel.auth.api.v1.UpdateUserProfileRequest.gender:type_name -> zitadel.auth.api.v1.Gender + 28, // 11: zitadel.auth.api.v1.MultiFactors.mfas:type_name -> zitadel.auth.api.v1.MultiFactor + 4, // 12: zitadel.auth.api.v1.MultiFactor.type:type_name -> zitadel.auth.api.v1.MfaType + 5, // 13: zitadel.auth.api.v1.MultiFactor.state:type_name -> zitadel.auth.api.v1.MFAState + 5, // 14: zitadel.auth.api.v1.MfaOtpResponse.state:type_name -> zitadel.auth.api.v1.MFAState + 32, // 15: zitadel.auth.api.v1.MyProjectOrgSearchRequest.queries:type_name -> zitadel.auth.api.v1.MyProjectOrgSearchQuery + 6, // 16: zitadel.auth.api.v1.MyProjectOrgSearchQuery.key:type_name -> zitadel.auth.api.v1.MyProjectOrgSearchKey + 7, // 17: zitadel.auth.api.v1.MyProjectOrgSearchQuery.method:type_name -> zitadel.auth.api.v1.SearchMethod + 35, // 18: zitadel.auth.api.v1.MyProjectOrgSearchResponse.result:type_name -> zitadel.auth.api.v1.Org + 38, // 19: zitadel.auth.api.v1.AuthService.Healthz:input_type -> google.protobuf.Empty + 38, // 20: zitadel.auth.api.v1.AuthService.Ready:input_type -> google.protobuf.Empty + 38, // 21: zitadel.auth.api.v1.AuthService.Validate:input_type -> google.protobuf.Empty + 38, // 22: zitadel.auth.api.v1.AuthService.GetMyUserSessions:input_type -> google.protobuf.Empty + 38, // 23: zitadel.auth.api.v1.AuthService.GetMyUserProfile:input_type -> google.protobuf.Empty + 13, // 24: zitadel.auth.api.v1.AuthService.UpdateMyUserProfile:input_type -> zitadel.auth.api.v1.UpdateUserProfileRequest + 38, // 25: zitadel.auth.api.v1.AuthService.GetMyUserEmail:input_type -> google.protobuf.Empty + 17, // 26: zitadel.auth.api.v1.AuthService.ChangeMyUserEmail:input_type -> zitadel.auth.api.v1.UpdateUserEmailRequest + 15, // 27: zitadel.auth.api.v1.AuthService.VerifyMyUserEmail:input_type -> zitadel.auth.api.v1.VerifyMyUserEmailRequest + 38, // 28: zitadel.auth.api.v1.AuthService.ResendMyEmailVerificationMail:input_type -> google.protobuf.Empty + 38, // 29: zitadel.auth.api.v1.AuthService.GetMyUserPhone:input_type -> google.protobuf.Empty + 19, // 30: zitadel.auth.api.v1.AuthService.ChangeMyUserPhone:input_type -> zitadel.auth.api.v1.UpdateUserPhoneRequest + 20, // 31: zitadel.auth.api.v1.AuthService.VerifyMyUserPhone:input_type -> zitadel.auth.api.v1.VerifyUserPhoneRequest + 38, // 32: zitadel.auth.api.v1.AuthService.ResendMyPhoneVerificationCode:input_type -> google.protobuf.Empty + 38, // 33: zitadel.auth.api.v1.AuthService.GetMyUserAddress:input_type -> google.protobuf.Empty + 22, // 34: zitadel.auth.api.v1.AuthService.UpdateMyUserAddress:input_type -> zitadel.auth.api.v1.UpdateUserAddressRequest + 38, // 35: zitadel.auth.api.v1.AuthService.GetMyMfas:input_type -> google.protobuf.Empty + 24, // 36: zitadel.auth.api.v1.AuthService.SetMyPassword:input_type -> zitadel.auth.api.v1.PasswordRequest + 25, // 37: zitadel.auth.api.v1.AuthService.ChangeMyPassword:input_type -> zitadel.auth.api.v1.PasswordChange + 38, // 38: zitadel.auth.api.v1.AuthService.AddMfaOTP:input_type -> google.protobuf.Empty + 26, // 39: zitadel.auth.api.v1.AuthService.VerifyMfaOTP:input_type -> zitadel.auth.api.v1.VerifyMfaOtp + 38, // 40: zitadel.auth.api.v1.AuthService.RemoveMfaOTP:input_type -> google.protobuf.Empty + 10, // 41: zitadel.auth.api.v1.AuthService.GetUserByID:input_type -> zitadel.auth.api.v1.UserID + 31, // 42: zitadel.auth.api.v1.AuthService.SearchMyProjectOrgs:input_type -> zitadel.auth.api.v1.MyProjectOrgSearchRequest + 38, // 43: zitadel.auth.api.v1.AuthService.IsIamAdmin:input_type -> google.protobuf.Empty + 38, // 44: zitadel.auth.api.v1.AuthService.GetMyZitadelPermissions:input_type -> google.protobuf.Empty + 38, // 45: zitadel.auth.api.v1.AuthService.Healthz:output_type -> google.protobuf.Empty + 38, // 46: zitadel.auth.api.v1.AuthService.Ready:output_type -> google.protobuf.Empty + 39, // 47: zitadel.auth.api.v1.AuthService.Validate:output_type -> google.protobuf.Struct + 8, // 48: zitadel.auth.api.v1.AuthService.GetMyUserSessions:output_type -> zitadel.auth.api.v1.UserSessionViews + 12, // 49: zitadel.auth.api.v1.AuthService.GetMyUserProfile:output_type -> zitadel.auth.api.v1.UserProfile + 12, // 50: zitadel.auth.api.v1.AuthService.UpdateMyUserProfile:output_type -> zitadel.auth.api.v1.UserProfile + 14, // 51: zitadel.auth.api.v1.AuthService.GetMyUserEmail:output_type -> zitadel.auth.api.v1.UserEmail + 14, // 52: zitadel.auth.api.v1.AuthService.ChangeMyUserEmail:output_type -> zitadel.auth.api.v1.UserEmail + 38, // 53: zitadel.auth.api.v1.AuthService.VerifyMyUserEmail:output_type -> google.protobuf.Empty + 38, // 54: zitadel.auth.api.v1.AuthService.ResendMyEmailVerificationMail:output_type -> google.protobuf.Empty + 18, // 55: zitadel.auth.api.v1.AuthService.GetMyUserPhone:output_type -> zitadel.auth.api.v1.UserPhone + 18, // 56: zitadel.auth.api.v1.AuthService.ChangeMyUserPhone:output_type -> zitadel.auth.api.v1.UserPhone + 38, // 57: zitadel.auth.api.v1.AuthService.VerifyMyUserPhone:output_type -> google.protobuf.Empty + 38, // 58: zitadel.auth.api.v1.AuthService.ResendMyPhoneVerificationCode:output_type -> google.protobuf.Empty + 21, // 59: zitadel.auth.api.v1.AuthService.GetMyUserAddress:output_type -> zitadel.auth.api.v1.UserAddress + 21, // 60: zitadel.auth.api.v1.AuthService.UpdateMyUserAddress:output_type -> zitadel.auth.api.v1.UserAddress + 27, // 61: zitadel.auth.api.v1.AuthService.GetMyMfas:output_type -> zitadel.auth.api.v1.MultiFactors + 38, // 62: zitadel.auth.api.v1.AuthService.SetMyPassword:output_type -> google.protobuf.Empty + 38, // 63: zitadel.auth.api.v1.AuthService.ChangeMyPassword:output_type -> google.protobuf.Empty + 29, // 64: zitadel.auth.api.v1.AuthService.AddMfaOTP:output_type -> zitadel.auth.api.v1.MfaOtpResponse + 29, // 65: zitadel.auth.api.v1.AuthService.VerifyMfaOTP:output_type -> zitadel.auth.api.v1.MfaOtpResponse + 38, // 66: zitadel.auth.api.v1.AuthService.RemoveMfaOTP:output_type -> google.protobuf.Empty + 11, // 67: zitadel.auth.api.v1.AuthService.GetUserByID:output_type -> zitadel.auth.api.v1.User + 33, // 68: zitadel.auth.api.v1.AuthService.SearchMyProjectOrgs:output_type -> zitadel.auth.api.v1.MyProjectOrgSearchResponse + 34, // 69: zitadel.auth.api.v1.AuthService.IsIamAdmin:output_type -> zitadel.auth.api.v1.IsAdminResponse + 36, // 70: zitadel.auth.api.v1.AuthService.GetMyZitadelPermissions:output_type -> zitadel.auth.api.v1.MyPermissions + 45, // [45:71] is the sub-list for method output_type + 19, // [19:45] is the sub-list for method input_type + 19, // [19:19] is the sub-list for extension type_name + 19, // [19:19] is the sub-list for extension extendee + 0, // [0:19] is the sub-list for field type_name } -var xxx_messageInfo_VerifyUserInitRequest proto.InternalMessageInfo - -func (m *VerifyUserInitRequest) GetId() string { - if m != nil { - return m.Id +func init() { file_auth_proto_init() } +func file_auth_proto_init() { + if File_auth_proto != nil { + return } - return "" -} - -func (m *VerifyUserInitRequest) GetCode() string { - if m != nil { - return m.Code + if !protoimpl.UnsafeEnabled { + file_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserSessionViews); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserSessionView); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserProfile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserProfileRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserEmail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyMyUserEmailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyUserEmailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserEmailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserPhone); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserPhoneRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyUserPhoneRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserAddress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserAddressRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PasswordID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PasswordRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PasswordChange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyMfaOtp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiFactors); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiFactor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MfaOtpResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OIDCClientAuth); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MyProjectOrgSearchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MyProjectOrgSearchQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MyProjectOrgSearchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IsAdminResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Org); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_auth_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MyPermissions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return "" -} - -func (m *VerifyUserInitRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -func init() { - proto.RegisterEnum("zitadel.auth.api.v1.UserAgentState", UserAgentState_name, UserAgentState_value) - proto.RegisterEnum("zitadel.auth.api.v1.UserSessionState", UserSessionState_name, UserSessionState_value) - proto.RegisterEnum("zitadel.auth.api.v1.NextStepType", NextStepType_name, NextStepType_value) - proto.RegisterEnum("zitadel.auth.api.v1.AuthSessionType", AuthSessionType_name, AuthSessionType_value) - proto.RegisterEnum("zitadel.auth.api.v1.Prompt", Prompt_name, Prompt_value) - proto.RegisterEnum("zitadel.auth.api.v1.OIDCResponseType", OIDCResponseType_name, OIDCResponseType_value) - proto.RegisterEnum("zitadel.auth.api.v1.CodeChallengeMethod", CodeChallengeMethod_name, CodeChallengeMethod_value) - proto.RegisterEnum("zitadel.auth.api.v1.UserState", UserState_name, UserState_value) - proto.RegisterEnum("zitadel.auth.api.v1.Gender", Gender_name, Gender_value) - proto.RegisterEnum("zitadel.auth.api.v1.NotificationType", NotificationType_name, NotificationType_value) - proto.RegisterEnum("zitadel.auth.api.v1.MfaType", MfaType_name, MfaType_value) - proto.RegisterEnum("zitadel.auth.api.v1.MFAState", MFAState_name, MFAState_value) - proto.RegisterEnum("zitadel.auth.api.v1.AppState", AppState_name, AppState_value) - proto.RegisterEnum("zitadel.auth.api.v1.OIDCGrantType", OIDCGrantType_name, OIDCGrantType_value) - proto.RegisterEnum("zitadel.auth.api.v1.OIDCApplicationType", OIDCApplicationType_name, OIDCApplicationType_value) - proto.RegisterEnum("zitadel.auth.api.v1.OIDCAuthMethodType", OIDCAuthMethodType_name, OIDCAuthMethodType_value) - proto.RegisterEnum("zitadel.auth.api.v1.ApplicationSearchKey", ApplicationSearchKey_name, ApplicationSearchKey_value) - proto.RegisterEnum("zitadel.auth.api.v1.SearchMethod", SearchMethod_name, SearchMethod_value) - proto.RegisterEnum("zitadel.auth.api.v1.GrantSearchKey", GrantSearchKey_name, GrantSearchKey_value) - proto.RegisterEnum("zitadel.auth.api.v1.MyProjectOrgSearchKey", MyProjectOrgSearchKey_name, MyProjectOrgSearchKey_value) - proto.RegisterType((*SessionRequest)(nil), "zitadel.auth.api.v1.SessionRequest") - proto.RegisterType((*UserAgent)(nil), "zitadel.auth.api.v1.UserAgent") - proto.RegisterType((*UserAgentID)(nil), "zitadel.auth.api.v1.UserAgentID") - proto.RegisterType((*UserAgentCreation)(nil), "zitadel.auth.api.v1.UserAgentCreation") - proto.RegisterType((*UserAgents)(nil), "zitadel.auth.api.v1.UserAgents") - proto.RegisterType((*AuthSessionCreation)(nil), "zitadel.auth.api.v1.AuthSessionCreation") - proto.RegisterType((*AuthSessionResponse)(nil), "zitadel.auth.api.v1.AuthSessionResponse") - proto.RegisterType((*AuthSessionView)(nil), "zitadel.auth.api.v1.AuthSessionView") - proto.RegisterType((*TokenID)(nil), "zitadel.auth.api.v1.TokenID") - proto.RegisterType((*UserSessionID)(nil), "zitadel.auth.api.v1.UserSessionID") - proto.RegisterType((*UserSessions)(nil), "zitadel.auth.api.v1.UserSessions") - proto.RegisterType((*UserSession)(nil), "zitadel.auth.api.v1.UserSession") - proto.RegisterType((*UserSessionViews)(nil), "zitadel.auth.api.v1.UserSessionViews") - proto.RegisterType((*UserSessionView)(nil), "zitadel.auth.api.v1.UserSessionView") - proto.RegisterType((*AuthUser)(nil), "zitadel.auth.api.v1.AuthUser") - proto.RegisterType((*AuthSessionID)(nil), "zitadel.auth.api.v1.AuthSessionID") - proto.RegisterType((*SelectUserRequest)(nil), "zitadel.auth.api.v1.SelectUserRequest") - proto.RegisterType((*VerifyUserRequest)(nil), "zitadel.auth.api.v1.VerifyUserRequest") - proto.RegisterType((*VerifyPasswordRequest)(nil), "zitadel.auth.api.v1.VerifyPasswordRequest") - proto.RegisterType((*VerifyMfaRequest)(nil), "zitadel.auth.api.v1.VerifyMfaRequest") - proto.RegisterType((*AuthSessionMultiFactorOTP)(nil), "zitadel.auth.api.v1.AuthSessionMultiFactorOTP") - proto.RegisterType((*NextStep)(nil), "zitadel.auth.api.v1.NextStep") - proto.RegisterType((*LoginData)(nil), "zitadel.auth.api.v1.LoginData") - proto.RegisterType((*PasswordData)(nil), "zitadel.auth.api.v1.PasswordData") - proto.RegisterType((*MfaVerifyData)(nil), "zitadel.auth.api.v1.MfaVerifyData") - proto.RegisterType((*MfaPromptData)(nil), "zitadel.auth.api.v1.MfaPromptData") - proto.RegisterType((*ChooseUserData)(nil), "zitadel.auth.api.v1.ChooseUserData") - proto.RegisterType((*ChooseUser)(nil), "zitadel.auth.api.v1.ChooseUser") - proto.RegisterType((*SkipMfaInitRequest)(nil), "zitadel.auth.api.v1.SkipMfaInitRequest") - proto.RegisterType((*BrowserInformation)(nil), "zitadel.auth.api.v1.BrowserInformation") - proto.RegisterType((*IP)(nil), "zitadel.auth.api.v1.IP") - proto.RegisterType((*AuthRequestOIDC)(nil), "zitadel.auth.api.v1.AuthRequestOIDC") - proto.RegisterType((*CodeChallenge)(nil), "zitadel.auth.api.v1.CodeChallenge") - proto.RegisterType((*UserID)(nil), "zitadel.auth.api.v1.UserID") - proto.RegisterType((*UniqueUserRequest)(nil), "zitadel.auth.api.v1.UniqueUserRequest") - proto.RegisterType((*UniqueUserResponse)(nil), "zitadel.auth.api.v1.UniqueUserResponse") - proto.RegisterType((*RegisterUserRequest)(nil), "zitadel.auth.api.v1.RegisterUserRequest") - proto.RegisterType((*RegisterUserExternalIDPRequest)(nil), "zitadel.auth.api.v1.RegisterUserExternalIDPRequest") - proto.RegisterType((*IDPProvider)(nil), "zitadel.auth.api.v1.IDPProvider") - proto.RegisterType((*User)(nil), "zitadel.auth.api.v1.User") - proto.RegisterType((*UserProfile)(nil), "zitadel.auth.api.v1.UserProfile") - proto.RegisterType((*UpdateUserProfileRequest)(nil), "zitadel.auth.api.v1.UpdateUserProfileRequest") - proto.RegisterType((*UserEmail)(nil), "zitadel.auth.api.v1.UserEmail") - proto.RegisterType((*VerifyMyUserEmailRequest)(nil), "zitadel.auth.api.v1.VerifyMyUserEmailRequest") - proto.RegisterType((*VerifyUserEmailRequest)(nil), "zitadel.auth.api.v1.VerifyUserEmailRequest") - proto.RegisterType((*UpdateUserEmailRequest)(nil), "zitadel.auth.api.v1.UpdateUserEmailRequest") - proto.RegisterType((*UserPhone)(nil), "zitadel.auth.api.v1.UserPhone") - proto.RegisterType((*UpdateUserPhoneRequest)(nil), "zitadel.auth.api.v1.UpdateUserPhoneRequest") - proto.RegisterType((*VerifyUserPhoneRequest)(nil), "zitadel.auth.api.v1.VerifyUserPhoneRequest") - proto.RegisterType((*UserAddress)(nil), "zitadel.auth.api.v1.UserAddress") - proto.RegisterType((*UpdateUserAddressRequest)(nil), "zitadel.auth.api.v1.UpdateUserAddressRequest") - proto.RegisterType((*PasswordID)(nil), "zitadel.auth.api.v1.PasswordID") - proto.RegisterType((*PasswordRequest)(nil), "zitadel.auth.api.v1.PasswordRequest") - proto.RegisterType((*ResetPasswordRequest)(nil), "zitadel.auth.api.v1.ResetPasswordRequest") - proto.RegisterType((*ResetPassword)(nil), "zitadel.auth.api.v1.ResetPassword") - proto.RegisterType((*SetPasswordNotificationRequest)(nil), "zitadel.auth.api.v1.SetPasswordNotificationRequest") - proto.RegisterType((*PasswordChange)(nil), "zitadel.auth.api.v1.PasswordChange") - proto.RegisterType((*VerifyMfaOtp)(nil), "zitadel.auth.api.v1.VerifyMfaOtp") - proto.RegisterType((*MultiFactors)(nil), "zitadel.auth.api.v1.MultiFactors") - proto.RegisterType((*MultiFactor)(nil), "zitadel.auth.api.v1.MultiFactor") - proto.RegisterType((*MfaOtpResponse)(nil), "zitadel.auth.api.v1.MfaOtpResponse") - proto.RegisterType((*ApplicationID)(nil), "zitadel.auth.api.v1.ApplicationID") - proto.RegisterType((*Application)(nil), "zitadel.auth.api.v1.Application") - proto.RegisterType((*OIDCConfig)(nil), "zitadel.auth.api.v1.OIDCConfig") - proto.RegisterType((*ApplicationSearchRequest)(nil), "zitadel.auth.api.v1.ApplicationSearchRequest") - proto.RegisterType((*ApplicationSearchQuery)(nil), "zitadel.auth.api.v1.ApplicationSearchQuery") - proto.RegisterType((*ApplicationSearchResponse)(nil), "zitadel.auth.api.v1.ApplicationSearchResponse") - proto.RegisterType((*ApplicationAuthorizeRequest)(nil), "zitadel.auth.api.v1.ApplicationAuthorizeRequest") - proto.RegisterType((*OIDCClientAuth)(nil), "zitadel.auth.api.v1.OIDCClientAuth") - proto.RegisterType((*GrantSearchRequest)(nil), "zitadel.auth.api.v1.GrantSearchRequest") - proto.RegisterType((*GrantSearchQuery)(nil), "zitadel.auth.api.v1.GrantSearchQuery") - proto.RegisterType((*GrantSearchResponse)(nil), "zitadel.auth.api.v1.GrantSearchResponse") - proto.RegisterType((*Grant)(nil), "zitadel.auth.api.v1.Grant") - proto.RegisterType((*MyProjectOrgSearchRequest)(nil), "zitadel.auth.api.v1.MyProjectOrgSearchRequest") - proto.RegisterType((*MyProjectOrgSearchQuery)(nil), "zitadel.auth.api.v1.MyProjectOrgSearchQuery") - proto.RegisterType((*MyProjectOrgSearchResponse)(nil), "zitadel.auth.api.v1.MyProjectOrgSearchResponse") - proto.RegisterType((*IsAdminResponse)(nil), "zitadel.auth.api.v1.IsAdminResponse") - proto.RegisterType((*Org)(nil), "zitadel.auth.api.v1.Org") - proto.RegisterType((*CreateTokenRequest)(nil), "zitadel.auth.api.v1.CreateTokenRequest") - proto.RegisterType((*Token)(nil), "zitadel.auth.api.v1.Token") - proto.RegisterType((*MyPermissions)(nil), "zitadel.auth.api.v1.MyPermissions") - proto.RegisterType((*VerifyUserInitRequest)(nil), "zitadel.auth.api.v1.VerifyUserInitRequest") -} - -func init() { proto.RegisterFile("auth.proto", fileDescriptor_8bbd6f3875b0e874) } - -var fileDescriptor_8bbd6f3875b0e874 = []byte{ - // 6219 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x7c, 0xdd, 0x6f, 0x1b, 0xd9, - 0x75, 0xb8, 0x87, 0xa4, 0x3e, 0x78, 0x48, 0x4a, 0xa3, 0x2b, 0x59, 0xa6, 0x28, 0x7f, 0xc8, 0x63, - 0x3b, 0xb6, 0xb5, 0x6b, 0x71, 0xd7, 0xfb, 0x91, 0xb5, 0xf3, 0xc3, 0x6f, 0x43, 0x91, 0x63, 0x89, - 0x6b, 0x89, 0x64, 0x86, 0xb4, 0x37, 0xbb, 0x45, 0xca, 0x8c, 0xc9, 0x2b, 0x7a, 0xd6, 0x24, 0x87, - 0x9e, 0x19, 0xca, 0xab, 0x6d, 0x17, 0x2d, 0xb6, 0x41, 0x90, 0xe6, 0x25, 0x69, 0xfa, 0x11, 0x20, - 0x2d, 0x10, 0xa0, 0x2d, 0x0a, 0x14, 0x08, 0xd0, 0xb4, 0x45, 0xd3, 0xbc, 0xe5, 0xb5, 0xef, 0xed, - 0x5f, 0x10, 0x14, 0x28, 0xd2, 0xfc, 0x01, 0x05, 0x16, 0x6d, 0x51, 0xdc, 0x8f, 0x19, 0xde, 0x19, - 0xce, 0x90, 0x54, 0x6c, 0xe7, 0x29, 0x4f, 0xd2, 0xdc, 0x7b, 0xee, 0x39, 0xe7, 0x9e, 0xaf, 0x7b, - 0xee, 0x99, 0x33, 0x04, 0xd0, 0x87, 0xce, 0xe3, 0x9d, 0x81, 0x65, 0x3a, 0x26, 0x5a, 0xfd, 0xc4, - 0x70, 0xf4, 0x36, 0xee, 0xee, 0xd0, 0x31, 0x7d, 0x60, 0xec, 0x1c, 0xbf, 0x9e, 0x3b, 0xdf, 0x31, - 0xcd, 0x4e, 0x17, 0xe7, 0xf5, 0x81, 0x91, 0xd7, 0xfb, 0x7d, 0xd3, 0xd1, 0x1d, 0xc3, 0xec, 0xdb, - 0x6c, 0x49, 0x6e, 0x93, 0xcf, 0xd2, 0xa7, 0x47, 0xc3, 0xa3, 0x3c, 0xee, 0x0d, 0x9c, 0x13, 0x3e, - 0x79, 0x3e, 0x38, 0x69, 0x3b, 0xd6, 0xb0, 0xe5, 0xf0, 0xd9, 0x4b, 0xc1, 0x59, 0xc7, 0xe8, 0x61, - 0xdb, 0xd1, 0x7b, 0x03, 0x0e, 0x70, 0xee, 0x58, 0xef, 0x1a, 0x6d, 0xdd, 0xc1, 0x79, 0xf7, 0x1f, - 0x3e, 0xf1, 0x2a, 0xfd, 0xd3, 0xba, 0xd5, 0xc1, 0xfd, 0x5b, 0xf6, 0x33, 0xbd, 0xd3, 0xc1, 0x56, - 0xde, 0x1c, 0x50, 0xb6, 0x42, 0x58, 0xcc, 0x92, 0xdd, 0xb0, 0x69, 0x17, 0x8a, 0xcd, 0x28, 0x43, - 0x58, 0xaa, 0x63, 0xdb, 0x36, 0xcc, 0xbe, 0x86, 0x9f, 0x0e, 0xb1, 0xed, 0xa0, 0x73, 0xb0, 0x30, - 0xb4, 0xb1, 0xd5, 0x34, 0xda, 0x59, 0x69, 0x4b, 0xba, 0x91, 0xd4, 0xe6, 0xc9, 0x63, 0xb9, 0x8d, - 0xde, 0x83, 0xf4, 0x23, 0xcb, 0x7c, 0x46, 0xe7, 0xfa, 0x47, 0x66, 0x36, 0xb6, 0x25, 0xdd, 0x48, - 0xdd, 0xbe, 0xbe, 0x13, 0x22, 0xb1, 0x9d, 0x5d, 0x06, 0x58, 0xee, 0x1f, 0x99, 0x56, 0x8f, 0xb2, - 0xa2, 0xa5, 0x1e, 0x8d, 0xc6, 0x94, 0xbf, 0x94, 0x20, 0xf9, 0xc0, 0xc6, 0x56, 0xa1, 0x83, 0xfb, - 0x0e, 0x5a, 0x82, 0x98, 0x47, 0x2d, 0x66, 0xbc, 0x50, 0x4a, 0xe8, 0x0e, 0xcc, 0xd9, 0x8e, 0xee, - 0xe0, 0x6c, 0x7c, 0x4b, 0xba, 0xb1, 0x74, 0xfb, 0x4a, 0x28, 0x12, 0x8f, 0x95, 0x3a, 0x01, 0xd5, - 0xd8, 0x0a, 0xe5, 0x02, 0xa4, 0xbc, 0x89, 0x72, 0x29, 0xc8, 0xa5, 0x62, 0xc0, 0x8a, 0x37, 0x5d, - 0xb4, 0x30, 0xa5, 0x8d, 0x1a, 0x01, 0xd6, 0xa5, 0x53, 0xb1, 0xbe, 0xbb, 0xf8, 0xf9, 0xee, 0xdc, - 0xb7, 0xa5, 0x98, 0x2c, 0xf9, 0xc5, 0xb5, 0x0f, 0xe0, 0x91, 0xb2, 0xd1, 0x5d, 0x58, 0xb4, 0x99, - 0xce, 0xec, 0xac, 0xb4, 0x15, 0xbf, 0x91, 0xba, 0x7d, 0x71, 0xf2, 0xae, 0x34, 0x0f, 0x5e, 0xf9, - 0xaf, 0x04, 0xac, 0x16, 0x86, 0xce, 0x63, 0xae, 0x74, 0x8f, 0x6f, 0x05, 0x16, 0x75, 0x02, 0xea, - 0xa9, 0x7d, 0x77, 0xe1, 0xf3, 0xdd, 0x84, 0x45, 0x38, 0x59, 0xa0, 0x13, 0xe5, 0x36, 0x7a, 0x07, - 0x12, 0xce, 0xc9, 0x00, 0x53, 0x75, 0x2c, 0xdd, 0xbe, 0x1a, 0x4a, 0x53, 0xc0, 0xdd, 0x38, 0x19, - 0x60, 0x8d, 0xae, 0x18, 0x93, 0x4a, 0xfc, 0x45, 0x48, 0x05, 0x5d, 0x85, 0x64, 0xab, 0x6b, 0x70, - 0xa6, 0x13, 0x7e, 0xa6, 0x17, 0xd9, 0x4c, 0xb9, 0x8d, 0xb6, 0x21, 0x6d, 0xe1, 0xb6, 0x61, 0xe1, - 0x96, 0xd3, 0x1c, 0x5a, 0x46, 0x76, 0xce, 0x0f, 0x98, 0x72, 0x27, 0x1f, 0x58, 0x06, 0x5a, 0x73, - 0x8d, 0x65, 0x9e, 0x6a, 0x99, 0x3d, 0xa0, 0x37, 0x60, 0x7e, 0x60, 0x99, 0xbd, 0x81, 0x93, 0x5d, - 0xa0, 0x3b, 0xdf, 0x0c, 0xe5, 0xbb, 0x46, 0x41, 0x34, 0x0e, 0x8a, 0xde, 0x85, 0xf3, 0x64, 0xb6, - 0xd9, 0x32, 0xfb, 0x0e, 0xfe, 0xd8, 0x69, 0xb6, 0xba, 0xba, 0x6d, 0x37, 0x2d, 0x7c, 0x84, 0x2d, - 0xdc, 0x6f, 0xe1, 0xec, 0xe2, 0x56, 0xfc, 0x46, 0x52, 0xdb, 0x20, 0x30, 0x45, 0x06, 0x52, 0x24, - 0x10, 0x9a, 0x0b, 0x80, 0x2e, 0x00, 0x0c, 0x8d, 0x66, 0xd7, 0x6c, 0xe9, 0x5d, 0x6c, 0x67, 0x93, - 0x14, 0x3c, 0x39, 0x34, 0x0e, 0xd8, 0x00, 0x99, 0xee, 0x9a, 0x1d, 0xa3, 0xdf, 0x7c, 0x6c, 0xf4, - 0x9d, 0x2c, 0x50, 0x7e, 0x93, 0x74, 0x64, 0xdf, 0xe8, 0x53, 0x2f, 0xee, 0xe9, 0x1f, 0x37, 0xf5, - 0x0e, 0xce, 0xa6, 0xb6, 0xa4, 0x1b, 0x19, 0x6d, 0xbe, 0xa7, 0x7f, 0x5c, 0xe8, 0x60, 0x74, 0x17, - 0x12, 0xa6, 0xd1, 0x6e, 0x65, 0xd3, 0x54, 0x05, 0xd1, 0x4a, 0xe4, 0xe1, 0xa0, 0x5a, 0x2e, 0x15, - 0xf7, 0xcf, 0x68, 0x74, 0x0d, 0xda, 0x81, 0xd5, 0x81, 0x85, 0x6d, 0xdc, 0xc5, 0x2d, 0x07, 0xb7, - 0x9b, 0x6e, 0x98, 0xc8, 0x50, 0xe2, 0x2b, 0xc2, 0xd4, 0x03, 0x1a, 0x31, 0x76, 0x53, 0x90, 0x24, - 0xea, 0xa7, 0x3a, 0x57, 0x7e, 0x38, 0xe7, 0xb3, 0x3c, 0x0d, 0xdb, 0x03, 0xb3, 0x6f, 0x63, 0xb4, - 0x11, 0xb4, 0xbc, 0x91, 0xc1, 0x31, 0x8f, 0x8b, 0x79, 0x71, 0xc1, 0x35, 0xc0, 0xf8, 0xa9, 0x0d, - 0x70, 0x73, 0xcc, 0x54, 0x04, 0x0b, 0xb9, 0x1c, 0x66, 0x21, 0xbf, 0x31, 0x8c, 0x53, 0x18, 0x46, - 0x09, 0x96, 0x06, 0xa6, 0x6d, 0x1b, 0x8f, 0xba, 0xb8, 0x69, 0x3b, 0x78, 0x60, 0x67, 0x33, 0x34, - 0x2e, 0x5d, 0x08, 0xc5, 0x52, 0xc1, 0x1f, 0x3b, 0x75, 0x07, 0x0f, 0xb4, 0x8c, 0xbb, 0x88, 0x3c, - 0xd9, 0xe8, 0x55, 0x40, 0x03, 0xcb, 0xfc, 0x88, 0xa8, 0xc1, 0x53, 0x96, 0x9d, 0x5d, 0xa2, 0x1b, - 0x94, 0xf9, 0x4c, 0x91, 0x2b, 0xcd, 0x46, 0x45, 0x48, 0x53, 0x03, 0xe4, 0xa1, 0x2d, 0xbb, 0x4c, - 0xf9, 0xde, 0x8a, 0x8c, 0x84, 0xae, 0xdd, 0xa5, 0x86, 0xa3, 0x07, 0xbf, 0x85, 0xfe, 0x77, 0x0c, - 0x96, 0x05, 0xf3, 0x79, 0x68, 0xe0, 0x67, 0x93, 0xac, 0xf3, 0x0b, 0xb0, 0x4c, 0x15, 0xc9, 0x19, - 0x68, 0x7a, 0xa6, 0x9a, 0xd1, 0x47, 0x48, 0xca, 0x2f, 0xcd, 0x6a, 0xbf, 0x00, 0xcb, 0xe2, 0xfe, - 0x09, 0x08, 0x33, 0xdc, 0x8c, 0xb0, 0xc1, 0x72, 0x3b, 0x42, 0xaa, 0xf3, 0x11, 0x52, 0xdd, 0x80, - 0x45, 0xc7, 0x7c, 0x82, 0x29, 0xba, 0x05, 0xb6, 0x5f, 0xfa, 0x5c, 0x6e, 0x23, 0x15, 0x64, 0x36, - 0x85, 0x3f, 0x1e, 0x18, 0x16, 0x8d, 0xcc, 0xd9, 0x45, 0x2a, 0xf4, 0xdc, 0x0e, 0xcb, 0x63, 0x76, - 0xdc, 0x3c, 0x66, 0xa7, 0xe1, 0xe6, 0x31, 0xda, 0x32, 0x5d, 0xa3, 0x7a, 0x4b, 0xc4, 0xfc, 0x22, - 0x29, 0xe6, 0x17, 0xca, 0x06, 0x2c, 0x34, 0x28, 0xa9, 0xf1, 0xa3, 0xf6, 0x2e, 0x64, 0x04, 0x15, - 0x8e, 0x03, 0xf8, 0xd4, 0x14, 0xf3, 0xa9, 0x49, 0x79, 0x00, 0x69, 0x61, 0xad, 0x8d, 0x54, 0xc8, - 0x88, 0x72, 0x73, 0x8f, 0xd0, 0xe9, 0x86, 0x93, 0x16, 0xe4, 0x6a, 0x2b, 0xff, 0x19, 0x63, 0xd9, - 0x01, 0x1f, 0x38, 0x05, 0x47, 0xa8, 0xc4, 0x32, 0xce, 0xa6, 0x98, 0x97, 0x5c, 0x9b, 0x46, 0x9e, - 0x65, 0x26, 0x49, 0x6a, 0x5a, 0x34, 0xf8, 0xbc, 0x0e, 0x09, 0xc2, 0x10, 0xb5, 0x8b, 0x28, 0x4f, - 0x23, 0x66, 0x45, 0x70, 0x68, 0x14, 0x14, 0xbd, 0x02, 0x2b, 0x03, 0xdd, 0xb6, 0x9f, 0x99, 0x56, - 0xbb, 0x79, 0x8c, 0x2d, 0xe3, 0xc8, 0xc0, 0xcc, 0x68, 0x16, 0x35, 0xd9, 0x9d, 0x78, 0xc8, 0xc7, - 0xd1, 0x0e, 0xc4, 0x7b, 0x47, 0x3a, 0x0d, 0x78, 0x4b, 0xb7, 0xcf, 0x87, 0xa2, 0x3f, 0x3c, 0xd2, - 0xa9, 0xb5, 0x12, 0x40, 0x12, 0x45, 0x7b, 0x47, 0xfa, 0x08, 0xef, 0x02, 0xc5, 0x9b, 0xea, 0x1d, - 0xe9, 0x1e, 0xca, 0x2f, 0x02, 0xe5, 0xbf, 0x49, 0xb2, 0xdc, 0x19, 0x4c, 0x67, 0x91, 0x00, 0x93, - 0x47, 0xe5, 0x6b, 0x20, 0x0b, 0xa2, 0x20, 0x8e, 0x69, 0xa3, 0x72, 0xb8, 0x1e, 0xaf, 0x4e, 0x13, - 0x24, 0x59, 0x1d, 0xd0, 0xe5, 0x4f, 0x25, 0x58, 0x0e, 0x40, 0xfc, 0xfa, 0xf5, 0x29, 0xf8, 0x45, - 0xc2, 0x97, 0x77, 0x6f, 0x42, 0x92, 0x4e, 0xf4, 0xf5, 0x1e, 0xe6, 0x2e, 0xbe, 0x48, 0x06, 0x2a, - 0x7a, 0x0f, 0x2b, 0x5f, 0x86, 0x45, 0x57, 0xc9, 0xd1, 0x99, 0xbb, 0x0f, 0x43, 0x2c, 0x80, 0xe1, - 0x9b, 0x12, 0x64, 0x84, 0xf0, 0x73, 0x2a, 0xe7, 0x1a, 0xcb, 0xd4, 0xe3, 0xcf, 0x71, 0x27, 0xf8, - 0x37, 0x09, 0x56, 0xea, 0x34, 0x81, 0xa0, 0x26, 0xcb, 0xaf, 0x23, 0x2f, 0x20, 0x00, 0x87, 0x44, - 0xca, 0x78, 0x58, 0xa4, 0x0c, 0x66, 0xa9, 0x89, 0x17, 0x92, 0xbb, 0xff, 0x87, 0x04, 0x2b, 0xd4, - 0x03, 0x4e, 0xc4, 0x6d, 0xcd, 0x92, 0x6f, 0xe7, 0x23, 0xf6, 0x37, 0x02, 0x0d, 0x6c, 0xf4, 0xba, - 0xa8, 0x67, 0xba, 0xc5, 0x5d, 0xf8, 0x7c, 0x77, 0xc1, 0x9a, 0x93, 0xa5, 0xec, 0xbf, 0x48, 0x23, - 0x9d, 0xbf, 0xa4, 0x9d, 0xfe, 0x42, 0x82, 0xb3, 0x6c, 0xa7, 0x35, 0x1e, 0x4c, 0x5e, 0xea, 0x6e, - 0xaf, 0xc1, 0xa2, 0x1b, 0xb4, 0xf8, 0x66, 0x93, 0x9f, 0xef, 0xce, 0x5b, 0x09, 0x59, 0xca, 0xee, - 0x6b, 0xde, 0xd4, 0x4b, 0xda, 0xeb, 0xff, 0x4a, 0x20, 0xb3, 0xbd, 0x1e, 0x1e, 0xe9, 0x2f, 0x75, - 0x9b, 0x2f, 0xd0, 0xc5, 0xd0, 0x2e, 0xc4, 0x4d, 0x67, 0xc0, 0x45, 0xb0, 0x33, 0x2d, 0x13, 0x39, - 0x1c, 0x76, 0x1d, 0xe3, 0x9e, 0xde, 0x72, 0x4c, 0xab, 0xda, 0xa8, 0xed, 0x9f, 0xd1, 0xc8, 0xe2, - 0xdd, 0x39, 0x7a, 0x2e, 0x28, 0x77, 0x60, 0x23, 0x12, 0x14, 0x9d, 0x87, 0x44, 0xcb, 0x6c, 0x63, - 0x2e, 0x04, 0x22, 0x42, 0x2b, 0x4e, 0x2c, 0x90, 0x8e, 0x2a, 0x7f, 0x12, 0x87, 0x45, 0x37, 0x07, - 0x44, 0x6f, 0xf1, 0xec, 0x48, 0xa2, 0x61, 0xf3, 0xf2, 0xc4, 0x84, 0x51, 0x48, 0x8d, 0xde, 0x86, - 0x39, 0x9a, 0xd3, 0xf2, 0xda, 0x40, 0xf8, 0x05, 0xf8, 0x80, 0x40, 0x94, 0x74, 0x47, 0xdf, 0x3f, - 0xa3, 0x31, 0x70, 0xf4, 0x6e, 0xc0, 0x68, 0x52, 0x11, 0x24, 0x5d, 0x0b, 0xe6, 0xab, 0x47, 0xe6, - 0x54, 0x04, 0xf0, 0x8e, 0xb9, 0x13, 0x2e, 0x49, 0x25, 0xea, 0x74, 0x64, 0x16, 0xc2, 0x71, 0x24, - 0xdd, 0xa3, 0xf0, 0xc4, 0x45, 0xc2, 0x2f, 0x0f, 0x73, 0x93, 0x91, 0xb0, 0xfb, 0x83, 0x80, 0x84, - 0x0d, 0xa0, 0x7b, 0x90, 0x6a, 0x3d, 0x36, 0x4d, 0x1b, 0xd3, 0x8b, 0x18, 0x3d, 0xa8, 0x53, 0x11, - 0xf5, 0x8d, 0x22, 0x85, 0x23, 0xf1, 0x87, 0xa3, 0x81, 0x96, 0x37, 0xb2, 0x3b, 0x0f, 0x89, 0xb6, - 0xee, 0xe8, 0xca, 0x55, 0x48, 0x7a, 0x02, 0x23, 0x67, 0x09, 0xb6, 0xac, 0x66, 0xcf, 0xee, 0xb8, - 0x67, 0x09, 0xb6, 0xac, 0x43, 0xbb, 0xa3, 0x1c, 0x40, 0x5a, 0x94, 0x4d, 0x24, 0x20, 0xba, 0x02, - 0x99, 0x23, 0xdd, 0xe8, 0x0e, 0x2d, 0xdc, 0x6c, 0x99, 0xc3, 0xbe, 0x43, 0x35, 0x95, 0xd1, 0xd2, - 0x7c, 0xb0, 0x48, 0xc6, 0x94, 0xef, 0x4a, 0x90, 0xf1, 0xc9, 0xe9, 0xf9, 0xf0, 0xa1, 0x02, 0x64, - 0xb8, 0x60, 0x8f, 0x8d, 0x36, 0xb6, 0xec, 0x6c, 0x7c, 0x2b, 0x3e, 0x35, 0x7d, 0x49, 0x33, 0x99, - 0xb2, 0x15, 0x4a, 0x9f, 0x72, 0x34, 0x12, 0x3a, 0xca, 0xc1, 0xa2, 0x85, 0x9f, 0x0e, 0x0d, 0x0b, - 0x33, 0xaf, 0x5e, 0xd4, 0xbc, 0xe7, 0x71, 0x7a, 0xb1, 0x53, 0xd3, 0xdb, 0x83, 0x25, 0xbf, 0x7a, - 0xd0, 0x5b, 0x30, 0x47, 0x34, 0xea, 0x66, 0x34, 0x97, 0xa6, 0xa8, 0x54, 0x63, 0xd0, 0xca, 0xcf, - 0x24, 0x80, 0xd1, 0x68, 0xd8, 0xa9, 0x27, 0x85, 0x9d, 0x7a, 0x42, 0xd6, 0x10, 0x8b, 0xce, 0x1a, - 0xe2, 0xfe, 0xac, 0x01, 0xd5, 0x01, 0xf9, 0xb0, 0xb3, 0xdc, 0x27, 0x71, 0x9a, 0xdc, 0x47, 0x1e, - 0x06, 0x46, 0x94, 0x5b, 0x80, 0xea, 0x4f, 0x8c, 0xc1, 0xe1, 0x91, 0x5e, 0xee, 0x1b, 0xce, 0xb4, - 0x82, 0xa4, 0xf2, 0x17, 0x12, 0xa0, 0xf1, 0x88, 0x47, 0xef, 0xc7, 0x04, 0x9e, 0x46, 0x5c, 0xbe, - 0x84, 0xee, 0x84, 0x15, 0x1b, 0xff, 0x3f, 0x24, 0x2d, 0xdc, 0x33, 0x1d, 0xdc, 0x34, 0x06, 0x3c, - 0x7a, 0x9c, 0x0b, 0x65, 0xb8, 0x5c, 0x13, 0x82, 0xff, 0x22, 0x5b, 0x53, 0x1e, 0xa0, 0xeb, 0xb0, - 0xac, 0xb7, 0x5a, 0x78, 0xe0, 0x34, 0xbb, 0x7a, 0xbf, 0x33, 0x24, 0x17, 0x69, 0x26, 0x9c, 0x25, - 0x36, 0x7c, 0xc0, 0x47, 0x95, 0xab, 0x10, 0x2b, 0xd7, 0x48, 0x32, 0xf5, 0xf0, 0x4d, 0x37, 0x99, - 0x7a, 0xf8, 0x26, 0x7d, 0x7e, 0xdb, 0xad, 0x69, 0x3c, 0x7c, 0x9b, 0x64, 0x3d, 0xcb, 0x81, 0x6b, - 0x35, 0xad, 0x36, 0xb4, 0x4c, 0x1a, 0x14, 0xe3, 0xb4, 0xda, 0x40, 0x1e, 0xd0, 0x7b, 0x90, 0xb1, - 0x78, 0xd1, 0xa4, 0x29, 0xd4, 0xe1, 0xc2, 0xa5, 0x4d, 0xf0, 0xb8, 0x25, 0x16, 0x66, 0x74, 0x96, - 0xf0, 0x44, 0x28, 0xf4, 0xcd, 0x7e, 0xcb, 0x65, 0x9d, 0x3d, 0xa0, 0x32, 0x2c, 0x91, 0x00, 0xdd, - 0x6c, 0x3d, 0xd6, 0xbb, 0x5d, 0xdc, 0xef, 0xe0, 0x89, 0xf1, 0xad, 0x68, 0xb6, 0x71, 0xd1, 0x85, - 0xd4, 0x32, 0x2d, 0xf1, 0x51, 0x31, 0x21, 0xe3, 0x9b, 0x47, 0xe7, 0x21, 0x39, 0x42, 0xcb, 0x95, - 0xe2, 0x0d, 0xa0, 0x2f, 0xc3, 0x7c, 0x0f, 0x3b, 0x8f, 0xcd, 0x36, 0xdf, 0xd4, 0x8d, 0xe9, 0x14, - 0x0f, 0x29, 0xbc, 0xc6, 0xd7, 0x29, 0x59, 0x98, 0xa7, 0x55, 0xa7, 0xf1, 0xcb, 0xe3, 0x6f, 0xc3, - 0xca, 0x83, 0xbe, 0xf1, 0x74, 0x88, 0xc5, 0xfc, 0xcb, 0x97, 0x2a, 0x49, 0x13, 0x52, 0xa5, 0x2d, - 0x98, 0xc3, 0x3d, 0xdd, 0xe8, 0xf2, 0x53, 0x5a, 0x04, 0x62, 0x13, 0xca, 0xeb, 0x80, 0x44, 0xfc, - 0xbc, 0xac, 0xb5, 0x09, 0x49, 0xc3, 0x6e, 0x0e, 0xe9, 0x84, 0x1b, 0x36, 0x0c, 0x9b, 0x01, 0x2a, - 0x7f, 0x16, 0x87, 0x55, 0x0d, 0x77, 0x0c, 0xdb, 0xc1, 0x96, 0x3f, 0x2b, 0xe4, 0xc4, 0x18, 0x47, - 0xe9, 0xcf, 0x77, 0x93, 0xd6, 0x02, 0x25, 0xf6, 0x75, 0x97, 0x1c, 0xba, 0x09, 0x70, 0x64, 0x58, - 0xb6, 0x23, 0x64, 0xf3, 0x3e, 0xae, 0x92, 0x74, 0x96, 0xf2, 0x7e, 0x1d, 0x92, 0x5d, 0xdd, 0x85, - 0x0c, 0xc9, 0x07, 0xc9, 0x24, 0x05, 0xbc, 0x06, 0xc9, 0xbe, 0xd1, 0x7a, 0xc2, 0x00, 0x13, 0x81, - 0x43, 0x7b, 0x91, 0x4c, 0x51, 0xb0, 0x57, 0x20, 0xdd, 0x36, 0xec, 0x41, 0x57, 0x3f, 0x11, 0x2e, - 0x23, 0x02, 0x64, 0x8a, 0xcf, 0x52, 0xe0, 0x2f, 0x02, 0x1a, 0xd0, 0xaa, 0x96, 0x85, 0xdb, 0x23, - 0x57, 0x99, 0x0f, 0x2c, 0x59, 0xf1, 0x60, 0x5c, 0xbf, 0x41, 0x6f, 0xc0, 0x7c, 0x07, 0xf7, 0xdb, - 0xd8, 0x9a, 0x58, 0x55, 0xdb, 0xa3, 0x20, 0x1a, 0x07, 0xf5, 0x25, 0x83, 0x8b, 0xd1, 0xc9, 0xe0, - 0x45, 0x98, 0x37, 0xad, 0x8e, 0x57, 0x7b, 0x18, 0x25, 0x5d, 0x73, 0xa6, 0xd5, 0x29, 0xb7, 0x95, - 0x9f, 0xc5, 0xe1, 0xa2, 0xa8, 0x18, 0xf5, 0x63, 0x07, 0x5b, 0x7d, 0xbd, 0x5b, 0x2e, 0xd5, 0x7e, - 0xa3, 0xa3, 0xe7, 0xd5, 0x51, 0x11, 0xd2, 0x46, 0x7b, 0xe0, 0x1d, 0x96, 0xbc, 0x02, 0x10, 0x5e, - 0x78, 0x29, 0x97, 0x6a, 0xee, 0x11, 0xa9, 0xa5, 0x8c, 0xf6, 0xc0, 0x7d, 0x98, 0xaa, 0xc1, 0x2a, - 0xa4, 0x84, 0xb5, 0xe4, 0xf0, 0xf6, 0xd1, 0x4b, 0x6a, 0xde, 0x33, 0xba, 0x0a, 0x19, 0xec, 0xea, - 0xb7, 0x3d, 0x28, 0x97, 0x78, 0x3d, 0xca, 0x3f, 0xa8, 0xfc, 0x7c, 0x01, 0x12, 0xf4, 0x40, 0x0d, - 0x5e, 0x8b, 0xdf, 0x74, 0x6b, 0xc2, 0x2c, 0x64, 0x45, 0xbf, 0x83, 0x11, 0x5f, 0x2a, 0xa1, 0x77, - 0x21, 0xd3, 0xe2, 0x2f, 0x5d, 0x9a, 0x6d, 0xb7, 0x5e, 0x30, 0xb9, 0x0e, 0x92, 0x76, 0x17, 0x94, - 0x08, 0x82, 0x22, 0x39, 0x7f, 0x1c, 0xe3, 0x58, 0x40, 0x91, 0x98, 0x8a, 0x62, 0x69, 0xb4, 0x84, - 0x22, 0xf9, 0x12, 0xc9, 0x1d, 0xf5, 0x7e, 0x07, 0x33, 0x04, 0x73, 0x53, 0x11, 0x00, 0x03, 0xa7, - 0x8b, 0xef, 0x00, 0x50, 0x93, 0x65, 0x09, 0xf8, 0xfc, 0xd4, 0xb5, 0xd4, 0xc0, 0x69, 0x6a, 0x89, - 0x54, 0xf0, 0x0a, 0x4d, 0x4d, 0x86, 0x91, 0x15, 0x8a, 0xa6, 0xd4, 0x10, 0xdd, 0x35, 0x45, 0xb6, - 0xc4, 0x9f, 0x9a, 0x2c, 0x06, 0x52, 0x93, 0x0b, 0x3e, 0xe7, 0x63, 0x3a, 0x15, 0x1c, 0x6e, 0x53, - 0x74, 0x38, 0x56, 0x1e, 0x1f, 0x39, 0xd9, 0xa6, 0xe8, 0x64, 0x29, 0x36, 0xe9, 0xb9, 0xd6, 0xe5, - 0x80, 0x6b, 0xa5, 0xd9, 0x7b, 0x02, 0xd1, 0xa1, 0x6e, 0x85, 0x3a, 0xd4, 0xe8, 0x05, 0x49, 0xa4, - 0x1b, 0x2d, 0xcd, 0xee, 0x46, 0x6b, 0x6e, 0x00, 0x5a, 0x66, 0x67, 0x37, 0x0b, 0x39, 0xdb, 0xb0, - 0x62, 0xd8, 0x4d, 0xfa, 0xff, 0xa8, 0x06, 0x27, 0xd3, 0x73, 0x67, 0xd9, 0xb0, 0x55, 0x32, 0xee, - 0xd5, 0xe1, 0xd6, 0x60, 0x6e, 0xf0, 0xd8, 0xec, 0xe3, 0xec, 0x0a, 0xc3, 0x40, 0x1f, 0x38, 0x06, - 0xfa, 0xff, 0x08, 0x03, 0x72, 0x31, 0xd4, 0xc8, 0xb8, 0x87, 0x21, 0x0b, 0x0b, 0x34, 0x09, 0xb7, - 0x4e, 0xb2, 0xab, 0xac, 0x28, 0xc3, 0x1f, 0x89, 0xc3, 0xd1, 0x57, 0x13, 0x86, 0x73, 0x92, 0x5d, - 0xe3, 0xd2, 0xe5, 0xcf, 0xe8, 0x12, 0xa4, 0x06, 0xa6, 0xed, 0xe8, 0xdd, 0x26, 0xbd, 0x1d, 0x9e, - 0xa5, 0xd3, 0xc0, 0x86, 0xc8, 0xd9, 0x8e, 0xd6, 0x61, 0xde, 0xc2, 0x1d, 0xc3, 0xec, 0x67, 0xd7, - 0x59, 0xa6, 0xc7, 0x9e, 0xd0, 0x35, 0x58, 0xb2, 0x1d, 0x0b, 0x63, 0xa7, 0xa9, 0xb7, 0xdb, 0x16, - 0xb6, 0xed, 0xec, 0x39, 0xe6, 0xaa, 0x6c, 0xb4, 0xc0, 0x06, 0xd1, 0x3b, 0x90, 0x0d, 0x58, 0x57, - 0xd3, 0xcb, 0xdc, 0xb3, 0x74, 0x23, 0xeb, 0x7e, 0x4b, 0xd2, 0xf8, 0xac, 0xf2, 0x03, 0x5e, 0xcd, - 0xad, 0x59, 0xe6, 0x91, 0xd1, 0xc5, 0x63, 0xbe, 0x3e, 0xa9, 0x82, 0x16, 0x30, 0xb8, 0xf8, 0x44, - 0x83, 0x4b, 0x4c, 0x32, 0xb8, 0xb9, 0x29, 0x06, 0x37, 0x3f, 0xab, 0xc1, 0x2d, 0x4c, 0x37, 0xb8, - 0xc5, 0x99, 0x0d, 0x4e, 0xf9, 0x49, 0x0c, 0xb2, 0x0f, 0x06, 0x24, 0x50, 0x08, 0x22, 0x72, 0x8f, - 0x43, 0xff, 0x51, 0x27, 0xcd, 0x7c, 0xd4, 0xc5, 0x26, 0x1c, 0x75, 0xd7, 0x45, 0xa1, 0x84, 0x9c, - 0x89, 0x9e, 0x80, 0x6e, 0x05, 0x04, 0x94, 0x18, 0x83, 0xf5, 0x09, 0xeb, 0x4e, 0xa8, 0xb0, 0xe6, - 0xc6, 0x16, 0x4d, 0x14, 0xdc, 0xfc, 0xec, 0x82, 0xfb, 0x2d, 0xd6, 0xe4, 0x40, 0x9d, 0x6f, 0xcc, - 0xa4, 0xd6, 0x7c, 0x89, 0xa5, 0xeb, 0xc6, 0x37, 0x20, 0xe8, 0xad, 0x54, 0x00, 0xe3, 0x4e, 0xac, - 0xdc, 0x85, 0x2c, 0x2f, 0x40, 0x9d, 0x78, 0x44, 0x5c, 0xa5, 0x5c, 0xf4, 0xd5, 0x5f, 0xc4, 0xad, - 0xb1, 0x0a, 0xcc, 0x3e, 0xac, 0x8f, 0x4a, 0x92, 0xbe, 0x95, 0x41, 0x2e, 0x5d, 0x4c, 0xb1, 0x08, - 0x4c, 0x77, 0x61, 0x7d, 0x64, 0x1a, 0x3e, 0x4c, 0x5b, 0xfe, 0x3c, 0x29, 0x24, 0x71, 0xfe, 0x1a, - 0x13, 0x0f, 0x8d, 0x2c, 0x61, 0xe2, 0x61, 0x31, 0x2a, 0x36, 0x35, 0x46, 0xc5, 0x43, 0x63, 0x94, - 0x72, 0x47, 0x64, 0x8d, 0x4e, 0xb9, 0xac, 0x5d, 0x72, 0x71, 0x4b, 0xfe, 0x4c, 0x71, 0x8d, 0x93, - 0x51, 0xde, 0x11, 0xe5, 0xe3, 0x5b, 0x3a, 0x4d, 0xb2, 0xff, 0x28, 0xf1, 0xa6, 0x11, 0x1e, 0x92, - 0x82, 0xdb, 0x12, 0x02, 0x67, 0x2c, 0x3a, 0x70, 0xc6, 0x27, 0x07, 0xce, 0xc4, 0x84, 0xc0, 0x39, - 0x37, 0x25, 0x70, 0xce, 0x87, 0x04, 0x4e, 0xe5, 0xe7, 0x92, 0xe8, 0xe1, 0x7c, 0x74, 0x94, 0xf0, - 0x7a, 0x2c, 0x07, 0xeb, 0x79, 0x1e, 0xf3, 0x57, 0x05, 0xe6, 0x63, 0xc1, 0xdc, 0xd4, 0xdb, 0xc6, - 0x4d, 0xff, 0x36, 0xe2, 0x01, 0x40, 0x71, 0x43, 0x5b, 0xde, 0x86, 0x82, 0xa9, 0xae, 0xbb, 0xb5, - 0xfc, 0xd8, 0xd6, 0x82, 0xa9, 0x6e, 0x60, 0x93, 0xe7, 0x01, 0xdc, 0xca, 0x55, 0xc8, 0x2d, 0xf1, - 0x1d, 0x58, 0x0e, 0x56, 0xad, 0xc5, 0x3b, 0x85, 0x14, 0x79, 0xa7, 0x50, 0x3e, 0x81, 0x35, 0x0d, - 0xdb, 0xd8, 0x09, 0x2e, 0x9f, 0xf9, 0x8a, 0x79, 0xc7, 0xd7, 0x57, 0x13, 0x7e, 0x9f, 0xaf, 0x98, - 0x8e, 0x71, 0x64, 0xb4, 0x68, 0x06, 0x37, 0x2a, 0x83, 0x2a, 0xc7, 0x90, 0xf1, 0xd1, 0x46, 0xe7, - 0x46, 0xdb, 0x1a, 0xa5, 0xc6, 0x33, 0x38, 0x32, 0x7a, 0x15, 0xd2, 0x7d, 0xfc, 0xac, 0x19, 0x5d, - 0x51, 0x4f, 0xf5, 0xf1, 0x33, 0x97, 0x8c, 0xf2, 0x04, 0x2e, 0xd6, 0x47, 0x54, 0x45, 0xe6, 0xa2, - 0x02, 0xc9, 0x73, 0x6c, 0xb2, 0x0b, 0x4b, 0x35, 0xdf, 0xb1, 0x4d, 0x98, 0x35, 0xbb, 0xed, 0x66, - 0xb4, 0x76, 0x52, 0x66, 0xb7, 0xed, 0xc9, 0x24, 0xb8, 0xb5, 0xd8, 0xc4, 0xad, 0x29, 0x90, 0xf6, - 0x0a, 0xfb, 0x55, 0x67, 0x80, 0x90, 0xe8, 0xf1, 0xdc, 0xcb, 0x4b, 0x90, 0x16, 0x2a, 0xde, 0x36, - 0x7a, 0x13, 0x12, 0xbd, 0x23, 0x7d, 0xf2, 0xab, 0x64, 0x61, 0x81, 0x46, 0xa1, 0x15, 0x07, 0x52, - 0xc2, 0x20, 0x7a, 0xcd, 0x57, 0x09, 0x9f, 0x5c, 0x42, 0x64, 0x45, 0xf0, 0x37, 0xfc, 0x37, 0x90, - 0xf0, 0x77, 0xc0, 0x87, 0xf7, 0x0a, 0xbe, 0xae, 0xb6, 0x6f, 0x49, 0xb0, 0xc4, 0xb6, 0xe6, 0xd5, - 0x2a, 0x22, 0x5f, 0x1c, 0xca, 0x10, 0x1f, 0x5a, 0xee, 0x09, 0x45, 0xfe, 0x25, 0x81, 0xc6, 0xc6, - 0x2d, 0x0b, 0x3b, 0x3c, 0x46, 0xf1, 0xa7, 0x11, 0x2b, 0x89, 0x53, 0xb0, 0x72, 0x09, 0x32, 0x85, - 0xc1, 0xa0, 0xcb, 0x35, 0x1e, 0xe2, 0x94, 0x3f, 0x89, 0x41, 0x4a, 0x80, 0x18, 0x33, 0xaa, 0x99, - 0x04, 0x50, 0x18, 0x0c, 0x5e, 0xec, 0x0d, 0x2c, 0x70, 0x79, 0x4a, 0x9c, 0xea, 0xf2, 0x84, 0x20, - 0x21, 0xe4, 0x7a, 0xf4, 0x7f, 0xb4, 0x0b, 0x29, 0xd3, 0x68, 0xb7, 0x9a, 0x2d, 0xb3, 0x7f, 0x64, - 0x74, 0xf8, 0xbd, 0xf8, 0x52, 0x64, 0x5d, 0xaf, 0x48, 0xc1, 0xf6, 0xcf, 0x68, 0x40, 0x56, 0xb1, - 0xa7, 0xdd, 0x34, 0x80, 0x3e, 0x18, 0x70, 0x14, 0xca, 0x2f, 0xe2, 0x00, 0x23, 0x50, 0x74, 0x05, - 0x32, 0x62, 0x87, 0x93, 0xcd, 0x0b, 0x8b, 0x69, 0xa1, 0xc5, 0xc9, 0x46, 0x07, 0xb0, 0xe4, 0xab, - 0x2f, 0xba, 0xc5, 0xec, 0x19, 0x0b, 0x8c, 0x19, 0xb1, 0xc0, 0x68, 0xa3, 0x22, 0xa4, 0x3a, 0x96, - 0xde, 0x77, 0x38, 0x2a, 0x56, 0x87, 0x57, 0x22, 0x51, 0xed, 0x11, 0x58, 0x8a, 0x07, 0x3a, 0xee, - 0xbf, 0x36, 0xaa, 0x83, 0xac, 0x8f, 0xd4, 0xcf, 0xaa, 0x9e, 0x89, 0x09, 0x05, 0x42, 0x82, 0x49, - 0xb0, 0x17, 0x8a, 0x6f, 0x59, 0xf7, 0x0f, 0x10, 0x61, 0xf0, 0x46, 0x18, 0x6e, 0xc9, 0x4c, 0x15, - 0x69, 0x36, 0x58, 0x67, 0xf6, 0xec, 0x6b, 0xbd, 0x99, 0x0f, 0xb4, 0xde, 0x7c, 0x05, 0x64, 0xfa, - 0x0e, 0x8f, 0x95, 0x1e, 0x19, 0x5b, 0xac, 0x0e, 0x72, 0x3d, 0x9a, 0xad, 0xa1, 0xf3, 0x98, 0x95, - 0x2c, 0x29, 0x57, 0x4b, 0xba, 0xef, 0x19, 0xdd, 0x81, 0x0d, 0x72, 0xfa, 0x91, 0x3b, 0xb5, 0x39, - 0x74, 0x9a, 0x7e, 0x6d, 0xb1, 0x96, 0xb0, 0x75, 0x02, 0x70, 0x40, 0xe7, 0x35, 0x41, 0x6f, 0xca, - 0xff, 0x48, 0x90, 0x15, 0x36, 0x5d, 0xc7, 0xba, 0xd5, 0x72, 0xcb, 0xc9, 0xc4, 0x5f, 0xcd, 0xa3, - 0x23, 0x1b, 0xb3, 0x42, 0x78, 0x42, 0xe3, 0x4f, 0x24, 0xbd, 0xea, 0x1a, 0x3d, 0x83, 0xbd, 0x45, - 0x49, 0x68, 0xec, 0x01, 0x7d, 0x08, 0x4b, 0xb6, 0x69, 0x39, 0x46, 0xbf, 0xd3, 0x6c, 0x99, 0xdd, - 0x61, 0xaf, 0xcf, 0xbb, 0x19, 0x6e, 0x46, 0x39, 0x96, 0x9f, 0xe8, 0x7d, 0x7c, 0x42, 0x8f, 0xdf, - 0xcf, 0xa4, 0xd8, 0xd6, 0x19, 0x2d, 0xc3, 0x51, 0x15, 0x29, 0x26, 0x12, 0x4b, 0x74, 0xbb, 0x45, - 0xd5, 0xb7, 0xa8, 0x91, 0x7f, 0x91, 0x0a, 0x0b, 0x4f, 0x87, 0xd8, 0x32, 0x30, 0x39, 0xba, 0x49, - 0xe0, 0x7c, 0x65, 0x36, 0x32, 0x5f, 0x19, 0x62, 0xeb, 0x44, 0x73, 0xd7, 0x2a, 0x3f, 0x96, 0x60, - 0x3d, 0x1c, 0x06, 0xa9, 0x10, 0x7f, 0x82, 0x4f, 0x78, 0x44, 0xfd, 0x95, 0x36, 0x41, 0xd6, 0xa3, - 0x3b, 0x81, 0xea, 0x74, 0xf8, 0x2b, 0x43, 0xb6, 0xdc, 0x5f, 0x96, 0x26, 0x72, 0x3e, 0xd6, 0xbb, - 0x43, 0xaf, 0xd0, 0x4e, 0x1f, 0x94, 0xbf, 0x91, 0x60, 0x23, 0x44, 0x65, 0x3c, 0x1c, 0x9f, 0x4e, - 0x67, 0x97, 0x21, 0xed, 0x98, 0x24, 0xa7, 0xb2, 0xb0, 0x3d, 0xec, 0xb2, 0xb8, 0x9c, 0xd0, 0x52, - 0x74, 0x4c, 0xa3, 0x43, 0xe8, 0x1d, 0x92, 0x4c, 0xd1, 0xc9, 0xc4, 0x84, 0x03, 0x4a, 0x60, 0x48, - 0xe3, 0xf0, 0xca, 0x31, 0x6c, 0x0a, 0xc3, 0xc4, 0x86, 0x4d, 0xcb, 0xf8, 0xc4, 0xcb, 0x86, 0xab, - 0x20, 0xb3, 0xc0, 0xc5, 0x5c, 0x85, 0x60, 0xe3, 0x1d, 0xcf, 0x57, 0xa2, 0xa3, 0x17, 0x85, 0x25, - 0xa8, 0xf6, 0xcf, 0x68, 0x4b, 0x34, 0x82, 0x79, 0x23, 0xbb, 0xf3, 0x90, 0x20, 0xf0, 0x8a, 0x06, - 0x4b, 0x7e, 0x58, 0xbf, 0x43, 0x4a, 0x01, 0x87, 0x1c, 0x73, 0xe9, 0xd8, 0xb8, 0x4b, 0x2b, 0xbf, - 0x94, 0x00, 0xd1, 0x30, 0xf3, 0x3c, 0x1e, 0xd2, 0x88, 0xf0, 0x90, 0xf0, 0xfd, 0x0a, 0xe4, 0x4e, - 0xe9, 0x1b, 0xef, 0x06, 0x7d, 0xe3, 0xda, 0x34, 0x02, 0x01, 0xaf, 0xf8, 0x6b, 0x09, 0xe4, 0xe0, - 0x2c, 0x7a, 0x57, 0xf4, 0x87, 0x53, 0xb2, 0xfc, 0x72, 0x3c, 0xe1, 0x07, 0x12, 0xac, 0xfa, 0x94, - 0xf2, 0xb2, 0x7c, 0xe0, 0x76, 0xc0, 0x07, 0x72, 0xd1, 0xbb, 0xf7, 0xac, 0xff, 0x0f, 0x24, 0x98, - 0xa3, 0x23, 0x84, 0x6c, 0xd5, 0xea, 0x94, 0x5d, 0xcb, 0x63, 0x0f, 0xe8, 0x3c, 0x24, 0x6b, 0xac, - 0x81, 0xb2, 0xec, 0xbe, 0x3c, 0x1d, 0x0d, 0x90, 0x2d, 0xb0, 0x3e, 0x68, 0x37, 0x55, 0x62, 0x4f, - 0x04, 0x97, 0x66, 0x76, 0xb1, 0x4d, 0x19, 0x49, 0x6a, 0xec, 0x81, 0x5c, 0x0c, 0xab, 0x56, 0xa7, - 0x32, 0x4a, 0x0d, 0xdc, 0x47, 0xe5, 0xaf, 0x24, 0xd8, 0x38, 0x3c, 0xe1, 0x78, 0xab, 0x56, 0xe7, - 0x79, 0xcc, 0x77, 0xdc, 0xd0, 0xee, 0x05, 0x0d, 0xed, 0xd5, 0xf0, 0xd4, 0x6d, 0x8c, 0x81, 0x80, - 0xbd, 0xfd, 0x83, 0x04, 0xe7, 0x22, 0x80, 0xd0, 0x3d, 0xd1, 0xec, 0xb6, 0x67, 0xc4, 0xff, 0xeb, - 0xb0, 0xbe, 0x1f, 0x4a, 0x90, 0x0b, 0x13, 0xed, 0xcb, 0x32, 0xc2, 0xd7, 0x02, 0x46, 0x98, 0x0d, - 0x8f, 0x92, 0x56, 0xc7, 0x33, 0xc1, 0x57, 0x61, 0xb9, 0x6c, 0x17, 0xda, 0x3d, 0xc3, 0xd7, 0x30, - 0x6f, 0xd8, 0x4d, 0x9d, 0x8c, 0xf1, 0x17, 0x8b, 0x0b, 0x06, 0x03, 0x51, 0x6e, 0x42, 0xbc, 0x6a, - 0x75, 0xc6, 0xd2, 0x64, 0x37, 0xe7, 0x8c, 0x8d, 0x72, 0x4e, 0xc5, 0x00, 0x44, 0x3f, 0xfe, 0xc0, - 0xb4, 0xe7, 0xf6, 0x65, 0x76, 0x30, 0x29, 0x75, 0x98, 0xa3, 0x44, 0xc6, 0xf8, 0xba, 0x0b, 0x70, - 0xaa, 0x5e, 0x62, 0x01, 0x5a, 0x79, 0x1d, 0x32, 0x87, 0x27, 0x35, 0x6c, 0xf5, 0x0c, 0xde, 0xd7, - 0xbb, 0x05, 0xa9, 0xc1, 0xe8, 0x91, 0x67, 0xb8, 0xe2, 0x90, 0xf2, 0xbe, 0xdb, 0x9e, 0x46, 0x1d, - 0x51, 0xe8, 0x30, 0x08, 0x91, 0xd7, 0xe8, 0xae, 0xcc, 0xef, 0xc7, 0xb9, 0x60, 0xb7, 0xd9, 0xa8, - 0x02, 0xb0, 0xfd, 0x11, 0x2c, 0xf9, 0xbf, 0x20, 0x42, 0x17, 0x21, 0xf7, 0xa0, 0xae, 0x6a, 0x85, - 0x3d, 0xb5, 0xd2, 0xa8, 0x37, 0x0a, 0x0d, 0xb5, 0xf9, 0xa0, 0x52, 0xaf, 0xa9, 0xc5, 0xf2, 0xbd, - 0xb2, 0x5a, 0x92, 0xcf, 0xa0, 0x0d, 0x38, 0x1b, 0x98, 0x2f, 0x14, 0x1b, 0xe5, 0x87, 0xaa, 0x2c, - 0xa1, 0x0b, 0xb0, 0x11, 0x98, 0x6a, 0xa8, 0xda, 0x61, 0xb9, 0x52, 0x68, 0xa8, 0x25, 0x39, 0xb6, - 0x6d, 0xf9, 0x5a, 0x61, 0x19, 0xb5, 0x2d, 0x38, 0x4f, 0x96, 0xd4, 0xd5, 0x7a, 0xbd, 0x5c, 0xad, - 0x84, 0xd1, 0xdb, 0x84, 0x73, 0x63, 0x10, 0x1e, 0xc5, 0x4b, 0xb0, 0x39, 0x36, 0xe9, 0xa3, 0xf9, - 0xa3, 0x38, 0xa4, 0xc5, 0x1e, 0x2c, 0x94, 0x85, 0xb5, 0x8a, 0xfa, 0xd5, 0x46, 0xbd, 0xa1, 0xd6, - 0x02, 0x84, 0x10, 0x2c, 0x79, 0x33, 0x07, 0xd5, 0xbd, 0x72, 0x45, 0x96, 0xd0, 0x59, 0x58, 0xf1, - 0xc6, 0x6a, 0x85, 0x7a, 0xfd, 0xfd, 0xaa, 0x56, 0x92, 0x63, 0xe8, 0x3c, 0x64, 0xbd, 0xe1, 0xe2, - 0x7e, 0xa1, 0xb2, 0xa7, 0x8e, 0x66, 0xe3, 0xe8, 0x1c, 0xac, 0x7a, 0xb3, 0x87, 0xf7, 0x0a, 0xcd, - 0x9a, 0x56, 0x3d, 0xac, 0x35, 0xe4, 0x84, 0x6f, 0x19, 0x99, 0x28, 0x57, 0xca, 0x8d, 0x66, 0x71, - 0xbf, 0x5a, 0x2e, 0xaa, 0xf2, 0x5c, 0xc4, 0xac, 0xa6, 0x16, 0x1a, 0xaa, 0x3c, 0x1f, 0x3e, 0xfb, - 0x50, 0xd5, 0xca, 0xf7, 0x3e, 0x90, 0x17, 0x50, 0x0e, 0xd6, 0xc7, 0x67, 0x4b, 0xd5, 0x8a, 0x2a, - 0x2f, 0x8e, 0xb1, 0xc3, 0x17, 0x25, 0x89, 0xba, 0x42, 0x26, 0x9a, 0x85, 0xfa, 0x07, 0x95, 0xa2, - 0x0c, 0x44, 0xd1, 0xde, 0x34, 0x9f, 0x52, 0x0f, 0x0b, 0xe5, 0x03, 0x39, 0x85, 0x2e, 0xc3, 0x05, - 0x6f, 0x4a, 0x53, 0x4b, 0x65, 0x4d, 0x2d, 0x36, 0x9a, 0x8d, 0x6a, 0xb3, 0x58, 0x38, 0x38, 0xd8, - 0x2d, 0x14, 0xef, 0xcb, 0x69, 0x1f, 0x47, 0x94, 0x1b, 0x4f, 0x40, 0x19, 0x9f, 0x0e, 0x8a, 0xfb, - 0xd5, 0x6a, 0x5d, 0x6d, 0x12, 0x2d, 0xca, 0x4b, 0xdb, 0x47, 0xbe, 0xcf, 0x18, 0xa8, 0xc2, 0x2e, - 0xc1, 0x66, 0xe1, 0x41, 0x63, 0x9f, 0xab, 0xb8, 0xf1, 0x41, 0x2d, 0x68, 0x20, 0x59, 0x58, 0x0b, - 0x02, 0x90, 0x04, 0x4c, 0x96, 0xc2, 0x66, 0xea, 0x85, 0xc3, 0x03, 0x6a, 0x8a, 0xf3, 0xbc, 0x15, - 0x6d, 0x1d, 0x10, 0xd3, 0x4f, 0x00, 0xeb, 0x32, 0xa4, 0xf8, 0x78, 0x85, 0x88, 0x51, 0x42, 0x32, - 0xa4, 0xf9, 0x00, 0x33, 0x8e, 0x18, 0x31, 0x18, 0x3e, 0x52, 0xac, 0x56, 0xea, 0x6a, 0xa5, 0x21, - 0xc7, 0x89, 0xd0, 0xf8, 0x58, 0x5d, 0x3d, 0x20, 0x52, 0x29, 0x14, 0x8b, 0xd5, 0x07, 0x95, 0x86, - 0x9c, 0xd8, 0x7e, 0x0a, 0x72, 0xf0, 0xe6, 0x49, 0xc0, 0xe9, 0x98, 0x5a, 0xaf, 0x11, 0x14, 0x94, - 0xc5, 0x62, 0xb5, 0xa4, 0xca, 0x67, 0x88, 0x76, 0xc6, 0xa6, 0xca, 0xa5, 0x66, 0xa3, 0x7a, 0x5f, - 0x25, 0x96, 0x79, 0x05, 0x2e, 0x45, 0x4e, 0x73, 0xa0, 0xd8, 0xb6, 0x06, 0xab, 0x21, 0x8d, 0x27, - 0x04, 0x35, 0x21, 0x52, 0xdc, 0x2f, 0x1c, 0x1c, 0xa8, 0x95, 0x3d, 0xf5, 0x50, 0x6d, 0xec, 0x57, - 0x4b, 0xcd, 0xda, 0x41, 0xa1, 0x5c, 0x91, 0xcf, 0x10, 0x53, 0x0b, 0x9b, 0xae, 0xdf, 0x7e, 0xeb, - 0x6d, 0x59, 0xda, 0xfe, 0x31, 0xff, 0xfe, 0x91, 0xf9, 0x6f, 0x0e, 0xd6, 0xa9, 0x03, 0x8a, 0x8e, - 0xab, 0x72, 0x11, 0xae, 0x81, 0x3c, 0x9a, 0xf3, 0x5c, 0x76, 0x1d, 0xd0, 0x68, 0xb4, 0x5c, 0xe1, - 0xe3, 0x31, 0xe2, 0x6a, 0xa3, 0xf1, 0x92, 0x7a, 0xa0, 0x12, 0x07, 0x8e, 0xfb, 0x91, 0x1c, 0x54, - 0x8b, 0xf7, 0xd5, 0x92, 0x9c, 0xf0, 0x03, 0xd7, 0x1f, 0xd4, 0x6b, 0x6a, 0xa5, 0x24, 0xcf, 0xf9, - 0x87, 0x89, 0xd5, 0x95, 0x0b, 0x07, 0xf2, 0xfc, 0xf6, 0x57, 0x61, 0x9e, 0xbd, 0xde, 0x20, 0xc4, - 0xf7, 0xd4, 0x4a, 0x49, 0xd5, 0x02, 0xda, 0x5e, 0x81, 0x0c, 0x1f, 0xbf, 0xa7, 0x1e, 0x16, 0x0e, - 0x08, 0x9f, 0xcb, 0x90, 0xe2, 0x43, 0x74, 0x80, 0xaa, 0x9b, 0x0f, 0x94, 0xca, 0x0f, 0x49, 0xcc, - 0x91, 0xe3, 0xdb, 0xfb, 0x20, 0x07, 0x2b, 0x7f, 0xd4, 0xf2, 0xab, 0x8d, 0xf2, 0xbd, 0x72, 0xb1, - 0xd0, 0x70, 0xcd, 0x8e, 0x39, 0x0e, 0xb5, 0xd5, 0xb1, 0xb9, 0xfa, 0x61, 0x5d, 0x96, 0xb6, 0x4b, - 0xb0, 0xc0, 0x2b, 0x64, 0xc4, 0x61, 0x0f, 0xef, 0x15, 0x42, 0x2c, 0x7d, 0x19, 0x52, 0xee, 0x04, - 0x5d, 0x24, 0x0e, 0x54, 0x1b, 0x35, 0x39, 0xb6, 0x7d, 0x04, 0x8b, 0x6e, 0xa5, 0x8a, 0xd0, 0x22, - 0xff, 0x87, 0x84, 0xd4, 0x75, 0x40, 0xde, 0x4c, 0xa5, 0xda, 0x68, 0x6a, 0x6a, 0xa1, 0xf4, 0x81, - 0x2c, 0x91, 0x1d, 0x7a, 0xe3, 0x6c, 0x2c, 0x46, 0xe4, 0x2f, 0x8c, 0x1d, 0x56, 0x1f, 0x12, 0xad, - 0x10, 0x3a, 0x6e, 0x6d, 0x8a, 0x7a, 0x59, 0xad, 0x16, 0x46, 0x67, 0x15, 0x96, 0xbd, 0x19, 0x4f, - 0xff, 0x67, 0x61, 0xc5, 0x1b, 0x14, 0xd4, 0xbf, 0x06, 0xb2, 0x37, 0xec, 0x69, 0x7f, 0xfb, 0x04, - 0x32, 0xbe, 0x12, 0x0b, 0xba, 0x0a, 0x5b, 0x74, 0x40, 0x2b, 0x54, 0x1a, 0x74, 0xdf, 0xc4, 0xc1, - 0xab, 0x5a, 0xf9, 0x43, 0x2a, 0x4f, 0xd7, 0x77, 0x2e, 0xc3, 0x05, 0x3f, 0x14, 0xfd, 0xaf, 0x49, - 0xff, 0xe5, 0xee, 0x7c, 0x09, 0x36, 0xfd, 0x20, 0x9a, 0x7a, 0x4f, 0x53, 0xeb, 0xfb, 0x9e, 0xef, - 0x1c, 0xc3, 0x6a, 0x48, 0x4d, 0x86, 0x1c, 0x47, 0x74, 0xb8, 0x56, 0x3b, 0x10, 0x95, 0xf8, 0xbe, - 0xba, 0x2b, 0x9f, 0x41, 0x0a, 0x5c, 0x0c, 0x9b, 0x24, 0x36, 0xd9, 0xa4, 0xa7, 0xa2, 0x2c, 0x91, - 0xf3, 0x35, 0x0c, 0xa6, 0x52, 0x60, 0x82, 0xd8, 0xee, 0x02, 0x1a, 0x2f, 0xba, 0x10, 0x9f, 0xa4, - 0xa3, 0x0f, 0x1a, 0xfb, 0xcc, 0x1d, 0xe9, 0xa2, 0xdd, 0x42, 0xbd, 0x5c, 0x64, 0x67, 0x64, 0xc8, - 0x6c, 0xad, 0x5a, 0x27, 0x04, 0xc3, 0x27, 0xa9, 0x18, 0x62, 0xdb, 0xbf, 0x94, 0x60, 0x2d, 0xac, - 0x8e, 0x40, 0x04, 0x2d, 0xb0, 0x58, 0x57, 0x0b, 0x5a, 0x71, 0xff, 0xbe, 0xfa, 0x41, 0x40, 0xc3, - 0x97, 0xe1, 0x42, 0x28, 0x54, 0xa1, 0x56, 0xa3, 0xd2, 0x66, 0xfb, 0x0d, 0x05, 0xa1, 0xaa, 0x96, - 0x63, 0x44, 0x66, 0xa1, 0xf3, 0xc5, 0x83, 0xb2, 0x5a, 0x69, 0x34, 0xcb, 0x24, 0x08, 0x4c, 0x22, - 0x53, 0x29, 0x1c, 0xaa, 0x72, 0x82, 0xc4, 0xc3, 0x50, 0x90, 0x9a, 0x56, 0x7d, 0x8f, 0xc4, 0xe1, - 0x72, 0x49, 0x9e, 0xdb, 0xfe, 0x3a, 0xa4, 0xc5, 0x14, 0x9b, 0x78, 0x1a, 0x83, 0xe4, 0x21, 0x4e, - 0xfd, 0xca, 0x83, 0xc2, 0x41, 0x9d, 0x85, 0x40, 0xdf, 0x44, 0xbd, 0x51, 0xd0, 0x1a, 0xf5, 0xe6, - 0xfb, 0xe5, 0xc6, 0xbe, 0x2c, 0x91, 0xa8, 0xed, 0x9b, 0x2d, 0x56, 0x2b, 0x8d, 0x42, 0xb9, 0x52, - 0x97, 0x63, 0xdb, 0xdf, 0x94, 0x60, 0xc9, 0x7f, 0x0f, 0x25, 0x02, 0xa0, 0x56, 0x16, 0x25, 0xc3, - 0x0d, 0x38, 0x1b, 0x98, 0xaf, 0x6a, 0x7b, 0x84, 0x5f, 0x9a, 0x50, 0x05, 0xa6, 0x84, 0xed, 0xc4, - 0x48, 0xa4, 0x09, 0x62, 0x26, 0x96, 0x46, 0x44, 0xb6, 0xfd, 0x08, 0xce, 0x86, 0x5e, 0x4c, 0xd0, - 0x35, 0xb8, 0x7c, 0xf8, 0x01, 0x47, 0x53, 0xd5, 0xf6, 0xa2, 0xb8, 0x52, 0xe0, 0x62, 0x38, 0x18, - 0x61, 0x8e, 0xca, 0x5c, 0xba, 0xfd, 0x77, 0x6f, 0x43, 0x8a, 0x1d, 0xd7, 0xd6, 0xb1, 0xd1, 0xc2, - 0xe8, 0x3e, 0x2c, 0xec, 0x63, 0xbd, 0xeb, 0x3c, 0xfe, 0x04, 0xad, 0x8f, 0xe5, 0xc2, 0x6a, 0x6f, - 0xe0, 0x9c, 0xe4, 0x22, 0xc6, 0x15, 0xf9, 0xb3, 0x7f, 0xfd, 0xf7, 0x3f, 0x8e, 0x01, 0x5a, 0xcc, - 0x3f, 0xe6, 0x18, 0xf6, 0x60, 0x4e, 0xc3, 0x7a, 0xfb, 0xe4, 0xd4, 0xa8, 0x96, 0x28, 0xaa, 0x45, - 0x34, 0x9f, 0xb7, 0xe8, 0xfa, 0x0a, 0x2c, 0x3e, 0xe4, 0xbf, 0x40, 0x10, 0x89, 0xeb, 0xdc, 0xd8, - 0x78, 0x9d, 0xfe, 0xd8, 0x81, 0xb2, 0x42, 0x91, 0xa5, 0x50, 0xd2, 0xfb, 0x15, 0x03, 0xf4, 0x11, - 0xa4, 0xf7, 0xb0, 0x33, 0xfa, 0x09, 0x80, 0xad, 0xc9, 0x5f, 0xb0, 0x97, 0x4b, 0xb9, 0x29, 0xdf, - 0xb8, 0x2b, 0x59, 0x4a, 0x04, 0x21, 0x39, 0x3f, 0xb4, 0xb1, 0x45, 0x2f, 0x2b, 0x76, 0xfe, 0x77, - 0x8c, 0xf6, 0xa7, 0xe8, 0x29, 0x2c, 0xb3, 0xab, 0xce, 0x88, 0xdc, 0x17, 0x26, 0x23, 0x73, 0x3f, - 0x8b, 0x9f, 0x4a, 0x74, 0x9d, 0x12, 0x95, 0x95, 0x94, 0x40, 0xf4, 0xae, 0xb4, 0x8d, 0x06, 0xb0, - 0xac, 0xe1, 0x63, 0xf3, 0x09, 0x7e, 0x91, 0x3b, 0xdc, 0xa4, 0xc4, 0xce, 0xe6, 0xc6, 0x76, 0x48, - 0x28, 0x7e, 0x5f, 0x82, 0x15, 0xb6, 0x4b, 0x21, 0xf7, 0x43, 0x37, 0xa6, 0x7d, 0xe3, 0xe1, 0xed, - 0x74, 0x2a, 0xa4, 0x9b, 0x72, 0x29, 0x3b, 0x94, 0x8d, 0x1b, 0xca, 0x15, 0x1f, 0x1b, 0xee, 0xb5, - 0xf1, 0xd3, 0x3c, 0x59, 0xef, 0x7e, 0x94, 0x47, 0x38, 0xfb, 0x2e, 0xf1, 0x66, 0xec, 0x88, 0x6c, - 0x29, 0xd3, 0x88, 0x95, 0x4b, 0xa7, 0x60, 0xe8, 0x35, 0xca, 0xd0, 0x36, 0xba, 0x31, 0x03, 0x43, - 0xcc, 0x22, 0x7e, 0x0f, 0xce, 0xf9, 0x39, 0xda, 0x3d, 0x71, 0x3f, 0x3d, 0x0d, 0x7f, 0xef, 0xc6, - 0x67, 0x73, 0x53, 0xbf, 0xde, 0x7d, 0x68, 0xe0, 0x67, 0xca, 0x16, 0x65, 0x28, 0x87, 0xb2, 0x79, - 0xfa, 0xf1, 0x2b, 0x23, 0x2a, 0xb2, 0x81, 0x7e, 0x24, 0x01, 0x8c, 0xbe, 0x75, 0x8b, 0x30, 0xc7, - 0xb1, 0x8f, 0xe1, 0x4e, 0x21, 0x93, 0x03, 0xca, 0xc2, 0xbd, 0x5c, 0x61, 0x26, 0x99, 0x04, 0xee, - 0xf3, 0x9f, 0xe6, 0x9b, 0xec, 0x4b, 0x7e, 0xb2, 0x96, 0xa8, 0x90, 0xb0, 0x3b, 0xba, 0x3a, 0x47, - 0xb0, 0x3b, 0xf6, 0x91, 0xdb, 0xaf, 0x91, 0x5d, 0xf6, 0x39, 0x8e, 0xcb, 0xee, 0x4f, 0x25, 0x58, - 0xf2, 0x7f, 0x88, 0x86, 0xb6, 0x27, 0xb0, 0x1c, 0x78, 0x71, 0x7f, 0x0a, 0xb6, 0x6b, 0x94, 0xed, - 0xf7, 0x72, 0xea, 0x73, 0xb1, 0xed, 0xd6, 0x11, 0x08, 0xeb, 0x7f, 0x2b, 0x41, 0xd2, 0x7b, 0xfd, - 0x8c, 0xae, 0x4d, 0xe0, 0x7a, 0xf4, 0xdd, 0xd9, 0x29, 0x18, 0xbe, 0x4f, 0x19, 0x56, 0x73, 0x5f, - 0x7e, 0x2e, 0x86, 0x7b, 0x47, 0x3a, 0xe1, 0xf5, 0x33, 0x09, 0xd6, 0xc4, 0x20, 0xee, 0x7d, 0x62, - 0x3d, 0x3d, 0xd4, 0x5d, 0x9e, 0xf6, 0x89, 0x88, 0xad, 0x5c, 0xa3, 0xac, 0x5e, 0x42, 0x17, 0x82, - 0xd1, 0x8e, 0x3e, 0xbb, 0x4c, 0xa2, 0x6f, 0xb1, 0xe8, 0x22, 0x7e, 0x8a, 0xad, 0x4c, 0x43, 0x5e, - 0x2e, 0xe5, 0xa6, 0x7e, 0xee, 0x3d, 0x35, 0xaa, 0x88, 0x5c, 0xb8, 0x51, 0x65, 0x65, 0x0f, 0x3b, - 0xac, 0x1d, 0xcb, 0x93, 0x45, 0xd4, 0x61, 0x79, 0x6d, 0x96, 0xef, 0x94, 0x6d, 0xe5, 0x95, 0xcf, - 0xfe, 0x29, 0xbb, 0x0c, 0xb4, 0xa0, 0x86, 0xfb, 0x0e, 0x49, 0x30, 0x71, 0xdb, 0x3b, 0xe8, 0x7a, - 0xd8, 0x2f, 0x8b, 0x6f, 0x48, 0xb0, 0xd6, 0xc0, 0x56, 0xcf, 0xe8, 0xf3, 0xc3, 0xee, 0x34, 0x12, - 0x89, 0xca, 0x04, 0xb8, 0x1c, 0xb6, 0x67, 0x97, 0xc3, 0x9f, 0x4b, 0x90, 0x12, 0x6a, 0x8b, 0x28, - 0xfc, 0xa5, 0xe8, 0x78, 0xf5, 0x31, 0x97, 0x8b, 0x8e, 0xbd, 0xca, 0x1e, 0x65, 0xa3, 0xa0, 0xfc, - 0xbf, 0x5f, 0xcd, 0x72, 0x59, 0x20, 0x26, 0x56, 0x7b, 0x02, 0xe9, 0xb2, 0x4d, 0xb6, 0xce, 0xbe, - 0xc5, 0x88, 0x4a, 0x05, 0x82, 0x5f, 0x8c, 0xe4, 0xae, 0x4f, 0x85, 0xe3, 0x3e, 0xe6, 0x4f, 0x44, - 0xec, 0x7c, 0xd3, 0xb0, 0xd9, 0x67, 0x20, 0x68, 0x00, 0x69, 0xf1, 0xe3, 0x82, 0x88, 0xd3, 0x39, - 0xe4, 0xc3, 0x90, 0xdc, 0x46, 0xa4, 0x02, 0xdd, 0xac, 0x40, 0xf1, 0xc8, 0x59, 0x7c, 0x3d, 0xd9, - 0xec, 0x77, 0x24, 0xc8, 0x8a, 0xf8, 0xde, 0x37, 0x9c, 0xc7, 0xee, 0x37, 0x0d, 0xe8, 0x8d, 0xa9, - 0xe4, 0xc7, 0x3f, 0x7f, 0x98, 0xc4, 0xc9, 0x15, 0xca, 0xc9, 0x05, 0x25, 0xeb, 0x72, 0xe2, 0x36, - 0xd2, 0x8b, 0x1c, 0x7d, 0x02, 0xb2, 0xe7, 0x24, 0x6e, 0xb7, 0x6d, 0x94, 0x8f, 0x44, 0x3b, 0x29, - 0x5f, 0xa9, 0xbc, 0x1a, 0xe5, 0x1e, 0xab, 0x68, 0x85, 0x73, 0xd1, 0xa3, 0x3f, 0xaf, 0x45, 0xe9, - 0x7c, 0x5f, 0x82, 0x55, 0xd6, 0xe6, 0xe6, 0xa7, 0x7f, 0x2b, 0x9c, 0x4e, 0x44, 0xcb, 0xeb, 0x0c, - 0x6c, 0xe5, 0xa3, 0xd8, 0x5a, 0xcf, 0x8d, 0xb3, 0x45, 0xa4, 0xe2, 0xd0, 0x20, 0x26, 0x74, 0x72, - 0x46, 0xca, 0x24, 0x3a, 0x49, 0xa4, 0xeb, 0x94, 0xed, 0x28, 0xd2, 0x2b, 0x68, 0x79, 0x44, 0x9a, - 0x35, 0x9b, 0x7e, 0x87, 0xe4, 0x8c, 0xb4, 0x35, 0x45, 0xa4, 0xfc, 0xca, 0x14, 0x69, 0x88, 0x5d, - 0x9e, 0x53, 0xd9, 0xb9, 0x15, 0xc5, 0xce, 0x5a, 0x2e, 0xc8, 0x0e, 0x91, 0xc3, 0x1f, 0x79, 0x1f, - 0xcb, 0x8b, 0x1c, 0xdd, 0x9a, 0x74, 0x0c, 0x8e, 0xf5, 0xb0, 0x46, 0x46, 0xb2, 0xb7, 0xa2, 0x78, - 0x39, 0xaf, 0x9c, 0x0b, 0xf0, 0xe2, 0x9e, 0x74, 0x84, 0xa7, 0xdf, 0x85, 0xe5, 0x40, 0xb3, 0x6c, - 0x84, 0x88, 0xc2, 0x5b, 0x6a, 0x23, 0xd9, 0xb9, 0x4a, 0x69, 0x5f, 0x54, 0x36, 0x38, 0x6d, 0x7a, - 0xb6, 0x8d, 0x51, 0xff, 0x9e, 0x04, 0x17, 0x34, 0x6c, 0xe3, 0x7e, 0xfb, 0xf0, 0x44, 0x68, 0x00, - 0x66, 0x95, 0x86, 0xc3, 0x49, 0x96, 0x12, 0x45, 0xb7, 0x10, 0x25, 0x06, 0x37, 0xa5, 0x17, 0xc5, - 0x60, 0x51, 0xd2, 0xc7, 0x02, 0x4d, 0xc2, 0xd4, 0x37, 0x24, 0xd8, 0x64, 0x4c, 0x85, 0xb3, 0xb4, - 0x19, 0x69, 0x15, 0xd3, 0x0f, 0x1a, 0xe5, 0x5a, 0x88, 0x3c, 0xc2, 0xd9, 0x10, 0xbd, 0x86, 0x75, - 0x11, 0x9f, 0xde, 0x6b, 0xe8, 0xba, 0x19, 0xbd, 0x86, 0xf5, 0x20, 0x07, 0xbd, 0x86, 0x51, 0x9e, - 0xe6, 0x35, 0x62, 0x17, 0xf1, 0x54, 0x76, 0x66, 0xf3, 0x1a, 0xca, 0x0e, 0x8f, 0xf2, 0x3e, 0xaf, - 0x99, 0xc4, 0x51, 0x78, 0x5f, 0xf3, 0x73, 0xfa, 0x0c, 0xe5, 0x24, 0xca, 0x6a, 0x85, 0xae, 0x6c, - 0xa6, 0x3a, 0xd6, 0xb1, 0xfc, 0x52, 0xac, 0x96, 0x33, 0x12, 0x6e, 0x2e, 0xe2, 0xd1, 0xe3, 0xf6, - 0x67, 0x9f, 0xfe, 0xe8, 0x71, 0xdb, 0x89, 0x67, 0x3b, 0x7a, 0x78, 0x6f, 0xf2, 0xd8, 0xd1, 0xe3, - 0xd2, 0x9f, 0x76, 0xf4, 0xf8, 0x7b, 0xb1, 0x67, 0x60, 0x6b, 0xb6, 0xa3, 0x87, 0xb3, 0x45, 0xa4, - 0xf2, 0x14, 0x92, 0x54, 0x2a, 0x87, 0x47, 0x7a, 0xb4, 0x38, 0x2e, 0x4f, 0x6b, 0x69, 0xb5, 0x95, - 0x9b, 0x51, 0x84, 0x65, 0xb4, 0x34, 0x22, 0xdc, 0x23, 0x54, 0x7e, 0x5f, 0x82, 0x4c, 0x9d, 0xd0, - 0xf4, 0xae, 0x67, 0x57, 0x27, 0xfe, 0x08, 0xc3, 0x34, 0x23, 0x7d, 0x3d, 0x8a, 0x74, 0x36, 0xb7, - 0x2a, 0xd8, 0x06, 0xc7, 0x46, 0x77, 0xfd, 0x4d, 0x09, 0xd6, 0x38, 0xda, 0x11, 0x15, 0x1b, 0x3b, - 0xe8, 0x66, 0x44, 0x52, 0x34, 0xde, 0xe0, 0x1d, 0xc9, 0xce, 0x2b, 0x94, 0xf6, 0x35, 0x65, 0x8b, - 0xd3, 0xf6, 0x08, 0xe7, 0xe9, 0xe7, 0x48, 0xd8, 0x76, 0x06, 0xcf, 0x88, 0x85, 0x3a, 0x84, 0x91, - 0x63, 0xc8, 0xf8, 0x19, 0x50, 0xa6, 0x33, 0x10, 0x49, 0xf9, 0x26, 0xa5, 0x7c, 0x45, 0xb9, 0x28, - 0x86, 0x50, 0x1f, 0x79, 0x1b, 0x3b, 0x83, 0x67, 0x84, 0xee, 0xb7, 0x25, 0x90, 0xdd, 0x28, 0xe6, - 0xa9, 0xe1, 0xca, 0x44, 0x35, 0x30, 0xf0, 0x48, 0xe2, 0x77, 0xa2, 0xb4, 0xb0, 0x95, 0xdb, 0x0c, - 0xd1, 0x42, 0x9e, 0x7f, 0xa2, 0xc5, 0x72, 0xf2, 0x64, 0xa1, 0xdd, 0x3e, 0x3c, 0xd2, 0xab, 0x8d, - 0x5a, 0xa4, 0x0d, 0x5e, 0x89, 0xea, 0x88, 0x16, 0x5a, 0x99, 0x27, 0x98, 0xbf, 0xb2, 0xe2, 0xb3, - 0xc2, 0xbc, 0xe9, 0x0c, 0x78, 0xec, 0x14, 0xfa, 0xbd, 0x1b, 0x35, 0x74, 0x79, 0xf2, 0x9d, 0xbb, - 0xea, 0x0c, 0x66, 0xe3, 0xe4, 0x8b, 0x51, 0x9c, 0x5c, 0xcc, 0x6d, 0x8c, 0x71, 0x22, 0xc6, 0xce, - 0x2e, 0xb9, 0x25, 0xf4, 0xcc, 0x63, 0x3c, 0x45, 0x1e, 0x51, 0x7a, 0x88, 0x0e, 0x4c, 0xdb, 0xe3, - 0x22, 0x40, 0x27, 0x90, 0x12, 0x7e, 0x73, 0x21, 0xe2, 0xae, 0x36, 0xfe, 0xab, 0x0c, 0xb3, 0x9b, - 0x20, 0xef, 0x2c, 0xff, 0x94, 0x52, 0x6c, 0xda, 0x4f, 0x8c, 0x81, 0xd1, 0x37, 0xa8, 0xe9, 0x7f, - 0x08, 0x29, 0x7e, 0x73, 0xdf, 0x3d, 0x29, 0x97, 0x26, 0x27, 0x0d, 0x13, 0xae, 0x1d, 0xab, 0x94, - 0x62, 0x06, 0xa5, 0x04, 0xa3, 0x47, 0xc7, 0x80, 0xf6, 0xb0, 0x23, 0xbc, 0x94, 0xa1, 0x24, 0x94, - 0x69, 0x8d, 0x8f, 0x91, 0x95, 0x01, 0x01, 0x46, 0xc9, 0xb1, 0xa3, 0x18, 0xa1, 0xbc, 0xd0, 0x5a, - 0xcc, 0xe9, 0xfe, 0xa9, 0x04, 0x88, 0xbd, 0x26, 0x10, 0x56, 0x44, 0x85, 0xf9, 0xa8, 0xae, 0xdd, - 0xdc, 0xce, 0xac, 0xe0, 0xdc, 0xd6, 0x78, 0xc1, 0x51, 0x39, 0xeb, 0xe7, 0xa8, 0x69, 0x53, 0x30, - 0x6e, 0xe6, 0x6b, 0x5e, 0xfb, 0xa6, 0xd8, 0x52, 0xff, 0xda, 0x34, 0x52, 0xc1, 0xa6, 0xcf, 0x19, - 0x04, 0x34, 0xba, 0x08, 0xfa, 0xd9, 0xd1, 0x5d, 0x54, 0x2c, 0xad, 0x4e, 0xb1, 0x5d, 0xb0, 0x0e, - 0xbb, 0xeb, 0xd3, 0xba, 0x11, 0x27, 0x17, 0xbb, 0x42, 0x7a, 0x08, 0x5d, 0x3d, 0x29, 0xcb, 0x79, - 0xda, 0x52, 0xee, 0x93, 0xc7, 0xdf, 0x4b, 0xb0, 0xca, 0xdf, 0x62, 0x09, 0x2f, 0x78, 0x6c, 0xb4, - 0x33, 0x63, 0x77, 0x9a, 0xcb, 0x4d, 0x7e, 0x66, 0x78, 0xce, 0x54, 0x74, 0x94, 0x54, 0x36, 0xf3, - 0x9d, 0xae, 0xf9, 0x48, 0xef, 0xe6, 0xf9, 0xaf, 0x32, 0x9a, 0x56, 0xc7, 0xc7, 0xf3, 0x27, 0x00, - 0x65, 0xbb, 0xac, 0xf7, 0x68, 0xaf, 0x57, 0x64, 0x58, 0x08, 0x3f, 0x4a, 0x03, 0x4d, 0x64, 0xca, - 0x4e, 0x14, 0x1b, 0x67, 0xd1, 0xaa, 0xcb, 0x46, 0xd3, 0xb0, 0x0d, 0xbd, 0x47, 0x1b, 0xcd, 0xd0, - 0x1f, 0x4a, 0xb4, 0x64, 0x7e, 0x78, 0xf2, 0x21, 0x43, 0x2e, 0x76, 0x5e, 0x45, 0x71, 0xa2, 0x44, - 0xc9, 0x46, 0xe8, 0xc9, 0xba, 0x1d, 0xc5, 0xc7, 0x06, 0x3a, 0x97, 0x17, 0x9a, 0xb7, 0xf2, 0x1c, - 0x55, 0xbe, 0x87, 0x77, 0xff, 0x59, 0xfa, 0x5e, 0xe1, 0x5b, 0x12, 0xfa, 0x12, 0xfb, 0xe9, 0xbb, - 0xad, 0x42, 0xad, 0xac, 0x6c, 0xa3, 0x1b, 0x8f, 0x1d, 0x67, 0x60, 0xdf, 0xcd, 0xe7, 0x3b, 0x86, - 0xf3, 0x78, 0xf8, 0x68, 0xa7, 0x65, 0xf6, 0xf2, 0x2d, 0xdd, 0x1c, 0x2d, 0x1c, 0x3c, 0xe9, 0xd0, - 0x22, 0xd1, 0xed, 0xf8, 0x6b, 0x3b, 0xaf, 0x6f, 0x4b, 0xb1, 0xdb, 0xe2, 0xa7, 0x05, 0xf9, 0x8f, - 0x6c, 0xb3, 0xef, 0x1f, 0xe9, 0x58, 0x83, 0xd6, 0xdd, 0x31, 0x98, 0xbb, 0x63, 0x30, 0x1f, 0xde, - 0x9c, 0x46, 0x91, 0xfe, 0x6e, 0x38, 0x01, 0x7d, 0x34, 0x4f, 0x25, 0xf4, 0xc6, 0xff, 0x05, 0x00, - 0x00, 0xff, 0xff, 0xa5, 0x71, 0x9e, 0x99, 0x72, 0x5c, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_auth_proto_rawDesc, + NumEnums: 8, + NumMessages: 29, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_auth_proto_goTypes, + DependencyIndexes: file_auth_proto_depIdxs, + EnumInfos: file_auth_proto_enumTypes, + MessageInfos: file_auth_proto_msgTypes, + }.Build() + File_auth_proto = out.File + file_auth_proto_rawDesc = nil + file_auth_proto_goTypes = nil + file_auth_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -6212,33 +3432,14 @@ type AuthServiceClient interface { Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) // Authorization - GetUserAgent(ctx context.Context, in *UserAgentID, opts ...grpc.CallOption) (*UserAgent, error) - CreateUserAgent(ctx context.Context, in *UserAgentCreation, opts ...grpc.CallOption) (*UserAgent, error) - RevokeUserAgent(ctx context.Context, in *UserAgentID, opts ...grpc.CallOption) (*UserAgent, error) - CreateAuthSession(ctx context.Context, in *AuthSessionCreation, opts ...grpc.CallOption) (*AuthSessionResponse, error) - GetAuthSession(ctx context.Context, in *AuthSessionID, opts ...grpc.CallOption) (*AuthSessionResponse, error) - GetAuthSessionByTokenID(ctx context.Context, in *TokenID, opts ...grpc.CallOption) (*AuthSessionView, error) - SelectUser(ctx context.Context, in *SelectUserRequest, opts ...grpc.CallOption) (*AuthSessionResponse, error) - VerifyUser(ctx context.Context, in *VerifyUserRequest, opts ...grpc.CallOption) (*AuthSessionResponse, error) - VerifyPassword(ctx context.Context, in *VerifyPasswordRequest, opts ...grpc.CallOption) (*AuthSessionResponse, error) - VerifyMfa(ctx context.Context, in *VerifyMfaRequest, opts ...grpc.CallOption) (*AuthSessionResponse, error) - GetUserAgentSessions(ctx context.Context, in *UserAgentID, opts ...grpc.CallOption) (*UserSessions, error) - GetUserSession(ctx context.Context, in *UserSessionID, opts ...grpc.CallOption) (*UserSession, error) GetMyUserSessions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserSessionViews, error) - TerminateUserSession(ctx context.Context, in *UserSessionID, opts ...grpc.CallOption) (*empty.Empty, error) - CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*Token, error) //User - IsUserUnique(ctx context.Context, in *UniqueUserRequest, opts ...grpc.CallOption) (*UniqueUserResponse, error) - RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*User, error) - RegisterUserWithExternal(ctx context.Context, in *RegisterUserExternalIDPRequest, opts ...grpc.CallOption) (*User, error) GetMyUserProfile(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserProfile, error) UpdateMyUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UserProfile, error) GetMyUserEmail(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserEmail, error) ChangeMyUserEmail(ctx context.Context, in *UpdateUserEmailRequest, opts ...grpc.CallOption) (*UserEmail, error) VerifyMyUserEmail(ctx context.Context, in *VerifyMyUserEmailRequest, opts ...grpc.CallOption) (*empty.Empty, error) - VerifyUserEmail(ctx context.Context, in *VerifyUserEmailRequest, opts ...grpc.CallOption) (*empty.Empty, error) ResendMyEmailVerificationMail(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - ResendEmailVerificationMail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) GetMyUserPhone(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserPhone, error) ChangeMyUserPhone(ctx context.Context, in *UpdateUserPhoneRequest, opts ...grpc.CallOption) (*UserPhone, error) VerifyMyUserPhone(ctx context.Context, in *VerifyUserPhoneRequest, opts ...grpc.CallOption) (*empty.Empty, error) @@ -6247,22 +3448,13 @@ type AuthServiceClient interface { UpdateMyUserAddress(ctx context.Context, in *UpdateUserAddressRequest, opts ...grpc.CallOption) (*UserAddress, error) GetMyMfas(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MultiFactors, error) SetMyPassword(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) - RequestPasswordReset(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) - PasswordReset(ctx context.Context, in *ResetPassword, opts ...grpc.CallOption) (*empty.Empty, error) ChangeMyPassword(ctx context.Context, in *PasswordChange, opts ...grpc.CallOption) (*empty.Empty, error) // MFA AddMfaOTP(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MfaOtpResponse, error) VerifyMfaOTP(ctx context.Context, in *VerifyMfaOtp, opts ...grpc.CallOption) (*MfaOtpResponse, error) RemoveMfaOTP(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - SkipMfaInit(ctx context.Context, in *SkipMfaInitRequest, opts ...grpc.CallOption) (*empty.Empty, error) //TODO: Remove func only for tests GetUserByID(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) - //Application - GetApplicationByID(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) - SearchApplications(ctx context.Context, in *ApplicationSearchRequest, opts ...grpc.CallOption) (*ApplicationSearchResponse, error) - AuthorizeApplication(ctx context.Context, in *ApplicationAuthorizeRequest, opts ...grpc.CallOption) (*Application, error) - //Grant - SearchGrant(ctx context.Context, in *GrantSearchRequest, opts ...grpc.CallOption) (*GrantSearchResponse, error) SearchMyProjectOrgs(ctx context.Context, in *MyProjectOrgSearchRequest, opts ...grpc.CallOption) (*MyProjectOrgSearchResponse, error) IsIamAdmin(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*IsAdminResponse, error) //Permission @@ -6304,114 +3496,6 @@ func (c *authServiceClient) Validate(ctx context.Context, in *empty.Empty, opts return out, nil } -func (c *authServiceClient) GetUserAgent(ctx context.Context, in *UserAgentID, opts ...grpc.CallOption) (*UserAgent, error) { - out := new(UserAgent) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/GetUserAgent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) CreateUserAgent(ctx context.Context, in *UserAgentCreation, opts ...grpc.CallOption) (*UserAgent, error) { - out := new(UserAgent) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/CreateUserAgent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) RevokeUserAgent(ctx context.Context, in *UserAgentID, opts ...grpc.CallOption) (*UserAgent, error) { - out := new(UserAgent) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/RevokeUserAgent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) CreateAuthSession(ctx context.Context, in *AuthSessionCreation, opts ...grpc.CallOption) (*AuthSessionResponse, error) { - out := new(AuthSessionResponse) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/CreateAuthSession", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetAuthSession(ctx context.Context, in *AuthSessionID, opts ...grpc.CallOption) (*AuthSessionResponse, error) { - out := new(AuthSessionResponse) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/GetAuthSession", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetAuthSessionByTokenID(ctx context.Context, in *TokenID, opts ...grpc.CallOption) (*AuthSessionView, error) { - out := new(AuthSessionView) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/GetAuthSessionByTokenID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) SelectUser(ctx context.Context, in *SelectUserRequest, opts ...grpc.CallOption) (*AuthSessionResponse, error) { - out := new(AuthSessionResponse) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/SelectUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) VerifyUser(ctx context.Context, in *VerifyUserRequest, opts ...grpc.CallOption) (*AuthSessionResponse, error) { - out := new(AuthSessionResponse) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/VerifyUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) VerifyPassword(ctx context.Context, in *VerifyPasswordRequest, opts ...grpc.CallOption) (*AuthSessionResponse, error) { - out := new(AuthSessionResponse) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/VerifyPassword", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) VerifyMfa(ctx context.Context, in *VerifyMfaRequest, opts ...grpc.CallOption) (*AuthSessionResponse, error) { - out := new(AuthSessionResponse) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/VerifyMfa", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetUserAgentSessions(ctx context.Context, in *UserAgentID, opts ...grpc.CallOption) (*UserSessions, error) { - out := new(UserSessions) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/GetUserAgentSessions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetUserSession(ctx context.Context, in *UserSessionID, opts ...grpc.CallOption) (*UserSession, error) { - out := new(UserSession) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/GetUserSession", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *authServiceClient) GetMyUserSessions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserSessionViews, error) { out := new(UserSessionViews) err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/GetMyUserSessions", in, out, opts...) @@ -6421,51 +3505,6 @@ func (c *authServiceClient) GetMyUserSessions(ctx context.Context, in *empty.Emp return out, nil } -func (c *authServiceClient) TerminateUserSession(ctx context.Context, in *UserSessionID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/TerminateUserSession", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*Token, error) { - out := new(Token) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/CreateToken", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) IsUserUnique(ctx context.Context, in *UniqueUserRequest, opts ...grpc.CallOption) (*UniqueUserResponse, error) { - out := new(UniqueUserResponse) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/IsUserUnique", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/RegisterUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) RegisterUserWithExternal(ctx context.Context, in *RegisterUserExternalIDPRequest, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/RegisterUserWithExternal", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *authServiceClient) GetMyUserProfile(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserProfile, error) { out := new(UserProfile) err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/GetMyUserProfile", in, out, opts...) @@ -6511,15 +3550,6 @@ func (c *authServiceClient) VerifyMyUserEmail(ctx context.Context, in *VerifyMyU return out, nil } -func (c *authServiceClient) VerifyUserEmail(ctx context.Context, in *VerifyUserEmailRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/VerifyUserEmail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *authServiceClient) ResendMyEmailVerificationMail(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/ResendMyEmailVerificationMail", in, out, opts...) @@ -6529,15 +3559,6 @@ func (c *authServiceClient) ResendMyEmailVerificationMail(ctx context.Context, i return out, nil } -func (c *authServiceClient) ResendEmailVerificationMail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/ResendEmailVerificationMail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *authServiceClient) GetMyUserPhone(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserPhone, error) { out := new(UserPhone) err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/GetMyUserPhone", in, out, opts...) @@ -6610,24 +3631,6 @@ func (c *authServiceClient) SetMyPassword(ctx context.Context, in *PasswordReque return out, nil } -func (c *authServiceClient) RequestPasswordReset(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/RequestPasswordReset", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) PasswordReset(ctx context.Context, in *ResetPassword, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/PasswordReset", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *authServiceClient) ChangeMyPassword(ctx context.Context, in *PasswordChange, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/ChangeMyPassword", in, out, opts...) @@ -6664,15 +3667,6 @@ func (c *authServiceClient) RemoveMfaOTP(ctx context.Context, in *empty.Empty, o return out, nil } -func (c *authServiceClient) SkipMfaInit(ctx context.Context, in *SkipMfaInitRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/SkipMfaInit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *authServiceClient) GetUserByID(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) { out := new(User) err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/GetUserByID", in, out, opts...) @@ -6682,42 +3676,6 @@ func (c *authServiceClient) GetUserByID(ctx context.Context, in *UserID, opts .. return out, nil } -func (c *authServiceClient) GetApplicationByID(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) { - out := new(Application) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/GetApplicationByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) SearchApplications(ctx context.Context, in *ApplicationSearchRequest, opts ...grpc.CallOption) (*ApplicationSearchResponse, error) { - out := new(ApplicationSearchResponse) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/SearchApplications", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) AuthorizeApplication(ctx context.Context, in *ApplicationAuthorizeRequest, opts ...grpc.CallOption) (*Application, error) { - out := new(Application) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/AuthorizeApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) SearchGrant(ctx context.Context, in *GrantSearchRequest, opts ...grpc.CallOption) (*GrantSearchResponse, error) { - out := new(GrantSearchResponse) - err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/SearchGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *authServiceClient) SearchMyProjectOrgs(ctx context.Context, in *MyProjectOrgSearchRequest, opts ...grpc.CallOption) (*MyProjectOrgSearchResponse, error) { out := new(MyProjectOrgSearchResponse) err := c.cc.Invoke(ctx, "/zitadel.auth.api.v1.AuthService/SearchMyProjectOrgs", in, out, opts...) @@ -6752,33 +3710,14 @@ type AuthServiceServer interface { Ready(context.Context, *empty.Empty) (*empty.Empty, error) Validate(context.Context, *empty.Empty) (*_struct.Struct, error) // Authorization - GetUserAgent(context.Context, *UserAgentID) (*UserAgent, error) - CreateUserAgent(context.Context, *UserAgentCreation) (*UserAgent, error) - RevokeUserAgent(context.Context, *UserAgentID) (*UserAgent, error) - CreateAuthSession(context.Context, *AuthSessionCreation) (*AuthSessionResponse, error) - GetAuthSession(context.Context, *AuthSessionID) (*AuthSessionResponse, error) - GetAuthSessionByTokenID(context.Context, *TokenID) (*AuthSessionView, error) - SelectUser(context.Context, *SelectUserRequest) (*AuthSessionResponse, error) - VerifyUser(context.Context, *VerifyUserRequest) (*AuthSessionResponse, error) - VerifyPassword(context.Context, *VerifyPasswordRequest) (*AuthSessionResponse, error) - VerifyMfa(context.Context, *VerifyMfaRequest) (*AuthSessionResponse, error) - GetUserAgentSessions(context.Context, *UserAgentID) (*UserSessions, error) - GetUserSession(context.Context, *UserSessionID) (*UserSession, error) GetMyUserSessions(context.Context, *empty.Empty) (*UserSessionViews, error) - TerminateUserSession(context.Context, *UserSessionID) (*empty.Empty, error) - CreateToken(context.Context, *CreateTokenRequest) (*Token, error) //User - IsUserUnique(context.Context, *UniqueUserRequest) (*UniqueUserResponse, error) - RegisterUser(context.Context, *RegisterUserRequest) (*User, error) - RegisterUserWithExternal(context.Context, *RegisterUserExternalIDPRequest) (*User, error) GetMyUserProfile(context.Context, *empty.Empty) (*UserProfile, error) UpdateMyUserProfile(context.Context, *UpdateUserProfileRequest) (*UserProfile, error) GetMyUserEmail(context.Context, *empty.Empty) (*UserEmail, error) ChangeMyUserEmail(context.Context, *UpdateUserEmailRequest) (*UserEmail, error) VerifyMyUserEmail(context.Context, *VerifyMyUserEmailRequest) (*empty.Empty, error) - VerifyUserEmail(context.Context, *VerifyUserEmailRequest) (*empty.Empty, error) ResendMyEmailVerificationMail(context.Context, *empty.Empty) (*empty.Empty, error) - ResendEmailVerificationMail(context.Context, *UserID) (*empty.Empty, error) GetMyUserPhone(context.Context, *empty.Empty) (*UserPhone, error) ChangeMyUserPhone(context.Context, *UpdateUserPhoneRequest) (*UserPhone, error) VerifyMyUserPhone(context.Context, *VerifyUserPhoneRequest) (*empty.Empty, error) @@ -6787,22 +3726,13 @@ type AuthServiceServer interface { UpdateMyUserAddress(context.Context, *UpdateUserAddressRequest) (*UserAddress, error) GetMyMfas(context.Context, *empty.Empty) (*MultiFactors, error) SetMyPassword(context.Context, *PasswordRequest) (*empty.Empty, error) - RequestPasswordReset(context.Context, *ResetPasswordRequest) (*empty.Empty, error) - PasswordReset(context.Context, *ResetPassword) (*empty.Empty, error) ChangeMyPassword(context.Context, *PasswordChange) (*empty.Empty, error) // MFA AddMfaOTP(context.Context, *empty.Empty) (*MfaOtpResponse, error) VerifyMfaOTP(context.Context, *VerifyMfaOtp) (*MfaOtpResponse, error) RemoveMfaOTP(context.Context, *empty.Empty) (*empty.Empty, error) - SkipMfaInit(context.Context, *SkipMfaInitRequest) (*empty.Empty, error) //TODO: Remove func only for tests GetUserByID(context.Context, *UserID) (*User, error) - //Application - GetApplicationByID(context.Context, *ApplicationID) (*Application, error) - SearchApplications(context.Context, *ApplicationSearchRequest) (*ApplicationSearchResponse, error) - AuthorizeApplication(context.Context, *ApplicationAuthorizeRequest) (*Application, error) - //Grant - SearchGrant(context.Context, *GrantSearchRequest) (*GrantSearchResponse, error) SearchMyProjectOrgs(context.Context, *MyProjectOrgSearchRequest) (*MyProjectOrgSearchResponse, error) IsIamAdmin(context.Context, *empty.Empty) (*IsAdminResponse, error) //Permission @@ -6813,160 +3743,82 @@ type AuthServiceServer interface { type UnimplementedAuthServiceServer struct { } -func (*UnimplementedAuthServiceServer) Healthz(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { +func (*UnimplementedAuthServiceServer) Healthz(context.Context, *empty.Empty) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Healthz not implemented") } -func (*UnimplementedAuthServiceServer) Ready(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { +func (*UnimplementedAuthServiceServer) Ready(context.Context, *empty.Empty) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Ready not implemented") } -func (*UnimplementedAuthServiceServer) Validate(ctx context.Context, req *empty.Empty) (*_struct.Struct, error) { +func (*UnimplementedAuthServiceServer) Validate(context.Context, *empty.Empty) (*_struct.Struct, error) { return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented") } -func (*UnimplementedAuthServiceServer) GetUserAgent(ctx context.Context, req *UserAgentID) (*UserAgent, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserAgent not implemented") -} -func (*UnimplementedAuthServiceServer) CreateUserAgent(ctx context.Context, req *UserAgentCreation) (*UserAgent, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateUserAgent not implemented") -} -func (*UnimplementedAuthServiceServer) RevokeUserAgent(ctx context.Context, req *UserAgentID) (*UserAgent, error) { - return nil, status.Errorf(codes.Unimplemented, "method RevokeUserAgent not implemented") -} -func (*UnimplementedAuthServiceServer) CreateAuthSession(ctx context.Context, req *AuthSessionCreation) (*AuthSessionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateAuthSession not implemented") -} -func (*UnimplementedAuthServiceServer) GetAuthSession(ctx context.Context, req *AuthSessionID) (*AuthSessionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAuthSession not implemented") -} -func (*UnimplementedAuthServiceServer) GetAuthSessionByTokenID(ctx context.Context, req *TokenID) (*AuthSessionView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAuthSessionByTokenID not implemented") -} -func (*UnimplementedAuthServiceServer) SelectUser(ctx context.Context, req *SelectUserRequest) (*AuthSessionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SelectUser not implemented") -} -func (*UnimplementedAuthServiceServer) VerifyUser(ctx context.Context, req *VerifyUserRequest) (*AuthSessionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyUser not implemented") -} -func (*UnimplementedAuthServiceServer) VerifyPassword(ctx context.Context, req *VerifyPasswordRequest) (*AuthSessionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyPassword not implemented") -} -func (*UnimplementedAuthServiceServer) VerifyMfa(ctx context.Context, req *VerifyMfaRequest) (*AuthSessionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyMfa not implemented") -} -func (*UnimplementedAuthServiceServer) GetUserAgentSessions(ctx context.Context, req *UserAgentID) (*UserSessions, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserAgentSessions not implemented") -} -func (*UnimplementedAuthServiceServer) GetUserSession(ctx context.Context, req *UserSessionID) (*UserSession, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserSession not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyUserSessions(ctx context.Context, req *empty.Empty) (*UserSessionViews, error) { +func (*UnimplementedAuthServiceServer) GetMyUserSessions(context.Context, *empty.Empty) (*UserSessionViews, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMyUserSessions not implemented") } -func (*UnimplementedAuthServiceServer) TerminateUserSession(ctx context.Context, req *UserSessionID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method TerminateUserSession not implemented") -} -func (*UnimplementedAuthServiceServer) CreateToken(ctx context.Context, req *CreateTokenRequest) (*Token, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateToken not implemented") -} -func (*UnimplementedAuthServiceServer) IsUserUnique(ctx context.Context, req *UniqueUserRequest) (*UniqueUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsUserUnique not implemented") -} -func (*UnimplementedAuthServiceServer) RegisterUser(ctx context.Context, req *RegisterUserRequest) (*User, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterUser not implemented") -} -func (*UnimplementedAuthServiceServer) RegisterUserWithExternal(ctx context.Context, req *RegisterUserExternalIDPRequest) (*User, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterUserWithExternal not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyUserProfile(ctx context.Context, req *empty.Empty) (*UserProfile, error) { +func (*UnimplementedAuthServiceServer) GetMyUserProfile(context.Context, *empty.Empty) (*UserProfile, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMyUserProfile not implemented") } -func (*UnimplementedAuthServiceServer) UpdateMyUserProfile(ctx context.Context, req *UpdateUserProfileRequest) (*UserProfile, error) { +func (*UnimplementedAuthServiceServer) UpdateMyUserProfile(context.Context, *UpdateUserProfileRequest) (*UserProfile, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateMyUserProfile not implemented") } -func (*UnimplementedAuthServiceServer) GetMyUserEmail(ctx context.Context, req *empty.Empty) (*UserEmail, error) { +func (*UnimplementedAuthServiceServer) GetMyUserEmail(context.Context, *empty.Empty) (*UserEmail, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMyUserEmail not implemented") } -func (*UnimplementedAuthServiceServer) ChangeMyUserEmail(ctx context.Context, req *UpdateUserEmailRequest) (*UserEmail, error) { +func (*UnimplementedAuthServiceServer) ChangeMyUserEmail(context.Context, *UpdateUserEmailRequest) (*UserEmail, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeMyUserEmail not implemented") } -func (*UnimplementedAuthServiceServer) VerifyMyUserEmail(ctx context.Context, req *VerifyMyUserEmailRequest) (*empty.Empty, error) { +func (*UnimplementedAuthServiceServer) VerifyMyUserEmail(context.Context, *VerifyMyUserEmailRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifyMyUserEmail not implemented") } -func (*UnimplementedAuthServiceServer) VerifyUserEmail(ctx context.Context, req *VerifyUserEmailRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyUserEmail not implemented") -} -func (*UnimplementedAuthServiceServer) ResendMyEmailVerificationMail(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { +func (*UnimplementedAuthServiceServer) ResendMyEmailVerificationMail(context.Context, *empty.Empty) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method ResendMyEmailVerificationMail not implemented") } -func (*UnimplementedAuthServiceServer) ResendEmailVerificationMail(ctx context.Context, req *UserID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResendEmailVerificationMail not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyUserPhone(ctx context.Context, req *empty.Empty) (*UserPhone, error) { +func (*UnimplementedAuthServiceServer) GetMyUserPhone(context.Context, *empty.Empty) (*UserPhone, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMyUserPhone not implemented") } -func (*UnimplementedAuthServiceServer) ChangeMyUserPhone(ctx context.Context, req *UpdateUserPhoneRequest) (*UserPhone, error) { +func (*UnimplementedAuthServiceServer) ChangeMyUserPhone(context.Context, *UpdateUserPhoneRequest) (*UserPhone, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeMyUserPhone not implemented") } -func (*UnimplementedAuthServiceServer) VerifyMyUserPhone(ctx context.Context, req *VerifyUserPhoneRequest) (*empty.Empty, error) { +func (*UnimplementedAuthServiceServer) VerifyMyUserPhone(context.Context, *VerifyUserPhoneRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifyMyUserPhone not implemented") } -func (*UnimplementedAuthServiceServer) ResendMyPhoneVerificationCode(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { +func (*UnimplementedAuthServiceServer) ResendMyPhoneVerificationCode(context.Context, *empty.Empty) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method ResendMyPhoneVerificationCode not implemented") } -func (*UnimplementedAuthServiceServer) GetMyUserAddress(ctx context.Context, req *empty.Empty) (*UserAddress, error) { +func (*UnimplementedAuthServiceServer) GetMyUserAddress(context.Context, *empty.Empty) (*UserAddress, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMyUserAddress not implemented") } -func (*UnimplementedAuthServiceServer) UpdateMyUserAddress(ctx context.Context, req *UpdateUserAddressRequest) (*UserAddress, error) { +func (*UnimplementedAuthServiceServer) UpdateMyUserAddress(context.Context, *UpdateUserAddressRequest) (*UserAddress, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateMyUserAddress not implemented") } -func (*UnimplementedAuthServiceServer) GetMyMfas(ctx context.Context, req *empty.Empty) (*MultiFactors, error) { +func (*UnimplementedAuthServiceServer) GetMyMfas(context.Context, *empty.Empty) (*MultiFactors, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMyMfas not implemented") } -func (*UnimplementedAuthServiceServer) SetMyPassword(ctx context.Context, req *PasswordRequest) (*empty.Empty, error) { +func (*UnimplementedAuthServiceServer) SetMyPassword(context.Context, *PasswordRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method SetMyPassword not implemented") } -func (*UnimplementedAuthServiceServer) RequestPasswordReset(ctx context.Context, req *ResetPasswordRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RequestPasswordReset not implemented") -} -func (*UnimplementedAuthServiceServer) PasswordReset(ctx context.Context, req *ResetPassword) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method PasswordReset not implemented") -} -func (*UnimplementedAuthServiceServer) ChangeMyPassword(ctx context.Context, req *PasswordChange) (*empty.Empty, error) { +func (*UnimplementedAuthServiceServer) ChangeMyPassword(context.Context, *PasswordChange) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeMyPassword not implemented") } -func (*UnimplementedAuthServiceServer) AddMfaOTP(ctx context.Context, req *empty.Empty) (*MfaOtpResponse, error) { +func (*UnimplementedAuthServiceServer) AddMfaOTP(context.Context, *empty.Empty) (*MfaOtpResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMfaOTP not implemented") } -func (*UnimplementedAuthServiceServer) VerifyMfaOTP(ctx context.Context, req *VerifyMfaOtp) (*MfaOtpResponse, error) { +func (*UnimplementedAuthServiceServer) VerifyMfaOTP(context.Context, *VerifyMfaOtp) (*MfaOtpResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifyMfaOTP not implemented") } -func (*UnimplementedAuthServiceServer) RemoveMfaOTP(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { +func (*UnimplementedAuthServiceServer) RemoveMfaOTP(context.Context, *empty.Empty) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveMfaOTP not implemented") } -func (*UnimplementedAuthServiceServer) SkipMfaInit(ctx context.Context, req *SkipMfaInitRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SkipMfaInit not implemented") -} -func (*UnimplementedAuthServiceServer) GetUserByID(ctx context.Context, req *UserID) (*User, error) { +func (*UnimplementedAuthServiceServer) GetUserByID(context.Context, *UserID) (*User, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUserByID not implemented") } -func (*UnimplementedAuthServiceServer) GetApplicationByID(ctx context.Context, req *ApplicationID) (*Application, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetApplicationByID not implemented") -} -func (*UnimplementedAuthServiceServer) SearchApplications(ctx context.Context, req *ApplicationSearchRequest) (*ApplicationSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchApplications not implemented") -} -func (*UnimplementedAuthServiceServer) AuthorizeApplication(ctx context.Context, req *ApplicationAuthorizeRequest) (*Application, error) { - return nil, status.Errorf(codes.Unimplemented, "method AuthorizeApplication not implemented") -} -func (*UnimplementedAuthServiceServer) SearchGrant(ctx context.Context, req *GrantSearchRequest) (*GrantSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchGrant not implemented") -} -func (*UnimplementedAuthServiceServer) SearchMyProjectOrgs(ctx context.Context, req *MyProjectOrgSearchRequest) (*MyProjectOrgSearchResponse, error) { +func (*UnimplementedAuthServiceServer) SearchMyProjectOrgs(context.Context, *MyProjectOrgSearchRequest) (*MyProjectOrgSearchResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchMyProjectOrgs not implemented") } -func (*UnimplementedAuthServiceServer) IsIamAdmin(ctx context.Context, req *empty.Empty) (*IsAdminResponse, error) { +func (*UnimplementedAuthServiceServer) IsIamAdmin(context.Context, *empty.Empty) (*IsAdminResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method IsIamAdmin not implemented") } -func (*UnimplementedAuthServiceServer) GetMyZitadelPermissions(ctx context.Context, req *empty.Empty) (*MyPermissions, error) { +func (*UnimplementedAuthServiceServer) GetMyZitadelPermissions(context.Context, *empty.Empty) (*MyPermissions, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMyZitadelPermissions not implemented") } @@ -7028,222 +3880,6 @@ func _AuthService_Validate_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _AuthService_GetUserAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserAgentID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetUserAgent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/GetUserAgent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetUserAgent(ctx, req.(*UserAgentID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_CreateUserAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserAgentCreation) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).CreateUserAgent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/CreateUserAgent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).CreateUserAgent(ctx, req.(*UserAgentCreation)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_RevokeUserAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserAgentID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).RevokeUserAgent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/RevokeUserAgent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).RevokeUserAgent(ctx, req.(*UserAgentID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_CreateAuthSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AuthSessionCreation) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).CreateAuthSession(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/CreateAuthSession", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).CreateAuthSession(ctx, req.(*AuthSessionCreation)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetAuthSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AuthSessionID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetAuthSession(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/GetAuthSession", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetAuthSession(ctx, req.(*AuthSessionID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetAuthSessionByTokenID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TokenID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetAuthSessionByTokenID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/GetAuthSessionByTokenID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetAuthSessionByTokenID(ctx, req.(*TokenID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_SelectUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SelectUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).SelectUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/SelectUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).SelectUser(ctx, req.(*SelectUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_VerifyUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).VerifyUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/VerifyUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).VerifyUser(ctx, req.(*VerifyUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_VerifyPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyPasswordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).VerifyPassword(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/VerifyPassword", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).VerifyPassword(ctx, req.(*VerifyPasswordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_VerifyMfa_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyMfaRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).VerifyMfa(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/VerifyMfa", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).VerifyMfa(ctx, req.(*VerifyMfaRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetUserAgentSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserAgentID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetUserAgentSessions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/GetUserAgentSessions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetUserAgentSessions(ctx, req.(*UserAgentID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetUserSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserSessionID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetUserSession(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/GetUserSession", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetUserSession(ctx, req.(*UserSessionID)) - } - return interceptor(ctx, in, info, handler) -} - func _AuthService_GetMyUserSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(empty.Empty) if err := dec(in); err != nil { @@ -7262,96 +3898,6 @@ func _AuthService_GetMyUserSessions_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } -func _AuthService_TerminateUserSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserSessionID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).TerminateUserSession(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/TerminateUserSession", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).TerminateUserSession(ctx, req.(*UserSessionID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_CreateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateTokenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).CreateToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/CreateToken", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).CreateToken(ctx, req.(*CreateTokenRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_IsUserUnique_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UniqueUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).IsUserUnique(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/IsUserUnique", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).IsUserUnique(ctx, req.(*UniqueUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_RegisterUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RegisterUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).RegisterUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/RegisterUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).RegisterUser(ctx, req.(*RegisterUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_RegisterUserWithExternal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RegisterUserExternalIDPRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).RegisterUserWithExternal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/RegisterUserWithExternal", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).RegisterUserWithExternal(ctx, req.(*RegisterUserExternalIDPRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AuthService_GetMyUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(empty.Empty) if err := dec(in); err != nil { @@ -7442,24 +3988,6 @@ func _AuthService_VerifyMyUserEmail_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } -func _AuthService_VerifyUserEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyUserEmailRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).VerifyUserEmail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/VerifyUserEmail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).VerifyUserEmail(ctx, req.(*VerifyUserEmailRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AuthService_ResendMyEmailVerificationMail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(empty.Empty) if err := dec(in); err != nil { @@ -7478,24 +4006,6 @@ func _AuthService_ResendMyEmailVerificationMail_Handler(srv interface{}, ctx con return interceptor(ctx, in, info, handler) } -func _AuthService_ResendEmailVerificationMail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).ResendEmailVerificationMail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/ResendEmailVerificationMail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).ResendEmailVerificationMail(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - func _AuthService_GetMyUserPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(empty.Empty) if err := dec(in); err != nil { @@ -7640,42 +4150,6 @@ func _AuthService_SetMyPassword_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } -func _AuthService_RequestPasswordReset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetPasswordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).RequestPasswordReset(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/RequestPasswordReset", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).RequestPasswordReset(ctx, req.(*ResetPasswordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_PasswordReset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetPassword) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).PasswordReset(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/PasswordReset", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).PasswordReset(ctx, req.(*ResetPassword)) - } - return interceptor(ctx, in, info, handler) -} - func _AuthService_ChangeMyPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PasswordChange) if err := dec(in); err != nil { @@ -7748,24 +4222,6 @@ func _AuthService_RemoveMfaOTP_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _AuthService_SkipMfaInit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SkipMfaInitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).SkipMfaInit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/SkipMfaInit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).SkipMfaInit(ctx, req.(*SkipMfaInitRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AuthService_GetUserByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UserID) if err := dec(in); err != nil { @@ -7784,78 +4240,6 @@ func _AuthService_GetUserByID_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _AuthService_GetApplicationByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetApplicationByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/GetApplicationByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetApplicationByID(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_SearchApplications_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).SearchApplications(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/SearchApplications", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).SearchApplications(ctx, req.(*ApplicationSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_AuthorizeApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationAuthorizeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).AuthorizeApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/AuthorizeApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).AuthorizeApplication(ctx, req.(*ApplicationAuthorizeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_SearchGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GrantSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).SearchGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zitadel.auth.api.v1.AuthService/SearchGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).SearchGrant(ctx, req.(*GrantSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AuthService_SearchMyProjectOrgs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MyProjectOrgSearchRequest) if err := dec(in); err != nil { @@ -7926,78 +4310,10 @@ var _AuthService_serviceDesc = grpc.ServiceDesc{ MethodName: "Validate", Handler: _AuthService_Validate_Handler, }, - { - MethodName: "GetUserAgent", - Handler: _AuthService_GetUserAgent_Handler, - }, - { - MethodName: "CreateUserAgent", - Handler: _AuthService_CreateUserAgent_Handler, - }, - { - MethodName: "RevokeUserAgent", - Handler: _AuthService_RevokeUserAgent_Handler, - }, - { - MethodName: "CreateAuthSession", - Handler: _AuthService_CreateAuthSession_Handler, - }, - { - MethodName: "GetAuthSession", - Handler: _AuthService_GetAuthSession_Handler, - }, - { - MethodName: "GetAuthSessionByTokenID", - Handler: _AuthService_GetAuthSessionByTokenID_Handler, - }, - { - MethodName: "SelectUser", - Handler: _AuthService_SelectUser_Handler, - }, - { - MethodName: "VerifyUser", - Handler: _AuthService_VerifyUser_Handler, - }, - { - MethodName: "VerifyPassword", - Handler: _AuthService_VerifyPassword_Handler, - }, - { - MethodName: "VerifyMfa", - Handler: _AuthService_VerifyMfa_Handler, - }, - { - MethodName: "GetUserAgentSessions", - Handler: _AuthService_GetUserAgentSessions_Handler, - }, - { - MethodName: "GetUserSession", - Handler: _AuthService_GetUserSession_Handler, - }, { MethodName: "GetMyUserSessions", Handler: _AuthService_GetMyUserSessions_Handler, }, - { - MethodName: "TerminateUserSession", - Handler: _AuthService_TerminateUserSession_Handler, - }, - { - MethodName: "CreateToken", - Handler: _AuthService_CreateToken_Handler, - }, - { - MethodName: "IsUserUnique", - Handler: _AuthService_IsUserUnique_Handler, - }, - { - MethodName: "RegisterUser", - Handler: _AuthService_RegisterUser_Handler, - }, - { - MethodName: "RegisterUserWithExternal", - Handler: _AuthService_RegisterUserWithExternal_Handler, - }, { MethodName: "GetMyUserProfile", Handler: _AuthService_GetMyUserProfile_Handler, @@ -8018,18 +4334,10 @@ var _AuthService_serviceDesc = grpc.ServiceDesc{ MethodName: "VerifyMyUserEmail", Handler: _AuthService_VerifyMyUserEmail_Handler, }, - { - MethodName: "VerifyUserEmail", - Handler: _AuthService_VerifyUserEmail_Handler, - }, { MethodName: "ResendMyEmailVerificationMail", Handler: _AuthService_ResendMyEmailVerificationMail_Handler, }, - { - MethodName: "ResendEmailVerificationMail", - Handler: _AuthService_ResendEmailVerificationMail_Handler, - }, { MethodName: "GetMyUserPhone", Handler: _AuthService_GetMyUserPhone_Handler, @@ -8062,14 +4370,6 @@ var _AuthService_serviceDesc = grpc.ServiceDesc{ MethodName: "SetMyPassword", Handler: _AuthService_SetMyPassword_Handler, }, - { - MethodName: "RequestPasswordReset", - Handler: _AuthService_RequestPasswordReset_Handler, - }, - { - MethodName: "PasswordReset", - Handler: _AuthService_PasswordReset_Handler, - }, { MethodName: "ChangeMyPassword", Handler: _AuthService_ChangeMyPassword_Handler, @@ -8086,30 +4386,10 @@ var _AuthService_serviceDesc = grpc.ServiceDesc{ MethodName: "RemoveMfaOTP", Handler: _AuthService_RemoveMfaOTP_Handler, }, - { - MethodName: "SkipMfaInit", - Handler: _AuthService_SkipMfaInit_Handler, - }, { MethodName: "GetUserByID", Handler: _AuthService_GetUserByID_Handler, }, - { - MethodName: "GetApplicationByID", - Handler: _AuthService_GetApplicationByID_Handler, - }, - { - MethodName: "SearchApplications", - Handler: _AuthService_SearchApplications_Handler, - }, - { - MethodName: "AuthorizeApplication", - Handler: _AuthService_AuthorizeApplication_Handler, - }, - { - MethodName: "SearchGrant", - Handler: _AuthService_SearchGrant_Handler, - }, { MethodName: "SearchMyProjectOrgs", Handler: _AuthService_SearchMyProjectOrgs_Handler, diff --git a/pkg/auth/api/grpc/auth.pb.gw.go b/pkg/auth/api/grpc/auth.pb.gw.go deleted file mode 100644 index 00607cd705..0000000000 --- a/pkg/auth/api/grpc/auth.pb.gw.go +++ /dev/null @@ -1,2485 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: auth.proto - -/* -Package grpc is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package grpc - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes/empty" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_AuthService_Healthz_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Healthz(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Ready(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Validate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetUserAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserAgentID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetUserAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_CreateUserAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserAgentCreation - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateUserAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_RevokeUserAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserAgentID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.RevokeUserAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_CreateAuthSession_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AuthSessionCreation - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["agent_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent_id") - } - - protoReq.AgentId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent_id", err) - } - - msg, err := client.CreateAuthSession(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AuthService_GetAuthSession_0 = &utilities.DoubleArray{Encoding: map[string]int{"agent_id": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) - -func request_AuthService_GetAuthSession_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AuthSessionID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["agent_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent_id") - } - - protoReq.AgentId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AuthService_GetAuthSession_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetAuthSession(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetAuthSessionByTokenID_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TokenID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetAuthSessionByTokenID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_SelectUser_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SelectUserRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["agent_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent_id") - } - - protoReq.AgentId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent_id", err) - } - - val, ok = pathParams["auth_session_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "auth_session_id") - } - - protoReq.AuthSessionId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "auth_session_id", err) - } - - msg, err := client.SelectUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_VerifyUser_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyUserRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["agent_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent_id") - } - - protoReq.AgentId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent_id", err) - } - - val, ok = pathParams["auth_session_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "auth_session_id") - } - - protoReq.AuthSessionId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "auth_session_id", err) - } - - msg, err := client.VerifyUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_VerifyPassword_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyPasswordRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["agent_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent_id") - } - - protoReq.AgentId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent_id", err) - } - - val, ok = pathParams["auth_session_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "auth_session_id") - } - - protoReq.AuthSessionId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "auth_session_id", err) - } - - msg, err := client.VerifyPassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_VerifyMfa_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyMfaRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["agent_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent_id") - } - - protoReq.AgentId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent_id", err) - } - - val, ok = pathParams["auth_session_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "auth_session_id") - } - - protoReq.AuthSessionId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "auth_session_id", err) - } - - msg, err := client.VerifyMfa(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetUserAgentSessions_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserAgentID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetUserAgentSessions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetUserSession_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserSessionID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["agent_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent_id") - } - - protoReq.AgentId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetUserSession(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetMyUserSessions_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUserSessions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_TerminateUserSession_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserSessionID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["agent_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent_id") - } - - protoReq.AgentId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.TerminateUserSession(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_CreateToken_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateTokenRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["agent_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent_id") - } - - protoReq.AgentId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent_id", err) - } - - val, ok = pathParams["auth_session_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "auth_session_id") - } - - protoReq.AuthSessionId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "auth_session_id", err) - } - - msg, err := client.CreateToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AuthService_IsUserUnique_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_AuthService_IsUserUnique_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UniqueUserRequest - var metadata runtime.ServerMetadata - - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AuthService_IsUserUnique_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.IsUserUnique(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_RegisterUser_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RegisterUserRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RegisterUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_RegisterUserWithExternal_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RegisterUserExternalIDPRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RegisterUserWithExternal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetMyUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUserProfile(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_UpdateMyUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserProfileRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateMyUserProfile(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetMyUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUserEmail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_ChangeMyUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserEmailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ChangeMyUserEmail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_VerifyMyUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyMyUserEmailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.VerifyMyUserEmail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_VerifyUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyUserEmailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.VerifyUserEmail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_ResendMyEmailVerificationMail_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ResendMyEmailVerificationMail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_ResendEmailVerificationMail_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ResendEmailVerificationMail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUserPhone(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_ChangeMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserPhoneRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ChangeMyUserPhone(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_VerifyMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyUserPhoneRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.VerifyMyUserPhone(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_ResendMyPhoneVerificationCode_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ResendMyPhoneVerificationCode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetMyUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUserAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_UpdateMyUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserAddressRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateMyUserAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetMyMfas_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyMfas(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_SetMyPassword_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SetMyPassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_RequestPasswordReset_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ResetPasswordRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RequestPasswordReset(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_PasswordReset_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ResetPassword - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.PasswordReset(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_ChangeMyPassword_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordChange - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ChangeMyPassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_AddMfaOTP_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddMfaOTP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_VerifyMfaOTP_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyMfaOtp - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.VerifyMfaOTP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_RemoveMfaOTP_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.RemoveMfaOTP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_SkipMfaInit_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SkipMfaInitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.SkipMfaInit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetUserByID_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetUserByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetApplicationByID_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetApplicationByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_SearchApplications_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchApplications(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_AuthorizeApplication_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationAuthorizeRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AuthorizeApplication(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_SearchGrant_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GrantSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_SearchMyProjectOrgs_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MyProjectOrgSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchMyProjectOrgs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_IsIamAdmin_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.IsIamAdmin(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthService_GetMyZitadelPermissions_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyZitadelPermissions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAuthServiceHandler(ctx, mux, conn) -} - -// RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAuthServiceHandlerClient(ctx, mux, NewAuthServiceClient(conn)) -} - -// RegisterAuthServiceHandlerClient registers the http handlers for service AuthService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "AuthServiceClient" to call the correct interceptors. -func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error { - - mux.Handle("GET", pattern_AuthService_Healthz_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_Healthz_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_Healthz_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_Ready_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_Ready_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_Ready_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_Validate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_Validate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_Validate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetUserAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetUserAgent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetUserAgent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_CreateUserAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_CreateUserAgent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_CreateUserAgent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_RevokeUserAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_RevokeUserAgent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RevokeUserAgent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_CreateAuthSession_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_CreateAuthSession_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_CreateAuthSession_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetAuthSession_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetAuthSession_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetAuthSession_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetAuthSessionByTokenID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetAuthSessionByTokenID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetAuthSessionByTokenID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_SelectUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_SelectUser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SelectUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_VerifyUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_VerifyUser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_VerifyPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_VerifyPassword_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_VerifyMfa_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_VerifyMfa_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyMfa_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetUserAgentSessions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetUserAgentSessions_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetUserAgentSessions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetUserSession_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetUserSession_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetUserSession_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserSessions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserSessions_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserSessions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AuthService_TerminateUserSession_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_TerminateUserSession_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_TerminateUserSession_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_CreateToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_CreateToken_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_CreateToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_IsUserUnique_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_IsUserUnique_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_IsUserUnique_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_RegisterUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_RegisterUser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RegisterUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_RegisterUserWithExternal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_RegisterUserWithExternal_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RegisterUserWithExternal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserProfile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserProfile_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_UpdateMyUserProfile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_UpdateMyUserProfile_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_UpdateMyUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserEmail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ChangeMyUserEmail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_VerifyMyUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_VerifyMyUserEmail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyMyUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_VerifyUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_VerifyUserEmail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_ResendMyEmailVerificationMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ResendMyEmailVerificationMail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ResendMyEmailVerificationMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_ResendEmailVerificationMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ResendEmailVerificationMail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ResendEmailVerificationMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserPhone_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ChangeMyUserPhone_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_VerifyMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_VerifyMyUserPhone_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_ResendMyPhoneVerificationCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ResendMyPhoneVerificationCode_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ResendMyPhoneVerificationCode_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserAddress_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_UpdateMyUserAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_UpdateMyUserAddress_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_UpdateMyUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyMfas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyMfas_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyMfas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_SetMyPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_SetMyPassword_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SetMyPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_RequestPasswordReset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_RequestPasswordReset_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RequestPasswordReset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_PasswordReset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_PasswordReset_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_PasswordReset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ChangeMyPassword_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_AddMfaOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_AddMfaOTP_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_AddMfaOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_VerifyMfaOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_VerifyMfaOTP_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyMfaOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AuthService_RemoveMfaOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_RemoveMfaOTP_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RemoveMfaOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_SkipMfaInit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_SkipMfaInit_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SkipMfaInit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetUserByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetUserByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetUserByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetApplicationByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetApplicationByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetApplicationByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_SearchApplications_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_SearchApplications_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SearchApplications_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_AuthorizeApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_AuthorizeApplication_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_AuthorizeApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_SearchGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_SearchGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SearchGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_SearchMyProjectOrgs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_SearchMyProjectOrgs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SearchMyProjectOrgs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_IsIamAdmin_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_IsIamAdmin_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_IsIamAdmin_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyZitadelPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyZitadelPermissions_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyZitadelPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_AuthService_Healthz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"healthz"}, "")) - - pattern_AuthService_Ready_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"ready"}, "")) - - pattern_AuthService_Validate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"validate"}, "")) - - pattern_AuthService_GetUserAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"useragents", "id"}, "")) - - pattern_AuthService_CreateUserAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"useragents"}, "")) - - pattern_AuthService_RevokeUserAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"useragents", "id"}, "")) - - pattern_AuthService_CreateAuthSession_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"useragents", "agent_id", "authsessions"}, "")) - - pattern_AuthService_GetAuthSession_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"useragents", "agent_id", "authsessions", "id"}, "")) - - pattern_AuthService_GetAuthSessionByTokenID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"tokens", "id", "authsession"}, "")) - - pattern_AuthService_SelectUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"useragents", "agent_id", "authsessions", "auth_session_id", "_selectuser"}, "")) - - pattern_AuthService_VerifyUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"useragents", "agent_id", "authsessions", "auth_session_id", "_verifyuser"}, "")) - - pattern_AuthService_VerifyPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"useragents", "agent_id", "authsessions", "auth_session_id", "_verifypassword"}, "")) - - pattern_AuthService_VerifyMfa_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"useragents", "agent_id", "authsessions", "auth_session_id", "_verifymfa"}, "")) - - pattern_AuthService_GetUserAgentSessions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"useragents", "id", "usersessions"}, "")) - - pattern_AuthService_GetUserSession_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"useragents", "agent_id", "usersessions", "id"}, "")) - - pattern_AuthService_GetMyUserSessions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"me", "usersessions"}, "")) - - pattern_AuthService_TerminateUserSession_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"useragents", "agent_id", "usersessions", "id"}, "")) - - pattern_AuthService_CreateToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"useragents", "agent_id", "authsessions", "auth_session_id", "tokens"}, "")) - - pattern_AuthService_IsUserUnique_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"users", "_isunique"}, "")) - - pattern_AuthService_RegisterUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"users", "_register"}, "")) - - pattern_AuthService_RegisterUserWithExternal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"users", "_externalregister"}, "")) - - pattern_AuthService_GetMyUserProfile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "profile"}, "")) - - pattern_AuthService_UpdateMyUserProfile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "profile"}, "")) - - pattern_AuthService_GetMyUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "email"}, "")) - - pattern_AuthService_ChangeMyUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "email"}, "")) - - pattern_AuthService_VerifyMyUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "email", "_verify"}, "")) - - pattern_AuthService_VerifyUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "email", "_verify"}, "")) - - pattern_AuthService_ResendMyEmailVerificationMail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "email", "_resendverification"}, "")) - - pattern_AuthService_ResendEmailVerificationMail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "email", "_resendverification"}, "")) - - pattern_AuthService_GetMyUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "phone"}, "")) - - pattern_AuthService_ChangeMyUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "phone"}, "")) - - pattern_AuthService_VerifyMyUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "phone", "_verify"}, "")) - - pattern_AuthService_ResendMyPhoneVerificationCode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "phone", "_resendverification"}, "")) - - pattern_AuthService_GetMyUserAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "address"}, "")) - - pattern_AuthService_UpdateMyUserAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "address"}, "")) - - pattern_AuthService_GetMyMfas_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "mfas"}, "")) - - pattern_AuthService_SetMyPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "passwords"}, "")) - - pattern_AuthService_RequestPasswordReset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "passwords", "_requestpwreset"}, "")) - - pattern_AuthService_PasswordReset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "passwords", "_resetpw"}, "")) - - pattern_AuthService_ChangeMyPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "passwords", "_change"}, "")) - - pattern_AuthService_AddMfaOTP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "mfa", "otp"}, "")) - - pattern_AuthService_VerifyMfaOTP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"users", "me", "mfa", "otp", "_verify"}, "")) - - pattern_AuthService_RemoveMfaOTP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "mfa", "otp"}, "")) - - pattern_AuthService_SkipMfaInit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "user_id", "mfa", "_skipinit"}, "")) - - pattern_AuthService_GetUserByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"users", "id"}, "")) - - pattern_AuthService_GetApplicationByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"applications", "id"}, "")) - - pattern_AuthService_SearchApplications_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"applications", "_search"}, "")) - - pattern_AuthService_AuthorizeApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"applications", "_authorize"}, "")) - - pattern_AuthService_SearchGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"grants", "_search"}, "")) - - pattern_AuthService_SearchMyProjectOrgs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"global", "projectorgs", "_search"}, "")) - - pattern_AuthService_IsIamAdmin_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"global", "_isiamadmin"}, "")) - - pattern_AuthService_GetMyZitadelPermissions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"permissions", "zitadel", "me"}, "")) -) - -var ( - forward_AuthService_Healthz_0 = runtime.ForwardResponseMessage - - forward_AuthService_Ready_0 = runtime.ForwardResponseMessage - - forward_AuthService_Validate_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetUserAgent_0 = runtime.ForwardResponseMessage - - forward_AuthService_CreateUserAgent_0 = runtime.ForwardResponseMessage - - forward_AuthService_RevokeUserAgent_0 = runtime.ForwardResponseMessage - - forward_AuthService_CreateAuthSession_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetAuthSession_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetAuthSessionByTokenID_0 = runtime.ForwardResponseMessage - - forward_AuthService_SelectUser_0 = runtime.ForwardResponseMessage - - forward_AuthService_VerifyUser_0 = runtime.ForwardResponseMessage - - forward_AuthService_VerifyPassword_0 = runtime.ForwardResponseMessage - - forward_AuthService_VerifyMfa_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetUserAgentSessions_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetUserSession_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserSessions_0 = runtime.ForwardResponseMessage - - forward_AuthService_TerminateUserSession_0 = runtime.ForwardResponseMessage - - forward_AuthService_CreateToken_0 = runtime.ForwardResponseMessage - - forward_AuthService_IsUserUnique_0 = runtime.ForwardResponseMessage - - forward_AuthService_RegisterUser_0 = runtime.ForwardResponseMessage - - forward_AuthService_RegisterUserWithExternal_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserProfile_0 = runtime.ForwardResponseMessage - - forward_AuthService_UpdateMyUserProfile_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserEmail_0 = runtime.ForwardResponseMessage - - forward_AuthService_ChangeMyUserEmail_0 = runtime.ForwardResponseMessage - - forward_AuthService_VerifyMyUserEmail_0 = runtime.ForwardResponseMessage - - forward_AuthService_VerifyUserEmail_0 = runtime.ForwardResponseMessage - - forward_AuthService_ResendMyEmailVerificationMail_0 = runtime.ForwardResponseMessage - - forward_AuthService_ResendEmailVerificationMail_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserPhone_0 = runtime.ForwardResponseMessage - - forward_AuthService_ChangeMyUserPhone_0 = runtime.ForwardResponseMessage - - forward_AuthService_VerifyMyUserPhone_0 = runtime.ForwardResponseMessage - - forward_AuthService_ResendMyPhoneVerificationCode_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserAddress_0 = runtime.ForwardResponseMessage - - forward_AuthService_UpdateMyUserAddress_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyMfas_0 = runtime.ForwardResponseMessage - - forward_AuthService_SetMyPassword_0 = runtime.ForwardResponseMessage - - forward_AuthService_RequestPasswordReset_0 = runtime.ForwardResponseMessage - - forward_AuthService_PasswordReset_0 = runtime.ForwardResponseMessage - - forward_AuthService_ChangeMyPassword_0 = runtime.ForwardResponseMessage - - forward_AuthService_AddMfaOTP_0 = runtime.ForwardResponseMessage - - forward_AuthService_VerifyMfaOTP_0 = runtime.ForwardResponseMessage - - forward_AuthService_RemoveMfaOTP_0 = runtime.ForwardResponseMessage - - forward_AuthService_SkipMfaInit_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetUserByID_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetApplicationByID_0 = runtime.ForwardResponseMessage - - forward_AuthService_SearchApplications_0 = runtime.ForwardResponseMessage - - forward_AuthService_AuthorizeApplication_0 = runtime.ForwardResponseMessage - - forward_AuthService_SearchGrant_0 = runtime.ForwardResponseMessage - - forward_AuthService_SearchMyProjectOrgs_0 = runtime.ForwardResponseMessage - - forward_AuthService_IsIamAdmin_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyZitadelPermissions_0 = runtime.ForwardResponseMessage -) diff --git a/pkg/auth/api/grpc/auth.swagger.json b/pkg/auth/api/grpc/auth.swagger.json index a90c611941..c73ed1a85f 100644 --- a/pkg/auth/api/grpc/auth.swagger.json +++ b/pkg/auth/api/grpc/auth.swagger.json @@ -19,83 +19,6 @@ "application/grpc" ], "paths": { - "/applications/_authorize": { - "post": { - "operationId": "AuthorizeApplication", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Application" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ApplicationAuthorizeRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/applications/_search": { - "post": { - "operationId": "SearchApplications", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ApplicationSearchResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ApplicationSearchRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/applications/{id}": { - "get": { - "summary": "Application", - "operationId": "GetApplicationByID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Application" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AuthService" - ] - } - }, "/global/_isiamadmin": { "get": { "operationId": "IsIamAdmin", @@ -138,33 +61,6 @@ ] } }, - "/grants/_search": { - "post": { - "summary": "Grant", - "operationId": "SearchGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1GrantSearchResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1GrantSearchRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, "/healthz": { "get": { "summary": "Readiness", @@ -184,6 +80,7 @@ }, "/me/usersessions": { "get": { + "summary": "Authorization", "operationId": "GetMyUserSessions", "responses": { "200": { @@ -231,552 +128,6 @@ ] } }, - "/tokens/{id}/authsession": { - "get": { - "operationId": "GetAuthSessionByTokenID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1AuthSessionView" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents": { - "post": { - "operationId": "CreateUserAgent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserAgent" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserAgentCreation" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents/{agent_id}/authsessions": { - "post": { - "operationId": "CreateAuthSession", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1AuthSessionResponse" - } - } - }, - "parameters": [ - { - "name": "agent_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1AuthSessionCreation" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents/{agent_id}/authsessions/{auth_session_id}/_selectuser": { - "put": { - "operationId": "SelectUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1AuthSessionResponse" - } - } - }, - "parameters": [ - { - "name": "agent_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "auth_session_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1SelectUserRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents/{agent_id}/authsessions/{auth_session_id}/_verifymfa": { - "put": { - "operationId": "VerifyMfa", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1AuthSessionResponse" - } - } - }, - "parameters": [ - { - "name": "agent_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "auth_session_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1VerifyMfaRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents/{agent_id}/authsessions/{auth_session_id}/_verifypassword": { - "put": { - "operationId": "VerifyPassword", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1AuthSessionResponse" - } - } - }, - "parameters": [ - { - "name": "agent_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "auth_session_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1VerifyPasswordRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents/{agent_id}/authsessions/{auth_session_id}/_verifyuser": { - "put": { - "operationId": "VerifyUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1AuthSessionResponse" - } - } - }, - "parameters": [ - { - "name": "agent_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "auth_session_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1VerifyUserRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents/{agent_id}/authsessions/{auth_session_id}/tokens": { - "post": { - "operationId": "CreateToken", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Token" - } - } - }, - "parameters": [ - { - "name": "agent_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "auth_session_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1CreateTokenRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents/{agent_id}/authsessions/{id}": { - "get": { - "operationId": "GetAuthSession", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1AuthSessionResponse" - } - } - }, - "parameters": [ - { - "name": "agent_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "browser_info.user_agent", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "browser_info.remote_ip.V4", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "browser_info.remote_ip.V6", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "browser_info.accept_language", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents/{agent_id}/usersessions/{id}": { - "get": { - "operationId": "GetUserSession", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserSession" - } - } - }, - "parameters": [ - { - "name": "agent_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AuthService" - ] - }, - "delete": { - "operationId": "TerminateUserSession", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - } - }, - "parameters": [ - { - "name": "agent_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents/{id}": { - "get": { - "summary": "Authorization", - "operationId": "GetUserAgent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserAgent" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AuthService" - ] - }, - "put": { - "operationId": "RevokeUserAgent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserAgent" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserAgentID" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/useragents/{id}/usersessions": { - "get": { - "operationId": "GetUserAgentSessions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserSessions" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/_externalregister": { - "post": { - "operationId": "RegisterUserWithExternal", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1User" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1RegisterUserExternalIDPRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/_isunique": { - "get": { - "summary": "User", - "operationId": "IsUserUnique", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UniqueUserResponse" - } - } - }, - "parameters": [ - { - "name": "user_name", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "email", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/_register": { - "post": { - "operationId": "RegisterUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1User" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1RegisterUserRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, "/users/me/address": { "get": { "operationId": "GetMyUserAddress", @@ -1138,6 +489,7 @@ }, "/users/me/profile": { "get": { + "summary": "User", "operationId": "GetMyUserProfile", "responses": { "200": { @@ -1176,32 +528,6 @@ ] } }, - "/users/passwords/_requestpwreset": { - "post": { - "operationId": "RequestPasswordReset", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ResetPasswordRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, "/users/{id}": { "get": { "summary": "TODO: Remove func only for tests", @@ -1227,134 +553,6 @@ ] } }, - "/users/{id}/email/_resendverification": { - "post": { - "operationId": "ResendEmailVerificationMail", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserID" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/{id}/email/_verify": { - "post": { - "operationId": "VerifyUserEmail", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1VerifyUserEmailRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/{id}/passwords/_resetpw": { - "post": { - "operationId": "PasswordReset", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ResetPassword" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/{user_id}/mfa/_skipinit": { - "post": { - "operationId": "SkipMfaInit", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1SkipMfaInitRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, "/validate": { "get": { "operationId": "Validate", @@ -1439,394 +637,6 @@ }, "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." }, - "v1AppState": { - "type": "string", - "enum": [ - "APPSTATE_UNSPECIFIED", - "APPSTATE_ACTIVE", - "APPSTATE_INACTIVE", - "APPSTATE_DELETED" - ], - "default": "APPSTATE_UNSPECIFIED" - }, - "v1Application": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1AppState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "oidc_config": { - "$ref": "#/definitions/v1OIDCConfig" - } - } - }, - "v1ApplicationAuthorizeRequest": { - "type": "object", - "properties": { - "oidc_client_auth": { - "$ref": "#/definitions/v1OIDCClientAuth" - } - } - }, - "v1ApplicationSearchKey": { - "type": "string", - "enum": [ - "APPLICATIONSEARCHKEY_UNSPECIFIED", - "APPLICATIONSEARCHKEY_APP_TYPE", - "APPLICATIONSEARCHKEY_STATE", - "APPLICATIONSEARCHKEY_CLIENT_ID", - "APPLICATIONSEARCHKEY_APP_NAME", - "APPLICATIONSEARCHKEY_PROJECT_ID" - ], - "default": "APPLICATIONSEARCHKEY_UNSPECIFIED" - }, - "v1ApplicationSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1ApplicationSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1ApplicationSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "sorting_column": { - "$ref": "#/definitions/v1ApplicationSearchKey" - }, - "asc": { - "type": "boolean", - "format": "boolean" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ApplicationSearchQuery" - } - } - } - }, - "v1ApplicationSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1Application" - } - } - } - }, - "v1AuthRequestOIDC": { - "type": "object", - "properties": { - "scope": { - "type": "array", - "items": { - "type": "string" - } - }, - "response_type": { - "$ref": "#/definitions/v1OIDCResponseType" - }, - "nonce": { - "type": "string" - }, - "code_challenge": { - "$ref": "#/definitions/v1CodeChallenge" - } - } - }, - "v1AuthSessionCreation": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1AuthSessionType" - }, - "browser_info": { - "$ref": "#/definitions/v1BrowserInformation" - }, - "client_id": { - "type": "string" - }, - "redirect_uri": { - "type": "string" - }, - "state": { - "type": "string" - }, - "prompt": { - "$ref": "#/definitions/v1Prompt" - }, - "auth_context_class_reference": { - "type": "array", - "items": { - "type": "string" - } - }, - "ui_locales": { - "type": "array", - "items": { - "type": "string" - } - }, - "login_hint": { - "type": "string" - }, - "max_age": { - "type": "integer", - "format": "int64" - }, - "oidc": { - "$ref": "#/definitions/v1AuthRequestOIDC" - }, - "preselected_user_id": { - "type": "string" - } - } - }, - "v1AuthSessionMultiFactorOTP": { - "type": "object", - "properties": { - "code": { - "type": "string" - } - } - }, - "v1AuthSessionResponse": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1AuthSessionType" - }, - "client_id": { - "type": "string" - }, - "redirect_uri": { - "type": "string" - }, - "state": { - "type": "string" - }, - "prompt": { - "$ref": "#/definitions/v1Prompt" - }, - "auth_context_class_reference": { - "type": "array", - "items": { - "type": "string" - } - }, - "ui_locales": { - "type": "array", - "items": { - "type": "string" - } - }, - "login_hint": { - "type": "string" - }, - "max_age": { - "type": "integer", - "format": "int64" - }, - "oidc": { - "$ref": "#/definitions/v1AuthRequestOIDC" - }, - "possible_steps": { - "type": "array", - "items": { - "$ref": "#/definitions/v1NextStep" - } - }, - "project_client_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "user_session": { - "$ref": "#/definitions/v1UserSession" - } - } - }, - "v1AuthSessionType": { - "type": "string", - "enum": [ - "AUTHSESSIONTYPE_UNSPECIFIED", - "AUTHSESSIONTYPE_OIDC", - "AUTHSESSIONTYPE_SAML" - ], - "default": "AUTHSESSIONTYPE_UNSPECIFIED" - }, - "v1AuthSessionView": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" - }, - "auth_session_id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1AuthSessionType" - }, - "client_id": { - "type": "string" - }, - "user_session_id": { - "type": "string" - }, - "project_client_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "token_id": { - "type": "string" - }, - "token_expiration": { - "type": "string", - "format": "date-time" - }, - "user_id": { - "type": "string" - } - } - }, - "v1AuthUser": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user_name": { - "type": "string" - } - } - }, - "v1BrowserInformation": { - "type": "object", - "properties": { - "user_agent": { - "type": "string" - }, - "remote_ip": { - "$ref": "#/definitions/v1IP" - }, - "accept_language": { - "type": "string" - } - } - }, - "v1ChooseUser": { - "type": "object", - "properties": { - "user_session_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user_name": { - "type": "string" - }, - "user_session_state": { - "$ref": "#/definitions/v1UserSessionState" - } - } - }, - "v1ChooseUserData": { - "type": "object", - "properties": { - "users": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ChooseUser" - } - } - } - }, - "v1CodeChallenge": { - "type": "object", - "properties": { - "challenge": { - "type": "string" - }, - "method": { - "$ref": "#/definitions/v1CodeChallengeMethod" - } - } - }, - "v1CodeChallengeMethod": { - "type": "string", - "enum": [ - "CODECHALLENGEMETHOD_PLAIN", - "CODECHALLENGEMETHOD_S256" - ], - "default": "CODECHALLENGEMETHOD_PLAIN" - }, - "v1CreateTokenRequest": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" - }, - "auth_session_id": { - "type": "string" - } - } - }, "v1Gender": { "type": "string", "enum": [ @@ -1837,124 +647,6 @@ ], "default": "GENDER_UNSPECIFIED" }, - "v1Grant": { - "type": "object", - "properties": { - "OrgId": { - "type": "string" - }, - "ProjectId": { - "type": "string" - }, - "UserId": { - "type": "string" - }, - "Roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "OrgName": { - "type": "string" - } - } - }, - "v1GrantSearchKey": { - "type": "string", - "enum": [ - "GRANTSEARCHKEY_UNSPECIFIED", - "GRANTSEARCHKEY_ORG_ID", - "GRANTSEARCHKEY_PROJECT_ID", - "GRANTSEARCHKEY_USER_ID" - ], - "default": "GRANTSEARCHKEY_UNSPECIFIED" - }, - "v1GrantSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1GrantSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1GrantSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "sorting_column": { - "$ref": "#/definitions/v1GrantSearchKey" - }, - "asc": { - "type": "boolean", - "format": "boolean" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1GrantSearchQuery" - } - } - } - }, - "v1GrantSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1Grant" - } - } - } - }, - "v1IDPProvider": { - "type": "object", - "properties": { - "provider": { - "type": "string" - }, - "externalIdpID": { - "type": "string" - } - } - }, - "v1IP": { - "type": "object", - "properties": { - "V4": { - "type": "string" - }, - "V6": { - "type": "string" - } - } - }, "v1IsAdminResponse": { "type": "object", "properties": { @@ -1964,14 +656,6 @@ } } }, - "v1LoginData": { - "type": "object", - "properties": { - "err_msg": { - "type": "string" - } - } - }, "v1MFAState": { "type": "string", "enum": [ @@ -1999,21 +683,6 @@ } } }, - "v1MfaPromptData": { - "type": "object", - "properties": { - "required": { - "type": "boolean", - "format": "boolean" - }, - "mfa_providers": { - "type": "array", - "items": { - "$ref": "#/definitions/v1MfaType" - } - } - } - }, "v1MfaType": { "type": "string", "enum": [ @@ -2023,24 +692,6 @@ ], "default": "MFATYPE_UNSPECIFIED" }, - "v1MfaVerifyData": { - "type": "object", - "properties": { - "err_msg": { - "type": "string" - }, - "failure_count": { - "type": "integer", - "format": "int64" - }, - "mfa_providers": { - "type": "array", - "items": { - "$ref": "#/definitions/v1MfaType" - } - } - } - }, "v1MultiFactor": { "type": "object", "properties": { @@ -2142,146 +793,6 @@ } } }, - "v1NextStep": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/v1NextStepType" - }, - "login": { - "$ref": "#/definitions/v1LoginData" - }, - "password": { - "$ref": "#/definitions/v1PasswordData" - }, - "mfa_verify": { - "$ref": "#/definitions/v1MfaVerifyData" - }, - "mfa_prompt": { - "$ref": "#/definitions/v1MfaPromptData" - }, - "choose_user": { - "$ref": "#/definitions/v1ChooseUserData" - } - } - }, - "v1NextStepType": { - "type": "string", - "enum": [ - "NEXTSTEP_UNSPECIFIED", - "NEXTSTEP_LOGIN", - "NEXTSTEP_PASSWORD", - "NEXTSTEP_CHANGE_PASSWORD", - "NEXTSTEP_MFA_PROMPT", - "NEXTSTEP_MFA_INIT_CHOICE", - "NEXTSTEP_MFA_INIT_CREATE", - "NEXTSTEP_MFA_INIT_VERIFY", - "NEXTSTEP_MFA_INIT_DONE", - "NEXTSTEP_MFA_VERIFY", - "NEXTSTEP_MFA_VERIFY_ASYNC", - "NEXTSTEP_VERIFY_EMAIL", - "NEXTSTEP_REDIRECT_TO_CALLBACK", - "NEXTSTEP_INIT_PASSWORD", - "NEXTSTEP_CHOOSE_USER" - ], - "default": "NEXTSTEP_UNSPECIFIED" - }, - "v1NotificationType": { - "type": "string", - "enum": [ - "NOTIFICATIONTYPE_EMAIL", - "NOTIFICATIONTYPE_SMS" - ], - "default": "NOTIFICATIONTYPE_EMAIL" - }, - "v1OIDCApplicationType": { - "type": "string", - "enum": [ - "OIDCAPPLICATIONTYPE_WEB", - "OIDCAPPLICATIONTYPE_USER_AGENT", - "OIDCAPPLICATIONTYPE_NATIVE" - ], - "default": "OIDCAPPLICATIONTYPE_WEB" - }, - "v1OIDCAuthMethodType": { - "type": "string", - "enum": [ - "OIDCAUTHMETHODTYPE_BASIC", - "OIDCAUTHMETHODTYPE_POST", - "OIDCAUTHMETHODTYPE_NONE" - ], - "default": "OIDCAUTHMETHODTYPE_BASIC" - }, - "v1OIDCClientAuth": { - "type": "object", - "properties": { - "client_id": { - "type": "string" - }, - "client_secret": { - "type": "string" - } - } - }, - "v1OIDCConfig": { - "type": "object", - "properties": { - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - } - }, - "response_types": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OIDCResponseType" - } - }, - "grant_types": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OIDCGrantType" - } - }, - "application_type": { - "$ref": "#/definitions/v1OIDCApplicationType" - }, - "client_secret": { - "type": "string" - }, - "client_id": { - "type": "string" - }, - "auth_method_type": { - "$ref": "#/definitions/v1OIDCAuthMethodType" - }, - "post_logout_redirect_uris": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1OIDCGrantType": { - "type": "string", - "enum": [ - "OIDCGRANTTYPE_AUTHORIZATION_CODE", - "OIDCGRANTTYPE_GRANT_TYPE_NONE", - "OIDCGRANTTYPE_REFRESH_TOKEN" - ], - "default": "OIDCGRANTTYPE_AUTHORIZATION_CODE" - }, - "v1OIDCResponseType": { - "type": "string", - "enum": [ - "OIDCRESPONSETYPE_CODE", - "OIDCRESPONSETYPE_ID_TOKEN", - "OIDCRESPONSETYPE_ID_TOKEN_TOKEN" - ], - "default": "OIDCRESPONSETYPE_CODE" - }, "v1Org": { "type": "object", "properties": { @@ -2304,18 +815,6 @@ } } }, - "v1PasswordData": { - "type": "object", - "properties": { - "err_msg": { - "type": "string" - }, - "failure_count": { - "type": "integer", - "format": "int64" - } - } - }, "v1PasswordRequest": { "type": "object", "properties": { @@ -2324,106 +823,6 @@ } } }, - "v1Prompt": { - "type": "string", - "enum": [ - "PROMPT_UNSPECIFIED", - "PROMPT_NONE", - "PROMPT_LOGIN", - "PROMPT_CONSENT", - "PROMPT_SELECT_ACCOUNT" - ], - "default": "PROMPT_UNSPECIFIED" - }, - "v1RegisterUserExternalIDPRequest": { - "type": "object", - "properties": { - "email": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "idp_provider": { - "$ref": "#/definitions/v1IDPProvider" - }, - "org_id": { - "type": "string" - } - } - }, - "v1RegisterUserRequest": { - "type": "object", - "properties": { - "email": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "password": { - "type": "string" - }, - "org_id": { - "type": "string" - } - } - }, - "v1ResetPassword": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "code": { - "type": "string" - }, - "new_password": { - "type": "string" - } - } - }, - "v1ResetPasswordRequest": { - "type": "object", - "properties": { - "user_name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1NotificationType" - } - } - }, "v1SearchMethod": { "type": "string", "enum": [ @@ -2433,52 +832,6 @@ ], "default": "SEARCHMETHOD_EQUALS" }, - "v1SelectUserRequest": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" - }, - "auth_session_id": { - "type": "string" - }, - "user_session_id": { - "type": "string" - }, - "browser_info": { - "$ref": "#/definitions/v1BrowserInformation" - } - } - }, - "v1SkipMfaInitRequest": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - } - } - }, - "v1Token": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "expiration": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UniqueUserResponse": { - "type": "object", - "properties": { - "is_unique": { - "type": "boolean", - "format": "boolean" - } - } - }, "v1UpdateUserAddressRequest": { "type": "object", "properties": { @@ -2646,45 +999,6 @@ } } }, - "v1UserAgent": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "browser_info": { - "$ref": "#/definitions/v1BrowserInformation" - }, - "state": { - "$ref": "#/definitions/v1UserAgentState" - } - } - }, - "v1UserAgentCreation": { - "type": "object", - "properties": { - "browser_info": { - "$ref": "#/definitions/v1BrowserInformation" - } - } - }, - "v1UserAgentID": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "v1UserAgentState": { - "type": "string", - "enum": [ - "USERAGENTSTATE_UNSPECIFIED", - "USERAGENTSTATE_ACTIVE", - "USERAGENTSTATE_TERMINATED" - ], - "default": "USERAGENTSTATE_UNSPECIFIED" - }, "v1UserEmail": { "type": "object", "properties": { @@ -2700,14 +1014,6 @@ } } }, - "v1UserID": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, "v1UserPhone": { "type": "object", "properties": { @@ -2752,38 +1058,6 @@ } } }, - "v1UserSession": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "agent_id": { - "type": "string" - }, - "auth_state": { - "$ref": "#/definitions/v1UserSessionState" - }, - "user": { - "$ref": "#/definitions/v1AuthUser" - }, - "password_verified": { - "type": "boolean", - "format": "boolean" - }, - "mfa": { - "$ref": "#/definitions/v1MfaType" - }, - "mfa_verified": { - "type": "boolean", - "format": "boolean" - }, - "auth_time": { - "type": "string", - "format": "date-time" - } - } - }, "v1UserSessionState": { "type": "string", "enum": [ @@ -2824,17 +1098,6 @@ } } }, - "v1UserSessions": { - "type": "object", - "properties": { - "user_sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserSession" - } - } - } - }, "v1UserState": { "type": "string", "enum": [ @@ -2856,23 +1119,6 @@ } } }, - "v1VerifyMfaRequest": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" - }, - "auth_session_id": { - "type": "string" - }, - "browser_info": { - "$ref": "#/definitions/v1BrowserInformation" - }, - "otp": { - "$ref": "#/definitions/v1AuthSessionMultiFactorOTP" - } - } - }, "v1VerifyMyUserEmailRequest": { "type": "object", "properties": { @@ -2881,34 +1127,6 @@ } } }, - "v1VerifyPasswordRequest": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" - }, - "auth_session_id": { - "type": "string" - }, - "password": { - "type": "string" - }, - "browser_info": { - "$ref": "#/definitions/v1BrowserInformation" - } - } - }, - "v1VerifyUserEmailRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "code": { - "type": "string" - } - } - }, "v1VerifyUserPhoneRequest": { "type": "object", "properties": { @@ -2916,23 +1134,6 @@ "type": "string" } } - }, - "v1VerifyUserRequest": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" - }, - "auth_session_id": { - "type": "string" - }, - "user_name": { - "type": "string" - }, - "browser_info": { - "$ref": "#/definitions/v1BrowserInformation" - } - } } } } diff --git a/pkg/auth/api/grpc/auth_session.go b/pkg/auth/api/grpc/auth_session.go deleted file mode 100644 index 51574d7647..0000000000 --- a/pkg/auth/api/grpc/auth_session.go +++ /dev/null @@ -1,34 +0,0 @@ -package grpc - -import ( - "context" - "github.com/caos/zitadel/internal/errors" -) - -func (s *Server) CreateAuthSession(ctx context.Context, request *AuthSessionCreation) (_ *AuthSessionResponse, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-dh3Rt", "Not implemented") -} - -func (s *Server) GetAuthSession(ctx context.Context, id *AuthSessionID) (_ *AuthSessionResponse, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-dk56g", "Not implemented") -} - -func (s *Server) SelectUser(ctx context.Context, request *SelectUserRequest) (_ *AuthSessionResponse, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-dl5gs", "Not implemented") -} - -func (s *Server) VerifyUser(ctx context.Context, request *VerifyUserRequest) (_ *AuthSessionResponse, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-39dGs", "Not implemented") -} - -func (s *Server) VerifyPassword(ctx context.Context, password *VerifyPasswordRequest) (_ *AuthSessionResponse, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-tu9j2", "Not implemented") -} - -func (s *Server) VerifyMfa(ctx context.Context, mfa *VerifyMfaRequest) (_ *AuthSessionResponse, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-oi9GB", "Not implemented") -} - -func (s *Server) GetAuthSessionByTokenID(ctx context.Context, id *TokenID) (_ *AuthSessionView, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-dk56z", "Not implemented") -} diff --git a/pkg/auth/api/grpc/grant.go b/pkg/auth/api/grpc/grant.go index d755f84281..8eb8681e06 100644 --- a/pkg/auth/api/grpc/grant.go +++ b/pkg/auth/api/grpc/grant.go @@ -6,10 +6,6 @@ import ( "github.com/golang/protobuf/ptypes/empty" ) -func (s *Server) SearchGrant(ctx context.Context, grantSearch *GrantSearchRequest) (*GrantSearchResponse, error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-mcn5z", "Not implemented") -} - func (s *Server) SearchMyProjectOrgs(ctx context.Context, request *MyProjectOrgSearchRequest) (*MyProjectOrgSearchResponse, error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-8kdRf", "Not implemented") } diff --git a/pkg/auth/api/grpc/mock/auth.proto.mock.go b/pkg/auth/api/grpc/mock/auth.proto.mock.go index f74e7ad52e..9e277f3c81 100644 --- a/pkg/auth/api/grpc/mock/auth.proto.mock.go +++ b/pkg/auth/api/grpc/mock/auth.proto.mock.go @@ -8,9 +8,9 @@ import ( context "context" grpc "github.com/caos/zitadel/pkg/auth/api/grpc" gomock "github.com/golang/mock/gomock" - empty "github.com/golang/protobuf/ptypes/empty" - struct0 "github.com/golang/protobuf/ptypes/struct" grpc0 "google.golang.org/grpc" + emptypb "google.golang.org/protobuf/types/known/emptypb" + structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" ) @@ -38,7 +38,7 @@ func (m *MockAuthServiceClient) EXPECT() *MockAuthServiceClientMockRecorder { } // AddMfaOTP mocks base method -func (m *MockAuthServiceClient) AddMfaOTP(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*grpc.MfaOtpResponse, error) { +func (m *MockAuthServiceClient) AddMfaOTP(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.MfaOtpResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -57,35 +57,15 @@ func (mr *MockAuthServiceClientMockRecorder) AddMfaOTP(arg0, arg1 interface{}, a return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMfaOTP", reflect.TypeOf((*MockAuthServiceClient)(nil).AddMfaOTP), varargs...) } -// AuthorizeApplication mocks base method -func (m *MockAuthServiceClient) AuthorizeApplication(arg0 context.Context, arg1 *grpc.ApplicationAuthorizeRequest, arg2 ...grpc0.CallOption) (*grpc.Application, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "AuthorizeApplication", varargs...) - ret0, _ := ret[0].(*grpc.Application) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// AuthorizeApplication indicates an expected call of AuthorizeApplication -func (mr *MockAuthServiceClientMockRecorder) AuthorizeApplication(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizeApplication", reflect.TypeOf((*MockAuthServiceClient)(nil).AuthorizeApplication), varargs...) -} - // ChangeMyPassword mocks base method -func (m *MockAuthServiceClient) ChangeMyPassword(arg0 context.Context, arg1 *grpc.PasswordChange, arg2 ...grpc0.CallOption) (*empty.Empty, error) { +func (m *MockAuthServiceClient) ChangeMyPassword(arg0 context.Context, arg1 *grpc.PasswordChange, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ChangeMyPassword", varargs...) - ret0, _ := ret[0].(*empty.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -137,128 +117,8 @@ func (mr *MockAuthServiceClientMockRecorder) ChangeMyUserPhone(arg0, arg1 interf return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeMyUserPhone", reflect.TypeOf((*MockAuthServiceClient)(nil).ChangeMyUserPhone), varargs...) } -// CreateAuthSession mocks base method -func (m *MockAuthServiceClient) CreateAuthSession(arg0 context.Context, arg1 *grpc.AuthSessionCreation, arg2 ...grpc0.CallOption) (*grpc.AuthSessionResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CreateAuthSession", varargs...) - ret0, _ := ret[0].(*grpc.AuthSessionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateAuthSession indicates an expected call of CreateAuthSession -func (mr *MockAuthServiceClientMockRecorder) CreateAuthSession(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAuthSession", reflect.TypeOf((*MockAuthServiceClient)(nil).CreateAuthSession), varargs...) -} - -// CreateToken mocks base method -func (m *MockAuthServiceClient) CreateToken(arg0 context.Context, arg1 *grpc.CreateTokenRequest, arg2 ...grpc0.CallOption) (*grpc.Token, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CreateToken", varargs...) - ret0, _ := ret[0].(*grpc.Token) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateToken indicates an expected call of CreateToken -func (mr *MockAuthServiceClientMockRecorder) CreateToken(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateToken", reflect.TypeOf((*MockAuthServiceClient)(nil).CreateToken), varargs...) -} - -// CreateUserAgent mocks base method -func (m *MockAuthServiceClient) CreateUserAgent(arg0 context.Context, arg1 *grpc.UserAgentCreation, arg2 ...grpc0.CallOption) (*grpc.UserAgent, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CreateUserAgent", varargs...) - ret0, _ := ret[0].(*grpc.UserAgent) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateUserAgent indicates an expected call of CreateUserAgent -func (mr *MockAuthServiceClientMockRecorder) CreateUserAgent(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserAgent", reflect.TypeOf((*MockAuthServiceClient)(nil).CreateUserAgent), varargs...) -} - -// GetApplicationByID mocks base method -func (m *MockAuthServiceClient) GetApplicationByID(arg0 context.Context, arg1 *grpc.ApplicationID, arg2 ...grpc0.CallOption) (*grpc.Application, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetApplicationByID", varargs...) - ret0, _ := ret[0].(*grpc.Application) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetApplicationByID indicates an expected call of GetApplicationByID -func (mr *MockAuthServiceClientMockRecorder) GetApplicationByID(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetApplicationByID", reflect.TypeOf((*MockAuthServiceClient)(nil).GetApplicationByID), varargs...) -} - -// GetAuthSession mocks base method -func (m *MockAuthServiceClient) GetAuthSession(arg0 context.Context, arg1 *grpc.AuthSessionID, arg2 ...grpc0.CallOption) (*grpc.AuthSessionResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetAuthSession", varargs...) - ret0, _ := ret[0].(*grpc.AuthSessionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetAuthSession indicates an expected call of GetAuthSession -func (mr *MockAuthServiceClientMockRecorder) GetAuthSession(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthSession", reflect.TypeOf((*MockAuthServiceClient)(nil).GetAuthSession), varargs...) -} - -// GetAuthSessionByTokenID mocks base method -func (m *MockAuthServiceClient) GetAuthSessionByTokenID(arg0 context.Context, arg1 *grpc.TokenID, arg2 ...grpc0.CallOption) (*grpc.AuthSessionView, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetAuthSessionByTokenID", varargs...) - ret0, _ := ret[0].(*grpc.AuthSessionView) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetAuthSessionByTokenID indicates an expected call of GetAuthSessionByTokenID -func (mr *MockAuthServiceClientMockRecorder) GetAuthSessionByTokenID(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthSessionByTokenID", reflect.TypeOf((*MockAuthServiceClient)(nil).GetAuthSessionByTokenID), varargs...) -} - // GetMyMfas mocks base method -func (m *MockAuthServiceClient) GetMyMfas(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*grpc.MultiFactors, error) { +func (m *MockAuthServiceClient) GetMyMfas(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.MultiFactors, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -278,7 +138,7 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyMfas(arg0, arg1 interface{}, a } // GetMyUserAddress mocks base method -func (m *MockAuthServiceClient) GetMyUserAddress(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*grpc.UserAddress, error) { +func (m *MockAuthServiceClient) GetMyUserAddress(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserAddress, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -298,7 +158,7 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserAddress(arg0, arg1 interfa } // GetMyUserEmail mocks base method -func (m *MockAuthServiceClient) GetMyUserEmail(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*grpc.UserEmail, error) { +func (m *MockAuthServiceClient) GetMyUserEmail(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserEmail, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -318,7 +178,7 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserEmail(arg0, arg1 interface } // GetMyUserPhone mocks base method -func (m *MockAuthServiceClient) GetMyUserPhone(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*grpc.UserPhone, error) { +func (m *MockAuthServiceClient) GetMyUserPhone(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserPhone, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -338,7 +198,7 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserPhone(arg0, arg1 interface } // GetMyUserProfile mocks base method -func (m *MockAuthServiceClient) GetMyUserProfile(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*grpc.UserProfile, error) { +func (m *MockAuthServiceClient) GetMyUserProfile(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserProfile, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -358,7 +218,7 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserProfile(arg0, arg1 interfa } // GetMyUserSessions mocks base method -func (m *MockAuthServiceClient) GetMyUserSessions(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*grpc.UserSessionViews, error) { +func (m *MockAuthServiceClient) GetMyUserSessions(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserSessionViews, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -378,7 +238,7 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserSessions(arg0, arg1 interf } // GetMyZitadelPermissions mocks base method -func (m *MockAuthServiceClient) GetMyZitadelPermissions(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*grpc.MyPermissions, error) { +func (m *MockAuthServiceClient) GetMyZitadelPermissions(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.MyPermissions, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -397,46 +257,6 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyZitadelPermissions(arg0, arg1 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMyZitadelPermissions", reflect.TypeOf((*MockAuthServiceClient)(nil).GetMyZitadelPermissions), varargs...) } -// GetUserAgent mocks base method -func (m *MockAuthServiceClient) GetUserAgent(arg0 context.Context, arg1 *grpc.UserAgentID, arg2 ...grpc0.CallOption) (*grpc.UserAgent, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetUserAgent", varargs...) - ret0, _ := ret[0].(*grpc.UserAgent) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUserAgent indicates an expected call of GetUserAgent -func (mr *MockAuthServiceClientMockRecorder) GetUserAgent(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserAgent", reflect.TypeOf((*MockAuthServiceClient)(nil).GetUserAgent), varargs...) -} - -// GetUserAgentSessions mocks base method -func (m *MockAuthServiceClient) GetUserAgentSessions(arg0 context.Context, arg1 *grpc.UserAgentID, arg2 ...grpc0.CallOption) (*grpc.UserSessions, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetUserAgentSessions", varargs...) - ret0, _ := ret[0].(*grpc.UserSessions) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUserAgentSessions indicates an expected call of GetUserAgentSessions -func (mr *MockAuthServiceClientMockRecorder) GetUserAgentSessions(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserAgentSessions", reflect.TypeOf((*MockAuthServiceClient)(nil).GetUserAgentSessions), varargs...) -} - // GetUserByID mocks base method func (m *MockAuthServiceClient) GetUserByID(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.User, error) { m.ctrl.T.Helper() @@ -457,35 +277,15 @@ func (mr *MockAuthServiceClientMockRecorder) GetUserByID(arg0, arg1 interface{}, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserByID", reflect.TypeOf((*MockAuthServiceClient)(nil).GetUserByID), varargs...) } -// GetUserSession mocks base method -func (m *MockAuthServiceClient) GetUserSession(arg0 context.Context, arg1 *grpc.UserSessionID, arg2 ...grpc0.CallOption) (*grpc.UserSession, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetUserSession", varargs...) - ret0, _ := ret[0].(*grpc.UserSession) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUserSession indicates an expected call of GetUserSession -func (mr *MockAuthServiceClientMockRecorder) GetUserSession(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserSession", reflect.TypeOf((*MockAuthServiceClient)(nil).GetUserSession), varargs...) -} - // Healthz mocks base method -func (m *MockAuthServiceClient) Healthz(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*empty.Empty, error) { +func (m *MockAuthServiceClient) Healthz(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Healthz", varargs...) - ret0, _ := ret[0].(*empty.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -498,7 +298,7 @@ func (mr *MockAuthServiceClientMockRecorder) Healthz(arg0, arg1 interface{}, arg } // IsIamAdmin mocks base method -func (m *MockAuthServiceClient) IsIamAdmin(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*grpc.IsAdminResponse, error) { +func (m *MockAuthServiceClient) IsIamAdmin(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.IsAdminResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -517,55 +317,15 @@ func (mr *MockAuthServiceClientMockRecorder) IsIamAdmin(arg0, arg1 interface{}, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsIamAdmin", reflect.TypeOf((*MockAuthServiceClient)(nil).IsIamAdmin), varargs...) } -// IsUserUnique mocks base method -func (m *MockAuthServiceClient) IsUserUnique(arg0 context.Context, arg1 *grpc.UniqueUserRequest, arg2 ...grpc0.CallOption) (*grpc.UniqueUserResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "IsUserUnique", varargs...) - ret0, _ := ret[0].(*grpc.UniqueUserResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// IsUserUnique indicates an expected call of IsUserUnique -func (mr *MockAuthServiceClientMockRecorder) IsUserUnique(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsUserUnique", reflect.TypeOf((*MockAuthServiceClient)(nil).IsUserUnique), varargs...) -} - -// PasswordReset mocks base method -func (m *MockAuthServiceClient) PasswordReset(arg0 context.Context, arg1 *grpc.ResetPassword, arg2 ...grpc0.CallOption) (*empty.Empty, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "PasswordReset", varargs...) - ret0, _ := ret[0].(*empty.Empty) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// PasswordReset indicates an expected call of PasswordReset -func (mr *MockAuthServiceClientMockRecorder) PasswordReset(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PasswordReset", reflect.TypeOf((*MockAuthServiceClient)(nil).PasswordReset), varargs...) -} - // Ready mocks base method -func (m *MockAuthServiceClient) Ready(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*empty.Empty, error) { +func (m *MockAuthServiceClient) Ready(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Ready", varargs...) - ret0, _ := ret[0].(*empty.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -577,55 +337,15 @@ func (mr *MockAuthServiceClientMockRecorder) Ready(arg0, arg1 interface{}, arg2 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ready", reflect.TypeOf((*MockAuthServiceClient)(nil).Ready), varargs...) } -// RegisterUser mocks base method -func (m *MockAuthServiceClient) RegisterUser(arg0 context.Context, arg1 *grpc.RegisterUserRequest, arg2 ...grpc0.CallOption) (*grpc.User, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "RegisterUser", varargs...) - ret0, _ := ret[0].(*grpc.User) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// RegisterUser indicates an expected call of RegisterUser -func (mr *MockAuthServiceClientMockRecorder) RegisterUser(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterUser", reflect.TypeOf((*MockAuthServiceClient)(nil).RegisterUser), varargs...) -} - -// RegisterUserWithExternal mocks base method -func (m *MockAuthServiceClient) RegisterUserWithExternal(arg0 context.Context, arg1 *grpc.RegisterUserExternalIDPRequest, arg2 ...grpc0.CallOption) (*grpc.User, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "RegisterUserWithExternal", varargs...) - ret0, _ := ret[0].(*grpc.User) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// RegisterUserWithExternal indicates an expected call of RegisterUserWithExternal -func (mr *MockAuthServiceClientMockRecorder) RegisterUserWithExternal(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterUserWithExternal", reflect.TypeOf((*MockAuthServiceClient)(nil).RegisterUserWithExternal), varargs...) -} - // RemoveMfaOTP mocks base method -func (m *MockAuthServiceClient) RemoveMfaOTP(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*empty.Empty, error) { +func (m *MockAuthServiceClient) RemoveMfaOTP(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "RemoveMfaOTP", varargs...) - ret0, _ := ret[0].(*empty.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -637,55 +357,15 @@ func (mr *MockAuthServiceClientMockRecorder) RemoveMfaOTP(arg0, arg1 interface{} return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMfaOTP", reflect.TypeOf((*MockAuthServiceClient)(nil).RemoveMfaOTP), varargs...) } -// RequestPasswordReset mocks base method -func (m *MockAuthServiceClient) RequestPasswordReset(arg0 context.Context, arg1 *grpc.ResetPasswordRequest, arg2 ...grpc0.CallOption) (*empty.Empty, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "RequestPasswordReset", varargs...) - ret0, _ := ret[0].(*empty.Empty) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// RequestPasswordReset indicates an expected call of RequestPasswordReset -func (mr *MockAuthServiceClientMockRecorder) RequestPasswordReset(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestPasswordReset", reflect.TypeOf((*MockAuthServiceClient)(nil).RequestPasswordReset), varargs...) -} - -// ResendEmailVerificationMail mocks base method -func (m *MockAuthServiceClient) ResendEmailVerificationMail(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*empty.Empty, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ResendEmailVerificationMail", varargs...) - ret0, _ := ret[0].(*empty.Empty) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ResendEmailVerificationMail indicates an expected call of ResendEmailVerificationMail -func (mr *MockAuthServiceClientMockRecorder) ResendEmailVerificationMail(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResendEmailVerificationMail", reflect.TypeOf((*MockAuthServiceClient)(nil).ResendEmailVerificationMail), varargs...) -} - // ResendMyEmailVerificationMail mocks base method -func (m *MockAuthServiceClient) ResendMyEmailVerificationMail(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*empty.Empty, error) { +func (m *MockAuthServiceClient) ResendMyEmailVerificationMail(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ResendMyEmailVerificationMail", varargs...) - ret0, _ := ret[0].(*empty.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -698,14 +378,14 @@ func (mr *MockAuthServiceClientMockRecorder) ResendMyEmailVerificationMail(arg0, } // ResendMyPhoneVerificationCode mocks base method -func (m *MockAuthServiceClient) ResendMyPhoneVerificationCode(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*empty.Empty, error) { +func (m *MockAuthServiceClient) ResendMyPhoneVerificationCode(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ResendMyPhoneVerificationCode", varargs...) - ret0, _ := ret[0].(*empty.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -717,66 +397,6 @@ func (mr *MockAuthServiceClientMockRecorder) ResendMyPhoneVerificationCode(arg0, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResendMyPhoneVerificationCode", reflect.TypeOf((*MockAuthServiceClient)(nil).ResendMyPhoneVerificationCode), varargs...) } -// RevokeUserAgent mocks base method -func (m *MockAuthServiceClient) RevokeUserAgent(arg0 context.Context, arg1 *grpc.UserAgentID, arg2 ...grpc0.CallOption) (*grpc.UserAgent, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "RevokeUserAgent", varargs...) - ret0, _ := ret[0].(*grpc.UserAgent) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// RevokeUserAgent indicates an expected call of RevokeUserAgent -func (mr *MockAuthServiceClientMockRecorder) RevokeUserAgent(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeUserAgent", reflect.TypeOf((*MockAuthServiceClient)(nil).RevokeUserAgent), varargs...) -} - -// SearchApplications mocks base method -func (m *MockAuthServiceClient) SearchApplications(arg0 context.Context, arg1 *grpc.ApplicationSearchRequest, arg2 ...grpc0.CallOption) (*grpc.ApplicationSearchResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "SearchApplications", varargs...) - ret0, _ := ret[0].(*grpc.ApplicationSearchResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SearchApplications indicates an expected call of SearchApplications -func (mr *MockAuthServiceClientMockRecorder) SearchApplications(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchApplications", reflect.TypeOf((*MockAuthServiceClient)(nil).SearchApplications), varargs...) -} - -// SearchGrant mocks base method -func (m *MockAuthServiceClient) SearchGrant(arg0 context.Context, arg1 *grpc.GrantSearchRequest, arg2 ...grpc0.CallOption) (*grpc.GrantSearchResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "SearchGrant", varargs...) - ret0, _ := ret[0].(*grpc.GrantSearchResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SearchGrant indicates an expected call of SearchGrant -func (mr *MockAuthServiceClientMockRecorder) SearchGrant(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGrant", reflect.TypeOf((*MockAuthServiceClient)(nil).SearchGrant), varargs...) -} - // SearchMyProjectOrgs mocks base method func (m *MockAuthServiceClient) SearchMyProjectOrgs(arg0 context.Context, arg1 *grpc.MyProjectOrgSearchRequest, arg2 ...grpc0.CallOption) (*grpc.MyProjectOrgSearchResponse, error) { m.ctrl.T.Helper() @@ -797,35 +417,15 @@ func (mr *MockAuthServiceClientMockRecorder) SearchMyProjectOrgs(arg0, arg1 inte return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchMyProjectOrgs", reflect.TypeOf((*MockAuthServiceClient)(nil).SearchMyProjectOrgs), varargs...) } -// SelectUser mocks base method -func (m *MockAuthServiceClient) SelectUser(arg0 context.Context, arg1 *grpc.SelectUserRequest, arg2 ...grpc0.CallOption) (*grpc.AuthSessionResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "SelectUser", varargs...) - ret0, _ := ret[0].(*grpc.AuthSessionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SelectUser indicates an expected call of SelectUser -func (mr *MockAuthServiceClientMockRecorder) SelectUser(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectUser", reflect.TypeOf((*MockAuthServiceClient)(nil).SelectUser), varargs...) -} - // SetMyPassword mocks base method -func (m *MockAuthServiceClient) SetMyPassword(arg0 context.Context, arg1 *grpc.PasswordRequest, arg2 ...grpc0.CallOption) (*empty.Empty, error) { +func (m *MockAuthServiceClient) SetMyPassword(arg0 context.Context, arg1 *grpc.PasswordRequest, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SetMyPassword", varargs...) - ret0, _ := ret[0].(*empty.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -837,46 +437,6 @@ func (mr *MockAuthServiceClientMockRecorder) SetMyPassword(arg0, arg1 interface{ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMyPassword", reflect.TypeOf((*MockAuthServiceClient)(nil).SetMyPassword), varargs...) } -// SkipMfaInit mocks base method -func (m *MockAuthServiceClient) SkipMfaInit(arg0 context.Context, arg1 *grpc.SkipMfaInitRequest, arg2 ...grpc0.CallOption) (*empty.Empty, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "SkipMfaInit", varargs...) - ret0, _ := ret[0].(*empty.Empty) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SkipMfaInit indicates an expected call of SkipMfaInit -func (mr *MockAuthServiceClientMockRecorder) SkipMfaInit(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SkipMfaInit", reflect.TypeOf((*MockAuthServiceClient)(nil).SkipMfaInit), varargs...) -} - -// TerminateUserSession mocks base method -func (m *MockAuthServiceClient) TerminateUserSession(arg0 context.Context, arg1 *grpc.UserSessionID, arg2 ...grpc0.CallOption) (*empty.Empty, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "TerminateUserSession", varargs...) - ret0, _ := ret[0].(*empty.Empty) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// TerminateUserSession indicates an expected call of TerminateUserSession -func (mr *MockAuthServiceClientMockRecorder) TerminateUserSession(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TerminateUserSession", reflect.TypeOf((*MockAuthServiceClient)(nil).TerminateUserSession), varargs...) -} - // UpdateMyUserAddress mocks base method func (m *MockAuthServiceClient) UpdateMyUserAddress(arg0 context.Context, arg1 *grpc.UpdateUserAddressRequest, arg2 ...grpc0.CallOption) (*grpc.UserAddress, error) { m.ctrl.T.Helper() @@ -918,14 +478,14 @@ func (mr *MockAuthServiceClientMockRecorder) UpdateMyUserProfile(arg0, arg1 inte } // Validate mocks base method -func (m *MockAuthServiceClient) Validate(arg0 context.Context, arg1 *empty.Empty, arg2 ...grpc0.CallOption) (*struct0.Struct, error) { +func (m *MockAuthServiceClient) Validate(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*structpb.Struct, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Validate", varargs...) - ret0, _ := ret[0].(*struct0.Struct) + ret0, _ := ret[0].(*structpb.Struct) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -937,26 +497,6 @@ func (mr *MockAuthServiceClientMockRecorder) Validate(arg0, arg1 interface{}, ar return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockAuthServiceClient)(nil).Validate), varargs...) } -// VerifyMfa mocks base method -func (m *MockAuthServiceClient) VerifyMfa(arg0 context.Context, arg1 *grpc.VerifyMfaRequest, arg2 ...grpc0.CallOption) (*grpc.AuthSessionResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "VerifyMfa", varargs...) - ret0, _ := ret[0].(*grpc.AuthSessionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// VerifyMfa indicates an expected call of VerifyMfa -func (mr *MockAuthServiceClientMockRecorder) VerifyMfa(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyMfa", reflect.TypeOf((*MockAuthServiceClient)(nil).VerifyMfa), varargs...) -} - // VerifyMfaOTP mocks base method func (m *MockAuthServiceClient) VerifyMfaOTP(arg0 context.Context, arg1 *grpc.VerifyMfaOtp, arg2 ...grpc0.CallOption) (*grpc.MfaOtpResponse, error) { m.ctrl.T.Helper() @@ -978,14 +518,14 @@ func (mr *MockAuthServiceClientMockRecorder) VerifyMfaOTP(arg0, arg1 interface{} } // VerifyMyUserEmail mocks base method -func (m *MockAuthServiceClient) VerifyMyUserEmail(arg0 context.Context, arg1 *grpc.VerifyMyUserEmailRequest, arg2 ...grpc0.CallOption) (*empty.Empty, error) { +func (m *MockAuthServiceClient) VerifyMyUserEmail(arg0 context.Context, arg1 *grpc.VerifyMyUserEmailRequest, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "VerifyMyUserEmail", varargs...) - ret0, _ := ret[0].(*empty.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -998,14 +538,14 @@ func (mr *MockAuthServiceClientMockRecorder) VerifyMyUserEmail(arg0, arg1 interf } // VerifyMyUserPhone mocks base method -func (m *MockAuthServiceClient) VerifyMyUserPhone(arg0 context.Context, arg1 *grpc.VerifyUserPhoneRequest, arg2 ...grpc0.CallOption) (*empty.Empty, error) { +func (m *MockAuthServiceClient) VerifyMyUserPhone(arg0 context.Context, arg1 *grpc.VerifyUserPhoneRequest, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "VerifyMyUserPhone", varargs...) - ret0, _ := ret[0].(*empty.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1016,63 +556,3 @@ func (mr *MockAuthServiceClientMockRecorder) VerifyMyUserPhone(arg0, arg1 interf varargs := append([]interface{}{arg0, arg1}, arg2...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyMyUserPhone", reflect.TypeOf((*MockAuthServiceClient)(nil).VerifyMyUserPhone), varargs...) } - -// VerifyPassword mocks base method -func (m *MockAuthServiceClient) VerifyPassword(arg0 context.Context, arg1 *grpc.VerifyPasswordRequest, arg2 ...grpc0.CallOption) (*grpc.AuthSessionResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "VerifyPassword", varargs...) - ret0, _ := ret[0].(*grpc.AuthSessionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// VerifyPassword indicates an expected call of VerifyPassword -func (mr *MockAuthServiceClientMockRecorder) VerifyPassword(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyPassword", reflect.TypeOf((*MockAuthServiceClient)(nil).VerifyPassword), varargs...) -} - -// VerifyUser mocks base method -func (m *MockAuthServiceClient) VerifyUser(arg0 context.Context, arg1 *grpc.VerifyUserRequest, arg2 ...grpc0.CallOption) (*grpc.AuthSessionResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "VerifyUser", varargs...) - ret0, _ := ret[0].(*grpc.AuthSessionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// VerifyUser indicates an expected call of VerifyUser -func (mr *MockAuthServiceClientMockRecorder) VerifyUser(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyUser", reflect.TypeOf((*MockAuthServiceClient)(nil).VerifyUser), varargs...) -} - -// VerifyUserEmail mocks base method -func (m *MockAuthServiceClient) VerifyUserEmail(arg0 context.Context, arg1 *grpc.VerifyUserEmailRequest, arg2 ...grpc0.CallOption) (*empty.Empty, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "VerifyUserEmail", varargs...) - ret0, _ := ret[0].(*empty.Empty) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// VerifyUserEmail indicates an expected call of VerifyUserEmail -func (mr *MockAuthServiceClientMockRecorder) VerifyUserEmail(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyUserEmail", reflect.TypeOf((*MockAuthServiceClient)(nil).VerifyUserEmail), varargs...) -} diff --git a/pkg/auth/api/grpc/token.go b/pkg/auth/api/grpc/token.go deleted file mode 100644 index 36d523329e..0000000000 --- a/pkg/auth/api/grpc/token.go +++ /dev/null @@ -1,10 +0,0 @@ -package grpc - -import ( - "context" - "github.com/caos/zitadel/internal/errors" -) - -func (s *Server) CreateToken(ctx context.Context, request *CreateTokenRequest) (_ *Token, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-86dG3", "Not implemented") -} diff --git a/pkg/auth/api/grpc/user.go b/pkg/auth/api/grpc/user.go index 7d114943b6..073168a6ab 100644 --- a/pkg/auth/api/grpc/user.go +++ b/pkg/auth/api/grpc/user.go @@ -10,10 +10,6 @@ func (s *Server) GetUserByID(ctx context.Context, request *UserID) (*User, error return nil, errors.ThrowUnimplemented(nil, "GRPC-fj74G", "Not implemented") } -func (s *Server) IsUserUnique(ctx context.Context, request *UniqueUserRequest) (*UniqueUserResponse, error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-dke9f", "Not implemented") -} - func (s *Server) GetMyUserProfile(ctx context.Context, _ *empty.Empty) (*UserProfile, error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-fis93", "Not implemented") } @@ -34,14 +30,6 @@ func (s *Server) GetMyMfas(ctx context.Context, _ *empty.Empty) (*MultiFactors, return nil, errors.ThrowUnimplemented(nil, "GRPC-vkl9i", "Not implemented") } -func (s *Server) RegisterUser(ctx context.Context, request *RegisterUserRequest) (*User, error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-03idx", "Not implemented") -} - -func (s *Server) RegisterUserWithExternal(ctx context.Context, request *RegisterUserExternalIDPRequest) (*User, error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-dlwpd", "Not implemented") -} - func (s *Server) UpdateMyUserProfile(ctx context.Context, request *UpdateUserProfileRequest) (*UserProfile, error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-dlep3", "Not implemented") } @@ -85,13 +73,6 @@ func (s *Server) UpdateMyUserAddress(ctx context.Context, request *UpdateUserAdd func (s *Server) SetMyPassword(ctx context.Context, request *PasswordRequest) (*empty.Empty, error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-pl9c2", "Not implemented") } -func (s *Server) RequestPasswordReset(ctx context.Context, request *ResetPasswordRequest) (*empty.Empty, error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-xm5hW", "Not implemented") -} - -func (s *Server) PasswordReset(ctx context.Context, request *ResetPassword) (*empty.Empty, error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-mce5W", "Not implemented") -} func (s *Server) ChangeMyPassword(ctx context.Context, request *PasswordChange) (*empty.Empty, error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-dlo6G", "Not implemented") @@ -109,14 +90,6 @@ func (s *Server) RemoveMfaOTP(ctx context.Context, _ *empty.Empty) (_ *empty.Emp return nil, errors.ThrowUnimplemented(nil, "GRPC-9k46d", "Not implemented") } -func (s *Server) SkipMfaInit(ctx context.Context, request *SkipMfaInitRequest) (_ *empty.Empty, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-dl3i5", "Not implemented") -} - -func (s *Server) VerifyUserInit(ctx context.Context, request *VerifyUserInitRequest) (_ *empty.Empty, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-itk6h", "Not implemented") -} - func (s *Server) ResendUserInitMail(ctx context.Context, request *UserID) (_ *empty.Empty, err error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-dk467", "Not implemented") } diff --git a/pkg/auth/api/grpc/user_agent.go b/pkg/auth/api/grpc/user_agent.go deleted file mode 100644 index 6ea88ca235..0000000000 --- a/pkg/auth/api/grpc/user_agent.go +++ /dev/null @@ -1,18 +0,0 @@ -package grpc - -import ( - "context" - "github.com/caos/zitadel/internal/errors" -) - -func (s *Server) GetUserAgent(ctx context.Context, request *UserAgentID) (_ *UserAgent, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-iu7jF", "Not implemented") -} - -func (s *Server) CreateUserAgent(ctx context.Context, request *UserAgentCreation) (_ *UserAgent, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-sdfk3", "Not implemented") -} - -func (s *Server) RevokeUserAgent(ctx context.Context, id *UserAgentID) (_ *UserAgent, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-09HjK", "Not implemented") -} diff --git a/pkg/auth/api/grpc/user_session.go b/pkg/auth/api/grpc/user_session.go index 10a3cf3a0e..05460f85ef 100644 --- a/pkg/auth/api/grpc/user_session.go +++ b/pkg/auth/api/grpc/user_session.go @@ -6,18 +6,6 @@ import ( "github.com/golang/protobuf/ptypes/empty" ) -func (s *Server) GetUserAgentSessions(ctx context.Context, id *UserAgentID) (_ *UserSessions, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-ue45f", "Not implemented") -} - -func (s *Server) GetUserSession(ctx context.Context, id *UserSessionID) (_ *UserSession, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-lor5h", "Not implemented") -} - -func (s *Server) TerminateUserSession(ctx context.Context, id *UserSessionID) (_ *empty.Empty, err error) { - return nil, errors.ThrowUnimplemented(nil, "GRPC-bnmt6", "Not implemented") -} - func (s *Server) GetMyUserSessions(ctx context.Context, _ *empty.Empty) (_ *UserSessionViews, err error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-nc52s", "Not implemented") } diff --git a/pkg/auth/api/proto/auth.proto b/pkg/auth/api/proto/auth.proto index dd6c399ab2..025f3676b5 100644 --- a/pkg/auth/api/proto/auth.proto +++ b/pkg/auth/api/proto/auth.proto @@ -51,85 +51,6 @@ service AuthService { } // Authorization - rpc GetUserAgent(UserAgentID) returns (UserAgent) { - option (google.api.http) = { - get: "/useragents/{id}" - }; - } - - rpc CreateUserAgent(UserAgentCreation) returns (UserAgent) { - option (google.api.http) = { - post: "/useragents" - body: "*" - }; - } - - rpc RevokeUserAgent(UserAgentID) returns (UserAgent) { - option (google.api.http) = { - put: "/useragents/{id}" - body: "*" - }; - } - - rpc CreateAuthSession(AuthSessionCreation) returns (AuthSessionResponse) { - option (google.api.http) = { - post: "/useragents/{agent_id}/authsessions" - body: "*" - }; - } - - rpc GetAuthSession(AuthSessionID) returns (AuthSessionResponse) { - option (google.api.http) = { - get: "/useragents/{agent_id}/authsessions/{id}" - }; - } - - rpc GetAuthSessionByTokenID(TokenID) returns (AuthSessionView) { - option (google.api.http) = { - get: "/tokens/{id}/authsession" - }; - } - - rpc SelectUser(SelectUserRequest) returns (AuthSessionResponse) { - option (google.api.http) = { - put: "/useragents/{agent_id}/authsessions/{auth_session_id}/_selectuser" - body: "*" - }; - } - - rpc VerifyUser(VerifyUserRequest) returns (AuthSessionResponse) { - option (google.api.http) = { - put: "/useragents/{agent_id}/authsessions/{auth_session_id}/_verifyuser" - body: "*" - }; - } - - rpc VerifyPassword(VerifyPasswordRequest) returns (AuthSessionResponse) { - option (google.api.http) = { - put: "/useragents/{agent_id}/authsessions/{auth_session_id}/_verifypassword" - body: "*" - }; - } - - rpc VerifyMfa(VerifyMfaRequest) returns (AuthSessionResponse) { - option (google.api.http) = { - put: "/useragents/{agent_id}/authsessions/{auth_session_id}/_verifymfa" - body: "*" - }; - } - - rpc GetUserAgentSessions(UserAgentID) returns (UserSessions) { - option (google.api.http) = { - get: "/useragents/{id}/usersessions" - }; - } - - rpc GetUserSession(UserSessionID) returns (UserSession) { - option (google.api.http) = { - get: "/useragents/{agent_id}/usersessions/{id}" - }; - } - rpc GetMyUserSessions(google.protobuf.Empty) returns (UserSessionViews) { option (google.api.http) = { get: "/me/usersessions" @@ -140,40 +61,7 @@ service AuthService { }; } - rpc TerminateUserSession(UserSessionID) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/useragents/{agent_id}/usersessions/{id}" - }; - } - - rpc CreateToken(CreateTokenRequest) returns (Token) { - option (google.api.http) = { - post: "/useragents/{agent_id}/authsessions/{auth_session_id}/tokens" - body: "*" - }; - } - //User - rpc IsUserUnique(UniqueUserRequest) returns (UniqueUserResponse) { - option (google.api.http) = { - get: "/users/_isunique" - }; - } - - rpc RegisterUser(RegisterUserRequest) returns (User) { - option (google.api.http) = { - post: "/users/_register" - body: "*" - }; - } - - rpc RegisterUserWithExternal(RegisterUserExternalIDPRequest) returns (User) { - option (google.api.http) = { - post: "/users/_externalregister" - body: "*" - }; - } - rpc GetMyUserProfile(google.protobuf.Empty) returns (UserProfile) { option (google.api.http) = { get: "/users/me/profile" @@ -227,14 +115,6 @@ service AuthService { }; } - rpc VerifyUserEmail(VerifyUserEmailRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/users/{id}/email/_verify" - body: "*" - }; - - } - rpc ResendMyEmailVerificationMail(google.protobuf.Empty) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/users/me/email/_resendverification" @@ -246,14 +126,6 @@ service AuthService { }; } - rpc ResendEmailVerificationMail(UserID) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/users/{id}/email/_resendverification" - body: "*" - }; - - } - rpc GetMyUserPhone(google.protobuf.Empty) returns (UserPhone) { option (google.api.http) = { get: "/users/me/phone" @@ -340,20 +212,6 @@ service AuthService { }; } - rpc RequestPasswordReset(ResetPasswordRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/users/passwords/_requestpwreset" - body: "*" - }; - } - - rpc PasswordReset(ResetPassword) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/users/{id}/passwords/_resetpw" - body: "*" - }; - } - rpc ChangeMyPassword(PasswordChange) returns (google.protobuf.Empty) { option (google.api.http) = { put: "/users/me/passwords/_change" @@ -397,14 +255,6 @@ service AuthService { }; } - rpc SkipMfaInit(SkipMfaInitRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/users/{user_id}/mfa/_skipinit" - body: "*" - }; - } - - //TODO: Remove func only for tests rpc GetUserByID(UserID) returns (User) { option (google.api.http) = { @@ -412,35 +262,6 @@ service AuthService { }; } - //Application - rpc GetApplicationByID(ApplicationID) returns (Application) { - option (google.api.http) = { - get: "/applications/{id}" - }; - } - - rpc SearchApplications(ApplicationSearchRequest) returns (ApplicationSearchResponse) { - option (google.api.http) = { - post: "/applications/_search" - body: "*" - }; - } - - rpc AuthorizeApplication(ApplicationAuthorizeRequest) returns (Application) { - option (google.api.http) = { - post: "/applications/_authorize" - body: "*" - }; - } - - //Grant - rpc SearchGrant(GrantSearchRequest) returns (GrantSearchResponse) { - option (google.api.http) = { - post: "/grants/_search" - body: "*" - }; - } - rpc SearchMyProjectOrgs(MyProjectOrgSearchRequest) returns (MyProjectOrgSearchResponse) { option (google.api.http) = { post: "/global/projectorgs/_search" @@ -474,111 +295,6 @@ service AuthService { } } - -message SessionRequest { - string user_id = 1; - BrowserInformation browser_info = 2; -} - -message UserAgent { - string id = 1; - BrowserInformation browser_info = 2; - UserAgentState state = 3; -} - - -enum UserAgentState { - USERAGENTSTATE_UNSPECIFIED = 0; - USERAGENTSTATE_ACTIVE = 1; - USERAGENTSTATE_TERMINATED = 2; -} - -message UserAgentID { - string id = 1; -} - -message UserAgentCreation { - BrowserInformation browser_info = 1 [(validate.rules).message.required = true]; -} - -message UserAgents { - repeated UserAgent sessions = 1; -} - -message AuthSessionCreation { - string agent_id = 1 [(validate.rules).string.min_len = 1]; - AuthSessionType type = 2; - BrowserInformation browser_info = 3 [(validate.rules).message.required = true]; - string client_id = 4 [(validate.rules).string.min_len = 1]; - string redirect_uri = 5 [(validate.rules).string.min_len = 1]; - string state = 6; - Prompt prompt = 7; - repeated string auth_context_class_reference = 8; - repeated string ui_locales = 9; - string login_hint = 10; - uint32 max_age = 11; - oneof type_info { - AuthRequestOIDC oidc = 12; - } - string preselected_user_id = 13; -} - -message AuthSessionResponse { - string agent_id = 1; - string id = 2; - AuthSessionType type = 3; - string client_id = 4; - string redirect_uri = 5; - string state = 6; - Prompt prompt = 7; - repeated string auth_context_class_reference = 8; - repeated string ui_locales = 9; - string login_hint = 10; - uint32 max_age = 11; - oneof type_info { - AuthRequestOIDC oidc = 12; - } - repeated NextStep possible_steps = 13; - repeated string project_client_ids = 14; - UserSession user_session = 15; -} - -message AuthSessionView { - string agent_id = 1; - string auth_session_id = 2; - AuthSessionType type = 3; - string client_id = 4; - string user_session_id = 5; - repeated string project_client_ids = 6; - string token_id = 7; - google.protobuf.Timestamp token_expiration = 8; - string user_id = 9; -} - -message TokenID { - string id = 1; -} - -message UserSessionID { - string id = 1; - string agent_id = 2; -} - -message UserSessions { - repeated UserSession user_sessions = 1; -} - -message UserSession { - string id = 1; - string agent_id = 2; - UserSessionState auth_state = 3; - AuthUser user = 4; - bool password_verified = 5; - MfaType mfa = 6; - bool mfa_verified = 7; - google.protobuf.Timestamp auth_time = 8; -} - message UserSessionViews { repeated UserSessionView user_sessions = 1; } @@ -590,212 +306,22 @@ message UserSessionView { string user_name = 5; } -message AuthUser { - string user_id = 1; - string user_name = 2; -} - enum UserSessionState { USERSESSIONSTATE_UNSPECIFIED = 0; USERSESSIONSTATE_ACTIVE = 1; USERSESSIONSTATE_TERMINATED = 2; } -message AuthSessionID { - string id = 1; - string agent_id = 2; - BrowserInformation browser_info = 3; -} - -message SelectUserRequest { - string agent_id = 1; - string auth_session_id = 2; - string user_session_id = 3; - BrowserInformation browser_info = 4 [(validate.rules).message.required = true]; -} - -message VerifyUserRequest { - string agent_id = 1 [(validate.rules).string.min_len = 1]; - string auth_session_id = 2 [(validate.rules).string.min_len = 1]; - string user_name = 3 [(validate.rules).string = {min_len: 1, max_len: 200}]; - BrowserInformation browser_info = 4 [(validate.rules).message.required = true]; -} - -message VerifyPasswordRequest { - string agent_id = 1 [(validate.rules).string.min_len = 1]; - string auth_session_id = 2 [(validate.rules).string.min_len = 1]; - string password = 3 [(validate.rules).string = {min_len: 1, max_len: 72}]; - BrowserInformation browser_info = 4 [(validate.rules).message.required = true]; -} - -message VerifyMfaRequest { - string agent_id = 1 [(validate.rules).string.min_len = 1]; - string auth_session_id = 2 [(validate.rules).string.min_len = 1]; - BrowserInformation browser_info = 3; - oneof mfa { - AuthSessionMultiFactorOTP otp = 4; - } -} - -message AuthSessionMultiFactorOTP { - string code = 1 [(validate.rules).string = {max_len: 200}]; -} - -message NextStep { - NextStepType type = 1; - oneof data { - LoginData login = 2; - PasswordData password = 3; - MfaVerifyData mfa_verify = 4; - MfaPromptData mfa_prompt = 5; - ChooseUserData choose_user = 6; - } -} - -enum NextStepType { - NEXTSTEP_UNSPECIFIED = 0; - NEXTSTEP_LOGIN = 1; - NEXTSTEP_PASSWORD = 2; - NEXTSTEP_CHANGE_PASSWORD = 3; - NEXTSTEP_MFA_PROMPT = 4; //TODO: ? - NEXTSTEP_MFA_INIT_CHOICE = 5; //TODO: ? - NEXTSTEP_MFA_INIT_CREATE = 6; - NEXTSTEP_MFA_INIT_VERIFY = 7; - NEXTSTEP_MFA_INIT_DONE = 8; - NEXTSTEP_MFA_VERIFY = 9; - NEXTSTEP_MFA_VERIFY_ASYNC = 10; - NEXTSTEP_VERIFY_EMAIL = 11; - NEXTSTEP_REDIRECT_TO_CALLBACK = 12; - NEXTSTEP_INIT_PASSWORD = 13; - NEXTSTEP_CHOOSE_USER = 14; -} - -message LoginData { - string err_msg = 1; -} - -message PasswordData { - string err_msg = 1; - uint32 failure_count = 2; -} - -message MfaVerifyData { - string err_msg = 1; - uint32 failure_count = 2; - repeated MfaType mfa_providers = 3; -} - -message MfaPromptData { - bool required = 1; - repeated MfaType mfa_providers = 2; -} - -message ChooseUserData { - repeated ChooseUser users = 1; -} - -message ChooseUser { - string user_session_id = 1; - string user_id = 2; - string user_name = 3; - UserSessionState user_session_state = 4; -} - -message SkipMfaInitRequest { - string user_id = 1; -} - -enum AuthSessionType { - AUTHSESSIONTYPE_UNSPECIFIED = 0; //TODO: necessary? - AUTHSESSIONTYPE_OIDC = 1; - AUTHSESSIONTYPE_SAML = 2; -} - -message BrowserInformation { - string user_agent = 1; - IP remote_ip = 2 [(validate.rules).message.required = true]; - string accept_language = 3; -} - -message IP { - string V4 = 1; - string V6 = 2; -} - -enum Prompt { - PROMPT_UNSPECIFIED = 0; - PROMPT_NONE = 1; - PROMPT_LOGIN = 2; - PROMPT_CONSENT = 3; - PROMPT_SELECT_ACCOUNT = 4; -} - -message AuthRequestOIDC { - repeated string scope = 1; - OIDCResponseType response_type = 2; - string nonce = 3; - CodeChallenge code_challenge = 4; -} - enum OIDCResponseType { OIDCRESPONSETYPE_CODE = 0; OIDCRESPONSETYPE_ID_TOKEN = 1; OIDCRESPONSETYPE_ID_TOKEN_TOKEN = 2; } -message CodeChallenge { - string challenge = 1; - CodeChallengeMethod method = 2; -} - -enum CodeChallengeMethod { - CODECHALLENGEMETHOD_PLAIN = 0; - CODECHALLENGEMETHOD_S256 = 1; -} - message UserID { string id = 1; } -message UniqueUserRequest { - string user_name = 1 [(validate.rules).string = {min_len: 1, max_len: 200}]; - string email = 2 [(validate.rules).string = {min_len: 1, max_len: 200}]; -} - -message UniqueUserResponse { - bool is_unique = 1; -} - - -message RegisterUserRequest { - string email = 1 [(validate.rules).string = {min_len: 1, max_len: 200, email: true}]; - string first_name = 2 [(validate.rules).string = {min_len: 1, max_len: 200}]; - string last_name = 3 [(validate.rules).string = {min_len: 1, max_len: 200}]; - string nick_name = 4 [(validate.rules).string = {max_len: 200}]; - string display_name = 5 [(validate.rules).string = {max_len: 200}]; - string preferred_language = 6 [(validate.rules).string = {max_len: 200}]; - Gender gender = 7; - string password = 8 [(validate.rules).string = {min_len: 1, max_len: 72}]; - string org_id = 9 [(validate.rules).string.min_len = 1]; -} - -message RegisterUserExternalIDPRequest { - string email = 1 [(validate.rules).string = {min_len: 1, max_len: 200, email: true}]; - string first_name = 2 [(validate.rules).string = {min_len: 1, max_len: 200}]; - string last_name = 3 [(validate.rules).string = {min_len: 1, max_len: 200}]; - string nick_name = 4 [(validate.rules).string = {max_len: 200}]; - string display_name = 5 [(validate.rules).string = {max_len: 200}]; - string preferred_language = 6 [(validate.rules).string = {max_len: 200}]; - Gender gender = 7; - IDPProvider idp_provider = 8; - string org_id = 9 [(validate.rules).string.min_len = 1]; -} - -message IDPProvider { - string provider = 8; - string externalIdpID = 9; -} - message User { string id = 1; UserState state = 2; @@ -910,7 +436,7 @@ message UpdateUserAddressRequest { string street_address = 5 [(validate.rules).string = {max_len: 200}]; } -message PasswordID{ +message PasswordID { string id = 1; } @@ -918,27 +444,6 @@ message PasswordRequest { string password = 1 [(validate.rules).string = {min_len: 1, max_len: 72}]; } -message ResetPasswordRequest { - string user_name = 1 [(validate.rules).string = {min_len: 1, max_len: 200}]; - NotificationType type = 2; -} - -message ResetPassword { - string id = 1 [(validate.rules).string.min_len = 1]; - string code = 2 [(validate.rules).string = {min_len: 1, max_len: 200}]; - string new_password = 3 [(validate.rules).string = {min_len: 1, max_len: 72}]; -} - -message SetPasswordNotificationRequest { - string id = 1; - NotificationType type = 2; -} - -enum NotificationType { - NOTIFICATIONTYPE_EMAIL = 0; - NOTIFICATIONTYPE_SMS = 1; -} - message PasswordChange { string old_password = 1 [(validate.rules).string = {min_len: 1, max_len: 72}]; string new_password = 2 [(validate.rules).string = {min_len: 1, max_len: 72}]; @@ -977,143 +482,11 @@ enum MFAState { MFASTATE_REMOVED = 3; } -message ApplicationID { - string id = 1; -} - -message Application { - string id = 1; - AppState state = 2; - google.protobuf.Timestamp creation_date = 3; - google.protobuf.Timestamp change_date = 4; - string name = 5; - oneof app_config { - OIDCConfig oidc_config = 8; - } -} - - -enum AppState { - APPSTATE_UNSPECIFIED = 0; - APPSTATE_ACTIVE = 1; - APPSTATE_INACTIVE = 2; - APPSTATE_DELETED = 3; -} - - -message OIDCConfig { - repeated string redirect_uris = 1; - repeated OIDCResponseType response_types = 2; - repeated OIDCGrantType grant_types = 3; - OIDCApplicationType application_type = 4; - string client_secret = 5; - string client_id = 6; - OIDCAuthMethodType auth_method_type = 7; - repeated string post_logout_redirect_uris = 8; -} - -enum OIDCGrantType { - OIDCGRANTTYPE_AUTHORIZATION_CODE = 0; - OIDCGRANTTYPE_GRANT_TYPE_NONE = 1; - OIDCGRANTTYPE_REFRESH_TOKEN = 2; -} - -enum OIDCApplicationType { - OIDCAPPLICATIONTYPE_WEB = 0; - OIDCAPPLICATIONTYPE_USER_AGENT = 1; - OIDCAPPLICATIONTYPE_NATIVE = 2; -} - -enum OIDCAuthMethodType { - OIDCAUTHMETHODTYPE_BASIC = 0; - OIDCAUTHMETHODTYPE_POST = 1; - OIDCAUTHMETHODTYPE_NONE = 2; -} - -message ApplicationSearchRequest { - uint64 offset = 1; - uint64 limit = 2; - ApplicationSearchKey sorting_column = 3 [(validate.rules).enum = {not_in: [0]}];; - bool asc = 4; - repeated ApplicationSearchQuery queries = 5; -} - -message ApplicationSearchQuery { - ApplicationSearchKey key = 1 [(validate.rules).enum = {not_in: [0]}];; - SearchMethod method = 2; - string value = 3; -} - -enum ApplicationSearchKey { - APPLICATIONSEARCHKEY_UNSPECIFIED = 0; - APPLICATIONSEARCHKEY_APP_TYPE = 1; - APPLICATIONSEARCHKEY_STATE = 2; - APPLICATIONSEARCHKEY_CLIENT_ID = 3; - APPLICATIONSEARCHKEY_APP_NAME = 4; - APPLICATIONSEARCHKEY_PROJECT_ID = 5; -} - -message ApplicationSearchResponse { - uint64 offset = 1; - uint64 limit = 2; - uint64 total_result = 3; - repeated Application result = 4; -} - -enum SearchMethod { - SEARCHMETHOD_EQUALS = 0; - SEARCHMETHOD_STARTS_WITH = 1; - SEARCHMETHOD_CONTAINS = 2; -} - -message ApplicationAuthorizeRequest { - oneof auth { - OIDCClientAuth oidc_client_auth = 1; - } -} - message OIDCClientAuth { string client_id = 1; string client_secret = 2; } - -message GrantSearchRequest { - uint64 offset = 1; - uint64 limit = 2; - GrantSearchKey sorting_column = 3 [(validate.rules).enum = {not_in: [0]}];; - bool asc = 4; - repeated GrantSearchQuery queries = 5; -} - -message GrantSearchQuery { - GrantSearchKey key = 1 [(validate.rules).enum = {not_in: [0]}];; - SearchMethod method = 2; - string value = 3; -} - -enum GrantSearchKey { - GRANTSEARCHKEY_UNSPECIFIED = 0; - GRANTSEARCHKEY_ORG_ID = 1; - GRANTSEARCHKEY_PROJECT_ID = 2; - GRANTSEARCHKEY_USER_ID = 3; -} - -message GrantSearchResponse { - uint64 offset = 1; - uint64 limit = 2; - uint64 total_result = 3; - repeated Grant result = 4; -} - -message Grant { - string OrgId = 1; - string ProjectId = 2; - string UserId = 3; - repeated string Roles = 4; - string OrgName = 5; -} - message MyProjectOrgSearchRequest { uint64 offset = 1; uint64 limit = 2; @@ -1148,23 +521,12 @@ message Org { string name = 2; } -message CreateTokenRequest { - string agent_id = 1 [(validate.rules).string.min_len = 1]; - string auth_session_id = 2 [(validate.rules).string.min_len = 1]; -} - -message Token { - string id = 1; - google.protobuf.Timestamp expiration = 8; -} - message MyPermissions { repeated string permissions = 1; } - -message VerifyUserInitRequest { - string id = 1; - string code = 2; - string password = 3; -} +enum SearchMethod { + SEARCHMETHOD_EQUALS = 0; + SEARCHMETHOD_STARTS_WITH = 1; + SEARCHMETHOD_CONTAINS = 2; +} \ No newline at end of file diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index 52929e11a9..5fca24a0d0 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -2,8 +2,6 @@ package auth import ( "context" - "github.com/caos/logging" - "github.com/caos/zitadel/internal/api/auth" app "github.com/caos/zitadel/internal/auth" "github.com/caos/zitadel/pkg/auth/api" @@ -14,8 +12,6 @@ type Config struct { API api.Config } -func Start(ctx context.Context, config Config, authZ auth.Config) error { - err := api.Start(ctx, config.API) - logging.Log("MAIN-udjed").OnError(err).Panic("unable to start api") - return err +func Start(ctx context.Context, config Config, authZ auth.Config) { + api.Start(ctx, config.API) } diff --git a/pkg/management/api/api.go b/pkg/management/api/api.go index 3a95803f05..bf5bbf6d7f 100644 --- a/pkg/management/api/api.go +++ b/pkg/management/api/api.go @@ -17,13 +17,10 @@ type Config struct { GRPC grpc_util.Config } -func Start(ctx context.Context, conf Config) error { - api := &API{ - grpcServer: *grpc.StartServer(conf.GRPC.ToServerConfig()), - gateway: *grpc.StartGateway(conf.GRPC.ToGatewayConfig()), - } - server.StartServer(ctx, &api.grpcServer) - server.StartGateway(ctx, &api.gateway) +func Start(ctx context.Context, conf Config) { + grpcServer := grpc.StartServer(conf.GRPC.ToServerConfig()) + grpcGateway := grpc.StartGateway(conf.GRPC.ToGatewayConfig()) - return nil + server.StartServer(ctx, grpcServer) + server.StartGateway(ctx, grpcGateway) } diff --git a/pkg/management/management.go b/pkg/management/management.go index 4defc40c9d..1aaea27617 100644 --- a/pkg/management/management.go +++ b/pkg/management/management.go @@ -2,8 +2,6 @@ package management import ( "context" - "github.com/caos/logging" - "github.com/caos/zitadel/internal/api/auth" app "github.com/caos/zitadel/internal/management" "github.com/caos/zitadel/pkg/management/api" @@ -14,8 +12,6 @@ type Config struct { API api.Config } -func Start(ctx context.Context, config Config, authZ auth.Config) error { - err := api.Start(ctx, config.API) - logging.Log("MAIN-6dhRs").OnError(err).Panic("unable to start api") - return err +func Start(ctx context.Context, config Config, authZ auth.Config) { + api.Start(ctx, config.API) }