diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1f9a26255..2ade68e239 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -92,12 +92,12 @@ jobs: - uses: actions/download-artifact@v2 with: name: angular - path: console/dist/app + path: console/dist/console - run: go get github.com/rakyll/statik - run: ./build/console/generate-static.sh - - run: cat pkg/console/statik/statik.go + - run: cat internal/ui/console/statik/statik.go - run: ./build/login/generate-static.sh - - run: cat internal/login/statik/statik.go + - run: cat internal/ui/login/statik/statik.go - run: ./build/notification/generate-static.sh - run: cat internal/notification/statik/statik.go - run: ./build/zitadel/generate-static.sh diff --git a/build/console/generate-grpc.sh b/build/console/generate-grpc.sh index 06e1fd18ba..3c43dcef61 100755 --- a/build/console/generate-grpc.sh +++ b/build/console/generate-grpc.sh @@ -23,19 +23,19 @@ echo "Generate grpc" protoc \ -I=/usr/local/include \ - -I=../pkg/message \ - -I=../pkg/management/api/proto \ - -I=../pkg/auth/api/proto \ - -I=../pkg/admin/api/proto \ + -I=../pkg/grpc/message \ + -I=../pkg/grpc/management/proto \ + -I=../pkg/grpc/auth/proto \ + -I=../pkg/grpc/admin/proto \ -I=../internal/protoc/protoc-gen-authoption \ -I=node_modules/google-proto-files \ -I=tmp \ --js_out=import_style=commonjs,binary:$GEN_PATH \ --grpc-web_out=import_style=commonjs+dts,mode=grpcweb:$GEN_PATH \ - ../pkg/message/*.proto \ - ../pkg/management/api/proto/*.proto \ - ../pkg/admin/api/proto/*.proto \ - ../pkg/auth/api/proto/*.proto + ../pkg/grpc/message/proto/*.proto \ + ../pkg/grpc/management/proto/*.proto \ + ../pkg/grpc/admin/proto/*.proto \ + ../pkg/grpc/auth/proto/*.proto echo "Generate annotations js file (compatibility)" diff --git a/build/console/generate-static.sh b/build/console/generate-static.sh index 18632ab241..5360688ab7 100755 --- a/build/console/generate-static.sh +++ b/build/console/generate-static.sh @@ -2,4 +2,4 @@ set -eux -go generate pkg/console/statik/generate.go \ No newline at end of file +go generate internal/ui/console/statik/generate.go \ No newline at end of file diff --git a/build/login/generate-static.sh b/build/login/generate-static.sh index 9e59d27287..2b8ed5f0d6 100755 --- a/build/login/generate-static.sh +++ b/build/login/generate-static.sh @@ -2,4 +2,4 @@ set -eux -go generate internal/login/statik/generate.go \ No newline at end of file +go generate internal/ui/login/statik/generate.go \ No newline at end of file diff --git a/cmd/zitadel/caos_local.sh b/cmd/zitadel/caos_local.sh index 744d3d4de0..62788aa7d2 100755 --- a/cmd/zitadel/caos_local.sh +++ b/cmd/zitadel/caos_local.sh @@ -40,10 +40,10 @@ export SMTP_TLS=TRUE export CHAT_URL=$(gopass zitadel-secrets/zitadel/dev/google-chat-url) #OIDC -export ZITADEL_ISSUER=http://localhost:50022 -export ZITADEL_ACCOUNTS=http://localhost:50031 -export ZITADEL_AUTHORIZE=http://localhost:50022 -export ZITADEL_OAUTH=http://localhost:50022 +export ZITADEL_ISSUER=http://localhost:50002/oauth/v2/ +export ZITADEL_ACCOUNTS=http://localhost:50003/login +export ZITADEL_AUTHORIZE=http://localhost:50002/oauth/v2/ +export ZITADEL_OAUTH=http://localhost:50002/oauth/v2/ export ZITADEL_CONSOLE=http://localhost:4200 export CAOS_OIDC_DEV=true export ZITADEL_COOKIE_DOMAIN=localhost @@ -55,7 +55,7 @@ export ZITADEL_CSRF_DEV=true export ZITADEL_CACHE_MAXAGE=12h export ZITADEL_CACHE_SHARED_MAXAGE=168h export ZITADEL_SHORT_CACHE_MAXAGE=5m -export ZITADEL_SHORT_CACHE_SHARED_MAXAGE=15min +export ZITADEL_SHORT_CACHE_SHARED_MAXAGE=15m #Console export ZITADEL_CONSOLE_ENV_DIR=../../console/src/assets/ diff --git a/cmd/zitadel/main.go b/cmd/zitadel/main.go index ec8f83ee3a..749ebd6ab9 100644 --- a/cmd/zitadel/main.go +++ b/cmd/zitadel/main.go @@ -3,47 +3,59 @@ package main import ( "context" "flag" - "github.com/caos/zitadel/internal/auth/repository/eventsourcing" - "github.com/caos/zitadel/internal/authz" - sd "github.com/caos/zitadel/internal/config/systemdefaults" - "github.com/caos/zitadel/internal/login" "github.com/caos/logging" - internal_authz "github.com/caos/zitadel/internal/api/auth" + admin_es "github.com/caos/zitadel/internal/admin/repository/eventsourcing" + "github.com/caos/zitadel/internal/api" + internal_authz "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/internal/api/grpc/admin" + "github.com/caos/zitadel/internal/api/grpc/auth" + "github.com/caos/zitadel/internal/api/grpc/management" + "github.com/caos/zitadel/internal/api/oidc" + auth_es "github.com/caos/zitadel/internal/auth/repository/eventsourcing" + "github.com/caos/zitadel/internal/authz" + authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" "github.com/caos/zitadel/internal/config" + sd "github.com/caos/zitadel/internal/config/systemdefaults" + mgmt_es "github.com/caos/zitadel/internal/management/repository/eventsourcing" "github.com/caos/zitadel/internal/notification" tracing "github.com/caos/zitadel/internal/tracing/config" - "github.com/caos/zitadel/pkg/admin" - "github.com/caos/zitadel/pkg/auth" - "github.com/caos/zitadel/pkg/console" - "github.com/caos/zitadel/pkg/management" + "github.com/caos/zitadel/internal/ui" + "github.com/caos/zitadel/internal/ui/console" + "github.com/caos/zitadel/internal/ui/login" ) type Config struct { - Mgmt management.Config - Auth auth.Config - Login login.Config - AuthZ authz.Config - Admin admin.Config - Console console.Config - Notification notification.Config - Log logging.Config Tracing tracing.TracingConfig InternalAuthZ internal_authz.Config SystemDefaults sd.SystemDefaults + + AuthZ authz.Config + Auth auth_es.Config + Admin admin_es.Config + Mgmt mgmt_es.Config + + API api.Config + UI ui.Config + + Notification notification.Config } +var ( + configPaths = config.NewArrayFlags("authz.yaml", "startup.yaml", "system-defaults.yaml") + adminEnabled = flag.Bool("admin", true, "enable admin api") + managementEnabled = flag.Bool("management", true, "enable management api") + authEnabled = flag.Bool("auth", true, "enable auth api") + oidcEnabled = flag.Bool("oidc", true, "enable oidc api") + loginEnabled = flag.Bool("login", true, "enable login ui") + consoleEnabled = flag.Bool("console", true, "enable console ui") + notificationEnabled = flag.Bool("notification", true, "enable notification handler") +) + func main() { - configPaths := config.NewArrayFlags("authz.yaml", "startup.yaml", "system-defaults.yaml") flag.Var(configPaths, "config-files", "paths to the config files") - managementEnabled := flag.Bool("management", true, "enable management api") - authEnabled := flag.Bool("auth", true, "enable auth api") - loginEnabled := flag.Bool("login", true, "enable login ui") - adminEnabled := flag.Bool("admin", true, "enable admin api") - consoleEnabled := flag.Bool("console", true, "enable console ui") - notificationEnabled := flag.Bool("notification", true, "enable notification handler") flag.Parse() conf := new(Config) @@ -53,31 +65,58 @@ func main() { ctx := context.Background() authZRepo, err := authz.Start(ctx, conf.AuthZ, conf.InternalAuthZ, conf.SystemDefaults) logging.Log("MAIN-s9KOw").OnError(err).Fatal("error starting authz repo") - - if *adminEnabled { - admin.Start(ctx, conf.Admin, authZRepo, conf.InternalAuthZ, conf.SystemDefaults) - } - if *managementEnabled { - management.Start(ctx, conf.Mgmt, authZRepo, conf.InternalAuthZ, conf.SystemDefaults) - } - var authRepo *eventsourcing.EsRepository - if *authEnabled || *loginEnabled { - authRepo, err = eventsourcing.Start(conf.Auth.Repository, conf.InternalAuthZ, conf.SystemDefaults, authZRepo) + var authRepo *auth_es.EsRepository + if *authEnabled || *oidcEnabled || *loginEnabled { + authRepo, err = auth_es.Start(conf.Auth, conf.InternalAuthZ, conf.SystemDefaults, authZRepo) logging.Log("MAIN-9oRw6").OnError(err).Fatal("error starting auth repo") } - if *authEnabled { - auth.Start(ctx, conf.Auth, authZRepo, conf.InternalAuthZ, conf.SystemDefaults, authRepo) - } - if *loginEnabled { - login.Start(ctx, conf.Login, conf.SystemDefaults, authRepo) - } + + startAPI(ctx, conf, authZRepo, authRepo) + startUI(ctx, conf, authRepo) + if *notificationEnabled { notification.Start(ctx, conf.Notification, conf.SystemDefaults) } - if *consoleEnabled { - err = console.Start(ctx, conf.Console) - logging.Log("MAIN-3Dfuc").OnError(err).Fatal("error starting console ui") - } + <-ctx.Done() logging.Log("MAIN-s8d2h").Info("stopping zitadel") } + +func startUI(ctx context.Context, conf *Config, authRepo *auth_es.EsRepository) { + uis := ui.Create(conf.UI) + if *loginEnabled { + uis.RegisterHandler(ui.LoginHandler, login.Start(conf.UI.Login, authRepo, ui.LoginHandler).Handler()) + } + if *consoleEnabled { + consoleHandler, err := console.Start(conf.UI.Console) + logging.Log("API-AGD1f").OnError(err).Fatal("error starting console") + uis.RegisterHandler(ui.ConsoleHandler, consoleHandler) + } + uis.Start(ctx) +} + +func startAPI(ctx context.Context, conf *Config, authZRepo *authz_repo.EsRepository, authRepo *auth_es.EsRepository) { + apis := api.Create(conf.API, conf.InternalAuthZ, authZRepo, conf.SystemDefaults) + roles := make([]string, len(conf.InternalAuthZ.RolePermissionMappings)) + for i, role := range conf.InternalAuthZ.RolePermissionMappings { + roles[i] = role.Role + } + if *adminEnabled { + adminRepo, err := admin_es.Start(ctx, conf.Admin, conf.SystemDefaults, roles) + logging.Log("API-D42tq").OnError(err).Fatal("error starting auth repo") + apis.RegisterServer(ctx, admin.CreateServer(adminRepo)) + } + if *managementEnabled { + managementRepo, err := mgmt_es.Start(conf.Mgmt, conf.SystemDefaults, roles) + logging.Log("API-Gd2qq").OnError(err).Fatal("error starting management repo") + apis.RegisterServer(ctx, management.CreateServer(managementRepo, conf.SystemDefaults)) + } + if *authEnabled { + apis.RegisterServer(ctx, auth.CreateServer(authRepo)) + } + if *oidcEnabled { + op := oidc.NewProvider(ctx, conf.API.OIDC, authRepo) + apis.RegisterHandler("/oauth/v2", op.HttpHandler().Handler) + } + apis.Start(ctx) +} diff --git a/cmd/zitadel/startup.yaml b/cmd/zitadel/startup.yaml index c04e17938f..f8ed9c9bd7 100644 --- a/cmd/zitadel/startup.yaml +++ b/cmd/zitadel/startup.yaml @@ -1,3 +1,8 @@ +Log: + Level: $ZITADEL_LOG_LEVEL + Formatter: + Format: text + Tracing: Type: google Config: @@ -5,168 +10,6 @@ Tracing: MetricPrefix: ZITADEL-V1 Fraction: $ZITADEL_TRACING_FRACTION -Log: - Level: $ZITADEL_LOG_LEVEL - Formatter: - Format: text - -Mgmt: - API: - GRPC: - ServerPort: 50010 - GatewayPort: 50011 - CustomHeaders: - - x-zitadel- - Repository: - SearchLimit: 100 - Domain: $ZITADEL_DEFAULT_DOMAIN - Eventstore: - ServiceName: 'ManagementAPI' - Repository: - SQL: - Host: $ZITADEL_EVENTSTORE_HOST - Port: $ZITADEL_EVENTSTORE_PORT - User: 'management' - Password: $CR_MANAGEMENT_PASSWORD - Database: 'eventstore' - SSL: - Mode: $CR_SSL_MODE - RootCert: $CR_ROOT_CERT - Cert: $CR_MANAGEMENT_CERT - Key: $CR_MANAGEMENT_KEY - Cache: - Type: 'fastcache' - Config: - MaxCacheSizeInByte: 10485760 #10mb - View: - Host: $ZITADEL_EVENTSTORE_HOST - Port: $ZITADEL_EVENTSTORE_PORT - User: 'management' - Password: $CR_MANAGEMENT_PASSWORD - Database: 'management' - SSL: - Mode: $CR_SSL_MODE - RootCert: $CR_ROOT_CERT - Cert: $CR_MANAGEMENT_CERT - Key: $CR_MANAGEMENT_KEY - Spooler: - ConcurrentTasks: 4 - BulkLimit: 100 - FailureCountUntilSkip: 5 - -Auth: - API: - GRPC: - ServerPort: 50020 - GatewayPort: 50021 - CustomHeaders: - - x-zitadel- - OIDC: - OPConfig: - Issuer: $ZITADEL_ISSUER - DefaultLogoutRedirectURI: $ZITADEL_ACCOUNTS/logout/done - Port: 50022 - StorageConfig: - DefaultLoginURL: $ZITADEL_ACCOUNTS/login?authRequestID= - DefaultAccessTokenLifetime: 12h - DefaultIdTokenLifetime: 12h - SigningKeyAlgorithm: RS256 - UserAgentCookieConfig: - Name: caos.zitadel.useragent - Domain: $ZITADEL_COOKIE_DOMAIN - Key: - EncryptionKeyID: $ZITADEL_COOKIE_KEY - Cache: - MaxAge: $ZITADEL_CACHE_MAXAGE - SharedMaxAge: $ZITADEL_CACHE_SHARED_MAXAGE - Endpoints: - Auth: - Path: 'authorize' - URL: '$ZITADEL_AUTHORIZE/authorize' - Token: - Path: 'token' - URL: '$ZITADEL_OAUTH/token' - EndSession: - Path: 'endsession' - URL: '$ZITADEL_AUTHORIZE/endsession' - Userinfo: - Path: 'userinfo' - URL: '$ZITADEL_OAUTH/userinfo' - Keys: - Path: 'keys' - URL: '$ZITADEL_OAUTH/keys' - Repository: - SearchLimit: 100 - Eventstore: - ServiceName: 'authAPI' - Repository: - SQL: - Host: $ZITADEL_EVENTSTORE_HOST - Port: $ZITADEL_EVENTSTORE_PORT - User: 'auth' - Password: $CR_AUTH_PASSWORD - Database: 'eventstore' - SSL: - Mode: $CR_SSL_MODE - RootCert: $CR_ROOT_CERT - Cert: $CR_AUTH_CERT - Key: $CR_AUTH_KEY - Cache: - Type: 'fastcache' - Config: - MaxCacheSizeInByte: 10485760 #10mb - AuthRequest: - Connection: - Host: $ZITADEL_EVENTSTORE_HOST - Port: $ZITADEL_EVENTSTORE_PORT - User: 'auth' - Password: $CR_AUTH_PASSWORD - Database: 'auth' - SSL: - Mode: $CR_SSL_MODE - RootCert: $CR_ROOT_CERT - Cert: $CR_AUTH_CERT - Key: $CR_AUTH_KEY - View: - Host: $ZITADEL_EVENTSTORE_HOST - Port: $ZITADEL_EVENTSTORE_PORT - User: 'auth' - Password: $CR_AUTH_PASSWORD - Database: 'auth' - SSL: - Mode: $CR_SSL_MODE - RootCert: $CR_ROOT_CERT - Cert: $CR_AUTH_CERT - Key: $CR_AUTH_KEY - Spooler: - ConcurrentTasks: 4 - BulkLimit: 100 - FailureCountUntilSkip: 5 - KeyConfig: - Size: 2048 - PrivateKeyLifetime: 6h - PublicKeyLifetime: 30h - EncryptionConfig: - EncryptionKeyID: $ZITADEL_OIDC_KEYS_ID - SigningKeyRotation: 10s - -Login: - Handler: - Port: 50031 - OidcAuthCallbackURL: '$ZITADEL_AUTHORIZE/authorize/' - ZitadelURL: '$ZITADEL_CONSOLE' - LanguageCookieName: 'caos.zitadel.login.lang' - DefaultLanguage: 'de' - CSRF: - CookieName: 'caos.zitadel.login.csrf' - Key: - EncryptionKeyID: $ZITADEL_CSRF_KEY - Development: $ZITADEL_CSRF_DEV - Cache: - MaxAge: $ZITADEL_CACHE_MAXAGE - SharedMaxAge: $ZITADEL_CACHE_SHARED_MAXAGE - - AuthZ: Repository: Eventstore: @@ -176,8 +19,8 @@ AuthZ: Host: $ZITADEL_EVENTSTORE_HOST Port: $ZITADEL_EVENTSTORE_PORT User: 'authz' - Password: $CR_AUTHZ_PASSWORD Database: 'eventstore' + Password: $CR_AUTHZ_PASSWORD SSL: Mode: $CR_SSL_MODE RootCert: $CR_ROOT_CERT @@ -191,7 +34,6 @@ AuthZ: Host: $ZITADEL_EVENTSTORE_HOST Port: $ZITADEL_EVENTSTORE_PORT User: 'authz' - Password: $CR_AUTHZ_PASSWORD Database: 'authz' SSL: Mode: $CR_SSL_MODE @@ -203,61 +45,200 @@ AuthZ: BulkLimit: 100 FailureCountUntilSkip: 5 -Admin: - API: - GRPC: - ServerPort: 50040 - GatewayPort: 50041 - CustomHeaders: - - x-zitadel- - Repository: - SearchLimit: 100 - Domain: $ZITADEL_DEFAULT_DOMAIN - Eventstore: - ServiceName: 'Admin' - Repository: - SQL: - Host: $ZITADEL_EVENTSTORE_HOST - Port: $ZITADEL_EVENTSTORE_PORT - User: 'adminapi' - Password: $CR_ADMINAPI_PASSWORD - Database: 'eventstore' - SSL: - Mode: $CR_SSL_MODE - RootCert: $CR_ROOT_CERT - Cert: $CR_ADMINAPI_CERT - Key: $CR_ADMINAPI_KEY - Cache: - Type: 'fastcache' - Config: - MaxCacheSizeInByte: 10485760 #10mb - View: +Auth: + SearchLimit: 100 + Eventstore: + ServiceName: 'authAPI' + Repository: + SQL: + Host: $ZITADEL_EVENTSTORE_HOST + Port: $ZITADEL_EVENTSTORE_PORT + User: 'auth' + Database: 'eventstore' + Password: $CR_AUTH_PASSWORD + SSL: + Mode: $CR_SSL_MODE + RootCert: $CR_ROOT_CERT + Cert: $CR_AUTH_CERT + Key: $CR_AUTH_KEY + Cache: + Type: 'fastcache' + Config: + MaxCacheSizeInByte: 10485760 #10mb + AuthRequest: + Connection: Host: $ZITADEL_EVENTSTORE_HOST Port: $ZITADEL_EVENTSTORE_PORT - User: 'adminapi' - Password: $CR_ADMINAPI_PASSWORD - Database: 'adminapi' + User: 'auth' + Database: 'auth' + Password: $CR_AUTH_PASSWORD SSL: Mode: $CR_SSL_MODE RootCert: $CR_ROOT_CERT - Cert: $CR_ADMINAPI_CERT - Key: $CR_ADMINAPI_KEY - Spooler: - ConcurrentTasks: 1 - BulkLimit: 100 - FailureCountUntilSkip: 5 + Cert: $CR_AUTH_CERT + Key: $CR_AUTH_KEY + View: + Host: $ZITADEL_EVENTSTORE_HOST + Port: $ZITADEL_EVENTSTORE_PORT + User: 'auth' + Database: 'auth' + Password: $CR_AUTH_PASSWORD + SSL: + Mode: $CR_SSL_MODE + RootCert: $CR_ROOT_CERT + Cert: $CR_AUTH_CERT + Key: $CR_AUTH_KEY + Spooler: + ConcurrentTasks: 4 + BulkLimit: 100 + FailureCountUntilSkip: 5 + KeyConfig: + Size: 2048 + PrivateKeyLifetime: 6h + PublicKeyLifetime: 30h + EncryptionConfig: + EncryptionKeyID: $ZITADEL_OIDC_KEYS_ID + SigningKeyRotation: 10s -Console: - Port: 50050 - EnvOverwriteDir: $ZITADEL_CONSOLE_ENV_DIR - ShortCache: - MaxAge: $ZITADEL_SHORT_CACHE_MAXAGE - SharedMaxAge: $ZITADEL_SHORT_CACHE_SHARED_MAXAGE - LongCache: +Admin: + SearchLimit: 100 + Domain: $ZITADEL_DEFAULT_DOMAIN + Eventstore: + ServiceName: 'Admin' + Repository: + SQL: + Host: $ZITADEL_EVENTSTORE_HOST + Port: $ZITADEL_EVENTSTORE_PORT + User: 'admin_api' + Database: 'eventstore' + Password: $CR_ADMINAPI_PASSWORD + SSL: + Mode: $CR_SSL_MODE + RootCert: $CR_ROOT_CERT + Cert: $CR_ADMINAPI_CERT + Key: $CR_ADMINAPI_KEY + Cache: + Type: 'fastcache' + Config: + MaxCacheSizeInByte: 10485760 #10mb + View: + Host: $ZITADEL_EVENTSTORE_HOST + Port: $ZITADEL_EVENTSTORE_PORT + User: 'admin_api' + Database: 'admin_api' + Password: $CR_ADMINAPI_PASSWORD + SSL: + Mode: $CR_SSL_MODE + RootCert: $CR_ROOT_CERT + Cert: $CR_ADMINAPI_CERT + Key: $CR_ADMINAPI_KEY + Spooler: + ConcurrentTasks: 1 + BulkLimit: 100 + FailureCountUntilSkip: 5 + +Mgmt: + SearchLimit: 100 + Domain: $ZITADEL_DEFAULT_DOMAIN + Eventstore: + ServiceName: 'ManagementAPI' + Repository: + SQL: + Host: $ZITADEL_EVENTSTORE_HOST + Port: $ZITADEL_EVENTSTORE_PORT + User: 'management' + Database: 'eventstore' + Password: $CR_MANAGEMENT_PASSWORD + SSL: + Mode: $CR_SSL_MODE + RootCert: $CR_ROOT_CERT + Cert: $CR_MANAGEMENT_CERT + Key: $CR_MANAGEMENT_KEY + Cache: + Type: 'fastcache' + Config: + MaxCacheSizeInByte: 10485760 #10mb + View: + Host: $ZITADEL_EVENTSTORE_HOST + Port: $ZITADEL_EVENTSTORE_PORT + User: 'management' + Database: 'management' + Password: $CR_MANAGEMENT_PASSWORD + SSL: + Mode: $CR_SSL_MODE + RootCert: $CR_ROOT_CERT + Cert: $CR_MANAGEMENT_CERT + Key: $CR_MANAGEMENT_KEY + Spooler: + ConcurrentTasks: 4 + BulkLimit: 100 + FailureCountUntilSkip: 5 + +API: + GRPC: + ServerPort: 50001 + GatewayPort: 50002 + CustomHeaders: + - x-zitadel- + OIDC: + OPConfig: + Issuer: $ZITADEL_ISSUER + DefaultLogoutRedirectURI: $ZITADEL_ACCOUNTS/logout/done + StorageConfig: + DefaultLoginURL: $ZITADEL_ACCOUNTS/login?authRequestID= + DefaultAccessTokenLifetime: 12h + DefaultIdTokenLifetime: 12h + SigningKeyAlgorithm: RS256 + UserAgentCookieConfig: + Name: caos.zitadel.useragent + Domain: $ZITADEL_COOKIE_DOMAIN + Key: + EncryptionKeyID: $ZITADEL_COOKIE_KEY + Cache: MaxAge: $ZITADEL_CACHE_MAXAGE SharedMaxAge: $ZITADEL_CACHE_SHARED_MAXAGE - CSPDomain: $ZITADEL_DEFAULT_DOMAIN + Endpoints: + Auth: + Path: 'authorize' + URL: '$ZITADEL_AUTHORIZE/authorize' + Token: + Path: 'token' + URL: '$ZITADEL_OAUTH/token' + EndSession: + Path: 'endsession' + URL: '$ZITADEL_AUTHORIZE/endsession' + Userinfo: + Path: 'userinfo' + URL: '$ZITADEL_OAUTH/userinfo' + Keys: + Path: 'keys' + URL: '$ZITADEL_OAUTH/keys' +UI: + Port: 50003 + Login: + Handler: + OidcAuthCallbackURL: '$ZITADEL_AUTHORIZE/authorize/' + ZitadelURL: '$ZITADEL_CONSOLE' + LanguageCookieName: 'caos.zitadel.login.lang' + DefaultLanguage: 'de' + CSRF: + CookieName: 'caos.zitadel.login.csrf' + Key: + EncryptionKeyID: $ZITADEL_CSRF_KEY + Development: $ZITADEL_CSRF_DEV + Cache: + MaxAge: $ZITADEL_CACHE_MAXAGE + SharedMaxAge: $ZITADEL_CACHE_SHARED_MAXAGE + Console: + EnvOverwriteDir: $ZITADEL_CONSOLE_ENV_DIR + ShortCache: + MaxAge: $ZITADEL_SHORT_CACHE_MAXAGE + SharedMaxAge: $ZITADEL_SHORT_CACHE_SHARED_MAXAGE + LongCache: + MaxAge: $ZITADEL_CACHE_MAXAGE + SharedMaxAge: $ZITADEL_CACHE_SHARED_MAXAGE + CSPDomain: $ZITADEL_DEFAULT_DOMAIN Notification: Repository: @@ -270,8 +251,8 @@ Notification: Host: $ZITADEL_EVENTSTORE_HOST Port: $ZITADEL_EVENTSTORE_PORT User: 'notification' - Password: $CR_NOTIFICATION_PASSWORD Database: 'eventstore' + Password: $CR_NOTIFICATION_PASSWORD SSL: Mode: $CR_SSL_MODE RootCert: $CR_ROOT_CERT @@ -285,8 +266,8 @@ Notification: Host: $ZITADEL_EVENTSTORE_HOST Port: $ZITADEL_EVENTSTORE_PORT User: 'notification' - Password: $CR_NOTIFICATION_PASSWORD Database: 'notification' + Password: $CR_NOTIFICATION_PASSWORD SSL: Mode: $CR_SSL_MODE RootCert: $CR_ROOT_CERT @@ -298,4 +279,4 @@ Notification: FailureCountUntilSkip: 5 Handlers: Notification: - MinimumCycleDuration: 10s + MinimumCycleDuration: 10s \ No newline at end of file diff --git a/console/package.json b/console/package.json index 0afaf5bb55..8f2459be82 100644 --- a/console/package.json +++ b/console/package.json @@ -5,7 +5,7 @@ "ng": "ng", "start": "ng serve", "build": "ng build", - "prodbuild": "ng build --prod", + "prodbuild": "ng build --prod --base-href /console/", "lint": "ng lint && stylelint './projects/**/*.scss' --syntax scss", "postinstall": "../build/console/generate-grpc.sh" }, diff --git a/console/src/app/app.component.html b/console/src/app/app.component.html index 428cff6f7a..4b0c8194ec 100644 --- a/console/src/app/app.component.html +++ b/console/src/app/app.component.html @@ -5,9 +5,9 @@ + src="./assets/images/zitadel-logo-oneline-darkdesign.svg" /> - + @@ -126,4 +126,4 @@ - \ No newline at end of file + diff --git a/console/src/app/app.module.ts b/console/src/app/app.module.ts index 1d49a5a55d..9573dfeff2 100644 --- a/console/src/app/app.module.ts +++ b/console/src/app/app.module.ts @@ -1,5 +1,5 @@ import { OverlayModule } from '@angular/cdk/overlay'; -import { CommonModule, registerLocaleData } from '@angular/common'; +import { APP_BASE_HREF, CommonModule, registerLocaleData, PlatformLocation } from '@angular/common'; import { HttpClient, HttpClientModule } from '@angular/common/http'; import localeDe from '@angular/common/locales/de'; import { APP_INITIALIZER, NgModule } from '@angular/core'; @@ -42,7 +42,7 @@ registerLocaleData(localeDe); // AoT requires an exported function for factories export function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader { - return new TranslateHttpLoader(http); + return new TranslateHttpLoader(http, './assets/i18n/'); } const appInitializerFn = (grpcServ: GrpcService) => { @@ -57,12 +57,10 @@ const stateHandlerFn = (stateHandler: StatehandlerService) => { }; }; -export let authConfig = { - redirectUri: window.location.origin + '/auth/callback', +const authConfig: AuthConfig = { scope: 'openid profile email', // offline_access responseType: 'code', oidc: true, - postLogoutRedirectUri: window.location.origin + '/signedout', }; @NgModule({ diff --git a/console/src/app/pages/home/home.component.html b/console/src/app/pages/home/home.component.html index 11245a8408..58ef53e54c 100644 --- a/console/src/app/pages/home/home.component.html +++ b/console/src/app/pages/home/home.component.html @@ -1,8 +1,8 @@
- + - +
@@ -79,4 +79,4 @@
- \ No newline at end of file + diff --git a/console/src/app/pages/signedout/signedout.component.html b/console/src/app/pages/signedout/signedout.component.html index 273736db71..8d5bdde565 100644 --- a/console/src/app/pages/signedout/signedout.component.html +++ b/console/src/app/pages/signedout/signedout.component.html @@ -1,9 +1,9 @@
- + - +

{{'USER.SIGNEDOUT' | translate}}

@@ -11,4 +11,4 @@ [routerLink]="[ '/users/me' ]">{{'USER.SIGNEDOUT_BTN' | translate}}
-
\ No newline at end of file + diff --git a/console/src/app/services/auth.service.ts b/console/src/app/services/auth.service.ts index 9bd9556a73..bf114f6f5d 100644 --- a/console/src/app/services/auth.service.ts +++ b/console/src/app/services/auth.service.ts @@ -64,6 +64,8 @@ export class AuthService { public async authenticate(config?: Partial, setState: boolean = true): Promise { this.config.issuer = config?.issuer || this.grpcService.issuer; this.config.clientId = config?.clientId || this.grpcService.clientid; + this.config.redirectUri = config?.redirectUri || this.grpcService.redirectUri; + this.config.postLogoutRedirectUri = config?.postLogoutRedirectUri || this.grpcService.postLogoutRedirectUri; this.config.customQueryParams = config?.customQueryParams; this.oauthService.configure(this.config); // this.oauthService.setupAutomaticSilentRefresh(); diff --git a/console/src/app/services/grpc.service.ts b/console/src/app/services/grpc.service.ts index fb18424606..91f1492e12 100644 --- a/console/src/app/services/grpc.service.ts +++ b/console/src/app/services/grpc.service.ts @@ -1,48 +1,54 @@ -import { HttpClient } from '@angular/common/http'; -import { Injectable } from '@angular/core'; - -import { AdminServicePromiseClient } from '../proto/generated/admin_grpc_web_pb'; -import { AuthServicePromiseClient } from '../proto/generated/auth_grpc_web_pb'; -import { ManagementServicePromiseClient } from '../proto/generated/management_grpc_web_pb'; -import { GrpcRequestFn } from './grpc-handler'; - -@Injectable({ - providedIn: 'root', -}) -export class GrpcService { - public issuer: string = ''; - public clientid: string = ''; - - public auth!: AuthServicePromiseClient; - public mgmt!: ManagementServicePromiseClient; - public admin!: AdminServicePromiseClient; - - constructor( - private http: HttpClient, - ) { } - - public async loadAppEnvironment(): Promise { - return this.http.get('/assets/environment.json') - .toPromise().then((data: any) => { - if (data && data.authServiceUrl && data.mgmtServiceUrl && data.issuer) { - this.auth = new AuthServicePromiseClient(data.authServiceUrl); - this.mgmt = new ManagementServicePromiseClient(data.mgmtServiceUrl); - this.admin = new AdminServicePromiseClient(data.adminServiceUrl); - - this.issuer = data.issuer; - if (data.clientid) { - this.clientid = data.clientid; - } - } - return Promise.resolve(data); - }).catch(() => { - console.log('Failed to load environment from assets'); - }); - } -} - -export type RequestFactory = ( - client: TClient, -) => GrpcRequestFn; - -export type ResponseMapper = (resp: TResp) => TMappedResp; +import { HttpClient } from '@angular/common/http'; +import { Injectable } from '@angular/core'; +import { PlatformLocation } from '@angular/common'; + +import { AdminServicePromiseClient } from '../proto/generated/admin_grpc_web_pb'; +import { AuthServicePromiseClient } from '../proto/generated/auth_grpc_web_pb'; +import { ManagementServicePromiseClient } from '../proto/generated/management_grpc_web_pb'; +import { GrpcRequestFn } from './grpc-handler'; + +@Injectable({ + providedIn: 'root', +}) +export class GrpcService { + public issuer: string = ''; + public clientid: string = ''; + public redirectUri: string = ''; + public postLogoutRedirectUri: string = ''; + + public auth!: AuthServicePromiseClient; + public mgmt!: ManagementServicePromiseClient; + public admin!: AdminServicePromiseClient; + + constructor( + private http: HttpClient, + private platformLocation: PlatformLocation, + ) { } + + public async loadAppEnvironment(): Promise { + return this.http.get('./assets/environment.json') + .toPromise().then((data: any) => { + if (data && data.authServiceUrl && data.mgmtServiceUrl && data.issuer) { + this.auth = new AuthServicePromiseClient(data.authServiceUrl); + this.mgmt = new ManagementServicePromiseClient(data.mgmtServiceUrl); + this.admin = new AdminServicePromiseClient(data.adminServiceUrl); + + this.issuer = data.issuer; + if (data.clientid) { + this.clientid = data.clientid; + this.redirectUri = window.location.origin + this.platformLocation.getBaseHrefFromDOM() + 'auth/callback'; + this.postLogoutRedirectUri = window.location.origin + this.platformLocation.getBaseHrefFromDOM() + 'signedout'; + } + } + return Promise.resolve(data); + }).catch(() => { + console.log('Failed to load environment from assets'); + }); + } +} + +export type RequestFactory = ( + client: TClient, +) => GrpcRequestFn; + +export type ResponseMapper = (resp: TResp) => TMappedResp; diff --git a/console/src/index.html b/console/src/index.html index 1c211ecb53..2a18d20feb 100644 --- a/console/src/index.html +++ b/console/src/index.html @@ -22,4 +22,4 @@ - \ No newline at end of file + diff --git a/internal/admin/auth/token_verifier.go b/internal/admin/auth/token_verifier.go deleted file mode 100644 index a4026591d1..0000000000 --- a/internal/admin/auth/token_verifier.go +++ /dev/null @@ -1,36 +0,0 @@ -package auth - -import ( - "context" - "github.com/caos/zitadel/internal/api/auth" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" -) - -const ( - adminName = "Admin-API" -) - -type TokenVerifier struct { - adminID string - authZRepo *authz_repo.EsRepository -} - -func Start(authZRepo *authz_repo.EsRepository) (v *TokenVerifier) { - return &TokenVerifier{authZRepo: authZRepo} -} - -func (v *TokenVerifier) VerifyAccessToken(ctx context.Context, token string) (string, string, string, error) { - userID, clientID, agentID, err := v.authZRepo.VerifyAccessToken(ctx, token, adminName, v.adminID) - if clientID != "" { - v.adminID = clientID - } - return userID, clientID, agentID, err -} - -func (v *TokenVerifier) ResolveGrant(ctx context.Context) (*auth.Grant, error) { - return v.authZRepo.ResolveGrants(ctx) -} - -func (v *TokenVerifier) GetProjectIDByClientID(ctx context.Context, clientID string) (string, error) { - return v.authZRepo.ProjectIDByClientID(ctx, clientID) -} diff --git a/internal/admin/config.go b/internal/admin/config.go deleted file mode 100644 index ddfb6fba44..0000000000 --- a/internal/admin/config.go +++ /dev/null @@ -1,4 +0,0 @@ -package admin - -type Config struct { -} diff --git a/internal/admin/repository/eventsourcing/eventstore/user.go b/internal/admin/repository/eventsourcing/eventstore/user.go index 5bbd539e48..685be56366 100644 --- a/internal/admin/repository/eventsourcing/eventstore/user.go +++ b/internal/admin/repository/eventsourcing/eventstore/user.go @@ -2,7 +2,8 @@ package eventstore import ( "context" - "github.com/caos/zitadel/internal/api/auth" + + "github.com/caos/zitadel/internal/api/authz" org_event "github.com/caos/zitadel/internal/org/repository/eventsourcing" policy_event "github.com/caos/zitadel/internal/policy/repository/eventsourcing" usr_model "github.com/caos/zitadel/internal/user/model" @@ -20,11 +21,11 @@ func (repo *UserRepo) UserByID(ctx context.Context, id string) (project *usr_mod } func (repo *UserRepo) CreateUser(ctx context.Context, user *usr_model.User) (*usr_model.User, error) { - pwPolicy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, auth.GetCtxData(ctx).OrgID) + pwPolicy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return nil, err } - orgPolicy, err := repo.OrgEvents.GetOrgIamPolicy(ctx, auth.GetCtxData(ctx).OrgID) + orgPolicy, err := repo.OrgEvents.GetOrgIamPolicy(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return nil, err } @@ -32,7 +33,7 @@ func (repo *UserRepo) CreateUser(ctx context.Context, user *usr_model.User) (*us } func (repo *UserRepo) RegisterUser(ctx context.Context, user *usr_model.User, resourceOwner string) (*usr_model.User, error) { - policyResourceOwner := auth.GetCtxData(ctx).OrgID + policyResourceOwner := authz.GetCtxData(ctx).OrgID if resourceOwner != "" { policyResourceOwner = resourceOwner } diff --git a/internal/admin/repository/eventsourcing/setup/setup.go b/internal/admin/repository/eventsourcing/setup/setup.go index b1569ace6d..4c3f5fda6b 100644 --- a/internal/admin/repository/eventsourcing/setup/setup.go +++ b/internal/admin/repository/eventsourcing/setup/setup.go @@ -2,12 +2,11 @@ package setup import ( "context" - policy_model "github.com/caos/zitadel/internal/policy/model" - policy_event "github.com/caos/zitadel/internal/policy/repository/eventsourcing" "time" "github.com/caos/logging" - "github.com/caos/zitadel/internal/api/auth" + + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/config/systemdefaults" "github.com/caos/zitadel/internal/config/types" caos_errs "github.com/caos/zitadel/internal/errors" @@ -16,6 +15,8 @@ import ( iam_event "github.com/caos/zitadel/internal/iam/repository/eventsourcing" org_model "github.com/caos/zitadel/internal/org/model" org_event "github.com/caos/zitadel/internal/org/repository/eventsourcing" + policy_model "github.com/caos/zitadel/internal/policy/model" + policy_event "github.com/caos/zitadel/internal/policy/repository/eventsourcing" proj_model "github.com/caos/zitadel/internal/project/model" proj_event "github.com/caos/zitadel/internal/project/repository/eventsourcing" usr_model "github.com/caos/zitadel/internal/user/model" @@ -208,7 +209,7 @@ func (setUp *initializer) org(ctx context.Context, org types.Org) (*org_model.Or ctx = setSetUpContextData(ctx, "") createOrg := &org_model.Org{ Name: org.Name, - Domains: []*org_model.OrgDomain{&org_model.OrgDomain{Domain: org.Domain}}, + Domains: []*org_model.OrgDomain{{Domain: org.Domain}}, } return setUp.repos.OrgEvents.CreateOrg(ctx, createOrg) } @@ -434,5 +435,5 @@ func getOIDCAuthMethod(authMethod string) proj_model.OIDCAuthMethodType { } func setSetUpContextData(ctx context.Context, orgID string) context.Context { - return auth.SetCtxData(ctx, auth.CtxData{UserID: SetupUser, OrgID: orgID}) + return authz.SetCtxData(ctx, authz.CtxData{UserID: SetupUser, OrgID: orgID}) } diff --git a/internal/api/api.go b/internal/api/api.go new file mode 100644 index 0000000000..eae3574629 --- /dev/null +++ b/internal/api/api.go @@ -0,0 +1,53 @@ +package api + +import ( + "context" + "net/http" + + "google.golang.org/grpc" + + "github.com/caos/zitadel/internal/api/authz" + grpc_util "github.com/caos/zitadel/internal/api/grpc" + "github.com/caos/zitadel/internal/api/grpc/server" + "github.com/caos/zitadel/internal/api/oidc" + authz_es "github.com/caos/zitadel/internal/authz/repository/eventsourcing" + "github.com/caos/zitadel/internal/config/systemdefaults" +) + +type Config struct { + GRPC grpc_util.Config + OIDC oidc.OPHandlerConfig +} + +type API struct { + grpcServer *grpc.Server + gatewayHandler *server.GatewayHandler + verifier *authz.TokenVerifier + serverPort string +} + +func Create(config Config, authZ authz.Config, authZRepo *authz_es.EsRepository, sd systemdefaults.SystemDefaults) *API { + api := &API{ + serverPort: config.GRPC.ServerPort, + } + api.verifier = authz.Start(authZRepo) + api.grpcServer = server.CreateServer(api.verifier, authZ, sd.DefaultLanguage) + api.gatewayHandler = server.CreateGatewayHandler(config.GRPC) + + return api +} + +func (a *API) RegisterServer(ctx context.Context, server server.Server) { + server.RegisterServer(a.grpcServer) + a.gatewayHandler.RegisterGateway(ctx, server) + a.verifier.RegisterServer(server.AppName(), server.MethodPrefix(), server.AuthMethods()) +} + +func (a *API) RegisterHandler(prefix string, handler http.Handler) { + a.gatewayHandler.RegisterHandler(prefix, handler) +} + +func (a *API) Start(ctx context.Context) { + server.Serve(ctx, a.grpcServer, a.serverPort) + a.gatewayHandler.Serve(ctx) +} diff --git a/internal/api/auth/context.go b/internal/api/auth/context.go deleted file mode 100644 index 7cf740acc3..0000000000 --- a/internal/api/auth/context.go +++ /dev/null @@ -1,91 +0,0 @@ -package auth - -import ( - "context" - "github.com/caos/logging" - "github.com/caos/zitadel/internal/api" - grpc_util "github.com/caos/zitadel/internal/api/grpc" - "google.golang.org/grpc/metadata" - "strconv" -) - -type key int - -const ( - permissionsKey key = 1 - dataKey key = 2 -) - -type CtxData struct { - UserID string - OrgID string - ProjectID string - AgentID string - PreferredLanguage string -} - -func (ctxData CtxData) IsZero() bool { - return ctxData.UserID == "" || ctxData.OrgID == "" -} - -type Grants []*Grant - -type Grant struct { - OrgID string - Roles []string -} - -type TokenVerifier interface { - VerifyAccessToken(ctx context.Context, token string) (string, string, string, error) - ResolveGrant(ctx context.Context) (*Grant, error) - GetProjectIDByClientID(ctx context.Context, clientID string) (string, error) -} - -func VerifyTokenAndWriteCtxData(ctx context.Context, token, orgID string, t TokenVerifier) (_ context.Context, err error) { - var userID, projectID, clientID, agentID string - //TODO: Remove as soon an authentification is implemented - if CheckInternal(ctx) { - userID = grpc_util.GetHeader(ctx, api.ZitadelUserID) - clientID = grpc_util.GetHeader(ctx, api.ZitadelClientID) - projectID, err = t.GetProjectIDByClientID(ctx, clientID) - agentID = grpc_util.GetHeader(ctx, api.ZitadelAgentID) - - } else { - userID, clientID, agentID, err = verifyAccessToken(ctx, token, t) - if err != nil { - return nil, err - } - - projectID, err = t.GetProjectIDByClientID(ctx, clientID) - logging.LogWithFields("AUTH-GfAoV", "clientID", clientID).OnError(err).Warn("could not read projectid by clientid") - } - return context.WithValue(ctx, dataKey, CtxData{UserID: userID, OrgID: orgID, ProjectID: projectID, AgentID: agentID}), nil -} - -func SetCtxData(ctx context.Context, ctxData CtxData) context.Context { - return context.WithValue(ctx, dataKey, ctxData) -} - -func GetCtxData(ctx context.Context) CtxData { - ctxData, _ := ctx.Value(dataKey).(CtxData) - return ctxData -} - -func GetPermissionsFromCtx(ctx context.Context) []string { - ctxPermission, _ := ctx.Value(permissionsKey).([]string) - return ctxPermission -} - -//TODO: Remove as soon an authentification is implemented -func CheckInternal(ctx context.Context) bool { - md, ok := metadata.FromIncomingContext(ctx) - if !ok { - return false - } - v, ok := md[api.LoginKey] - if !ok { - return false - } - ok, _ = strconv.ParseBool(v[0]) - return ok -} diff --git a/internal/api/auth/token.go b/internal/api/auth/token.go deleted file mode 100644 index 7aab34eb9e..0000000000 --- a/internal/api/auth/token.go +++ /dev/null @@ -1,20 +0,0 @@ -package auth - -import ( - "context" - "strings" - - "github.com/caos/zitadel/internal/errors" -) - -const ( - BearerPrefix = "Bearer " -) - -func verifyAccessToken(ctx context.Context, token string, t TokenVerifier) (string, string, string, error) { - parts := strings.Split(token, BearerPrefix) - if len(parts) != 2 { - return "", "", "", errors.ThrowUnauthenticated(nil, "AUTH-7fs1e", "invalid auth header") - } - return t.VerifyAccessToken(ctx, parts[1]) -} diff --git a/internal/api/auth/authorization.go b/internal/api/authz/authorization.go similarity index 93% rename from internal/api/auth/authorization.go rename to internal/api/authz/authorization.go index a24186d391..bd1fbb4c5e 100644 --- a/internal/api/auth/authorization.go +++ b/internal/api/authz/authorization.go @@ -1,4 +1,4 @@ -package auth +package authz import ( "context" @@ -13,8 +13,8 @@ const ( authenticated = "authenticated" ) -func CheckUserAuthorization(ctx context.Context, req interface{}, token, orgID string, verifier TokenVerifier, authConfig *Config, requiredAuthOption Option) (context.Context, error) { - ctx, err := VerifyTokenAndWriteCtxData(ctx, token, orgID, verifier) +func CheckUserAuthorization(ctx context.Context, req interface{}, token, orgID string, verifier *TokenVerifier, authConfig Config, requiredAuthOption Option, method string) (context.Context, error) { + ctx, err := VerifyTokenAndWriteCtxData(ctx, token, orgID, verifier, method) if err != nil { return nil, err } diff --git a/internal/api/auth/authorization_test.go b/internal/api/authz/authorization_test.go similarity index 99% rename from internal/api/auth/authorization_test.go rename to internal/api/authz/authorization_test.go index d140758321..3860c70788 100644 --- a/internal/api/auth/authorization_test.go +++ b/internal/api/authz/authorization_test.go @@ -1,4 +1,4 @@ -package auth +package authz import ( "testing" diff --git a/internal/api/auth/config.go b/internal/api/authz/config.go similarity index 96% rename from internal/api/auth/config.go rename to internal/api/authz/config.go index b678fe377e..4e32416a21 100644 --- a/internal/api/auth/config.go +++ b/internal/api/authz/config.go @@ -1,4 +1,4 @@ -package auth +package authz type Config struct { RolePermissionMappings []RoleMapping diff --git a/internal/api/authz/context.go b/internal/api/authz/context.go new file mode 100644 index 0000000000..c4b21dabaa --- /dev/null +++ b/internal/api/authz/context.go @@ -0,0 +1,57 @@ +package authz + +import ( + "context" + + "github.com/caos/logging" +) + +type key int + +const ( + permissionsKey key = 1 + dataKey key = 2 +) + +type CtxData struct { + UserID string + OrgID string + ProjectID string + AgentID string + PreferredLanguage string +} + +func (ctxData CtxData) IsZero() bool { + return ctxData.UserID == "" || ctxData.OrgID == "" +} + +type Grants []*Grant + +type Grant struct { + OrgID string + Roles []string +} + +func VerifyTokenAndWriteCtxData(ctx context.Context, token, orgID string, t *TokenVerifier, method string) (_ context.Context, err error) { + userID, clientID, agentID, err := verifyAccessToken(ctx, token, t, method) + if err != nil { + return nil, err + } + projectID, err := t.GetProjectIDByClientID(ctx, clientID) + logging.LogWithFields("AUTH-GfAoV", "clientID", clientID).OnError(err).Warn("could not read projectid by clientid") + return context.WithValue(ctx, dataKey, CtxData{UserID: userID, OrgID: orgID, ProjectID: projectID, AgentID: agentID}), nil +} + +func SetCtxData(ctx context.Context, ctxData CtxData) context.Context { + return context.WithValue(ctx, dataKey, ctxData) +} + +func GetCtxData(ctx context.Context) CtxData { + ctxData, _ := ctx.Value(dataKey).(CtxData) + return ctxData +} + +func GetPermissionsFromCtx(ctx context.Context) []string { + ctxPermission, _ := ctx.Value(permissionsKey).([]string) + return ctxPermission +} diff --git a/internal/api/auth/context_mock.go b/internal/api/authz/context_mock.go similarity index 91% rename from internal/api/auth/context_mock.go rename to internal/api/authz/context_mock.go index 61d53c6972..cdc12070eb 100644 --- a/internal/api/auth/context_mock.go +++ b/internal/api/authz/context_mock.go @@ -1,4 +1,4 @@ -package auth +package authz import "context" diff --git a/internal/api/auth/permissions.go b/internal/api/authz/permissions.go similarity index 83% rename from internal/api/auth/permissions.go rename to internal/api/authz/permissions.go index 07be8a0f03..5467da16fd 100644 --- a/internal/api/auth/permissions.go +++ b/internal/api/authz/permissions.go @@ -1,4 +1,4 @@ -package auth +package authz import ( "context" @@ -6,7 +6,7 @@ import ( "github.com/caos/zitadel/internal/errors" ) -func getUserMethodPermissions(ctx context.Context, t TokenVerifier, requiredPerm string, authConfig *Config) (context.Context, []string, error) { +func getUserMethodPermissions(ctx context.Context, t *TokenVerifier, requiredPerm string, authConfig Config) (context.Context, []string, error) { ctxData := GetCtxData(ctx) if ctxData.IsZero() { return nil, nil, errors.ThrowUnauthenticated(nil, "AUTH-rKLWEH", "context missing") @@ -22,7 +22,7 @@ func getUserMethodPermissions(ctx context.Context, t TokenVerifier, requiredPerm return context.WithValue(ctx, permissionsKey, permissions), permissions, nil } -func mapGrantToPermissions(requiredPerm string, grant *Grant, authConfig *Config) []string { +func mapGrantToPermissions(requiredPerm string, grant *Grant, authConfig Config) []string { resolvedPermissions := make([]string, 0) for _, role := range grant.Roles { resolvedPermissions = mapRoleToPerm(requiredPerm, role, authConfig, resolvedPermissions) @@ -31,7 +31,7 @@ func mapGrantToPermissions(requiredPerm string, grant *Grant, authConfig *Config return resolvedPermissions } -func mapRoleToPerm(requiredPerm, actualRole string, authConfig *Config, resolvedPermissions []string) []string { +func mapRoleToPerm(requiredPerm, actualRole string, authConfig Config, resolvedPermissions []string) []string { roleName, roleContextID := SplitPermission(actualRole) perms := authConfig.getPermissionsFromRole(roleName) diff --git a/internal/api/auth/permissions_test.go b/internal/api/authz/permissions_test.go similarity index 87% rename from internal/api/auth/permissions_test.go rename to internal/api/authz/permissions_test.go index d4ea7cfb3d..1109596f59 100644 --- a/internal/api/auth/permissions_test.go +++ b/internal/api/authz/permissions_test.go @@ -1,4 +1,4 @@ -package auth +package authz import ( "context" @@ -15,18 +15,22 @@ type testVerifier struct { grant *Grant } -func (v *testVerifier) VerifyAccessToken(ctx context.Context, token string) (string, string, string, error) { - return "userID", "clientID", "agentID", nil +func (v *testVerifier) VerifyAccessToken(ctx context.Context, token, clientID string) (string, string, error) { + return "userID", "agentID", nil } -func (v *testVerifier) ResolveGrant(ctx context.Context) (*Grant, error) { +func (v *testVerifier) ResolveGrants(ctx context.Context) (*Grant, error) { return v.grant, nil } -func (v *testVerifier) GetProjectIDByClientID(ctx context.Context, clientID string) (string, error) { +func (v *testVerifier) ProjectIDByClientID(ctx context.Context, clientID string) (string, error) { return "", nil } +func (v *testVerifier) VerifierClientID(ctx context.Context, appName string) (string, error) { + return "clientID", nil +} + func equalStringArray(a, b []string) bool { if len(a) != len(b) { return false @@ -42,9 +46,9 @@ func equalStringArray(a, b []string) bool { func Test_GetUserMethodPermissions(t *testing.T) { type args struct { ctx context.Context - verifier TokenVerifier + verifier *TokenVerifier requiredPerm string - authConfig *Config + authConfig Config } tests := []struct { name string @@ -57,16 +61,17 @@ func Test_GetUserMethodPermissions(t *testing.T) { name: "Empty Context", args: args{ ctx: getTestCtx("", ""), - verifier: &testVerifier{grant: &Grant{ - Roles: []string{"ORG_OWNER"}}}, + verifier: Start(&testVerifier{grant: &Grant{ + Roles: []string{"ORG_OWNER"}, + }}), requiredPerm: "project.read", - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "IAM_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, @@ -81,15 +86,15 @@ func Test_GetUserMethodPermissions(t *testing.T) { name: "No Grants", args: args{ ctx: getTestCtx("", ""), - verifier: &testVerifier{grant: &Grant{}}, + verifier: Start(&testVerifier{grant: &Grant{}}), requiredPerm: "project.read", - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "IAM_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, @@ -102,16 +107,17 @@ func Test_GetUserMethodPermissions(t *testing.T) { name: "Get Permissions", args: args{ ctx: getTestCtx("userID", "orgID"), - verifier: &testVerifier{grant: &Grant{ - Roles: []string{"ORG_OWNER"}}}, + verifier: Start(&testVerifier{grant: &Grant{ + Roles: []string{"ORG_OWNER"}, + }}), requiredPerm: "project.read", - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "IAM_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, @@ -144,7 +150,7 @@ func Test_MapGrantsToPermissions(t *testing.T) { type args struct { requiredPerm string grant *Grant - authConfig *Config + authConfig Config } tests := []struct { name string @@ -156,13 +162,13 @@ func Test_MapGrantsToPermissions(t *testing.T) { args: args{ requiredPerm: "project.read", grant: &Grant{Roles: []string{"ORG_OWNER"}}, - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "IAM_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, @@ -176,13 +182,13 @@ func Test_MapGrantsToPermissions(t *testing.T) { args: args{ requiredPerm: "project.write", grant: &Grant{Roles: []string{"ORG_OWNER"}}, - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "IAM_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, @@ -196,13 +202,13 @@ func Test_MapGrantsToPermissions(t *testing.T) { args: args{ requiredPerm: "project.read", grant: &Grant{Roles: []string{"ORG_OWNER", "IAM_OWNER"}}, - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "IAM_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, @@ -216,13 +222,13 @@ func Test_MapGrantsToPermissions(t *testing.T) { args: args{ requiredPerm: "project.read", grant: &Grant{Roles: []string{"ORG_OWNER", "PROJECT_OWNER:1"}}, - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "PROJECT_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, @@ -246,7 +252,7 @@ func Test_MapRoleToPerm(t *testing.T) { type args struct { requiredPerm string actualRole string - authConfig *Config + authConfig Config resolvedPermissions []string } tests := []struct { @@ -259,13 +265,13 @@ func Test_MapRoleToPerm(t *testing.T) { args: args{ requiredPerm: "project.read", actualRole: "ORG_OWNER", - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "IAM_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, @@ -280,13 +286,13 @@ func Test_MapRoleToPerm(t *testing.T) { args: args{ requiredPerm: "project.read", actualRole: "ORG_OWNER", - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "IAM_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, @@ -301,13 +307,13 @@ func Test_MapRoleToPerm(t *testing.T) { args: args{ requiredPerm: "project.read", actualRole: "PROJECT_OWNER:1", - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "PROJECT_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, @@ -322,13 +328,13 @@ func Test_MapRoleToPerm(t *testing.T) { args: args{ requiredPerm: "project.read", actualRole: "PROJECT_OWNER:1", - authConfig: &Config{ + authConfig: Config{ RolePermissionMappings: []RoleMapping{ - RoleMapping{ + { Role: "PROJECT_OWNER", Permissions: []string{"project.read"}, }, - RoleMapping{ + { Role: "ORG_OWNER", Permissions: []string{"org.read", "project.read"}, }, diff --git a/internal/api/authz/token.go b/internal/api/authz/token.go new file mode 100644 index 0000000000..280ab388db --- /dev/null +++ b/internal/api/authz/token.go @@ -0,0 +1,105 @@ +package authz + +import ( + "context" + "strings" + "sync" + + caos_errs "github.com/caos/zitadel/internal/errors" +) + +const ( + BearerPrefix = "Bearer " +) + +type TokenVerifier struct { + authZRepo authZRepo + clients sync.Map + authMethods MethodMapping +} + +type authZRepo interface { + VerifyAccessToken(ctx context.Context, token, clientID string) (userID, agentID string, err error) + VerifierClientID(ctx context.Context, name string) (clientID string, err error) + ResolveGrants(ctx context.Context) (grant *Grant, err error) + ProjectIDByClientID(ctx context.Context, clientID string) (projectID string, err error) +} + +func Start(authZRepo authZRepo) (v *TokenVerifier) { + return &TokenVerifier{authZRepo: authZRepo} +} + +func (v *TokenVerifier) VerifyAccessToken(ctx context.Context, token string, method string) (userID, clientID, agentID string, err error) { + clientID, err = v.clientIDFromMethod(ctx, method) + if err != nil { + return "", "", "", err + } + userID, agentID, err = v.authZRepo.VerifyAccessToken(ctx, token, clientID) + return userID, clientID, agentID, err +} + +type client struct { + id string + name string +} + +func (v *TokenVerifier) RegisterServer(appName, methodPrefix string, mappings MethodMapping) { + v.clients.Store(methodPrefix, &client{name: appName}) + if v.authMethods == nil { + v.authMethods = make(map[string]Option) + } + for method, option := range mappings { + v.authMethods[method] = option + } +} + +func prefixFromMethod(method string) (string, bool) { + parts := strings.Split(method, "/") + if len(parts) < 2 { + return "", false + } + return parts[1], true +} + +func (v *TokenVerifier) clientIDFromMethod(ctx context.Context, method string) (string, error) { + prefix, ok := prefixFromMethod(method) + if !ok { + return "", caos_errs.ThrowPermissionDenied(nil, "AUTHZ-GRD2Q", "Errors.Internal") + } + app, ok := v.clients.Load(prefix) + if !ok { + return "", caos_errs.ThrowPermissionDenied(nil, "AUTHZ-G2qrh", "Errors.Internal") + } + var err error + c := app.(*client) + if c.id != "" { + return c.id, nil + } + c.id, err = v.authZRepo.VerifierClientID(ctx, c.name) + if err != nil { + return "", caos_errs.ThrowPermissionDenied(err, "AUTHZ-ptTIF2", "Errors.Internal") + } + v.clients.Store(prefix, c) + return c.id, nil +} + +func (v *TokenVerifier) ResolveGrant(ctx context.Context) (*Grant, error) { + return v.authZRepo.ResolveGrants(ctx) +} + +func (v *TokenVerifier) GetProjectIDByClientID(ctx context.Context, clientID string) (string, error) { + return v.authZRepo.ProjectIDByClientID(ctx, clientID) +} + +func (v *TokenVerifier) CheckAuthMethod(method string) (Option, bool) { + authOpt, ok := v.authMethods[method] + return authOpt, ok +} + +func verifyAccessToken(ctx context.Context, token string, t *TokenVerifier, method string) (userID, clientID, agentID string, err error) { + parts := strings.Split(token, BearerPrefix) + if len(parts) != 2 { + return "", "", "", caos_errs.ThrowUnauthenticated(nil, "AUTH-7fs1e", "invalid auth header") + } + return t.VerifyAccessToken(ctx, parts[1], method) +} diff --git a/internal/api/auth/token_test.go b/internal/api/authz/token_test.go similarity index 72% rename from internal/api/auth/token_test.go rename to internal/api/authz/token_test.go index 827817b3a4..f4980a501c 100644 --- a/internal/api/auth/token_test.go +++ b/internal/api/authz/token_test.go @@ -1,7 +1,8 @@ -package auth +package authz import ( "context" + "sync" "testing" "github.com/caos/zitadel/internal/errors" @@ -12,7 +13,8 @@ func Test_VerifyAccessToken(t *testing.T) { type args struct { ctx context.Context token string - verifier *testVerifier + verifier *TokenVerifier + method string } tests := []struct { name string @@ -40,13 +42,23 @@ func Test_VerifyAccessToken(t *testing.T) { args: args{ ctx: context.Background(), token: "Bearer AUTH", + verifier: &TokenVerifier{ + authZRepo: &testVerifier{grant: &Grant{}}, + clients: func() sync.Map { + m := sync.Map{} + m.Store("service", &client{name: "name"}) + return m + }(), + authMethods: MethodMapping{"/service/method": Option{Permission: "authenticated"}}, + }, + method: "/service/method", }, wantErr: false, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - _, _, _, err := verifyAccessToken(tt.args.ctx, tt.args.token, tt.args.verifier) + _, _, _, err := verifyAccessToken(tt.args.ctx, tt.args.token, tt.args.verifier, tt.args.method) if tt.wantErr && err == nil { t.Errorf("got wrong result, should get err: actual: %v ", err) } diff --git a/pkg/admin/api/grpc/administrator.go b/internal/api/grpc/admin/administrator.go similarity index 65% rename from pkg/admin/api/grpc/administrator.go rename to internal/api/grpc/admin/administrator.go index b13f9d8294..58fbefaf6c 100644 --- a/pkg/admin/api/grpc/administrator.go +++ b/internal/api/grpc/admin/administrator.go @@ -1,33 +1,36 @@ -package grpc +package admin import ( "context" - view_model "github.com/caos/zitadel/internal/view/model" + "github.com/golang/protobuf/ptypes/empty" + + view_model "github.com/caos/zitadel/internal/view/model" + "github.com/caos/zitadel/pkg/grpc/admin" ) -func (s *Server) GetViews(ctx context.Context, _ *empty.Empty) (_ *Views, err error) { +func (s *Server) GetViews(ctx context.Context, _ *empty.Empty) (_ *admin.Views, err error) { views, err := s.administrator.GetViews(ctx) if err != nil { return nil, err } - return &Views{Views: viewsFromModel(views)}, nil + return &admin.Views{Views: viewsFromModel(views)}, nil } -func (s *Server) ClearView(ctx context.Context, viewID *ViewID) (_ *empty.Empty, err error) { +func (s *Server) ClearView(ctx context.Context, viewID *admin.ViewID) (_ *empty.Empty, err error) { err = s.administrator.ClearView(ctx, viewID.Database, viewID.ViewName) return &empty.Empty{}, err } -func (s *Server) GetFailedEvents(ctx context.Context, _ *empty.Empty) (_ *FailedEvents, err error) { +func (s *Server) GetFailedEvents(ctx context.Context, _ *empty.Empty) (_ *admin.FailedEvents, err error) { failedEvents, err := s.administrator.GetFailedEvents(ctx) if err != nil { return nil, err } - return &FailedEvents{FailedEvents: failedEventsFromModel(failedEvents)}, nil + return &admin.FailedEvents{FailedEvents: failedEventsFromModel(failedEvents)}, nil } -func (s *Server) RemoveFailedEvent(ctx context.Context, failedEventID *FailedEventID) (_ *empty.Empty, err error) { +func (s *Server) RemoveFailedEvent(ctx context.Context, failedEventID *admin.FailedEventID) (_ *empty.Empty, err error) { err = s.administrator.RemoveFailedEvent(ctx, &view_model.FailedEvent{Database: failedEventID.Database, ViewName: failedEventID.ViewName, FailedSequence: failedEventID.FailedSequence}) return &empty.Empty{}, err } diff --git a/pkg/admin/api/grpc/administrator_converter.go b/internal/api/grpc/admin/administrator_converter.go similarity index 65% rename from pkg/admin/api/grpc/administrator_converter.go rename to internal/api/grpc/admin/administrator_converter.go index ca7a0ed2a7..c3cf0c2ae3 100644 --- a/pkg/admin/api/grpc/administrator_converter.go +++ b/internal/api/grpc/admin/administrator_converter.go @@ -1,11 +1,12 @@ -package grpc +package admin import ( view_model "github.com/caos/zitadel/internal/view/model" + "github.com/caos/zitadel/pkg/grpc/admin" ) -func viewsFromModel(views []*view_model.View) []*View { - result := make([]*View, len(views)) +func viewsFromModel(views []*view_model.View) []*admin.View { + result := make([]*admin.View, len(views)) for i, view := range views { result[i] = viewFromModel(view) } @@ -13,8 +14,8 @@ func viewsFromModel(views []*view_model.View) []*View { return result } -func failedEventsFromModel(failedEvents []*view_model.FailedEvent) []*FailedEvent { - result := make([]*FailedEvent, len(failedEvents)) +func failedEventsFromModel(failedEvents []*view_model.FailedEvent) []*admin.FailedEvent { + result := make([]*admin.FailedEvent, len(failedEvents)) for i, view := range failedEvents { result[i] = failedEventFromModel(view) } @@ -22,16 +23,16 @@ func failedEventsFromModel(failedEvents []*view_model.FailedEvent) []*FailedEven return result } -func viewFromModel(view *view_model.View) *View { - return &View{ +func viewFromModel(view *view_model.View) *admin.View { + return &admin.View{ Database: view.Database, ViewName: view.ViewName, Sequence: view.CurrentSequence, } } -func failedEventFromModel(failedEvent *view_model.FailedEvent) *FailedEvent { - return &FailedEvent{ +func failedEventFromModel(failedEvent *view_model.FailedEvent) *admin.FailedEvent { + return &admin.FailedEvent{ Database: failedEvent.Database, ViewName: failedEvent.ViewName, FailedSequence: failedEvent.FailedSequence, diff --git a/pkg/admin/api/grpc/iam_member.go b/internal/api/grpc/admin/iam_member.go similarity index 52% rename from pkg/admin/api/grpc/iam_member.go rename to internal/api/grpc/admin/iam_member.go index 296cb1e484..93cca28349 100644 --- a/pkg/admin/api/grpc/iam_member.go +++ b/internal/api/grpc/admin/iam_member.go @@ -1,16 +1,18 @@ -package grpc +package admin import ( "context" "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/pkg/grpc/admin" ) -func (s *Server) GetIamMemberRoles(ctx context.Context, _ *empty.Empty) (*IamMemberRoles, error) { - return &IamMemberRoles{Roles: s.iam.GetIamMemberRoles()}, nil +func (s *Server) GetIamMemberRoles(ctx context.Context, _ *empty.Empty) (*admin.IamMemberRoles, error) { + return &admin.IamMemberRoles{Roles: s.iam.GetIamMemberRoles()}, nil } -func (s *Server) SearchIamMembers(ctx context.Context, in *IamMemberSearchRequest) (*IamMemberSearchResponse, error) { +func (s *Server) SearchIamMembers(ctx context.Context, in *admin.IamMemberSearchRequest) (*admin.IamMemberSearchResponse, error) { members, err := s.iam.SearchIamMembers(ctx, iamMemberSearchRequestToModel(in)) if err != nil { return nil, err @@ -18,7 +20,7 @@ func (s *Server) SearchIamMembers(ctx context.Context, in *IamMemberSearchReques return iamMemberSearchResponseFromModel(members), nil } -func (s *Server) AddIamMember(ctx context.Context, member *AddIamMemberRequest) (*IamMember, error) { +func (s *Server) AddIamMember(ctx context.Context, member *admin.AddIamMemberRequest) (*admin.IamMember, error) { addedMember, err := s.iam.AddIamMember(ctx, addIamMemberToModel(member)) if err != nil { return nil, err @@ -27,7 +29,7 @@ func (s *Server) AddIamMember(ctx context.Context, member *AddIamMemberRequest) return iamMemberFromModel(addedMember), nil } -func (s *Server) ChangeIamMember(ctx context.Context, member *ChangeIamMemberRequest) (*IamMember, error) { +func (s *Server) ChangeIamMember(ctx context.Context, member *admin.ChangeIamMemberRequest) (*admin.IamMember, error) { changedMember, err := s.iam.ChangeIamMember(ctx, changeIamMemberToModel(member)) if err != nil { return nil, err @@ -35,7 +37,7 @@ func (s *Server) ChangeIamMember(ctx context.Context, member *ChangeIamMemberReq return iamMemberFromModel(changedMember), nil } -func (s *Server) RemoveIamMember(ctx context.Context, member *RemoveIamMemberRequest) (*empty.Empty, error) { +func (s *Server) RemoveIamMember(ctx context.Context, member *admin.RemoveIamMemberRequest) (*empty.Empty, error) { err := s.iam.RemoveIamMember(ctx, member.UserId) return &empty.Empty{}, err } diff --git a/pkg/admin/api/grpc/iam_member_converter.go b/internal/api/grpc/admin/iam_member_converter.go similarity index 63% rename from pkg/admin/api/grpc/iam_member_converter.go rename to internal/api/grpc/admin/iam_member_converter.go index 205af49cfa..b8057c0402 100644 --- a/pkg/admin/api/grpc/iam_member_converter.go +++ b/internal/api/grpc/admin/iam_member_converter.go @@ -1,13 +1,15 @@ -package grpc +package admin import ( "github.com/caos/logging" + "github.com/golang/protobuf/ptypes" + iam_model "github.com/caos/zitadel/internal/iam/model" "github.com/caos/zitadel/internal/model" - "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/pkg/grpc/admin" ) -func addIamMemberToModel(member *AddIamMemberRequest) *iam_model.IamMember { +func addIamMemberToModel(member *admin.AddIamMemberRequest) *iam_model.IamMember { memberModel := &iam_model.IamMember{ UserID: member.UserId, } @@ -16,7 +18,7 @@ func addIamMemberToModel(member *AddIamMemberRequest) *iam_model.IamMember { return memberModel } -func changeIamMemberToModel(member *ChangeIamMemberRequest) *iam_model.IamMember { +func changeIamMemberToModel(member *admin.ChangeIamMemberRequest) *iam_model.IamMember { memberModel := &iam_model.IamMember{ UserID: member.UserId, } @@ -25,14 +27,14 @@ func changeIamMemberToModel(member *ChangeIamMemberRequest) *iam_model.IamMember return memberModel } -func iamMemberFromModel(member *iam_model.IamMember) *IamMember { +func iamMemberFromModel(member *iam_model.IamMember) *admin.IamMember { creationDate, err := ptypes.TimestampProto(member.CreationDate) logging.Log("GRPC-Lsp76").OnError(err).Debug("date parse failed") changeDate, err := ptypes.TimestampProto(member.ChangeDate) logging.Log("GRPC-3fG5s").OnError(err).Debug("date parse failed") - return &IamMember{ + return &admin.IamMember{ UserId: member.UserID, CreationDate: creationDate, ChangeDate: changeDate, @@ -41,7 +43,7 @@ func iamMemberFromModel(member *iam_model.IamMember) *IamMember { } } -func iamMemberSearchRequestToModel(request *IamMemberSearchRequest) *iam_model.IamMemberSearchRequest { +func iamMemberSearchRequestToModel(request *admin.IamMemberSearchRequest) *iam_model.IamMemberSearchRequest { return &iam_model.IamMemberSearchRequest{ Limit: request.Limit, Offset: request.Offset, @@ -49,7 +51,7 @@ func iamMemberSearchRequestToModel(request *IamMemberSearchRequest) *iam_model.I } } -func iamMemberSearchQueriesToModel(queries []*IamMemberSearchQuery) []*iam_model.IamMemberSearchQuery { +func iamMemberSearchQueriesToModel(queries []*admin.IamMemberSearchQuery) []*iam_model.IamMemberSearchQuery { modelQueries := make([]*iam_model.IamMemberSearchQuery, len(queries)) for i, query := range queries { modelQueries[i] = iamMemberSearchQueryToModel(query) @@ -58,7 +60,7 @@ func iamMemberSearchQueriesToModel(queries []*IamMemberSearchQuery) []*iam_model return modelQueries } -func iamMemberSearchQueryToModel(query *IamMemberSearchQuery) *iam_model.IamMemberSearchQuery { +func iamMemberSearchQueryToModel(query *admin.IamMemberSearchQuery) *iam_model.IamMemberSearchQuery { return &iam_model.IamMemberSearchQuery{ Key: iamMemberSearchKeyToModel(query.Key), Method: iamMemberSearchMethodToModel(query.Method), @@ -66,50 +68,50 @@ func iamMemberSearchQueryToModel(query *IamMemberSearchQuery) *iam_model.IamMemb } } -func iamMemberSearchKeyToModel(key IamMemberSearchKey) iam_model.IamMemberSearchKey { +func iamMemberSearchKeyToModel(key admin.IamMemberSearchKey) iam_model.IamMemberSearchKey { switch key { - case IamMemberSearchKey_IAMMEMBERSEARCHKEY_EMAIL: + case admin.IamMemberSearchKey_IAMMEMBERSEARCHKEY_EMAIL: return iam_model.IamMemberSearchKeyEmail - case IamMemberSearchKey_IAMMEMBERSEARCHKEY_FIRST_NAME: + case admin.IamMemberSearchKey_IAMMEMBERSEARCHKEY_FIRST_NAME: return iam_model.IamMemberSearchKeyFirstName - case IamMemberSearchKey_IAMMEMBERSEARCHKEY_LAST_NAME: + case admin.IamMemberSearchKey_IAMMEMBERSEARCHKEY_LAST_NAME: return iam_model.IamMemberSearchKeyLastName - case IamMemberSearchKey_IAMMEMBERSEARCHKEY_USER_ID: + case admin.IamMemberSearchKey_IAMMEMBERSEARCHKEY_USER_ID: return iam_model.IamMemberSearchKeyUserID default: return iam_model.IamMemberSearchKeyUnspecified } } -func iamMemberSearchMethodToModel(key SearchMethod) model.SearchMethod { +func iamMemberSearchMethodToModel(key admin.SearchMethod) model.SearchMethod { switch key { - case SearchMethod_SEARCHMETHOD_CONTAINS: + case admin.SearchMethod_SEARCHMETHOD_CONTAINS: return model.SearchMethodContains - case SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE: + case admin.SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE: return model.SearchMethodContainsIgnoreCase - case SearchMethod_SEARCHMETHOD_EQUALS: + case admin.SearchMethod_SEARCHMETHOD_EQUALS: return model.SearchMethodEquals - case SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE: + case admin.SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE: return model.SearchMethodEqualsIgnoreCase - case SearchMethod_SEARCHMETHOD_STARTS_WITH: + case admin.SearchMethod_SEARCHMETHOD_STARTS_WITH: return model.SearchMethodStartsWith - case SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE: + case admin.SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE: return model.SearchMethodStartsWithIgnoreCase default: return -1 } } -func iamMemberSearchResponseFromModel(resp *iam_model.IamMemberSearchResponse) *IamMemberSearchResponse { - return &IamMemberSearchResponse{ +func iamMemberSearchResponseFromModel(resp *iam_model.IamMemberSearchResponse) *admin.IamMemberSearchResponse { + return &admin.IamMemberSearchResponse{ Limit: resp.Limit, Offset: resp.Offset, TotalResult: resp.TotalResult, Result: iamMembersFromView(resp.Result), } } -func iamMembersFromView(viewMembers []*iam_model.IamMemberView) []*IamMemberView { - members := make([]*IamMemberView, len(viewMembers)) +func iamMembersFromView(viewMembers []*iam_model.IamMemberView) []*admin.IamMemberView { + members := make([]*admin.IamMemberView, len(viewMembers)) for i, member := range viewMembers { members[i] = iamMemberFromView(member) @@ -118,13 +120,13 @@ func iamMembersFromView(viewMembers []*iam_model.IamMemberView) []*IamMemberView return members } -func iamMemberFromView(member *iam_model.IamMemberView) *IamMemberView { +func iamMemberFromView(member *iam_model.IamMemberView) *admin.IamMemberView { changeDate, err := ptypes.TimestampProto(member.ChangeDate) logging.Log("GRPC-Lso9c").OnError(err).Debug("unable to parse changedate") creationDate, err := ptypes.TimestampProto(member.CreationDate) logging.Log("GRPC-6szE").OnError(err).Debug("unable to parse creation date") - return &IamMemberView{ + return &admin.IamMemberView{ ChangeDate: changeDate, CreationDate: creationDate, Roles: member.Roles, diff --git a/pkg/admin/api/grpc/org.go b/internal/api/grpc/admin/org.go similarity index 52% rename from pkg/admin/api/grpc/org.go rename to internal/api/grpc/admin/org.go index 5480e17c14..90ff74fe59 100644 --- a/pkg/admin/api/grpc/org.go +++ b/internal/api/grpc/admin/org.go @@ -1,11 +1,14 @@ -package grpc +package admin import ( "context" + "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/pkg/grpc/admin" ) -func (s *Server) GetOrgByID(ctx context.Context, orgID *OrgID) (_ *Org, err error) { +func (s *Server) GetOrgByID(ctx context.Context, orgID *admin.OrgID) (_ *admin.Org, err error) { org, err := s.org.OrgByID(ctx, orgID.Id) if err != nil { return nil, err @@ -13,12 +16,12 @@ func (s *Server) GetOrgByID(ctx context.Context, orgID *OrgID) (_ *Org, err erro return orgFromModel(org), nil } -func (s *Server) SearchOrgs(ctx context.Context, request *OrgSearchRequest) (_ *OrgSearchResponse, err error) { +func (s *Server) SearchOrgs(ctx context.Context, request *admin.OrgSearchRequest) (_ *admin.OrgSearchResponse, err error) { result, err := s.org.SearchOrgs(ctx, orgSearchRequestToModel(request)) if err != nil { return nil, err } - return &OrgSearchResponse{ + return &admin.OrgSearchResponse{ Result: orgViewsFromModel(result.Result), Limit: request.Limit, Offset: request.Offset, @@ -26,13 +29,13 @@ func (s *Server) SearchOrgs(ctx context.Context, request *OrgSearchRequest) (_ * }, nil } -func (s *Server) IsOrgUnique(ctx context.Context, request *UniqueOrgRequest) (org *UniqueOrgResponse, err error) { +func (s *Server) IsOrgUnique(ctx context.Context, request *admin.UniqueOrgRequest) (org *admin.UniqueOrgResponse, err error) { isUnique, err := s.org.IsOrgUnique(ctx, request.Name, request.Domain) - return &UniqueOrgResponse{IsUnique: isUnique}, err + return &admin.UniqueOrgResponse{IsUnique: isUnique}, err } -func (s *Server) SetUpOrg(ctx context.Context, orgSetUp *OrgSetUpRequest) (_ *OrgSetUpResponse, err error) { +func (s *Server) SetUpOrg(ctx context.Context, orgSetUp *admin.OrgSetUpRequest) (_ *admin.OrgSetUpResponse, err error) { setUp, err := s.org.SetUpOrg(ctx, setUpRequestToModel(orgSetUp)) if err != nil { return nil, err @@ -40,7 +43,7 @@ func (s *Server) SetUpOrg(ctx context.Context, orgSetUp *OrgSetUpRequest) (_ *Or return setUpOrgResponseFromModel(setUp), err } -func (s *Server) GetOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID) (_ *OrgIamPolicy, err error) { +func (s *Server) GetOrgIamPolicy(ctx context.Context, in *admin.OrgIamPolicyID) (_ *admin.OrgIamPolicy, err error) { policy, err := s.org.GetOrgIamPolicyByID(ctx, in.OrgId) if err != nil { return nil, err @@ -48,7 +51,7 @@ func (s *Server) GetOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID) (_ *Or return orgIamPolicyFromModel(policy), err } -func (s *Server) CreateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest) (_ *OrgIamPolicy, err error) { +func (s *Server) CreateOrgIamPolicy(ctx context.Context, in *admin.OrgIamPolicyRequest) (_ *admin.OrgIamPolicy, err error) { policy, err := s.org.CreateOrgIamPolicy(ctx, orgIamPolicyRequestToModel(in)) if err != nil { return nil, err @@ -56,7 +59,7 @@ func (s *Server) CreateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest return orgIamPolicyFromModel(policy), err } -func (s *Server) UpdateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest) (_ *OrgIamPolicy, err error) { +func (s *Server) UpdateOrgIamPolicy(ctx context.Context, in *admin.OrgIamPolicyRequest) (_ *admin.OrgIamPolicy, err error) { policy, err := s.org.ChangeOrgIamPolicy(ctx, orgIamPolicyRequestToModel(in)) if err != nil { return nil, err @@ -64,7 +67,7 @@ func (s *Server) UpdateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest return orgIamPolicyFromModel(policy), err } -func (s *Server) DeleteOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID) (_ *empty.Empty, err error) { +func (s *Server) DeleteOrgIamPolicy(ctx context.Context, in *admin.OrgIamPolicyID) (_ *empty.Empty, err error) { err = s.org.RemoveOrgIamPolicy(ctx, in.OrgId) return &empty.Empty{}, err } diff --git a/pkg/admin/api/grpc/org_converter.go b/internal/api/grpc/admin/org_converter.go similarity index 71% rename from pkg/admin/api/grpc/org_converter.go rename to internal/api/grpc/admin/org_converter.go index 44b161297f..cd385ba92f 100644 --- a/pkg/admin/api/grpc/org_converter.go +++ b/internal/api/grpc/admin/org_converter.go @@ -1,24 +1,26 @@ -package grpc +package admin import ( "github.com/caos/logging" + "github.com/golang/protobuf/ptypes" + "golang.org/x/text/language" + admin_model "github.com/caos/zitadel/internal/admin/model" "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/model" org_model "github.com/caos/zitadel/internal/org/model" usr_model "github.com/caos/zitadel/internal/user/model" - "github.com/golang/protobuf/ptypes" - "golang.org/x/text/language" + "github.com/caos/zitadel/pkg/grpc/admin" ) -func setUpRequestToModel(setUp *OrgSetUpRequest) *admin_model.SetupOrg { +func setUpRequestToModel(setUp *admin.OrgSetUpRequest) *admin_model.SetupOrg { return &admin_model.SetupOrg{ Org: orgCreateRequestToModel(setUp.Org), User: userCreateRequestToModel(setUp.User), } } -func orgCreateRequestToModel(org *CreateOrgRequest) *org_model.Org { +func orgCreateRequestToModel(org *admin.CreateOrgRequest) *org_model.Org { o := &org_model.Org{ Domains: []*org_model.OrgDomain{}, Name: org.Name, @@ -30,7 +32,7 @@ func orgCreateRequestToModel(org *CreateOrgRequest) *org_model.Org { return o } -func userCreateRequestToModel(user *CreateUserRequest) *usr_model.User { +func userCreateRequestToModel(user *admin.CreateUserRequest) *usr_model.User { preferredLanguage, err := language.Parse(user.PreferredLanguage) logging.Log("GRPC-30hwz").OnError(err).Debug("unable to parse language") result := &usr_model.User{ @@ -63,15 +65,15 @@ func userCreateRequestToModel(user *CreateUserRequest) *usr_model.User { return result } -func setUpOrgResponseFromModel(setUp *admin_model.SetupOrg) *OrgSetUpResponse { - return &OrgSetUpResponse{ +func setUpOrgResponseFromModel(setUp *admin_model.SetupOrg) *admin.OrgSetUpResponse { + return &admin.OrgSetUpResponse{ Org: orgFromModel(setUp.Org), User: userFromModel(setUp.User), } } -func orgViewsFromModel(orgs []*org_model.OrgView) []*Org { - result := make([]*Org, len(orgs)) +func orgViewsFromModel(orgs []*org_model.OrgView) []*admin.Org { + result := make([]*admin.Org, len(orgs)) for i, org := range orgs { result[i] = orgViewFromModel(org) } @@ -79,14 +81,14 @@ func orgViewsFromModel(orgs []*org_model.OrgView) []*Org { return result } -func orgFromModel(org *org_model.Org) *Org { +func orgFromModel(org *org_model.Org) *admin.Org { creationDate, err := ptypes.TimestampProto(org.CreationDate) logging.Log("GRPC-GTHsZ").OnError(err).Debug("unable to get timestamp from time") changeDate, err := ptypes.TimestampProto(org.ChangeDate) logging.Log("GRPC-dVnoj").OnError(err).Debug("unable to get timestamp from time") - return &Org{ + return &admin.Org{ ChangeDate: changeDate, CreationDate: creationDate, Id: org.AggregateID, @@ -95,14 +97,14 @@ func orgFromModel(org *org_model.Org) *Org { } } -func orgViewFromModel(org *org_model.OrgView) *Org { +func orgViewFromModel(org *org_model.OrgView) *admin.Org { creationDate, err := ptypes.TimestampProto(org.CreationDate) logging.Log("GRPC-GTHsZ").OnError(err).Debug("unable to get timestamp from time") changeDate, err := ptypes.TimestampProto(org.ChangeDate) logging.Log("GRPC-dVnoj").OnError(err).Debug("unable to get timestamp from time") - return &Org{ + return &admin.Org{ ChangeDate: changeDate, CreationDate: creationDate, Id: org.ID, @@ -111,14 +113,14 @@ func orgViewFromModel(org *org_model.OrgView) *Org { } } -func userFromModel(user *usr_model.User) *User { +func userFromModel(user *usr_model.User) *admin.User { creationDate, err := ptypes.TimestampProto(user.CreationDate) logging.Log("GRPC-8duwe").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(user.ChangeDate) logging.Log("GRPC-ckoe3d").OnError(err).Debug("unable to parse timestamp") - converted := &User{ + converted := &admin.User{ Id: user.AggregateID, State: userStateFromModel(user.State), CreationDate: creationDate, @@ -150,57 +152,57 @@ func userFromModel(user *usr_model.User) *User { return converted } -func orgStateFromModel(state org_model.OrgState) OrgState { +func orgStateFromModel(state org_model.OrgState) admin.OrgState { switch state { case org_model.OrgStateActive: - return OrgState_ORGSTATE_ACTIVE + return admin.OrgState_ORGSTATE_ACTIVE case org_model.OrgStateInactive: - return OrgState_ORGSTATE_INACTIVE + return admin.OrgState_ORGSTATE_INACTIVE default: - return OrgState_ORGSTATE_UNSPECIFIED + return admin.OrgState_ORGSTATE_UNSPECIFIED } } -func genderFromModel(gender usr_model.Gender) Gender { +func genderFromModel(gender usr_model.Gender) admin.Gender { switch gender { case usr_model.GenderFemale: - return Gender_GENDER_FEMALE + return admin.Gender_GENDER_FEMALE case usr_model.GenderMale: - return Gender_GENDER_MALE + return admin.Gender_GENDER_MALE case usr_model.GenderDiverse: - return Gender_GENDER_DIVERSE + return admin.Gender_GENDER_DIVERSE default: - return Gender_GENDER_UNSPECIFIED + return admin.Gender_GENDER_UNSPECIFIED } } -func genderToModel(gender Gender) usr_model.Gender { +func genderToModel(gender admin.Gender) usr_model.Gender { switch gender { - case Gender_GENDER_FEMALE: + case admin.Gender_GENDER_FEMALE: return usr_model.GenderFemale - case Gender_GENDER_MALE: + case admin.Gender_GENDER_MALE: return usr_model.GenderMale - case Gender_GENDER_DIVERSE: + case admin.Gender_GENDER_DIVERSE: return usr_model.GenderDiverse default: return usr_model.GenderUnspecified } } -func userStateFromModel(state usr_model.UserState) UserState { +func userStateFromModel(state usr_model.UserState) admin.UserState { switch state { case usr_model.UserStateActive: - return UserState_USERSTATE_ACTIVE + return admin.UserState_USERSTATE_ACTIVE case usr_model.UserStateInactive: - return UserState_USERSTATE_INACTIVE + return admin.UserState_USERSTATE_INACTIVE case usr_model.UserStateLocked: - return UserState_USERSTATE_LOCKED + return admin.UserState_USERSTATE_LOCKED default: - return UserState_USERSTATE_UNSPECIFIED + return admin.UserState_USERSTATE_UNSPECIFIED } } -func orgSearchRequestToModel(req *OrgSearchRequest) *org_model.OrgSearchRequest { +func orgSearchRequestToModel(req *admin.OrgSearchRequest) *org_model.OrgSearchRequest { return &org_model.OrgSearchRequest{ Limit: req.Limit, Asc: req.Asc, @@ -210,7 +212,7 @@ func orgSearchRequestToModel(req *OrgSearchRequest) *org_model.OrgSearchRequest } } -func orgQueriesToModel(queries []*OrgSearchQuery) []*org_model.OrgSearchQuery { +func orgQueriesToModel(queries []*admin.OrgSearchQuery) []*org_model.OrgSearchQuery { modelQueries := make([]*org_model.OrgSearchQuery, len(queries)) for i, query := range queries { @@ -220,7 +222,7 @@ func orgQueriesToModel(queries []*OrgSearchQuery) []*org_model.OrgSearchQuery { return modelQueries } -func orgQueryToModel(query *OrgSearchQuery) *org_model.OrgSearchQuery { +func orgQueryToModel(query *admin.OrgSearchQuery) *org_model.OrgSearchQuery { return &org_model.OrgSearchQuery{ Key: orgQueryKeyToModel(query.Key), Value: query.Value, @@ -228,40 +230,40 @@ func orgQueryToModel(query *OrgSearchQuery) *org_model.OrgSearchQuery { } } -func orgQueryKeyToModel(key OrgSearchKey) org_model.OrgSearchKey { +func orgQueryKeyToModel(key admin.OrgSearchKey) org_model.OrgSearchKey { switch key { - case OrgSearchKey_ORGSEARCHKEY_DOMAIN: + case admin.OrgSearchKey_ORGSEARCHKEY_DOMAIN: return org_model.OrgSearchKeyOrgDomain - case OrgSearchKey_ORGSEARCHKEY_ORG_NAME: + case admin.OrgSearchKey_ORGSEARCHKEY_ORG_NAME: return org_model.OrgSearchKeyOrgName - case OrgSearchKey_ORGSEARCHKEY_STATE: + case admin.OrgSearchKey_ORGSEARCHKEY_STATE: return org_model.OrgSearchKeyState default: return org_model.OrgSearchKeyUnspecified } } -func orgQueryMethodToModel(method OrgSearchMethod) model.SearchMethod { +func orgQueryMethodToModel(method admin.OrgSearchMethod) model.SearchMethod { switch method { - case OrgSearchMethod_ORGSEARCHMETHOD_CONTAINS: + case admin.OrgSearchMethod_ORGSEARCHMETHOD_CONTAINS: return model.SearchMethodContains - case OrgSearchMethod_ORGSEARCHMETHOD_EQUALS: + case admin.OrgSearchMethod_ORGSEARCHMETHOD_EQUALS: return model.SearchMethodEquals - case OrgSearchMethod_ORGSEARCHMETHOD_STARTS_WITH: + case admin.OrgSearchMethod_ORGSEARCHMETHOD_STARTS_WITH: return model.SearchMethodStartsWith default: return 0 } } -func orgIamPolicyFromModel(policy *org_model.OrgIamPolicy) *OrgIamPolicy { +func orgIamPolicyFromModel(policy *org_model.OrgIamPolicy) *admin.OrgIamPolicy { creationDate, err := ptypes.TimestampProto(policy.CreationDate) logging.Log("GRPC-ush36").OnError(err).Debug("unable to get timestamp from time") changeDate, err := ptypes.TimestampProto(policy.ChangeDate) logging.Log("GRPC-Ps9fW").OnError(err).Debug("unable to get timestamp from time") - return &OrgIamPolicy{ + return &admin.OrgIamPolicy{ OrgId: policy.AggregateID, Description: policy.Description, UserLoginMustBeDomain: policy.UserLoginMustBeDomain, @@ -271,7 +273,7 @@ func orgIamPolicyFromModel(policy *org_model.OrgIamPolicy) *OrgIamPolicy { } } -func orgIamPolicyRequestToModel(policy *OrgIamPolicyRequest) *org_model.OrgIamPolicy { +func orgIamPolicyRequestToModel(policy *admin.OrgIamPolicyRequest) *org_model.OrgIamPolicy { return &org_model.OrgIamPolicy{ ObjectRoot: models.ObjectRoot{ AggregateID: policy.OrgId, diff --git a/pkg/admin/api/grpc/probes.go b/internal/api/grpc/admin/probes.go similarity index 97% rename from pkg/admin/api/grpc/probes.go rename to internal/api/grpc/admin/probes.go index 9758d82515..91214a5884 100644 --- a/pkg/admin/api/grpc/probes.go +++ b/internal/api/grpc/admin/probes.go @@ -1,11 +1,12 @@ -package grpc +package admin import ( "context" - "github.com/caos/zitadel/internal/errors" "github.com/golang/protobuf/ptypes/empty" pb_struct "github.com/golang/protobuf/ptypes/struct" + + "github.com/caos/zitadel/internal/errors" ) func (s *Server) Healthz(_ context.Context, e *empty.Empty) (*empty.Empty, error) { diff --git a/internal/api/grpc/admin/server.go b/internal/api/grpc/admin/server.go new file mode 100644 index 0000000000..126989c38f --- /dev/null +++ b/internal/api/grpc/admin/server.go @@ -0,0 +1,61 @@ +package admin + +import ( + "google.golang.org/grpc" + + "github.com/caos/zitadel/internal/admin/repository" + "github.com/caos/zitadel/internal/admin/repository/eventsourcing" + "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/internal/api/grpc/server" + "github.com/caos/zitadel/pkg/grpc/admin" +) + +const ( + adminName = "Admin-API" +) + +var _ admin.AdminServiceServer = (*Server)(nil) + +type Server struct { + org repository.OrgRepository + iam repository.IamRepository + administrator repository.AdministratorRepository + repo repository.Repository +} + +type Config struct { + Repository eventsourcing.Config +} + +func CreateServer(repo repository.Repository) *Server { + return &Server{ + org: repo, + iam: repo, + administrator: repo, + repo: repo, + } +} + +func (s *Server) RegisterServer(grpcServer *grpc.Server) { + admin.RegisterAdminServiceServer(grpcServer, s) +} + +func (s *Server) AppName() string { + return adminName +} + +func (s *Server) MethodPrefix() string { + return admin.AdminService_MethodPrefix +} + +func (s *Server) AuthMethods() authz.MethodMapping { + return admin.AdminService_AuthMethods +} + +func (s *Server) RegisterGateway() server.GatewayFunc { + return admin.RegisterAdminServiceHandlerFromEndpoint +} + +func (s *Server) GatewayPathPrefix() string { + return "/admin/v1" +} diff --git a/pkg/auth/api/grpc/gateway.go b/internal/api/grpc/auth/gateway.go similarity index 90% rename from pkg/auth/api/grpc/gateway.go rename to internal/api/grpc/auth/gateway.go index 3b63cdb2d3..00681580cb 100644 --- a/pkg/auth/api/grpc/gateway.go +++ b/internal/api/grpc/auth/gateway.go @@ -1,4 +1,4 @@ -package grpc +package auth import ( "strings" @@ -7,6 +7,7 @@ import ( grpc_util "github.com/caos/zitadel/internal/api/grpc" "github.com/caos/zitadel/internal/api/grpc/server" + "github.com/caos/zitadel/pkg/grpc/auth" ) type Gateway struct { @@ -24,7 +25,7 @@ func StartGateway(conf grpc_util.GatewayConfig) *Gateway { } func (gw *Gateway) Gateway() server.GatewayFunc { - return RegisterAuthServiceHandlerFromEndpoint + return auth.RegisterAuthServiceHandlerFromEndpoint } func (gw *Gateway) GRPCEndpoint() string { diff --git a/pkg/auth/api/grpc/policy_complexity_converter.go b/internal/api/grpc/auth/policy_complexity_converter.go similarity index 85% rename from pkg/auth/api/grpc/policy_complexity_converter.go rename to internal/api/grpc/auth/policy_complexity_converter.go index bbe097d230..60881e0de5 100644 --- a/pkg/auth/api/grpc/policy_complexity_converter.go +++ b/internal/api/grpc/auth/policy_complexity_converter.go @@ -1,19 +1,21 @@ -package grpc +package auth import ( "github.com/caos/logging" - "github.com/caos/zitadel/internal/policy/model" "github.com/golang/protobuf/ptypes" + + "github.com/caos/zitadel/internal/policy/model" + "github.com/caos/zitadel/pkg/grpc/auth" ) -func passwordComplexityPolicyFromModel(policy *model.PasswordComplexityPolicy) *PasswordComplexityPolicy { +func passwordComplexityPolicyFromModel(policy *model.PasswordComplexityPolicy) *auth.PasswordComplexityPolicy { creationDate, err := ptypes.TimestampProto(policy.CreationDate) logging.Log("GRPC-Lsi3d").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(policy.ChangeDate) logging.Log("GRPC-P0wr4").OnError(err).Debug("unable to parse timestamp") - return &PasswordComplexityPolicy{ + return &auth.PasswordComplexityPolicy{ Id: policy.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, diff --git a/pkg/auth/api/grpc/probes.go b/internal/api/grpc/auth/probes.go similarity index 97% rename from pkg/auth/api/grpc/probes.go rename to internal/api/grpc/auth/probes.go index c360baf3d9..a98afa6c1a 100644 --- a/pkg/auth/api/grpc/probes.go +++ b/internal/api/grpc/auth/probes.go @@ -1,10 +1,12 @@ -package grpc +package auth import ( "context" - "github.com/caos/zitadel/internal/errors" + "github.com/golang/protobuf/ptypes/empty" pb_struct "github.com/golang/protobuf/ptypes/struct" + + "github.com/caos/zitadel/internal/errors" ) func (s *Server) Healthz(_ context.Context, e *empty.Empty) (*empty.Empty, error) { diff --git a/internal/api/grpc/auth/search_converter.go b/internal/api/grpc/auth/search_converter.go new file mode 100644 index 0000000000..3f6c9fab76 --- /dev/null +++ b/internal/api/grpc/auth/search_converter.go @@ -0,0 +1,25 @@ +package auth + +import ( + "github.com/caos/zitadel/internal/model" + "github.com/caos/zitadel/pkg/grpc/auth" +) + +func searchMethodToModel(method auth.SearchMethod) model.SearchMethod { + switch method { + case auth.SearchMethod_SEARCHMETHOD_EQUALS: + return model.SearchMethodEquals + case auth.SearchMethod_SEARCHMETHOD_CONTAINS: + return model.SearchMethodContains + case auth.SearchMethod_SEARCHMETHOD_STARTS_WITH: + return model.SearchMethodStartsWith + case auth.SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE: + return model.SearchMethodEqualsIgnoreCase + case auth.SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE: + return model.SearchMethodContainsIgnoreCase + case auth.SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE: + return model.SearchMethodStartsWithIgnoreCase + default: + return model.SearchMethodEquals + } +} diff --git a/internal/api/grpc/auth/server.go b/internal/api/grpc/auth/server.go new file mode 100644 index 0000000000..bb224cf9d5 --- /dev/null +++ b/internal/api/grpc/auth/server.go @@ -0,0 +1,55 @@ +package auth + +import ( + "google.golang.org/grpc" + + "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/internal/api/grpc/server" + "github.com/caos/zitadel/internal/auth/repository" + "github.com/caos/zitadel/internal/auth/repository/eventsourcing" + "github.com/caos/zitadel/pkg/grpc/auth" +) + +var _ auth.AuthServiceServer = (*Server)(nil) + +const ( + authName = "Auth-API" +) + +type Server struct { + repo repository.Repository +} + +type Config struct { + Repository eventsourcing.Config +} + +func CreateServer(authRepo repository.Repository) *Server { + return &Server{ + repo: authRepo, + } +} + +func (s *Server) RegisterServer(grpcServer *grpc.Server) { + auth.RegisterAuthServiceServer(grpcServer, s) +} + +func (s *Server) AppName() string { + return authName +} + +func (s *Server) MethodPrefix() string { + return auth.AuthService_MethodPrefix +} + +func (s *Server) AuthMethods() authz.MethodMapping { + return auth.AuthService_AuthMethods +} + +func (s *Server) RegisterGateway() server.GatewayFunc { + return auth.RegisterAuthServiceHandlerFromEndpoint +} + +func (s *Server) GatewayPathPrefix() string { + return "/auth/v1" +} diff --git a/pkg/auth/api/grpc/user.go b/internal/api/grpc/auth/user.go similarity index 80% rename from pkg/auth/api/grpc/user.go rename to internal/api/grpc/auth/user.go index d247b11bc5..ec3c6fe2c4 100644 --- a/pkg/auth/api/grpc/user.go +++ b/internal/api/grpc/auth/user.go @@ -1,12 +1,14 @@ -package grpc +package auth import ( "context" "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/pkg/grpc/auth" ) -func (s *Server) GetMyUser(ctx context.Context, _ *empty.Empty) (*UserView, error) { +func (s *Server) GetMyUser(ctx context.Context, _ *empty.Empty) (*auth.UserView, error) { user, err := s.repo.MyUser(ctx) if err != nil { return nil, err @@ -14,7 +16,7 @@ func (s *Server) GetMyUser(ctx context.Context, _ *empty.Empty) (*UserView, erro return userViewFromModel(user), nil } -func (s *Server) GetMyUserProfile(ctx context.Context, _ *empty.Empty) (*UserProfileView, error) { +func (s *Server) GetMyUserProfile(ctx context.Context, _ *empty.Empty) (*auth.UserProfileView, error) { profile, err := s.repo.MyProfile(ctx) if err != nil { return nil, err @@ -22,7 +24,7 @@ func (s *Server) GetMyUserProfile(ctx context.Context, _ *empty.Empty) (*UserPro return profileViewFromModel(profile), nil } -func (s *Server) GetMyUserEmail(ctx context.Context, _ *empty.Empty) (*UserEmailView, error) { +func (s *Server) GetMyUserEmail(ctx context.Context, _ *empty.Empty) (*auth.UserEmailView, error) { email, err := s.repo.MyEmail(ctx) if err != nil { return nil, err @@ -30,7 +32,7 @@ func (s *Server) GetMyUserEmail(ctx context.Context, _ *empty.Empty) (*UserEmail return emailViewFromModel(email), nil } -func (s *Server) GetMyUserPhone(ctx context.Context, _ *empty.Empty) (*UserPhoneView, error) { +func (s *Server) GetMyUserPhone(ctx context.Context, _ *empty.Empty) (*auth.UserPhoneView, error) { phone, err := s.repo.MyPhone(ctx) if err != nil { return nil, err @@ -42,7 +44,8 @@ func (s *Server) RemoveMyUserPhone(ctx context.Context, _ *empty.Empty) (*empty. err := s.repo.RemoveMyPhone(ctx) return &empty.Empty{}, err } -func (s *Server) GetMyUserAddress(ctx context.Context, _ *empty.Empty) (*UserAddressView, error) { + +func (s *Server) GetMyUserAddress(ctx context.Context, _ *empty.Empty) (*auth.UserAddressView, error) { address, err := s.repo.MyAddress(ctx) if err != nil { return nil, err @@ -50,15 +53,15 @@ func (s *Server) GetMyUserAddress(ctx context.Context, _ *empty.Empty) (*UserAdd return addressViewFromModel(address), nil } -func (s *Server) GetMyMfas(ctx context.Context, _ *empty.Empty) (*MultiFactors, error) { +func (s *Server) GetMyMfas(ctx context.Context, _ *empty.Empty) (*auth.MultiFactors, error) { mfas, err := s.repo.MyUserMfas(ctx) if err != nil { return nil, err } - return &MultiFactors{Mfas: mfasFromModel(mfas)}, nil + return &auth.MultiFactors{Mfas: mfasFromModel(mfas)}, nil } -func (s *Server) UpdateMyUserProfile(ctx context.Context, request *UpdateUserProfileRequest) (*UserProfile, error) { +func (s *Server) UpdateMyUserProfile(ctx context.Context, request *auth.UpdateUserProfileRequest) (*auth.UserProfile, error) { profile, err := s.repo.ChangeMyProfile(ctx, updateProfileToModel(ctx, request)) if err != nil { return nil, err @@ -66,7 +69,7 @@ func (s *Server) UpdateMyUserProfile(ctx context.Context, request *UpdateUserPro return profileFromModel(profile), nil } -func (s *Server) ChangeMyUserEmail(ctx context.Context, request *UpdateUserEmailRequest) (*UserEmail, error) { +func (s *Server) ChangeMyUserEmail(ctx context.Context, request *auth.UpdateUserEmailRequest) (*auth.UserEmail, error) { email, err := s.repo.ChangeMyEmail(ctx, updateEmailToModel(ctx, request)) if err != nil { return nil, err @@ -74,7 +77,7 @@ func (s *Server) ChangeMyUserEmail(ctx context.Context, request *UpdateUserEmail return emailFromModel(email), nil } -func (s *Server) VerifyMyUserEmail(ctx context.Context, request *VerifyMyUserEmailRequest) (*empty.Empty, error) { +func (s *Server) VerifyMyUserEmail(ctx context.Context, request *auth.VerifyMyUserEmailRequest) (*empty.Empty, error) { err := s.repo.VerifyMyEmail(ctx, request.Code) return &empty.Empty{}, err } @@ -84,7 +87,7 @@ func (s *Server) ResendMyEmailVerificationMail(ctx context.Context, _ *empty.Emp return &empty.Empty{}, err } -func (s *Server) ChangeMyUserPhone(ctx context.Context, request *UpdateUserPhoneRequest) (*UserPhone, error) { +func (s *Server) ChangeMyUserPhone(ctx context.Context, request *auth.UpdateUserPhoneRequest) (*auth.UserPhone, error) { phone, err := s.repo.ChangeMyPhone(ctx, updatePhoneToModel(ctx, request)) if err != nil { return nil, err @@ -92,7 +95,7 @@ func (s *Server) ChangeMyUserPhone(ctx context.Context, request *UpdateUserPhone return phoneFromModel(phone), nil } -func (s *Server) VerifyMyUserPhone(ctx context.Context, request *VerifyUserPhoneRequest) (*empty.Empty, error) { +func (s *Server) VerifyMyUserPhone(ctx context.Context, request *auth.VerifyUserPhoneRequest) (*empty.Empty, error) { err := s.repo.VerifyMyPhone(ctx, request.Code) return &empty.Empty{}, err } @@ -102,7 +105,7 @@ func (s *Server) ResendMyPhoneVerificationCode(ctx context.Context, _ *empty.Emp return &empty.Empty{}, err } -func (s *Server) UpdateMyUserAddress(ctx context.Context, request *UpdateUserAddressRequest) (*UserAddress, error) { +func (s *Server) UpdateMyUserAddress(ctx context.Context, request *auth.UpdateUserAddressRequest) (*auth.UserAddress, error) { address, err := s.repo.ChangeMyAddress(ctx, updateAddressToModel(ctx, request)) if err != nil { return nil, err @@ -110,12 +113,12 @@ func (s *Server) UpdateMyUserAddress(ctx context.Context, request *UpdateUserAdd return addressFromModel(address), nil } -func (s *Server) ChangeMyPassword(ctx context.Context, request *PasswordChange) (*empty.Empty, error) { +func (s *Server) ChangeMyPassword(ctx context.Context, request *auth.PasswordChange) (*empty.Empty, error) { err := s.repo.ChangeMyPassword(ctx, request.OldPassword, request.NewPassword) return &empty.Empty{}, err } -func (s *Server) GetMyPasswordComplexityPolicy(ctx context.Context, _ *empty.Empty) (*PasswordComplexityPolicy, error) { +func (s *Server) GetMyPasswordComplexityPolicy(ctx context.Context, _ *empty.Empty) (*auth.PasswordComplexityPolicy, error) { policy, err := s.repo.GetMyPasswordComplexityPolicy(ctx) if err != nil { return nil, err @@ -123,7 +126,7 @@ func (s *Server) GetMyPasswordComplexityPolicy(ctx context.Context, _ *empty.Emp return passwordComplexityPolicyFromModel(policy), nil } -func (s *Server) AddMfaOTP(ctx context.Context, _ *empty.Empty) (_ *MfaOtpResponse, err error) { +func (s *Server) AddMfaOTP(ctx context.Context, _ *empty.Empty) (_ *auth.MfaOtpResponse, err error) { otp, err := s.repo.AddMyMfaOTP(ctx) if err != nil { return nil, err @@ -131,7 +134,7 @@ func (s *Server) AddMfaOTP(ctx context.Context, _ *empty.Empty) (_ *MfaOtpRespon return otpFromModel(otp), nil } -func (s *Server) VerifyMfaOTP(ctx context.Context, request *VerifyMfaOtp) (*empty.Empty, error) { +func (s *Server) VerifyMfaOTP(ctx context.Context, request *auth.VerifyMfaOtp) (*empty.Empty, error) { err := s.repo.VerifyMyMfaOTPSetup(ctx, request.Code) return &empty.Empty{}, err } @@ -141,7 +144,7 @@ func (s *Server) RemoveMfaOTP(ctx context.Context, _ *empty.Empty) (_ *empty.Emp return &empty.Empty{}, err } -func (s *Server) GetMyUserChanges(ctx context.Context, request *ChangesRequest) (*Changes, error) { +func (s *Server) GetMyUserChanges(ctx context.Context, request *auth.ChangesRequest) (*auth.Changes, error) { changes, err := s.repo.MyUserChanges(ctx, request.SequenceOffset, request.Limit, request.Asc) if err != nil { return nil, err diff --git a/pkg/auth/api/grpc/user_converter.go b/internal/api/grpc/auth/user_converter.go similarity index 73% rename from pkg/auth/api/grpc/user_converter.go rename to internal/api/grpc/auth/user_converter.go index 63ff746aa2..5caa9ff380 100644 --- a/pkg/auth/api/grpc/user_converter.go +++ b/internal/api/grpc/auth/user_converter.go @@ -1,21 +1,23 @@ -package grpc +package auth import ( "context" "encoding/json" "github.com/caos/logging" - "github.com/caos/zitadel/internal/api/auth" - "github.com/caos/zitadel/internal/eventstore/models" - usr_model "github.com/caos/zitadel/internal/user/model" - message "github.com/caos/zitadel/pkg/message" "github.com/golang/protobuf/ptypes" "golang.org/x/text/language" "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/types/known/structpb" + + "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/internal/eventstore/models" + usr_model "github.com/caos/zitadel/internal/user/model" + "github.com/caos/zitadel/pkg/grpc/auth" + "github.com/caos/zitadel/pkg/grpc/message" ) -func userViewFromModel(user *usr_model.UserView) *UserView { +func userViewFromModel(user *usr_model.UserView) *auth.UserView { creationDate, err := ptypes.TimestampProto(user.CreationDate) logging.Log("GRPC-sd32g").OnError(err).Debug("unable to parse timestamp") @@ -28,7 +30,7 @@ func userViewFromModel(user *usr_model.UserView) *UserView { passwordChanged, err := ptypes.TimestampProto(user.PasswordChanged) logging.Log("GRPC-fgQFT").OnError(err).Debug("unable to parse timestamp") - return &UserView{ + return &auth.UserView{ Id: user.ID, State: userStateFromModel(user.State), CreationDate: creationDate, @@ -58,14 +60,14 @@ func userViewFromModel(user *usr_model.UserView) *UserView { } } -func profileFromModel(profile *usr_model.Profile) *UserProfile { +func profileFromModel(profile *usr_model.Profile) *auth.UserProfile { creationDate, err := ptypes.TimestampProto(profile.CreationDate) logging.Log("GRPC-56t5s").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(profile.ChangeDate) logging.Log("GRPC-K58ds").OnError(err).Debug("unable to parse timestamp") - return &UserProfile{ + return &auth.UserProfile{ Id: profile.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -80,14 +82,14 @@ func profileFromModel(profile *usr_model.Profile) *UserProfile { } } -func profileViewFromModel(profile *usr_model.Profile) *UserProfileView { +func profileViewFromModel(profile *usr_model.Profile) *auth.UserProfileView { creationDate, err := ptypes.TimestampProto(profile.CreationDate) logging.Log("GRPC-s9iKs").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(profile.ChangeDate) logging.Log("GRPC-9sujE").OnError(err).Debug("unable to parse timestamp") - return &UserProfileView{ + return &auth.UserProfileView{ Id: profile.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -104,12 +106,12 @@ func profileViewFromModel(profile *usr_model.Profile) *UserProfileView { } } -func updateProfileToModel(ctx context.Context, u *UpdateUserProfileRequest) *usr_model.Profile { +func updateProfileToModel(ctx context.Context, u *auth.UpdateUserProfileRequest) *usr_model.Profile { preferredLanguage, err := language.Parse(u.PreferredLanguage) logging.Log("GRPC-lk73L").OnError(err).Debug("language malformed") return &usr_model.Profile{ - ObjectRoot: models.ObjectRoot{AggregateID: auth.GetCtxData(ctx).UserID}, + ObjectRoot: models.ObjectRoot{AggregateID: authz.GetCtxData(ctx).UserID}, FirstName: u.FirstName, LastName: u.LastName, NickName: u.NickName, @@ -118,14 +120,14 @@ func updateProfileToModel(ctx context.Context, u *UpdateUserProfileRequest) *usr } } -func emailFromModel(email *usr_model.Email) *UserEmail { +func emailFromModel(email *usr_model.Email) *auth.UserEmail { creationDate, err := ptypes.TimestampProto(email.CreationDate) logging.Log("GRPC-sdoi3").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(email.ChangeDate) logging.Log("GRPC-klJK3").OnError(err).Debug("unable to parse timestamp") - return &UserEmail{ + return &auth.UserEmail{ Id: email.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -135,14 +137,14 @@ func emailFromModel(email *usr_model.Email) *UserEmail { } } -func emailViewFromModel(email *usr_model.Email) *UserEmailView { +func emailViewFromModel(email *usr_model.Email) *auth.UserEmailView { creationDate, err := ptypes.TimestampProto(email.CreationDate) logging.Log("GRPC-LSp8s").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(email.ChangeDate) logging.Log("GRPC-6szJe").OnError(err).Debug("unable to parse timestamp") - return &UserEmailView{ + return &auth.UserEmailView{ Id: email.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -152,21 +154,21 @@ func emailViewFromModel(email *usr_model.Email) *UserEmailView { } } -func updateEmailToModel(ctx context.Context, e *UpdateUserEmailRequest) *usr_model.Email { +func updateEmailToModel(ctx context.Context, e *auth.UpdateUserEmailRequest) *usr_model.Email { return &usr_model.Email{ - ObjectRoot: models.ObjectRoot{AggregateID: auth.GetCtxData(ctx).UserID}, + ObjectRoot: models.ObjectRoot{AggregateID: authz.GetCtxData(ctx).UserID}, EmailAddress: e.Email, } } -func phoneFromModel(phone *usr_model.Phone) *UserPhone { +func phoneFromModel(phone *usr_model.Phone) *auth.UserPhone { creationDate, err := ptypes.TimestampProto(phone.CreationDate) logging.Log("GRPC-kjn5J").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(phone.ChangeDate) logging.Log("GRPC-LKA9S").OnError(err).Debug("unable to parse timestamp") - return &UserPhone{ + return &auth.UserPhone{ Id: phone.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -176,14 +178,14 @@ func phoneFromModel(phone *usr_model.Phone) *UserPhone { } } -func phoneViewFromModel(phone *usr_model.Phone) *UserPhoneView { +func phoneViewFromModel(phone *usr_model.Phone) *auth.UserPhoneView { creationDate, err := ptypes.TimestampProto(phone.CreationDate) logging.Log("GRPC-s5zJS").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(phone.ChangeDate) logging.Log("GRPC-s9kLe").OnError(err).Debug("unable to parse timestamp") - return &UserPhoneView{ + return &auth.UserPhoneView{ Id: phone.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -193,21 +195,21 @@ func phoneViewFromModel(phone *usr_model.Phone) *UserPhoneView { } } -func updatePhoneToModel(ctx context.Context, e *UpdateUserPhoneRequest) *usr_model.Phone { +func updatePhoneToModel(ctx context.Context, e *auth.UpdateUserPhoneRequest) *usr_model.Phone { return &usr_model.Phone{ - ObjectRoot: models.ObjectRoot{AggregateID: auth.GetCtxData(ctx).UserID}, + ObjectRoot: models.ObjectRoot{AggregateID: authz.GetCtxData(ctx).UserID}, PhoneNumber: e.Phone, } } -func addressFromModel(address *usr_model.Address) *UserAddress { +func addressFromModel(address *usr_model.Address) *auth.UserAddress { creationDate, err := ptypes.TimestampProto(address.CreationDate) logging.Log("GRPC-65FRs").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(address.ChangeDate) logging.Log("GRPC-aslk4").OnError(err).Debug("unable to parse timestamp") - return &UserAddress{ + return &auth.UserAddress{ Id: address.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -220,14 +222,14 @@ func addressFromModel(address *usr_model.Address) *UserAddress { } } -func addressViewFromModel(address *usr_model.Address) *UserAddressView { +func addressViewFromModel(address *usr_model.Address) *auth.UserAddressView { creationDate, err := ptypes.TimestampProto(address.CreationDate) logging.Log("GRPC-sk4fS").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(address.ChangeDate) logging.Log("GRPC-9siEs").OnError(err).Debug("unable to parse timestamp") - return &UserAddressView{ + return &auth.UserAddressView{ Id: address.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -240,9 +242,9 @@ func addressViewFromModel(address *usr_model.Address) *UserAddressView { } } -func updateAddressToModel(ctx context.Context, address *UpdateUserAddressRequest) *usr_model.Address { +func updateAddressToModel(ctx context.Context, address *auth.UpdateUserAddressRequest) *usr_model.Address { return &usr_model.Address{ - ObjectRoot: models.ObjectRoot{AggregateID: auth.GetCtxData(ctx).UserID}, + ObjectRoot: models.ObjectRoot{AggregateID: authz.GetCtxData(ctx).UserID}, Country: address.Country, StreetAddress: address.StreetAddress, Region: address.Region, @@ -251,8 +253,8 @@ func updateAddressToModel(ctx context.Context, address *UpdateUserAddressRequest } } -func otpFromModel(otp *usr_model.OTP) *MfaOtpResponse { - return &MfaOtpResponse{ +func otpFromModel(otp *usr_model.OTP) *auth.MfaOtpResponse { + return &auth.MfaOtpResponse{ UserId: otp.AggregateID, Url: otp.Url, Secret: otp.SecretString, @@ -260,96 +262,96 @@ func otpFromModel(otp *usr_model.OTP) *MfaOtpResponse { } } -func userStateFromModel(state usr_model.UserState) UserState { +func userStateFromModel(state usr_model.UserState) auth.UserState { switch state { case usr_model.UserStateActive: - return UserState_USERSTATE_ACTIVE + return auth.UserState_USERSTATE_ACTIVE case usr_model.UserStateInactive: - return UserState_USERSTATE_INACTIVE + return auth.UserState_USERSTATE_INACTIVE case usr_model.UserStateLocked: - return UserState_USERSTATE_LOCKED + return auth.UserState_USERSTATE_LOCKED case usr_model.UserStateInitial: - return UserState_USERSTATE_INITIAL + return auth.UserState_USERSTATE_INITIAL case usr_model.UserStateSuspend: - return UserState_USERSTATE_SUSPEND + return auth.UserState_USERSTATE_SUSPEND default: - return UserState_USERSTATE_UNSPECIFIED + return auth.UserState_USERSTATE_UNSPECIFIED } } -func genderFromModel(gender usr_model.Gender) Gender { +func genderFromModel(gender usr_model.Gender) auth.Gender { switch gender { case usr_model.GenderFemale: - return Gender_GENDER_FEMALE + return auth.Gender_GENDER_FEMALE case usr_model.GenderMale: - return Gender_GENDER_MALE + return auth.Gender_GENDER_MALE case usr_model.GenderDiverse: - return Gender_GENDER_DIVERSE + return auth.Gender_GENDER_DIVERSE default: - return Gender_GENDER_UNSPECIFIED + return auth.Gender_GENDER_UNSPECIFIED } } -func genderToModel(gender Gender) usr_model.Gender { +func genderToModel(gender auth.Gender) usr_model.Gender { switch gender { - case Gender_GENDER_FEMALE: + case auth.Gender_GENDER_FEMALE: return usr_model.GenderFemale - case Gender_GENDER_MALE: + case auth.Gender_GENDER_MALE: return usr_model.GenderMale - case Gender_GENDER_DIVERSE: + case auth.Gender_GENDER_DIVERSE: return usr_model.GenderDiverse default: return usr_model.GenderUnspecified } } -func mfaStateFromModel(state usr_model.MfaState) MFAState { +func mfaStateFromModel(state usr_model.MfaState) auth.MFAState { switch state { case usr_model.MfaStateReady: - return MFAState_MFASTATE_READY + return auth.MFAState_MFASTATE_READY case usr_model.MfaStateNotReady: - return MFAState_MFASTATE_NOT_READY + return auth.MFAState_MFASTATE_NOT_READY default: - return MFAState_MFASTATE_UNSPECIFIED + return auth.MFAState_MFASTATE_UNSPECIFIED } } -func mfasFromModel(mfas []*usr_model.MultiFactor) []*MultiFactor { - converted := make([]*MultiFactor, len(mfas)) +func mfasFromModel(mfas []*usr_model.MultiFactor) []*auth.MultiFactor { + converted := make([]*auth.MultiFactor, len(mfas)) for i, mfa := range mfas { converted[i] = mfaFromModel(mfa) } return converted } -func mfaFromModel(mfa *usr_model.MultiFactor) *MultiFactor { - return &MultiFactor{ +func mfaFromModel(mfa *usr_model.MultiFactor) *auth.MultiFactor { + return &auth.MultiFactor{ State: mfaStateFromModel(mfa.State), Type: mfaTypeFromModel(mfa.Type), } } -func mfaTypeFromModel(mfatype usr_model.MfaType) MfaType { +func mfaTypeFromModel(mfatype usr_model.MfaType) auth.MfaType { switch mfatype { case usr_model.MfaTypeOTP: - return MfaType_MFATYPE_OTP + return auth.MfaType_MFATYPE_OTP case usr_model.MfaTypeSMS: - return MfaType_MFATYPE_SMS + return auth.MfaType_MFATYPE_SMS default: - return MfaType_MFATYPE_UNSPECIFIED + return auth.MfaType_MFATYPE_UNSPECIFIED } } -func userChangesToResponse(response *usr_model.UserChanges, offset uint64, limit uint64) (_ *Changes) { - return &Changes{ +func userChangesToResponse(response *usr_model.UserChanges, offset uint64, limit uint64) (_ *auth.Changes) { + return &auth.Changes{ Limit: limit, Offset: offset, Changes: userChangesToAPI(response), } } -func userChangesToAPI(changes *usr_model.UserChanges) (_ []*Change) { - result := make([]*Change, len(changes.Changes)) +func userChangesToAPI(changes *usr_model.UserChanges) (_ []*auth.Change) { + result := make([]*auth.Change, len(changes.Changes)) for i, change := range changes.Changes { var data *structpb.Struct @@ -359,7 +361,7 @@ func userChangesToAPI(changes *usr_model.UserChanges) (_ []*Change) { err = protojson.Unmarshal(changedData, data) logging.Log("GRPC-0kRsY").OnError(err).Debug("unable to marshal changed data to struct") } - result[i] = &Change{ + result[i] = &auth.Change{ ChangeDate: change.ChangeDate, EventType: message.NewLocalizedEventType(change.EventType), Sequence: change.Sequence, diff --git a/pkg/auth/api/grpc/user_grant.go b/internal/api/grpc/auth/user_grant.go similarity index 59% rename from pkg/auth/api/grpc/user_grant.go rename to internal/api/grpc/auth/user_grant.go index 597357411d..5d8a8faf4e 100644 --- a/pkg/auth/api/grpc/user_grant.go +++ b/internal/api/grpc/auth/user_grant.go @@ -1,11 +1,14 @@ -package grpc +package auth import ( "context" + "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/pkg/grpc/auth" ) -func (s *Server) SearchMyUserGrant(ctx context.Context, in *UserGrantSearchRequest) (*UserGrantSearchResponse, error) { +func (s *Server) SearchMyUserGrant(ctx context.Context, in *auth.UserGrantSearchRequest) (*auth.UserGrantSearchResponse, error) { response, err := s.repo.SearchMyUserGrants(ctx, userGrantSearchRequestsToModel(in)) if err != nil { return nil, err @@ -13,7 +16,7 @@ func (s *Server) SearchMyUserGrant(ctx context.Context, in *UserGrantSearchReque return userGrantSearchResponseFromModel(response), nil } -func (s *Server) SearchMyProjectOrgs(ctx context.Context, in *MyProjectOrgSearchRequest) (*MyProjectOrgSearchResponse, error) { +func (s *Server) SearchMyProjectOrgs(ctx context.Context, in *auth.MyProjectOrgSearchRequest) (*auth.MyProjectOrgSearchResponse, error) { response, err := s.repo.SearchMyProjectOrgs(ctx, myProjectOrgSearchRequestRequestsToModel(in)) if err != nil { return nil, err @@ -21,18 +24,18 @@ func (s *Server) SearchMyProjectOrgs(ctx context.Context, in *MyProjectOrgSearch return projectOrgSearchResponseFromModel(response), nil } -func (s *Server) GetMyZitadelPermissions(ctx context.Context, _ *empty.Empty) (*MyPermissions, error) { +func (s *Server) GetMyZitadelPermissions(ctx context.Context, _ *empty.Empty) (*auth.MyPermissions, error) { perms, err := s.repo.SearchMyZitadelPermissions(ctx) if err != nil { return nil, err } - return &MyPermissions{Permissions: perms}, nil + return &auth.MyPermissions{Permissions: perms}, nil } -func (s *Server) GetMyProjectPermissions(ctx context.Context, _ *empty.Empty) (*MyPermissions, error) { +func (s *Server) GetMyProjectPermissions(ctx context.Context, _ *empty.Empty) (*auth.MyPermissions, error) { perms, err := s.repo.SearchMyProjectPermissions(ctx) if err != nil { return nil, err } - return &MyPermissions{Permissions: perms}, nil + return &auth.MyPermissions{Permissions: perms}, nil } diff --git a/pkg/auth/api/grpc/user_grant_converter.go b/internal/api/grpc/auth/user_grant_converter.go similarity index 58% rename from pkg/auth/api/grpc/user_grant_converter.go rename to internal/api/grpc/auth/user_grant_converter.go index 5ad99419aa..d564474994 100644 --- a/pkg/auth/api/grpc/user_grant_converter.go +++ b/internal/api/grpc/auth/user_grant_converter.go @@ -1,10 +1,11 @@ -package grpc +package auth import ( grant_model "github.com/caos/zitadel/internal/usergrant/model" + "github.com/caos/zitadel/pkg/grpc/auth" ) -func userGrantSearchRequestsToModel(request *UserGrantSearchRequest) *grant_model.UserGrantSearchRequest { +func userGrantSearchRequestsToModel(request *auth.UserGrantSearchRequest) *grant_model.UserGrantSearchRequest { return &grant_model.UserGrantSearchRequest{ Offset: request.Offset, Limit: request.Limit, @@ -12,7 +13,7 @@ func userGrantSearchRequestsToModel(request *UserGrantSearchRequest) *grant_mode } } -func userGrantSearchQueriesToModel(queries []*UserGrantSearchQuery) []*grant_model.UserGrantSearchQuery { +func userGrantSearchQueriesToModel(queries []*auth.UserGrantSearchQuery) []*grant_model.UserGrantSearchQuery { converted := make([]*grant_model.UserGrantSearchQuery, len(queries)) for i, q := range queries { converted[i] = userGrantSearchQueryToModel(q) @@ -20,7 +21,7 @@ func userGrantSearchQueriesToModel(queries []*UserGrantSearchQuery) []*grant_mod return converted } -func userGrantSearchQueryToModel(query *UserGrantSearchQuery) *grant_model.UserGrantSearchQuery { +func userGrantSearchQueryToModel(query *auth.UserGrantSearchQuery) *grant_model.UserGrantSearchQuery { return &grant_model.UserGrantSearchQuery{ Key: userGrantSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -28,18 +29,18 @@ func userGrantSearchQueryToModel(query *UserGrantSearchQuery) *grant_model.UserG } } -func userGrantSearchKeyToModel(key UserGrantSearchKey) grant_model.UserGrantSearchKey { +func userGrantSearchKeyToModel(key auth.UserGrantSearchKey) grant_model.UserGrantSearchKey { switch key { - case UserGrantSearchKey_UserGrantSearchKey_ORG_ID: + case auth.UserGrantSearchKey_UserGrantSearchKey_ORG_ID: return grant_model.UserGrantSearchKeyResourceOwner - case UserGrantSearchKey_UserGrantSearchKey_PROJECT_ID: + case auth.UserGrantSearchKey_UserGrantSearchKey_PROJECT_ID: return grant_model.UserGrantSearchKeyProjectID default: return grant_model.UserGrantSearchKeyUnspecified } } -func myProjectOrgSearchRequestRequestsToModel(request *MyProjectOrgSearchRequest) *grant_model.UserGrantSearchRequest { +func myProjectOrgSearchRequestRequestsToModel(request *auth.MyProjectOrgSearchRequest) *grant_model.UserGrantSearchRequest { return &grant_model.UserGrantSearchRequest{ Offset: request.Offset, Limit: request.Limit, @@ -49,7 +50,7 @@ func myProjectOrgSearchRequestRequestsToModel(request *MyProjectOrgSearchRequest } } -func myProjectOrgSearchQueriesToModel(queries []*MyProjectOrgSearchQuery) []*grant_model.UserGrantSearchQuery { +func myProjectOrgSearchQueriesToModel(queries []*auth.MyProjectOrgSearchQuery) []*grant_model.UserGrantSearchQuery { converted := make([]*grant_model.UserGrantSearchQuery, len(queries)) for i, q := range queries { converted[i] = myProjectOrgSearchQueryToModel(q) @@ -57,7 +58,7 @@ func myProjectOrgSearchQueriesToModel(queries []*MyProjectOrgSearchQuery) []*gra return converted } -func myProjectOrgSearchQueryToModel(query *MyProjectOrgSearchQuery) *grant_model.UserGrantSearchQuery { +func myProjectOrgSearchQueryToModel(query *auth.MyProjectOrgSearchQuery) *grant_model.UserGrantSearchQuery { return &grant_model.UserGrantSearchQuery{ Key: myProjectOrgSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -65,17 +66,17 @@ func myProjectOrgSearchQueryToModel(query *MyProjectOrgSearchQuery) *grant_model } } -func myProjectOrgSearchKeyToModel(key MyProjectOrgSearchKey) grant_model.UserGrantSearchKey { +func myProjectOrgSearchKeyToModel(key auth.MyProjectOrgSearchKey) grant_model.UserGrantSearchKey { switch key { - case MyProjectOrgSearchKey_MYPROJECTORGSEARCHKEY_ORG_NAME: + case auth.MyProjectOrgSearchKey_MYPROJECTORGSEARCHKEY_ORG_NAME: return grant_model.UserGrantSearchKeyOrgName default: return grant_model.UserGrantSearchKeyUnspecified } } -func userGrantSearchResponseFromModel(response *grant_model.UserGrantSearchResponse) *UserGrantSearchResponse { - return &UserGrantSearchResponse{ +func userGrantSearchResponseFromModel(response *grant_model.UserGrantSearchResponse) *auth.UserGrantSearchResponse { + return &auth.UserGrantSearchResponse{ Offset: response.Offset, Limit: response.Limit, TotalResult: response.TotalResult, @@ -83,16 +84,16 @@ func userGrantSearchResponseFromModel(response *grant_model.UserGrantSearchRespo } } -func userGrantViewsFromModel(users []*grant_model.UserGrantView) []*UserGrantView { - converted := make([]*UserGrantView, len(users)) +func userGrantViewsFromModel(users []*grant_model.UserGrantView) []*auth.UserGrantView { + converted := make([]*auth.UserGrantView, len(users)) for i, user := range users { converted[i] = userGrantViewFromModel(user) } return converted } -func userGrantViewFromModel(grant *grant_model.UserGrantView) *UserGrantView { - return &UserGrantView{ +func userGrantViewFromModel(grant *grant_model.UserGrantView) *auth.UserGrantView { + return &auth.UserGrantView{ UserId: grant.UserID, OrgId: grant.ResourceOwner, OrgName: grant.OrgName, @@ -101,8 +102,8 @@ func userGrantViewFromModel(grant *grant_model.UserGrantView) *UserGrantView { } } -func projectOrgSearchResponseFromModel(response *grant_model.ProjectOrgSearchResponse) *MyProjectOrgSearchResponse { - return &MyProjectOrgSearchResponse{ +func projectOrgSearchResponseFromModel(response *grant_model.ProjectOrgSearchResponse) *auth.MyProjectOrgSearchResponse { + return &auth.MyProjectOrgSearchResponse{ Offset: response.Offset, Limit: response.Limit, TotalResult: response.TotalResult, @@ -110,16 +111,16 @@ func projectOrgSearchResponseFromModel(response *grant_model.ProjectOrgSearchRes } } -func projectOrgsFromModel(projectOrgs []*grant_model.Org) []*Org { - converted := make([]*Org, len(projectOrgs)) +func projectOrgsFromModel(projectOrgs []*grant_model.Org) []*auth.Org { + converted := make([]*auth.Org, len(projectOrgs)) for i, org := range projectOrgs { converted[i] = projectOrgFromModel(org) } return converted } -func projectOrgFromModel(org *grant_model.Org) *Org { - return &Org{ +func projectOrgFromModel(org *grant_model.Org) *auth.Org { + return &auth.Org{ Id: org.OrgID, Name: org.OrgName, } diff --git a/pkg/auth/api/grpc/user_session.go b/internal/api/grpc/auth/user_session.go similarity index 53% rename from pkg/auth/api/grpc/user_session.go rename to internal/api/grpc/auth/user_session.go index 7df389d004..9ad998a823 100644 --- a/pkg/auth/api/grpc/user_session.go +++ b/internal/api/grpc/auth/user_session.go @@ -1,14 +1,17 @@ -package grpc +package auth import ( "context" + "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/pkg/grpc/auth" ) -func (s *Server) GetMyUserSessions(ctx context.Context, _ *empty.Empty) (_ *UserSessionViews, err error) { +func (s *Server) GetMyUserSessions(ctx context.Context, _ *empty.Empty) (_ *auth.UserSessionViews, err error) { userSessions, err := s.repo.GetMyUserSessions(ctx) if err != nil { return nil, err } - return &UserSessionViews{UserSessions: userSessionViewsFromModel(userSessions)}, nil + return &auth.UserSessionViews{UserSessions: userSessionViewsFromModel(userSessions)}, nil } diff --git a/pkg/auth/api/grpc/user_session_converter.go b/internal/api/grpc/auth/user_session_converter.go similarity index 67% rename from pkg/auth/api/grpc/user_session_converter.go rename to internal/api/grpc/auth/user_session_converter.go index 547c2b14f5..9ebc7e4499 100644 --- a/pkg/auth/api/grpc/user_session_converter.go +++ b/internal/api/grpc/auth/user_session_converter.go @@ -1,20 +1,21 @@ -package grpc +package auth import ( auth_req_model "github.com/caos/zitadel/internal/auth_request/model" usr_model "github.com/caos/zitadel/internal/user/model" + "github.com/caos/zitadel/pkg/grpc/auth" ) -func userSessionViewsFromModel(userSessions []*usr_model.UserSessionView) []*UserSessionView { - converted := make([]*UserSessionView, len(userSessions)) +func userSessionViewsFromModel(userSessions []*usr_model.UserSessionView) []*auth.UserSessionView { + converted := make([]*auth.UserSessionView, len(userSessions)) for i, s := range userSessions { converted[i] = userSessionViewFromModel(s) } return converted } -func userSessionViewFromModel(userSession *usr_model.UserSessionView) *UserSessionView { - return &UserSessionView{ +func userSessionViewFromModel(userSession *usr_model.UserSessionView) *auth.UserSessionView { + return &auth.UserSessionView{ Sequence: userSession.Sequence, AgentId: userSession.UserAgentID, UserId: userSession.UserID, @@ -25,13 +26,13 @@ func userSessionViewFromModel(userSession *usr_model.UserSessionView) *UserSessi } } -func userSessionStateFromModel(state auth_req_model.UserSessionState) UserSessionState { +func userSessionStateFromModel(state auth_req_model.UserSessionState) auth.UserSessionState { switch state { case auth_req_model.UserSessionStateActive: - return UserSessionState_USERSESSIONSTATE_ACTIVE + return auth.UserSessionState_USERSESSIONSTATE_ACTIVE case auth_req_model.UserSessionStateTerminated: - return UserSessionState_USERSESSIONSTATE_TERMINATED + return auth.UserSessionState_USERSESSIONSTATE_TERMINATED default: - return UserSessionState_USERSESSIONSTATE_UNSPECIFIED + return auth.UserSessionState_USERSESSIONSTATE_UNSPECIFIED } } diff --git a/internal/api/grpc/caos_errors.go b/internal/api/grpc/caos_errors.go index 8aebf1147c..7a1e2b539b 100644 --- a/internal/api/grpc/caos_errors.go +++ b/internal/api/grpc/caos_errors.go @@ -4,15 +4,17 @@ import ( "context" "github.com/caos/logging" - "github.com/caos/zitadel/pkg/message" + + "github.com/caos/zitadel/pkg/grpc/message" + + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/i18n" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" ) -func CaosToGRPCError(err error, ctx context.Context, translator *i18n.Translator) error { +func CaosToGRPCError(ctx context.Context, err error, translator *i18n.Translator) error { if err == nil { return nil } @@ -39,7 +41,7 @@ func ExtractCaosError(err error) (c codes.Code, msg, id string, ok bool) { return codes.AlreadyExists, caosErr.GetMessage(), caosErr.GetID(), true case *caos_errs.DeadlineExceededError: return codes.DeadlineExceeded, caosErr.GetMessage(), caosErr.GetID(), true - case caos_errs.InternalError: + case *caos_errs.InternalError: return codes.Internal, caosErr.GetMessage(), caosErr.GetID(), true case *caos_errs.InvalidArgumentError: return codes.InvalidArgument, caosErr.GetMessage(), caosErr.GetID(), true diff --git a/internal/api/grpc/caos_errors_test.go b/internal/api/grpc/caos_errors_test.go new file mode 100644 index 0000000000..a4614d32d5 --- /dev/null +++ b/internal/api/grpc/caos_errors_test.go @@ -0,0 +1,167 @@ +package grpc + +import ( + "context" + "errors" + "testing" + + "google.golang.org/grpc/codes" + + caos_errs "github.com/caos/zitadel/internal/errors" + "github.com/caos/zitadel/internal/i18n" +) + +func TestCaosToGRPCError(t *testing.T) { + type args struct { + err error + translator *i18n.Translator + } + tests := []struct { + name string + args args + wantErr bool + }{ + { + "no error", + args{}, + false, + }, + { + "unknown error", + args{errors.New("unknown"), nil}, + true, + }, + { + "caos error", + args{caos_errs.ThrowInternal(nil, "", "message"), nil}, + true, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if err := CaosToGRPCError(context.Background(), tt.args.err, tt.args.translator); (err != nil) != tt.wantErr { + t.Errorf("CaosToGRPCError() error = %v, wantErr %v", err, tt.wantErr) + } + }) + } +} + +func Test_Extract(t *testing.T) { + type args struct { + err error + } + tests := []struct { + name string + args args + wantC codes.Code + wantMsg string + wantID string + wantOk bool + }{ + { + "already exists", + args{caos_errs.ThrowAlreadyExists(nil, "id", "already exists")}, + codes.AlreadyExists, + "already exists", + "id", + true, + }, + { + "deadline exceeded", + args{caos_errs.ThrowDeadlineExceeded(nil, "id", "deadline exceeded")}, + codes.DeadlineExceeded, + "deadline exceeded", + "id", + true, + }, + { + "internal error", + args{caos_errs.ThrowInternal(nil, "id", "internal error")}, + codes.Internal, + "internal error", + "id", + true, + }, + { + "invalid argument", + args{caos_errs.ThrowInvalidArgument(nil, "id", "invalid argument")}, + codes.InvalidArgument, + "invalid argument", + "id", + true, + }, + { + "not found", + args{caos_errs.ThrowNotFound(nil, "id", "not found")}, + codes.NotFound, + "not found", + "id", + true, + }, + { + "permission denied", + args{caos_errs.ThrowPermissionDenied(nil, "id", "permission denied")}, + codes.PermissionDenied, + "permission denied", + "id", + true, + }, + { + "precondition failed", + args{caos_errs.ThrowPreconditionFailed(nil, "id", "precondition failed")}, + codes.FailedPrecondition, + "precondition failed", + "id", + true, + }, + { + "unauthenticated", + args{caos_errs.ThrowUnauthenticated(nil, "id", "unauthenticated")}, + codes.Unauthenticated, + "unauthenticated", + "id", + true, + }, + { + "unavailable", + args{caos_errs.ThrowUnavailable(nil, "id", "unavailable")}, + codes.Unavailable, + "unavailable", + "id", + true, + }, + { + "unimplemented", + args{caos_errs.ThrowUnimplemented(nil, "id", "unimplemented")}, + codes.Unimplemented, + "unimplemented", + "id", + true, + }, + { + "unknown", + args{errors.New("unknown")}, + codes.Unknown, + "unknown", + "", + false, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + gotC, gotMsg, gotID, gotOk := ExtractCaosError(tt.args.err) + if gotC != tt.wantC { + t.Errorf("extract() gotC = %v, want %v", gotC, tt.wantC) + } + if gotMsg != tt.wantMsg { + t.Errorf("extract() gotMsg = %v, want %v", gotMsg, tt.wantMsg) + } + if gotID != tt.wantID { + t.Errorf("extract() gotID = %v, want %v", gotID, tt.wantID) + } + if gotOk != tt.wantOk { + t.Errorf("extract() gotOk = %v, want %v", gotOk, tt.wantOk) + } + }) + } +} diff --git a/internal/api/grpc/client/middleware/tacing_test.go b/internal/api/grpc/client/middleware/tacing_test.go new file mode 100644 index 0000000000..81cc5a6cae --- /dev/null +++ b/internal/api/grpc/client/middleware/tacing_test.go @@ -0,0 +1,68 @@ +package middleware + +import ( + "context" + "testing" + + "go.opencensus.io/plugin/ocgrpc" + "go.opencensus.io/trace" + "google.golang.org/grpc/stats" +) + +func Test_tracingClientHandler_TagRPC(t *testing.T) { + type fields struct { + IgnoredMethods []GRPCMethod + ClientHandler ocgrpc.ClientHandler + } + type args struct { + ctx context.Context + tagInfo *stats.RPCTagInfo + } + tests := []struct { + name string + fields fields + args args + wantSpan bool + }{ + { + "ignored method", + fields{ + IgnoredMethods: []GRPCMethod{"ignore"}, + ClientHandler: ocgrpc.ClientHandler{}, + }, + args{ + ctx: context.Background(), + tagInfo: &stats.RPCTagInfo{ + FullMethodName: "ignore", + }, + }, + false, + }, + { + "tag", + fields{ + IgnoredMethods: []GRPCMethod{"ignore"}, + ClientHandler: ocgrpc.ClientHandler{}, + }, + args{ + ctx: context.Background(), + tagInfo: &stats.RPCTagInfo{ + FullMethodName: "tag", + }, + }, + true, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + s := &tracingClientHandler{ + IgnoredMethods: tt.fields.IgnoredMethods, + ClientHandler: tt.fields.ClientHandler, + } + got := s.TagRPC(tt.args.ctx, tt.args.tagInfo) + if (trace.FromContext(got) != nil) != tt.wantSpan { + t.Errorf("TagRPC() = %v, want %v", got, tt.wantSpan) + } + }) + } +} diff --git a/internal/api/grpc/client/middleware/tracing.go b/internal/api/grpc/client/middleware/tracing.go index dbcfedcfac..42edbd14d2 100644 --- a/internal/api/grpc/client/middleware/tracing.go +++ b/internal/api/grpc/client/middleware/tracing.go @@ -9,18 +9,27 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/stats" - "github.com/caos/zitadel/internal/api" + "github.com/caos/zitadel/internal/api/http" "github.com/caos/zitadel/internal/tracing" ) type GRPCMethod string func TracingStatsClient(ignoredMethods ...GRPCMethod) grpc.DialOption { - return grpc.WithStatsHandler(&tracingClientHandler{ignoredMethods, ocgrpc.ClientHandler{StartOptions: trace.StartOptions{Sampler: tracing.Sampler(), SpanKind: trace.SpanKindClient}}}) + return grpc.WithStatsHandler( + &tracingClientHandler{ + ignoredMethods, + ocgrpc.ClientHandler{ + StartOptions: trace.StartOptions{ + Sampler: tracing.Sampler(), + SpanKind: trace.SpanKindClient}, + }, + }, + ) } func DefaultTracingStatsClient() grpc.DialOption { - return TracingStatsClient(api.Healthz, api.Readiness, api.Validation) + return TracingStatsClient(http.Healthz, http.Readiness, http.Validation) } type tracingClientHandler struct { diff --git a/internal/api/grpc/header.go b/internal/api/grpc/header.go index f1498c1562..f80b90800e 100644 --- a/internal/api/grpc/header.go +++ b/internal/api/grpc/header.go @@ -5,7 +5,7 @@ import ( "github.com/grpc-ecosystem/go-grpc-middleware/util/metautils" - "github.com/caos/zitadel/internal/api" + "github.com/caos/zitadel/internal/api/http" ) func GetHeader(ctx context.Context, headername string) string { @@ -13,5 +13,5 @@ func GetHeader(ctx context.Context, headername string) string { } func GetAuthorizationHeader(ctx context.Context) string { - return GetHeader(ctx, api.Authorization) + return GetHeader(ctx, http.Authorization) } diff --git a/internal/api/grpc/header_test.go b/internal/api/grpc/header_test.go new file mode 100644 index 0000000000..e304900073 --- /dev/null +++ b/internal/api/grpc/header_test.go @@ -0,0 +1,92 @@ +package grpc + +import ( + "context" + "testing" + + "google.golang.org/grpc/metadata" +) + +func TestGetHeader(t *testing.T) { + type args struct { + ctx context.Context + headername string + } + tests := []struct { + name string + args args + want string + }{ + { + "empty context", + args{ + ctx: context.Background(), + headername: "header", + }, + "", + }, + { + "context without header", + args{ + ctx: metadata.NewIncomingContext(context.Background(), metadata.Pairs("header2", "value")), + headername: "header", + }, + "", + }, + { + "context with header", + args{ + ctx: metadata.NewIncomingContext(context.Background(), metadata.Pairs("header", "value")), + headername: "header", + }, + "value", + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := GetHeader(tt.args.ctx, tt.args.headername); got != tt.want { + t.Errorf("GetHeader() = %v, want %v", got, tt.want) + } + }) + } +} + +func TestGetAuthorizationHeader(t *testing.T) { + type args struct { + ctx context.Context + } + tests := []struct { + name string + args args + want string + }{ + { + "empty context", + args{ + ctx: context.Background(), + }, + "", + }, + { + "context without header", + args{ + ctx: metadata.NewIncomingContext(context.Background(), metadata.Pairs("header", "value")), + }, + "", + }, + { + "context with header", + args{ + ctx: metadata.NewIncomingContext(context.Background(), metadata.Pairs("authorization", "value")), + }, + "value", + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := GetAuthorizationHeader(tt.args.ctx); got != tt.want { + t.Errorf("GetAuthorizationHeader() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/pkg/management/api/grpc/application.go b/internal/api/grpc/management/application.go similarity index 65% rename from pkg/management/api/grpc/application.go rename to internal/api/grpc/management/application.go index ccaa15a16a..41325973f5 100644 --- a/pkg/management/api/grpc/application.go +++ b/internal/api/grpc/management/application.go @@ -1,12 +1,14 @@ -package grpc +package management import ( "context" "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) SearchApplications(ctx context.Context, in *ApplicationSearchRequest) (*ApplicationSearchResponse, error) { +func (s *Server) SearchApplications(ctx context.Context, in *management.ApplicationSearchRequest) (*management.ApplicationSearchResponse, error) { response, err := s.project.SearchApplications(ctx, applicationSearchRequestsToModel(in)) if err != nil { return nil, err @@ -14,7 +16,7 @@ func (s *Server) SearchApplications(ctx context.Context, in *ApplicationSearchRe return applicationSearchResponseFromModel(response), nil } -func (s *Server) ApplicationByID(ctx context.Context, in *ApplicationID) (*ApplicationView, error) { +func (s *Server) ApplicationByID(ctx context.Context, in *management.ApplicationID) (*management.ApplicationView, error) { app, err := s.project.ApplicationByID(ctx, in.Id) if err != nil { return nil, err @@ -22,28 +24,28 @@ func (s *Server) ApplicationByID(ctx context.Context, in *ApplicationID) (*Appli return applicationViewFromModel(app), nil } -func (s *Server) CreateOIDCApplication(ctx context.Context, in *OIDCApplicationCreate) (*Application, error) { +func (s *Server) CreateOIDCApplication(ctx context.Context, in *management.OIDCApplicationCreate) (*management.Application, error) { app, err := s.project.AddApplication(ctx, oidcAppCreateToModel(in)) if err != nil { return nil, err } return appFromModel(app), nil } -func (s *Server) UpdateApplication(ctx context.Context, in *ApplicationUpdate) (*Application, error) { +func (s *Server) UpdateApplication(ctx context.Context, in *management.ApplicationUpdate) (*management.Application, error) { app, err := s.project.ChangeApplication(ctx, appUpdateToModel(in)) if err != nil { return nil, err } return appFromModel(app), nil } -func (s *Server) DeactivateApplication(ctx context.Context, in *ApplicationID) (*Application, error) { +func (s *Server) DeactivateApplication(ctx context.Context, in *management.ApplicationID) (*management.Application, error) { app, err := s.project.DeactivateApplication(ctx, in.ProjectId, in.Id) if err != nil { return nil, err } return appFromModel(app), nil } -func (s *Server) ReactivateApplication(ctx context.Context, in *ApplicationID) (*Application, error) { +func (s *Server) ReactivateApplication(ctx context.Context, in *management.ApplicationID) (*management.Application, error) { app, err := s.project.ReactivateApplication(ctx, in.ProjectId, in.Id) if err != nil { return nil, err @@ -51,12 +53,12 @@ func (s *Server) ReactivateApplication(ctx context.Context, in *ApplicationID) ( return appFromModel(app), nil } -func (s *Server) RemoveApplication(ctx context.Context, in *ApplicationID) (*empty.Empty, error) { +func (s *Server) RemoveApplication(ctx context.Context, in *management.ApplicationID) (*empty.Empty, error) { err := s.project.RemoveApplication(ctx, in.ProjectId, in.Id) return &empty.Empty{}, err } -func (s *Server) UpdateApplicationOIDCConfig(ctx context.Context, in *OIDCConfigUpdate) (*OIDCConfig, error) { +func (s *Server) UpdateApplicationOIDCConfig(ctx context.Context, in *management.OIDCConfigUpdate) (*management.OIDCConfig, error) { config, err := s.project.ChangeOIDCConfig(ctx, oidcConfigUpdateToModel(in)) if err != nil { return nil, err @@ -64,15 +66,15 @@ func (s *Server) UpdateApplicationOIDCConfig(ctx context.Context, in *OIDCConfig return oidcConfigFromModel(config), nil } -func (s *Server) RegenerateOIDCClientSecret(ctx context.Context, in *ApplicationID) (*ClientSecret, error) { +func (s *Server) RegenerateOIDCClientSecret(ctx context.Context, in *management.ApplicationID) (*management.ClientSecret, error) { config, err := s.project.ChangeOIDConfigSecret(ctx, in.ProjectId, in.Id) if err != nil { return nil, err } - return &ClientSecret{ClientSecret: config.ClientSecretString}, nil + return &management.ClientSecret{ClientSecret: config.ClientSecretString}, nil } -func (s *Server) ApplicationChanges(ctx context.Context, changesRequest *ChangeRequest) (*Changes, error) { +func (s *Server) ApplicationChanges(ctx context.Context, changesRequest *management.ChangeRequest) (*management.Changes, error) { response, err := s.project.ApplicationChanges(ctx, changesRequest.Id, changesRequest.SecId, changesRequest.SequenceOffset, changesRequest.Limit, changesRequest.Asc) if err != nil { return nil, err diff --git a/pkg/management/api/grpc/application_converter.go b/internal/api/grpc/management/application_converter.go similarity index 65% rename from pkg/management/api/grpc/application_converter.go rename to internal/api/grpc/management/application_converter.go index dbe10ca006..fc53137d07 100644 --- a/pkg/management/api/grpc/application_converter.go +++ b/internal/api/grpc/management/application_converter.go @@ -1,27 +1,28 @@ -package grpc +package management import ( "encoding/json" "github.com/caos/logging" - "github.com/caos/zitadel/internal/eventstore/models" - "github.com/caos/zitadel/internal/model" - proj_model "github.com/caos/zitadel/internal/project/model" - "github.com/caos/zitadel/pkg/message" - "github.com/golang/protobuf/ptypes" "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/types/known/structpb" + + "github.com/caos/zitadel/internal/eventstore/models" + "github.com/caos/zitadel/internal/model" + proj_model "github.com/caos/zitadel/internal/project/model" + "github.com/caos/zitadel/pkg/grpc/management" + "github.com/caos/zitadel/pkg/grpc/message" ) -func appFromModel(app *proj_model.Application) *Application { +func appFromModel(app *proj_model.Application) *management.Application { creationDate, err := ptypes.TimestampProto(app.CreationDate) logging.Log("GRPC-iejs3").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(app.ChangeDate) logging.Log("GRPC-di7rw").OnError(err).Debug("unable to parse timestamp") - return &Application{ + return &management.Application{ Id: app.AppID, State: appStateFromModel(app.State), CreationDate: creationDate, @@ -32,17 +33,17 @@ func appFromModel(app *proj_model.Application) *Application { } } -func appConfigFromModel(app *proj_model.Application) isApplication_AppConfig { +func appConfigFromModel(app *proj_model.Application) management.AppConfig { if app.Type == proj_model.AppTypeOIDC { - return &Application_OidcConfig{ + return &management.Application_OidcConfig{ OidcConfig: oidcConfigFromModel(app.OIDCConfig), } } return nil } -func oidcConfigFromModel(config *proj_model.OIDCConfig) *OIDCConfig { - return &OIDCConfig{ +func oidcConfigFromModel(config *proj_model.OIDCConfig) *management.OIDCConfig { + return &management.OIDCConfig{ RedirectUris: config.RedirectUris, ResponseTypes: oidcResponseTypesFromModel(config.ResponseTypes), GrantTypes: oidcGrantTypesFromModel(config.GrantTypes), @@ -54,8 +55,8 @@ func oidcConfigFromModel(config *proj_model.OIDCConfig) *OIDCConfig { } } -func oidcConfigFromApplicationViewModel(app *proj_model.ApplicationView) *OIDCConfig { - return &OIDCConfig{ +func oidcConfigFromApplicationViewModel(app *proj_model.ApplicationView) *management.OIDCConfig { + return &management.OIDCConfig{ RedirectUris: app.OIDCRedirectUris, ResponseTypes: oidcResponseTypesFromModel(app.OIDCResponseTypes), GrantTypes: oidcGrantTypesFromModel(app.OIDCGrantTypes), @@ -66,7 +67,7 @@ func oidcConfigFromApplicationViewModel(app *proj_model.ApplicationView) *OIDCCo } } -func oidcAppCreateToModel(app *OIDCApplicationCreate) *proj_model.Application { +func oidcAppCreateToModel(app *management.OIDCApplicationCreate) *proj_model.Application { return &proj_model.Application{ ObjectRoot: models.ObjectRoot{ AggregateID: app.ProjectId, @@ -84,7 +85,7 @@ func oidcAppCreateToModel(app *OIDCApplicationCreate) *proj_model.Application { } } -func appUpdateToModel(app *ApplicationUpdate) *proj_model.Application { +func appUpdateToModel(app *management.ApplicationUpdate) *proj_model.Application { return &proj_model.Application{ ObjectRoot: models.ObjectRoot{ AggregateID: app.ProjectId, @@ -94,7 +95,7 @@ func appUpdateToModel(app *ApplicationUpdate) *proj_model.Application { } } -func oidcConfigUpdateToModel(app *OIDCConfigUpdate) *proj_model.OIDCConfig { +func oidcConfigUpdateToModel(app *management.OIDCConfigUpdate) *proj_model.OIDCConfig { return &proj_model.OIDCConfig{ ObjectRoot: models.ObjectRoot{ AggregateID: app.ProjectId, @@ -109,7 +110,7 @@ func oidcConfigUpdateToModel(app *OIDCConfigUpdate) *proj_model.OIDCConfig { } } -func applicationSearchRequestsToModel(request *ApplicationSearchRequest) *proj_model.ApplicationSearchRequest { +func applicationSearchRequestsToModel(request *management.ApplicationSearchRequest) *proj_model.ApplicationSearchRequest { return &proj_model.ApplicationSearchRequest{ Offset: request.Offset, Limit: request.Limit, @@ -117,7 +118,7 @@ func applicationSearchRequestsToModel(request *ApplicationSearchRequest) *proj_m } } -func applicationSearchQueriesToModel(projectID string, queries []*ApplicationSearchQuery) []*proj_model.ApplicationSearchQuery { +func applicationSearchQueriesToModel(projectID string, queries []*management.ApplicationSearchQuery) []*proj_model.ApplicationSearchQuery { converted := make([]*proj_model.ApplicationSearchQuery, len(queries)+1) for i, q := range queries { converted[i] = applicationSearchQueryToModel(q) @@ -127,7 +128,7 @@ func applicationSearchQueriesToModel(projectID string, queries []*ApplicationSea return converted } -func applicationSearchQueryToModel(query *ApplicationSearchQuery) *proj_model.ApplicationSearchQuery { +func applicationSearchQueryToModel(query *management.ApplicationSearchQuery) *proj_model.ApplicationSearchQuery { return &proj_model.ApplicationSearchQuery{ Key: applicationSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -135,17 +136,17 @@ func applicationSearchQueryToModel(query *ApplicationSearchQuery) *proj_model.Ap } } -func applicationSearchKeyToModel(key ApplicationSearchKey) proj_model.AppSearchKey { +func applicationSearchKeyToModel(key management.ApplicationSearchKey) proj_model.AppSearchKey { switch key { - case ApplicationSearchKey_APPLICATIONSEARCHKEY_APP_NAME: + case management.ApplicationSearchKey_APPLICATIONSEARCHKEY_APP_NAME: return proj_model.AppSearchKeyName default: return proj_model.AppSearchKeyUnspecified } } -func applicationSearchResponseFromModel(response *proj_model.ApplicationSearchResponse) *ApplicationSearchResponse { - return &ApplicationSearchResponse{ +func applicationSearchResponseFromModel(response *proj_model.ApplicationSearchResponse) *management.ApplicationSearchResponse { + return &management.ApplicationSearchResponse{ Offset: response.Offset, Limit: response.Limit, TotalResult: response.TotalResult, @@ -153,22 +154,22 @@ func applicationSearchResponseFromModel(response *proj_model.ApplicationSearchRe } } -func applicationViewsFromModel(apps []*proj_model.ApplicationView) []*ApplicationView { - converted := make([]*ApplicationView, len(apps)) +func applicationViewsFromModel(apps []*proj_model.ApplicationView) []*management.ApplicationView { + converted := make([]*management.ApplicationView, len(apps)) for i, app := range apps { converted[i] = applicationViewFromModel(app) } return converted } -func applicationViewFromModel(application *proj_model.ApplicationView) *ApplicationView { +func applicationViewFromModel(application *proj_model.ApplicationView) *management.ApplicationView { creationDate, err := ptypes.TimestampProto(application.CreationDate) logging.Log("GRPC-lo9sw").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(application.ChangeDate) logging.Log("GRPC-8uwsd").OnError(err).Debug("unable to parse timestamp") - converted := &ApplicationView{ + converted := &management.ApplicationView{ Id: application.ID, State: appStateFromModel(application.State), CreationDate: creationDate, @@ -177,25 +178,25 @@ func applicationViewFromModel(application *proj_model.ApplicationView) *Applicat Sequence: application.Sequence, } if application.IsOIDC { - converted.AppConfig = &ApplicationView_OidcConfig{ + converted.AppConfig = &management.ApplicationView_OidcConfig{ OidcConfig: oidcConfigFromApplicationViewModel(application), } } return converted } -func appStateFromModel(state proj_model.AppState) AppState { +func appStateFromModel(state proj_model.AppState) management.AppState { switch state { case proj_model.AppStateActive: - return AppState_APPSTATE_ACTIVE + return management.AppState_APPSTATE_ACTIVE case proj_model.AppStateInactive: - return AppState_APPSTATE_INACTIVE + return management.AppState_APPSTATE_INACTIVE default: - return AppState_APPSTATE_UNSPECIFIED + return management.AppState_APPSTATE_UNSPECIFIED } } -func oidcResponseTypesToModel(responseTypes []OIDCResponseType) []proj_model.OIDCResponseType { +func oidcResponseTypesToModel(responseTypes []management.OIDCResponseType) []proj_model.OIDCResponseType { if responseTypes == nil || len(responseTypes) == 0 { return []proj_model.OIDCResponseType{proj_model.OIDCResponseTypeCode} } @@ -203,11 +204,11 @@ func oidcResponseTypesToModel(responseTypes []OIDCResponseType) []proj_model.OID for i, responseType := range responseTypes { switch responseType { - case OIDCResponseType_OIDCRESPONSETYPE_CODE: + case management.OIDCResponseType_OIDCRESPONSETYPE_CODE: oidcResponseTypes[i] = proj_model.OIDCResponseTypeCode - case OIDCResponseType_OIDCRESPONSETYPE_ID_TOKEN: + case management.OIDCResponseType_OIDCRESPONSETYPE_ID_TOKEN: oidcResponseTypes[i] = proj_model.OIDCResponseTypeIDToken - case OIDCResponseType_OIDCRESPONSETYPE_TOKEN: + case management.OIDCResponseType_OIDCRESPONSETYPE_TOKEN: oidcResponseTypes[i] = proj_model.OIDCResponseTypeToken } } @@ -215,24 +216,24 @@ func oidcResponseTypesToModel(responseTypes []OIDCResponseType) []proj_model.OID return oidcResponseTypes } -func oidcResponseTypesFromModel(responseTypes []proj_model.OIDCResponseType) []OIDCResponseType { - oidcResponseTypes := make([]OIDCResponseType, len(responseTypes)) +func oidcResponseTypesFromModel(responseTypes []proj_model.OIDCResponseType) []management.OIDCResponseType { + oidcResponseTypes := make([]management.OIDCResponseType, len(responseTypes)) for i, responseType := range responseTypes { switch responseType { case proj_model.OIDCResponseTypeCode: - oidcResponseTypes[i] = OIDCResponseType_OIDCRESPONSETYPE_CODE + oidcResponseTypes[i] = management.OIDCResponseType_OIDCRESPONSETYPE_CODE case proj_model.OIDCResponseTypeIDToken: - oidcResponseTypes[i] = OIDCResponseType_OIDCRESPONSETYPE_ID_TOKEN + oidcResponseTypes[i] = management.OIDCResponseType_OIDCRESPONSETYPE_ID_TOKEN case proj_model.OIDCResponseTypeToken: - oidcResponseTypes[i] = OIDCResponseType_OIDCRESPONSETYPE_TOKEN + oidcResponseTypes[i] = management.OIDCResponseType_OIDCRESPONSETYPE_TOKEN } } return oidcResponseTypes } -func oidcGrantTypesToModel(grantTypes []OIDCGrantType) []proj_model.OIDCGrantType { +func oidcGrantTypesToModel(grantTypes []management.OIDCGrantType) []proj_model.OIDCGrantType { if grantTypes == nil || len(grantTypes) == 0 { return []proj_model.OIDCGrantType{proj_model.OIDCGrantTypeAuthorizationCode} } @@ -240,94 +241,94 @@ func oidcGrantTypesToModel(grantTypes []OIDCGrantType) []proj_model.OIDCGrantTyp for i, grantType := range grantTypes { switch grantType { - case OIDCGrantType_OIDCGRANTTYPE_AUTHORIZATION_CODE: + case management.OIDCGrantType_OIDCGRANTTYPE_AUTHORIZATION_CODE: oidcGrantTypes[i] = proj_model.OIDCGrantTypeAuthorizationCode - case OIDCGrantType_OIDCGRANTTYPE_IMPLICIT: + case management.OIDCGrantType_OIDCGRANTTYPE_IMPLICIT: oidcGrantTypes[i] = proj_model.OIDCGrantTypeImplicit - case OIDCGrantType_OIDCGRANTTYPE_REFRESH_TOKEN: + case management.OIDCGrantType_OIDCGRANTTYPE_REFRESH_TOKEN: oidcGrantTypes[i] = proj_model.OIDCGrantTypeRefreshToken } } return oidcGrantTypes } -func oidcGrantTypesFromModel(grantTypes []proj_model.OIDCGrantType) []OIDCGrantType { - oidcGrantTypes := make([]OIDCGrantType, len(grantTypes)) +func oidcGrantTypesFromModel(grantTypes []proj_model.OIDCGrantType) []management.OIDCGrantType { + oidcGrantTypes := make([]management.OIDCGrantType, len(grantTypes)) for i, grantType := range grantTypes { switch grantType { case proj_model.OIDCGrantTypeAuthorizationCode: - oidcGrantTypes[i] = OIDCGrantType_OIDCGRANTTYPE_AUTHORIZATION_CODE + oidcGrantTypes[i] = management.OIDCGrantType_OIDCGRANTTYPE_AUTHORIZATION_CODE case proj_model.OIDCGrantTypeImplicit: - oidcGrantTypes[i] = OIDCGrantType_OIDCGRANTTYPE_IMPLICIT + oidcGrantTypes[i] = management.OIDCGrantType_OIDCGRANTTYPE_IMPLICIT case proj_model.OIDCGrantTypeRefreshToken: - oidcGrantTypes[i] = OIDCGrantType_OIDCGRANTTYPE_REFRESH_TOKEN + oidcGrantTypes[i] = management.OIDCGrantType_OIDCGRANTTYPE_REFRESH_TOKEN } } return oidcGrantTypes } -func oidcApplicationTypeToModel(appType OIDCApplicationType) proj_model.OIDCApplicationType { +func oidcApplicationTypeToModel(appType management.OIDCApplicationType) proj_model.OIDCApplicationType { switch appType { - case OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB: + case management.OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB: return proj_model.OIDCApplicationTypeWeb - case OIDCApplicationType_OIDCAPPLICATIONTYPE_USER_AGENT: + case management.OIDCApplicationType_OIDCAPPLICATIONTYPE_USER_AGENT: return proj_model.OIDCApplicationTypeUserAgent - case OIDCApplicationType_OIDCAPPLICATIONTYPE_NATIVE: + case management.OIDCApplicationType_OIDCAPPLICATIONTYPE_NATIVE: return proj_model.OIDCApplicationTypeNative } return proj_model.OIDCApplicationTypeWeb } -func oidcApplicationTypeFromModel(appType proj_model.OIDCApplicationType) OIDCApplicationType { +func oidcApplicationTypeFromModel(appType proj_model.OIDCApplicationType) management.OIDCApplicationType { switch appType { case proj_model.OIDCApplicationTypeWeb: - return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB + return management.OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB case proj_model.OIDCApplicationTypeUserAgent: - return OIDCApplicationType_OIDCAPPLICATIONTYPE_USER_AGENT + return management.OIDCApplicationType_OIDCAPPLICATIONTYPE_USER_AGENT case proj_model.OIDCApplicationTypeNative: - return OIDCApplicationType_OIDCAPPLICATIONTYPE_NATIVE + return management.OIDCApplicationType_OIDCAPPLICATIONTYPE_NATIVE default: - return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB + return management.OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB } } -func oidcAuthMethodTypeToModel(authType OIDCAuthMethodType) proj_model.OIDCAuthMethodType { +func oidcAuthMethodTypeToModel(authType management.OIDCAuthMethodType) proj_model.OIDCAuthMethodType { switch authType { - case OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC: + case management.OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC: return proj_model.OIDCAuthMethodTypeBasic - case OIDCAuthMethodType_OIDCAUTHMETHODTYPE_POST: + case management.OIDCAuthMethodType_OIDCAUTHMETHODTYPE_POST: return proj_model.OIDCAuthMethodTypePost - case OIDCAuthMethodType_OIDCAUTHMETHODTYPE_NONE: + case management.OIDCAuthMethodType_OIDCAUTHMETHODTYPE_NONE: return proj_model.OIDCAuthMethodTypeNone default: return proj_model.OIDCAuthMethodTypeBasic } } -func oidcAuthMethodTypeFromModel(authType proj_model.OIDCAuthMethodType) OIDCAuthMethodType { +func oidcAuthMethodTypeFromModel(authType proj_model.OIDCAuthMethodType) management.OIDCAuthMethodType { switch authType { case proj_model.OIDCAuthMethodTypeBasic: - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC + return management.OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC case proj_model.OIDCAuthMethodTypePost: - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_POST + return management.OIDCAuthMethodType_OIDCAUTHMETHODTYPE_POST case proj_model.OIDCAuthMethodTypeNone: - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_NONE + return management.OIDCAuthMethodType_OIDCAUTHMETHODTYPE_NONE default: - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC + return management.OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC } } -func appChangesToResponse(response *proj_model.ApplicationChanges, offset uint64, limit uint64) (_ *Changes) { - return &Changes{ +func appChangesToResponse(response *proj_model.ApplicationChanges, offset uint64, limit uint64) (_ *management.Changes) { + return &management.Changes{ Limit: limit, Offset: offset, Changes: appChangesToMgtAPI(response), } } -func appChangesToMgtAPI(changes *proj_model.ApplicationChanges) (_ []*Change) { - result := make([]*Change, len(changes.Changes)) +func appChangesToMgtAPI(changes *proj_model.ApplicationChanges) (_ []*management.Change) { + result := make([]*management.Change, len(changes.Changes)) for i, change := range changes.Changes { b, err := json.Marshal(change.Data) @@ -335,7 +336,7 @@ func appChangesToMgtAPI(changes *proj_model.ApplicationChanges) (_ []*Change) { err = protojson.Unmarshal(b, data) if err != nil { } - result[i] = &Change{ + result[i] = &management.Change{ ChangeDate: change.ChangeDate, EventType: message.NewLocalizedEventType(change.EventType), Sequence: change.Sequence, diff --git a/pkg/management/api/grpc/gateway.go b/internal/api/grpc/management/gateway.go similarity index 88% rename from pkg/management/api/grpc/gateway.go rename to internal/api/grpc/management/gateway.go index 3002f0edac..d80dd3d827 100644 --- a/pkg/management/api/grpc/gateway.go +++ b/internal/api/grpc/management/gateway.go @@ -1,10 +1,13 @@ -package grpc +package management import ( + "strings" + + "github.com/grpc-ecosystem/grpc-gateway/runtime" + grpc_util "github.com/caos/zitadel/internal/api/grpc" "github.com/caos/zitadel/internal/api/grpc/server" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "strings" + "github.com/caos/zitadel/pkg/grpc/management" ) type Gateway struct { @@ -22,7 +25,7 @@ func StartGateway(conf grpc_util.GatewayConfig) *Gateway { } func (gw *Gateway) Gateway() server.GatewayFunc { - return RegisterManagementServiceHandlerFromEndpoint + return management.RegisterManagementServiceHandlerFromEndpoint } func (gw *Gateway) GRPCEndpoint() string { diff --git a/pkg/management/api/grpc/iam.go b/internal/api/grpc/management/iam.go similarity index 55% rename from pkg/management/api/grpc/iam.go rename to internal/api/grpc/management/iam.go index b728511efb..fb22e23bf1 100644 --- a/pkg/management/api/grpc/iam.go +++ b/internal/api/grpc/management/iam.go @@ -1,11 +1,14 @@ -package grpc +package management import ( "context" + "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) GetIam(ctx context.Context, _ *empty.Empty) (*Iam, error) { +func (s *Server) GetIam(ctx context.Context, _ *empty.Empty) (*management.Iam, error) { iam, err := s.iam.IamByID(ctx, s.systemDefaults.IamID) if err != nil { return nil, err diff --git a/pkg/management/api/grpc/iam_converter.go b/internal/api/grpc/management/iam_converter.go similarity index 58% rename from pkg/management/api/grpc/iam_converter.go rename to internal/api/grpc/management/iam_converter.go index 7e19653ff4..9eb4b49a7c 100644 --- a/pkg/management/api/grpc/iam_converter.go +++ b/internal/api/grpc/management/iam_converter.go @@ -1,11 +1,12 @@ -package grpc +package management import ( iam_model "github.com/caos/zitadel/internal/iam/model" + "github.com/caos/zitadel/pkg/grpc/management" ) -func iamFromModel(iam *iam_model.Iam) *Iam { - return &Iam{ +func iamFromModel(iam *iam_model.Iam) *management.Iam { + return &management.Iam{ IamProjectId: iam.IamProjectID, GlobalOrgId: iam.GlobalOrgID, SetUpDone: iam.SetUpDone, diff --git a/pkg/management/api/grpc/org.go b/internal/api/grpc/management/org.go similarity index 60% rename from pkg/management/api/grpc/org.go rename to internal/api/grpc/management/org.go index 6b87a53527..f3a9b41771 100644 --- a/pkg/management/api/grpc/org.go +++ b/internal/api/grpc/management/org.go @@ -1,21 +1,23 @@ -package grpc +package management import ( "context" - "github.com/caos/zitadel/internal/api/auth" "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) GetMyOrg(ctx context.Context, _ *empty.Empty) (*OrgView, error) { - org, err := s.org.OrgByID(ctx, auth.GetCtxData(ctx).OrgID) +func (s *Server) GetMyOrg(ctx context.Context, _ *empty.Empty) (*management.OrgView, error) { + org, err := s.org.OrgByID(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return nil, err } return orgViewFromModel(org), nil } -func (s *Server) GetOrgByDomainGlobal(ctx context.Context, in *Domain) (*OrgView, error) { +func (s *Server) GetOrgByDomainGlobal(ctx context.Context, in *management.Domain) (*management.OrgView, error) { org, err := s.org.OrgByDomainGlobal(ctx, in.Domain) if err != nil { return nil, err @@ -23,23 +25,23 @@ func (s *Server) GetOrgByDomainGlobal(ctx context.Context, in *Domain) (*OrgView return orgViewFromModel(org), nil } -func (s *Server) DeactivateMyOrg(ctx context.Context, _ *empty.Empty) (*Org, error) { - org, err := s.org.DeactivateOrg(ctx, auth.GetCtxData(ctx).OrgID) +func (s *Server) DeactivateMyOrg(ctx context.Context, _ *empty.Empty) (*management.Org, error) { + org, err := s.org.DeactivateOrg(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return nil, err } return orgFromModel(org), nil } -func (s *Server) ReactivateMyOrg(ctx context.Context, _ *empty.Empty) (*Org, error) { - org, err := s.org.ReactivateOrg(ctx, auth.GetCtxData(ctx).OrgID) +func (s *Server) ReactivateMyOrg(ctx context.Context, _ *empty.Empty) (*management.Org, error) { + org, err := s.org.ReactivateOrg(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return nil, err } return orgFromModel(org), nil } -func (s *Server) SearchMyOrgDomains(ctx context.Context, in *OrgDomainSearchRequest) (*OrgDomainSearchResponse, error) { +func (s *Server) SearchMyOrgDomains(ctx context.Context, in *management.OrgDomainSearchRequest) (*management.OrgDomainSearchResponse, error) { domains, err := s.org.SearchMyOrgDomains(ctx, orgDomainSearchRequestToModel(in)) if err != nil { return nil, err @@ -47,7 +49,7 @@ func (s *Server) SearchMyOrgDomains(ctx context.Context, in *OrgDomainSearchRequ return orgDomainSearchResponseFromModel(domains), nil } -func (s *Server) AddMyOrgDomain(ctx context.Context, in *AddOrgDomainRequest) (*OrgDomain, error) { +func (s *Server) AddMyOrgDomain(ctx context.Context, in *management.AddOrgDomainRequest) (*management.OrgDomain, error) { domain, err := s.org.AddMyOrgDomain(ctx, addOrgDomainToModel(in)) if err != nil { return nil, err @@ -55,12 +57,12 @@ func (s *Server) AddMyOrgDomain(ctx context.Context, in *AddOrgDomainRequest) (* return orgDomainFromModel(domain), nil } -func (s *Server) RemoveMyOrgDomain(ctx context.Context, in *RemoveOrgDomainRequest) (*empty.Empty, error) { +func (s *Server) RemoveMyOrgDomain(ctx context.Context, in *management.RemoveOrgDomainRequest) (*empty.Empty, error) { err := s.org.RemoveMyOrgDomain(ctx, in.Domain) return &empty.Empty{}, err } -func (s *Server) OrgChanges(ctx context.Context, changesRequest *ChangeRequest) (*Changes, error) { +func (s *Server) OrgChanges(ctx context.Context, changesRequest *management.ChangeRequest) (*management.Changes, error) { response, err := s.org.OrgChanges(ctx, changesRequest.Id, changesRequest.SequenceOffset, changesRequest.Limit, changesRequest.Asc) if err != nil { return nil, err @@ -68,7 +70,7 @@ func (s *Server) OrgChanges(ctx context.Context, changesRequest *ChangeRequest) return orgChangesToResponse(response, changesRequest.GetSequenceOffset(), changesRequest.GetLimit()), nil } -func (s *Server) GetMyOrgIamPolicy(ctx context.Context, _ *empty.Empty) (_ *OrgIamPolicy, err error) { +func (s *Server) GetMyOrgIamPolicy(ctx context.Context, _ *empty.Empty) (_ *management.OrgIamPolicy, err error) { policy, err := s.org.GetMyOrgIamPolicy(ctx) if err != nil { return nil, err diff --git a/pkg/management/api/grpc/org_converter.go b/internal/api/grpc/management/org_converter.go similarity index 67% rename from pkg/management/api/grpc/org_converter.go rename to internal/api/grpc/management/org_converter.go index b1b667bd2c..540c802806 100644 --- a/pkg/management/api/grpc/org_converter.go +++ b/internal/api/grpc/management/org_converter.go @@ -1,33 +1,34 @@ -package grpc +package management import ( "encoding/json" "github.com/caos/logging" - org_model "github.com/caos/zitadel/internal/org/model" - "github.com/caos/zitadel/pkg/message" - "github.com/golang/protobuf/ptypes" "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/types/known/structpb" + + org_model "github.com/caos/zitadel/internal/org/model" + "github.com/caos/zitadel/pkg/grpc/management" + "github.com/caos/zitadel/pkg/grpc/message" ) -func orgsFromModel(orgs []*org_model.Org) []*Org { - orgList := make([]*Org, len(orgs)) +func orgsFromModel(orgs []*org_model.Org) []*management.Org { + orgList := make([]*management.Org, len(orgs)) for i, org := range orgs { orgList[i] = orgFromModel(org) } return orgList } -func orgFromModel(org *org_model.Org) *Org { +func orgFromModel(org *org_model.Org) *management.Org { creationDate, err := ptypes.TimestampProto(org.CreationDate) logging.Log("GRPC-GTHsZ").OnError(err).Debug("unable to get timestamp from time") changeDate, err := ptypes.TimestampProto(org.ChangeDate) logging.Log("GRPC-dVnoj").OnError(err).Debug("unable to get timestamp from time") - return &Org{ + return &management.Org{ ChangeDate: changeDate, CreationDate: creationDate, Id: org.AggregateID, @@ -36,14 +37,14 @@ func orgFromModel(org *org_model.Org) *Org { } } -func orgViewFromModel(org *org_model.OrgView) *OrgView { +func orgViewFromModel(org *org_model.OrgView) *management.OrgView { creationDate, err := ptypes.TimestampProto(org.CreationDate) logging.Log("GRPC-GTHsZ").OnError(err).Debug("unable to get timestamp from time") changeDate, err := ptypes.TimestampProto(org.ChangeDate) logging.Log("GRPC-dVnoj").OnError(err).Debug("unable to get timestamp from time") - return &OrgView{ + return &management.OrgView{ ChangeDate: changeDate, CreationDate: creationDate, Id: org.ID, @@ -52,29 +53,29 @@ func orgViewFromModel(org *org_model.OrgView) *OrgView { } } -func orgStateFromModel(state org_model.OrgState) OrgState { +func orgStateFromModel(state org_model.OrgState) management.OrgState { switch state { case org_model.OrgStateActive: - return OrgState_ORGSTATE_ACTIVE + return management.OrgState_ORGSTATE_ACTIVE case org_model.OrgStateInactive: - return OrgState_ORGSTATE_INACTIVE + return management.OrgState_ORGSTATE_INACTIVE default: - return OrgState_ORGSTATE_UNSPECIFIED + return management.OrgState_ORGSTATE_UNSPECIFIED } } -func addOrgDomainToModel(domain *AddOrgDomainRequest) *org_model.OrgDomain { +func addOrgDomainToModel(domain *management.AddOrgDomainRequest) *org_model.OrgDomain { return &org_model.OrgDomain{Domain: domain.Domain} } -func orgDomainFromModel(domain *org_model.OrgDomain) *OrgDomain { +func orgDomainFromModel(domain *org_model.OrgDomain) *management.OrgDomain { creationDate, err := ptypes.TimestampProto(domain.CreationDate) logging.Log("GRPC-u8Ksj").OnError(err).Debug("unable to get timestamp from time") changeDate, err := ptypes.TimestampProto(domain.ChangeDate) logging.Log("GRPC-9osFS").OnError(err).Debug("unable to get timestamp from time") - return &OrgDomain{ + return &management.OrgDomain{ ChangeDate: changeDate, CreationDate: creationDate, OrgId: domain.AggregateID, @@ -84,14 +85,14 @@ func orgDomainFromModel(domain *org_model.OrgDomain) *OrgDomain { } } -func orgDomainViewFromModel(domain *org_model.OrgDomainView) *OrgDomainView { +func orgDomainViewFromModel(domain *org_model.OrgDomainView) *management.OrgDomainView { creationDate, err := ptypes.TimestampProto(domain.CreationDate) logging.Log("GRPC-7sjDs").OnError(err).Debug("unable to get timestamp from time") changeDate, err := ptypes.TimestampProto(domain.ChangeDate) logging.Log("GRPC-8iSji").OnError(err).Debug("unable to get timestamp from time") - return &OrgDomainView{ + return &management.OrgDomainView{ ChangeDate: changeDate, CreationDate: creationDate, OrgId: domain.OrgID, @@ -101,7 +102,7 @@ func orgDomainViewFromModel(domain *org_model.OrgDomainView) *OrgDomainView { } } -func orgDomainSearchRequestToModel(request *OrgDomainSearchRequest) *org_model.OrgDomainSearchRequest { +func orgDomainSearchRequestToModel(request *management.OrgDomainSearchRequest) *org_model.OrgDomainSearchRequest { return &org_model.OrgDomainSearchRequest{ Limit: request.Limit, Offset: request.Offset, @@ -109,7 +110,7 @@ func orgDomainSearchRequestToModel(request *OrgDomainSearchRequest) *org_model.O } } -func orgDomainSearchQueriesToModel(queries []*OrgDomainSearchQuery) []*org_model.OrgDomainSearchQuery { +func orgDomainSearchQueriesToModel(queries []*management.OrgDomainSearchQuery) []*org_model.OrgDomainSearchQuery { modelQueries := make([]*org_model.OrgDomainSearchQuery, len(queries)) for i, query := range queries { @@ -119,7 +120,7 @@ func orgDomainSearchQueriesToModel(queries []*OrgDomainSearchQuery) []*org_model return modelQueries } -func orgDomainSearchQueryToModel(query *OrgDomainSearchQuery) *org_model.OrgDomainSearchQuery { +func orgDomainSearchQueryToModel(query *management.OrgDomainSearchQuery) *org_model.OrgDomainSearchQuery { return &org_model.OrgDomainSearchQuery{ Key: orgDomainSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -127,25 +128,25 @@ func orgDomainSearchQueryToModel(query *OrgDomainSearchQuery) *org_model.OrgDoma } } -func orgDomainSearchKeyToModel(key OrgDomainSearchKey) org_model.OrgDomainSearchKey { +func orgDomainSearchKeyToModel(key management.OrgDomainSearchKey) org_model.OrgDomainSearchKey { switch key { - case OrgDomainSearchKey_ORGDOMAINSEARCHKEY_DOMAIN: + case management.OrgDomainSearchKey_ORGDOMAINSEARCHKEY_DOMAIN: return org_model.OrgDomainSearchKeyDomain default: return org_model.OrgDomainSearchKeyUnspecified } } -func orgDomainSearchResponseFromModel(resp *org_model.OrgDomainSearchResponse) *OrgDomainSearchResponse { - return &OrgDomainSearchResponse{ +func orgDomainSearchResponseFromModel(resp *org_model.OrgDomainSearchResponse) *management.OrgDomainSearchResponse { + return &management.OrgDomainSearchResponse{ Limit: resp.Limit, Offset: resp.Offset, TotalResult: resp.TotalResult, Result: orgDomainsFromModel(resp.Result), } } -func orgDomainsFromModel(viewDomains []*org_model.OrgDomainView) []*OrgDomainView { - domains := make([]*OrgDomainView, len(viewDomains)) +func orgDomainsFromModel(viewDomains []*org_model.OrgDomainView) []*management.OrgDomainView { + domains := make([]*management.OrgDomainView, len(viewDomains)) for i, domain := range viewDomains { domains[i] = orgDomainViewFromModel(domain) @@ -154,16 +155,16 @@ func orgDomainsFromModel(viewDomains []*org_model.OrgDomainView) []*OrgDomainVie return domains } -func orgChangesToResponse(response *org_model.OrgChanges, offset uint64, limit uint64) (_ *Changes) { - return &Changes{ +func orgChangesToResponse(response *org_model.OrgChanges, offset uint64, limit uint64) (_ *management.Changes) { + return &management.Changes{ Limit: limit, Offset: offset, Changes: orgChangesToMgtAPI(response), } } -func orgChangesToMgtAPI(changes *org_model.OrgChanges) (_ []*Change) { - result := make([]*Change, len(changes.Changes)) +func orgChangesToMgtAPI(changes *org_model.OrgChanges) (_ []*management.Change) { + result := make([]*management.Change, len(changes.Changes)) for i, change := range changes.Changes { b, err := json.Marshal(change.Data) @@ -171,7 +172,7 @@ func orgChangesToMgtAPI(changes *org_model.OrgChanges) (_ []*Change) { err = protojson.Unmarshal(b, data) if err != nil { } - result[i] = &Change{ + result[i] = &management.Change{ ChangeDate: change.ChangeDate, EventType: message.NewLocalizedEventType(change.EventType), Sequence: change.Sequence, @@ -184,8 +185,8 @@ func orgChangesToMgtAPI(changes *org_model.OrgChanges) (_ []*Change) { return result } -func orgIamPolicyFromModel(policy *org_model.OrgIamPolicy) *OrgIamPolicy { - return &OrgIamPolicy{ +func orgIamPolicyFromModel(policy *org_model.OrgIamPolicy) *management.OrgIamPolicy { + return &management.OrgIamPolicy{ OrgId: policy.AggregateID, Description: policy.Description, UserLoginMustBeDomain: policy.UserLoginMustBeDomain, diff --git a/pkg/management/api/grpc/org_member.go b/internal/api/grpc/management/org_member.go similarity index 59% rename from pkg/management/api/grpc/org_member.go rename to internal/api/grpc/management/org_member.go index 69269232e5..e8ceba20ea 100644 --- a/pkg/management/api/grpc/org_member.go +++ b/internal/api/grpc/management/org_member.go @@ -1,16 +1,18 @@ -package grpc +package management import ( "context" "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) GetOrgMemberRoles(ctx context.Context, _ *empty.Empty) (*OrgMemberRoles, error) { - return &OrgMemberRoles{Roles: s.org.GetOrgMemberRoles()}, nil +func (s *Server) GetOrgMemberRoles(ctx context.Context, _ *empty.Empty) (*management.OrgMemberRoles, error) { + return &management.OrgMemberRoles{Roles: s.org.GetOrgMemberRoles()}, nil } -func (s *Server) SearchMyOrgMembers(ctx context.Context, in *OrgMemberSearchRequest) (*OrgMemberSearchResponse, error) { +func (s *Server) SearchMyOrgMembers(ctx context.Context, in *management.OrgMemberSearchRequest) (*management.OrgMemberSearchResponse, error) { members, err := s.org.SearchMyOrgMembers(ctx, orgMemberSearchRequestToModel(in)) if err != nil { return nil, err @@ -18,7 +20,7 @@ func (s *Server) SearchMyOrgMembers(ctx context.Context, in *OrgMemberSearchRequ return orgMemberSearchResponseFromModel(members), nil } -func (s *Server) AddMyOrgMember(ctx context.Context, member *AddOrgMemberRequest) (*OrgMember, error) { +func (s *Server) AddMyOrgMember(ctx context.Context, member *management.AddOrgMemberRequest) (*management.OrgMember, error) { addedMember, err := s.org.AddMyOrgMember(ctx, addOrgMemberToModel(member)) if err != nil { return nil, err @@ -27,7 +29,7 @@ func (s *Server) AddMyOrgMember(ctx context.Context, member *AddOrgMemberRequest return orgMemberFromModel(addedMember), nil } -func (s *Server) ChangeMyOrgMember(ctx context.Context, member *ChangeOrgMemberRequest) (*OrgMember, error) { +func (s *Server) ChangeMyOrgMember(ctx context.Context, member *management.ChangeOrgMemberRequest) (*management.OrgMember, error) { changedMember, err := s.org.ChangeMyOrgMember(ctx, changeOrgMemberToModel(member)) if err != nil { return nil, err @@ -35,7 +37,7 @@ func (s *Server) ChangeMyOrgMember(ctx context.Context, member *ChangeOrgMemberR return orgMemberFromModel(changedMember), nil } -func (s *Server) RemoveMyOrgMember(ctx context.Context, member *RemoveOrgMemberRequest) (*empty.Empty, error) { +func (s *Server) RemoveMyOrgMember(ctx context.Context, member *management.RemoveOrgMemberRequest) (*empty.Empty, error) { err := s.org.RemoveMyOrgMember(ctx, member.UserId) return &empty.Empty{}, err } diff --git a/pkg/management/api/grpc/org_member_converter.go b/internal/api/grpc/management/org_member_converter.go similarity index 61% rename from pkg/management/api/grpc/org_member_converter.go rename to internal/api/grpc/management/org_member_converter.go index a3e1e1d6f2..be314e3866 100644 --- a/pkg/management/api/grpc/org_member_converter.go +++ b/internal/api/grpc/management/org_member_converter.go @@ -1,13 +1,15 @@ -package grpc +package management import ( "github.com/caos/logging" + "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/internal/model" org_model "github.com/caos/zitadel/internal/org/model" - "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/pkg/grpc/management" ) -func addOrgMemberToModel(member *AddOrgMemberRequest) *org_model.OrgMember { +func addOrgMemberToModel(member *management.AddOrgMemberRequest) *org_model.OrgMember { memberModel := &org_model.OrgMember{ UserID: member.UserId, } @@ -16,7 +18,7 @@ func addOrgMemberToModel(member *AddOrgMemberRequest) *org_model.OrgMember { return memberModel } -func changeOrgMemberToModel(member *ChangeOrgMemberRequest) *org_model.OrgMember { +func changeOrgMemberToModel(member *management.ChangeOrgMemberRequest) *org_model.OrgMember { memberModel := &org_model.OrgMember{ UserID: member.UserId, } @@ -25,14 +27,14 @@ func changeOrgMemberToModel(member *ChangeOrgMemberRequest) *org_model.OrgMember return memberModel } -func orgMemberFromModel(member *org_model.OrgMember) *OrgMember { +func orgMemberFromModel(member *org_model.OrgMember) *management.OrgMember { creationDate, err := ptypes.TimestampProto(member.CreationDate) logging.Log("GRPC-jC5wY").OnError(err).Debug("date parse failed") changeDate, err := ptypes.TimestampProto(member.ChangeDate) logging.Log("GRPC-Nc2jJ").OnError(err).Debug("date parse failed") - return &OrgMember{ + return &management.OrgMember{ UserId: member.UserID, CreationDate: creationDate, ChangeDate: changeDate, @@ -41,7 +43,7 @@ func orgMemberFromModel(member *org_model.OrgMember) *OrgMember { } } -func orgMemberSearchRequestToModel(request *OrgMemberSearchRequest) *org_model.OrgMemberSearchRequest { +func orgMemberSearchRequestToModel(request *management.OrgMemberSearchRequest) *org_model.OrgMemberSearchRequest { return &org_model.OrgMemberSearchRequest{ Limit: request.Limit, Offset: request.Offset, @@ -49,7 +51,7 @@ func orgMemberSearchRequestToModel(request *OrgMemberSearchRequest) *org_model.O } } -func orgMemberSearchQueriesToModel(queries []*OrgMemberSearchQuery) []*org_model.OrgMemberSearchQuery { +func orgMemberSearchQueriesToModel(queries []*management.OrgMemberSearchQuery) []*org_model.OrgMemberSearchQuery { modelQueries := make([]*org_model.OrgMemberSearchQuery, len(queries)+1) for i, query := range queries { @@ -59,7 +61,7 @@ func orgMemberSearchQueriesToModel(queries []*OrgMemberSearchQuery) []*org_model return modelQueries } -func orgMemberSearchQueryToModel(query *OrgMemberSearchQuery) *org_model.OrgMemberSearchQuery { +func orgMemberSearchQueryToModel(query *management.OrgMemberSearchQuery) *org_model.OrgMemberSearchQuery { return &org_model.OrgMemberSearchQuery{ Key: orgMemberSearchKeyToModel(query.Key), Method: orgMemberSearchMethodToModel(query.Method), @@ -67,50 +69,50 @@ func orgMemberSearchQueryToModel(query *OrgMemberSearchQuery) *org_model.OrgMemb } } -func orgMemberSearchKeyToModel(key OrgMemberSearchKey) org_model.OrgMemberSearchKey { +func orgMemberSearchKeyToModel(key management.OrgMemberSearchKey) org_model.OrgMemberSearchKey { switch key { - case OrgMemberSearchKey_ORGMEMBERSEARCHKEY_EMAIL: + case management.OrgMemberSearchKey_ORGMEMBERSEARCHKEY_EMAIL: return org_model.OrgMemberSearchKeyEmail - case OrgMemberSearchKey_ORGMEMBERSEARCHKEY_FIRST_NAME: + case management.OrgMemberSearchKey_ORGMEMBERSEARCHKEY_FIRST_NAME: return org_model.OrgMemberSearchKeyFirstName - case OrgMemberSearchKey_ORGMEMBERSEARCHKEY_LAST_NAME: + case management.OrgMemberSearchKey_ORGMEMBERSEARCHKEY_LAST_NAME: return org_model.OrgMemberSearchKeyLastName - case OrgMemberSearchKey_ORGMEMBERSEARCHKEY_USER_ID: + case management.OrgMemberSearchKey_ORGMEMBERSEARCHKEY_USER_ID: return org_model.OrgMemberSearchKeyUserID default: return org_model.OrgMemberSearchKeyUnspecified } } -func orgMemberSearchMethodToModel(key SearchMethod) model.SearchMethod { +func orgMemberSearchMethodToModel(key management.SearchMethod) model.SearchMethod { switch key { - case SearchMethod_SEARCHMETHOD_CONTAINS: + case management.SearchMethod_SEARCHMETHOD_CONTAINS: return model.SearchMethodContains - case SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE: + case management.SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE: return model.SearchMethodContainsIgnoreCase - case SearchMethod_SEARCHMETHOD_EQUALS: + case management.SearchMethod_SEARCHMETHOD_EQUALS: return model.SearchMethodEquals - case SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE: + case management.SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE: return model.SearchMethodEqualsIgnoreCase - case SearchMethod_SEARCHMETHOD_STARTS_WITH: + case management.SearchMethod_SEARCHMETHOD_STARTS_WITH: return model.SearchMethodStartsWith - case SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE: + case management.SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE: return model.SearchMethodStartsWithIgnoreCase default: return -1 } } -func orgMemberSearchResponseFromModel(resp *org_model.OrgMemberSearchResponse) *OrgMemberSearchResponse { - return &OrgMemberSearchResponse{ +func orgMemberSearchResponseFromModel(resp *org_model.OrgMemberSearchResponse) *management.OrgMemberSearchResponse { + return &management.OrgMemberSearchResponse{ Limit: resp.Limit, Offset: resp.Offset, TotalResult: resp.TotalResult, Result: orgMembersFromView(resp.Result), } } -func orgMembersFromView(viewMembers []*org_model.OrgMemberView) []*OrgMemberView { - members := make([]*OrgMemberView, len(viewMembers)) +func orgMembersFromView(viewMembers []*org_model.OrgMemberView) []*management.OrgMemberView { + members := make([]*management.OrgMemberView, len(viewMembers)) for i, member := range viewMembers { members[i] = orgMemberFromView(member) @@ -119,13 +121,13 @@ func orgMembersFromView(viewMembers []*org_model.OrgMemberView) []*OrgMemberView return members } -func orgMemberFromView(member *org_model.OrgMemberView) *OrgMemberView { +func orgMemberFromView(member *org_model.OrgMemberView) *management.OrgMemberView { changeDate, err := ptypes.TimestampProto(member.ChangeDate) logging.Log("GRPC-S9LAZ").OnError(err).Debug("unable to parse changedate") creationDate, err := ptypes.TimestampProto(member.CreationDate) logging.Log("GRPC-oJN56").OnError(err).Debug("unable to parse creation date") - return &OrgMemberView{ + return &management.OrgMemberView{ ChangeDate: changeDate, CreationDate: creationDate, Roles: member.Roles, diff --git a/pkg/management/api/grpc/policy.go b/internal/api/grpc/management/policy.go similarity index 73% rename from pkg/management/api/grpc/policy.go rename to internal/api/grpc/management/policy.go index aa2932fdd6..0fbb79c188 100644 --- a/pkg/management/api/grpc/policy.go +++ b/internal/api/grpc/management/policy.go @@ -1,13 +1,15 @@ -package grpc +package management import ( "context" - "github.com/caos/zitadel/internal/errors" "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/internal/errors" + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) CreatePasswordComplexityPolicy(ctx context.Context, policy *PasswordComplexityPolicyCreate) (*PasswordComplexityPolicy, error) { +func (s *Server) CreatePasswordComplexityPolicy(ctx context.Context, policy *management.PasswordComplexityPolicyCreate) (*management.PasswordComplexityPolicy, error) { policyresp, err := s.policy.CreatePasswordComplexityPolicy(ctx, passwordComplexityPolicyCreateToModel(policy)) if err != nil { return nil, err @@ -16,7 +18,7 @@ func (s *Server) CreatePasswordComplexityPolicy(ctx context.Context, policy *Pas return passwordComplexityPolicyFromModel(policyresp), nil } -func (s *Server) GetPasswordComplexityPolicy(ctx context.Context, _ *empty.Empty) (*PasswordComplexityPolicy, error) { +func (s *Server) GetPasswordComplexityPolicy(ctx context.Context, _ *empty.Empty) (*management.PasswordComplexityPolicy, error) { policy, err := s.policy.GetPasswordComplexityPolicy(ctx) if err != nil { return nil, err @@ -25,7 +27,7 @@ func (s *Server) GetPasswordComplexityPolicy(ctx context.Context, _ *empty.Empty return passwordComplexityPolicyFromModel(policy), nil } -func (s *Server) UpdatePasswordComplexityPolicy(ctx context.Context, policy *PasswordComplexityPolicyUpdate) (*PasswordComplexityPolicy, error) { +func (s *Server) UpdatePasswordComplexityPolicy(ctx context.Context, policy *management.PasswordComplexityPolicyUpdate) (*management.PasswordComplexityPolicy, error) { policyresp, err := s.policy.UpdatePasswordComplexityPolicy(ctx, passwordComplexityPolicyUpdateToModel(policy)) if err != nil { return nil, err @@ -34,11 +36,11 @@ func (s *Server) UpdatePasswordComplexityPolicy(ctx context.Context, policy *Pas return passwordComplexityPolicyFromModel(policyresp), nil } -func (s *Server) DeletePasswordComplexityPolicy(ctx context.Context, ID *PasswordComplexityPolicyID) (*empty.Empty, error) { +func (s *Server) DeletePasswordComplexityPolicy(ctx context.Context, ID *management.PasswordComplexityPolicyID) (*empty.Empty, error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-skw3f", "Not implemented") } -func (s *Server) CreatePasswordAgePolicy(ctx context.Context, policy *PasswordAgePolicyCreate) (*PasswordAgePolicy, error) { +func (s *Server) CreatePasswordAgePolicy(ctx context.Context, policy *management.PasswordAgePolicyCreate) (*management.PasswordAgePolicy, error) { policyresp, err := s.policy.CreatePasswordAgePolicy(ctx, passwordAgePolicyCreateToModel(policy)) if err != nil { return nil, err @@ -47,7 +49,7 @@ func (s *Server) CreatePasswordAgePolicy(ctx context.Context, policy *PasswordAg return passwordAgePolicyFromModel(policyresp), nil } -func (s *Server) GetPasswordAgePolicy(ctx context.Context, _ *empty.Empty) (*PasswordAgePolicy, error) { +func (s *Server) GetPasswordAgePolicy(ctx context.Context, _ *empty.Empty) (*management.PasswordAgePolicy, error) { policy, err := s.policy.GetPasswordAgePolicy(ctx) if err != nil { return nil, err @@ -56,7 +58,7 @@ func (s *Server) GetPasswordAgePolicy(ctx context.Context, _ *empty.Empty) (*Pas return passwordAgePolicyFromModel(policy), nil } -func (s *Server) UpdatePasswordAgePolicy(ctx context.Context, policy *PasswordAgePolicyUpdate) (*PasswordAgePolicy, error) { +func (s *Server) UpdatePasswordAgePolicy(ctx context.Context, policy *management.PasswordAgePolicyUpdate) (*management.PasswordAgePolicy, error) { policyresp, err := s.policy.UpdatePasswordAgePolicy(ctx, passwordAgePolicyUpdateToModel(policy)) if err != nil { return nil, err @@ -65,11 +67,11 @@ func (s *Server) UpdatePasswordAgePolicy(ctx context.Context, policy *PasswordAg return passwordAgePolicyFromModel(policyresp), nil } -func (s *Server) DeletePasswordAgePolicy(ctx context.Context, ID *PasswordAgePolicyID) (*empty.Empty, error) { +func (s *Server) DeletePasswordAgePolicy(ctx context.Context, ID *management.PasswordAgePolicyID) (*empty.Empty, error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-plo67", "Not implemented") } -func (s *Server) CreatePasswordLockoutPolicy(ctx context.Context, policy *PasswordLockoutPolicyCreate) (*PasswordLockoutPolicy, error) { +func (s *Server) CreatePasswordLockoutPolicy(ctx context.Context, policy *management.PasswordLockoutPolicyCreate) (*management.PasswordLockoutPolicy, error) { policyresp, err := s.policy.CreatePasswordLockoutPolicy(ctx, passwordLockoutPolicyCreateToModel(policy)) if err != nil { return nil, err @@ -78,7 +80,7 @@ func (s *Server) CreatePasswordLockoutPolicy(ctx context.Context, policy *Passwo return passwordLockoutPolicyFromModel(policyresp), nil } -func (s *Server) GetPasswordLockoutPolicy(ctx context.Context, _ *empty.Empty) (*PasswordLockoutPolicy, error) { +func (s *Server) GetPasswordLockoutPolicy(ctx context.Context, _ *empty.Empty) (*management.PasswordLockoutPolicy, error) { policy, err := s.policy.GetPasswordLockoutPolicy(ctx) if err != nil { return nil, err @@ -87,7 +89,7 @@ func (s *Server) GetPasswordLockoutPolicy(ctx context.Context, _ *empty.Empty) ( return passwordLockoutPolicyFromModel(policy), nil } -func (s *Server) UpdatePasswordLockoutPolicy(ctx context.Context, policy *PasswordLockoutPolicyUpdate) (*PasswordLockoutPolicy, error) { +func (s *Server) UpdatePasswordLockoutPolicy(ctx context.Context, policy *management.PasswordLockoutPolicyUpdate) (*management.PasswordLockoutPolicy, error) { policyresp, err := s.policy.UpdatePasswordLockoutPolicy(ctx, passwordLockoutPolicyUpdateToModel(policy)) if err != nil { return nil, err @@ -96,6 +98,6 @@ func (s *Server) UpdatePasswordLockoutPolicy(ctx context.Context, policy *Passwo return passwordLockoutPolicyFromModel(policyresp), nil } -func (s *Server) DeletePasswordLockoutPolicy(ctx context.Context, ID *PasswordLockoutPolicyID) (*empty.Empty, error) { +func (s *Server) DeletePasswordLockoutPolicy(ctx context.Context, ID *management.PasswordLockoutPolicyID) (*empty.Empty, error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-GHkd9", "Not implemented") } diff --git a/pkg/management/api/grpc/policy_age_converter.go b/internal/api/grpc/management/policy_age_converter.go similarity index 79% rename from pkg/management/api/grpc/policy_age_converter.go rename to internal/api/grpc/management/policy_age_converter.go index aa6dd9461d..3ee08f07df 100644 --- a/pkg/management/api/grpc/policy_age_converter.go +++ b/internal/api/grpc/management/policy_age_converter.go @@ -1,20 +1,22 @@ -package grpc +package management import ( "github.com/caos/logging" + "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/policy/model" - "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/pkg/grpc/management" ) -func passwordAgePolicyFromModel(policy *model.PasswordAgePolicy) *PasswordAgePolicy { +func passwordAgePolicyFromModel(policy *model.PasswordAgePolicy) *management.PasswordAgePolicy { creationDate, err := ptypes.TimestampProto(policy.CreationDate) logging.Log("GRPC-6ILdB").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(policy.ChangeDate) logging.Log("GRPC-ngUzJ").OnError(err).Debug("unable to parse timestamp") - return &PasswordAgePolicy{ + return &management.PasswordAgePolicy{ Id: policy.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -26,7 +28,7 @@ func passwordAgePolicyFromModel(policy *model.PasswordAgePolicy) *PasswordAgePol } } -func passwordAgePolicyToModel(policy *PasswordAgePolicy) *model.PasswordAgePolicy { +func passwordAgePolicyToModel(policy *management.PasswordAgePolicy) *model.PasswordAgePolicy { creationDate, err := ptypes.Timestamp(policy.CreationDate) logging.Log("GRPC-2QSfU").OnError(err).Debug("unable to parse timestamp") @@ -46,7 +48,7 @@ func passwordAgePolicyToModel(policy *PasswordAgePolicy) *model.PasswordAgePolic } } -func passwordAgePolicyCreateToModel(policy *PasswordAgePolicyCreate) *model.PasswordAgePolicy { +func passwordAgePolicyCreateToModel(policy *management.PasswordAgePolicyCreate) *model.PasswordAgePolicy { return &model.PasswordAgePolicy{ Description: policy.Description, ExpireWarnDays: policy.ExpireWarnDays, @@ -54,7 +56,7 @@ func passwordAgePolicyCreateToModel(policy *PasswordAgePolicyCreate) *model.Pass } } -func passwordAgePolicyUpdateToModel(policy *PasswordAgePolicyUpdate) *model.PasswordAgePolicy { +func passwordAgePolicyUpdateToModel(policy *management.PasswordAgePolicyUpdate) *model.PasswordAgePolicy { return &model.PasswordAgePolicy{ ObjectRoot: models.ObjectRoot{ AggregateID: policy.Id, diff --git a/pkg/management/api/grpc/policy_complexity_converter.go b/internal/api/grpc/management/policy_complexity_converter.go similarity index 80% rename from pkg/management/api/grpc/policy_complexity_converter.go rename to internal/api/grpc/management/policy_complexity_converter.go index d65d372ca0..60d7339a44 100644 --- a/pkg/management/api/grpc/policy_complexity_converter.go +++ b/internal/api/grpc/management/policy_complexity_converter.go @@ -1,20 +1,23 @@ -package grpc +package management import ( "github.com/caos/logging" + + "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/policy/model" - "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/pkg/grpc/management" ) -func passwordComplexityPolicyFromModel(policy *model.PasswordComplexityPolicy) *PasswordComplexityPolicy { +func passwordComplexityPolicyFromModel(policy *model.PasswordComplexityPolicy) *management.PasswordComplexityPolicy { creationDate, err := ptypes.TimestampProto(policy.CreationDate) logging.Log("GRPC-cQRHE").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(policy.ChangeDate) logging.Log("GRPC-PVA1c").OnError(err).Debug("unable to parse timestamp") - return &PasswordComplexityPolicy{ + return &management.PasswordComplexityPolicy{ Id: policy.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -29,7 +32,7 @@ func passwordComplexityPolicyFromModel(policy *model.PasswordComplexityPolicy) * } } -func passwordComplexityPolicyToModel(policy *PasswordComplexityPolicy) *model.PasswordComplexityPolicy { +func passwordComplexityPolicyToModel(policy *management.PasswordComplexityPolicy) *model.PasswordComplexityPolicy { creationDate, err := ptypes.Timestamp(policy.CreationDate) logging.Log("GRPC-asmEZ").OnError(err).Debug("unable to parse timestamp") @@ -52,7 +55,7 @@ func passwordComplexityPolicyToModel(policy *PasswordComplexityPolicy) *model.Pa } } -func passwordComplexityPolicyCreateToModel(policy *PasswordComplexityPolicyCreate) *model.PasswordComplexityPolicy { +func passwordComplexityPolicyCreateToModel(policy *management.PasswordComplexityPolicyCreate) *model.PasswordComplexityPolicy { return &model.PasswordComplexityPolicy{ Description: policy.Description, MinLength: policy.MinLength, @@ -63,7 +66,7 @@ func passwordComplexityPolicyCreateToModel(policy *PasswordComplexityPolicyCreat } } -func passwordComplexityPolicyUpdateToModel(policy *PasswordComplexityPolicyUpdate) *model.PasswordComplexityPolicy { +func passwordComplexityPolicyUpdateToModel(policy *management.PasswordComplexityPolicyUpdate) *model.PasswordComplexityPolicy { return &model.PasswordComplexityPolicy{ ObjectRoot: models.ObjectRoot{ AggregateID: policy.Id, diff --git a/pkg/management/api/grpc/policy_lockout_converter.go b/internal/api/grpc/management/policy_lockout_converter.go similarity index 79% rename from pkg/management/api/grpc/policy_lockout_converter.go rename to internal/api/grpc/management/policy_lockout_converter.go index b05a652df5..0c44ff1350 100644 --- a/pkg/management/api/grpc/policy_lockout_converter.go +++ b/internal/api/grpc/management/policy_lockout_converter.go @@ -1,20 +1,23 @@ -package grpc +package management import ( "github.com/caos/logging" + + "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/policy/model" - "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/pkg/grpc/management" ) -func passwordLockoutPolicyFromModel(policy *model.PasswordLockoutPolicy) *PasswordLockoutPolicy { +func passwordLockoutPolicyFromModel(policy *model.PasswordLockoutPolicy) *management.PasswordLockoutPolicy { creationDate, err := ptypes.TimestampProto(policy.CreationDate) logging.Log("GRPC-JRSbT").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(policy.ChangeDate) logging.Log("GRPC-1sizr").OnError(err).Debug("unable to parse timestamp") - return &PasswordLockoutPolicy{ + return &management.PasswordLockoutPolicy{ Id: policy.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -26,7 +29,7 @@ func passwordLockoutPolicyFromModel(policy *model.PasswordLockoutPolicy) *Passwo } } -func passwordLockoutPolicyToModel(policy *PasswordLockoutPolicy) *model.PasswordLockoutPolicy { +func passwordLockoutPolicyToModel(policy *management.PasswordLockoutPolicy) *model.PasswordLockoutPolicy { creationDate, err := ptypes.Timestamp(policy.CreationDate) logging.Log("GRPC-8a511").OnError(err).Debug("unable to parse timestamp") @@ -47,7 +50,7 @@ func passwordLockoutPolicyToModel(policy *PasswordLockoutPolicy) *model.Password } } -func passwordLockoutPolicyCreateToModel(policy *PasswordLockoutPolicyCreate) *model.PasswordLockoutPolicy { +func passwordLockoutPolicyCreateToModel(policy *management.PasswordLockoutPolicyCreate) *model.PasswordLockoutPolicy { return &model.PasswordLockoutPolicy{ Description: policy.Description, MaxAttempts: policy.MaxAttempts, @@ -55,7 +58,7 @@ func passwordLockoutPolicyCreateToModel(policy *PasswordLockoutPolicyCreate) *mo } } -func passwordLockoutPolicyUpdateToModel(policy *PasswordLockoutPolicyUpdate) *model.PasswordLockoutPolicy { +func passwordLockoutPolicyUpdateToModel(policy *management.PasswordLockoutPolicyUpdate) *model.PasswordLockoutPolicy { return &model.PasswordLockoutPolicy{ ObjectRoot: models.ObjectRoot{ AggregateID: policy.Id, diff --git a/pkg/management/api/grpc/probes.go b/internal/api/grpc/management/probes.go similarity index 97% rename from pkg/management/api/grpc/probes.go rename to internal/api/grpc/management/probes.go index 3debbea5e2..6f6e3173f5 100644 --- a/pkg/management/api/grpc/probes.go +++ b/internal/api/grpc/management/probes.go @@ -1,4 +1,4 @@ -package grpc +package management import ( "context" diff --git a/pkg/management/api/grpc/project.go b/internal/api/grpc/management/project.go similarity index 57% rename from pkg/management/api/grpc/project.go rename to internal/api/grpc/management/project.go index a92aa8beca..86b4b27429 100644 --- a/pkg/management/api/grpc/project.go +++ b/internal/api/grpc/management/project.go @@ -1,36 +1,38 @@ -package grpc +package management import ( "context" - "github.com/caos/zitadel/internal/api" - "github.com/caos/zitadel/internal/api/auth" - grpc_util "github.com/caos/zitadel/internal/api/grpc" "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/internal/api/authz" + grpc_util "github.com/caos/zitadel/internal/api/grpc" + "github.com/caos/zitadel/internal/api/http" + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) CreateProject(ctx context.Context, in *ProjectCreateRequest) (*Project, error) { +func (s *Server) CreateProject(ctx context.Context, in *management.ProjectCreateRequest) (*management.Project, error) { project, err := s.project.CreateProject(ctx, in.Name) if err != nil { return nil, err } return projectFromModel(project), nil } -func (s *Server) UpdateProject(ctx context.Context, in *ProjectUpdateRequest) (*Project, error) { +func (s *Server) UpdateProject(ctx context.Context, in *management.ProjectUpdateRequest) (*management.Project, error) { project, err := s.project.UpdateProject(ctx, projectUpdateToModel(in)) if err != nil { return nil, err } return projectFromModel(project), nil } -func (s *Server) DeactivateProject(ctx context.Context, in *ProjectID) (*Project, error) { +func (s *Server) DeactivateProject(ctx context.Context, in *management.ProjectID) (*management.Project, error) { project, err := s.project.DeactivateProject(ctx, in.Id) if err != nil { return nil, err } return projectFromModel(project), nil } -func (s *Server) ReactivateProject(ctx context.Context, in *ProjectID) (*Project, error) { +func (s *Server) ReactivateProject(ctx context.Context, in *management.ProjectID) (*management.Project, error) { project, err := s.project.ReactivateProject(ctx, in.Id) if err != nil { return nil, err @@ -38,9 +40,9 @@ func (s *Server) ReactivateProject(ctx context.Context, in *ProjectID) (*Project return projectFromModel(project), nil } -func (s *Server) SearchProjects(ctx context.Context, in *ProjectSearchRequest) (*ProjectSearchResponse, error) { +func (s *Server) SearchProjects(ctx context.Context, in *management.ProjectSearchRequest) (*management.ProjectSearchResponse, error) { request := projectSearchRequestsToModel(in) - request.AppendMyResourceOwnerQuery(grpc_util.GetHeader(ctx, api.ZitadelOrgID)) + request.AppendMyResourceOwnerQuery(grpc_util.GetHeader(ctx, http.ZitadelOrgID)) response, err := s.project.SearchProjects(ctx, request) if err != nil { return nil, err @@ -48,7 +50,7 @@ func (s *Server) SearchProjects(ctx context.Context, in *ProjectSearchRequest) ( return projectSearchResponseFromModel(response), nil } -func (s *Server) ProjectByID(ctx context.Context, id *ProjectID) (*ProjectView, error) { +func (s *Server) ProjectByID(ctx context.Context, id *management.ProjectID) (*management.ProjectView, error) { project, err := s.project.ProjectByID(ctx, id.Id) if err != nil { return nil, err @@ -56,9 +58,9 @@ func (s *Server) ProjectByID(ctx context.Context, id *ProjectID) (*ProjectView, return projectViewFromModel(project), nil } -func (s *Server) SearchGrantedProjects(ctx context.Context, in *GrantedProjectSearchRequest) (*ProjectGrantSearchResponse, error) { +func (s *Server) SearchGrantedProjects(ctx context.Context, in *management.GrantedProjectSearchRequest) (*management.ProjectGrantSearchResponse, error) { request := grantedProjectSearchRequestsToModel(in) - request.AppendMyOrgQuery(grpc_util.GetHeader(ctx, api.ZitadelOrgID)) + request.AppendMyOrgQuery(grpc_util.GetHeader(ctx, http.ZitadelOrgID)) response, err := s.project.SearchProjectGrants(ctx, request) if err != nil { return nil, err @@ -66,7 +68,7 @@ func (s *Server) SearchGrantedProjects(ctx context.Context, in *GrantedProjectSe return projectGrantSearchResponseFromModel(response), nil } -func (s *Server) GetGrantedProjectByID(ctx context.Context, in *ProjectGrantID) (*ProjectGrantView, error) { +func (s *Server) GetGrantedProjectByID(ctx context.Context, in *management.ProjectGrantID) (*management.ProjectGrantView, error) { project, err := s.project.ProjectGrantViewByID(ctx, in.Id) if err != nil { return nil, err @@ -74,7 +76,7 @@ func (s *Server) GetGrantedProjectByID(ctx context.Context, in *ProjectGrantID) return projectGrantFromGrantedProjectModel(project), nil } -func (s *Server) AddProjectRole(ctx context.Context, in *ProjectRoleAdd) (*ProjectRole, error) { +func (s *Server) AddProjectRole(ctx context.Context, in *management.ProjectRoleAdd) (*management.ProjectRole, error) { role, err := s.project.AddProjectRole(ctx, projectRoleAddToModel(in)) if err != nil { return nil, err @@ -82,12 +84,12 @@ func (s *Server) AddProjectRole(ctx context.Context, in *ProjectRoleAdd) (*Proje return projectRoleFromModel(role), nil } -func (s *Server) BulkAddProjectRole(ctx context.Context, in *ProjectRoleAddBulk) (*empty.Empty, error) { +func (s *Server) BulkAddProjectRole(ctx context.Context, in *management.ProjectRoleAddBulk) (*empty.Empty, error) { err := s.project.BulkAddProjectRole(ctx, projectRoleAddBulkToModel(in)) return &empty.Empty{}, err } -func (s *Server) ChangeProjectRole(ctx context.Context, in *ProjectRoleChange) (*ProjectRole, error) { +func (s *Server) ChangeProjectRole(ctx context.Context, in *management.ProjectRoleChange) (*management.ProjectRole, error) { role, err := s.project.ChangeProjectRole(ctx, projectRoleChangeToModel(in)) if err != nil { return nil, err @@ -95,14 +97,14 @@ func (s *Server) ChangeProjectRole(ctx context.Context, in *ProjectRoleChange) ( return projectRoleFromModel(role), nil } -func (s *Server) RemoveProjectRole(ctx context.Context, in *ProjectRoleRemove) (*empty.Empty, error) { +func (s *Server) RemoveProjectRole(ctx context.Context, in *management.ProjectRoleRemove) (*empty.Empty, error) { err := s.project.RemoveProjectRole(ctx, in.Id, in.Key) return &empty.Empty{}, err } -func (s *Server) SearchProjectRoles(ctx context.Context, in *ProjectRoleSearchRequest) (*ProjectRoleSearchResponse, error) { +func (s *Server) SearchProjectRoles(ctx context.Context, in *management.ProjectRoleSearchRequest) (*management.ProjectRoleSearchResponse, error) { request := projectRoleSearchRequestsToModel(in) - request.AppendMyOrgQuery(auth.GetCtxData(ctx).OrgID) + request.AppendMyOrgQuery(authz.GetCtxData(ctx).OrgID) request.AppendProjectQuery(in.ProjectId) response, err := s.project.SearchProjectRoles(ctx, request) if err != nil { @@ -111,7 +113,7 @@ func (s *Server) SearchProjectRoles(ctx context.Context, in *ProjectRoleSearchRe return projectRoleSearchResponseFromModel(response), nil } -func (s *Server) ProjectChanges(ctx context.Context, changesRequest *ChangeRequest) (*Changes, error) { +func (s *Server) ProjectChanges(ctx context.Context, changesRequest *management.ChangeRequest) (*management.Changes, error) { response, err := s.project.ProjectChanges(ctx, changesRequest.Id, changesRequest.SequenceOffset, changesRequest.Limit, changesRequest.Asc) if err != nil { return nil, err diff --git a/pkg/management/api/grpc/project_converter.go b/internal/api/grpc/management/project_converter.go similarity index 65% rename from pkg/management/api/grpc/project_converter.go rename to internal/api/grpc/management/project_converter.go index 7112da05d8..03136dffb5 100644 --- a/pkg/management/api/grpc/project_converter.go +++ b/internal/api/grpc/management/project_converter.go @@ -1,26 +1,27 @@ -package grpc +package management import ( "encoding/json" "github.com/caos/logging" - "github.com/caos/zitadel/internal/eventstore/models" - proj_model "github.com/caos/zitadel/internal/project/model" - "github.com/caos/zitadel/pkg/message" - "github.com/golang/protobuf/ptypes" "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/types/known/structpb" + + "github.com/caos/zitadel/internal/eventstore/models" + proj_model "github.com/caos/zitadel/internal/project/model" + "github.com/caos/zitadel/pkg/grpc/management" + "github.com/caos/zitadel/pkg/grpc/message" ) -func projectFromModel(project *proj_model.Project) *Project { +func projectFromModel(project *proj_model.Project) *management.Project { creationDate, err := ptypes.TimestampProto(project.CreationDate) logging.Log("GRPC-iejs3").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(project.ChangeDate) logging.Log("GRPC-di7rw").OnError(err).Debug("unable to parse timestamp") - return &Project{ + return &management.Project{ Id: project.AggregateID, State: projectStateFromModel(project.State), CreationDate: creationDate, @@ -30,8 +31,8 @@ func projectFromModel(project *proj_model.Project) *Project { } } -func projectSearchResponseFromModel(response *proj_model.ProjectViewSearchResponse) *ProjectSearchResponse { - return &ProjectSearchResponse{ +func projectSearchResponseFromModel(response *proj_model.ProjectViewSearchResponse) *management.ProjectSearchResponse { + return &management.ProjectSearchResponse{ Offset: response.Offset, Limit: response.Limit, TotalResult: response.TotalResult, @@ -39,22 +40,22 @@ func projectSearchResponseFromModel(response *proj_model.ProjectViewSearchRespon } } -func projectViewsFromModel(projects []*proj_model.ProjectView) []*ProjectView { - converted := make([]*ProjectView, len(projects)) +func projectViewsFromModel(projects []*proj_model.ProjectView) []*management.ProjectView { + converted := make([]*management.ProjectView, len(projects)) for i, project := range projects { converted[i] = projectViewFromModel(project) } return converted } -func projectViewFromModel(project *proj_model.ProjectView) *ProjectView { +func projectViewFromModel(project *proj_model.ProjectView) *management.ProjectView { creationDate, err := ptypes.TimestampProto(project.CreationDate) logging.Log("GRPC-dlso3").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(project.ChangeDate) logging.Log("GRPC-sope3").OnError(err).Debug("unable to parse timestamp") - return &ProjectView{ + return &management.ProjectView{ ProjectId: project.ProjectID, State: projectStateFromModel(project.State), CreationDate: creationDate, @@ -65,8 +66,8 @@ func projectViewFromModel(project *proj_model.ProjectView) *ProjectView { } } -func projectRoleSearchResponseFromModel(response *proj_model.ProjectRoleSearchResponse) *ProjectRoleSearchResponse { - return &ProjectRoleSearchResponse{ +func projectRoleSearchResponseFromModel(response *proj_model.ProjectRoleSearchResponse) *management.ProjectRoleSearchResponse { + return &management.ProjectRoleSearchResponse{ Offset: response.Offset, Limit: response.Limit, TotalResult: response.TotalResult, @@ -74,19 +75,19 @@ func projectRoleSearchResponseFromModel(response *proj_model.ProjectRoleSearchRe } } -func projectRoleViewsFromModel(roles []*proj_model.ProjectRoleView) []*ProjectRoleView { - converted := make([]*ProjectRoleView, len(roles)) +func projectRoleViewsFromModel(roles []*proj_model.ProjectRoleView) []*management.ProjectRoleView { + converted := make([]*management.ProjectRoleView, len(roles)) for i, role := range roles { converted[i] = projectRoleViewFromModel(role) } return converted } -func projectRoleViewFromModel(role *proj_model.ProjectRoleView) *ProjectRoleView { +func projectRoleViewFromModel(role *proj_model.ProjectRoleView) *management.ProjectRoleView { creationDate, err := ptypes.TimestampProto(role.CreationDate) logging.Log("GRPC-dlso3").OnError(err).Debug("unable to parse timestamp") - return &ProjectRoleView{ + return &management.ProjectRoleView{ ProjectId: role.ProjectID, CreationDate: creationDate, Key: role.Key, @@ -96,18 +97,18 @@ func projectRoleViewFromModel(role *proj_model.ProjectRoleView) *ProjectRoleView } } -func projectStateFromModel(state proj_model.ProjectState) ProjectState { +func projectStateFromModel(state proj_model.ProjectState) management.ProjectState { switch state { case proj_model.ProjectStateActive: - return ProjectState_PROJECTSTATE_ACTIVE + return management.ProjectState_PROJECTSTATE_ACTIVE case proj_model.ProjectStateInactive: - return ProjectState_PROJECTSTATE_INACTIVE + return management.ProjectState_PROJECTSTATE_INACTIVE default: - return ProjectState_PROJECTSTATE_UNSPECIFIED + return management.ProjectState_PROJECTSTATE_UNSPECIFIED } } -func projectUpdateToModel(project *ProjectUpdateRequest) *proj_model.Project { +func projectUpdateToModel(project *management.ProjectUpdateRequest) *proj_model.Project { return &proj_model.Project{ ObjectRoot: models.ObjectRoot{ AggregateID: project.Id, @@ -116,14 +117,14 @@ func projectUpdateToModel(project *ProjectUpdateRequest) *proj_model.Project { } } -func projectRoleFromModel(role *proj_model.ProjectRole) *ProjectRole { +func projectRoleFromModel(role *proj_model.ProjectRole) *management.ProjectRole { creationDate, err := ptypes.TimestampProto(role.CreationDate) logging.Log("GRPC-due83").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(role.ChangeDate) logging.Log("GRPC-id93s").OnError(err).Debug("unable to parse timestamp") - return &ProjectRole{ + return &management.ProjectRole{ CreationDate: creationDate, ChangeDate: changeDate, Sequence: role.Sequence, @@ -133,7 +134,7 @@ func projectRoleFromModel(role *proj_model.ProjectRole) *ProjectRole { } } -func projectRoleAddBulkToModel(bulk *ProjectRoleAddBulk) []*proj_model.ProjectRole { +func projectRoleAddBulkToModel(bulk *management.ProjectRoleAddBulk) []*proj_model.ProjectRole { roles := make([]*proj_model.ProjectRole, len(bulk.ProjectRoles)) for i, role := range bulk.ProjectRoles { roles[i] = &proj_model.ProjectRole{ @@ -148,7 +149,7 @@ func projectRoleAddBulkToModel(bulk *ProjectRoleAddBulk) []*proj_model.ProjectRo return roles } -func projectRoleAddToModel(role *ProjectRoleAdd) *proj_model.ProjectRole { +func projectRoleAddToModel(role *management.ProjectRoleAdd) *proj_model.ProjectRole { return &proj_model.ProjectRole{ ObjectRoot: models.ObjectRoot{ AggregateID: role.Id, @@ -159,7 +160,7 @@ func projectRoleAddToModel(role *ProjectRoleAdd) *proj_model.ProjectRole { } } -func projectRoleChangeToModel(role *ProjectRoleChange) *proj_model.ProjectRole { +func projectRoleChangeToModel(role *management.ProjectRoleChange) *proj_model.ProjectRole { return &proj_model.ProjectRole{ ObjectRoot: models.ObjectRoot{ AggregateID: role.Id, @@ -170,14 +171,14 @@ func projectRoleChangeToModel(role *ProjectRoleChange) *proj_model.ProjectRole { } } -func projectSearchRequestsToModel(project *ProjectSearchRequest) *proj_model.ProjectViewSearchRequest { +func projectSearchRequestsToModel(project *management.ProjectSearchRequest) *proj_model.ProjectViewSearchRequest { return &proj_model.ProjectViewSearchRequest{ Offset: project.Offset, Limit: project.Limit, Queries: projectSearchQueriesToModel(project.Queries), } } -func grantedProjectSearchRequestsToModel(request *GrantedProjectSearchRequest) *proj_model.ProjectGrantViewSearchRequest { +func grantedProjectSearchRequestsToModel(request *management.GrantedProjectSearchRequest) *proj_model.ProjectGrantViewSearchRequest { return &proj_model.ProjectGrantViewSearchRequest{ Offset: request.Offset, Limit: request.Limit, @@ -185,7 +186,7 @@ func grantedProjectSearchRequestsToModel(request *GrantedProjectSearchRequest) * } } -func projectSearchQueriesToModel(queries []*ProjectSearchQuery) []*proj_model.ProjectViewSearchQuery { +func projectSearchQueriesToModel(queries []*management.ProjectSearchQuery) []*proj_model.ProjectViewSearchQuery { converted := make([]*proj_model.ProjectViewSearchQuery, len(queries)) for i, q := range queries { converted[i] = projectSearchQueryToModel(q) @@ -193,7 +194,7 @@ func projectSearchQueriesToModel(queries []*ProjectSearchQuery) []*proj_model.Pr return converted } -func projectSearchQueryToModel(query *ProjectSearchQuery) *proj_model.ProjectViewSearchQuery { +func projectSearchQueryToModel(query *management.ProjectSearchQuery) *proj_model.ProjectViewSearchQuery { return &proj_model.ProjectViewSearchQuery{ Key: projectSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -201,16 +202,16 @@ func projectSearchQueryToModel(query *ProjectSearchQuery) *proj_model.ProjectVie } } -func projectSearchKeyToModel(key ProjectSearchKey) proj_model.ProjectViewSearchKey { +func projectSearchKeyToModel(key management.ProjectSearchKey) proj_model.ProjectViewSearchKey { switch key { - case ProjectSearchKey_PROJECTSEARCHKEY_PROJECT_NAME: + case management.ProjectSearchKey_PROJECTSEARCHKEY_PROJECT_NAME: return proj_model.ProjectViewSearchKeyName default: return proj_model.ProjectViewSearchKeyUnspecified } } -func grantedPRojectSearchQueriesToModel(queries []*ProjectSearchQuery) []*proj_model.ProjectGrantViewSearchQuery { +func grantedPRojectSearchQueriesToModel(queries []*management.ProjectSearchQuery) []*proj_model.ProjectGrantViewSearchQuery { converted := make([]*proj_model.ProjectGrantViewSearchQuery, len(queries)) for i, q := range queries { converted[i] = grantedProjectSearchQueryToModel(q) @@ -218,7 +219,7 @@ func grantedPRojectSearchQueriesToModel(queries []*ProjectSearchQuery) []*proj_m return converted } -func grantedProjectSearchQueryToModel(query *ProjectSearchQuery) *proj_model.ProjectGrantViewSearchQuery { +func grantedProjectSearchQueryToModel(query *management.ProjectSearchQuery) *proj_model.ProjectGrantViewSearchQuery { return &proj_model.ProjectGrantViewSearchQuery{ Key: projectGrantSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -226,16 +227,16 @@ func grantedProjectSearchQueryToModel(query *ProjectSearchQuery) *proj_model.Pro } } -func projectGrantSearchKeyToModel(key ProjectSearchKey) proj_model.ProjectGrantViewSearchKey { +func projectGrantSearchKeyToModel(key management.ProjectSearchKey) proj_model.ProjectGrantViewSearchKey { switch key { - case ProjectSearchKey_PROJECTSEARCHKEY_PROJECT_NAME: + case management.ProjectSearchKey_PROJECTSEARCHKEY_PROJECT_NAME: return proj_model.GrantedProjectSearchKeyName default: return proj_model.GrantedProjectSearchKeyUnspecified } } -func projectRoleSearchRequestsToModel(role *ProjectRoleSearchRequest) *proj_model.ProjectRoleSearchRequest { +func projectRoleSearchRequestsToModel(role *management.ProjectRoleSearchRequest) *proj_model.ProjectRoleSearchRequest { return &proj_model.ProjectRoleSearchRequest{ Offset: role.Offset, Limit: role.Limit, @@ -243,7 +244,7 @@ func projectRoleSearchRequestsToModel(role *ProjectRoleSearchRequest) *proj_mode } } -func projectRoleSearchQueriesToModel(queries []*ProjectRoleSearchQuery) []*proj_model.ProjectRoleSearchQuery { +func projectRoleSearchQueriesToModel(queries []*management.ProjectRoleSearchQuery) []*proj_model.ProjectRoleSearchQuery { converted := make([]*proj_model.ProjectRoleSearchQuery, len(queries)) for i, q := range queries { converted[i] = projectRoleSearchQueryToModel(q) @@ -251,7 +252,7 @@ func projectRoleSearchQueriesToModel(queries []*ProjectRoleSearchQuery) []*proj_ return converted } -func projectRoleSearchQueryToModel(query *ProjectRoleSearchQuery) *proj_model.ProjectRoleSearchQuery { +func projectRoleSearchQueryToModel(query *management.ProjectRoleSearchQuery) *proj_model.ProjectRoleSearchQuery { return &proj_model.ProjectRoleSearchQuery{ Key: projectRoleSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -259,27 +260,27 @@ func projectRoleSearchQueryToModel(query *ProjectRoleSearchQuery) *proj_model.Pr } } -func projectRoleSearchKeyToModel(key ProjectRoleSearchKey) proj_model.ProjectRoleSearchKey { +func projectRoleSearchKeyToModel(key management.ProjectRoleSearchKey) proj_model.ProjectRoleSearchKey { switch key { - case ProjectRoleSearchKey_PROJECTROLESEARCHKEY_KEY: + case management.ProjectRoleSearchKey_PROJECTROLESEARCHKEY_KEY: return proj_model.ProjectRoleSearchKeyKey - case ProjectRoleSearchKey_PROJECTROLESEARCHKEY_DISPLAY_NAME: + case management.ProjectRoleSearchKey_PROJECTROLESEARCHKEY_DISPLAY_NAME: return proj_model.ProjectRoleSearchKeyDisplayName default: return proj_model.ProjectRoleSearchKeyUnspecified } } -func projectChangesToResponse(response *proj_model.ProjectChanges, offset uint64, limit uint64) (_ *Changes) { - return &Changes{ +func projectChangesToResponse(response *proj_model.ProjectChanges, offset uint64, limit uint64) (_ *management.Changes) { + return &management.Changes{ Limit: limit, Offset: offset, Changes: projectChangesToMgtAPI(response), } } -func projectChangesToMgtAPI(changes *proj_model.ProjectChanges) (_ []*Change) { - result := make([]*Change, len(changes.Changes)) +func projectChangesToMgtAPI(changes *proj_model.ProjectChanges) (_ []*management.Change) { + result := make([]*management.Change, len(changes.Changes)) for i, change := range changes.Changes { b, err := json.Marshal(change.Data) @@ -287,7 +288,7 @@ func projectChangesToMgtAPI(changes *proj_model.ProjectChanges) (_ []*Change) { err = protojson.Unmarshal(b, data) if err != nil { } - result[i] = &Change{ + result[i] = &management.Change{ ChangeDate: change.ChangeDate, EventType: message.NewLocalizedEventType(change.EventType), Sequence: change.Sequence, diff --git a/pkg/management/api/grpc/project_grant.go b/internal/api/grpc/management/project_grant.go similarity index 60% rename from pkg/management/api/grpc/project_grant.go rename to internal/api/grpc/management/project_grant.go index 59dc7db51f..c4d24ba3a4 100644 --- a/pkg/management/api/grpc/project_grant.go +++ b/internal/api/grpc/management/project_grant.go @@ -1,16 +1,18 @@ -package grpc +package management import ( "context" - "github.com/caos/zitadel/internal/api" - grpc_util "github.com/caos/zitadel/internal/api/grpc" "github.com/golang/protobuf/ptypes/empty" + + grpc_util "github.com/caos/zitadel/internal/api/grpc" + "github.com/caos/zitadel/internal/api/http" + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) SearchProjectGrants(ctx context.Context, in *ProjectGrantSearchRequest) (*ProjectGrantSearchResponse, error) { +func (s *Server) SearchProjectGrants(ctx context.Context, in *management.ProjectGrantSearchRequest) (*management.ProjectGrantSearchResponse, error) { request := projectGrantSearchRequestsToModel(in) - orgID := grpc_util.GetHeader(ctx, api.ZitadelOrgID) + orgID := grpc_util.GetHeader(ctx, http.ZitadelOrgID) request.AppendMyResourceOwnerQuery(orgID) request.AppendNotMyOrgQuery(orgID) response, err := s.project.SearchProjectGrants(ctx, request) @@ -20,7 +22,7 @@ func (s *Server) SearchProjectGrants(ctx context.Context, in *ProjectGrantSearch return projectGrantSearchResponseFromModel(response), nil } -func (s *Server) ProjectGrantByID(ctx context.Context, in *ProjectGrantID) (*ProjectGrantView, error) { +func (s *Server) ProjectGrantByID(ctx context.Context, in *management.ProjectGrantID) (*management.ProjectGrantView, error) { grant, err := s.project.ProjectGrantByID(ctx, in.Id) if err != nil { return nil, err @@ -28,21 +30,21 @@ func (s *Server) ProjectGrantByID(ctx context.Context, in *ProjectGrantID) (*Pro return projectGrantFromGrantedProjectModel(grant), nil } -func (s *Server) CreateProjectGrant(ctx context.Context, in *ProjectGrantCreate) (*ProjectGrant, error) { +func (s *Server) CreateProjectGrant(ctx context.Context, in *management.ProjectGrantCreate) (*management.ProjectGrant, error) { grant, err := s.project.AddProjectGrant(ctx, projectGrantCreateToModel(in)) if err != nil { return nil, err } return projectGrantFromModel(grant), nil } -func (s *Server) UpdateProjectGrant(ctx context.Context, in *ProjectGrantUpdate) (*ProjectGrant, error) { +func (s *Server) UpdateProjectGrant(ctx context.Context, in *management.ProjectGrantUpdate) (*management.ProjectGrant, error) { grant, err := s.project.ChangeProjectGrant(ctx, projectGrantUpdateToModel(in)) if err != nil { return nil, err } return projectGrantFromModel(grant), nil } -func (s *Server) DeactivateProjectGrant(ctx context.Context, in *ProjectGrantID) (*ProjectGrant, error) { +func (s *Server) DeactivateProjectGrant(ctx context.Context, in *management.ProjectGrantID) (*management.ProjectGrant, error) { grant, err := s.project.DeactivateProjectGrant(ctx, in.ProjectId, in.Id) if err != nil { return nil, err @@ -50,7 +52,7 @@ func (s *Server) DeactivateProjectGrant(ctx context.Context, in *ProjectGrantID) return projectGrantFromModel(grant), nil } -func (s *Server) ReactivateProjectGrant(ctx context.Context, in *ProjectGrantID) (*ProjectGrant, error) { +func (s *Server) ReactivateProjectGrant(ctx context.Context, in *management.ProjectGrantID) (*management.ProjectGrant, error) { grant, err := s.project.ReactivateProjectGrant(ctx, in.ProjectId, in.Id) if err != nil { return nil, err @@ -58,7 +60,7 @@ func (s *Server) ReactivateProjectGrant(ctx context.Context, in *ProjectGrantID) return projectGrantFromModel(grant), nil } -func (s *Server) RemoveProjectGrant(ctx context.Context, in *ProjectGrantID) (*empty.Empty, error) { +func (s *Server) RemoveProjectGrant(ctx context.Context, in *management.ProjectGrantID) (*empty.Empty, error) { err := s.project.RemoveProjectGrant(ctx, in.ProjectId, in.Id) return &empty.Empty{}, err } diff --git a/pkg/management/api/grpc/project_grant_converter.go b/internal/api/grpc/management/project_grant_converter.go similarity index 68% rename from pkg/management/api/grpc/project_grant_converter.go rename to internal/api/grpc/management/project_grant_converter.go index e477357ad9..1136534f41 100644 --- a/pkg/management/api/grpc/project_grant_converter.go +++ b/internal/api/grpc/management/project_grant_converter.go @@ -1,21 +1,24 @@ -package grpc +package management import ( "github.com/caos/logging" + + "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/model" proj_model "github.com/caos/zitadel/internal/project/model" - "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/pkg/grpc/management" ) -func projectGrantFromModel(grant *proj_model.ProjectGrant) *ProjectGrant { +func projectGrantFromModel(grant *proj_model.ProjectGrant) *management.ProjectGrant { creationDate, err := ptypes.TimestampProto(grant.CreationDate) logging.Log("GRPC-8d73s").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(grant.ChangeDate) logging.Log("GRPC-dlso3").OnError(err).Debug("unable to parse timestamp") - return &ProjectGrant{ + return &management.ProjectGrant{ Id: grant.GrantID, State: projectGrantStateFromModel(grant.State), CreationDate: creationDate, @@ -27,7 +30,7 @@ func projectGrantFromModel(grant *proj_model.ProjectGrant) *ProjectGrant { } } -func projectGrantCreateToModel(grant *ProjectGrantCreate) *proj_model.ProjectGrant { +func projectGrantCreateToModel(grant *management.ProjectGrantCreate) *proj_model.ProjectGrant { return &proj_model.ProjectGrant{ ObjectRoot: models.ObjectRoot{ AggregateID: grant.ProjectId, @@ -37,7 +40,7 @@ func projectGrantCreateToModel(grant *ProjectGrantCreate) *proj_model.ProjectGra } } -func projectGrantUpdateToModel(grant *ProjectGrantUpdate) *proj_model.ProjectGrant { +func projectGrantUpdateToModel(grant *management.ProjectGrantUpdate) *proj_model.ProjectGrant { return &proj_model.ProjectGrant{ ObjectRoot: models.ObjectRoot{ AggregateID: grant.ProjectId, @@ -47,7 +50,7 @@ func projectGrantUpdateToModel(grant *ProjectGrantUpdate) *proj_model.ProjectGra } } -func projectGrantSearchRequestsToModel(request *ProjectGrantSearchRequest) *proj_model.ProjectGrantViewSearchRequest { +func projectGrantSearchRequestsToModel(request *management.ProjectGrantSearchRequest) *proj_model.ProjectGrantViewSearchRequest { return &proj_model.ProjectGrantViewSearchRequest{ Offset: request.Offset, Limit: request.Limit, @@ -55,7 +58,7 @@ func projectGrantSearchRequestsToModel(request *ProjectGrantSearchRequest) *proj } } -func projectGrantSearchQueriesToModel(projectId string, queries []*ProjectGrantSearchQuery) []*proj_model.ProjectGrantViewSearchQuery { +func projectGrantSearchQueriesToModel(projectId string, queries []*management.ProjectGrantSearchQuery) []*proj_model.ProjectGrantViewSearchQuery { converted := make([]*proj_model.ProjectGrantViewSearchQuery, 0) converted = append(converted, &proj_model.ProjectGrantViewSearchQuery{ Key: proj_model.GrantedProjectSearchKeyProjectID, @@ -68,7 +71,7 @@ func projectGrantSearchQueriesToModel(projectId string, queries []*ProjectGrantS return converted } -func projectGrantSearchQueryToModel(query *ProjectGrantSearchQuery) *proj_model.ProjectGrantViewSearchQuery { +func projectGrantSearchQueryToModel(query *management.ProjectGrantSearchQuery) *proj_model.ProjectGrantViewSearchQuery { return &proj_model.ProjectGrantViewSearchQuery{ Key: projectGrantViewSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -76,19 +79,19 @@ func projectGrantSearchQueryToModel(query *ProjectGrantSearchQuery) *proj_model. } } -func projectGrantViewSearchKeyToModel(key ProjectGrantSearchKey) proj_model.ProjectGrantViewSearchKey { +func projectGrantViewSearchKeyToModel(key management.ProjectGrantSearchKey) proj_model.ProjectGrantViewSearchKey { switch key { - case ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_PROJECT_NAME: + case management.ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_PROJECT_NAME: return proj_model.GrantedProjectSearchKeyProjectID - case ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_ROLE_KEY: + case management.ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_ROLE_KEY: return proj_model.GrantedProjectSearchKeyRoleKeys default: return proj_model.GrantedProjectSearchKeyUnspecified } } -func projectGrantSearchResponseFromModel(response *proj_model.ProjectGrantViewSearchResponse) *ProjectGrantSearchResponse { - return &ProjectGrantSearchResponse{ +func projectGrantSearchResponseFromModel(response *proj_model.ProjectGrantViewSearchResponse) *management.ProjectGrantSearchResponse { + return &management.ProjectGrantSearchResponse{ Offset: response.Offset, Limit: response.Limit, TotalResult: response.TotalResult, @@ -96,22 +99,22 @@ func projectGrantSearchResponseFromModel(response *proj_model.ProjectGrantViewSe } } -func projectGrantsFromGrantedProjectModel(projects []*proj_model.ProjectGrantView) []*ProjectGrantView { - converted := make([]*ProjectGrantView, len(projects)) +func projectGrantsFromGrantedProjectModel(projects []*proj_model.ProjectGrantView) []*management.ProjectGrantView { + converted := make([]*management.ProjectGrantView, len(projects)) for i, project := range projects { converted[i] = projectGrantFromGrantedProjectModel(project) } return converted } -func projectGrantFromGrantedProjectModel(project *proj_model.ProjectGrantView) *ProjectGrantView { +func projectGrantFromGrantedProjectModel(project *proj_model.ProjectGrantView) *management.ProjectGrantView { creationDate, err := ptypes.TimestampProto(project.CreationDate) logging.Log("GRPC-dlso3").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(project.ChangeDate) logging.Log("GRPC-sope3").OnError(err).Debug("unable to parse timestamp") - return &ProjectGrantView{ + return &management.ProjectGrantView{ ProjectId: project.ProjectID, State: projectGrantStateFromProjectStateModel(project.State), CreationDate: creationDate, @@ -127,24 +130,24 @@ func projectGrantFromGrantedProjectModel(project *proj_model.ProjectGrantView) * } } -func projectGrantStateFromModel(state proj_model.ProjectGrantState) ProjectGrantState { +func projectGrantStateFromModel(state proj_model.ProjectGrantState) management.ProjectGrantState { switch state { case proj_model.ProjectGrantStateActive: - return ProjectGrantState_PROJECTGRANTSTATE_ACTIVE + return management.ProjectGrantState_PROJECTGRANTSTATE_ACTIVE case proj_model.ProjectGrantStateInactive: - return ProjectGrantState_PROJECTGRANTSTATE_INACTIVE + return management.ProjectGrantState_PROJECTGRANTSTATE_INACTIVE default: - return ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED + return management.ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED } } -func projectGrantStateFromProjectStateModel(state proj_model.ProjectState) ProjectGrantState { +func projectGrantStateFromProjectStateModel(state proj_model.ProjectState) management.ProjectGrantState { switch state { case proj_model.ProjectStateActive: - return ProjectGrantState_PROJECTGRANTSTATE_ACTIVE + return management.ProjectGrantState_PROJECTGRANTSTATE_ACTIVE case proj_model.ProjectStateInactive: - return ProjectGrantState_PROJECTGRANTSTATE_INACTIVE + return management.ProjectGrantState_PROJECTGRANTSTATE_INACTIVE default: - return ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED + return management.ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED } } diff --git a/pkg/management/api/grpc/project_grant_member.go b/internal/api/grpc/management/project_grant_member.go similarity index 66% rename from pkg/management/api/grpc/project_grant_member.go rename to internal/api/grpc/management/project_grant_member.go index 1e3b4b949d..7743d2940f 100644 --- a/pkg/management/api/grpc/project_grant_member.go +++ b/internal/api/grpc/management/project_grant_member.go @@ -1,16 +1,18 @@ -package grpc +package management import ( "context" "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) GetProjectGrantMemberRoles(ctx context.Context, _ *empty.Empty) (*ProjectGrantMemberRoles, error) { - return &ProjectGrantMemberRoles{Roles: s.project.GetProjectGrantMemberRoles()}, nil +func (s *Server) GetProjectGrantMemberRoles(ctx context.Context, _ *empty.Empty) (*management.ProjectGrantMemberRoles, error) { + return &management.ProjectGrantMemberRoles{Roles: s.project.GetProjectGrantMemberRoles()}, nil } -func (s *Server) SearchProjectGrantMembers(ctx context.Context, in *ProjectGrantMemberSearchRequest) (*ProjectGrantMemberSearchResponse, error) { +func (s *Server) SearchProjectGrantMembers(ctx context.Context, in *management.ProjectGrantMemberSearchRequest) (*management.ProjectGrantMemberSearchResponse, error) { response, err := s.project.SearchProjectGrantMembers(ctx, projectGrantMemberSearchRequestsToModel(in)) if err != nil { return nil, err @@ -18,7 +20,7 @@ func (s *Server) SearchProjectGrantMembers(ctx context.Context, in *ProjectGrant return projectGrantMemberSearchResponseFromModel(response), nil } -func (s *Server) AddProjectGrantMember(ctx context.Context, in *ProjectGrantMemberAdd) (*ProjectGrantMember, error) { +func (s *Server) AddProjectGrantMember(ctx context.Context, in *management.ProjectGrantMemberAdd) (*management.ProjectGrantMember, error) { member, err := s.project.AddProjectGrantMember(ctx, projectGrantMemberAddToModel(in)) if err != nil { return nil, err @@ -26,7 +28,7 @@ func (s *Server) AddProjectGrantMember(ctx context.Context, in *ProjectGrantMemb return projectGrantMemberFromModel(member), nil } -func (s *Server) ChangeProjectGrantMember(ctx context.Context, in *ProjectGrantMemberChange) (*ProjectGrantMember, error) { +func (s *Server) ChangeProjectGrantMember(ctx context.Context, in *management.ProjectGrantMemberChange) (*management.ProjectGrantMember, error) { member, err := s.project.ChangeProjectGrantMember(ctx, projectGrantMemberChangeToModel(in)) if err != nil { return nil, err @@ -34,7 +36,7 @@ func (s *Server) ChangeProjectGrantMember(ctx context.Context, in *ProjectGrantM return projectGrantMemberFromModel(member), nil } -func (s *Server) RemoveProjectGrantMember(ctx context.Context, in *ProjectGrantMemberRemove) (*empty.Empty, error) { +func (s *Server) RemoveProjectGrantMember(ctx context.Context, in *management.ProjectGrantMemberRemove) (*empty.Empty, error) { err := s.project.RemoveProjectGrantMember(ctx, in.ProjectId, in.GrantId, in.UserId) return &empty.Empty{}, err } diff --git a/pkg/management/api/grpc/project_grant_member_converter.go b/internal/api/grpc/management/project_grant_member_converter.go similarity index 64% rename from pkg/management/api/grpc/project_grant_member_converter.go rename to internal/api/grpc/management/project_grant_member_converter.go index 388c39e079..17134d9e6a 100644 --- a/pkg/management/api/grpc/project_grant_member_converter.go +++ b/internal/api/grpc/management/project_grant_member_converter.go @@ -1,20 +1,22 @@ -package grpc +package management import ( "github.com/caos/logging" + "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/internal/eventstore/models" proj_model "github.com/caos/zitadel/internal/project/model" - "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/pkg/grpc/management" ) -func projectGrantMemberFromModel(member *proj_model.ProjectGrantMember) *ProjectGrantMember { +func projectGrantMemberFromModel(member *proj_model.ProjectGrantMember) *management.ProjectGrantMember { creationDate, err := ptypes.TimestampProto(member.CreationDate) logging.Log("GRPC-7du3s").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(member.ChangeDate) logging.Log("GRPC-8duew").OnError(err).Debug("unable to parse timestamp") - return &ProjectGrantMember{ + return &management.ProjectGrantMember{ CreationDate: creationDate, ChangeDate: changeDate, Sequence: member.Sequence, @@ -23,7 +25,7 @@ func projectGrantMemberFromModel(member *proj_model.ProjectGrantMember) *Project } } -func projectGrantMemberAddToModel(member *ProjectGrantMemberAdd) *proj_model.ProjectGrantMember { +func projectGrantMemberAddToModel(member *management.ProjectGrantMemberAdd) *proj_model.ProjectGrantMember { return &proj_model.ProjectGrantMember{ ObjectRoot: models.ObjectRoot{ AggregateID: member.ProjectId, @@ -34,7 +36,7 @@ func projectGrantMemberAddToModel(member *ProjectGrantMemberAdd) *proj_model.Pro } } -func projectGrantMemberChangeToModel(member *ProjectGrantMemberChange) *proj_model.ProjectGrantMember { +func projectGrantMemberChangeToModel(member *management.ProjectGrantMemberChange) *proj_model.ProjectGrantMember { return &proj_model.ProjectGrantMember{ ObjectRoot: models.ObjectRoot{ AggregateID: member.ProjectId, @@ -45,7 +47,7 @@ func projectGrantMemberChangeToModel(member *ProjectGrantMemberChange) *proj_mod } } -func projectGrantMemberSearchRequestsToModel(role *ProjectGrantMemberSearchRequest) *proj_model.ProjectGrantMemberSearchRequest { +func projectGrantMemberSearchRequestsToModel(role *management.ProjectGrantMemberSearchRequest) *proj_model.ProjectGrantMemberSearchRequest { return &proj_model.ProjectGrantMemberSearchRequest{ Offset: role.Offset, Limit: role.Limit, @@ -53,7 +55,7 @@ func projectGrantMemberSearchRequestsToModel(role *ProjectGrantMemberSearchReque } } -func projectGrantMemberSearchQueriesToModel(queries []*ProjectGrantMemberSearchQuery) []*proj_model.ProjectGrantMemberSearchQuery { +func projectGrantMemberSearchQueriesToModel(queries []*management.ProjectGrantMemberSearchQuery) []*proj_model.ProjectGrantMemberSearchQuery { converted := make([]*proj_model.ProjectGrantMemberSearchQuery, len(queries)) for i, q := range queries { converted[i] = projectGrantMemberSearchQueryToModel(q) @@ -61,7 +63,7 @@ func projectGrantMemberSearchQueriesToModel(queries []*ProjectGrantMemberSearchQ return converted } -func projectGrantMemberSearchQueryToModel(query *ProjectGrantMemberSearchQuery) *proj_model.ProjectGrantMemberSearchQuery { +func projectGrantMemberSearchQueryToModel(query *management.ProjectGrantMemberSearchQuery) *proj_model.ProjectGrantMemberSearchQuery { return &proj_model.ProjectGrantMemberSearchQuery{ Key: projectGrantMemberSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -69,23 +71,23 @@ func projectGrantMemberSearchQueryToModel(query *ProjectGrantMemberSearchQuery) } } -func projectGrantMemberSearchKeyToModel(key ProjectGrantMemberSearchKey) proj_model.ProjectGrantMemberSearchKey { +func projectGrantMemberSearchKeyToModel(key management.ProjectGrantMemberSearchKey) proj_model.ProjectGrantMemberSearchKey { switch key { - case ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_EMAIL: + case management.ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_EMAIL: return proj_model.ProjectGrantMemberSearchKeyEmail - case ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME: + case management.ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME: return proj_model.ProjectGrantMemberSearchKeyFirstName - case ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME: + case management.ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME: return proj_model.ProjectGrantMemberSearchKeyLastName - case ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_USER_NAME: + case management.ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_USER_NAME: return proj_model.ProjectGrantMemberSearchKeyUserName default: return proj_model.ProjectGrantMemberSearchKeyUnspecified } } -func projectGrantMemberSearchResponseFromModel(response *proj_model.ProjectGrantMemberSearchResponse) *ProjectGrantMemberSearchResponse { - return &ProjectGrantMemberSearchResponse{ +func projectGrantMemberSearchResponseFromModel(response *proj_model.ProjectGrantMemberSearchResponse) *management.ProjectGrantMemberSearchResponse { + return &management.ProjectGrantMemberSearchResponse{ Offset: response.Offset, Limit: response.Limit, TotalResult: response.TotalResult, @@ -93,22 +95,22 @@ func projectGrantMemberSearchResponseFromModel(response *proj_model.ProjectGrant } } -func projectGrantMemberViewsFromModel(roles []*proj_model.ProjectGrantMemberView) []*ProjectGrantMemberView { - converted := make([]*ProjectGrantMemberView, len(roles)) +func projectGrantMemberViewsFromModel(roles []*proj_model.ProjectGrantMemberView) []*management.ProjectGrantMemberView { + converted := make([]*management.ProjectGrantMemberView, len(roles)) for i, role := range roles { converted[i] = projectGrantMemberViewFromModel(role) } return converted } -func projectGrantMemberViewFromModel(member *proj_model.ProjectGrantMemberView) *ProjectGrantMemberView { +func projectGrantMemberViewFromModel(member *proj_model.ProjectGrantMemberView) *management.ProjectGrantMemberView { creationDate, err := ptypes.TimestampProto(member.CreationDate) logging.Log("GRPC-los93").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(member.ChangeDate) logging.Log("GRPC-ski4e").OnError(err).Debug("unable to parse timestamp") - return &ProjectGrantMemberView{ + return &management.ProjectGrantMemberView{ UserId: member.UserID, UserName: member.UserName, Email: member.Email, diff --git a/pkg/management/api/grpc/project_member.go b/internal/api/grpc/management/project_member.go similarity index 52% rename from pkg/management/api/grpc/project_member.go rename to internal/api/grpc/management/project_member.go index ddb35eef0c..0d8d9999fa 100644 --- a/pkg/management/api/grpc/project_member.go +++ b/internal/api/grpc/management/project_member.go @@ -1,15 +1,18 @@ -package grpc +package management import ( "context" + "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) GetProjectMemberRoles(ctx context.Context, _ *empty.Empty) (*ProjectMemberRoles, error) { - return &ProjectMemberRoles{Roles: s.project.GetProjectMemberRoles()}, nil +func (s *Server) GetProjectMemberRoles(ctx context.Context, _ *empty.Empty) (*management.ProjectMemberRoles, error) { + return &management.ProjectMemberRoles{Roles: s.project.GetProjectMemberRoles()}, nil } -func (s *Server) SearchProjectMembers(ctx context.Context, in *ProjectMemberSearchRequest) (*ProjectMemberSearchResponse, error) { +func (s *Server) SearchProjectMembers(ctx context.Context, in *management.ProjectMemberSearchRequest) (*management.ProjectMemberSearchResponse, error) { request := projectMemberSearchRequestsToModel(in) request.AppendProjectQuery(in.ProjectId) response, err := s.project.SearchProjectMembers(ctx, request) @@ -19,7 +22,7 @@ func (s *Server) SearchProjectMembers(ctx context.Context, in *ProjectMemberSear return projectMemberSearchResponseFromModel(response), nil } -func (s *Server) AddProjectMember(ctx context.Context, in *ProjectMemberAdd) (*ProjectMember, error) { +func (s *Server) AddProjectMember(ctx context.Context, in *management.ProjectMemberAdd) (*management.ProjectMember, error) { member, err := s.project.AddProjectMember(ctx, projectMemberAddToModel(in)) if err != nil { return nil, err @@ -27,7 +30,7 @@ func (s *Server) AddProjectMember(ctx context.Context, in *ProjectMemberAdd) (*P return projectMemberFromModel(member), nil } -func (s *Server) ChangeProjectMember(ctx context.Context, in *ProjectMemberChange) (*ProjectMember, error) { +func (s *Server) ChangeProjectMember(ctx context.Context, in *management.ProjectMemberChange) (*management.ProjectMember, error) { member, err := s.project.ChangeProjectMember(ctx, projectMemberChangeToModel(in)) if err != nil { return nil, err @@ -35,7 +38,7 @@ func (s *Server) ChangeProjectMember(ctx context.Context, in *ProjectMemberChang return projectMemberFromModel(member), nil } -func (s *Server) RemoveProjectMember(ctx context.Context, in *ProjectMemberRemove) (*empty.Empty, error) { +func (s *Server) RemoveProjectMember(ctx context.Context, in *management.ProjectMemberRemove) (*empty.Empty, error) { err := s.project.RemoveProjectMember(ctx, in.Id, in.UserId) return &empty.Empty{}, err } diff --git a/pkg/management/api/grpc/project_member_converter.go b/internal/api/grpc/management/project_member_converter.go similarity index 65% rename from pkg/management/api/grpc/project_member_converter.go rename to internal/api/grpc/management/project_member_converter.go index 9843b98e49..fd2e932430 100644 --- a/pkg/management/api/grpc/project_member_converter.go +++ b/internal/api/grpc/management/project_member_converter.go @@ -1,20 +1,22 @@ -package grpc +package management import ( "github.com/caos/logging" + "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/internal/eventstore/models" proj_model "github.com/caos/zitadel/internal/project/model" - "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/pkg/grpc/management" ) -func projectMemberFromModel(member *proj_model.ProjectMember) *ProjectMember { +func projectMemberFromModel(member *proj_model.ProjectMember) *management.ProjectMember { creationDate, err := ptypes.TimestampProto(member.CreationDate) logging.Log("GRPC-kd8re").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(member.ChangeDate) logging.Log("GRPC-dlei3").OnError(err).Debug("unable to parse timestamp") - return &ProjectMember{ + return &management.ProjectMember{ CreationDate: creationDate, ChangeDate: changeDate, Sequence: member.Sequence, @@ -23,7 +25,7 @@ func projectMemberFromModel(member *proj_model.ProjectMember) *ProjectMember { } } -func projectMemberAddToModel(member *ProjectMemberAdd) *proj_model.ProjectMember { +func projectMemberAddToModel(member *management.ProjectMemberAdd) *proj_model.ProjectMember { return &proj_model.ProjectMember{ ObjectRoot: models.ObjectRoot{ AggregateID: member.Id, @@ -33,7 +35,7 @@ func projectMemberAddToModel(member *ProjectMemberAdd) *proj_model.ProjectMember } } -func projectMemberChangeToModel(member *ProjectMemberChange) *proj_model.ProjectMember { +func projectMemberChangeToModel(member *management.ProjectMemberChange) *proj_model.ProjectMember { return &proj_model.ProjectMember{ ObjectRoot: models.ObjectRoot{ AggregateID: member.Id, @@ -43,7 +45,7 @@ func projectMemberChangeToModel(member *ProjectMemberChange) *proj_model.Project } } -func projectMemberSearchRequestsToModel(role *ProjectMemberSearchRequest) *proj_model.ProjectMemberSearchRequest { +func projectMemberSearchRequestsToModel(role *management.ProjectMemberSearchRequest) *proj_model.ProjectMemberSearchRequest { return &proj_model.ProjectMemberSearchRequest{ Offset: role.Offset, Limit: role.Limit, @@ -51,7 +53,7 @@ func projectMemberSearchRequestsToModel(role *ProjectMemberSearchRequest) *proj_ } } -func projectMemberSearchQueriesToModel(queries []*ProjectMemberSearchQuery) []*proj_model.ProjectMemberSearchQuery { +func projectMemberSearchQueriesToModel(queries []*management.ProjectMemberSearchQuery) []*proj_model.ProjectMemberSearchQuery { converted := make([]*proj_model.ProjectMemberSearchQuery, len(queries)) for i, q := range queries { converted[i] = projectMemberSearchQueryToModel(q) @@ -59,7 +61,7 @@ func projectMemberSearchQueriesToModel(queries []*ProjectMemberSearchQuery) []*p return converted } -func projectMemberSearchQueryToModel(query *ProjectMemberSearchQuery) *proj_model.ProjectMemberSearchQuery { +func projectMemberSearchQueryToModel(query *management.ProjectMemberSearchQuery) *proj_model.ProjectMemberSearchQuery { return &proj_model.ProjectMemberSearchQuery{ Key: projectMemberSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -67,23 +69,23 @@ func projectMemberSearchQueryToModel(query *ProjectMemberSearchQuery) *proj_mode } } -func projectMemberSearchKeyToModel(key ProjectMemberSearchKey) proj_model.ProjectMemberSearchKey { +func projectMemberSearchKeyToModel(key management.ProjectMemberSearchKey) proj_model.ProjectMemberSearchKey { switch key { - case ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_EMAIL: + case management.ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_EMAIL: return proj_model.ProjectMemberSearchKeyEmail - case ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_FIRST_NAME: + case management.ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_FIRST_NAME: return proj_model.ProjectMemberSearchKeyFirstName - case ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_LAST_NAME: + case management.ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_LAST_NAME: return proj_model.ProjectMemberSearchKeyLastName - case ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_USER_NAME: + case management.ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_USER_NAME: return proj_model.ProjectMemberSearchKeyUserName default: return proj_model.ProjectMemberSearchKeyUnspecified } } -func projectMemberSearchResponseFromModel(response *proj_model.ProjectMemberSearchResponse) *ProjectMemberSearchResponse { - return &ProjectMemberSearchResponse{ +func projectMemberSearchResponseFromModel(response *proj_model.ProjectMemberSearchResponse) *management.ProjectMemberSearchResponse { + return &management.ProjectMemberSearchResponse{ Offset: response.Offset, Limit: response.Limit, TotalResult: response.TotalResult, @@ -91,22 +93,22 @@ func projectMemberSearchResponseFromModel(response *proj_model.ProjectMemberSear } } -func projectMemberViewsFromModel(members []*proj_model.ProjectMemberView) []*ProjectMemberView { - converted := make([]*ProjectMemberView, len(members)) +func projectMemberViewsFromModel(members []*proj_model.ProjectMemberView) []*management.ProjectMemberView { + converted := make([]*management.ProjectMemberView, len(members)) for i, member := range members { converted[i] = projectMemberViewFromModel(member) } return converted } -func projectMemberViewFromModel(member *proj_model.ProjectMemberView) *ProjectMemberView { +func projectMemberViewFromModel(member *proj_model.ProjectMemberView) *management.ProjectMemberView { creationDate, err := ptypes.TimestampProto(member.CreationDate) logging.Log("GRPC-sl9cs").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(member.ChangeDate) logging.Log("GRPC-8iw2d").OnError(err).Debug("unable to parse timestamp") - return &ProjectMemberView{ + return &management.ProjectMemberView{ UserId: member.UserID, UserName: member.UserName, Email: member.Email, diff --git a/internal/api/grpc/management/search_converter.go b/internal/api/grpc/management/search_converter.go new file mode 100644 index 0000000000..1b3b2e2052 --- /dev/null +++ b/internal/api/grpc/management/search_converter.go @@ -0,0 +1,31 @@ +package management + +import ( + "github.com/caos/zitadel/internal/model" + "github.com/caos/zitadel/pkg/grpc/management" +) + +func searchMethodToModel(method management.SearchMethod) model.SearchMethod { + switch method { + case management.SearchMethod_SEARCHMETHOD_EQUALS: + return model.SearchMethodEquals + case management.SearchMethod_SEARCHMETHOD_CONTAINS: + return model.SearchMethodContains + case management.SearchMethod_SEARCHMETHOD_STARTS_WITH: + return model.SearchMethodStartsWith + case management.SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE: + return model.SearchMethodEqualsIgnoreCase + case management.SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE: + return model.SearchMethodContainsIgnoreCase + case management.SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE: + return model.SearchMethodStartsWithIgnoreCase + case management.SearchMethod_SEARCHMETHOD_NOT_EQUALS: + return model.SearchMethodNotEquals + case management.SearchMethod_SEARCHMETHOD_IS_ONE_OF: + return model.SearchMethodIsOneOf + case management.SearchMethod_SEARCHMETHOD_LIST_CONTAINS: + return model.SearchMethodListContains + default: + return model.SearchMethodEquals + } +} diff --git a/internal/api/grpc/management/server.go b/internal/api/grpc/management/server.go new file mode 100644 index 0000000000..e67a0d5c0e --- /dev/null +++ b/internal/api/grpc/management/server.go @@ -0,0 +1,69 @@ +package management + +import ( + "google.golang.org/grpc" + + "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/internal/api/grpc/server" + "github.com/caos/zitadel/internal/config/systemdefaults" + "github.com/caos/zitadel/internal/management/repository" + "github.com/caos/zitadel/internal/management/repository/eventsourcing" + "github.com/caos/zitadel/pkg/grpc/management" +) + +const ( + mgmtName = "Management-API" +) + +var _ management.ManagementServiceServer = (*Server)(nil) + +type Server struct { + project repository.ProjectRepository + policy repository.PolicyRepository + org repository.OrgRepository + user repository.UserRepository + usergrant repository.UserGrantRepository + iam repository.IamRepository + authZ authz.Config + systemDefaults systemdefaults.SystemDefaults +} + +type Config struct { + Repository eventsourcing.Config +} + +func CreateServer(repo repository.Repository, sd systemdefaults.SystemDefaults) *Server { + return &Server{ + project: repo, + policy: repo, + org: repo, + user: repo, + usergrant: repo, + iam: repo, + systemDefaults: sd, + } +} + +func (s *Server) RegisterServer(grpcServer *grpc.Server) { + management.RegisterManagementServiceServer(grpcServer, s) +} + +func (s *Server) AppName() string { + return mgmtName +} + +func (s *Server) MethodPrefix() string { + return management.ManagementService_MethodPrefix +} + +func (s *Server) AuthMethods() authz.MethodMapping { + return management.ManagementService_AuthMethods +} + +func (s *Server) RegisterGateway() server.GatewayFunc { + return management.RegisterManagementServiceHandlerFromEndpoint +} + +func (s *Server) GatewayPathPrefix() string { + return "/mgmt/v1" +} diff --git a/pkg/management/api/grpc/user.go b/internal/api/grpc/management/user.go similarity index 59% rename from pkg/management/api/grpc/user.go rename to internal/api/grpc/management/user.go index 0e528d89e6..a76a2a5070 100644 --- a/pkg/management/api/grpc/user.go +++ b/internal/api/grpc/management/user.go @@ -1,15 +1,17 @@ -package grpc +package management import ( "context" - "github.com/caos/zitadel/internal/api" - grpc_util "github.com/caos/zitadel/internal/api/grpc" - "github.com/caos/zitadel/internal/errors" "github.com/golang/protobuf/ptypes/empty" + + grpc_util "github.com/caos/zitadel/internal/api/grpc" + "github.com/caos/zitadel/internal/api/http" + "github.com/caos/zitadel/internal/errors" + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) GetUserByID(ctx context.Context, id *UserID) (*UserView, error) { +func (s *Server) GetUserByID(ctx context.Context, id *management.UserID) (*management.UserView, error) { user, err := s.user.UserByID(ctx, id.Id) if err != nil { return nil, err @@ -17,7 +19,7 @@ func (s *Server) GetUserByID(ctx context.Context, id *UserID) (*UserView, error) return userViewFromModel(user), nil } -func (s *Server) GetUserByEmailGlobal(ctx context.Context, email *Email) (*UserView, error) { +func (s *Server) GetUserByEmailGlobal(ctx context.Context, email *management.Email) (*management.UserView, error) { user, err := s.user.GetGlobalUserByEmail(ctx, email.Email) if err != nil { return nil, err @@ -25,9 +27,9 @@ func (s *Server) GetUserByEmailGlobal(ctx context.Context, email *Email) (*UserV return userViewFromModel(user), nil } -func (s *Server) SearchUsers(ctx context.Context, in *UserSearchRequest) (*UserSearchResponse, error) { +func (s *Server) SearchUsers(ctx context.Context, in *management.UserSearchRequest) (*management.UserSearchResponse, error) { request := userSearchRequestsToModel(in) - orgID := grpc_util.GetHeader(ctx, api.ZitadelOrgID) + orgID := grpc_util.GetHeader(ctx, http.ZitadelOrgID) request.AppendMyOrgQuery(orgID) response, err := s.user.SearchUsers(ctx, request) if err != nil { @@ -36,7 +38,7 @@ func (s *Server) SearchUsers(ctx context.Context, in *UserSearchRequest) (*UserS return userSearchResponseFromModel(response), nil } -func (s *Server) UserChanges(ctx context.Context, changesRequest *ChangeRequest) (*Changes, error) { +func (s *Server) UserChanges(ctx context.Context, changesRequest *management.ChangeRequest) (*management.Changes, error) { response, err := s.user.UserChanges(ctx, changesRequest.Id, changesRequest.SequenceOffset, changesRequest.Limit, changesRequest.Asc) if err != nil { return nil, err @@ -44,15 +46,15 @@ func (s *Server) UserChanges(ctx context.Context, changesRequest *ChangeRequest) return userChangesToResponse(response, changesRequest.GetSequenceOffset(), changesRequest.GetLimit()), nil } -func (s *Server) IsUserUnique(ctx context.Context, request *UniqueUserRequest) (*UniqueUserResponse, error) { +func (s *Server) IsUserUnique(ctx context.Context, request *management.UniqueUserRequest) (*management.UniqueUserResponse, error) { unique, err := s.user.IsUserUnique(ctx, request.UserName, request.Email) if err != nil { return nil, err } - return &UniqueUserResponse{IsUnique: unique}, nil + return &management.UniqueUserResponse{IsUnique: unique}, nil } -func (s *Server) CreateUser(ctx context.Context, in *CreateUserRequest) (*User, error) { +func (s *Server) CreateUser(ctx context.Context, in *management.CreateUserRequest) (*management.User, error) { user, err := s.user.CreateUser(ctx, userCreateToModel(in)) if err != nil { return nil, err @@ -60,7 +62,7 @@ func (s *Server) CreateUser(ctx context.Context, in *CreateUserRequest) (*User, return userFromModel(user), nil } -func (s *Server) DeactivateUser(ctx context.Context, in *UserID) (*User, error) { +func (s *Server) DeactivateUser(ctx context.Context, in *management.UserID) (*management.User, error) { user, err := s.user.DeactivateUser(ctx, in.Id) if err != nil { return nil, err @@ -68,7 +70,7 @@ func (s *Server) DeactivateUser(ctx context.Context, in *UserID) (*User, error) return userFromModel(user), nil } -func (s *Server) ReactivateUser(ctx context.Context, in *UserID) (*User, error) { +func (s *Server) ReactivateUser(ctx context.Context, in *management.UserID) (*management.User, error) { user, err := s.user.ReactivateUser(ctx, in.Id) if err != nil { return nil, err @@ -76,7 +78,7 @@ func (s *Server) ReactivateUser(ctx context.Context, in *UserID) (*User, error) return userFromModel(user), nil } -func (s *Server) LockUser(ctx context.Context, in *UserID) (*User, error) { +func (s *Server) LockUser(ctx context.Context, in *management.UserID) (*management.User, error) { user, err := s.user.LockUser(ctx, in.Id) if err != nil { return nil, err @@ -84,7 +86,7 @@ func (s *Server) LockUser(ctx context.Context, in *UserID) (*User, error) { return userFromModel(user), nil } -func (s *Server) UnlockUser(ctx context.Context, in *UserID) (*User, error) { +func (s *Server) UnlockUser(ctx context.Context, in *management.UserID) (*management.User, error) { user, err := s.user.UnlockUser(ctx, in.Id) if err != nil { return nil, err @@ -92,11 +94,11 @@ func (s *Server) UnlockUser(ctx context.Context, in *UserID) (*User, error) { return userFromModel(user), nil } -func (s *Server) DeleteUser(ctx context.Context, in *UserID) (*empty.Empty, error) { +func (s *Server) DeleteUser(ctx context.Context, in *management.UserID) (*empty.Empty, error) { return nil, errors.ThrowUnimplemented(nil, "GRPC-as4fg", "Not implemented") } -func (s *Server) GetUserProfile(ctx context.Context, in *UserID) (*UserProfileView, error) { +func (s *Server) GetUserProfile(ctx context.Context, in *management.UserID) (*management.UserProfileView, error) { profile, err := s.user.ProfileByID(ctx, in.Id) if err != nil { return nil, err @@ -104,7 +106,7 @@ func (s *Server) GetUserProfile(ctx context.Context, in *UserID) (*UserProfileVi return profileViewFromModel(profile), nil } -func (s *Server) UpdateUserProfile(ctx context.Context, request *UpdateUserProfileRequest) (*UserProfile, error) { +func (s *Server) UpdateUserProfile(ctx context.Context, request *management.UpdateUserProfileRequest) (*management.UserProfile, error) { profile, err := s.user.ChangeProfile(ctx, updateProfileToModel(request)) if err != nil { return nil, err @@ -112,7 +114,7 @@ func (s *Server) UpdateUserProfile(ctx context.Context, request *UpdateUserProfi return profileFromModel(profile), nil } -func (s *Server) GetUserEmail(ctx context.Context, in *UserID) (*UserEmailView, error) { +func (s *Server) GetUserEmail(ctx context.Context, in *management.UserID) (*management.UserEmailView, error) { email, err := s.user.EmailByID(ctx, in.Id) if err != nil { return nil, err @@ -120,7 +122,7 @@ func (s *Server) GetUserEmail(ctx context.Context, in *UserID) (*UserEmailView, return emailViewFromModel(email), nil } -func (s *Server) ChangeUserEmail(ctx context.Context, request *UpdateUserEmailRequest) (*UserEmail, error) { +func (s *Server) ChangeUserEmail(ctx context.Context, request *management.UpdateUserEmailRequest) (*management.UserEmail, error) { email, err := s.user.ChangeEmail(ctx, updateEmailToModel(request)) if err != nil { return nil, err @@ -128,12 +130,12 @@ func (s *Server) ChangeUserEmail(ctx context.Context, request *UpdateUserEmailRe return emailFromModel(email), nil } -func (s *Server) ResendEmailVerificationMail(ctx context.Context, in *UserID) (*empty.Empty, error) { +func (s *Server) ResendEmailVerificationMail(ctx context.Context, in *management.UserID) (*empty.Empty, error) { err := s.user.CreateEmailVerificationCode(ctx, in.Id) return &empty.Empty{}, err } -func (s *Server) GetUserPhone(ctx context.Context, in *UserID) (*UserPhoneView, error) { +func (s *Server) GetUserPhone(ctx context.Context, in *management.UserID) (*management.UserPhoneView, error) { phone, err := s.user.PhoneByID(ctx, in.Id) if err != nil { return nil, err @@ -141,7 +143,7 @@ func (s *Server) GetUserPhone(ctx context.Context, in *UserID) (*UserPhoneView, return phoneViewFromModel(phone), nil } -func (s *Server) ChangeUserPhone(ctx context.Context, request *UpdateUserPhoneRequest) (*UserPhone, error) { +func (s *Server) ChangeUserPhone(ctx context.Context, request *management.UpdateUserPhoneRequest) (*management.UserPhone, error) { phone, err := s.user.ChangePhone(ctx, updatePhoneToModel(request)) if err != nil { return nil, err @@ -149,16 +151,17 @@ func (s *Server) ChangeUserPhone(ctx context.Context, request *UpdateUserPhoneRe return phoneFromModel(phone), nil } -func (s *Server) RemoveUserPhone(ctx context.Context, userID *UserID) (*empty.Empty, error) { +func (s *Server) RemoveUserPhone(ctx context.Context, userID *management.UserID) (*empty.Empty, error) { err := s.user.RemovePhone(ctx, userID.Id) return &empty.Empty{}, err } -func (s *Server) ResendPhoneVerificationCode(ctx context.Context, in *UserID) (*empty.Empty, error) { + +func (s *Server) ResendPhoneVerificationCode(ctx context.Context, in *management.UserID) (*empty.Empty, error) { err := s.user.CreatePhoneVerificationCode(ctx, in.Id) return &empty.Empty{}, err } -func (s *Server) GetUserAddress(ctx context.Context, in *UserID) (*UserAddressView, error) { +func (s *Server) GetUserAddress(ctx context.Context, in *management.UserID) (*management.UserAddressView, error) { address, err := s.user.AddressByID(ctx, in.Id) if err != nil { return nil, err @@ -166,7 +169,7 @@ func (s *Server) GetUserAddress(ctx context.Context, in *UserID) (*UserAddressVi return addressViewFromModel(address), nil } -func (s *Server) UpdateUserAddress(ctx context.Context, request *UpdateUserAddressRequest) (*UserAddress, error) { +func (s *Server) UpdateUserAddress(ctx context.Context, request *management.UpdateUserAddressRequest) (*management.UserAddress, error) { address, err := s.user.ChangeAddress(ctx, updateAddressToModel(request)) if err != nil { return nil, err @@ -174,20 +177,20 @@ func (s *Server) UpdateUserAddress(ctx context.Context, request *UpdateUserAddre return addressFromModel(address), nil } -func (s *Server) SendSetPasswordNotification(ctx context.Context, request *SetPasswordNotificationRequest) (*empty.Empty, error) { +func (s *Server) SendSetPasswordNotification(ctx context.Context, request *management.SetPasswordNotificationRequest) (*empty.Empty, error) { err := s.user.RequestSetPassword(ctx, request.Id, notifyTypeToModel(request.Type)) return &empty.Empty{}, err } -func (s *Server) SetInitialPassword(ctx context.Context, request *PasswordRequest) (*empty.Empty, error) { +func (s *Server) SetInitialPassword(ctx context.Context, request *management.PasswordRequest) (*empty.Empty, error) { _, err := s.user.SetOneTimePassword(ctx, passwordRequestToModel(request)) return &empty.Empty{}, err } -func (s *Server) GetUserMfas(ctx context.Context, userID *UserID) (*MultiFactors, error) { +func (s *Server) GetUserMfas(ctx context.Context, userID *management.UserID) (*management.MultiFactors, error) { mfas, err := s.user.UserMfas(ctx, userID.Id) if err != nil { return nil, err } - return &MultiFactors{Mfas: mfasFromModel(mfas)}, nil + return &management.MultiFactors{Mfas: mfasFromModel(mfas)}, nil } diff --git a/pkg/management/api/grpc/user_converter.go b/internal/api/grpc/management/user_converter.go similarity index 73% rename from pkg/management/api/grpc/user_converter.go rename to internal/api/grpc/management/user_converter.go index e0d399ab21..169cf5e379 100644 --- a/pkg/management/api/grpc/user_converter.go +++ b/internal/api/grpc/management/user_converter.go @@ -1,27 +1,28 @@ -package grpc +package management import ( "encoding/json" "github.com/caos/logging" - "github.com/caos/zitadel/internal/eventstore/models" - usr_model "github.com/caos/zitadel/internal/user/model" - "github.com/caos/zitadel/pkg/message" - "github.com/golang/protobuf/ptypes" "golang.org/x/text/language" "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/types/known/structpb" + + "github.com/caos/zitadel/internal/eventstore/models" + usr_model "github.com/caos/zitadel/internal/user/model" + "github.com/caos/zitadel/pkg/grpc/management" + "github.com/caos/zitadel/pkg/grpc/message" ) -func userFromModel(user *usr_model.User) *User { +func userFromModel(user *usr_model.User) *management.User { creationDate, err := ptypes.TimestampProto(user.CreationDate) logging.Log("GRPC-8duwe").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(user.ChangeDate) logging.Log("GRPC-ckoe3d").OnError(err).Debug("unable to parse timestamp") - converted := &User{ + converted := &management.User{ Id: user.AggregateID, State: userStateFromModel(user.State), CreationDate: creationDate, @@ -53,7 +54,7 @@ func userFromModel(user *usr_model.User) *User { return converted } -func userCreateToModel(u *CreateUserRequest) *usr_model.User { +func userCreateToModel(u *management.CreateUserRequest) *usr_model.User { preferredLanguage, err := language.Parse(u.PreferredLanguage) logging.Log("GRPC-cK5k2").OnError(err).Debug("language malformed") @@ -87,14 +88,14 @@ func userCreateToModel(u *CreateUserRequest) *usr_model.User { return user } -func passwordRequestToModel(r *PasswordRequest) *usr_model.Password { +func passwordRequestToModel(r *management.PasswordRequest) *usr_model.Password { return &usr_model.Password{ ObjectRoot: models.ObjectRoot{AggregateID: r.Id}, SecretString: r.Password, } } -func userSearchRequestsToModel(project *UserSearchRequest) *usr_model.UserSearchRequest { +func userSearchRequestsToModel(project *management.UserSearchRequest) *usr_model.UserSearchRequest { return &usr_model.UserSearchRequest{ Offset: project.Offset, Limit: project.Limit, @@ -102,7 +103,7 @@ func userSearchRequestsToModel(project *UserSearchRequest) *usr_model.UserSearch } } -func userSearchQueriesToModel(queries []*UserSearchQuery) []*usr_model.UserSearchQuery { +func userSearchQueriesToModel(queries []*management.UserSearchQuery) []*usr_model.UserSearchQuery { converted := make([]*usr_model.UserSearchQuery, len(queries)) for i, q := range queries { converted[i] = userSearchQueryToModel(q) @@ -110,7 +111,7 @@ func userSearchQueriesToModel(queries []*UserSearchQuery) []*usr_model.UserSearc return converted } -func userSearchQueryToModel(query *UserSearchQuery) *usr_model.UserSearchQuery { +func userSearchQueryToModel(query *management.UserSearchQuery) *usr_model.UserSearchQuery { return &usr_model.UserSearchQuery{ Key: userSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -118,35 +119,35 @@ func userSearchQueryToModel(query *UserSearchQuery) *usr_model.UserSearchQuery { } } -func userSearchKeyToModel(key UserSearchKey) usr_model.UserSearchKey { +func userSearchKeyToModel(key management.UserSearchKey) usr_model.UserSearchKey { switch key { - case UserSearchKey_USERSEARCHKEY_USER_NAME: + case management.UserSearchKey_USERSEARCHKEY_USER_NAME: return usr_model.UserSearchKeyUserName - case UserSearchKey_USERSEARCHKEY_FIRST_NAME: + case management.UserSearchKey_USERSEARCHKEY_FIRST_NAME: return usr_model.UserSearchKeyFirstName - case UserSearchKey_USERSEARCHKEY_LAST_NAME: + case management.UserSearchKey_USERSEARCHKEY_LAST_NAME: return usr_model.UserSearchKeyLastName - case UserSearchKey_USERSEARCHKEY_NICK_NAME: + case management.UserSearchKey_USERSEARCHKEY_NICK_NAME: return usr_model.UserSearchKeyNickName - case UserSearchKey_USERSEARCHKEY_DISPLAY_NAME: + case management.UserSearchKey_USERSEARCHKEY_DISPLAY_NAME: return usr_model.UserSearchKeyDisplayName - case UserSearchKey_USERSEARCHKEY_EMAIL: + case management.UserSearchKey_USERSEARCHKEY_EMAIL: return usr_model.UserSearchKeyEmail - case UserSearchKey_USERSEARCHKEY_STATE: + case management.UserSearchKey_USERSEARCHKEY_STATE: return usr_model.UserSearchKeyState default: return usr_model.UserSearchKeyUnspecified } } -func profileFromModel(profile *usr_model.Profile) *UserProfile { +func profileFromModel(profile *usr_model.Profile) *management.UserProfile { creationDate, err := ptypes.TimestampProto(profile.CreationDate) logging.Log("GRPC-dkso3").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(profile.ChangeDate) logging.Log("GRPC-ski8d").OnError(err).Debug("unable to parse timestamp") - return &UserProfile{ + return &management.UserProfile{ Id: profile.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -161,14 +162,14 @@ func profileFromModel(profile *usr_model.Profile) *UserProfile { } } -func profileViewFromModel(profile *usr_model.Profile) *UserProfileView { +func profileViewFromModel(profile *usr_model.Profile) *management.UserProfileView { creationDate, err := ptypes.TimestampProto(profile.CreationDate) logging.Log("GRPC-sk8sk").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(profile.ChangeDate) logging.Log("GRPC-s30Ks'").OnError(err).Debug("unable to parse timestamp") - return &UserProfileView{ + return &management.UserProfileView{ Id: profile.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -185,7 +186,7 @@ func profileViewFromModel(profile *usr_model.Profile) *UserProfileView { } } -func updateProfileToModel(u *UpdateUserProfileRequest) *usr_model.Profile { +func updateProfileToModel(u *management.UpdateUserProfileRequest) *usr_model.Profile { preferredLanguage, err := language.Parse(u.PreferredLanguage) logging.Log("GRPC-d8k2s").OnError(err).Debug("language malformed") @@ -199,14 +200,14 @@ func updateProfileToModel(u *UpdateUserProfileRequest) *usr_model.Profile { } } -func emailFromModel(email *usr_model.Email) *UserEmail { +func emailFromModel(email *usr_model.Email) *management.UserEmail { creationDate, err := ptypes.TimestampProto(email.CreationDate) logging.Log("GRPC-d9ow2").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(email.ChangeDate) logging.Log("GRPC-s0dkw").OnError(err).Debug("unable to parse timestamp") - return &UserEmail{ + return &management.UserEmail{ Id: email.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -216,14 +217,14 @@ func emailFromModel(email *usr_model.Email) *UserEmail { } } -func emailViewFromModel(email *usr_model.Email) *UserEmailView { +func emailViewFromModel(email *usr_model.Email) *management.UserEmailView { creationDate, err := ptypes.TimestampProto(email.CreationDate) logging.Log("GRPC-sKefs").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(email.ChangeDate) logging.Log("GRPC-0isjD").OnError(err).Debug("unable to parse timestamp") - return &UserEmailView{ + return &management.UserEmailView{ Id: email.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -233,7 +234,7 @@ func emailViewFromModel(email *usr_model.Email) *UserEmailView { } } -func updateEmailToModel(e *UpdateUserEmailRequest) *usr_model.Email { +func updateEmailToModel(e *management.UpdateUserEmailRequest) *usr_model.Email { return &usr_model.Email{ ObjectRoot: models.ObjectRoot{AggregateID: e.Id}, EmailAddress: e.Email, @@ -241,14 +242,14 @@ func updateEmailToModel(e *UpdateUserEmailRequest) *usr_model.Email { } } -func phoneFromModel(phone *usr_model.Phone) *UserPhone { +func phoneFromModel(phone *usr_model.Phone) *management.UserPhone { creationDate, err := ptypes.TimestampProto(phone.CreationDate) logging.Log("GRPC-ps9ws").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(phone.ChangeDate) logging.Log("GRPC-09ewq").OnError(err).Debug("unable to parse timestamp") - return &UserPhone{ + return &management.UserPhone{ Id: phone.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -258,14 +259,14 @@ func phoneFromModel(phone *usr_model.Phone) *UserPhone { } } -func phoneViewFromModel(phone *usr_model.Phone) *UserPhoneView { +func phoneViewFromModel(phone *usr_model.Phone) *management.UserPhoneView { creationDate, err := ptypes.TimestampProto(phone.CreationDate) logging.Log("GRPC-6gSj").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(phone.ChangeDate) logging.Log("GRPC-lKs8f").OnError(err).Debug("unable to parse timestamp") - return &UserPhoneView{ + return &management.UserPhoneView{ Id: phone.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -274,7 +275,7 @@ func phoneViewFromModel(phone *usr_model.Phone) *UserPhoneView { IsPhoneVerified: phone.IsPhoneVerified, } } -func updatePhoneToModel(e *UpdateUserPhoneRequest) *usr_model.Phone { +func updatePhoneToModel(e *management.UpdateUserPhoneRequest) *usr_model.Phone { return &usr_model.Phone{ ObjectRoot: models.ObjectRoot{AggregateID: e.Id}, PhoneNumber: e.Phone, @@ -282,14 +283,14 @@ func updatePhoneToModel(e *UpdateUserPhoneRequest) *usr_model.Phone { } } -func addressFromModel(address *usr_model.Address) *UserAddress { +func addressFromModel(address *usr_model.Address) *management.UserAddress { creationDate, err := ptypes.TimestampProto(address.CreationDate) logging.Log("GRPC-ud8w7").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(address.ChangeDate) logging.Log("GRPC-si9ws").OnError(err).Debug("unable to parse timestamp") - return &UserAddress{ + return &management.UserAddress{ Id: address.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -302,14 +303,14 @@ func addressFromModel(address *usr_model.Address) *UserAddress { } } -func addressViewFromModel(address *usr_model.Address) *UserAddressView { +func addressViewFromModel(address *usr_model.Address) *management.UserAddressView { creationDate, err := ptypes.TimestampProto(address.CreationDate) logging.Log("GRPC-67stC").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(address.ChangeDate) logging.Log("GRPC-0jSfs").OnError(err).Debug("unable to parse timestamp") - return &UserAddressView{ + return &management.UserAddressView{ Id: address.AggregateID, CreationDate: creationDate, ChangeDate: changeDate, @@ -322,7 +323,7 @@ func addressViewFromModel(address *usr_model.Address) *UserAddressView { } } -func updateAddressToModel(address *UpdateUserAddressRequest) *usr_model.Address { +func updateAddressToModel(address *management.UpdateUserAddressRequest) *usr_model.Address { return &usr_model.Address{ ObjectRoot: models.ObjectRoot{AggregateID: address.Id}, Country: address.Country, @@ -333,8 +334,8 @@ func updateAddressToModel(address *UpdateUserAddressRequest) *usr_model.Address } } -func userSearchResponseFromModel(response *usr_model.UserSearchResponse) *UserSearchResponse { - return &UserSearchResponse{ +func userSearchResponseFromModel(response *usr_model.UserSearchResponse) *management.UserSearchResponse { + return &management.UserSearchResponse{ Offset: response.Offset, Limit: response.Limit, TotalResult: response.TotalResult, @@ -342,15 +343,15 @@ func userSearchResponseFromModel(response *usr_model.UserSearchResponse) *UserSe } } -func userViewsFromModel(users []*usr_model.UserView) []*UserView { - converted := make([]*UserView, len(users)) +func userViewsFromModel(users []*usr_model.UserView) []*management.UserView { + converted := make([]*management.UserView, len(users)) for i, user := range users { converted[i] = userViewFromModel(user) } return converted } -func userViewFromModel(user *usr_model.UserView) *UserView { +func userViewFromModel(user *usr_model.UserView) *management.UserView { creationDate, err := ptypes.TimestampProto(user.CreationDate) logging.Log("GRPC-dl9we").OnError(err).Debug("unable to parse timestamp") @@ -363,7 +364,7 @@ func userViewFromModel(user *usr_model.UserView) *UserView { passwordChanged, err := ptypes.TimestampProto(user.PasswordChanged) logging.Log("GRPC-dl9ws").OnError(err).Debug("unable to parse timestamp") - return &UserView{ + return &management.UserView{ Id: user.ID, State: userStateFromModel(user.State), CreationDate: creationDate, @@ -393,107 +394,107 @@ func userViewFromModel(user *usr_model.UserView) *UserView { } } -func mfasFromModel(mfas []*usr_model.MultiFactor) []*MultiFactor { - converted := make([]*MultiFactor, len(mfas)) +func mfasFromModel(mfas []*usr_model.MultiFactor) []*management.MultiFactor { + converted := make([]*management.MultiFactor, len(mfas)) for i, mfa := range mfas { converted[i] = mfaFromModel(mfa) } return converted } -func mfaFromModel(mfa *usr_model.MultiFactor) *MultiFactor { - return &MultiFactor{ +func mfaFromModel(mfa *usr_model.MultiFactor) *management.MultiFactor { + return &management.MultiFactor{ State: mfaStateFromModel(mfa.State), Type: mfaTypeFromModel(mfa.Type), } } -func notifyTypeToModel(state NotificationType) usr_model.NotificationType { +func notifyTypeToModel(state management.NotificationType) usr_model.NotificationType { switch state { - case NotificationType_NOTIFICATIONTYPE_EMAIL: + case management.NotificationType_NOTIFICATIONTYPE_EMAIL: return usr_model.NotificationTypeEmail - case NotificationType_NOTIFICATIONTYPE_SMS: + case management.NotificationType_NOTIFICATIONTYPE_SMS: return usr_model.NotificationTypeSms default: return usr_model.NotificationTypeEmail } } -func userStateFromModel(state usr_model.UserState) UserState { +func userStateFromModel(state usr_model.UserState) management.UserState { switch state { case usr_model.UserStateActive: - return UserState_USERSTATE_ACTIVE + return management.UserState_USERSTATE_ACTIVE case usr_model.UserStateInactive: - return UserState_USERSTATE_INACTIVE + return management.UserState_USERSTATE_INACTIVE case usr_model.UserStateLocked: - return UserState_USERSTATE_LOCKED + return management.UserState_USERSTATE_LOCKED case usr_model.UserStateInitial: - return UserState_USERSTATE_INITIAL + return management.UserState_USERSTATE_INITIAL case usr_model.UserStateSuspend: - return UserState_USERSTATE_SUSPEND + return management.UserState_USERSTATE_SUSPEND default: - return UserState_USERSTATE_UNSPECIFIED + return management.UserState_USERSTATE_UNSPECIFIED } } -func genderFromModel(gender usr_model.Gender) Gender { +func genderFromModel(gender usr_model.Gender) management.Gender { switch gender { case usr_model.GenderFemale: - return Gender_GENDER_FEMALE + return management.Gender_GENDER_FEMALE case usr_model.GenderMale: - return Gender_GENDER_MALE + return management.Gender_GENDER_MALE case usr_model.GenderDiverse: - return Gender_GENDER_DIVERSE + return management.Gender_GENDER_DIVERSE default: - return Gender_GENDER_UNSPECIFIED + return management.Gender_GENDER_UNSPECIFIED } } -func genderToModel(gender Gender) usr_model.Gender { +func genderToModel(gender management.Gender) usr_model.Gender { switch gender { - case Gender_GENDER_FEMALE: + case management.Gender_GENDER_FEMALE: return usr_model.GenderFemale - case Gender_GENDER_MALE: + case management.Gender_GENDER_MALE: return usr_model.GenderMale - case Gender_GENDER_DIVERSE: + case management.Gender_GENDER_DIVERSE: return usr_model.GenderDiverse default: return usr_model.GenderUnspecified } } -func mfaTypeFromModel(mfatype usr_model.MfaType) MfaType { +func mfaTypeFromModel(mfatype usr_model.MfaType) management.MfaType { switch mfatype { case usr_model.MfaTypeOTP: - return MfaType_MFATYPE_OTP + return management.MfaType_MFATYPE_OTP case usr_model.MfaTypeSMS: - return MfaType_MFATYPE_SMS + return management.MfaType_MFATYPE_SMS default: - return MfaType_MFATYPE_UNSPECIFIED + return management.MfaType_MFATYPE_UNSPECIFIED } } -func mfaStateFromModel(state usr_model.MfaState) MFAState { +func mfaStateFromModel(state usr_model.MfaState) management.MFAState { switch state { case usr_model.MfaStateReady: - return MFAState_MFASTATE_READY + return management.MFAState_MFASTATE_READY case usr_model.MfaStateNotReady: - return MFAState_MFASTATE_NOT_READY + return management.MFAState_MFASTATE_NOT_READY default: - return MFAState_MFASTATE_UNSPECIFIED + return management.MFAState_MFASTATE_UNSPECIFIED } } -func userChangesToResponse(response *usr_model.UserChanges, offset uint64, limit uint64) (_ *Changes) { - return &Changes{ +func userChangesToResponse(response *usr_model.UserChanges, offset uint64, limit uint64) (_ *management.Changes) { + return &management.Changes{ Limit: limit, Offset: offset, Changes: userChangesToMgtAPI(response), } } -func userChangesToMgtAPI(changes *usr_model.UserChanges) (_ []*Change) { - result := make([]*Change, len(changes.Changes)) +func userChangesToMgtAPI(changes *usr_model.UserChanges) (_ []*management.Change) { + result := make([]*management.Change, len(changes.Changes)) for i, change := range changes.Changes { var data *structpb.Struct @@ -504,7 +505,7 @@ func userChangesToMgtAPI(changes *usr_model.UserChanges) (_ []*Change) { logging.Log("GRPC-a7F54").OnError(err).Debug("unable to marshal changed data to struct") } - result[i] = &Change{ + result[i] = &management.Change{ ChangeDate: change.ChangeDate, EventType: message.NewLocalizedEventType(change.EventType), Sequence: change.Sequence, diff --git a/pkg/management/api/grpc/user_grant.go b/internal/api/grpc/management/user_grant.go similarity index 63% rename from pkg/management/api/grpc/user_grant.go rename to internal/api/grpc/management/user_grant.go index 1e9a4cf5fd..57730be25a 100644 --- a/pkg/management/api/grpc/user_grant.go +++ b/internal/api/grpc/management/user_grant.go @@ -1,14 +1,17 @@ -package grpc +package management import ( "context" - "github.com/caos/zitadel/internal/api/auth" + "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/pkg/grpc/management" ) -func (s *Server) SearchUserGrants(ctx context.Context, in *UserGrantSearchRequest) (*UserGrantSearchResponse, error) { +func (s *Server) SearchUserGrants(ctx context.Context, in *management.UserGrantSearchRequest) (*management.UserGrantSearchResponse, error) { request := userGrantSearchRequestsToModel(in) - request.AppendMyOrgQuery(auth.GetCtxData(ctx).OrgID) + request.AppendMyOrgQuery(authz.GetCtxData(ctx).OrgID) response, err := s.usergrant.SearchUserGrants(ctx, request) if err != nil { return nil, err @@ -16,7 +19,7 @@ func (s *Server) SearchUserGrants(ctx context.Context, in *UserGrantSearchReques return userGrantSearchResponseFromModel(response), nil } -func (s *Server) UserGrantByID(ctx context.Context, request *UserGrantID) (*UserGrantView, error) { +func (s *Server) UserGrantByID(ctx context.Context, request *management.UserGrantID) (*management.UserGrantView, error) { user, err := s.usergrant.UserGrantByID(ctx, request.Id) if err != nil { return nil, err @@ -24,7 +27,7 @@ func (s *Server) UserGrantByID(ctx context.Context, request *UserGrantID) (*User return userGrantViewFromModel(user), nil } -func (s *Server) CreateUserGrant(ctx context.Context, in *UserGrantCreate) (*UserGrant, error) { +func (s *Server) CreateUserGrant(ctx context.Context, in *management.UserGrantCreate) (*management.UserGrant, error) { user, err := s.usergrant.AddUserGrant(ctx, userGrantCreateToModel(in)) if err != nil { return nil, err @@ -32,21 +35,21 @@ func (s *Server) CreateUserGrant(ctx context.Context, in *UserGrantCreate) (*Use return usergrantFromModel(user), nil } -func (s *Server) UpdateUserGrant(ctx context.Context, in *UserGrantUpdate) (*UserGrant, error) { +func (s *Server) UpdateUserGrant(ctx context.Context, in *management.UserGrantUpdate) (*management.UserGrant, error) { user, err := s.usergrant.ChangeUserGrant(ctx, userGrantUpdateToModel(in)) if err != nil { return nil, err } return usergrantFromModel(user), nil } -func (s *Server) DeactivateUserGrant(ctx context.Context, in *UserGrantID) (*UserGrant, error) { +func (s *Server) DeactivateUserGrant(ctx context.Context, in *management.UserGrantID) (*management.UserGrant, error) { user, err := s.usergrant.DeactivateUserGrant(ctx, in.Id) if err != nil { return nil, err } return usergrantFromModel(user), nil } -func (s *Server) ReactivateUserGrant(ctx context.Context, in *UserGrantID) (*UserGrant, error) { +func (s *Server) ReactivateUserGrant(ctx context.Context, in *management.UserGrantID) (*management.UserGrant, error) { user, err := s.usergrant.ReactivateUserGrant(ctx, in.Id) if err != nil { return nil, err @@ -54,29 +57,29 @@ func (s *Server) ReactivateUserGrant(ctx context.Context, in *UserGrantID) (*Use return usergrantFromModel(user), nil } -func (s *Server) RemoveUserGrant(ctx context.Context, in *UserGrantID) (*empty.Empty, error) { +func (s *Server) RemoveUserGrant(ctx context.Context, in *management.UserGrantID) (*empty.Empty, error) { err := s.usergrant.RemoveUserGrant(ctx, in.Id) return &empty.Empty{}, err } -func (s *Server) BulkCreateUserGrant(ctx context.Context, in *UserGrantCreateBulk) (*empty.Empty, error) { +func (s *Server) BulkCreateUserGrant(ctx context.Context, in *management.UserGrantCreateBulk) (*empty.Empty, error) { err := s.usergrant.BulkAddUserGrant(ctx, userGrantCreateBulkToModel(in)...) return &empty.Empty{}, err } -func (s *Server) BulkUpdateUserGrant(ctx context.Context, in *UserGrantUpdateBulk) (*empty.Empty, error) { +func (s *Server) BulkUpdateUserGrant(ctx context.Context, in *management.UserGrantUpdateBulk) (*empty.Empty, error) { err := s.usergrant.BulkChangeUserGrant(ctx, userGrantUpdateBulkToModel(in)...) return &empty.Empty{}, err } -func (s *Server) BulkRemoveUserGrant(ctx context.Context, in *UserGrantRemoveBulk) (*empty.Empty, error) { +func (s *Server) BulkRemoveUserGrant(ctx context.Context, in *management.UserGrantRemoveBulk) (*empty.Empty, error) { err := s.usergrant.BulkRemoveUserGrant(ctx, userGrantRemoveBulkToModel(in)...) return &empty.Empty{}, err } -func (s *Server) SearchProjectUserGrants(ctx context.Context, in *ProjectUserGrantSearchRequest) (*UserGrantSearchResponse, error) { +func (s *Server) SearchProjectUserGrants(ctx context.Context, in *management.ProjectUserGrantSearchRequest) (*management.UserGrantSearchResponse, error) { request := projectUserGrantSearchRequestsToModel(in) - request.AppendMyOrgQuery(auth.GetCtxData(ctx).OrgID) + request.AppendMyOrgQuery(authz.GetCtxData(ctx).OrgID) request.AppendProjectIDQuery(in.ProjectId) response, err := s.usergrant.SearchUserGrants(ctx, request) if err != nil { @@ -85,7 +88,7 @@ func (s *Server) SearchProjectUserGrants(ctx context.Context, in *ProjectUserGra return userGrantSearchResponseFromModel(response), nil } -func (s *Server) ProjectUserGrantByID(ctx context.Context, request *ProjectUserGrantID) (*UserGrantView, error) { +func (s *Server) ProjectUserGrantByID(ctx context.Context, request *management.ProjectUserGrantID) (*management.UserGrantView, error) { user, err := s.usergrant.UserGrantByID(ctx, request.Id) if err != nil { return nil, err @@ -93,14 +96,14 @@ func (s *Server) ProjectUserGrantByID(ctx context.Context, request *ProjectUserG return userGrantViewFromModel(user), nil } -func (s *Server) CreateProjectUserGrant(ctx context.Context, in *UserGrantCreate) (*UserGrant, error) { +func (s *Server) CreateProjectUserGrant(ctx context.Context, in *management.UserGrantCreate) (*management.UserGrant, error) { user, err := s.usergrant.AddUserGrant(ctx, userGrantCreateToModel(in)) if err != nil { return nil, err } return usergrantFromModel(user), nil } -func (s *Server) UpdateProjectUserGrant(ctx context.Context, in *ProjectUserGrantUpdate) (*UserGrant, error) { +func (s *Server) UpdateProjectUserGrant(ctx context.Context, in *management.ProjectUserGrantUpdate) (*management.UserGrant, error) { user, err := s.usergrant.ChangeUserGrant(ctx, projectUserGrantUpdateToModel(in)) if err != nil { return nil, err @@ -108,7 +111,7 @@ func (s *Server) UpdateProjectUserGrant(ctx context.Context, in *ProjectUserGran return usergrantFromModel(user), nil } -func (s *Server) DeactivateProjectUserGrant(ctx context.Context, in *ProjectUserGrantID) (*UserGrant, error) { +func (s *Server) DeactivateProjectUserGrant(ctx context.Context, in *management.ProjectUserGrantID) (*management.UserGrant, error) { user, err := s.usergrant.DeactivateUserGrant(ctx, in.Id) if err != nil { return nil, err @@ -116,7 +119,7 @@ func (s *Server) DeactivateProjectUserGrant(ctx context.Context, in *ProjectUser return usergrantFromModel(user), nil } -func (s *Server) ReactivateProjectUserGrant(ctx context.Context, in *ProjectUserGrantID) (*UserGrant, error) { +func (s *Server) ReactivateProjectUserGrant(ctx context.Context, in *management.ProjectUserGrantID) (*management.UserGrant, error) { user, err := s.usergrant.ReactivateUserGrant(ctx, in.Id) if err != nil { return nil, err @@ -124,13 +127,13 @@ func (s *Server) ReactivateProjectUserGrant(ctx context.Context, in *ProjectUser return usergrantFromModel(user), nil } -func (s *Server) SearchProjectGrantUserGrants(ctx context.Context, in *ProjectGrantUserGrantSearchRequest) (*UserGrantSearchResponse, error) { +func (s *Server) SearchProjectGrantUserGrants(ctx context.Context, in *management.ProjectGrantUserGrantSearchRequest) (*management.UserGrantSearchResponse, error) { grant, err := s.project.ProjectGrantByID(ctx, in.ProjectGrantId) if err != nil { return nil, err } request := projectGrantUserGrantSearchRequestsToModel(in) - request.AppendMyOrgQuery(auth.GetCtxData(ctx).OrgID) + request.AppendMyOrgQuery(authz.GetCtxData(ctx).OrgID) request.AppendProjectIDQuery(grant.ProjectID) response, err := s.usergrant.SearchUserGrants(ctx, request) if err != nil { @@ -139,7 +142,7 @@ func (s *Server) SearchProjectGrantUserGrants(ctx context.Context, in *ProjectGr return userGrantSearchResponseFromModel(response), nil } -func (s *Server) ProjectGrantUserGrantByID(ctx context.Context, request *ProjectGrantUserGrantID) (*UserGrantView, error) { +func (s *Server) ProjectGrantUserGrantByID(ctx context.Context, request *management.ProjectGrantUserGrantID) (*management.UserGrantView, error) { user, err := s.usergrant.UserGrantByID(ctx, request.Id) if err != nil { return nil, err @@ -147,14 +150,14 @@ func (s *Server) ProjectGrantUserGrantByID(ctx context.Context, request *Project return userGrantViewFromModel(user), nil } -func (s *Server) CreateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantCreate) (*UserGrant, error) { +func (s *Server) CreateProjectGrantUserGrant(ctx context.Context, in *management.ProjectGrantUserGrantCreate) (*management.UserGrant, error) { user, err := s.usergrant.AddUserGrant(ctx, projectGrantUserGrantCreateToModel(in)) if err != nil { return nil, err } return usergrantFromModel(user), nil } -func (s *Server) UpdateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantUpdate) (*UserGrant, error) { +func (s *Server) UpdateProjectGrantUserGrant(ctx context.Context, in *management.ProjectGrantUserGrantUpdate) (*management.UserGrant, error) { user, err := s.usergrant.ChangeUserGrant(ctx, projectGrantUserGrantUpdateToModel(in)) if err != nil { return nil, err @@ -162,7 +165,7 @@ func (s *Server) UpdateProjectGrantUserGrant(ctx context.Context, in *ProjectGra return usergrantFromModel(user), nil } -func (s *Server) DeactivateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantID) (*UserGrant, error) { +func (s *Server) DeactivateProjectGrantUserGrant(ctx context.Context, in *management.ProjectGrantUserGrantID) (*management.UserGrant, error) { user, err := s.usergrant.DeactivateUserGrant(ctx, in.Id) if err != nil { return nil, err @@ -170,7 +173,7 @@ func (s *Server) DeactivateProjectGrantUserGrant(ctx context.Context, in *Projec return usergrantFromModel(user), nil } -func (s *Server) ReactivateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantID) (*UserGrant, error) { +func (s *Server) ReactivateProjectGrantUserGrant(ctx context.Context, in *management.ProjectGrantUserGrantID) (*management.UserGrant, error) { user, err := s.usergrant.ReactivateUserGrant(ctx, in.Id) if err != nil { return nil, err diff --git a/pkg/management/api/grpc/user_grant_converter.go b/internal/api/grpc/management/user_grant_converter.go similarity index 63% rename from pkg/management/api/grpc/user_grant_converter.go rename to internal/api/grpc/management/user_grant_converter.go index b3ecfa4e90..c1fcae1e64 100644 --- a/pkg/management/api/grpc/user_grant_converter.go +++ b/internal/api/grpc/management/user_grant_converter.go @@ -1,20 +1,22 @@ -package grpc +package management import ( "github.com/caos/logging" + "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/internal/eventstore/models" grant_model "github.com/caos/zitadel/internal/usergrant/model" - "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/pkg/grpc/management" ) -func usergrantFromModel(grant *grant_model.UserGrant) *UserGrant { +func usergrantFromModel(grant *grant_model.UserGrant) *management.UserGrant { creationDate, err := ptypes.TimestampProto(grant.CreationDate) logging.Log("GRPC-ki9ds").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(grant.ChangeDate) logging.Log("GRPC-sl9ew").OnError(err).Debug("unable to parse timestamp") - return &UserGrant{ + return &management.UserGrant{ Id: grant.AggregateID, UserId: grant.UserID, State: usergrantStateFromModel(grant.State), @@ -26,7 +28,7 @@ func usergrantFromModel(grant *grant_model.UserGrant) *UserGrant { } } -func userGrantCreateBulkToModel(u *UserGrantCreateBulk) []*grant_model.UserGrant { +func userGrantCreateBulkToModel(u *management.UserGrantCreateBulk) []*grant_model.UserGrant { grants := make([]*grant_model.UserGrant, len(u.UserGrants)) for i, grant := range u.UserGrants { grants[i] = userGrantCreateToModel(grant) @@ -34,7 +36,7 @@ func userGrantCreateBulkToModel(u *UserGrantCreateBulk) []*grant_model.UserGrant return grants } -func userGrantCreateToModel(u *UserGrantCreate) *grant_model.UserGrant { +func userGrantCreateToModel(u *management.UserGrantCreate) *grant_model.UserGrant { return &grant_model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: u.UserId}, UserID: u.UserId, @@ -43,7 +45,7 @@ func userGrantCreateToModel(u *UserGrantCreate) *grant_model.UserGrant { } } -func userGrantUpdateBulkToModel(u *UserGrantUpdateBulk) []*grant_model.UserGrant { +func userGrantUpdateBulkToModel(u *management.UserGrantUpdateBulk) []*grant_model.UserGrant { grants := make([]*grant_model.UserGrant, len(u.UserGrants)) for i, grant := range u.UserGrants { grants[i] = userGrantUpdateToModel(grant) @@ -51,14 +53,14 @@ func userGrantUpdateBulkToModel(u *UserGrantUpdateBulk) []*grant_model.UserGrant return grants } -func userGrantUpdateToModel(u *UserGrantUpdate) *grant_model.UserGrant { +func userGrantUpdateToModel(u *management.UserGrantUpdate) *grant_model.UserGrant { return &grant_model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: u.Id}, RoleKeys: u.RoleKeys, } } -func userGrantRemoveBulkToModel(u *UserGrantRemoveBulk) []string { +func userGrantRemoveBulkToModel(u *management.UserGrantRemoveBulk) []string { ids := make([]string, len(u.Ids)) for i, id := range u.Ids { ids[i] = id @@ -66,14 +68,14 @@ func userGrantRemoveBulkToModel(u *UserGrantRemoveBulk) []string { return ids } -func projectUserGrantUpdateToModel(u *ProjectUserGrantUpdate) *grant_model.UserGrant { +func projectUserGrantUpdateToModel(u *management.ProjectUserGrantUpdate) *grant_model.UserGrant { return &grant_model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: u.Id}, RoleKeys: u.RoleKeys, } } -func projectGrantUserGrantCreateToModel(u *ProjectGrantUserGrantCreate) *grant_model.UserGrant { +func projectGrantUserGrantCreateToModel(u *management.ProjectGrantUserGrantCreate) *grant_model.UserGrant { return &grant_model.UserGrant{ UserID: u.UserId, ProjectID: u.ProjectId, @@ -81,14 +83,14 @@ func projectGrantUserGrantCreateToModel(u *ProjectGrantUserGrantCreate) *grant_m } } -func projectGrantUserGrantUpdateToModel(u *ProjectGrantUserGrantUpdate) *grant_model.UserGrant { +func projectGrantUserGrantUpdateToModel(u *management.ProjectGrantUserGrantUpdate) *grant_model.UserGrant { return &grant_model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: u.Id}, RoleKeys: u.RoleKeys, } } -func userGrantSearchRequestsToModel(project *UserGrantSearchRequest) *grant_model.UserGrantSearchRequest { +func userGrantSearchRequestsToModel(project *management.UserGrantSearchRequest) *grant_model.UserGrantSearchRequest { return &grant_model.UserGrantSearchRequest{ Offset: project.Offset, Limit: project.Limit, @@ -96,7 +98,7 @@ func userGrantSearchRequestsToModel(project *UserGrantSearchRequest) *grant_mode } } -func userGrantSearchQueriesToModel(queries []*UserGrantSearchQuery) []*grant_model.UserGrantSearchQuery { +func userGrantSearchQueriesToModel(queries []*management.UserGrantSearchQuery) []*grant_model.UserGrantSearchQuery { converted := make([]*grant_model.UserGrantSearchQuery, len(queries)) for i, q := range queries { converted[i] = userGrantSearchQueryToModel(q) @@ -104,7 +106,7 @@ func userGrantSearchQueriesToModel(queries []*UserGrantSearchQuery) []*grant_mod return converted } -func userGrantSearchQueryToModel(query *UserGrantSearchQuery) *grant_model.UserGrantSearchQuery { +func userGrantSearchQueryToModel(query *management.UserGrantSearchQuery) *grant_model.UserGrantSearchQuery { return &grant_model.UserGrantSearchQuery{ Key: userGrantSearchKeyToModel(query.Key), Method: searchMethodToModel(query.Method), @@ -112,23 +114,23 @@ func userGrantSearchQueryToModel(query *UserGrantSearchQuery) *grant_model.UserG } } -func userGrantSearchKeyToModel(key UserGrantSearchKey) grant_model.UserGrantSearchKey { +func userGrantSearchKeyToModel(key management.UserGrantSearchKey) grant_model.UserGrantSearchKey { switch key { - case UserGrantSearchKey_USERGRANTSEARCHKEY_ORG_ID: + case management.UserGrantSearchKey_USERGRANTSEARCHKEY_ORG_ID: return grant_model.UserGrantSearchKeyResourceOwner - case UserGrantSearchKey_USERGRANTSEARCHKEY_PROJECT_ID: + case management.UserGrantSearchKey_USERGRANTSEARCHKEY_PROJECT_ID: return grant_model.UserGrantSearchKeyProjectID - case UserGrantSearchKey_USERGRANTSEARCHKEY_USER_ID: + case management.UserGrantSearchKey_USERGRANTSEARCHKEY_USER_ID: return grant_model.UserGrantSearchKeyUserID - case UserGrantSearchKey_USERGRANTSEARCHKEY_ROLE_KEY: + case management.UserGrantSearchKey_USERGRANTSEARCHKEY_ROLE_KEY: return grant_model.UserGrantSearchKeyRoleKey default: return grant_model.UserGrantSearchKeyUnspecified } } -func userGrantSearchResponseFromModel(response *grant_model.UserGrantSearchResponse) *UserGrantSearchResponse { - return &UserGrantSearchResponse{ +func userGrantSearchResponseFromModel(response *grant_model.UserGrantSearchResponse) *management.UserGrantSearchResponse { + return &management.UserGrantSearchResponse{ Offset: response.Offset, Limit: response.Limit, TotalResult: response.TotalResult, @@ -136,22 +138,22 @@ func userGrantSearchResponseFromModel(response *grant_model.UserGrantSearchRespo } } -func userGrantViewsFromModel(users []*grant_model.UserGrantView) []*UserGrantView { - converted := make([]*UserGrantView, len(users)) +func userGrantViewsFromModel(users []*grant_model.UserGrantView) []*management.UserGrantView { + converted := make([]*management.UserGrantView, len(users)) for i, user := range users { converted[i] = userGrantViewFromModel(user) } return converted } -func userGrantViewFromModel(grant *grant_model.UserGrantView) *UserGrantView { +func userGrantViewFromModel(grant *grant_model.UserGrantView) *management.UserGrantView { creationDate, err := ptypes.TimestampProto(grant.CreationDate) logging.Log("GRPC-dl9we").OnError(err).Debug("unable to parse timestamp") changeDate, err := ptypes.TimestampProto(grant.ChangeDate) logging.Log("GRPC-lpsg5").OnError(err).Debug("unable to parse timestamp") - return &UserGrantView{ + return &management.UserGrantView{ Id: grant.ID, State: usergrantStateFromModel(grant.State), CreationDate: creationDate, @@ -173,18 +175,18 @@ func userGrantViewFromModel(grant *grant_model.UserGrantView) *UserGrantView { } } -func usergrantStateFromModel(state grant_model.UserGrantState) UserGrantState { +func usergrantStateFromModel(state grant_model.UserGrantState) management.UserGrantState { switch state { case grant_model.UserGrantStateActive: - return UserGrantState_USERGRANTSTATE_ACTIVE + return management.UserGrantState_USERGRANTSTATE_ACTIVE case grant_model.UserGrantStateInactive: - return UserGrantState_USERGRANTSTATE_INACTIVE + return management.UserGrantState_USERGRANTSTATE_INACTIVE default: - return UserGrantState_USERGRANTSTATE_UNSPECIFIED + return management.UserGrantState_USERGRANTSTATE_UNSPECIFIED } } -func projectUserGrantSearchRequestsToModel(project *ProjectUserGrantSearchRequest) *grant_model.UserGrantSearchRequest { +func projectUserGrantSearchRequestsToModel(project *management.ProjectUserGrantSearchRequest) *grant_model.UserGrantSearchRequest { return &grant_model.UserGrantSearchRequest{ Offset: project.Offset, Limit: project.Limit, @@ -192,7 +194,7 @@ func projectUserGrantSearchRequestsToModel(project *ProjectUserGrantSearchReques } } -func projectGrantUserGrantSearchRequestsToModel(project *ProjectGrantUserGrantSearchRequest) *grant_model.UserGrantSearchRequest { +func projectGrantUserGrantSearchRequestsToModel(project *management.ProjectGrantUserGrantSearchRequest) *grant_model.UserGrantSearchRequest { return &grant_model.UserGrantSearchRequest{ Offset: project.Offset, Limit: project.Limit, diff --git a/internal/api/grpc/server/gateway.go b/internal/api/grpc/server/gateway.go index c3ae5b6ec9..5a48f02e18 100644 --- a/internal/api/grpc/server/gateway.go +++ b/internal/api/grpc/server/gateway.go @@ -3,12 +3,14 @@ package server import ( "context" "net/http" + "strings" "github.com/grpc-ecosystem/grpc-gateway/runtime" "google.golang.org/grpc" "github.com/caos/logging" + grpc_util "github.com/caos/zitadel/internal/api/grpc" client_middleware "github.com/caos/zitadel/internal/api/grpc/client/middleware" http_util "github.com/caos/zitadel/internal/api/http" http_mw "github.com/caos/zitadel/internal/api/http/middleware" @@ -22,26 +24,41 @@ const ( var ( DefaultJSONMarshaler = &runtime.JSONPb{OrigName: false, EmitDefaults: false} - DefaultServeMuxOptions = []runtime.ServeMuxOption{ - runtime.WithMarshalerOption(DefaultJSONMarshaler.ContentType(), DefaultJSONMarshaler), - runtime.WithMarshalerOption(mimeWildcard, DefaultJSONMarshaler), - runtime.WithMarshalerOption(runtime.MIMEWildcard, DefaultJSONMarshaler), - runtime.WithIncomingHeaderMatcher(runtime.DefaultHeaderMatcher), - runtime.WithOutgoingHeaderMatcher(runtime.DefaultHeaderMatcher), + DefaultServeMuxOptions = func(customHeaders ...string) []runtime.ServeMuxOption { + return []runtime.ServeMuxOption{ + runtime.WithMarshalerOption(DefaultJSONMarshaler.ContentType(), DefaultJSONMarshaler), + runtime.WithMarshalerOption(mimeWildcard, DefaultJSONMarshaler), + runtime.WithMarshalerOption(runtime.MIMEWildcard, DefaultJSONMarshaler), + runtime.WithIncomingHeaderMatcher(DefaultHeaderMatcher(customHeaders...)), + runtime.WithOutgoingHeaderMatcher(runtime.DefaultHeaderMatcher), + } + } + + DefaultHeaderMatcher = func(customHeaders ...string) runtime.HeaderMatcherFunc { + return func(header string) (string, bool) { + for _, customHeader := range customHeaders { + if strings.HasPrefix(strings.ToLower(header), customHeader) { + return header, true + } + } + return runtime.DefaultHeaderMatcher(header) + } } ) type Gateway interface { - GRPCEndpoint() string - GatewayPort() string - Gateway() GatewayFunc + RegisterGateway() GatewayFunc + GatewayPathPrefix() string } type GatewayFunc func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error +//optional extending interfaces of Gateway below + type gatewayCustomServeMuxOptions interface { GatewayServeMuxOptions() []runtime.ServeMuxOption } + type grpcGatewayCustomInterceptor interface { GatewayHTTPInterceptor(http.Handler) http.Handler } @@ -50,28 +67,62 @@ type gatewayCustomCallOptions interface { GatewayCallOptions() []grpc.DialOption } -func StartGateway(ctx context.Context, g Gateway) { - mux := createMux(ctx, g) - serveGateway(ctx, mux, gatewayPort(g.GatewayPort()), g) +type GatewayHandler struct { + mux *http.ServeMux + serverPort string + gatewayPort string + customHeaders []string } -func createMux(ctx context.Context, g Gateway) *runtime.ServeMux { - muxOptions := DefaultServeMuxOptions +func CreateGatewayHandler(config grpc_util.Config) *GatewayHandler { + return &GatewayHandler{ + mux: http.NewServeMux(), + serverPort: config.ServerPort, + gatewayPort: config.GatewayPort, + customHeaders: config.CustomHeaders, + } +} + +//RegisterGateway registers a handler (Gateway interface) on defined port +//Gateway interface may be extended with optional implementation of interfaces (gatewayCustomServeMuxOptions, ...) +func (g *GatewayHandler) RegisterGateway(ctx context.Context, gateway Gateway) { + handler := createGateway(ctx, gateway, g.serverPort, g.customHeaders...) + prefix := gateway.GatewayPathPrefix() + g.RegisterHandler(prefix, handler) +} + +func (g *GatewayHandler) RegisterHandler(prefix string, handler http.Handler) { + http_util.RegisterHandler(g.mux, prefix, handler) +} + +func (g *GatewayHandler) Serve(ctx context.Context) { + http_util.Serve(ctx, g.mux, g.gatewayPort, "api") +} + +func createGateway(ctx context.Context, g Gateway, port string, customHeaders ...string) http.Handler { + mux := createMux(g, customHeaders...) + opts := createDialOptions(g) + err := g.RegisterGateway()(ctx, mux, http_util.Endpoint(port), opts) + logging.Log("SERVE-7B7G0E").OnError(err).Panic("failed to register grpc gateway") + return addInterceptors(mux, g) +} + +func createMux(g Gateway, customHeaders ...string) *runtime.ServeMux { + muxOptions := DefaultServeMuxOptions(customHeaders...) if customOpts, ok := g.(gatewayCustomServeMuxOptions); ok { muxOptions = customOpts.GatewayServeMuxOptions() } - mux := runtime.NewServeMux(muxOptions...) + return runtime.NewServeMux(muxOptions...) +} +func createDialOptions(g Gateway) []grpc.DialOption { opts := []grpc.DialOption{grpc.WithInsecure()} opts = append(opts, client_middleware.DefaultTracingStatsClient()) if customOpts, ok := g.(gatewayCustomCallOptions); ok { opts = append(opts, customOpts.GatewayCallOptions()...) } - err := g.Gateway()(ctx, mux, g.GRPCEndpoint(), opts) - logging.Log("SERVE-7B7G0E").OnError(err).Panic("failed to create mux for grpc gateway") - - return mux + return opts } func addInterceptors(handler http.Handler, g Gateway) http.Handler { @@ -83,26 +134,6 @@ func addInterceptors(handler http.Handler, g Gateway) http.Handler { return http_mw.CORSInterceptorOpts(http_mw.DefaultCORSOptions, handler) } -func serveGateway(ctx context.Context, handler http.Handler, port string, g Gateway) { - server := &http.Server{ - Handler: addInterceptors(handler, g), - } - - listener := http_util.CreateListener(port) - - go func() { - <-ctx.Done() - err := server.Shutdown(ctx) - logging.Log("SERVE-m7kBlq").OnError(err).Warn("error during graceful shutdown of grpc gateway") - }() - - go func() { - err := server.Serve(listener) - logging.Log("SERVE-tBHR60").OnError(err).Panic("grpc gateway serve failed") - }() - logging.LogWithFields("SERVE-KHh0Cb", "port", port).Info("grpc gateway is listening") -} - func gatewayPort(port string) string { if port == "" { return defaultGatewayPort diff --git a/internal/api/grpc/server/middleware/auth_interceptor.go b/internal/api/grpc/server/middleware/auth_interceptor.go index b494365288..edc609cc0d 100644 --- a/internal/api/grpc/server/middleware/auth_interceptor.go +++ b/internal/api/grpc/server/middleware/auth_interceptor.go @@ -2,37 +2,39 @@ package middleware import ( "context" + "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/caos/zitadel/internal/api" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" grpc_util "github.com/caos/zitadel/internal/api/grpc" + "github.com/caos/zitadel/internal/api/http" ) -func AuthorizationInterceptor(verifier auth.TokenVerifier, authConfig *auth.Config, authMethods auth.MethodMapping) func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) { +func AuthorizationInterceptor(verifier *authz.TokenVerifier, authConfig authz.Config) grpc.UnaryServerInterceptor { return func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) { - authOpt, needsToken := authMethods[info.FullMethod] - if !needsToken { - return handler(ctx, req) - } - - authToken := "" - //TODO: Remove check internal as soon as authentification is implemented - if !auth.CheckInternal(ctx) { - authToken = grpc_util.GetAuthorizationHeader(ctx) - if authToken == "" { - return nil, status.Error(codes.Unauthenticated, "auth header missing") - } - } - orgID := grpc_util.GetHeader(ctx, api.ZitadelOrgID) - - ctx, err := auth.CheckUserAuthorization(ctx, req, authToken, orgID, verifier, authConfig, authOpt) - if err != nil { - return nil, err - } - - return handler(ctx, req) + return authorize(ctx, req, info, handler, verifier, authConfig) } } + +func authorize(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, verifier *authz.TokenVerifier, authConfig authz.Config) (interface{}, error) { + authOpt, needsToken := verifier.CheckAuthMethod(info.FullMethod) + if !needsToken { + return handler(ctx, req) + } + + authToken := grpc_util.GetAuthorizationHeader(ctx) + if authToken == "" { + return nil, status.Error(codes.Unauthenticated, "auth header missing") + } + + orgID := grpc_util.GetHeader(ctx, http.ZitadelOrgID) + + ctx, err := authz.CheckUserAuthorization(ctx, req, authToken, orgID, verifier, authConfig, authOpt, info.FullMethod) + if err != nil { + return nil, err + } + + return handler(ctx, req) +} diff --git a/internal/api/grpc/server/middleware/auth_interceptor_test.go b/internal/api/grpc/server/middleware/auth_interceptor_test.go new file mode 100644 index 0000000000..8e2f753f6f --- /dev/null +++ b/internal/api/grpc/server/middleware/auth_interceptor_test.go @@ -0,0 +1,148 @@ +package middleware + +import ( + "context" + "reflect" + "testing" + + "google.golang.org/grpc" + "google.golang.org/grpc/metadata" + + "github.com/caos/zitadel/internal/api/authz" +) + +var ( + mockMethods = authz.MethodMapping{ + "need.authentication": authz.Option{ + Permission: "authenticated", + }, + } +) + +type verifierMock struct{} + +func (v *verifierMock) VerifyAccessToken(ctx context.Context, token, clientID string) (string, string, error) { + return "", "", nil +} +func (v *verifierMock) ResolveGrants(ctx context.Context) (*authz.Grant, error) { + return nil, nil +} +func (v *verifierMock) ProjectIDByClientID(ctx context.Context, clientID string) (string, error) { + return "", nil +} +func (v *verifierMock) VerifierClientID(ctx context.Context, appName string) (string, error) { + return "", nil +} + +func Test_authorize(t *testing.T) { + type args struct { + ctx context.Context + req interface{} + info *grpc.UnaryServerInfo + handler grpc.UnaryHandler + verifier *authz.TokenVerifier + authConfig authz.Config + authMethods authz.MethodMapping + } + type res struct { + want interface{} + wantErr bool + } + tests := []struct { + name string + args args + res res + }{ + { + "no token needed ok", + args{ + ctx: context.Background(), + req: &mockReq{}, + info: mockInfo("/no/token/needed"), + handler: emptyMockHandler, + verifier: func() *authz.TokenVerifier { + verifier := authz.Start(&verifierMock{}) + verifier.RegisterServer("need", "need", authz.MethodMapping{}) + return verifier + }(), + authMethods: mockMethods, + }, + res{ + &mockReq{}, + false, + }, + }, + { + "auth header missing error", + args{ + ctx: context.Background(), + req: &mockReq{}, + info: mockInfo("/need/authentication"), + handler: emptyMockHandler, + verifier: func() *authz.TokenVerifier { + verifier := authz.Start(&verifierMock{}) + verifier.RegisterServer("need", "need", authz.MethodMapping{"/need/authentication": authz.Option{Permission: "authenticated"}}) + return verifier + }(), + authConfig: authz.Config{}, + authMethods: mockMethods, + }, + res{ + nil, + true, + }, + }, + { + "unauthorized error", + args{ + ctx: metadata.NewIncomingContext(context.Background(), metadata.Pairs("authorization", "wrong")), + req: &mockReq{}, + info: mockInfo("/need/authentication"), + handler: emptyMockHandler, + verifier: func() *authz.TokenVerifier { + verifier := authz.Start(&verifierMock{}) + verifier.RegisterServer("need", "need", authz.MethodMapping{"/need/authentication": authz.Option{Permission: "authenticated"}}) + return verifier + }(), + authConfig: authz.Config{}, + authMethods: mockMethods, + }, + res{ + nil, + true, + }, + }, + { + "authorized ok", + args{ + ctx: metadata.NewIncomingContext(context.Background(), metadata.Pairs("authorization", "Bearer token")), + req: &mockReq{}, + info: mockInfo("/need/authentication"), + handler: emptyMockHandler, + verifier: func() *authz.TokenVerifier { + verifier := authz.Start(&verifierMock{}) + verifier.RegisterServer("need", "need", authz.MethodMapping{"/need/authentication": authz.Option{Permission: "authenticated"}}) + return verifier + }(), + authConfig: authz.Config{}, + authMethods: mockMethods, + }, + res{ + &mockReq{}, + false, + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := authorize(tt.args.ctx, tt.args.req, tt.args.info, tt.args.handler, tt.args.verifier, tt.args.authConfig) + if (err != nil) != tt.res.wantErr { + t.Errorf("authorize() error = %v, wantErr %v", err, tt.res.wantErr) + return + } + if !reflect.DeepEqual(got, tt.res.want) { + t.Errorf("authorize() got = %v, want %v", got, tt.res.want) + } + }) + } +} diff --git a/internal/api/grpc/server/middleware/error_interceptor.go b/internal/api/grpc/server/middleware/error_interceptor.go index 75f52db500..c2d929ebc3 100644 --- a/internal/api/grpc/server/middleware/error_interceptor.go +++ b/internal/api/grpc/server/middleware/error_interceptor.go @@ -4,18 +4,22 @@ import ( "context" "golang.org/x/text/language" - "google.golang.org/grpc" grpc_util "github.com/caos/zitadel/internal/api/grpc" + "github.com/caos/zitadel/internal/i18n" _ "github.com/caos/zitadel/internal/statik" ) -func ErrorHandler(defaultLanguage language.Tag) func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) { +func ErrorHandler(defaultLanguage language.Tag) grpc.UnaryServerInterceptor { translator := newZitadelTranslator(defaultLanguage) return func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) { - resp, err := handler(ctx, req) - return resp, grpc_util.CaosToGRPCError(err, ctx, translator) + return toGRPCError(ctx, req, handler, translator) } } + +func toGRPCError(ctx context.Context, req interface{}, handler grpc.UnaryHandler, translator *i18n.Translator) (interface{}, error) { + resp, err := handler(ctx, req) + return resp, grpc_util.CaosToGRPCError(ctx, err, translator) +} diff --git a/internal/api/grpc/server/middleware/error_interceptor_test.go b/internal/api/grpc/server/middleware/error_interceptor_test.go new file mode 100644 index 0000000000..1bb868af65 --- /dev/null +++ b/internal/api/grpc/server/middleware/error_interceptor_test.go @@ -0,0 +1,63 @@ +package middleware + +import ( + "context" + "reflect" + "testing" + + "google.golang.org/grpc" +) + +func Test_toGRPCError(t *testing.T) { + type args struct { + ctx context.Context + req interface{} + handler grpc.UnaryHandler + } + type res struct { + want interface{} + wantErr bool + } + tests := []struct { + name string + args args + res res + }{ + { + "no error", + args{ + ctx: context.Background(), + req: &mockReq{}, + handler: emptyMockHandler, + }, + res{ + &mockReq{}, + false, + }, + }, + { + "error", + args{ + ctx: context.Background(), + req: &mockReq{}, + handler: errorMockHandler, + }, + res{ + nil, + true, + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := toGRPCError(tt.args.ctx, tt.args.req, tt.args.handler, nil) + if (err != nil) != tt.res.wantErr { + t.Errorf("toGRPCError() error = %v, wantErr %v", err, tt.res.wantErr) + return + } + if !reflect.DeepEqual(got, tt.res.want) { + t.Errorf("toGRPCError() got = %v, want %v", got, tt.res.want) + } + }) + } +} diff --git a/internal/api/grpc/server/middleware/mock_test.go b/internal/api/grpc/server/middleware/mock_test.go new file mode 100644 index 0000000000..ebd75b9d38 --- /dev/null +++ b/internal/api/grpc/server/middleware/mock_test.go @@ -0,0 +1,26 @@ +package middleware + +import ( + "context" + + "google.golang.org/grpc" + + "github.com/caos/zitadel/internal/errors" +) + +func emptyMockHandler(_ context.Context, req interface{}) (interface{}, error) { + return req, nil +} + +func errorMockHandler(_ context.Context, req interface{}) (interface{}, error) { + return nil, errors.ThrowInternal(nil, "test", "error") +} + +type mockReq struct{} + +func mockInfo(path string) *grpc.UnaryServerInfo { + return &grpc.UnaryServerInfo{ + Server: nil, + FullMethod: path, + } +} diff --git a/internal/api/grpc/server/middleware/tracing.go b/internal/api/grpc/server/middleware/tracing.go index c8e2cc9d5d..d34de28a5a 100644 --- a/internal/api/grpc/server/middleware/tracing.go +++ b/internal/api/grpc/server/middleware/tracing.go @@ -9,13 +9,28 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/stats" + "github.com/caos/zitadel/internal/api/http" "github.com/caos/zitadel/internal/tracing" ) type GRPCMethod string func TracingStatsServer(ignoredMethods ...GRPCMethod) grpc.ServerOption { - return grpc.StatsHandler(&tracingServerHandler{ignoredMethods, ocgrpc.ServerHandler{StartOptions: trace.StartOptions{Sampler: tracing.Sampler(), SpanKind: trace.SpanKindServer}}}) + return grpc.StatsHandler( + &tracingServerHandler{ + ignoredMethods, + ocgrpc.ServerHandler{ + StartOptions: trace.StartOptions{ + Sampler: tracing.Sampler(), + SpanKind: trace.SpanKindServer, + }, + }, + }, + ) +} + +func DefaultTracingStatsServer() grpc.ServerOption { + return TracingStatsServer(http.Healthz, http.Readiness, http.Validation) } type tracingServerHandler struct { diff --git a/internal/api/grpc/server/middleware/tracing_test.go b/internal/api/grpc/server/middleware/tracing_test.go new file mode 100644 index 0000000000..1dd9f1c21a --- /dev/null +++ b/internal/api/grpc/server/middleware/tracing_test.go @@ -0,0 +1,71 @@ +package middleware + +import ( + "context" + "testing" + + "go.opencensus.io/plugin/ocgrpc" + "go.opencensus.io/trace" + "google.golang.org/grpc/stats" +) + +func Test_tracingServerHandler_TagRPC(t *testing.T) { + type fields struct { + IgnoredMethods []GRPCMethod + ServerHandler ocgrpc.ServerHandler + } + type args struct { + ctx context.Context + tagInfo *stats.RPCTagInfo + } + type res struct { + wantSpan bool + } + tests := []struct { + name string + fields fields + args args + res res + }{ + { + "ignored method", + fields{ + IgnoredMethods: []GRPCMethod{"ignore"}, + ServerHandler: ocgrpc.ServerHandler{}, + }, + args{ + ctx: context.Background(), + tagInfo: &stats.RPCTagInfo{ + FullMethodName: "ignore", + }, + }, + res{false}, + }, + { + "tag", + fields{ + IgnoredMethods: []GRPCMethod{"ignore"}, + ServerHandler: ocgrpc.ServerHandler{}, + }, + args{ + ctx: context.Background(), + tagInfo: &stats.RPCTagInfo{ + FullMethodName: "tag", + }, + }, + res{true}, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + s := &tracingServerHandler{ + IgnoredMethods: tt.fields.IgnoredMethods, + ServerHandler: tt.fields.ServerHandler, + } + got := s.TagRPC(tt.args.ctx, tt.args.tagInfo) + if (trace.FromContext(got) != nil) != tt.res.wantSpan { + t.Errorf("TagRPC() = %v, want %v", got, tt.res.wantSpan) + } + }) + } +} diff --git a/internal/api/grpc/server/probes.go b/internal/api/grpc/server/probes.go index 91379da51e..98cab4f56b 100644 --- a/internal/api/grpc/server/probes.go +++ b/internal/api/grpc/server/probes.go @@ -26,7 +26,10 @@ func (v *Validator) Healthz(_ context.Context, e *empty.Empty) (*empty.Empty, er } func (v *Validator) Ready(ctx context.Context, e *empty.Empty) (*empty.Empty, error) { - return e, ready(ctx, v.validations) + if len(validate(ctx, v.validations)) == 0 { + return e, nil + } + return nil, errors.ThrowInternal(nil, "API-2jD9a", "not ready") } func (v *Validator) Validate(ctx context.Context, _ *empty.Empty) (*structpb.Struct, error) { @@ -34,13 +37,6 @@ func (v *Validator) Validate(ctx context.Context, _ *empty.Empty) (*structpb.Str return proto.ToPBStruct(validations) } -func ready(ctx context.Context, validations map[string]ValidationFunction) error { - if len(validate(ctx, validations)) == 0 { - return nil - } - return errors.ThrowInternal(nil, "API-2jD9a", "not ready") -} - func validate(ctx context.Context, validations map[string]ValidationFunction) map[string]error { errors := make(map[string]error) for id, validation := range validations { diff --git a/internal/api/grpc/server/probes_test.go b/internal/api/grpc/server/probes_test.go new file mode 100644 index 0000000000..1c1b8b2775 --- /dev/null +++ b/internal/api/grpc/server/probes_test.go @@ -0,0 +1,158 @@ +package server + +import ( + "context" + "reflect" + "testing" + + "github.com/golang/protobuf/ptypes/empty" + + "github.com/caos/zitadel/internal/errors" +) + +func TestValidator_Healthz(t *testing.T) { + type fields struct { + validations map[string]ValidationFunction + } + type res struct { + want *empty.Empty + hasErr bool + } + tests := []struct { + name string + fields fields + res res + }{ + { + "ok", + fields{}, + res{ + &empty.Empty{}, + false, + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + v := &Validator{ + validations: tt.fields.validations, + } + got, err := v.Healthz(nil, &empty.Empty{}) + if (err != nil) != tt.res.hasErr { + t.Errorf("Healthz() error = %v, wantErr %v", err, tt.res.hasErr) + return + } + if !reflect.DeepEqual(got, tt.res.want) { + t.Errorf("Healthz() got = %v, want %v", got, tt.res.want) + } + }) + } +} + +func TestValidator_Ready(t *testing.T) { + type fields struct { + validations map[string]ValidationFunction + } + type res struct { + want *empty.Empty + hasErr bool + } + tests := []struct { + name string + fields fields + res res + }{ + { + "unready error", + fields{validations: map[string]ValidationFunction{ + "error": func(_ context.Context) error { + return errors.ThrowInternal(nil, "id", "message") + }, + }}, + res{ + nil, + true, + }, + }, + { + "ready ok", + fields{validations: map[string]ValidationFunction{ + "ok": func(_ context.Context) error { + return nil + }, + }}, + res{ + &empty.Empty{}, + false, + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + v := &Validator{ + validations: tt.fields.validations, + } + got, err := v.Ready(context.Background(), &empty.Empty{}) + if (err != nil) != tt.res.hasErr { + t.Errorf("Ready() error = %v, wantErr %v", err, tt.res.hasErr) + return + } + if !reflect.DeepEqual(got, tt.res.want) { + t.Errorf("Ready() got = %v, want %v", got, tt.res.want) + } + }) + } +} + +func Test_validate(t *testing.T) { + type args struct { + validations map[string]ValidationFunction + } + type res struct { + want map[string]error + } + tests := []struct { + name string + args args + res res + }{ + { + "no error empty", + args{ + validations: map[string]ValidationFunction{ + "ok": func(_ context.Context) error { + return nil + }, + }, + }, + res{ + map[string]error{}, + }, + }, + { + "error in list", + args{ + validations: map[string]ValidationFunction{ + "ok": func(_ context.Context) error { + return nil + }, + "error": func(_ context.Context) error { + return errors.ThrowInternal(nil, "id", "message") + }, + }, + }, + res{ + map[string]error{ + "error": errors.ThrowInternal(nil, "id", "message"), + }, + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := validate(context.Background(), tt.args.validations); !reflect.DeepEqual(got, tt.res.want) { + t.Errorf("validate() = %v, want %v", got, tt.res.want) + } + }) + } +} diff --git a/internal/api/grpc/server/server.go b/internal/api/grpc/server/server.go index e395a3fada..dda265d601 100644 --- a/internal/api/grpc/server/server.go +++ b/internal/api/grpc/server/server.go @@ -2,12 +2,14 @@ package server import ( "context" - "github.com/caos/zitadel/internal/config/systemdefaults" - "net" "github.com/caos/logging" + grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" + "golang.org/x/text/language" "google.golang.org/grpc" + "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/internal/api/grpc/server/middleware" "github.com/caos/zitadel/internal/api/http" ) @@ -16,30 +18,36 @@ const ( ) type Server interface { - GRPCPort() string - GRPCServer(defaults systemdefaults.SystemDefaults) (*grpc.Server, error) + Gateway + RegisterServer(*grpc.Server) + AppName() string + MethodPrefix() string + AuthMethods() authz.MethodMapping } -func StartServer(ctx context.Context, s Server, defaults systemdefaults.SystemDefaults) { - port := grpcPort(s.GRPCPort()) - listener := http.CreateListener(port) - server := createGrpcServer(s, defaults) - serveServer(ctx, server, listener, port) +func CreateServer(verifier *authz.TokenVerifier, authConfig authz.Config, lang language.Tag) *grpc.Server { + return grpc.NewServer( + middleware.TracingStatsServer(http.Healthz, http.Readiness, http.Validation), + grpc.UnaryInterceptor( + grpc_middleware.ChainUnaryServer( + middleware.ErrorHandler(lang), + middleware.TranslationHandler(lang), + grpc_middleware.ChainUnaryServer( + middleware.AuthorizationInterceptor(verifier, authConfig), + ), + ), + ), + ) } -func createGrpcServer(s Server, defaults systemdefaults.SystemDefaults) *grpc.Server { - grpcServer, err := s.GRPCServer(defaults) - logging.Log("SERVE-k280HZ").OnError(err).Panic("failed to create grpc server") - return grpcServer -} - -func serveServer(ctx context.Context, server *grpc.Server, listener net.Listener, port string) { +func Serve(ctx context.Context, server *grpc.Server, port string) { go func() { <-ctx.Done() server.GracefulStop() }() go func() { + listener := http.CreateListener(port) err := server.Serve(listener) logging.Log("SERVE-Ga3e94").OnError(err).Panic("grpc server serve failed") }() diff --git a/internal/api/header.go b/internal/api/header.go deleted file mode 100644 index 93ef033d6e..0000000000 --- a/internal/api/header.go +++ /dev/null @@ -1,30 +0,0 @@ -package api - -const ( - Authorization = "authorization" - Accept = "accept" - AcceptLanguage = "accept-language" - CacheControl = "cache-control" - ContentType = "content-type" - Expires = "expires" - Location = "location" - Origin = "origin" - Pragma = "pragma" - UserAgent = "user-agent" - ForwardedFor = "x-forwarded-for" - - ContentSecurityPolicy = "content-security-policy" - XXSSProtection = "x-xss-protection" - StrictTransportSecurity = "strict-transport-security" - XFrameOptions = "x-frame-options" - XContentTypeOptions = "x-content-type-options" - ReferrerPolicy = "referrer-policy" - FeaturePolicy = "feature-policy" - - ZitadelOrgID = "x-zitadel-orgid" - //TODO: Remove as soon an authentification is implemented - ZitadelUserID = "x-zitadel-userid" - ZitadelClientID = "x-zitadel-clientid" - ZitadelAgentID = "x-zitadel-agentid" - LoginKey = "x-zitadel-login" -) diff --git a/internal/api/html/i18n.go b/internal/api/html/i18n.go deleted file mode 100644 index 79b35ccc2e..0000000000 --- a/internal/api/html/i18n.go +++ /dev/null @@ -1,109 +0,0 @@ -package html - -import ( - "encoding/json" - "io/ioutil" - "net/http" - "path" - - "github.com/BurntSushi/toml" - "github.com/caos/logging" - "github.com/ghodss/yaml" - "github.com/nicksnyder/go-i18n/v2/i18n" - "golang.org/x/text/language" - - "github.com/caos/zitadel/internal/api" - http_util "github.com/caos/zitadel/internal/api/http" - "github.com/caos/zitadel/internal/errors" -) - -type Translator struct { - bundle *i18n.Bundle - cookieName string - cookieHandler *http_util.CookieHandler -} - -type TranslatorConfig struct { - Path string - DefaultLanguage language.Tag - CookieName string -} - -func NewTranslator(config TranslatorConfig) (*Translator, error) { - t := new(Translator) - var err error - t.bundle, err = newBundle(config.Path, config.DefaultLanguage) - if err != nil { - return nil, err - } - t.cookieHandler = http_util.NewCookieHandler() - t.cookieName = config.CookieName - return t, nil -} - -func newBundle(i18nDir string, defaultLanguage language.Tag) (*i18n.Bundle, error) { - bundle := i18n.NewBundle(defaultLanguage) - yamlUnmarshal := func(data []byte, v interface{}) error { return yaml.Unmarshal(data, v) } - bundle.RegisterUnmarshalFunc("yaml", yamlUnmarshal) - bundle.RegisterUnmarshalFunc("yml", yamlUnmarshal) - bundle.RegisterUnmarshalFunc("json", json.Unmarshal) - bundle.RegisterUnmarshalFunc("toml", toml.Unmarshal) - files, err := ioutil.ReadDir(i18nDir) - if err != nil { - return nil, errors.ThrowNotFound(err, "HTML-MnXRie", "path not found") - } - for _, file := range files { - bundle.MustLoadMessageFile(path.Join(i18nDir, file.Name())) - } - return bundle, nil -} - -func (t *Translator) LocalizeFromRequest(r *http.Request, id string, args map[string]interface{}) string { - s, err := t.localizerFromRequest(r).Localize(&i18n.LocalizeConfig{ - MessageID: id, - TemplateData: args, - }) - if err != nil { - logging.Log("HTML-MsF5sx").WithError(err).Warnf("missing translation") - return id - } - return s -} - -func (t *Translator) Localize(id string, args map[string]interface{}) string { - s, _ := t.localizer().Localize(&i18n.LocalizeConfig{ - MessageID: id, - TemplateData: args, - }) - return s -} - -func (t *Translator) Lang(r *http.Request) language.Tag { - matcher := language.NewMatcher(t.bundle.LanguageTags()) - tag, _ := language.MatchStrings(matcher, t.langsFromRequest(r)...) - return tag -} - -func (t *Translator) SetLangCookie(w http.ResponseWriter, lang language.Tag) { - t.cookieHandler.SetCookie(w, t.cookieName, lang.String()) -} - -func (t *Translator) localizerFromRequest(r *http.Request) *i18n.Localizer { - return t.localizer(t.langsFromRequest(r)...) -} - -func (t *Translator) localizer(langs ...string) *i18n.Localizer { - return i18n.NewLocalizer(t.bundle, langs...) -} - -func (t *Translator) langsFromRequest(r *http.Request) []string { - langs := make([]string, 0) - if r == nil { - return langs - } - lang, err := t.cookieHandler.GetCookieValue(r, t.cookieName) - if err == nil { - langs = append(langs, lang) - } - return append(langs, r.Header.Get(api.AcceptLanguage)) -} diff --git a/internal/api/html/renderer.go b/internal/api/html/renderer.go deleted file mode 100644 index d27b24fa1d..0000000000 --- a/internal/api/html/renderer.go +++ /dev/null @@ -1,81 +0,0 @@ -package html - -import ( - "net/http" - "path" - "text/template" - - "github.com/caos/logging" - "golang.org/x/text/language" -) - -const ( - TranslateFn = "t" -) - -type Renderer struct { - Templates map[string]*template.Template - translator *Translator -} - -func NewRenderer(templatesDir string, tmplMapping map[string]string, funcs map[string]interface{}, translatorConfig TranslatorConfig) (*Renderer, error) { - var err error - r := new(Renderer) - r.translator, err = NewTranslator(translatorConfig) - if err != nil { - return nil, err - } - r.loadTemplates(templatesDir, tmplMapping, funcs) - return r, nil -} - -func (r *Renderer) RenderTemplate(w http.ResponseWriter, req *http.Request, tmpl *template.Template, data interface{}, reqFuncs map[string]interface{}) { - reqFuncs = r.registerTranslateFn(req, reqFuncs) - err := tmpl.Funcs(reqFuncs).Execute(w, data) - logging.LogWithFields("HTML-lF8F6w", "template", tmpl.Name).OnError(err).Error("error rendering template") -} - -func (r *Renderer) Localize(id string, args map[string]interface{}) string { - return r.translator.Localize(id, args) -} - -func (r *Renderer) LocalizeFromRequest(req *http.Request, id string, args map[string]interface{}) string { - return r.translator.LocalizeFromRequest(req, id, args) -} -func (r *Renderer) Lang(req *http.Request) language.Tag { - return r.translator.Lang(req) -} - -func (r *Renderer) loadTemplates(templatesDir string, tmplMapping map[string]string, funcs map[string]interface{}) { - funcs = r.registerTranslateFn(nil, funcs) - funcs[TranslateFn] = func(id string, args ...interface{}) string { - return id - } - tmpls := template.Must(template.New("").Funcs(funcs).ParseGlob(path.Join(templatesDir, "*.html"))) - r.Templates = make(map[string]*template.Template, len(tmplMapping)) - for name, file := range tmplMapping { - r.Templates[name] = tmpls.Lookup(file) - } -} - -func (r *Renderer) registerTranslateFn(req *http.Request, funcs map[string]interface{}) map[string]interface{} { - if funcs == nil { - funcs = make(map[string]interface{}) - } - funcs[TranslateFn] = func(id string, args ...interface{}) string { - m := map[string]interface{}{} - var key string - for i, arg := range args { - if i%2 == 0 { - key = arg.(string) - continue - } - m[key] = arg - } - if r == nil { - return r.Localize(id, m) - } - return r.LocalizeFromRequest(req, id, m) - } - return funcs -} diff --git a/internal/api/http/header.go b/internal/api/http/header.go index 9df38fce4a..52c46fea81 100644 --- a/internal/api/http/header.go +++ b/internal/api/http/header.go @@ -5,8 +5,30 @@ import ( "net" "net/http" "strings" +) - "github.com/caos/zitadel/internal/api" +const ( + Authorization = "authorization" + Accept = "accept" + AcceptLanguage = "accept-language" + CacheControl = "cache-control" + ContentType = "content-type" + Expires = "expires" + Location = "location" + Origin = "origin" + Pragma = "pragma" + UserAgentHeader = "user-agent" + ForwardedFor = "x-forwarded-for" + + ContentSecurityPolicy = "content-security-policy" + XXSSProtection = "x-xss-protection" + StrictTransportSecurity = "strict-transport-security" + XFrameOptions = "x-frame-options" + XContentTypeOptions = "x-content-type-options" + ReferrerPolicy = "referrer-policy" + FeaturePolicy = "feature-policy" + + ZitadelOrgID = "x-zitadel-orgid" ) type key int @@ -35,7 +57,7 @@ func RemoteIPFromCtx(ctx context.Context) string { if !ok { return RemoteAddrFromCtx(ctx) } - forwarded, ok := ForwardedFor(ctxHeaders) + forwarded, ok := GetForwardedFor(ctxHeaders) if ok { return forwarded } @@ -47,15 +69,15 @@ func RemoteIPFromRequest(r *http.Request) net.IP { } func RemoteIPStringFromRequest(r *http.Request) string { - ip, ok := ForwardedFor(r.Header) + ip, ok := GetForwardedFor(r.Header) if ok { return ip } return r.RemoteAddr } -func ForwardedFor(headers http.Header) (string, bool) { - forwarded, ok := headers[api.ForwardedFor] +func GetForwardedFor(headers http.Header) (string, bool) { + forwarded, ok := headers[ForwardedFor] if ok { ip := strings.Split(forwarded[0], ", ")[0] if ip != "" { diff --git a/internal/api/http/listener.go b/internal/api/http/listener.go index 3e9056c384..731fadd283 100644 --- a/internal/api/http/listener.go +++ b/internal/api/http/listener.go @@ -8,12 +8,12 @@ import ( ) func CreateListener(endpoint string) net.Listener { - l, err := net.Listen("tcp", listenerEndpoint(endpoint)) + l, err := net.Listen("tcp", Endpoint(endpoint)) logging.Log("SERVE-6vasef").OnError(err).Fatal("creating listener failed") return l } -func listenerEndpoint(endpoint string) string { +func Endpoint(endpoint string) string { if strings.Contains(endpoint, ":") { return endpoint } diff --git a/internal/api/http/middleware/cache_interceptor.go b/internal/api/http/middleware/cache_interceptor.go index 3288a22c05..884bcea1f4 100644 --- a/internal/api/http/middleware/cache_interceptor.go +++ b/internal/api/http/middleware/cache_interceptor.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/caos/zitadel/internal/api" + http_utils "github.com/caos/zitadel/internal/api/http" "github.com/caos/zitadel/internal/config/types" ) @@ -120,9 +120,9 @@ func (c *Cache) serializeHeaders(w http.ResponseWriter) { control = append(control, string(c.Revalidation)) } - w.Header().Set(api.CacheControl, strings.Join(control, ", ")) - w.Header().Set(api.Expires, expires) + w.Header().Set(http_utils.CacheControl, strings.Join(control, ", ")) + w.Header().Set(http_utils.Expires, expires) if pragma { - w.Header().Set(api.Pragma, "no-cache") + w.Header().Set(http_utils.Pragma, "no-cache") } } diff --git a/internal/api/http/middleware/cors_interceptor.go b/internal/api/http/middleware/cors_interceptor.go index 379fbc38b7..e3e56b7a90 100644 --- a/internal/api/http/middleware/cors_interceptor.go +++ b/internal/api/http/middleware/cors_interceptor.go @@ -5,19 +5,19 @@ import ( "github.com/rs/cors" - "github.com/caos/zitadel/internal/api" + http_utils "github.com/caos/zitadel/internal/api/http" ) var ( DefaultCORSOptions = cors.Options{ AllowCredentials: true, AllowedHeaders: []string{ - api.Origin, - api.ContentType, - api.Accept, - api.AcceptLanguage, - api.Authorization, - api.ZitadelOrgID, + http_utils.Origin, + http_utils.ContentType, + http_utils.Accept, + http_utils.AcceptLanguage, + http_utils.Authorization, + http_utils.ZitadelOrgID, }, AllowedMethods: []string{ http.MethodOptions, @@ -29,7 +29,7 @@ var ( http.MethodDelete, }, ExposedHeaders: []string{ - api.Location, + http_utils.Location, }, AllowedOrigins: []string{ "http://localhost:*", diff --git a/internal/api/http/middleware/security_headers.go b/internal/api/http/middleware/security_headers.go index 98bd4ac701..045e41d35e 100644 --- a/internal/api/http/middleware/security_headers.go +++ b/internal/api/http/middleware/security_headers.go @@ -6,7 +6,7 @@ import ( "encoding/base64" "net/http" - "github.com/caos/zitadel/internal/api" + http_utils "github.com/caos/zitadel/internal/api/http" ) type key int @@ -63,13 +63,13 @@ func (h *headers) ServeHTTP(w http.ResponseWriter, r *http.Request) { r = saveContext(r, nonceKey, nonce) } headers := w.Header() - headers.Set(api.ContentSecurityPolicy, h.csp.Value(nonce)) - headers.Set(api.XXSSProtection, "1; mode=block") - headers.Set(api.StrictTransportSecurity, "max-age=31536000; includeSubDomains") - headers.Set(api.XFrameOptions, "DENY") - headers.Set(api.XContentTypeOptions, "nosniff") - headers.Set(api.ReferrerPolicy, "same-origin") - headers.Set(api.FeaturePolicy, "payment 'none'") + headers.Set(http_utils.ContentSecurityPolicy, h.csp.Value(nonce)) + headers.Set(http_utils.XXSSProtection, "1; mode=block") + headers.Set(http_utils.StrictTransportSecurity, "max-age=31536000; includeSubDomains") + headers.Set(http_utils.XFrameOptions, "DENY") + headers.Set(http_utils.XContentTypeOptions, "nosniff") + headers.Set(http_utils.ReferrerPolicy, "same-origin") + headers.Set(http_utils.FeaturePolicy, "payment 'none'") //PLANNED: add expect-ct h.handler.ServeHTTP(w, r) diff --git a/internal/api/http/middleware/trace_interceptor.go b/internal/api/http/middleware/trace_interceptor.go index 4f95cc67c1..6069d63d8d 100644 --- a/internal/api/http/middleware/trace_interceptor.go +++ b/internal/api/http/middleware/trace_interceptor.go @@ -3,10 +3,10 @@ package middleware import ( "net/http" - "github.com/caos/zitadel/internal/api" + http_utils "github.com/caos/zitadel/internal/api/http" "github.com/caos/zitadel/internal/tracing" ) func DefaultTraceHandler(handler http.Handler) http.Handler { - return tracing.TraceHandler(handler, api.Probes...) + return tracing.TraceHandler(handler, http_utils.Probes...) } diff --git a/internal/api/probes.go b/internal/api/http/probes.go similarity index 91% rename from internal/api/probes.go rename to internal/api/http/probes.go index 9ae0f6a1d9..5752ada51b 100644 --- a/internal/api/probes.go +++ b/internal/api/http/probes.go @@ -1,4 +1,4 @@ -package api +package http const ( Healthz = "/Healthz" diff --git a/internal/api/http/server.go b/internal/api/http/server.go new file mode 100644 index 0000000000..758eb704dc --- /dev/null +++ b/internal/api/http/server.go @@ -0,0 +1,32 @@ +package http + +import ( + "context" + "net/http" + + "github.com/caos/logging" +) + +func Serve(ctx context.Context, handler http.Handler, port, servername string) { + server := &http.Server{ + Handler: handler, + } + + listener := CreateListener(port) + + go func() { + <-ctx.Done() + err := server.Shutdown(ctx) + logging.LogWithFields("HTTP-m7kBlq", "name", servername).OnError(err).Warnf("error during graceful shutdown of http server (%s)", servername) + }() + + go func() { + err := server.Serve(listener) + logging.LogWithFields("HTTP-tBHR60", "name", servername).OnError(err).Panicf("http serve (%s) failed", servername) + }() + logging.LogWithFields("HTTP-KHh0Cb", "name", servername, "port", port).Infof("http server (%s) is listening", servername) +} + +func RegisterHandler(mux *http.ServeMux, prefix string, handler http.Handler) { + mux.Handle(prefix+"/", http.StripPrefix(prefix, handler)) +} diff --git a/pkg/auth/api/oidc/auth_request.go b/internal/api/oidc/auth_request.go similarity index 100% rename from pkg/auth/api/oidc/auth_request.go rename to internal/api/oidc/auth_request.go diff --git a/pkg/auth/api/oidc/auth_request_converter.go b/internal/api/oidc/auth_request_converter.go similarity index 97% rename from pkg/auth/api/oidc/auth_request_converter.go rename to internal/api/oidc/auth_request_converter.go index a837046809..440ed243aa 100644 --- a/pkg/auth/api/oidc/auth_request_converter.go +++ b/internal/api/oidc/auth_request_converter.go @@ -9,7 +9,6 @@ import ( "github.com/caos/oidc/pkg/op" "golang.org/x/text/language" - api_utils "github.com/caos/zitadel/internal/api" http_utils "github.com/caos/zitadel/internal/api/http" "github.com/caos/zitadel/internal/auth_request/model" "github.com/caos/zitadel/internal/errors" @@ -143,10 +142,10 @@ func HttpHeadersFromContext(ctx context.Context) (userAgent, acceptLang string) if !ok { return } - if agents, ok := ctxHeaders[api_utils.UserAgent]; ok { + if agents, ok := ctxHeaders[http_utils.UserAgentHeader]; ok { userAgent = agents[0] } - if langs, ok := ctxHeaders[api_utils.AcceptLanguage]; ok { + if langs, ok := ctxHeaders[http_utils.AcceptLanguage]; ok { acceptLang = langs[0] } return userAgent, acceptLang diff --git a/pkg/auth/api/oidc/client.go b/internal/api/oidc/client.go similarity index 96% rename from pkg/auth/api/oidc/client.go rename to internal/api/oidc/client.go index de84854c2e..5726e86724 100644 --- a/pkg/auth/api/oidc/client.go +++ b/internal/api/oidc/client.go @@ -6,7 +6,7 @@ import ( "github.com/caos/oidc/pkg/oidc" "github.com/caos/oidc/pkg/op" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/errors" proj_model "github.com/caos/zitadel/internal/project/model" user_model "github.com/caos/zitadel/internal/user/model" @@ -34,7 +34,7 @@ func (o *OPStorage) GetClientByClientID(ctx context.Context, id string) (op.Clie } func (o *OPStorage) AuthorizeClientIDSecret(ctx context.Context, id string, secret string) error { - ctx = auth.SetCtxData(ctx, auth.CtxData{ + ctx = authz.SetCtxData(ctx, authz.CtxData{ UserID: oidcCtx, OrgID: oidcCtx, }) diff --git a/pkg/auth/api/oidc/client_converter.go b/internal/api/oidc/client_converter.go similarity index 100% rename from pkg/auth/api/oidc/client_converter.go rename to internal/api/oidc/client_converter.go diff --git a/pkg/auth/api/oidc/cookie_interceptor.go b/internal/api/oidc/cookie_interceptor.go similarity index 100% rename from pkg/auth/api/oidc/cookie_interceptor.go rename to internal/api/oidc/cookie_interceptor.go diff --git a/pkg/auth/api/oidc/op.go b/internal/api/oidc/op.go similarity index 93% rename from pkg/auth/api/oidc/op.go rename to internal/api/oidc/op.go index b4f92f8dad..0fe9fd722f 100644 --- a/pkg/auth/api/oidc/op.go +++ b/internal/api/oidc/op.go @@ -54,10 +54,9 @@ type OPStorage struct { func NewProvider(ctx context.Context, config OPHandlerConfig, repo repository.Repository) op.OpenIDProvider { cookieHandler, err := http_utils.NewUserAgentHandler(config.UserAgentCookieConfig, id.SonyFlakeGenerator) logging.Log("OIDC-sd4fd").OnError(err).Panic("cannot user agent handler") - cache, err := middleware.DefaultCacheInterceptor(config.Endpoints.Keys.Path, config.Cache.MaxAge.Duration, config.Cache.SharedMaxAge.Duration) nextHandler := func(handlerFunc http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { - cache(http_utils.CopyHeadersToContext(handlerFunc)) + middleware.NoCacheInterceptor(http_utils.CopyHeadersToContext(handlerFunc)) } } provider, err := op.NewDefaultOP( diff --git a/internal/auth/auth/token_verifier.go b/internal/auth/auth/token_verifier.go deleted file mode 100644 index 10dd713abf..0000000000 --- a/internal/auth/auth/token_verifier.go +++ /dev/null @@ -1,36 +0,0 @@ -package auth - -import ( - "context" - "github.com/caos/zitadel/internal/api/auth" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" -) - -const ( - authName = "Auth-API" -) - -type TokenVerifier struct { - authID string - authZRepo *authz_repo.EsRepository -} - -func Start(authZRepo *authz_repo.EsRepository) (v *TokenVerifier) { - return &TokenVerifier{authZRepo: authZRepo} -} - -func (v *TokenVerifier) VerifyAccessToken(ctx context.Context, token string) (string, string, string, error) { - userID, clientID, agentID, err := v.authZRepo.VerifyAccessToken(ctx, token, authName, v.authID) - if clientID != "" { - v.authID = clientID - } - return userID, clientID, agentID, err -} - -func (v *TokenVerifier) ResolveGrant(ctx context.Context) (*auth.Grant, error) { - return v.authZRepo.ResolveGrants(ctx) -} - -func (v *TokenVerifier) GetProjectIDByClientID(ctx context.Context, clientID string) (string, error) { - return v.authZRepo.ProjectIDByClientID(ctx, clientID) -} diff --git a/internal/auth/repository/eventsourcing/eventstore/key.go b/internal/auth/repository/eventsourcing/eventstore/key.go index 1372d56885..7ab529bdf5 100644 --- a/internal/auth/repository/eventsourcing/eventstore/key.go +++ b/internal/auth/repository/eventsourcing/eventstore/key.go @@ -6,7 +6,7 @@ import ( "gopkg.in/square/go-jose.v2" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/auth/repository/eventsourcing/view" "github.com/caos/zitadel/internal/key/model" key_event "github.com/caos/zitadel/internal/key/repository/eventsourcing" @@ -71,5 +71,5 @@ func (k *KeyRepository) refreshSigningKey(keyCh chan<- jose.SigningKey, errCh ch } func setOIDCCtx(ctx context.Context) context.Context { - return auth.SetCtxData(ctx, auth.CtxData{UserID: oidcUser, OrgID: iamOrg}) + return authz.SetCtxData(ctx, authz.CtxData{UserID: oidcUser, OrgID: iamOrg}) } diff --git a/internal/auth/repository/eventsourcing/eventstore/policy.go b/internal/auth/repository/eventsourcing/eventstore/policy.go index f46c6743e7..317909fd99 100644 --- a/internal/auth/repository/eventsourcing/eventstore/policy.go +++ b/internal/auth/repository/eventsourcing/eventstore/policy.go @@ -3,7 +3,7 @@ package eventstore import ( "context" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" pol_model "github.com/caos/zitadel/internal/policy/model" pol_event "github.com/caos/zitadel/internal/policy/repository/eventsourcing" ) @@ -13,6 +13,6 @@ type PolicyRepo struct { } func (repo *PolicyRepo) GetMyPasswordComplexityPolicy(ctx context.Context) (*pol_model.PasswordComplexityPolicy, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) return repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, ctxData.OrgID) } diff --git a/internal/auth/repository/eventsourcing/eventstore/user.go b/internal/auth/repository/eventsourcing/eventstore/user.go index 79bb4faa5e..7e772686d1 100644 --- a/internal/auth/repository/eventsourcing/eventstore/user.go +++ b/internal/auth/repository/eventsourcing/eventstore/user.go @@ -4,20 +4,20 @@ import ( "context" "github.com/caos/logging" + + "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/internal/auth/repository/eventsourcing/view" + "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/eventstore" + es_models "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/eventstore/sdk" org_model "github.com/caos/zitadel/internal/org/model" org_event "github.com/caos/zitadel/internal/org/repository/eventsourcing" - usr_model "github.com/caos/zitadel/internal/user/repository/eventsourcing/model" - usr_view_model "github.com/caos/zitadel/internal/user/repository/view/model" - - "github.com/caos/zitadel/internal/api/auth" - "github.com/caos/zitadel/internal/auth/repository/eventsourcing/view" - "github.com/caos/zitadel/internal/errors" - es_models "github.com/caos/zitadel/internal/eventstore/models" policy_event "github.com/caos/zitadel/internal/policy/repository/eventsourcing" "github.com/caos/zitadel/internal/user/model" user_event "github.com/caos/zitadel/internal/user/repository/eventsourcing" + usr_model "github.com/caos/zitadel/internal/user/repository/eventsourcing/model" + usr_view_model "github.com/caos/zitadel/internal/user/repository/view/model" ) type UserRepo struct { @@ -33,7 +33,7 @@ func (repo *UserRepo) Health(ctx context.Context) error { } func (repo *UserRepo) Register(ctx context.Context, registerUser *model.User, orgMember *org_model.OrgMember, resourceOwner string) (*model.User, error) { - policyResourceOwner := auth.GetCtxData(ctx).OrgID + policyResourceOwner := authz.GetCtxData(ctx).OrgID if resourceOwner != "" { policyResourceOwner = resourceOwner } @@ -66,11 +66,11 @@ func (repo *UserRepo) Register(ctx context.Context, registerUser *model.User, or } func (repo *UserRepo) MyUser(ctx context.Context) (*model.UserView, error) { - return repo.UserByID(ctx, auth.GetCtxData(ctx).UserID) + return repo.UserByID(ctx, authz.GetCtxData(ctx).UserID) } func (repo *UserRepo) MyProfile(ctx context.Context) (*model.Profile, error) { - user, err := repo.UserByID(ctx, auth.GetCtxData(ctx).UserID) + user, err := repo.UserByID(ctx, authz.GetCtxData(ctx).UserID) if err != nil { return nil, err } @@ -85,7 +85,7 @@ func (repo *UserRepo) ChangeMyProfile(ctx context.Context, profile *model.Profil } func (repo *UserRepo) MyEmail(ctx context.Context) (*model.Email, error) { - user, err := repo.UserByID(ctx, auth.GetCtxData(ctx).UserID) + user, err := repo.UserByID(ctx, authz.GetCtxData(ctx).UserID) if err != nil { return nil, err } @@ -104,7 +104,7 @@ func (repo *UserRepo) VerifyEmail(ctx context.Context, userID, code string) erro } func (repo *UserRepo) VerifyMyEmail(ctx context.Context, code string) error { - return repo.UserEvents.VerifyEmail(ctx, auth.GetCtxData(ctx).UserID, code) + return repo.UserEvents.VerifyEmail(ctx, authz.GetCtxData(ctx).UserID, code) } func (repo *UserRepo) ResendEmailVerificationMail(ctx context.Context, userID string) error { @@ -112,11 +112,11 @@ func (repo *UserRepo) ResendEmailVerificationMail(ctx context.Context, userID st } func (repo *UserRepo) ResendMyEmailVerificationMail(ctx context.Context) error { - return repo.UserEvents.CreateEmailVerificationCode(ctx, auth.GetCtxData(ctx).UserID) + return repo.UserEvents.CreateEmailVerificationCode(ctx, authz.GetCtxData(ctx).UserID) } func (repo *UserRepo) MyPhone(ctx context.Context) (*model.Phone, error) { - user, err := repo.UserByID(ctx, auth.GetCtxData(ctx).UserID) + user, err := repo.UserByID(ctx, authz.GetCtxData(ctx).UserID) if err != nil { return nil, err } @@ -131,19 +131,19 @@ func (repo *UserRepo) ChangeMyPhone(ctx context.Context, phone *model.Phone) (*m } func (repo *UserRepo) RemoveMyPhone(ctx context.Context) error { - return repo.UserEvents.RemovePhone(ctx, auth.GetCtxData(ctx).UserID) + return repo.UserEvents.RemovePhone(ctx, authz.GetCtxData(ctx).UserID) } func (repo *UserRepo) VerifyMyPhone(ctx context.Context, code string) error { - return repo.UserEvents.VerifyPhone(ctx, auth.GetCtxData(ctx).UserID, code) + return repo.UserEvents.VerifyPhone(ctx, authz.GetCtxData(ctx).UserID, code) } func (repo *UserRepo) ResendMyPhoneVerificationCode(ctx context.Context) error { - return repo.UserEvents.CreatePhoneVerificationCode(ctx, auth.GetCtxData(ctx).UserID) + return repo.UserEvents.CreatePhoneVerificationCode(ctx, authz.GetCtxData(ctx).UserID) } func (repo *UserRepo) MyAddress(ctx context.Context) (*model.Address, error) { - user, err := repo.UserByID(ctx, auth.GetCtxData(ctx).UserID) + user, err := repo.UserByID(ctx, authz.GetCtxData(ctx).UserID) if err != nil { return nil, err } @@ -158,16 +158,16 @@ func (repo *UserRepo) ChangeMyAddress(ctx context.Context, address *model.Addres } func (repo *UserRepo) ChangeMyPassword(ctx context.Context, old, new string) error { - policy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, auth.GetCtxData(ctx).OrgID) + policy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return err } - _, err = repo.UserEvents.ChangePassword(ctx, policy, auth.GetCtxData(ctx).UserID, old, new) + _, err = repo.UserEvents.ChangePassword(ctx, policy, authz.GetCtxData(ctx).UserID, old, new) return err } func (repo *UserRepo) ChangePassword(ctx context.Context, userID, old, new string) error { - policy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, auth.GetCtxData(ctx).OrgID) + policy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return err } @@ -176,7 +176,7 @@ func (repo *UserRepo) ChangePassword(ctx context.Context, userID, old, new strin } func (repo *UserRepo) MyUserMfas(ctx context.Context) ([]*model.MultiFactor, error) { - return repo.View.UserMfas(auth.GetCtxData(ctx).UserID) + return repo.View.UserMfas(authz.GetCtxData(ctx).UserID) } func (repo *UserRepo) AddMfaOTP(ctx context.Context, userID string) (*model.OTP, error) { @@ -184,7 +184,7 @@ func (repo *UserRepo) AddMfaOTP(ctx context.Context, userID string) (*model.OTP, } func (repo *UserRepo) AddMyMfaOTP(ctx context.Context) (*model.OTP, error) { - return repo.UserEvents.AddOTP(ctx, auth.GetCtxData(ctx).UserID) + return repo.UserEvents.AddOTP(ctx, authz.GetCtxData(ctx).UserID) } func (repo *UserRepo) VerifyMfaOTPSetup(ctx context.Context, userID, code string) error { @@ -192,11 +192,11 @@ func (repo *UserRepo) VerifyMfaOTPSetup(ctx context.Context, userID, code string } func (repo *UserRepo) VerifyMyMfaOTPSetup(ctx context.Context, code string) error { - return repo.UserEvents.CheckMfaOTPSetup(ctx, auth.GetCtxData(ctx).UserID, code) + return repo.UserEvents.CheckMfaOTPSetup(ctx, authz.GetCtxData(ctx).UserID, code) } func (repo *UserRepo) RemoveMyMfaOTP(ctx context.Context) error { - return repo.UserEvents.RemoveOTP(ctx, auth.GetCtxData(ctx).UserID) + return repo.UserEvents.RemoveOTP(ctx, authz.GetCtxData(ctx).UserID) } func (repo *UserRepo) ResendInitVerificationMail(ctx context.Context, userID string) error { @@ -205,7 +205,7 @@ func (repo *UserRepo) ResendInitVerificationMail(ctx context.Context, userID str } func (repo *UserRepo) VerifyInitCode(ctx context.Context, userID, code, password string) error { - policy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, auth.GetCtxData(ctx).OrgID) + policy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return err } @@ -225,7 +225,7 @@ func (repo *UserRepo) RequestPasswordReset(ctx context.Context, loginname string } func (repo *UserRepo) SetPassword(ctx context.Context, userID, code, password string) error { - policy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, auth.GetCtxData(ctx).OrgID) + policy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return err } @@ -264,7 +264,7 @@ func (repo *UserRepo) UserByID(ctx context.Context, id string) (*model.UserView, } func (repo *UserRepo) MyUserChanges(ctx context.Context, lastSequence uint64, limit uint64, sortAscending bool) (*model.UserChanges, error) { - changes, err := repo.UserEvents.UserChanges(ctx, auth.GetCtxData(ctx).UserID, lastSequence, limit, sortAscending) + changes, err := repo.UserEvents.UserChanges(ctx, authz.GetCtxData(ctx).UserID, lastSequence, limit, sortAscending) if err != nil { return nil, err } @@ -279,7 +279,7 @@ func (repo *UserRepo) MyUserChanges(ctx context.Context, lastSequence uint64, li } func checkIDs(ctx context.Context, obj es_models.ObjectRoot) error { - if obj.AggregateID != auth.GetCtxData(ctx).UserID { + if obj.AggregateID != authz.GetCtxData(ctx).UserID { return errors.ThrowPermissionDenied(nil, "EVENT-kFi9w", "object does not belong to user") } return nil diff --git a/internal/auth/repository/eventsourcing/eventstore/user_grant.go b/internal/auth/repository/eventsourcing/eventstore/user_grant.go index 03a3fbc5ed..bbb0192d2a 100644 --- a/internal/auth/repository/eventsourcing/eventstore/user_grant.go +++ b/internal/auth/repository/eventsourcing/eventstore/user_grant.go @@ -2,7 +2,8 @@ package eventstore import ( "context" - "github.com/caos/zitadel/internal/api/auth" + + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/auth/repository/eventsourcing/view" authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" caos_errs "github.com/caos/zitadel/internal/errors" @@ -17,13 +18,13 @@ type UserGrantRepo struct { SearchLimit uint64 View *view.View IamID string - Auth auth.Config + Auth authz.Config AuthZRepo *authz_repo.EsRepository } func (repo *UserGrantRepo) SearchMyUserGrants(ctx context.Context, request *grant_model.UserGrantSearchRequest) (*grant_model.UserGrantSearchResponse, error) { request.EnsureLimit(repo.SearchLimit) - request.Queries = append(request.Queries, &grant_model.UserGrantSearchQuery{Key: grant_model.UserGrantSearchKeyUserID, Method: global_model.SearchMethodEquals, Value: auth.GetCtxData(ctx).UserID}) + request.Queries = append(request.Queries, &grant_model.UserGrantSearchQuery{Key: grant_model.UserGrantSearchKeyUserID, Method: global_model.SearchMethodEquals, Value: authz.GetCtxData(ctx).UserID}) grants, count, err := repo.View.SearchUserGrants(request) if err != nil { return nil, err @@ -38,7 +39,7 @@ func (repo *UserGrantRepo) SearchMyUserGrants(ctx context.Context, request *gran func (repo *UserGrantRepo) SearchMyProjectOrgs(ctx context.Context, request *grant_model.UserGrantSearchRequest) (*grant_model.ProjectOrgSearchResponse, error) { request.EnsureLimit(repo.SearchLimit) - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) if ctxData.ProjectID == "" { return nil, caos_errs.ThrowPreconditionFailed(nil, "APP-7lqva", "Could not get ProjectID") } @@ -74,7 +75,7 @@ func (repo *UserGrantRepo) SearchMyZitadelPermissions(ctx context.Context) ([]st } permissions := &grant_model.Permissions{Permissions: []string{}} for _, role := range grant.Roles { - roleName, ctxID := auth.SplitPermission(role) + roleName, ctxID := authz.SplitPermission(role) for _, mapping := range repo.Auth.RolePermissionMappings { if mapping.Role == roleName { permissions.AppendPermissions(ctxID, mapping.Permissions...) @@ -85,7 +86,7 @@ func (repo *UserGrantRepo) SearchMyZitadelPermissions(ctx context.Context) ([]st } func (repo *UserGrantRepo) SearchMyProjectPermissions(ctx context.Context) ([]string, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) usergrant, err := repo.View.UserGrantByIDs(ctxData.OrgID, ctxData.ProjectID, ctxData.UserID) if err != nil { return nil, err @@ -116,7 +117,7 @@ func (repo *UserGrantRepo) SearchAdminOrgs(request *grant_model.UserGrantSearchR func (repo *UserGrantRepo) IsIamAdmin(ctx context.Context) (bool, error) { grantSearch := &grant_model.UserGrantSearchRequest{ Queries: []*grant_model.UserGrantSearchQuery{ - &grant_model.UserGrantSearchQuery{Key: grant_model.UserGrantSearchKeyResourceOwner, Method: global_model.SearchMethodEquals, Value: repo.IamID}, + {Key: grant_model.UserGrantSearchKeyResourceOwner, Method: global_model.SearchMethodEquals, Value: repo.IamID}, }} result, err := repo.SearchMyUserGrants(ctx, grantSearch) if err != nil { @@ -150,15 +151,15 @@ func orgRespToOrgResp(orgs []*org_view_model.OrgView, count int) *grant_model.Pr return resp } -func mergeOrgAndAdminGrant(ctxData auth.CtxData, orgGrant, iamAdminGrant *model.UserGrantView) (grant *auth.Grant) { +func mergeOrgAndAdminGrant(ctxData authz.CtxData, orgGrant, iamAdminGrant *model.UserGrantView) (grant *authz.Grant) { if orgGrant != nil { roles := orgGrant.RoleKeys if iamAdminGrant != nil { roles = addIamAdminRoles(roles, iamAdminGrant.RoleKeys) } - grant = &auth.Grant{OrgID: orgGrant.ResourceOwner, Roles: roles} + grant = &authz.Grant{OrgID: orgGrant.ResourceOwner, Roles: roles} } else if iamAdminGrant != nil { - grant = &auth.Grant{ + grant = &authz.Grant{ OrgID: ctxData.OrgID, Roles: iamAdminGrant.RoleKeys, } @@ -170,7 +171,7 @@ func addIamAdminRoles(orgRoles, iamAdminRoles []string) []string { result := make([]string, 0) result = append(result, iamAdminRoles...) for _, role := range orgRoles { - if !auth.ExistsPerm(result, role) { + if !authz.ExistsPerm(result, role) { result = append(result, role) } } diff --git a/internal/auth/repository/eventsourcing/eventstore/user_session.go b/internal/auth/repository/eventsourcing/eventstore/user_session.go index 076f17d8f2..e3a8b53f6b 100644 --- a/internal/auth/repository/eventsourcing/eventstore/user_session.go +++ b/internal/auth/repository/eventsourcing/eventstore/user_session.go @@ -2,7 +2,8 @@ package eventstore import ( "context" - "github.com/caos/zitadel/internal/api/auth" + + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/auth/repository/eventsourcing/view" usr_model "github.com/caos/zitadel/internal/user/model" "github.com/caos/zitadel/internal/user/repository/view/model" @@ -13,7 +14,7 @@ type UserSessionRepo struct { } func (repo *UserSessionRepo) GetMyUserSessions(ctx context.Context) ([]*usr_model.UserSessionView, error) { - userSessions, err := repo.View.UserSessionsByAgentID(auth.GetCtxData(ctx).AgentID) + userSessions, err := repo.View.UserSessionsByAgentID(authz.GetCtxData(ctx).AgentID) if err != nil { return nil, err } diff --git a/internal/auth/repository/eventsourcing/repository.go b/internal/auth/repository/eventsourcing/repository.go index bdb4fdf105..70d9504303 100644 --- a/internal/auth/repository/eventsourcing/repository.go +++ b/internal/auth/repository/eventsourcing/repository.go @@ -2,23 +2,23 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" - es_iam "github.com/caos/zitadel/internal/iam/repository/eventsourcing" - es_org "github.com/caos/zitadel/internal/org/repository/eventsourcing" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/auth/repository/eventsourcing/eventstore" "github.com/caos/zitadel/internal/auth/repository/eventsourcing/handler" "github.com/caos/zitadel/internal/auth/repository/eventsourcing/spooler" auth_view "github.com/caos/zitadel/internal/auth/repository/eventsourcing/view" "github.com/caos/zitadel/internal/auth_request/repository/cache" + authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" sd "github.com/caos/zitadel/internal/config/systemdefaults" "github.com/caos/zitadel/internal/config/types" "github.com/caos/zitadel/internal/crypto" es_int "github.com/caos/zitadel/internal/eventstore" es_spol "github.com/caos/zitadel/internal/eventstore/spooler" + es_iam "github.com/caos/zitadel/internal/iam/repository/eventsourcing" "github.com/caos/zitadel/internal/id" es_key "github.com/caos/zitadel/internal/key/repository/eventsourcing" + es_org "github.com/caos/zitadel/internal/org/repository/eventsourcing" es_policy "github.com/caos/zitadel/internal/policy/repository/eventsourcing" es_proj "github.com/caos/zitadel/internal/project/repository/eventsourcing" es_user "github.com/caos/zitadel/internal/user/repository/eventsourcing" @@ -47,7 +47,7 @@ type EsRepository struct { eventstore.PolicyRepo } -func Start(conf Config, authZ auth.Config, systemDefaults sd.SystemDefaults, authZRepo *authz_repo.EsRepository) (*EsRepository, error) { +func Start(conf Config, authZ authz.Config, systemDefaults sd.SystemDefaults, authZRepo *authz_repo.EsRepository) (*EsRepository, error) { es, err := es_int.Start(conf.Eventstore) if err != nil { return nil, err diff --git a/internal/auth_request/model/browser_info.go b/internal/auth_request/model/browser_info.go index abfbe696f0..2990fa3550 100644 --- a/internal/auth_request/model/browser_info.go +++ b/internal/auth_request/model/browser_info.go @@ -4,7 +4,6 @@ import ( "net" "net/http" - "github.com/caos/zitadel/internal/api" http_util "github.com/caos/zitadel/internal/api/http" ) @@ -16,8 +15,8 @@ type BrowserInfo struct { func BrowserInfoFromRequest(r *http.Request) *BrowserInfo { return &BrowserInfo{ - UserAgent: r.Header.Get(api.UserAgent), - AcceptLanguage: r.Header.Get(api.AcceptLanguage), + UserAgent: r.Header.Get(http_util.UserAgentHeader), + AcceptLanguage: r.Header.Get(http_util.AcceptLanguage), RemoteIP: http_util.RemoteIPFromRequest(r), } } diff --git a/internal/authz/authz.go b/internal/authz/authz.go index 9f2c42da91..795a86919d 100644 --- a/internal/authz/authz.go +++ b/internal/authz/authz.go @@ -2,7 +2,8 @@ package authz import ( "context" - "github.com/caos/zitadel/internal/api/auth" + + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/authz/repository/eventsourcing" sd "github.com/caos/zitadel/internal/config/systemdefaults" ) @@ -11,6 +12,6 @@ type Config struct { Repository eventsourcing.Config } -func Start(ctx context.Context, config Config, authZ auth.Config, systemDefaults sd.SystemDefaults) (*eventsourcing.EsRepository, error) { +func Start(ctx context.Context, config Config, authZ authz.Config, systemDefaults sd.SystemDefaults) (*eventsourcing.EsRepository, error) { return eventsourcing.Start(config.Repository, authZ, systemDefaults) } diff --git a/internal/authz/repository/eventsourcing/eventstore/token_verifier.go b/internal/authz/repository/eventsourcing/eventstore/token_verifier.go index 7364bd46fb..8f06ff7d33 100644 --- a/internal/authz/repository/eventsourcing/eventstore/token_verifier.go +++ b/internal/authz/repository/eventsourcing/eventstore/token_verifier.go @@ -18,30 +18,26 @@ type TokenVerifierRepo struct { View *view.View } -func (repo *TokenVerifierRepo) VerifyAccessToken(ctx context.Context, tokenString, appName, appID string) (userID string, clientID string, agentID string, err error) { - clientID, err = repo.verifierClientID(ctx, appName, appID) - if err != nil { - return "", "", "", caos_errs.ThrowPermissionDenied(nil, "APP-ptTIF2", "invalid token") - } +func (repo *TokenVerifierRepo) VerifyAccessToken(ctx context.Context, tokenString, clientID string) (userID string, agentID string, err error) { //TODO: use real key tokenID, err := crypto.DecryptAESString(tokenString, string(repo.TokenVerificationKey[:32])) if err != nil { - return "", "", "", caos_errs.ThrowPermissionDenied(nil, "APP-8EF0zZ", "invalid token") + return "", "", caos_errs.ThrowPermissionDenied(nil, "APP-8EF0zZ", "invalid token") } token, err := repo.View.TokenByID(tokenID) if err != nil { - return "", "", "", caos_errs.ThrowPermissionDenied(err, "APP-BxUSiL", "invalid token") + return "", "", caos_errs.ThrowPermissionDenied(err, "APP-BxUSiL", "invalid token") } if !token.Expiration.After(time.Now().UTC()) { - return "", "", "", caos_errs.ThrowPermissionDenied(err, "APP-k9KS0", "invalid token") + return "", "", caos_errs.ThrowPermissionDenied(err, "APP-k9KS0", "invalid token") } for _, aud := range token.Audience { if clientID == aud { - return token.UserID, clientID, token.UserAgentID, nil + return token.UserID, token.UserAgentID, nil } } - return "", "", "", caos_errs.ThrowPermissionDenied(nil, "APP-Zxfako", "invalid audience") + return "", "", caos_errs.ThrowPermissionDenied(nil, "APP-Zxfako", "invalid audience") } func (repo *TokenVerifierRepo) ProjectIDByClientID(ctx context.Context, clientID string) (projectID string, err error) { @@ -52,10 +48,7 @@ func (repo *TokenVerifierRepo) ProjectIDByClientID(ctx context.Context, clientID return app.ProjectID, nil } -func (repo *TokenVerifierRepo) verifierClientID(ctx context.Context, appName, appClientID string) (string, error) { - if appClientID != "" { - return appClientID, nil - } +func (repo *TokenVerifierRepo) VerifierClientID(ctx context.Context, appName string) (string, error) { iam, err := repo.IamEvents.IamByID(ctx, repo.IamID) if err != nil { return "", err diff --git a/internal/authz/repository/eventsourcing/eventstore/user_grant.go b/internal/authz/repository/eventsourcing/eventstore/user_grant.go index 492db677a0..3a20958d6d 100644 --- a/internal/authz/repository/eventsourcing/eventstore/user_grant.go +++ b/internal/authz/repository/eventsourcing/eventstore/user_grant.go @@ -2,7 +2,8 @@ package eventstore import ( "context" - "github.com/caos/zitadel/internal/api/auth" + + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/authz/repository/eventsourcing/view" caos_errs "github.com/caos/zitadel/internal/errors" iam_event "github.com/caos/zitadel/internal/iam/repository/eventsourcing" @@ -14,7 +15,7 @@ type UserGrantRepo struct { View *view.View IamID string IamProjectID string - Auth auth.Config + Auth authz.Config IamEvents *iam_event.IamEventstore } @@ -22,12 +23,12 @@ func (repo *UserGrantRepo) Health() error { return repo.View.Health() } -func (repo *UserGrantRepo) ResolveGrants(ctx context.Context) (*auth.Grant, error) { +func (repo *UserGrantRepo) ResolveGrants(ctx context.Context) (*authz.Grant, error) { err := repo.FillIamProjectID(ctx) if err != nil { return nil, err } - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) orgGrant, err := repo.View.UserGrantByIDs(ctxData.OrgID, repo.IamProjectID, ctxData.UserID) if err != nil && !caos_errs.IsNotFound(err) { @@ -52,7 +53,7 @@ func (repo *UserGrantRepo) SearchMyZitadelPermissions(ctx context.Context) ([]st } permissions := &grant_model.Permissions{Permissions: []string{}} for _, role := range grant.Roles { - roleName, ctxID := auth.SplitPermission(role) + roleName, ctxID := authz.SplitPermission(role) for _, mapping := range repo.Auth.RolePermissionMappings { if mapping.Role == roleName { permissions.AppendPermissions(ctxID, mapping.Permissions...) @@ -77,15 +78,15 @@ func (repo *UserGrantRepo) FillIamProjectID(ctx context.Context) error { return nil } -func mergeOrgAndAdminGrant(ctxData auth.CtxData, orgGrant, iamAdminGrant *model.UserGrantView) (grant *auth.Grant) { +func mergeOrgAndAdminGrant(ctxData authz.CtxData, orgGrant, iamAdminGrant *model.UserGrantView) (grant *authz.Grant) { if orgGrant != nil { roles := orgGrant.RoleKeys if iamAdminGrant != nil { roles = addIamAdminRoles(roles, iamAdminGrant.RoleKeys) } - grant = &auth.Grant{OrgID: orgGrant.ResourceOwner, Roles: roles} + grant = &authz.Grant{OrgID: orgGrant.ResourceOwner, Roles: roles} } else if iamAdminGrant != nil { - grant = &auth.Grant{ + grant = &authz.Grant{ OrgID: ctxData.OrgID, Roles: iamAdminGrant.RoleKeys, } @@ -97,7 +98,7 @@ func addIamAdminRoles(orgRoles, iamAdminRoles []string) []string { result := make([]string, 0) result = append(result, iamAdminRoles...) for _, role := range orgRoles { - if !auth.ExistsPerm(result, role) { + if !authz.ExistsPerm(result, role) { result = append(result, role) } } diff --git a/internal/authz/repository/eventsourcing/repository.go b/internal/authz/repository/eventsourcing/repository.go index 29772e4667..8803039e5a 100644 --- a/internal/authz/repository/eventsourcing/repository.go +++ b/internal/authz/repository/eventsourcing/repository.go @@ -2,21 +2,21 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" - "github.com/caos/zitadel/internal/authz/repository/eventsourcing/handler" - es_iam "github.com/caos/zitadel/internal/iam/repository/eventsourcing" - "github.com/caos/zitadel/internal/id" - es_proj "github.com/caos/zitadel/internal/project/repository/eventsourcing" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/auth_request/repository/cache" "github.com/caos/zitadel/internal/authz/repository/eventsourcing/eventstore" + "github.com/caos/zitadel/internal/authz/repository/eventsourcing/handler" "github.com/caos/zitadel/internal/authz/repository/eventsourcing/spooler" authz_view "github.com/caos/zitadel/internal/authz/repository/eventsourcing/view" sd "github.com/caos/zitadel/internal/config/systemdefaults" "github.com/caos/zitadel/internal/config/types" es_int "github.com/caos/zitadel/internal/eventstore" es_spol "github.com/caos/zitadel/internal/eventstore/spooler" + es_iam "github.com/caos/zitadel/internal/iam/repository/eventsourcing" + "github.com/caos/zitadel/internal/id" es_key "github.com/caos/zitadel/internal/key/repository/eventsourcing" + es_proj "github.com/caos/zitadel/internal/project/repository/eventsourcing" ) type Config struct { @@ -34,7 +34,7 @@ type EsRepository struct { eventstore.TokenVerifierRepo } -func Start(conf Config, authZ auth.Config, systemDefaults sd.SystemDefaults) (*EsRepository, error) { +func Start(conf Config, authZ authz.Config, systemDefaults sd.SystemDefaults) (*EsRepository, error) { es, err := es_int.Start(conf.Eventstore) if err != nil { return nil, err diff --git a/internal/authz/repository/user_grant.go b/internal/authz/repository/user_grant.go index 6a6619855b..64c2ee3304 100644 --- a/internal/authz/repository/user_grant.go +++ b/internal/authz/repository/user_grant.go @@ -2,10 +2,11 @@ package repository import ( "context" - "github.com/caos/zitadel/internal/api/auth" + + "github.com/caos/zitadel/internal/api/authz" ) type UserGrantRepository interface { - ResolveGrants(ctx context.Context) (*auth.Grant, error) + ResolveGrants(ctx context.Context) (*authz.Grant, error) SearchMyZitadelPermissions(ctx context.Context) ([]string, error) } diff --git a/internal/eventstore/models/aggregate_creator.go b/internal/eventstore/models/aggregate_creator.go index 6b1e96be77..c602741259 100644 --- a/internal/eventstore/models/aggregate_creator.go +++ b/internal/eventstore/models/aggregate_creator.go @@ -3,7 +3,7 @@ package models import ( "context" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" ) type AggregateCreator struct { @@ -17,7 +17,7 @@ func NewAggregateCreator(serviceName string) *AggregateCreator { type option func(*Aggregate) func (c *AggregateCreator) NewAggregate(ctx context.Context, id string, typ AggregateType, version Version, previousSequence uint64, opts ...option) (*Aggregate, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) editorUser := ctxData.UserID resourceOwner := ctxData.OrgID diff --git a/internal/i18n/i18n.go b/internal/i18n/i18n.go index fd70a9619d..4229abd6ee 100644 --- a/internal/i18n/i18n.go +++ b/internal/i18n/i18n.go @@ -3,6 +3,7 @@ package i18n import ( "context" "encoding/json" + "github.com/BurntSushi/toml" "github.com/grpc-ecosystem/go-grpc-middleware/util/metautils" "io/ioutil" "net/http" @@ -48,6 +49,7 @@ func newBundle(dir http.FileSystem, defaultLanguage language.Tag) (*i18n.Bundle, bundle := i18n.NewBundle(defaultLanguage) bundle.RegisterUnmarshalFunc("yaml", yaml.Unmarshal) bundle.RegisterUnmarshalFunc("json", json.Unmarshal) + bundle.RegisterUnmarshalFunc("toml", toml.Unmarshal) i18nDir, err := dir.Open(i18nPath) if err != nil { return nil, errors.ThrowNotFound(err, "I18N-MnXRie", "path not found") @@ -80,35 +82,15 @@ func addFileToBundle(dir http.FileSystem, bundle *i18n.Bundle, file os.FileInfo) } func (t *Translator) LocalizeFromRequest(r *http.Request, id string, args map[string]interface{}) string { - s, err := t.localizerFromRequest(r).Localize(&i18n.LocalizeConfig{ - MessageID: id, - TemplateData: args, - }) - if err != nil { - logging.Log("I18N-MsF5sx").WithError(err).Warnf("missing translation") - return id - } - return s + return localize(t.localizerFromRequest(r), id, args) } func (t *Translator) LocalizeFromCtx(ctx context.Context, id string, args map[string]interface{}) string { - s, err := t.localizerFromCtx(ctx).Localize(&i18n.LocalizeConfig{ - MessageID: id, - TemplateData: args, - }) - if err != nil { - logging.Log("I18N-MsF5sx").WithError(err).Warnf("missing translation") - return id - } - return s + return localize(t.localizerFromCtx(ctx), id, args) } func (t *Translator) Localize(id string, args map[string]interface{}, langs ...string) string { - s, _ := t.localizer(langs...).Localize(&i18n.LocalizeConfig{ - MessageID: id, - TemplateData: args, - }) - return s + return localize(t.localizer(langs...), id, args) } func (t *Translator) Lang(r *http.Request) language.Tag { @@ -156,3 +138,15 @@ func (t *Translator) langsFromCtx(ctx context.Context) []string { func getAcceptLanguageHeader(ctx context.Context) string { return metautils.ExtractIncoming(ctx).Get("grpcgateway-accept-language") } + +func localize(localizer *i18n.Localizer, id string, args map[string]interface{}) string { + s, err := localizer.Localize(&i18n.LocalizeConfig{ + MessageID: id, + TemplateData: args, + }) + if err != nil { + logging.Log("I18N-MsF5sx").WithError(err).Warnf("missing translation") + return id + } + return s +} diff --git a/internal/iam/repository/eventsourcing/eventstore_test.go b/internal/iam/repository/eventsourcing/eventstore_test.go index e722490b0c..b149479c0e 100644 --- a/internal/iam/repository/eventsourcing/eventstore_test.go +++ b/internal/iam/repository/eventsourcing/eventstore_test.go @@ -2,13 +2,15 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" + "testing" + + "github.com/golang/mock/gomock" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" iam_model "github.com/caos/zitadel/internal/iam/model" "github.com/caos/zitadel/internal/iam/repository/eventsourcing/model" - "github.com/golang/mock/gomock" - "testing" ) func TestIamByID(t *testing.T) { @@ -91,7 +93,7 @@ func TestSetUpStarted(t *testing.T) { name: "setup started iam, ok", args: args{ es: GetMockManipulateIamNotExisting(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamID: "iamID", }, res: res{ @@ -102,7 +104,7 @@ func TestSetUpStarted(t *testing.T) { name: "setup already started", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamID: "iamID", }, res: res{ @@ -113,7 +115,7 @@ func TestSetUpStarted(t *testing.T) { name: "setup iam no id", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), }, res: res{ errFunc: caos_errs.IsPreconditionFailed, @@ -157,7 +159,7 @@ func TestSetUpDone(t *testing.T) { name: "setup done iam, ok", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamID: "iamID", }, res: res{ @@ -168,7 +170,7 @@ func TestSetUpDone(t *testing.T) { name: "setup iam no id", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), }, res: res{ errFunc: caos_errs.IsPreconditionFailed, @@ -178,7 +180,7 @@ func TestSetUpDone(t *testing.T) { name: "iam not found", args: args{ es: GetMockManipulateIamNotExisting(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamID: "iamID", }, res: res{ @@ -224,7 +226,7 @@ func TestSetGlobalOrg(t *testing.T) { name: "global org set, ok", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamID: "iamID", globalOrg: "globalOrg", }, @@ -236,7 +238,7 @@ func TestSetGlobalOrg(t *testing.T) { name: "no iam id", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), globalOrg: "", }, res: res{ @@ -247,7 +249,7 @@ func TestSetGlobalOrg(t *testing.T) { name: "no global org", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamID: "iamID", }, res: res{ @@ -258,7 +260,7 @@ func TestSetGlobalOrg(t *testing.T) { name: "iam not found", args: args{ es: GetMockManipulateIamNotExisting(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamID: "iamID", globalOrg: "globalOrg", }, @@ -305,7 +307,7 @@ func TestSetIamProjectID(t *testing.T) { name: "iam project set, ok", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamID: "iamID", iamProjectID: "iamProjectID", }, @@ -317,7 +319,7 @@ func TestSetIamProjectID(t *testing.T) { name: "no iam id", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamProjectID: "", }, res: res{ @@ -328,7 +330,7 @@ func TestSetIamProjectID(t *testing.T) { name: "no global org", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamID: "iamID", }, res: res{ @@ -339,7 +341,7 @@ func TestSetIamProjectID(t *testing.T) { name: "iam not found", args: args{ es: GetMockManipulateIamNotExisting(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iamID: "iamID", iamProjectID: "iamProjectID", }, @@ -385,7 +387,7 @@ func TestAddIamMember(t *testing.T) { name: "add iam member, ok", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"Roles"}}, }, res: res{ @@ -396,7 +398,7 @@ func TestAddIamMember(t *testing.T) { name: "no userid", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Roles: []string{"Roles"}}, }, res: res{ @@ -407,7 +409,7 @@ func TestAddIamMember(t *testing.T) { name: "no roles", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID"}, }, res: res{ @@ -418,7 +420,7 @@ func TestAddIamMember(t *testing.T) { name: "member already existing", args: args{ es: GetMockManipulateIamWithMember(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"Roles"}}, }, res: res{ @@ -429,7 +431,7 @@ func TestAddIamMember(t *testing.T) { name: "existing iam not found", args: args{ es: GetMockManipulateIamNotExisting(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"Roles"}}, }, res: res{ @@ -477,7 +479,7 @@ func TestChangeIamMember(t *testing.T) { name: "add iam member, ok", args: args{ es: GetMockManipulateIamWithMember(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"ChangeRoles"}}, }, res: res{ @@ -488,7 +490,7 @@ func TestChangeIamMember(t *testing.T) { name: "no userid", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Roles: []string{"ChangeRoles"}}, }, res: res{ @@ -499,7 +501,7 @@ func TestChangeIamMember(t *testing.T) { name: "no roles", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID"}, }, res: res{ @@ -510,7 +512,7 @@ func TestChangeIamMember(t *testing.T) { name: "member not existing", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"Roles"}}, }, res: res{ @@ -521,7 +523,7 @@ func TestChangeIamMember(t *testing.T) { name: "existing not found", args: args{ es: GetMockManipulateIamNotExisting(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"ChangeRoles"}}, }, res: res{ @@ -570,10 +572,10 @@ func TestRemoveIamMember(t *testing.T) { name: "remove iam member, ok", args: args{ es: GetMockManipulateIamWithMember(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, - Members: []*model.IamMember{&model.IamMember{UserID: "UserID", Roles: []string{"Roles"}}}, + Members: []*model.IamMember{{UserID: "UserID", Roles: []string{"Roles"}}}, }, member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID"}, }, @@ -585,10 +587,10 @@ func TestRemoveIamMember(t *testing.T) { name: "no userid", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, - Members: []*model.IamMember{&model.IamMember{UserID: "UserID", Roles: []string{"Roles"}}}, + Members: []*model.IamMember{{UserID: "UserID", Roles: []string{"Roles"}}}, }, member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Roles: []string{"ChangeRoles"}}, }, @@ -600,7 +602,7 @@ func TestRemoveIamMember(t *testing.T) { name: "member not existing", args: args{ es: GetMockManipulateIam(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, }, @@ -614,7 +616,7 @@ func TestRemoveIamMember(t *testing.T) { name: "existing not found", args: args{ es: GetMockManipulateIamNotExisting(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &iam_model.IamMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"ChangeRoles"}}, }, res: res{ diff --git a/internal/iam/repository/eventsourcing/iam_test.go b/internal/iam/repository/eventsourcing/iam_test.go index 45206b95d4..5d214396ab 100644 --- a/internal/iam/repository/eventsourcing/iam_test.go +++ b/internal/iam/repository/eventsourcing/iam_test.go @@ -2,11 +2,12 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" + "testing" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/iam/repository/eventsourcing/model" - "testing" ) func TestSetUpStartedAggregate(t *testing.T) { @@ -28,7 +29,7 @@ func TestSetUpStartedAggregate(t *testing.T) { { name: "setupstarted aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iam: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -40,7 +41,7 @@ func TestSetUpStartedAggregate(t *testing.T) { { name: "iam nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), iam: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -87,7 +88,7 @@ func TestSetUpDoneAggregate(t *testing.T) { { name: "setup done aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -99,7 +100,7 @@ func TestSetUpDoneAggregate(t *testing.T) { { name: "existing iam nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -147,7 +148,7 @@ func TestGlobalOrgAggregate(t *testing.T) { { name: "global org set aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, orgID: "orgID", aggCreator: models.NewAggregateCreator("Test"), @@ -160,7 +161,7 @@ func TestGlobalOrgAggregate(t *testing.T) { { name: "existing iam nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, orgID: "orgID", aggCreator: models.NewAggregateCreator("Test"), @@ -172,7 +173,7 @@ func TestGlobalOrgAggregate(t *testing.T) { { name: "global org empty", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -218,7 +219,7 @@ func TestIamProjectAggregate(t *testing.T) { { name: "iam project id set aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, projectID: "projectID", aggCreator: models.NewAggregateCreator("Test"), @@ -231,7 +232,7 @@ func TestIamProjectAggregate(t *testing.T) { { name: "existing iam nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, projectID: "projectID", aggCreator: models.NewAggregateCreator("Test"), @@ -243,7 +244,7 @@ func TestIamProjectAggregate(t *testing.T) { { name: "project id empty", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -289,7 +290,7 @@ func TestIamMemberAddedAggregate(t *testing.T) { { name: "iammember added ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, new: &model.IamMember{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, UserID: "UserID", Roles: []string{"Roles"}}, aggCreator: models.NewAggregateCreator("Test"), @@ -302,7 +303,7 @@ func TestIamMemberAddedAggregate(t *testing.T) { { name: "existing iam nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -315,7 +316,7 @@ func TestIamMemberAddedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -368,7 +369,7 @@ func TestIamMemberChangedAggregate(t *testing.T) { { name: "iammember changed ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, new: &model.IamMember{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, UserID: "UserID", Roles: []string{"Roles"}}, aggCreator: models.NewAggregateCreator("Test"), @@ -381,7 +382,7 @@ func TestIamMemberChangedAggregate(t *testing.T) { { name: "existing iam nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -395,7 +396,7 @@ func TestIamMemberChangedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -449,7 +450,7 @@ func TestIamMemberRemovedAggregate(t *testing.T) { { name: "iammember removed ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, new: &model.IamMember{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, UserID: "UserID", Roles: []string{"Roles"}}, aggCreator: models.NewAggregateCreator("Test"), @@ -462,7 +463,7 @@ func TestIamMemberRemovedAggregate(t *testing.T) { { name: "existing iam nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -476,7 +477,7 @@ func TestIamMemberRemovedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Iam{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}}, new: nil, aggCreator: models.NewAggregateCreator("Test"), diff --git a/internal/login/login.go b/internal/login/login.go deleted file mode 100644 index 61a0a0a4ae..0000000000 --- a/internal/login/login.go +++ /dev/null @@ -1,17 +0,0 @@ -package login - -import ( - "context" - - "github.com/caos/zitadel/internal/auth/repository/eventsourcing" - sd "github.com/caos/zitadel/internal/config/systemdefaults" - "github.com/caos/zitadel/internal/login/handler" -) - -type Config struct { - Handler handler.Config -} - -func Start(ctx context.Context, config Config, systemDefaults sd.SystemDefaults, authRepo *eventsourcing.EsRepository) { - handler.StartLogin(ctx, config.Handler, authRepo) -} diff --git a/internal/login/static/resources/themes/scss/caos/dark.scss b/internal/login/static/resources/themes/scss/caos/dark.scss deleted file mode 100644 index b34f994b21..0000000000 --- a/internal/login/static/resources/themes/scss/caos/dark.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import "../variables.scss"; -@import "./variables.scss"; -@import "../main.scss"; diff --git a/internal/login/static/resources/themes/scss/caos/light.scss b/internal/login/static/resources/themes/scss/caos/light.scss deleted file mode 100644 index 112a44a1a0..0000000000 --- a/internal/login/static/resources/themes/scss/caos/light.scss +++ /dev/null @@ -1,4 +0,0 @@ -@import "../variables.scss"; -@import "./variables.scss"; -@import "../main.scss"; -@import "../light.scss"; diff --git a/internal/login/static/resources/themes/scss/zitadel/dark.scss b/internal/login/static/resources/themes/scss/zitadel/dark.scss deleted file mode 100644 index b34f994b21..0000000000 --- a/internal/login/static/resources/themes/scss/zitadel/dark.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import "../variables.scss"; -@import "./variables.scss"; -@import "../main.scss"; diff --git a/internal/login/static/resources/themes/scss/zitadel/light.scss b/internal/login/static/resources/themes/scss/zitadel/light.scss deleted file mode 100644 index 112a44a1a0..0000000000 --- a/internal/login/static/resources/themes/scss/zitadel/light.scss +++ /dev/null @@ -1,4 +0,0 @@ -@import "../variables.scss"; -@import "./variables.scss"; -@import "../main.scss"; -@import "../light.scss"; diff --git a/internal/management/auth/token_verifier.go b/internal/management/auth/token_verifier.go deleted file mode 100644 index 842874c568..0000000000 --- a/internal/management/auth/token_verifier.go +++ /dev/null @@ -1,36 +0,0 @@ -package auth - -import ( - "context" - "github.com/caos/zitadel/internal/api/auth" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" -) - -const ( - mgmtName = "Management-API" -) - -type TokenVerifier struct { - mgmtID string - authZRepo *authz_repo.EsRepository -} - -func Start(authZRepo *authz_repo.EsRepository) (v *TokenVerifier) { - return &TokenVerifier{authZRepo: authZRepo} -} - -func (v *TokenVerifier) VerifyAccessToken(ctx context.Context, token string) (string, string, string, error) { - userID, clientID, agentID, err := v.authZRepo.VerifyAccessToken(ctx, token, mgmtName, v.mgmtID) - if clientID != "" { - v.mgmtID = clientID - } - return userID, clientID, agentID, err -} - -func (v *TokenVerifier) ResolveGrant(ctx context.Context) (*auth.Grant, error) { - return v.authZRepo.ResolveGrants(ctx) -} - -func (v *TokenVerifier) GetProjectIDByClientID(ctx context.Context, clientID string) (string, error) { - return v.authZRepo.ProjectIDByClientID(ctx, clientID) -} diff --git a/internal/management/repository/eventsourcing/eventstore/org.go b/internal/management/repository/eventsourcing/eventstore/org.go index 892e2f5b27..cc65244d1f 100644 --- a/internal/management/repository/eventsourcing/eventstore/org.go +++ b/internal/management/repository/eventsourcing/eventstore/org.go @@ -2,17 +2,16 @@ package eventstore import ( "context" - usr_es "github.com/caos/zitadel/internal/user/repository/eventsourcing" "strings" - "github.com/caos/zitadel/internal/api/auth" - global_model "github.com/caos/zitadel/internal/model" - "github.com/caos/zitadel/internal/org/repository/view/model" - + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/errors" mgmt_view "github.com/caos/zitadel/internal/management/repository/eventsourcing/view" + global_model "github.com/caos/zitadel/internal/model" org_model "github.com/caos/zitadel/internal/org/model" org_es "github.com/caos/zitadel/internal/org/repository/eventsourcing" + "github.com/caos/zitadel/internal/org/repository/view/model" + usr_es "github.com/caos/zitadel/internal/user/repository/eventsourcing" ) type OrgRepository struct { @@ -52,12 +51,12 @@ func (repo *OrgRepository) ReactivateOrg(ctx context.Context, id string) (*org_m } func (repo *OrgRepository) GetMyOrgIamPolicy(ctx context.Context) (*org_model.OrgIamPolicy, error) { - return repo.OrgEventstore.GetOrgIamPolicy(ctx, auth.GetCtxData(ctx).OrgID) + return repo.OrgEventstore.GetOrgIamPolicy(ctx, authz.GetCtxData(ctx).OrgID) } func (repo *OrgRepository) SearchMyOrgDomains(ctx context.Context, request *org_model.OrgDomainSearchRequest) (*org_model.OrgDomainSearchResponse, error) { request.EnsureLimit(repo.SearchLimit) - request.Queries = append(request.Queries, &org_model.OrgDomainSearchQuery{Key: org_model.OrgDomainSearchKeyOrgID, Method: global_model.SearchMethodEquals, Value: auth.GetCtxData(ctx).OrgID}) + request.Queries = append(request.Queries, &org_model.OrgDomainSearchQuery{Key: org_model.OrgDomainSearchKeyOrgID, Method: global_model.SearchMethodEquals, Value: authz.GetCtxData(ctx).OrgID}) domains, count, err := repo.View.SearchOrgDomains(request) if err != nil { return nil, err @@ -71,12 +70,12 @@ func (repo *OrgRepository) SearchMyOrgDomains(ctx context.Context, request *org_ } func (repo *OrgRepository) AddMyOrgDomain(ctx context.Context, domain *org_model.OrgDomain) (*org_model.OrgDomain, error) { - domain.AggregateID = auth.GetCtxData(ctx).OrgID + domain.AggregateID = authz.GetCtxData(ctx).OrgID return repo.OrgEventstore.AddOrgDomain(ctx, domain) } func (repo *OrgRepository) RemoveMyOrgDomain(ctx context.Context, domain string) error { - d := org_model.NewOrgDomain(auth.GetCtxData(ctx).OrgID, domain) + d := org_model.NewOrgDomain(authz.GetCtxData(ctx).OrgID, domain) return repo.OrgEventstore.RemoveOrgDomain(ctx, d) } @@ -104,23 +103,23 @@ func (repo *OrgRepository) OrgMemberByID(ctx context.Context, orgID, userID stri } func (repo *OrgRepository) AddMyOrgMember(ctx context.Context, member *org_model.OrgMember) (*org_model.OrgMember, error) { - member.AggregateID = auth.GetCtxData(ctx).OrgID + member.AggregateID = authz.GetCtxData(ctx).OrgID return repo.OrgEventstore.AddOrgMember(ctx, member) } func (repo *OrgRepository) ChangeMyOrgMember(ctx context.Context, member *org_model.OrgMember) (*org_model.OrgMember, error) { - member.AggregateID = auth.GetCtxData(ctx).OrgID + member.AggregateID = authz.GetCtxData(ctx).OrgID return repo.OrgEventstore.ChangeOrgMember(ctx, member) } func (repo *OrgRepository) RemoveMyOrgMember(ctx context.Context, userID string) error { - member := org_model.NewOrgMember(auth.GetCtxData(ctx).OrgID, userID) + member := org_model.NewOrgMember(authz.GetCtxData(ctx).OrgID, userID) return repo.OrgEventstore.RemoveOrgMember(ctx, member) } func (repo *OrgRepository) SearchMyOrgMembers(ctx context.Context, request *org_model.OrgMemberSearchRequest) (*org_model.OrgMemberSearchResponse, error) { request.EnsureLimit(repo.SearchLimit) - request.Queries[len(request.Queries)-1] = &org_model.OrgMemberSearchQuery{Key: org_model.OrgMemberSearchKeyOrgID, Method: global_model.SearchMethodEquals, Value: auth.GetCtxData(ctx).OrgID} + request.Queries[len(request.Queries)-1] = &org_model.OrgMemberSearchQuery{Key: org_model.OrgMemberSearchKeyOrgID, Method: global_model.SearchMethodEquals, Value: authz.GetCtxData(ctx).OrgID} members, count, err := repo.View.SearchOrgMembers(request) if err != nil { return nil, err diff --git a/internal/management/repository/eventsourcing/eventstore/policy.go b/internal/management/repository/eventsourcing/eventstore/policy.go index 3d510a76ca..b61077eaf0 100644 --- a/internal/management/repository/eventsourcing/eventstore/policy.go +++ b/internal/management/repository/eventsourcing/eventstore/policy.go @@ -3,7 +3,7 @@ package eventstore import ( "context" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" pol_model "github.com/caos/zitadel/internal/policy/model" pol_event "github.com/caos/zitadel/internal/policy/repository/eventsourcing" ) @@ -17,7 +17,7 @@ func (repo *PolicyRepo) CreatePasswordComplexityPolicy(ctx context.Context, poli return repo.PolicyEvents.CreatePasswordComplexityPolicy(ctx, policy) } func (repo *PolicyRepo) GetPasswordComplexityPolicy(ctx context.Context) (*pol_model.PasswordComplexityPolicy, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) return repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, ctxData.OrgID) } func (repo *PolicyRepo) UpdatePasswordComplexityPolicy(ctx context.Context, policy *pol_model.PasswordComplexityPolicy) (*pol_model.PasswordComplexityPolicy, error) { @@ -27,7 +27,7 @@ func (repo *PolicyRepo) CreatePasswordAgePolicy(ctx context.Context, policy *pol return repo.PolicyEvents.CreatePasswordAgePolicy(ctx, policy) } func (repo *PolicyRepo) GetPasswordAgePolicy(ctx context.Context) (*pol_model.PasswordAgePolicy, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) return repo.PolicyEvents.GetPasswordAgePolicy(ctx, ctxData.OrgID) } func (repo *PolicyRepo) UpdatePasswordAgePolicy(ctx context.Context, policy *pol_model.PasswordAgePolicy) (*pol_model.PasswordAgePolicy, error) { @@ -37,7 +37,7 @@ func (repo *PolicyRepo) CreatePasswordLockoutPolicy(ctx context.Context, policy return repo.PolicyEvents.CreatePasswordLockoutPolicy(ctx, policy) } func (repo *PolicyRepo) GetPasswordLockoutPolicy(ctx context.Context) (*pol_model.PasswordLockoutPolicy, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) return repo.PolicyEvents.GetPasswordLockoutPolicy(ctx, ctxData.OrgID) } func (repo *PolicyRepo) UpdatePasswordLockoutPolicy(ctx context.Context, policy *pol_model.PasswordLockoutPolicy) (*pol_model.PasswordLockoutPolicy, error) { diff --git a/internal/management/repository/eventsourcing/eventstore/project.go b/internal/management/repository/eventsourcing/eventstore/project.go index 0bd334beee..0495f51a2a 100644 --- a/internal/management/repository/eventsourcing/eventstore/project.go +++ b/internal/management/repository/eventsourcing/eventstore/project.go @@ -5,24 +5,22 @@ import ( "strings" "github.com/caos/logging" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" es_int "github.com/caos/zitadel/internal/eventstore" "github.com/caos/zitadel/internal/eventstore/models" es_models "github.com/caos/zitadel/internal/eventstore/models" es_sdk "github.com/caos/zitadel/internal/eventstore/sdk" + "github.com/caos/zitadel/internal/management/repository/eventsourcing/view" + global_model "github.com/caos/zitadel/internal/model" + proj_model "github.com/caos/zitadel/internal/project/model" + proj_event "github.com/caos/zitadel/internal/project/repository/eventsourcing" es_proj_model "github.com/caos/zitadel/internal/project/repository/eventsourcing/model" + "github.com/caos/zitadel/internal/project/repository/view/model" usr_event "github.com/caos/zitadel/internal/user/repository/eventsourcing" usr_grant_model "github.com/caos/zitadel/internal/usergrant/model" usr_grant_event "github.com/caos/zitadel/internal/usergrant/repository/eventsourcing" - - "github.com/caos/zitadel/internal/api/auth" - global_model "github.com/caos/zitadel/internal/model" - - "github.com/caos/zitadel/internal/management/repository/eventsourcing/view" - "github.com/caos/zitadel/internal/project/repository/view/model" - - proj_model "github.com/caos/zitadel/internal/project/model" - proj_event "github.com/caos/zitadel/internal/project/repository/eventsourcing" ) type ProjectRepo struct { @@ -81,9 +79,9 @@ func (repo *ProjectRepo) ReactivateProject(ctx context.Context, id string) (*pro func (repo *ProjectRepo) SearchProjects(ctx context.Context, request *proj_model.ProjectViewSearchRequest) (*proj_model.ProjectViewSearchResponse, error) { request.EnsureLimit(repo.SearchLimit) - permissions := auth.GetPermissionsFromCtx(ctx) - if !auth.HasGlobalPermission(permissions) { - ids := auth.GetPermissionCtxIDs(permissions) + permissions := authz.GetPermissionsFromCtx(ctx) + if !authz.HasGlobalPermission(permissions) { + ids := authz.GetPermissionCtxIDs(permissions) request.Queries = append(request.Queries, &proj_model.ProjectViewSearchQuery{Key: proj_model.ProjectViewSearchKeyProjectID, Method: global_model.SearchMethodIsOneOf, Value: ids}) } diff --git a/internal/management/repository/eventsourcing/eventstore/user.go b/internal/management/repository/eventsourcing/eventstore/user.go index dcee26720f..3de010b499 100644 --- a/internal/management/repository/eventsourcing/eventstore/user.go +++ b/internal/management/repository/eventsourcing/eventstore/user.go @@ -5,7 +5,7 @@ import ( "github.com/caos/logging" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/management/repository/eventsourcing/view" org_event "github.com/caos/zitadel/internal/org/repository/eventsourcing" policy_event "github.com/caos/zitadel/internal/policy/repository/eventsourcing" @@ -42,11 +42,11 @@ func (repo *UserRepo) UserByID(ctx context.Context, id string) (*usr_model.UserV } func (repo *UserRepo) CreateUser(ctx context.Context, user *usr_model.User) (*usr_model.User, error) { - pwPolicy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, auth.GetCtxData(ctx).OrgID) + pwPolicy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return nil, err } - orgPolicy, err := repo.OrgEvents.GetOrgIamPolicy(ctx, auth.GetCtxData(ctx).OrgID) + orgPolicy, err := repo.OrgEvents.GetOrgIamPolicy(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return nil, err } @@ -54,7 +54,7 @@ func (repo *UserRepo) CreateUser(ctx context.Context, user *usr_model.User) (*us } func (repo *UserRepo) RegisterUser(ctx context.Context, user *usr_model.User, resourceOwner string) (*usr_model.User, error) { - policyResourceOwner := auth.GetCtxData(ctx).OrgID + policyResourceOwner := authz.GetCtxData(ctx).OrgID if resourceOwner != "" { policyResourceOwner = resourceOwner } @@ -62,7 +62,7 @@ func (repo *UserRepo) RegisterUser(ctx context.Context, user *usr_model.User, re if err != nil { return nil, err } - orgPolicy, err := repo.OrgEvents.GetOrgIamPolicy(ctx, auth.GetCtxData(ctx).OrgID) + orgPolicy, err := repo.OrgEvents.GetOrgIamPolicy(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return nil, err } @@ -131,7 +131,7 @@ func (repo *UserRepo) UserMfas(ctx context.Context, userID string) ([]*usr_model } func (repo *UserRepo) SetOneTimePassword(ctx context.Context, password *usr_model.Password) (*usr_model.Password, error) { - policy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, auth.GetCtxData(ctx).OrgID) + policy, err := repo.PolicyEvents.GetPasswordComplexityPolicy(ctx, authz.GetCtxData(ctx).OrgID) if err != nil { return nil, err } diff --git a/internal/notification/repository/eventsourcing/handler/notification.go b/internal/notification/repository/eventsourcing/handler/notification.go index e722a88260..189588a719 100644 --- a/internal/notification/repository/eventsourcing/handler/notification.go +++ b/internal/notification/repository/eventsourcing/handler/notification.go @@ -2,22 +2,22 @@ package handler import ( "context" - "github.com/caos/zitadel/internal/api/auth" - sd "github.com/caos/zitadel/internal/config/systemdefaults" - "github.com/caos/zitadel/internal/crypto" - "github.com/caos/zitadel/internal/eventstore" - "github.com/caos/zitadel/internal/i18n" - "github.com/caos/zitadel/internal/notification/types" - usr_event "github.com/caos/zitadel/internal/user/repository/eventsourcing" - es_model "github.com/caos/zitadel/internal/user/repository/eventsourcing/model" "net/http" "time" "github.com/caos/logging" + "github.com/caos/zitadel/internal/api/authz" + sd "github.com/caos/zitadel/internal/config/systemdefaults" + "github.com/caos/zitadel/internal/crypto" + "github.com/caos/zitadel/internal/eventstore" "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/eventstore/spooler" + "github.com/caos/zitadel/internal/i18n" + "github.com/caos/zitadel/internal/notification/types" "github.com/caos/zitadel/internal/user/repository/eventsourcing" + usr_event "github.com/caos/zitadel/internal/user/repository/eventsourcing" + es_model "github.com/caos/zitadel/internal/user/repository/eventsourcing/model" ) type Notification struct { @@ -168,5 +168,5 @@ func (n *Notification) OnError(event *models.Event, err error) error { } func getSetNotifyContextData(orgID string) context.Context { - return auth.SetCtxData(context.Background(), auth.CtxData{UserID: NotifyUserID, OrgID: orgID}) + return authz.SetCtxData(context.Background(), authz.CtxData{UserID: NotifyUserID, OrgID: orgID}) } diff --git a/internal/org/repository/eventsourcing/eventstore_test.go b/internal/org/repository/eventsourcing/eventstore_test.go index cd76f89181..32b9116694 100644 --- a/internal/org/repository/eventsourcing/eventstore_test.go +++ b/internal/org/repository/eventsourcing/eventstore_test.go @@ -6,15 +6,15 @@ import ( "testing" "time" - "github.com/caos/zitadel/internal/org/repository/eventsourcing/model" + "github.com/golang/mock/gomock" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/errors" caos_errs "github.com/caos/zitadel/internal/errors" es_mock "github.com/caos/zitadel/internal/eventstore/mock" es_models "github.com/caos/zitadel/internal/eventstore/models" org_model "github.com/caos/zitadel/internal/org/model" - "github.com/golang/mock/gomock" + "github.com/caos/zitadel/internal/org/repository/eventsourcing/model" ) type testOrgEventstore struct { @@ -80,7 +80,7 @@ func TestOrgEventstore_OrgByID(t *testing.T) { name: "no input org", fields: fields{Eventstore: newTestEventstore(t)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), org: nil, }, res: res{ @@ -92,7 +92,7 @@ func TestOrgEventstore_OrgByID(t *testing.T) { name: "no aggregate id in input org", fields: fields{Eventstore: newTestEventstore(t)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), org: &org_model.Org{ObjectRoot: es_models.ObjectRoot{Sequence: 4}}, }, res: res{ @@ -104,7 +104,7 @@ func TestOrgEventstore_OrgByID(t *testing.T) { name: "no events found success", fields: fields{Eventstore: newTestEventstore(t).expectFilterEvents([]*es_models.Event{}, nil)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), org: &org_model.Org{ObjectRoot: es_models.ObjectRoot{Sequence: 4, AggregateID: "hodor"}}, }, res: res{ @@ -116,7 +116,7 @@ func TestOrgEventstore_OrgByID(t *testing.T) { name: "filter fail", fields: fields{Eventstore: newTestEventstore(t).expectFilterEvents([]*es_models.Event{}, errors.ThrowInternal(nil, "EVENT-SAa1O", "message"))}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), org: &org_model.Org{ObjectRoot: es_models.ObjectRoot{Sequence: 4, AggregateID: "hodor"}}, }, res: res{ @@ -130,7 +130,7 @@ func TestOrgEventstore_OrgByID(t *testing.T) { {Sequence: 6}, }, nil)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), org: &org_model.Org{ObjectRoot: es_models.ObjectRoot{Sequence: 4, AggregateID: "hodor-org", ChangeDate: time.Now(), CreationDate: time.Now()}}, }, res: res{ @@ -181,7 +181,7 @@ func TestOrgEventstore_DeactivateOrg(t *testing.T) { name: "no input org", fields: fields{Eventstore: newTestEventstore(t)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), orgID: "", }, res: res{ @@ -196,7 +196,7 @@ func TestOrgEventstore_DeactivateOrg(t *testing.T) { expectAggregateCreator(). expectPushEvents(0, errors.ThrowInternal(nil, "EVENT-S8WzW", "test"))}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), orgID: "hodor", }, res: res{ @@ -211,7 +211,7 @@ func TestOrgEventstore_DeactivateOrg(t *testing.T) { expectAggregateCreator(). expectPushEvents(6, nil)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), orgID: "hodor", }, res: res{ @@ -226,7 +226,7 @@ func TestOrgEventstore_DeactivateOrg(t *testing.T) { expectAggregateCreator(). expectPushEvents(6, nil)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), orgID: "hodor", }, res: res{ @@ -277,7 +277,7 @@ func TestOrgEventstore_ReactivateOrg(t *testing.T) { name: "no input org", fields: fields{Eventstore: newTestEventstore(t)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), orgID: "", }, res: res{ @@ -292,7 +292,7 @@ func TestOrgEventstore_ReactivateOrg(t *testing.T) { expectAggregateCreator(). expectPushEvents(0, errors.ThrowInternal(nil, "EVENT-S8WzW", "test"))}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), orgID: "hodor", }, res: res{ @@ -307,7 +307,7 @@ func TestOrgEventstore_ReactivateOrg(t *testing.T) { expectAggregateCreator(). expectPushEvents(6, nil)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), orgID: "hodor", }, res: res{ @@ -322,7 +322,7 @@ func TestOrgEventstore_ReactivateOrg(t *testing.T) { expectAggregateCreator(). expectPushEvents(6, nil)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), orgID: "hodor", }, res: res{ @@ -373,7 +373,7 @@ func TestOrgEventstore_OrgMemberByIDs(t *testing.T) { name: "no input member", fields: fields{Eventstore: newTestEventstore(t)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: nil, }, res: res{ @@ -385,7 +385,7 @@ func TestOrgEventstore_OrgMemberByIDs(t *testing.T) { name: "no aggregate id in input member", fields: fields{Eventstore: newTestEventstore(t)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ObjectRoot: es_models.ObjectRoot{Sequence: 4}, UserID: "asdf"}, }, res: res{ @@ -397,7 +397,7 @@ func TestOrgEventstore_OrgMemberByIDs(t *testing.T) { name: "no aggregate id in input member", fields: fields{Eventstore: newTestEventstore(t)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ObjectRoot: es_models.ObjectRoot{Sequence: 4, AggregateID: "asdf"}}, }, res: res{ @@ -409,7 +409,7 @@ func TestOrgEventstore_OrgMemberByIDs(t *testing.T) { name: "no events found success", fields: fields{Eventstore: newTestEventstore(t).expectFilterEvents([]*es_models.Event{}, nil)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ObjectRoot: es_models.ObjectRoot{Sequence: 4, AggregateID: "plants"}, UserID: "banana"}, }, res: res{ @@ -421,7 +421,7 @@ func TestOrgEventstore_OrgMemberByIDs(t *testing.T) { name: "filter fail", fields: fields{Eventstore: newTestEventstore(t).expectFilterEvents([]*es_models.Event{}, errors.ThrowInternal(nil, "EVENT-SAa1O", "message"))}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ObjectRoot: es_models.ObjectRoot{Sequence: 4, AggregateID: "plants"}, UserID: "banana"}, }, res: res{ @@ -435,7 +435,7 @@ func TestOrgEventstore_OrgMemberByIDs(t *testing.T) { {Sequence: 6, Data: []byte("{\"userId\": \"banana\", \"roles\": [\"bananaa\"]}"), Type: model.OrgMemberChanged}, }, nil)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ObjectRoot: es_models.ObjectRoot{Sequence: 4, AggregateID: "plants", ChangeDate: time.Now(), CreationDate: time.Now()}, UserID: "banana"}, }, res: res{ @@ -450,7 +450,7 @@ func TestOrgEventstore_OrgMemberByIDs(t *testing.T) { {Sequence: 7, Data: []byte("{\"userId\": \"apple\"}"), Type: model.OrgMemberRemoved}, }, nil)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ObjectRoot: es_models.ObjectRoot{Sequence: 4, AggregateID: "plants", ChangeDate: time.Now(), CreationDate: time.Now()}, UserID: "apple"}, }, res: res{ @@ -501,7 +501,7 @@ func TestOrgEventstore_AddOrgMember(t *testing.T) { name: "no input member", fields: fields{Eventstore: newTestEventstore(t)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: nil, }, res: res{ @@ -523,7 +523,7 @@ func TestOrgEventstore_AddOrgMember(t *testing.T) { expectAggregateCreator(). expectPushEvents(0, errors.ThrowInternal(nil, "EVENT-S8WzW", "test"))}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{ Sequence: 4, @@ -553,7 +553,7 @@ func TestOrgEventstore_AddOrgMember(t *testing.T) { expectPushEvents(6, nil), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{ Sequence: 4, @@ -582,7 +582,7 @@ func TestOrgEventstore_AddOrgMember(t *testing.T) { expectPushEvents(0, errors.ThrowAlreadyExists(nil, "EVENT-yLTI6", "weiss nöd wie teste")), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{ Sequence: 4, @@ -616,7 +616,7 @@ func TestOrgEventstore_AddOrgMember(t *testing.T) { }, nil), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{ Sequence: 4, @@ -639,7 +639,7 @@ func TestOrgEventstore_AddOrgMember(t *testing.T) { expectPushEvents(0, errors.ThrowAlreadyExists(nil, "EVENT-yLTI6", "weiss nöd wie teste")), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{ Sequence: 4, @@ -697,7 +697,7 @@ func TestOrgEventstore_ChangeOrgMember(t *testing.T) { name: "no input member", fields: fields{Eventstore: newTestEventstore(t)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: nil, }, res: res{ @@ -725,7 +725,7 @@ func TestOrgEventstore_ChangeOrgMember(t *testing.T) { }, nil), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "hodor-org", Sequence: 5}, UserID: "hodor", @@ -757,7 +757,7 @@ func TestOrgEventstore_ChangeOrgMember(t *testing.T) { }, nil), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "hodor-org", Sequence: 5}, UserID: "hodor", @@ -790,7 +790,7 @@ func TestOrgEventstore_ChangeOrgMember(t *testing.T) { expectPushEvents(0, errors.ThrowInternal(nil, "PEVENT-3wqa2", "test")), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "hodor-org", Sequence: 5}, UserID: "hodor", @@ -823,7 +823,7 @@ func TestOrgEventstore_ChangeOrgMember(t *testing.T) { expectPushEvents(7, nil), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "hodor-org", Sequence: 5}, UserID: "hodor", @@ -880,7 +880,7 @@ func TestOrgEventstore_RemoveOrgMember(t *testing.T) { name: "no input member", fields: fields{Eventstore: newTestEventstore(t)}, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: nil, }, res: res{ @@ -907,7 +907,7 @@ func TestOrgEventstore_RemoveOrgMember(t *testing.T) { }, nil), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "hodor-org", Sequence: 5}, UserID: "hodor", @@ -939,7 +939,7 @@ func TestOrgEventstore_RemoveOrgMember(t *testing.T) { expectPushEvents(0, errors.ThrowInternal(nil, "PEVENT-3wqa2", "test")), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "hodor-org", Sequence: 5}, UserID: "hodor", @@ -970,7 +970,7 @@ func TestOrgEventstore_RemoveOrgMember(t *testing.T) { expectPushEvents(7, nil), }, args: args{ - ctx: auth.NewMockContext("user", "org"), + ctx: authz.NewMockContext("user", "org"), member: &org_model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "hodor-org", Sequence: 5}, UserID: "hodor", @@ -1057,7 +1057,7 @@ func TestChangesOrg(t *testing.T) { limit: 0, }, res: res{ - changes: &org_model.OrgChanges{Changes: []*org_model.OrgChange{&org_model.OrgChange{EventType: "", Sequence: 1, ModifierId: ""}}, LastSequence: 1}, + changes: &org_model.OrgChanges{Changes: []*org_model.OrgChange{{EventType: "", Sequence: 1, ModifierId: ""}}, LastSequence: 1}, org: &model.Org{Name: "MusterOrg"}, }, }, diff --git a/internal/org/repository/eventsourcing/org_iam_policy_test.go b/internal/org/repository/eventsourcing/org_iam_policy_test.go index 646a7e9c6e..f92dc2218a 100644 --- a/internal/org/repository/eventsourcing/org_iam_policy_test.go +++ b/internal/org/repository/eventsourcing/org_iam_policy_test.go @@ -2,11 +2,12 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" + "testing" + + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/org/repository/eventsourcing/model" - "testing" ) func TestOrgIamPolicyAddedAggregates(t *testing.T) { @@ -29,7 +30,7 @@ func TestOrgIamPolicyAddedAggregates(t *testing.T) { { name: "no policy error", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), }, res: res{ @@ -39,7 +40,7 @@ func TestOrgIamPolicyAddedAggregates(t *testing.T) { { name: "policy successful", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ @@ -99,7 +100,7 @@ func TestOrgIamPolicyChangedAggregates(t *testing.T) { { name: "no policy error", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), }, res: res{ @@ -109,7 +110,7 @@ func TestOrgIamPolicyChangedAggregates(t *testing.T) { { name: "policy successful", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ @@ -135,7 +136,7 @@ func TestOrgIamPolicyChangedAggregates(t *testing.T) { { name: "policy no changes", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ @@ -196,7 +197,7 @@ func TestOrgIamPolicyRemovedAggregates(t *testing.T) { { name: "policy successful", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ diff --git a/internal/org/repository/eventsourcing/org_member_test.go b/internal/org/repository/eventsourcing/org_member_test.go index 266ed0a778..9c5c009953 100644 --- a/internal/org/repository/eventsourcing/org_member_test.go +++ b/internal/org/repository/eventsourcing/org_member_test.go @@ -2,12 +2,12 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/org/repository/eventsourcing/model" "testing" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" + "github.com/caos/zitadel/internal/org/repository/eventsourcing/model" usr_model "github.com/caos/zitadel/internal/user/repository/eventsourcing/model" ) @@ -30,7 +30,7 @@ func TestOrgMemberAddedAggregate(t *testing.T) { name: "no member", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), member: nil, }, res: res{ @@ -41,7 +41,7 @@ func TestOrgMemberAddedAggregate(t *testing.T) { name: "member added sucessfully", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), member: &model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "asdf", Sequence: 234}, }, @@ -91,7 +91,7 @@ func TestOrgMemberChangedAggregate(t *testing.T) { name: "no member", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), member: nil, existingMember: &model.OrgMember{}, }, @@ -103,7 +103,7 @@ func TestOrgMemberChangedAggregate(t *testing.T) { name: "no existing member", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), existingMember: nil, member: &model.OrgMember{}, }, @@ -115,7 +115,7 @@ func TestOrgMemberChangedAggregate(t *testing.T) { name: "no changes", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), member: &model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "asdf", Sequence: 234}, }, @@ -131,7 +131,7 @@ func TestOrgMemberChangedAggregate(t *testing.T) { name: "with changes success", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), member: &model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "asdf", Sequence: 234}, Roles: []string{"asdf"}, @@ -186,7 +186,7 @@ func TestOrgMemberRemovedAggregate(t *testing.T) { name: "no member", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), member: nil, }, res: res{ @@ -197,7 +197,7 @@ func TestOrgMemberRemovedAggregate(t *testing.T) { name: "member added sucessfully", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), member: &model.OrgMember{ ObjectRoot: es_models.ObjectRoot{AggregateID: "asdf", Sequence: 234}, }, diff --git a/internal/org/repository/eventsourcing/org_test.go b/internal/org/repository/eventsourcing/org_test.go index 58e67f4f76..1bd8432132 100644 --- a/internal/org/repository/eventsourcing/org_test.go +++ b/internal/org/repository/eventsourcing/org_test.go @@ -2,13 +2,13 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/org/repository/eventsourcing/model" "testing" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" org_model "github.com/caos/zitadel/internal/org/model" + "github.com/caos/zitadel/internal/org/repository/eventsourcing/model" ) func Test_isReservedValidation(t *testing.T) { @@ -118,7 +118,7 @@ func Test_uniqueNameAggregate(t *testing.T) { { name: "no org name error", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: es_models.NewAggregateCreator("test"), orgName: "", }, @@ -130,7 +130,7 @@ func Test_uniqueNameAggregate(t *testing.T) { { name: "aggregate created", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: es_models.NewAggregateCreator("test"), orgName: "asdf", }, @@ -174,7 +174,7 @@ func Test_uniqueDomainAggregate(t *testing.T) { { name: "no org domain error", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: es_models.NewAggregateCreator("test"), orgDomain: "", }, @@ -186,7 +186,7 @@ func Test_uniqueDomainAggregate(t *testing.T) { { name: "aggregate created", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: es_models.NewAggregateCreator("test"), orgDomain: "asdf", }, @@ -230,7 +230,7 @@ func TestOrgReactivateAggregate(t *testing.T) { name: "correct", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ AggregateID: "orgID", @@ -244,7 +244,7 @@ func TestOrgReactivateAggregate(t *testing.T) { name: "already active error", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ AggregateID: "orgID", @@ -261,7 +261,7 @@ func TestOrgReactivateAggregate(t *testing.T) { name: "org nil error", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), org: nil, }, res: res{ @@ -304,7 +304,7 @@ func TestOrgDeactivateAggregate(t *testing.T) { name: "correct", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ AggregateID: "orgID", @@ -318,7 +318,7 @@ func TestOrgDeactivateAggregate(t *testing.T) { name: "already inactive error", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ AggregateID: "orgID", @@ -335,7 +335,7 @@ func TestOrgDeactivateAggregate(t *testing.T) { name: "org nil error", args: args{ aggCreator: es_models.NewAggregateCreator("test"), - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), org: nil, }, res: res{ @@ -379,7 +379,7 @@ func TestOrgUpdateAggregates(t *testing.T) { { name: "no existing org error", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), existing: nil, updated: &model.Org{}, @@ -392,7 +392,7 @@ func TestOrgUpdateAggregates(t *testing.T) { { name: "no updated org error", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), existing: &model.Org{}, updated: nil, @@ -405,7 +405,7 @@ func TestOrgUpdateAggregates(t *testing.T) { { name: "no changes", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), existing: &model.Org{}, updated: &model.Org{}, @@ -418,7 +418,7 @@ func TestOrgUpdateAggregates(t *testing.T) { { name: "name changed", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), existing: &model.Org{ ObjectRoot: es_models.ObjectRoot{ @@ -475,7 +475,7 @@ func TestOrgCreatedAggregates(t *testing.T) { { name: "no org error", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: nil, }, @@ -487,7 +487,7 @@ func TestOrgCreatedAggregates(t *testing.T) { { name: "org successful", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ @@ -505,7 +505,7 @@ func TestOrgCreatedAggregates(t *testing.T) { { name: "org with domain successful", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ @@ -513,7 +513,7 @@ func TestOrgCreatedAggregates(t *testing.T) { Sequence: 5, }, Name: "caos", - Domains: []*model.OrgDomain{&model.OrgDomain{ + Domains: []*model.OrgDomain{{ Domain: "caos.ch", }}, }, @@ -526,7 +526,7 @@ func TestOrgCreatedAggregates(t *testing.T) { { name: "no name error", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ @@ -577,7 +577,7 @@ func TestOrgDomainAddedAggregates(t *testing.T) { { name: "no domain error", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), }, res: res{ @@ -587,7 +587,7 @@ func TestOrgDomainAddedAggregates(t *testing.T) { { name: "domain successful", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ @@ -646,7 +646,7 @@ func TestOrgDomainVerifiedAggregates(t *testing.T) { { name: "no domain error", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), }, res: res{ @@ -656,7 +656,7 @@ func TestOrgDomainVerifiedAggregates(t *testing.T) { { name: "domain successful", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ @@ -711,7 +711,7 @@ func TestOrgDomainSetPrimaryAggregates(t *testing.T) { { name: "no domain error", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), }, res: res{ @@ -721,7 +721,7 @@ func TestOrgDomainSetPrimaryAggregates(t *testing.T) { { name: "domain successful", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ @@ -779,7 +779,7 @@ func TestOrgDomainRemovedAggregates(t *testing.T) { { name: "no domain error", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), }, res: res{ @@ -790,7 +790,7 @@ func TestOrgDomainRemovedAggregates(t *testing.T) { { name: "domain successful", args: args{ - ctx: auth.NewMockContext("org", "user"), + ctx: authz.NewMockContext("org", "user"), aggCreator: es_models.NewAggregateCreator("test"), org: &model.Org{ ObjectRoot: es_models.ObjectRoot{ diff --git a/internal/policy/repository/eventsourcing/eventstore_age.go b/internal/policy/repository/eventsourcing/eventstore_age.go index 127ce0cee2..8addfacbec 100644 --- a/internal/policy/repository/eventsourcing/eventstore_age.go +++ b/internal/policy/repository/eventsourcing/eventstore_age.go @@ -2,7 +2,8 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" es_sdk "github.com/caos/zitadel/internal/eventstore/sdk" pol_model "github.com/caos/zitadel/internal/policy/model" @@ -25,7 +26,7 @@ func (es *PolicyEventstore) GetPasswordAgePolicy(ctx context.Context, id string) } func (es *PolicyEventstore) CreatePasswordAgePolicy(ctx context.Context, policy *pol_model.PasswordAgePolicy) (*pol_model.PasswordAgePolicy, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) existingPolicy, err := es.GetPasswordAgePolicy(ctx, ctxData.OrgID) if err != nil && !caos_errs.IsNotFound(err) { return nil, err @@ -53,7 +54,7 @@ func (es *PolicyEventstore) CreatePasswordAgePolicy(ctx context.Context, policy } func (es *PolicyEventstore) UpdatePasswordAgePolicy(ctx context.Context, policy *pol_model.PasswordAgePolicy) (*pol_model.PasswordAgePolicy, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) existingPolicy, err := es.GetPasswordAgePolicy(ctx, ctxData.OrgID) if err != nil { return nil, err diff --git a/internal/policy/repository/eventsourcing/eventstore_age_test.go b/internal/policy/repository/eventsourcing/eventstore_age_test.go index daa029298c..93751888c6 100644 --- a/internal/policy/repository/eventsourcing/eventstore_age_test.go +++ b/internal/policy/repository/eventsourcing/eventstore_age_test.go @@ -4,11 +4,12 @@ import ( "context" "testing" - "github.com/caos/zitadel/internal/api/auth" + "github.com/golang/mock/gomock" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/policy/model" - "github.com/golang/mock/gomock" ) func TestGetPasswordAgePolicy(t *testing.T) { @@ -84,7 +85,7 @@ func TestCreatePasswordAgePolicy(t *testing.T) { name: "create policy, ok", args: args{ es: GetMockPasswordAgePolicyNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &model.PasswordAgePolicy{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID1", Sequence: 2}, Description: "Name"}, }, res: res{ @@ -130,7 +131,7 @@ func TestUpdatePasswordAgePolicy(t *testing.T) { name: "update policy, ok", args: args{ es: GetMockPasswordAgePolicy(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.PasswordAgePolicy{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Description: "NameNew"}, }, res: res{ @@ -141,7 +142,7 @@ func TestUpdatePasswordAgePolicy(t *testing.T) { name: "existing policy not found", args: args{ es: GetMockPasswordAgePolicyNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.PasswordAgePolicy{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Description: "NameNew"}, }, res: res{ diff --git a/internal/policy/repository/eventsourcing/eventstore_complexity.go b/internal/policy/repository/eventsourcing/eventstore_complexity.go index c3ba31d27d..d8b2465e66 100644 --- a/internal/policy/repository/eventsourcing/eventstore_complexity.go +++ b/internal/policy/repository/eventsourcing/eventstore_complexity.go @@ -2,7 +2,8 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" es_sdk "github.com/caos/zitadel/internal/eventstore/sdk" pol_model "github.com/caos/zitadel/internal/policy/model" @@ -28,7 +29,7 @@ func (es *PolicyEventstore) GetPasswordComplexityPolicy(ctx context.Context, id } func (es *PolicyEventstore) CreatePasswordComplexityPolicy(ctx context.Context, policy *pol_model.PasswordComplexityPolicy) (*pol_model.PasswordComplexityPolicy, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) existingPolicy, err := es.GetPasswordComplexityPolicy(ctx, ctxData.OrgID) if err != nil && !caos_errs.IsNotFound(err) { return nil, err @@ -56,7 +57,7 @@ func (es *PolicyEventstore) CreatePasswordComplexityPolicy(ctx context.Context, } func (es *PolicyEventstore) UpdatePasswordComplexityPolicy(ctx context.Context, policy *pol_model.PasswordComplexityPolicy) (*pol_model.PasswordComplexityPolicy, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) existingPolicy, err := es.GetPasswordComplexityPolicy(ctx, ctxData.OrgID) if err != nil { return nil, err diff --git a/internal/policy/repository/eventsourcing/eventstore_complexity_test.go b/internal/policy/repository/eventsourcing/eventstore_complexity_test.go index 5c0cc83999..e03f24c6b1 100644 --- a/internal/policy/repository/eventsourcing/eventstore_complexity_test.go +++ b/internal/policy/repository/eventsourcing/eventstore_complexity_test.go @@ -4,11 +4,12 @@ import ( "context" "testing" - "github.com/caos/zitadel/internal/api/auth" + "github.com/golang/mock/gomock" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/policy/model" - "github.com/golang/mock/gomock" ) func TestGetPasswordComplexityPolicy(t *testing.T) { @@ -84,7 +85,7 @@ func TestCreatePasswordComplexityPolicy(t *testing.T) { name: "create policy, ok", args: args{ es: GetMockPasswordComplexityPolicyNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &model.PasswordComplexityPolicy{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID1", Sequence: 2}, Description: "Name"}, }, res: res{ @@ -130,7 +131,7 @@ func TestUpdatePasswordComplexityPolicy(t *testing.T) { name: "update policy, ok", args: args{ es: GetMockPasswordComplexityPolicy(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.PasswordComplexityPolicy{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Description: "NameNew"}, }, res: res{ @@ -141,7 +142,7 @@ func TestUpdatePasswordComplexityPolicy(t *testing.T) { name: "existing policy not found", args: args{ es: GetMockPasswordComplexityPolicyNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.PasswordComplexityPolicy{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Description: "NameNew"}, }, res: res{ diff --git a/internal/policy/repository/eventsourcing/eventstore_lockout.go b/internal/policy/repository/eventsourcing/eventstore_lockout.go index 50b0105f6b..b54af4753c 100644 --- a/internal/policy/repository/eventsourcing/eventstore_lockout.go +++ b/internal/policy/repository/eventsourcing/eventstore_lockout.go @@ -2,7 +2,8 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" es_sdk "github.com/caos/zitadel/internal/eventstore/sdk" pol_model "github.com/caos/zitadel/internal/policy/model" @@ -25,7 +26,7 @@ func (es *PolicyEventstore) GetPasswordLockoutPolicy(ctx context.Context, id str } func (es *PolicyEventstore) CreatePasswordLockoutPolicy(ctx context.Context, policy *pol_model.PasswordLockoutPolicy) (*pol_model.PasswordLockoutPolicy, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) existingPolicy, err := es.GetPasswordLockoutPolicy(ctx, ctxData.OrgID) if err != nil && !caos_errs.IsNotFound(err) { return nil, err @@ -53,7 +54,7 @@ func (es *PolicyEventstore) CreatePasswordLockoutPolicy(ctx context.Context, pol } func (es *PolicyEventstore) UpdatePasswordLockoutPolicy(ctx context.Context, policy *pol_model.PasswordLockoutPolicy) (*pol_model.PasswordLockoutPolicy, error) { - ctxData := auth.GetCtxData(ctx) + ctxData := authz.GetCtxData(ctx) existingPolicy, err := es.GetPasswordLockoutPolicy(ctx, ctxData.OrgID) if err != nil { return nil, err diff --git a/internal/policy/repository/eventsourcing/eventstore_lockout_test.go b/internal/policy/repository/eventsourcing/eventstore_lockout_test.go index 581aef799e..df77cef4da 100644 --- a/internal/policy/repository/eventsourcing/eventstore_lockout_test.go +++ b/internal/policy/repository/eventsourcing/eventstore_lockout_test.go @@ -4,11 +4,12 @@ import ( "context" "testing" - "github.com/caos/zitadel/internal/api/auth" + "github.com/golang/mock/gomock" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/policy/model" - "github.com/golang/mock/gomock" ) func TestGetPasswordLockoutPolicy(t *testing.T) { @@ -84,7 +85,7 @@ func TestCreatePasswordLockoutPolicy(t *testing.T) { name: "create policy, ok", args: args{ es: GetMockPasswordLockoutPolicyNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &model.PasswordLockoutPolicy{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID1", Sequence: 2}, Description: "Name"}, }, res: res{ @@ -130,7 +131,7 @@ func TestUpdatePasswordLockoutPolicy(t *testing.T) { name: "update policy, ok", args: args{ es: GetMockPasswordLockoutPolicy(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.PasswordLockoutPolicy{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Description: "NameNew"}, }, res: res{ @@ -141,7 +142,7 @@ func TestUpdatePasswordLockoutPolicy(t *testing.T) { name: "existing policy not found", args: args{ es: GetMockPasswordLockoutPolicyNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.PasswordLockoutPolicy{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Description: "NameNew"}, }, res: res{ diff --git a/internal/policy/repository/eventsourcing/policy_age_test.go b/internal/policy/repository/eventsourcing/policy_age_test.go index ea456572ed..3adbbadf49 100644 --- a/internal/policy/repository/eventsourcing/policy_age_test.go +++ b/internal/policy/repository/eventsourcing/policy_age_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/eventstore/models" policy_model "github.com/caos/zitadel/internal/policy/model" @@ -81,7 +81,7 @@ func TestPasswordAgePolicyAggregate(t *testing.T) { { name: "create aggregate", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: models.NewAggregateCreator("Test"), policy: &PasswordAgePolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Description: "Test"}, }, @@ -93,7 +93,7 @@ func TestPasswordAgePolicyAggregate(t *testing.T) { { name: "policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: models.NewAggregateCreator("Test"), }, res: res{ @@ -142,7 +142,7 @@ func TestPasswordAgePolicyCreateAggregate(t *testing.T) { { name: "policy update aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &PasswordAgePolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "PolicyName", State: int32(policy_model.PolicyStateActive)}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -154,7 +154,7 @@ func TestPasswordAgePolicyCreateAggregate(t *testing.T) { { name: "new policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -207,7 +207,7 @@ func TestPasswordAgePolicyUpdateAggregate(t *testing.T) { { name: "policy update aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &PasswordAgePolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "PolicyName", State: int32(policy_model.PolicyStateActive)}, new: &PasswordAgePolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "PolicyName_Changed", State: int32(policy_model.PolicyStateActive)}, aggCreator: models.NewAggregateCreator("Test"), @@ -220,7 +220,7 @@ func TestPasswordAgePolicyUpdateAggregate(t *testing.T) { { name: "existing policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -234,7 +234,7 @@ func TestPasswordAgePolicyUpdateAggregate(t *testing.T) { { name: "new policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &PasswordAgePolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "ProjectName", State: int32(policy_model.PolicyStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), diff --git a/internal/policy/repository/eventsourcing/policy_complexity_test.go b/internal/policy/repository/eventsourcing/policy_complexity_test.go index 7a53cdda0a..27e33a6229 100644 --- a/internal/policy/repository/eventsourcing/policy_complexity_test.go +++ b/internal/policy/repository/eventsourcing/policy_complexity_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/eventstore/models" policy_model "github.com/caos/zitadel/internal/policy/model" @@ -81,7 +81,7 @@ func TestPasswordComplexityPolicyAggregate(t *testing.T) { { name: "create aggregate", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: models.NewAggregateCreator("Test"), policy: &PasswordComplexityPolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Description: "Test"}, }, @@ -93,7 +93,7 @@ func TestPasswordComplexityPolicyAggregate(t *testing.T) { { name: "policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: models.NewAggregateCreator("Test"), }, res: res{ @@ -142,7 +142,7 @@ func TestPasswordComplexityPolicyCreateAggregate(t *testing.T) { { name: "policy update aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &PasswordComplexityPolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "PolicyName", State: int32(policy_model.PolicyStateActive)}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -154,7 +154,7 @@ func TestPasswordComplexityPolicyCreateAggregate(t *testing.T) { { name: "new policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -207,7 +207,7 @@ func TestPasswordComplexityPolicyUpdateAggregate(t *testing.T) { { name: "policy update aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &PasswordComplexityPolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "PolicyName", State: int32(policy_model.PolicyStateActive)}, new: &PasswordComplexityPolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "PolicyName_Changed", State: int32(policy_model.PolicyStateActive)}, aggCreator: models.NewAggregateCreator("Test"), @@ -220,7 +220,7 @@ func TestPasswordComplexityPolicyUpdateAggregate(t *testing.T) { { name: "existing policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -234,7 +234,7 @@ func TestPasswordComplexityPolicyUpdateAggregate(t *testing.T) { { name: "new policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &PasswordComplexityPolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "ProjectName", State: int32(policy_model.PolicyStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), diff --git a/internal/policy/repository/eventsourcing/policy_lockout_test.go b/internal/policy/repository/eventsourcing/policy_lockout_test.go index 542cc8dde3..6d2b48072b 100644 --- a/internal/policy/repository/eventsourcing/policy_lockout_test.go +++ b/internal/policy/repository/eventsourcing/policy_lockout_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/eventstore/models" policy_model "github.com/caos/zitadel/internal/policy/model" @@ -81,7 +81,7 @@ func TestPasswordLockoutPolicyAggregate(t *testing.T) { { name: "create aggregate", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: models.NewAggregateCreator("Test"), policy: &PasswordLockoutPolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Description: "Test"}, }, @@ -93,7 +93,7 @@ func TestPasswordLockoutPolicyAggregate(t *testing.T) { { name: "policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: models.NewAggregateCreator("Test"), }, res: res{ @@ -142,7 +142,7 @@ func TestPasswordLockoutPolicyCreateAggregate(t *testing.T) { { name: "policy update aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &PasswordLockoutPolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "PolicyName", State: int32(policy_model.PolicyStateActive)}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -154,7 +154,7 @@ func TestPasswordLockoutPolicyCreateAggregate(t *testing.T) { { name: "new policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -207,7 +207,7 @@ func TestPasswordLockoutPolicyUpdateAggregate(t *testing.T) { { name: "policy update aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &PasswordLockoutPolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "PolicyName", State: int32(policy_model.PolicyStateActive)}, new: &PasswordLockoutPolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "PolicyName_Changed", State: int32(policy_model.PolicyStateActive)}, aggCreator: models.NewAggregateCreator("Test"), @@ -220,7 +220,7 @@ func TestPasswordLockoutPolicyUpdateAggregate(t *testing.T) { { name: "existing policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -234,7 +234,7 @@ func TestPasswordLockoutPolicyUpdateAggregate(t *testing.T) { { name: "new policy nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &PasswordLockoutPolicy{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Description: "ProjectName", State: int32(policy_model.PolicyStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), diff --git a/internal/project/repository/eventsourcing/eventstore.go b/internal/project/repository/eventsourcing/eventstore.go index 04000f73fa..11257c3997 100644 --- a/internal/project/repository/eventsourcing/eventstore.go +++ b/internal/project/repository/eventsourcing/eventstore.go @@ -7,20 +7,20 @@ import ( "strings" "github.com/caos/logging" - "github.com/caos/zitadel/internal/api/auth" - "github.com/caos/zitadel/internal/cache/config" - sd "github.com/caos/zitadel/internal/config/systemdefaults" - "github.com/caos/zitadel/internal/errors" - es_models "github.com/caos/zitadel/internal/eventstore/models" - "github.com/caos/zitadel/internal/project/repository/eventsourcing/model" "github.com/golang/protobuf/ptypes" + "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/internal/cache/config" + sd "github.com/caos/zitadel/internal/config/systemdefaults" "github.com/caos/zitadel/internal/crypto" + "github.com/caos/zitadel/internal/errors" caos_errs "github.com/caos/zitadel/internal/errors" es_int "github.com/caos/zitadel/internal/eventstore" + es_models "github.com/caos/zitadel/internal/eventstore/models" es_sdk "github.com/caos/zitadel/internal/eventstore/sdk" "github.com/caos/zitadel/internal/id" proj_model "github.com/caos/zitadel/internal/project/model" + "github.com/caos/zitadel/internal/project/repository/eventsourcing/model" ) const ( @@ -91,7 +91,7 @@ func (es *ProjectEventstore) CreateProject(ctx context.Context, project *proj_mo project.State = proj_model.ProjectStateActive repoProject := model.ProjectFromModel(project) member := &model.ProjectMember{ - UserID: auth.GetCtxData(ctx).UserID, + UserID: authz.GetCtxData(ctx).UserID, Roles: []string{projectOwnerRole}, } diff --git a/internal/project/repository/eventsourcing/eventstore_test.go b/internal/project/repository/eventsourcing/eventstore_test.go index c8906eee0a..03d0c55f42 100644 --- a/internal/project/repository/eventsourcing/eventstore_test.go +++ b/internal/project/repository/eventsourcing/eventstore_test.go @@ -5,7 +5,7 @@ import ( "encoding/json" "testing" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/project/model" @@ -96,7 +96,7 @@ func TestCreateProject(t *testing.T) { name: "create project, ok", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), project: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "Name"}, }, res: res{ @@ -107,7 +107,7 @@ func TestCreateProject(t *testing.T) { name: "create project no name", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), project: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -154,7 +154,7 @@ func TestUpdateProject(t *testing.T) { name: "update project, ok", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "NameNew"}, }, res: res{ @@ -165,7 +165,7 @@ func TestUpdateProject(t *testing.T) { name: "update project no name", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: ""}, }, res: res{ @@ -177,7 +177,7 @@ func TestUpdateProject(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "NameNew"}, }, res: res{ @@ -225,7 +225,7 @@ func TestDeactivateProject(t *testing.T) { name: "deactivate project, ok", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "Name", State: model.ProjectStateActive}, }, res: res{ @@ -236,7 +236,7 @@ func TestDeactivateProject(t *testing.T) { name: "deactivate project with inactive state", args: args{ es: GetMockManipulateInactiveProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "Name", State: model.ProjectStateInactive}, }, res: res{ @@ -248,7 +248,7 @@ func TestDeactivateProject(t *testing.T) { name: "existing not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "Name", State: model.ProjectStateActive}, }, res: res{ @@ -296,7 +296,7 @@ func TestReactivateProject(t *testing.T) { name: "reactivate project, ok", args: args{ es: GetMockManipulateInactiveProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "Name", State: model.ProjectStateInactive}, }, res: res{ @@ -307,7 +307,7 @@ func TestReactivateProject(t *testing.T) { name: "reactivate project with inactive state", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "Name", State: model.ProjectStateActive}, }, res: res{ @@ -319,7 +319,7 @@ func TestReactivateProject(t *testing.T) { name: "existing not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "Name", State: model.ProjectStateActive}, }, res: res{ @@ -436,7 +436,7 @@ func TestAddProjectMember(t *testing.T) { name: "add project member, ok", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"Roles"}}, }, res: res{ @@ -447,7 +447,7 @@ func TestAddProjectMember(t *testing.T) { name: "no userid", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Roles: []string{"Roles"}}, }, res: res{ @@ -459,7 +459,7 @@ func TestAddProjectMember(t *testing.T) { name: "no roles", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID"}, }, res: res{ @@ -471,7 +471,7 @@ func TestAddProjectMember(t *testing.T) { name: "member already existing", args: args{ es: GetMockManipulateProjectWithMember(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"Roles"}}, }, res: res{ @@ -483,7 +483,7 @@ func TestAddProjectMember(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"Roles"}}, }, res: res{ @@ -533,7 +533,7 @@ func TestChangeProjectMember(t *testing.T) { name: "add project member, ok", args: args{ es: GetMockManipulateProjectWithMember(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"ChangeRoles"}}, }, res: res{ @@ -544,7 +544,7 @@ func TestChangeProjectMember(t *testing.T) { name: "no userid", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Roles: []string{"ChangeRoles"}}, }, res: res{ @@ -556,7 +556,7 @@ func TestChangeProjectMember(t *testing.T) { name: "no roles", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID"}, }, res: res{ @@ -568,7 +568,7 @@ func TestChangeProjectMember(t *testing.T) { name: "member not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"Roles"}}, }, res: res{ @@ -580,7 +580,7 @@ func TestChangeProjectMember(t *testing.T) { name: "existing not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"ChangeRoles"}}, }, res: res{ @@ -631,7 +631,7 @@ func TestRemoveProjectMember(t *testing.T) { name: "remove project member, ok", args: args{ es: GetMockManipulateProjectWithMember(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "Name", @@ -647,7 +647,7 @@ func TestRemoveProjectMember(t *testing.T) { name: "no userid", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "Name", @@ -664,7 +664,7 @@ func TestRemoveProjectMember(t *testing.T) { name: "member not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Name: "Name", @@ -680,7 +680,7 @@ func TestRemoveProjectMember(t *testing.T) { name: "existing not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, UserID: "UserID", Roles: []string{"ChangeRoles"}}, }, res: res{ @@ -724,7 +724,7 @@ func TestAddProjectRole(t *testing.T) { name: "add project role, ok", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), roles: []*model.ProjectRole{&model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Key: "Key", DisplayName: "DisplayName", Group: "Group"}}, }, res: res{ @@ -735,7 +735,7 @@ func TestAddProjectRole(t *testing.T) { name: "no key", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), roles: []*model.ProjectRole{&model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, DisplayName: "DisplayName", Group: "Group"}}, }, res: res{ @@ -747,7 +747,7 @@ func TestAddProjectRole(t *testing.T) { name: "role already existing", args: args{ es: GetMockManipulateProjectWithRole(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), roles: []*model.ProjectRole{&model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Key: "Key", DisplayName: "DisplayName", Group: "Group"}}, }, res: res{ @@ -759,7 +759,7 @@ func TestAddProjectRole(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), roles: []*model.ProjectRole{&model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Key: "Key", DisplayName: "DisplayName", Group: "Group"}}, }, res: res{ @@ -806,7 +806,7 @@ func TestChangeProjectRole(t *testing.T) { name: "change project role, ok", args: args{ es: GetMockManipulateProjectWithRole(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), role: &model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Key: "Key", DisplayName: "DisplayNameChanged", Group: "Group"}, }, res: res{ @@ -817,7 +817,7 @@ func TestChangeProjectRole(t *testing.T) { name: "no key", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), role: &model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, DisplayName: "DisplayName", Group: "Group"}, }, res: res{ @@ -829,7 +829,7 @@ func TestChangeProjectRole(t *testing.T) { name: "role not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), role: &model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Key: "Key", DisplayName: "DisplayName", Group: "Group"}, }, res: res{ @@ -841,7 +841,7 @@ func TestChangeProjectRole(t *testing.T) { name: "existing not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), role: &model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Key: "Key", DisplayName: "DisplayName", Group: "Group"}, }, res: res{ @@ -890,7 +890,7 @@ func TestRemoveProjectRole(t *testing.T) { name: "remove project role, ok", args: args{ es: GetMockManipulateProjectWithRole(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), role: &model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Key: "Key"}, }, }, @@ -898,7 +898,7 @@ func TestRemoveProjectRole(t *testing.T) { name: "no key", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), role: &model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, DisplayName: "DisplayName", Group: "Group"}, }, res: res{ @@ -910,7 +910,7 @@ func TestRemoveProjectRole(t *testing.T) { name: "role not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), role: &model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Key: "Key", DisplayName: "DisplayName", Group: "Group"}, }, res: res{ @@ -922,7 +922,7 @@ func TestRemoveProjectRole(t *testing.T) { name: "existing not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), role: &model.ProjectRole{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Key: "Key", DisplayName: "DisplayName", Group: "Group"}, }, res: res{ @@ -1036,7 +1036,7 @@ func TestAddApplication(t *testing.T) { name: "add app, ok", args: args{ es: GetMockManipulateProjectWithPw(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "Name", @@ -1060,7 +1060,7 @@ func TestAddApplication(t *testing.T) { name: "invalid app", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1072,7 +1072,7 @@ func TestAddApplication(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "Name", @@ -1132,7 +1132,7 @@ func TestChangeApp(t *testing.T) { name: "change app, ok", args: args{ es: GetMockManipulateProjectWithOIDCApp(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "NameChanged", @@ -1153,7 +1153,7 @@ func TestChangeApp(t *testing.T) { name: "invalid app", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", }, @@ -1167,7 +1167,7 @@ func TestChangeApp(t *testing.T) { name: "app not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "Name", @@ -1186,7 +1186,7 @@ func TestChangeApp(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "Name", @@ -1242,7 +1242,7 @@ func TestRemoveApp(t *testing.T) { name: "remove app, ok", args: args{ es: GetMockManipulateProjectWithOIDCApp(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", }, @@ -1252,7 +1252,7 @@ func TestRemoveApp(t *testing.T) { name: "no appID", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1264,7 +1264,7 @@ func TestRemoveApp(t *testing.T) { name: "app not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", }, @@ -1278,7 +1278,7 @@ func TestRemoveApp(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", }, @@ -1324,7 +1324,7 @@ func TestDeactivateApp(t *testing.T) { name: "deactivate, ok", args: args{ es: GetMockManipulateProjectWithOIDCApp(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "Name", @@ -1346,7 +1346,7 @@ func TestDeactivateApp(t *testing.T) { name: "no app id", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1358,7 +1358,7 @@ func TestDeactivateApp(t *testing.T) { name: "app not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "Name", @@ -1377,7 +1377,7 @@ func TestDeactivateApp(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "Name", @@ -1434,7 +1434,7 @@ func TestReactivateApp(t *testing.T) { name: "reactivate, ok", args: args{ es: GetMockManipulateProjectWithOIDCApp(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "Name", @@ -1456,7 +1456,7 @@ func TestReactivateApp(t *testing.T) { name: "no app id", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1468,7 +1468,7 @@ func TestReactivateApp(t *testing.T) { name: "app not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "Name", @@ -1487,7 +1487,7 @@ func TestReactivateApp(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), app: &model.Application{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, AppID: "AppID", Name: "Name", @@ -1544,7 +1544,7 @@ func TestChangeOIDCConfig(t *testing.T) { name: "change oidc config, ok", args: args{ es: GetMockManipulateProjectWithOIDCApp(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), config: &model.OIDCConfig{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 0}, AppID: "AppID", @@ -1565,7 +1565,7 @@ func TestChangeOIDCConfig(t *testing.T) { name: "invalid config", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), config: &model.OIDCConfig{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 0}, AppID: "AppID", @@ -1581,7 +1581,7 @@ func TestChangeOIDCConfig(t *testing.T) { name: "app is not oidc", args: args{ es: GetMockManipulateProjectWithSAMLApp(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), config: &model.OIDCConfig{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 0}, AppID: "AppID", @@ -1598,7 +1598,7 @@ func TestChangeOIDCConfig(t *testing.T) { name: "app not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), config: &model.OIDCConfig{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 0}, AppID: "AppID", @@ -1615,7 +1615,7 @@ func TestChangeOIDCConfig(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), config: &model.OIDCConfig{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 0}, AppID: "AppID", @@ -1670,7 +1670,7 @@ func TestChangeOIDCConfigSecret(t *testing.T) { name: "change oidc config secret, ok", args: args{ es: GetMockManipulateProjectWithOIDCApp(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), config: &model.OIDCConfig{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 0}, AppID: "AppID", @@ -1689,7 +1689,7 @@ func TestChangeOIDCConfigSecret(t *testing.T) { name: "no appID", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), config: &model.OIDCConfig{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 0}, AppID: "AppID", @@ -1704,7 +1704,7 @@ func TestChangeOIDCConfigSecret(t *testing.T) { name: "app is not oidc", args: args{ es: GetMockManipulateProjectWithSAMLApp(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), config: &model.OIDCConfig{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 0}, AppID: "AppID", @@ -1719,7 +1719,7 @@ func TestChangeOIDCConfigSecret(t *testing.T) { name: "app not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), config: &model.OIDCConfig{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 0}, AppID: "AppID", @@ -1734,7 +1734,7 @@ func TestChangeOIDCConfigSecret(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), config: &model.OIDCConfig{ ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 0}, AppID: "AppID", @@ -1858,7 +1858,7 @@ func TestAddProjectGrant(t *testing.T) { name: "add grant, ok", args: args{ es: GetMockManipulateProjectWithRole(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", GrantedOrgID: "GrantedOrgID", @@ -1877,7 +1877,7 @@ func TestAddProjectGrant(t *testing.T) { name: "invalid grant", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", }, @@ -1891,7 +1891,7 @@ func TestAddProjectGrant(t *testing.T) { name: "grant for org already exists", args: args{ es: GetMockManipulateProjectWithGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", GrantedOrgID: "GrantedOrgID", @@ -1906,7 +1906,7 @@ func TestAddProjectGrant(t *testing.T) { name: "role not existing on project", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", GrantedOrgID: "GrantedOrgID", @@ -1922,7 +1922,7 @@ func TestAddProjectGrant(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", GrantedOrgID: "GrantedOrgID", @@ -1969,7 +1969,7 @@ func TestRemoveProjectGrant(t *testing.T) { name: "remove app, ok", args: args{ es: GetMockManipulateProjectWithGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", }, @@ -1979,7 +1979,7 @@ func TestRemoveProjectGrant(t *testing.T) { name: "no grantID", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}}, }, res: res{ @@ -1991,7 +1991,7 @@ func TestRemoveProjectGrant(t *testing.T) { name: "grant not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", }, @@ -2005,7 +2005,7 @@ func TestRemoveProjectGrant(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", }, @@ -2051,7 +2051,7 @@ func TestDeactivateProjectGrant(t *testing.T) { name: "deactivate, ok", args: args{ es: GetMockManipulateProjectWithGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", }, @@ -2067,7 +2067,7 @@ func TestDeactivateProjectGrant(t *testing.T) { name: "no grant id", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}}, }, res: res{ @@ -2079,7 +2079,7 @@ func TestDeactivateProjectGrant(t *testing.T) { name: "grant not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", }, @@ -2093,7 +2093,7 @@ func TestDeactivateProjectGrant(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", }, @@ -2145,7 +2145,7 @@ func TestReactivateProjectGrant(t *testing.T) { name: "reactivate, ok", args: args{ es: GetMockManipulateProjectWithGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", }, @@ -2161,7 +2161,7 @@ func TestReactivateProjectGrant(t *testing.T) { name: "no grant id", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}}, }, res: res{ @@ -2173,7 +2173,7 @@ func TestReactivateProjectGrant(t *testing.T) { name: "grant not existing", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", }, @@ -2187,7 +2187,7 @@ func TestReactivateProjectGrant(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.ProjectGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", }, @@ -2309,7 +2309,7 @@ func TestAddProjectGrantMember(t *testing.T) { name: "add project grant member", args: args{ es: GetMockManipulateProjectWithGrantExistingRole(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", UserID: "UserID", @@ -2328,7 +2328,7 @@ func TestAddProjectGrantMember(t *testing.T) { name: "invalid member", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, Roles: []string{"Role"}, }, @@ -2342,7 +2342,7 @@ func TestAddProjectGrantMember(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", UserID: "UserID", @@ -2358,7 +2358,7 @@ func TestAddProjectGrantMember(t *testing.T) { name: "member already existing", args: args{ es: GetMockManipulateProjectWithGrantMember(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", UserID: "UserID", @@ -2409,7 +2409,7 @@ func TestChangeProjectGrantMember(t *testing.T) { name: "change project grant member", args: args{ es: GetMockManipulateProjectWithGrantMember(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", UserID: "UserID", @@ -2428,7 +2428,7 @@ func TestChangeProjectGrantMember(t *testing.T) { name: "invalid member", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, Roles: []string{"Role"}, }, @@ -2442,7 +2442,7 @@ func TestChangeProjectGrantMember(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", UserID: "UserID", @@ -2458,7 +2458,7 @@ func TestChangeProjectGrantMember(t *testing.T) { name: "user not member of grant", args: args{ es: GetMockManipulateProjectWithGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", UserID: "UserID", @@ -2508,7 +2508,7 @@ func TestRemoveProjectGrantMember(t *testing.T) { name: "remove project grant member", args: args{ es: GetMockManipulateProjectWithGrantMember(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", UserID: "UserID", @@ -2520,7 +2520,7 @@ func TestRemoveProjectGrantMember(t *testing.T) { name: "invalid member", args: args{ es: GetMockManipulateProject(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, Roles: []string{"Role"}, }, @@ -2534,7 +2534,7 @@ func TestRemoveProjectGrantMember(t *testing.T) { name: "existing project not found", args: args{ es: GetMockManipulateProjectNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", UserID: "UserID", @@ -2550,7 +2550,7 @@ func TestRemoveProjectGrantMember(t *testing.T) { name: "user not member of grant", args: args{ es: GetMockManipulateProjectWithGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), member: &model.ProjectGrantMember{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}, GrantID: "GrantID", UserID: "UserID", diff --git a/internal/project/repository/eventsourcing/project_test.go b/internal/project/repository/eventsourcing/project_test.go index 47822415e5..a2248edf91 100644 --- a/internal/project/repository/eventsourcing/project_test.go +++ b/internal/project/repository/eventsourcing/project_test.go @@ -2,14 +2,14 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/crypto" - "github.com/caos/zitadel/internal/project/repository/eventsourcing/model" "testing" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" + "github.com/caos/zitadel/internal/crypto" caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/eventstore/models" proj_model "github.com/caos/zitadel/internal/project/model" + "github.com/caos/zitadel/internal/project/repository/eventsourcing/model" ) func TestProjectByIDQuery(t *testing.T) { @@ -120,7 +120,7 @@ func TestProjectAggregate(t *testing.T) { { name: "create aggregate", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: models.NewAggregateCreator("Test"), project: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, @@ -132,7 +132,7 @@ func TestProjectAggregate(t *testing.T) { { name: "project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), aggCreator: models.NewAggregateCreator("Test"), }, res: res{ @@ -181,7 +181,7 @@ func TestProjectCreateAggregate(t *testing.T) { { name: "project update aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, member: &model.ProjectMember{UserID: "UserID"}, aggCreator: models.NewAggregateCreator("Test"), @@ -194,7 +194,7 @@ func TestProjectCreateAggregate(t *testing.T) { { name: "new project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: nil, member: &model.ProjectMember{UserID: "UserID"}, aggCreator: models.NewAggregateCreator("Test"), @@ -207,7 +207,7 @@ func TestProjectCreateAggregate(t *testing.T) { { name: "new member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, member: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -227,7 +227,7 @@ func TestProjectCreateAggregate(t *testing.T) { } if !tt.res.wantErr { - for i, _ := range agg.Events { + for i := range agg.Events { if !tt.res.wantErr && agg.Events[i].Type != tt.res.eventType[i] { t.Errorf("got wrong event type: expected: %v, actual: %v ", tt.res.eventType, agg.Events[i].Type.String()) } @@ -265,7 +265,7 @@ func TestProjectUpdateAggregate(t *testing.T) { { name: "project update aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName_Changed", State: int32(proj_model.ProjectStateActive)}, aggCreator: models.NewAggregateCreator("Test"), @@ -278,7 +278,7 @@ func TestProjectUpdateAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -292,7 +292,7 @@ func TestProjectUpdateAggregate(t *testing.T) { { name: "new project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -345,7 +345,7 @@ func TestProjectDeactivateAggregate(t *testing.T) { { name: "project deactivate aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -357,7 +357,7 @@ func TestProjectDeactivateAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -406,7 +406,7 @@ func TestProjectReactivateAggregate(t *testing.T) { { name: "project reactivate aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateInactive)}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -418,7 +418,7 @@ func TestProjectReactivateAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -468,7 +468,7 @@ func TestProjectMemberAddedAggregate(t *testing.T) { { name: "projectmember added ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.ProjectMember{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, UserID: "UserID", Roles: []string{"Roles"}}, aggCreator: models.NewAggregateCreator("Test"), @@ -481,7 +481,7 @@ func TestProjectMemberAddedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -495,7 +495,7 @@ func TestProjectMemberAddedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -549,7 +549,7 @@ func TestProjectMemberChangedAggregate(t *testing.T) { { name: "projectmember changed ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.ProjectMember{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, UserID: "UserID", Roles: []string{"Roles"}}, aggCreator: models.NewAggregateCreator("Test"), @@ -562,7 +562,7 @@ func TestProjectMemberChangedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -576,7 +576,7 @@ func TestProjectMemberChangedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -630,7 +630,7 @@ func TestProjectMemberRemovedAggregate(t *testing.T) { { name: "projectmember removed ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.ProjectMember{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, UserID: "UserID", Roles: []string{"Roles"}}, aggCreator: models.NewAggregateCreator("Test"), @@ -643,7 +643,7 @@ func TestProjectMemberRemovedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -657,7 +657,7 @@ func TestProjectMemberRemovedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -711,9 +711,9 @@ func TestProjectRoleAddedAggregate(t *testing.T) { { name: "projectrole added ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, - new: []*model.ProjectRole{&model.ProjectRole{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Key: "Key"}}, + new: []*model.ProjectRole{{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Key: "Key"}}, aggCreator: models.NewAggregateCreator("Test"), }, res: res{ @@ -724,11 +724,11 @@ func TestProjectRoleAddedAggregate(t *testing.T) { { name: "projectrole multiple added ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: []*model.ProjectRole{ - &model.ProjectRole{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Key: "Key"}, - &model.ProjectRole{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Key: "Key2"}, + {ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Key: "Key"}, + {ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Key: "Key2"}, }, aggCreator: models.NewAggregateCreator("Test"), }, @@ -740,7 +740,7 @@ func TestProjectRoleAddedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -754,7 +754,7 @@ func TestProjectRoleAddedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -808,7 +808,7 @@ func TestProjectRoleChangedAggregate(t *testing.T) { { name: "projectmember changed ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.ProjectRole{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Key: "Key"}, aggCreator: models.NewAggregateCreator("Test"), @@ -821,7 +821,7 @@ func TestProjectRoleChangedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -835,7 +835,7 @@ func TestProjectRoleChangedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -890,7 +890,7 @@ func TestProjectRoleRemovedAggregate(t *testing.T) { { name: "projectrole changed ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.ProjectRole{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Key: "Key"}, aggCreator: models.NewAggregateCreator("Test"), @@ -903,15 +903,15 @@ func TestProjectRoleRemovedAggregate(t *testing.T) { { name: "projectrole changed with grant", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive), - Grants: []*model.ProjectGrant{&model.ProjectGrant{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, GrantID: "GrantID", GrantedOrgID: "OrgID", RoleKeys: []string{"ROLE"}}}, + Grants: []*model.ProjectGrant{{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, GrantID: "GrantID", GrantedOrgID: "OrgID", RoleKeys: []string{"ROLE"}}}, }, new: &model.ProjectRole{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Key: "Key"}, - grants: []*model.ProjectGrant{&model.ProjectGrant{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, GrantID: "GrantID", GrantedOrgID: "OrgID", RoleKeys: []string{}}}, + grants: []*model.ProjectGrant{{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, GrantID: "GrantID", GrantedOrgID: "OrgID", RoleKeys: []string{}}}, aggCreator: models.NewAggregateCreator("Test"), }, res: res{ @@ -922,7 +922,7 @@ func TestProjectRoleRemovedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -934,7 +934,7 @@ func TestProjectRoleRemovedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -953,7 +953,7 @@ func TestProjectRoleRemovedAggregate(t *testing.T) { t.Errorf("got wrong event len: expected: %v, actual: %v ", tt.res.eventLen, len(agg.Events)) } if agg != nil { - for i, _ := range agg.Events { + for i := range agg.Events { if !tt.res.wantErr && agg.Events[i].Type != tt.res.eventTypes[i] { t.Errorf("got wrong event type: expected: %v, actual: %v ", tt.res.eventTypes[i], agg.Events[i].Type.String()) } @@ -991,7 +991,7 @@ func TestProjectAppAddedAggregate(t *testing.T) { { name: "add oidc application", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.Application{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, @@ -1009,7 +1009,7 @@ func TestProjectAppAddedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1021,7 +1021,7 @@ func TestProjectAppAddedAggregate(t *testing.T) { { name: "app nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -1078,13 +1078,13 @@ func TestProjectAppChangedAggregate(t *testing.T) { { name: "change app", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive), Applications: []*model.Application{ - &model.Application{AppID: "AppID", Name: "Name"}, + {AppID: "AppID", Name: "Name"}, }}, new: &model.Application{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, @@ -1101,7 +1101,7 @@ func TestProjectAppChangedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1113,7 +1113,7 @@ func TestProjectAppChangedAggregate(t *testing.T) { { name: "app nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -1168,13 +1168,13 @@ func TestProjectAppRemovedAggregate(t *testing.T) { { name: "remove app", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive), Applications: []*model.Application{ - &model.Application{AppID: "AppID", Name: "Name"}, + {AppID: "AppID", Name: "Name"}, }}, new: &model.Application{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, @@ -1191,7 +1191,7 @@ func TestProjectAppRemovedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1203,7 +1203,7 @@ func TestProjectAppRemovedAggregate(t *testing.T) { { name: "app nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -1258,13 +1258,13 @@ func TestProjectAppDeactivatedAggregate(t *testing.T) { { name: "deactivate app", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive), Applications: []*model.Application{ - &model.Application{AppID: "AppID", Name: "Name"}, + {AppID: "AppID", Name: "Name"}, }}, new: &model.Application{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, @@ -1281,7 +1281,7 @@ func TestProjectAppDeactivatedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1293,7 +1293,7 @@ func TestProjectAppDeactivatedAggregate(t *testing.T) { { name: "app nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -1348,13 +1348,13 @@ func TestProjectAppReactivatedAggregate(t *testing.T) { { name: "deactivate app", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive), Applications: []*model.Application{ - &model.Application{AppID: "AppID", Name: "Name"}, + {AppID: "AppID", Name: "Name"}, }}, new: &model.Application{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, @@ -1371,7 +1371,7 @@ func TestProjectAppReactivatedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1383,7 +1383,7 @@ func TestProjectAppReactivatedAggregate(t *testing.T) { { name: "app nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -1438,13 +1438,13 @@ func TestOIDCConfigchangAggregate(t *testing.T) { { name: "deactivate app", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive), Applications: []*model.Application{ - &model.Application{AppID: "AppID", Name: "Name", OIDCConfig: &model.OIDCConfig{AppID: "AppID", AuthMethodType: 1}}, + {AppID: "AppID", Name: "Name", OIDCConfig: &model.OIDCConfig{AppID: "AppID", AuthMethodType: 1}}, }}, new: &model.OIDCConfig{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, @@ -1461,7 +1461,7 @@ func TestOIDCConfigchangAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1473,7 +1473,7 @@ func TestOIDCConfigchangAggregate(t *testing.T) { { name: "app nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -1528,13 +1528,13 @@ func TestOIDCConfigSecretChangeAggregate(t *testing.T) { { name: "change client secret", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive), Applications: []*model.Application{ - &model.Application{AppID: "AppID", Name: "Name", OIDCConfig: &model.OIDCConfig{AppID: "AppID", AuthMethodType: 1}}, + {AppID: "AppID", Name: "Name", OIDCConfig: &model.OIDCConfig{AppID: "AppID", AuthMethodType: 1}}, }}, new: &model.OIDCConfig{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, @@ -1551,7 +1551,7 @@ func TestOIDCConfigSecretChangeAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, new: &model.OIDCConfig{ ObjectRoot: models.ObjectRoot{AggregateID: "AggregateID"}, @@ -1609,7 +1609,7 @@ func TestProjectGrantAddedAggregate(t *testing.T) { { name: "projectgrant added ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.ProjectGrant{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, GrantID: "GrantID", GrantedOrgID: "OrgID"}, aggCreator: models.NewAggregateCreator("Test"), @@ -1622,7 +1622,7 @@ func TestProjectGrantAddedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1636,7 +1636,7 @@ func TestProjectGrantAddedAggregate(t *testing.T) { { name: "grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -1690,13 +1690,13 @@ func TestProjectGrantChangedAggregate(t *testing.T) { { name: "change project grant", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive), Grants: []*model.ProjectGrant{ - &model.ProjectGrant{GrantID: "GrantID", GrantedOrgID: "GrantedOrgID", RoleKeys: []string{"Key"}}, + {GrantID: "GrantID", GrantedOrgID: "GrantedOrgID", RoleKeys: []string{"Key"}}, }}, new: &model.ProjectGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, @@ -1714,7 +1714,7 @@ func TestProjectGrantChangedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1726,7 +1726,7 @@ func TestProjectGrantChangedAggregate(t *testing.T) { { name: "projectgrant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -1781,13 +1781,13 @@ func TestProjectGrantRemovedAggregate(t *testing.T) { { name: "remove app", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive), Grants: []*model.ProjectGrant{ - &model.ProjectGrant{GrantID: "GrantID", GrantedOrgID: "GrantedOrgID"}, + {GrantID: "GrantID", GrantedOrgID: "GrantedOrgID"}, }}, new: &model.ProjectGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, @@ -1805,7 +1805,7 @@ func TestProjectGrantRemovedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1817,7 +1817,7 @@ func TestProjectGrantRemovedAggregate(t *testing.T) { { name: "projectgrant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -1872,13 +1872,13 @@ func TestProjectGrantDeactivatedAggregate(t *testing.T) { { name: "deactivate project grant", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive), Grants: []*model.ProjectGrant{ - &model.ProjectGrant{GrantID: "GrantID", GrantedOrgID: "GrantedOrgID"}, + {GrantID: "GrantID", GrantedOrgID: "GrantedOrgID"}, }}, new: &model.ProjectGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, @@ -1896,7 +1896,7 @@ func TestProjectGrantDeactivatedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1908,7 +1908,7 @@ func TestProjectGrantDeactivatedAggregate(t *testing.T) { { name: "grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -1963,13 +1963,13 @@ func TestProjectGrantReactivatedAggregate(t *testing.T) { { name: "reactivate project grant", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateInactive), Grants: []*model.ProjectGrant{ - &model.ProjectGrant{GrantID: "GrantID", GrantedOrgID: "GrantedOrgID"}, + {GrantID: "GrantID", GrantedOrgID: "GrantedOrgID"}, }}, new: &model.ProjectGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, @@ -1987,7 +1987,7 @@ func TestProjectGrantReactivatedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1999,7 +1999,7 @@ func TestProjectGrantReactivatedAggregate(t *testing.T) { { name: "grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateInactive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -2054,7 +2054,7 @@ func TestProjectGrantMemberAddedAggregate(t *testing.T) { { name: "project grant member added ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.ProjectGrantMember{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, GrantID: "GrantID", UserID: "UserID", Roles: []string{"Roles"}}, aggCreator: models.NewAggregateCreator("Test"), @@ -2067,7 +2067,7 @@ func TestProjectGrantMemberAddedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -2081,7 +2081,7 @@ func TestProjectGrantMemberAddedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -2135,7 +2135,7 @@ func TestProjectGrantMemberChangedAggregate(t *testing.T) { { name: "project grant member changed ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.ProjectGrantMember{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, UserID: "UserID", Roles: []string{"RolesChanged"}}, aggCreator: models.NewAggregateCreator("Test"), @@ -2148,7 +2148,7 @@ func TestProjectGrantMemberChangedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -2162,7 +2162,7 @@ func TestProjectGrantMemberChangedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -2216,7 +2216,7 @@ func TestProjectGrantMemberRemovedAggregate(t *testing.T) { { name: "project grant member removed ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: &model.ProjectGrantMember{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, UserID: "UserID", Roles: []string{"Roles"}}, aggCreator: models.NewAggregateCreator("Test"), @@ -2229,7 +2229,7 @@ func TestProjectGrantMemberRemovedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -2243,7 +2243,7 @@ func TestProjectGrantMemberRemovedAggregate(t *testing.T) { { name: "member nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.Project{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Name: "ProjectName", State: int32(proj_model.ProjectStateActive)}, new: nil, aggCreator: models.NewAggregateCreator("Test"), diff --git a/internal/protoc/protoc-gen-authoption/templates.go b/internal/protoc/protoc-gen-authoption/templates.go index 6522786704..566d84d452 100644 --- a/internal/protoc/protoc-gen-authoption/templates.go +++ b/internal/protoc/protoc-gen-authoption/templates.go @@ -68,7 +68,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _templatesAuth_method_mappingGoTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x92\xc1\x6e\xdb\x30\x0c\x86\xcf\xd5\x53\x10\x86\x0f\x4d\x90\x4a\xd8\x35\x40\x0f\x43\xba\x0e\x3d\xb4\x09\xd0\x6c\xd7\x40\xb5\x19\x45\x88\x2d\x09\x94\x9c\xa1\x15\xf4\xee\x83\x6c\x77\x71\xd6\x0e\x98\x4f\x32\x45\xf2\xe7\x47\xfd\x42\xc0\xca\xd6\x08\x0a\x0d\x92\x0c\x58\xc3\xcb\x2b\x38\xb2\xc1\x56\x37\x0a\xcd\x8d\xec\xc2\xa1\xc5\x70\xb0\x35\x87\xbb\x35\x3c\xad\xb7\xf0\xed\xee\x61\xcb\x19\x73\xb2\x3a\x4a\x85\x10\x23\xbf\xd7\x0d\xf2\xef\x76\x73\x54\xfc\x49\xb6\x98\x12\x63\x4c\xb7\xce\x52\x80\x6b\x06\x00\x50\x28\x6b\x55\x83\x5c\xd9\x46\x1a\xc5\x2d\x29\xa1\xc8\x55\x45\x7f\xc9\xae\xba\xa0\x1b\xbf\xcb\x52\x50\x28\x1d\x0e\xdd\x0b\xaf\x6c\x2b\x2a\x69\xbd\x78\xd3\x41\xd6\xd8\x08\x6d\x02\x92\x91\x8d\x90\x4e\x8b\x9c\x5a\xb0\xab\xff\x4b\xce\x4a\xc2\x23\x9d\x90\x44\xab\xeb\xba\xc1\x5f\x92\xb0\x60\x33\xc6\x62\x04\x92\x46\x21\x94\x1e\x96\xb7\x30\x80\x3c\x23\x9d\x74\x85\x1e\x32\x87\x98\xcf\x19\xcc\x21\xc6\xd2\xbf\xb3\xc1\x5c\x30\x76\x92\x34\x0d\xee\xbe\x76\xe1\xf0\xd8\xef\xc9\xc3\x2d\x9c\x81\xf8\x10\x7c\x94\xce\x69\xa3\x20\xf6\xc4\x67\xd9\x36\xcb\x96\x7e\xcc\xca\xcd\xc7\x2f\x46\x28\xdb\xdc\x74\xed\x42\xce\xb1\x2e\x68\x6b\xa0\x6c\xf9\xba\x3f\x79\x28\x32\x31\x1f\x89\x79\xaf\xc8\x4f\x5f\x78\x16\xdd\x0d\xd9\x05\x5c\x36\xd4\x7b\x90\xa6\x9e\xf4\xfd\x73\xe2\x1b\xa4\x56\x7b\x9f\x25\x26\x35\xfd\xd3\x89\x18\xcb\x61\x31\x9b\xe1\xc5\x53\xe2\x13\x72\x11\xe3\x78\x2a\x96\x53\xee\x61\xcc\x78\xd1\x2b\x7f\x67\xa5\x25\x14\x31\x7e\x36\x42\x4a\xc5\xe2\x43\xdd\xea\x80\xd5\x71\x23\x49\xb6\x7f\xd5\xf5\x17\xf7\x1a\x9b\x7a\x1c\xe3\xb2\x36\x2d\x26\x2b\x40\xf3\xbe\xe3\x18\x61\xf8\x49\x8c\xed\x3b\x53\x7d\x78\x4c\x4b\xfa\x4d\x66\x84\xdd\x43\x36\x53\x85\x2e\x58\xba\x3e\x21\xe9\xbd\x46\x9a\x92\x6e\xed\x11\xcd\xcf\xf1\x62\x01\x39\xb6\xb2\x66\x0f\xf3\x49\x4e\x0e\x68\x35\x83\xec\x45\xfe\xc3\x48\x7a\x7d\xee\x0d\x39\xe9\x3d\x7a\x83\x30\x74\x64\xe0\x6c\x54\x7e\x31\xcd\x67\xc3\x9c\x35\x17\xff\xf2\xe4\x2c\x73\x0e\xcc\x90\xd2\xef\x00\x00\x00\xff\xff\xf3\xc0\x3d\x9c\xf5\x03\x00\x00") +var _templatesAuth_method_mappingGoTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x92\x4f\x6f\xdc\x2c\x10\xc6\xcf\x2f\x9f\x62\x84\x7c\x78\xbb\x4a\x40\xbd\xae\xb4\x87\x2a\x69\xaa\x1e\x92\xb5\xd4\xdc\x23\x62\x26\x18\xad\xf9\x23\x60\xb7\x6d\x10\xdf\xbd\x02\x7b\x1b\x6f\x5b\x55\xe5\x04\xe6\x99\x67\x9e\xf9\x19\xce\xe1\xc6\x49\x04\x85\x16\x83\x48\x28\xe1\xf9\x3b\xf8\xe0\x92\x1b\xae\x15\xda\x6b\x71\x4c\xa3\xc1\x34\x3a\xc9\xe0\x76\x0f\x0f\xfb\x47\xf8\x78\xfb\xf9\x91\x11\xe2\xc5\x70\x10\x0a\x21\x67\x76\xa7\x27\x64\x9f\x5c\x7f\x50\xec\x41\x18\x2c\x85\x10\xa2\x8d\x77\x21\xc1\xff\x04\x00\x80\x2a\xe7\xd4\x84\x4c\xb9\x49\x58\xc5\x5c\x50\x5c\x05\x3f\xd0\x76\x49\xfe\xa3\x4a\xa7\xf1\xf8\xcc\x06\x67\xf8\x20\x5c\xe4\xaf\x3a\x09\x89\x13\xd7\x36\x61\xb0\x62\xe2\xc2\x6b\x5e\xa3\xbc\xd2\x7f\x55\x57\x7f\x1e\x31\x9c\x30\x70\xa3\xa5\x9c\xf0\xab\x08\x48\xc9\x3b\x42\x72\x86\x20\xac\x42\xe8\x22\x6c\x77\x30\xc7\xff\x82\xe1\xa4\x07\x8c\x50\xd3\xf3\xcd\x86\xc0\x06\x72\xee\xe2\x79\x22\xd8\x70\x42\x06\x67\x63\x5a\x7f\x7e\xba\x6f\x6c\xfa\x80\x2f\xfa\x1b\xec\x80\xe6\xdc\xcd\x7e\xfd\x8c\xa7\x14\xb6\x92\x53\x42\x4e\x22\x5c\x18\x7c\x38\xa6\x71\x36\x89\xb0\x83\x36\x23\x9b\xcf\xf7\xc2\x7b\x6d\x15\xe4\x46\xe9\x2d\xb4\xa9\xa1\xbb\xb8\xa8\x6a\xb4\x65\xe5\x0c\x9d\xa9\x7e\x7b\x9f\xaa\xc6\xf9\xa4\x9d\x85\xce\xb0\x7d\xdb\x45\xa0\x95\x17\x5b\x78\xb1\x63\xd2\x53\x64\xa7\xf7\xac\x76\x7d\x9a\xd5\x14\x2e\x0d\xf5\x0b\x08\x2b\x57\xbe\x3f\x77\xac\xc7\x60\x74\x8c\xb5\xc5\xaa\xa6\xfd\x6e\xfe\x77\x0c\x3c\xe7\x33\x90\xed\x32\xf2\x9c\x30\x5f\xd8\xd4\xf5\xd6\x64\xdb\xe0\xfe\xa1\x7b\x29\xf4\xea\xb7\xba\x9b\x11\x87\x43\x2f\x82\x30\xbf\xd4\xb5\x8b\x3b\x8d\x93\x5c\x12\x5c\xd6\x96\xab\xd5\xf4\x68\xcf\x78\x73\x86\xf9\x50\xda\xf3\x41\x2b\xa1\x94\x1f\x01\x00\x00\xff\xff\xf7\x3b\xde\xd5\x3c\x03\x00\x00") func templatesAuth_method_mappingGoTmplBytes() ([]byte, error) { return bindataRead( @@ -83,7 +83,7 @@ func templatesAuth_method_mappingGoTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/auth_method_mapping.go.tmpl", size: 1013, mode: os.FileMode(420), modTime: time.Unix(1587570988, 0)} + info := bindataFileInfo{name: "templates/auth_method_mapping.go.tmpl", size: 828, mode: os.FileMode(420), modTime: time.Unix(1594194900, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -182,6 +182,7 @@ type bintree struct { Func func() (*asset, error) Children map[string]*bintree } + var _bintree = &bintree{nil, map[string]*bintree{ "templates": &bintree{nil, map[string]*bintree{ "auth_method_mapping.go.tmpl": &bintree{templatesAuth_method_mappingGoTmpl, map[string]*bintree{}}, @@ -234,4 +235,3 @@ func _filePath(dir, name string) string { cannonicalName := strings.Replace(name, "\\", "/", -1) return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) } - diff --git a/internal/protoc/protoc-gen-authoption/templates/auth_method_mapping.go.tmpl b/internal/protoc/protoc-gen-authoption/templates/auth_method_mapping.go.tmpl index b08d37acdd..dfd890b5a3 100644 --- a/internal/protoc/protoc-gen-authoption/templates/auth_method_mapping.go.tmpl +++ b/internal/protoc/protoc-gen-authoption/templates/auth_method_mapping.go.tmpl @@ -6,7 +6,7 @@ package {{.File.GoPkg.Name}} import ( "google.golang.org/grpc" - utils_auth "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/api/grpc/server/middleware" ) @@ -16,11 +16,13 @@ import ( * {{$s.Name}} */ -var {{$s.Name}}_AuthMethods = utils_auth.MethodMapping { +const {{$s.Name}}_MethodPrefix = "{{$.File.Package}}.{{$s.Name}}" + +var {{$s.Name}}_AuthMethods = authz.MethodMapping { {{ range $m := $s.Method}} {{ $mAuthOpt := option $m.Options "caos.zitadel.utils.v1.auth_option" }} {{ if and $mAuthOpt $mAuthOpt.Permission }} - "/{{$.File.Package}}.{{$s.Name}}/{{.Name}}": utils_auth.Option{ + "/{{$.File.Package}}.{{$s.Name}}/{{.Name}}": authz.Option{ Permission: "{{$mAuthOpt.Permission}}", CheckParam: "{{$mAuthOpt.CheckFieldName}}", }, @@ -28,8 +30,4 @@ var {{$s.Name}}_AuthMethods = utils_auth.MethodMapping { {{ end}} } -func {{$s.Name}}_Authorization_Interceptor(verifier utils_auth.TokenVerifier, authConf *utils_auth.Config) grpc.UnaryServerInterceptor { - return middleware.AuthorizationInterceptor(verifier, authConf, {{$s.Name}}_AuthMethods) -} - {{ end }} \ No newline at end of file diff --git a/pkg/console/console.go b/internal/ui/console/console.go similarity index 87% rename from pkg/console/console.go rename to internal/ui/console/console.go index 572efa8dc3..6752ce956f 100644 --- a/pkg/console/console.go +++ b/internal/ui/console/console.go @@ -1,7 +1,6 @@ package console import ( - "context" "net/http" "os" "path" @@ -11,7 +10,7 @@ import ( "github.com/rakyll/statik/fs" "github.com/caos/zitadel/internal/api/http/middleware" - _ "github.com/caos/zitadel/pkg/console/statik" + _ "github.com/caos/zitadel/internal/ui/console/statik" ) type Config struct { @@ -51,10 +50,10 @@ func (i *spaHandler) Open(name string) (http.File, error) { return i.fileSystem.Open("/index.html") } -func Start(ctx context.Context, config Config) error { +func Start(config Config) (http.Handler, error) { statikFS, err := fs.NewWithNamespace("console") if err != nil { - return err + return nil, err } envDir := envDefaultDir if config.EnvOverwriteDir != "" { @@ -67,9 +66,10 @@ func Start(ctx context.Context, config Config) error { config.LongCache.SharedMaxAge.Duration, ) security := middleware.SecurityHeaders(csp(config.CSPDomain), nil) - http.Handle("/", cache(security(http.FileServer(&spaHandler{statikFS})))) - http.Handle(envRequestPath, cache(security(http.StripPrefix("/assets", http.FileServer(http.Dir(envDir)))))) - return http.ListenAndServe(":"+config.Port, nil) + handler := &http.ServeMux{} + handler.Handle("/", cache(security(http.FileServer(&spaHandler{statikFS})))) + handler.Handle(envRequestPath, cache(security(http.StripPrefix("/assets", http.FileServer(http.Dir(envDir)))))) + return handler, nil } func csp(zitadelDomain string) *middleware.CSP { diff --git a/internal/ui/console/statik/generate.go b/internal/ui/console/statik/generate.go new file mode 100644 index 0000000000..59ad7512ea --- /dev/null +++ b/internal/ui/console/statik/generate.go @@ -0,0 +1,3 @@ +package statik + +//go:generate statik -src=../../../../console/dist/console -dest=.. -ns=console diff --git a/internal/login/handler/auth_request.go b/internal/ui/login/handler/auth_request.go similarity index 99% rename from internal/login/handler/auth_request.go rename to internal/ui/login/handler/auth_request.go index 885be90da0..82fad0cb0e 100644 --- a/internal/login/handler/auth_request.go +++ b/internal/ui/login/handler/auth_request.go @@ -1,8 +1,9 @@ package handler import ( - "github.com/caos/zitadel/internal/auth_request/model" "net/http" + + "github.com/caos/zitadel/internal/auth_request/model" ) const ( diff --git a/internal/login/handler/callback_handler.go b/internal/ui/login/handler/callback_handler.go similarity index 99% rename from internal/login/handler/callback_handler.go rename to internal/ui/login/handler/callback_handler.go index 9f4b80fbcf..a0209c68f6 100644 --- a/internal/login/handler/callback_handler.go +++ b/internal/ui/login/handler/callback_handler.go @@ -1,8 +1,9 @@ package handler import ( - "github.com/caos/zitadel/internal/auth_request/model" "net/http" + + "github.com/caos/zitadel/internal/auth_request/model" ) func (l *Login) redirectToCallback(w http.ResponseWriter, r *http.Request, authReq *model.AuthRequest) { diff --git a/internal/login/handler/change_password_handler.go b/internal/ui/login/handler/change_password_handler.go similarity index 99% rename from internal/login/handler/change_password_handler.go rename to internal/ui/login/handler/change_password_handler.go index 45818a2148..244e1fe2b6 100644 --- a/internal/login/handler/change_password_handler.go +++ b/internal/ui/login/handler/change_password_handler.go @@ -1,8 +1,9 @@ package handler import ( - "github.com/caos/zitadel/internal/auth_request/model" "net/http" + + "github.com/caos/zitadel/internal/auth_request/model" ) const ( diff --git a/internal/login/handler/health_handler.go b/internal/ui/login/handler/health_handler.go similarity index 100% rename from internal/login/handler/health_handler.go rename to internal/ui/login/handler/health_handler.go diff --git a/internal/login/handler/init_password_handler.go b/internal/ui/login/handler/init_password_handler.go similarity index 99% rename from internal/login/handler/init_password_handler.go rename to internal/ui/login/handler/init_password_handler.go index 5aa1183770..b99cca20c6 100644 --- a/internal/login/handler/init_password_handler.go +++ b/internal/ui/login/handler/init_password_handler.go @@ -1,9 +1,10 @@ package handler import ( + "net/http" + "github.com/caos/zitadel/internal/auth_request/model" "github.com/caos/zitadel/internal/errors" - "net/http" ) const ( diff --git a/internal/login/handler/init_user_handler.go b/internal/ui/login/handler/init_user_handler.go similarity index 99% rename from internal/login/handler/init_user_handler.go rename to internal/ui/login/handler/init_user_handler.go index 007e81d0ed..4c295dca8a 100644 --- a/internal/login/handler/init_user_handler.go +++ b/internal/ui/login/handler/init_user_handler.go @@ -1,10 +1,11 @@ package handler import ( - "github.com/caos/zitadel/internal/auth_request/model" - caos_errs "github.com/caos/zitadel/internal/errors" "net/http" "strconv" + + "github.com/caos/zitadel/internal/auth_request/model" + caos_errs "github.com/caos/zitadel/internal/errors" ) const ( diff --git a/internal/login/handler/login.go b/internal/ui/login/handler/login.go similarity index 88% rename from internal/login/handler/login.go rename to internal/ui/login/handler/login.go index ed58c2329d..4b2d5fbf88 100644 --- a/internal/login/handler/login.go +++ b/internal/ui/login/handler/login.go @@ -10,13 +10,12 @@ import ( "github.com/rakyll/statik/fs" "golang.org/x/text/language" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/api/http/middleware" "github.com/caos/zitadel/internal/auth/repository/eventsourcing" "github.com/caos/zitadel/internal/crypto" "github.com/caos/zitadel/internal/form" - - _ "github.com/caos/zitadel/internal/login/statik" + _ "github.com/caos/zitadel/internal/ui/login/statik" ) type Login struct { @@ -30,7 +29,6 @@ type Login struct { } type Config struct { - Port string OidcAuthCallbackURL string ZitadelURL string LanguageCookieName string @@ -49,9 +47,8 @@ const ( login = "LOGIN" ) -func StartLogin(ctx context.Context, config Config, authRepo *eventsourcing.EsRepository) { +func CreateLogin(config Config, authRepo *eventsourcing.EsRepository, prefix string) *Login { login := &Login{ - endpoint: config.Port, oidcAuthCallbackURL: config.OidcAuthCallbackURL, zitadelURL: config.ZitadelURL, authRepo: authRepo, @@ -65,9 +62,9 @@ func StartLogin(ctx context.Context, config Config, authRepo *eventsourcing.EsRe logging.Log("CONFI-BHq2a").OnError(err).Panic("unable to create cacheInterceptor") security := middleware.SecurityHeaders(csp(), login.cspErrorHandler) login.router = CreateRouter(login, statikFS, csrf, cache, security) - login.renderer = CreateRenderer(statikFS, config.LanguageCookieName, config.DefaultLanguage) + login.renderer = CreateRenderer(prefix, statikFS, config.LanguageCookieName, config.DefaultLanguage) login.parser = form.NewParser() - login.Listen(ctx) + return login } func csp() *middleware.CSP { @@ -90,6 +87,10 @@ func csrfInterceptor(config CSRF, errorHandler http.Handler) (func(http.Handler) ), nil } +func (l *Login) Handler() http.Handler { + return l.router +} + func (l *Login) Listen(ctx context.Context) { if l.endpoint == "" { l.endpoint = ":80" @@ -119,9 +120,9 @@ func (l *Login) Listen(ctx context.Context) { } func setContext(ctx context.Context, resourceOwner string) context.Context { - data := auth.CtxData{ + data := authz.CtxData{ UserID: login, OrgID: resourceOwner, } - return auth.SetCtxData(ctx, data) + return authz.SetCtxData(ctx, data) } diff --git a/internal/login/handler/login_handler.go b/internal/ui/login/handler/login_handler.go similarity index 99% rename from internal/login/handler/login_handler.go rename to internal/ui/login/handler/login_handler.go index 4c0ca55036..8b95692b07 100644 --- a/internal/login/handler/login_handler.go +++ b/internal/ui/login/handler/login_handler.go @@ -1,8 +1,9 @@ package handler import ( - "github.com/caos/zitadel/internal/auth_request/model" "net/http" + + "github.com/caos/zitadel/internal/auth_request/model" ) const ( diff --git a/internal/login/handler/logout_handler.go b/internal/ui/login/handler/logout_handler.go similarity index 100% rename from internal/login/handler/logout_handler.go rename to internal/ui/login/handler/logout_handler.go diff --git a/internal/login/handler/mail_verify_handler.go b/internal/ui/login/handler/mail_verify_handler.go similarity index 99% rename from internal/login/handler/mail_verify_handler.go rename to internal/ui/login/handler/mail_verify_handler.go index 532f634fe3..f171d4bf3b 100644 --- a/internal/login/handler/mail_verify_handler.go +++ b/internal/ui/login/handler/mail_verify_handler.go @@ -1,8 +1,9 @@ package handler import ( - "github.com/caos/zitadel/internal/auth_request/model" "net/http" + + "github.com/caos/zitadel/internal/auth_request/model" ) const ( diff --git a/internal/login/handler/mfa_init_done_handler.go b/internal/ui/login/handler/mfa_init_done_handler.go similarity index 99% rename from internal/login/handler/mfa_init_done_handler.go rename to internal/ui/login/handler/mfa_init_done_handler.go index 4bb7eb9ded..bd30a6e9c4 100644 --- a/internal/login/handler/mfa_init_done_handler.go +++ b/internal/ui/login/handler/mfa_init_done_handler.go @@ -1,8 +1,9 @@ package handler import ( - "github.com/caos/zitadel/internal/auth_request/model" "net/http" + + "github.com/caos/zitadel/internal/auth_request/model" ) const ( diff --git a/internal/login/handler/mfa_init_verify_handler.go b/internal/ui/login/handler/mfa_init_verify_handler.go similarity index 100% rename from internal/login/handler/mfa_init_verify_handler.go rename to internal/ui/login/handler/mfa_init_verify_handler.go diff --git a/internal/login/handler/mfa_prompt_handler.go b/internal/ui/login/handler/mfa_prompt_handler.go similarity index 99% rename from internal/login/handler/mfa_prompt_handler.go rename to internal/ui/login/handler/mfa_prompt_handler.go index 16631f96b4..aaeb0888e8 100644 --- a/internal/login/handler/mfa_prompt_handler.go +++ b/internal/ui/login/handler/mfa_prompt_handler.go @@ -1,9 +1,10 @@ package handler import ( + "net/http" + "github.com/caos/zitadel/internal/auth_request/model" caos_errs "github.com/caos/zitadel/internal/errors" - "net/http" ) const ( diff --git a/internal/login/handler/mfa_verify_handler.go b/internal/ui/login/handler/mfa_verify_handler.go similarity index 100% rename from internal/login/handler/mfa_verify_handler.go rename to internal/ui/login/handler/mfa_verify_handler.go diff --git a/internal/login/handler/password_handler.go b/internal/ui/login/handler/password_handler.go similarity index 100% rename from internal/login/handler/password_handler.go rename to internal/ui/login/handler/password_handler.go diff --git a/internal/login/handler/password_reset_handler.go b/internal/ui/login/handler/password_reset_handler.go similarity index 99% rename from internal/login/handler/password_reset_handler.go rename to internal/ui/login/handler/password_reset_handler.go index dba4defb08..afea65893a 100644 --- a/internal/login/handler/password_reset_handler.go +++ b/internal/ui/login/handler/password_reset_handler.go @@ -1,8 +1,9 @@ package handler import ( - "github.com/caos/zitadel/internal/auth_request/model" "net/http" + + "github.com/caos/zitadel/internal/auth_request/model" ) const ( diff --git a/internal/login/handler/register_handler.go b/internal/ui/login/handler/register_handler.go similarity index 99% rename from internal/login/handler/register_handler.go rename to internal/ui/login/handler/register_handler.go index 2baf7d24a4..6c3b668737 100644 --- a/internal/login/handler/register_handler.go +++ b/internal/ui/login/handler/register_handler.go @@ -1,13 +1,15 @@ package handler import ( + "net/http" + + "golang.org/x/text/language" + "github.com/caos/zitadel/internal/auth_request/model" caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/eventstore/models" org_model "github.com/caos/zitadel/internal/org/model" usr_model "github.com/caos/zitadel/internal/user/model" - "golang.org/x/text/language" - "net/http" ) const ( diff --git a/internal/login/handler/renderer.go b/internal/ui/login/handler/renderer.go similarity index 85% rename from internal/login/handler/renderer.go rename to internal/ui/login/handler/renderer.go index 3fd87ea5dc..d407da11d1 100644 --- a/internal/login/handler/renderer.go +++ b/internal/ui/login/handler/renderer.go @@ -4,6 +4,8 @@ import ( "errors" "fmt" "html/template" + "net/http" + "path" "github.com/gorilla/csrf" @@ -12,8 +14,6 @@ import ( caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/i18n" "github.com/caos/zitadel/internal/renderer" - "net/http" - "path" "github.com/caos/logging" "golang.org/x/text/language" @@ -25,10 +25,13 @@ const ( type Renderer struct { *renderer.Renderer + pathPrefix string } -func CreateRenderer(staticDir http.FileSystem, cookieName string, defaultLanguage language.Tag) *Renderer { - r := new(Renderer) +func CreateRenderer(pathPrefix string, staticDir http.FileSystem, cookieName string, defaultLanguage language.Tag) *Renderer { + r := &Renderer{ + pathPrefix: pathPrefix, + } tmplMapping := map[string]string{ tmplError: "error.html", tmplLogin: "login.html", @@ -52,55 +55,55 @@ func CreateRenderer(staticDir http.FileSystem, cookieName string, defaultLanguag } funcs := map[string]interface{}{ "resourceUrl": func(file string) string { - return path.Join(EndpointResources, file) + return path.Join(r.pathPrefix, EndpointResources, file) }, "resourceThemeUrl": func(file, theme string) string { - return path.Join(EndpointResources, "themes", theme, file) + return path.Join(r.pathPrefix, EndpointResources, "themes", theme, file) }, "loginUrl": func() string { - return EndpointLogin + return path.Join(r.pathPrefix, EndpointLogin) }, "registerUrl": func(id string) string { - return fmt.Sprintf("%s?%s=%s", EndpointRegister, queryAuthRequestID, id) + return path.Join(r.pathPrefix, fmt.Sprintf("%s?%s=%s", EndpointRegister, queryAuthRequestID, id)) }, "loginNameUrl": func() string { - return EndpointLoginName + return path.Join(r.pathPrefix, EndpointLoginName) }, "loginNameChangeUrl": func(id string) string { - return fmt.Sprintf("%s?%s=%s", EndpointLoginName, queryAuthRequestID, id) + return path.Join(r.pathPrefix, fmt.Sprintf("%s?%s=%s", EndpointLoginName, queryAuthRequestID, id)) }, "userSelectionUrl": func() string { - return EndpointUserSelection + return path.Join(r.pathPrefix, EndpointUserSelection) }, "passwordResetUrl": func(id string) string { - return fmt.Sprintf("%s?%s=%s", EndpointPasswordReset, queryAuthRequestID, id) + return path.Join(r.pathPrefix, fmt.Sprintf("%s?%s=%s", EndpointPasswordReset, queryAuthRequestID, id)) }, "passwordUrl": func() string { - return EndpointPassword + return path.Join(r.pathPrefix, EndpointPassword) }, "mfaVerifyUrl": func() string { - return EndpointMfaVerify + return path.Join(r.pathPrefix, EndpointMfaVerify) }, "mfaPromptUrl": func() string { - return EndpointMfaPrompt + return path.Join(r.pathPrefix, EndpointMfaPrompt) }, "mfaInitVerifyUrl": func() string { - return EndpointMfaInitVerify + return path.Join(r.pathPrefix, EndpointMfaInitVerify) }, "mailVerificationUrl": func() string { - return EndpointMailVerification + return path.Join(r.pathPrefix, EndpointMailVerification) }, "initPasswordUrl": func() string { - return EndpointInitPassword + return path.Join(r.pathPrefix, EndpointInitPassword) }, "initUserUrl": func() string { - return EndpointInitUser + return path.Join(r.pathPrefix, EndpointInitUser) }, "changePasswordUrl": func() string { - return EndpointChangePassword + return path.Join(r.pathPrefix, EndpointChangePassword) }, "registrationUrl": func() string { - return EndpointRegister + return path.Join(r.pathPrefix, EndpointRegister) }, "selectedLanguage": func(l string) bool { return false diff --git a/internal/login/handler/resources_handler.go b/internal/ui/login/handler/resources_handler.go similarity index 100% rename from internal/login/handler/resources_handler.go rename to internal/ui/login/handler/resources_handler.go diff --git a/internal/login/handler/router.go b/internal/ui/login/handler/router.go similarity index 100% rename from internal/login/handler/router.go rename to internal/ui/login/handler/router.go diff --git a/internal/login/handler/select_user_handler.go b/internal/ui/login/handler/select_user_handler.go similarity index 99% rename from internal/login/handler/select_user_handler.go rename to internal/ui/login/handler/select_user_handler.go index 9b20a1544d..3503bd29d6 100644 --- a/internal/login/handler/select_user_handler.go +++ b/internal/ui/login/handler/select_user_handler.go @@ -1,8 +1,9 @@ package handler import ( - "github.com/caos/zitadel/internal/auth_request/model" "net/http" + + "github.com/caos/zitadel/internal/auth_request/model" ) const ( diff --git a/internal/ui/login/login.go b/internal/ui/login/login.go new file mode 100644 index 0000000000..5d928c9e3c --- /dev/null +++ b/internal/ui/login/login.go @@ -0,0 +1,14 @@ +package login + +import ( + "github.com/caos/zitadel/internal/auth/repository/eventsourcing" + "github.com/caos/zitadel/internal/ui/login/handler" +) + +type Config struct { + Handler handler.Config +} + +func Start(config Config, authRepo *eventsourcing.EsRepository, pathPrefix string) *handler.Login { + return handler.CreateLogin(config.Handler, authRepo, pathPrefix) +} diff --git a/internal/login/static/i18n/de.yaml b/internal/ui/login/static/i18n/de.yaml similarity index 100% rename from internal/login/static/i18n/de.yaml rename to internal/ui/login/static/i18n/de.yaml diff --git a/internal/login/static/i18n/en.yaml b/internal/ui/login/static/i18n/en.yaml similarity index 100% rename from internal/login/static/i18n/en.yaml rename to internal/ui/login/static/i18n/en.yaml diff --git a/internal/login/static/resources/fonts/ailerons/ailerons.otf b/internal/ui/login/static/resources/fonts/ailerons/ailerons.otf similarity index 100% rename from internal/login/static/resources/fonts/ailerons/ailerons.otf rename to internal/ui/login/static/resources/fonts/ailerons/ailerons.otf diff --git a/internal/login/static/resources/fonts/lato/Lato-Black.ttf b/internal/ui/login/static/resources/fonts/lato/Lato-Black.ttf similarity index 100% rename from internal/login/static/resources/fonts/lato/Lato-Black.ttf rename to internal/ui/login/static/resources/fonts/lato/Lato-Black.ttf diff --git a/internal/login/static/resources/fonts/lato/Lato-BlackItalic.ttf b/internal/ui/login/static/resources/fonts/lato/Lato-BlackItalic.ttf similarity index 100% rename from internal/login/static/resources/fonts/lato/Lato-BlackItalic.ttf rename to internal/ui/login/static/resources/fonts/lato/Lato-BlackItalic.ttf diff --git a/internal/login/static/resources/fonts/lato/Lato-Bold.ttf b/internal/ui/login/static/resources/fonts/lato/Lato-Bold.ttf similarity index 100% rename from internal/login/static/resources/fonts/lato/Lato-Bold.ttf rename to internal/ui/login/static/resources/fonts/lato/Lato-Bold.ttf diff --git a/internal/login/static/resources/fonts/lato/Lato-BoldItalic.ttf b/internal/ui/login/static/resources/fonts/lato/Lato-BoldItalic.ttf similarity index 100% rename from internal/login/static/resources/fonts/lato/Lato-BoldItalic.ttf rename to internal/ui/login/static/resources/fonts/lato/Lato-BoldItalic.ttf diff --git a/internal/login/static/resources/fonts/lato/Lato-Italic.ttf b/internal/ui/login/static/resources/fonts/lato/Lato-Italic.ttf similarity index 100% rename from internal/login/static/resources/fonts/lato/Lato-Italic.ttf rename to internal/ui/login/static/resources/fonts/lato/Lato-Italic.ttf diff --git a/internal/login/static/resources/fonts/lato/Lato-Light.ttf b/internal/ui/login/static/resources/fonts/lato/Lato-Light.ttf similarity index 100% rename from internal/login/static/resources/fonts/lato/Lato-Light.ttf rename to internal/ui/login/static/resources/fonts/lato/Lato-Light.ttf diff --git a/internal/login/static/resources/fonts/lato/Lato-LightItalic.ttf b/internal/ui/login/static/resources/fonts/lato/Lato-LightItalic.ttf similarity index 100% rename from internal/login/static/resources/fonts/lato/Lato-LightItalic.ttf rename to internal/ui/login/static/resources/fonts/lato/Lato-LightItalic.ttf diff --git a/internal/login/static/resources/fonts/lato/Lato-Regular.ttf b/internal/ui/login/static/resources/fonts/lato/Lato-Regular.ttf similarity index 100% rename from internal/login/static/resources/fonts/lato/Lato-Regular.ttf rename to internal/ui/login/static/resources/fonts/lato/Lato-Regular.ttf diff --git a/internal/login/static/resources/fonts/lato/Lato-Thin.ttf b/internal/ui/login/static/resources/fonts/lato/Lato-Thin.ttf similarity index 100% rename from internal/login/static/resources/fonts/lato/Lato-Thin.ttf rename to internal/ui/login/static/resources/fonts/lato/Lato-Thin.ttf diff --git a/internal/login/static/resources/fonts/lato/Lato-ThinItalic.ttf b/internal/ui/login/static/resources/fonts/lato/Lato-ThinItalic.ttf similarity index 100% rename from internal/login/static/resources/fonts/lato/Lato-ThinItalic.ttf rename to internal/ui/login/static/resources/fonts/lato/Lato-ThinItalic.ttf diff --git a/internal/login/static/resources/fonts/lato/OFL.txt b/internal/ui/login/static/resources/fonts/lato/OFL.txt similarity index 100% rename from internal/login/static/resources/fonts/lato/OFL.txt rename to internal/ui/login/static/resources/fonts/lato/OFL.txt diff --git a/internal/login/static/resources/fonts/material/MaterialIcons-Regular.eot b/internal/ui/login/static/resources/fonts/material/MaterialIcons-Regular.eot similarity index 100% rename from internal/login/static/resources/fonts/material/MaterialIcons-Regular.eot rename to internal/ui/login/static/resources/fonts/material/MaterialIcons-Regular.eot diff --git a/internal/login/static/resources/fonts/material/MaterialIcons-Regular.ttf b/internal/ui/login/static/resources/fonts/material/MaterialIcons-Regular.ttf similarity index 100% rename from internal/login/static/resources/fonts/material/MaterialIcons-Regular.ttf rename to internal/ui/login/static/resources/fonts/material/MaterialIcons-Regular.ttf diff --git a/internal/login/static/resources/fonts/material/MaterialIcons-Regular.woff b/internal/ui/login/static/resources/fonts/material/MaterialIcons-Regular.woff similarity index 100% rename from internal/login/static/resources/fonts/material/MaterialIcons-Regular.woff rename to internal/ui/login/static/resources/fonts/material/MaterialIcons-Regular.woff diff --git a/internal/login/static/resources/fonts/material/MaterialIcons-Regular.woff2 b/internal/ui/login/static/resources/fonts/material/MaterialIcons-Regular.woff2 similarity index 100% rename from internal/login/static/resources/fonts/material/MaterialIcons-Regular.woff2 rename to internal/ui/login/static/resources/fonts/material/MaterialIcons-Regular.woff2 diff --git a/internal/login/static/resources/generate.go b/internal/ui/login/static/resources/generate.go similarity index 100% rename from internal/login/static/resources/generate.go rename to internal/ui/login/static/resources/generate.go diff --git a/internal/login/static/resources/images/icon-newuser-dark-hover.png b/internal/ui/login/static/resources/images/icon-newuser-dark-hover.png similarity index 100% rename from internal/login/static/resources/images/icon-newuser-dark-hover.png rename to internal/ui/login/static/resources/images/icon-newuser-dark-hover.png diff --git a/internal/login/static/resources/images/icon-newuser-dark-hover@2x.png b/internal/ui/login/static/resources/images/icon-newuser-dark-hover@2x.png similarity index 100% rename from internal/login/static/resources/images/icon-newuser-dark-hover@2x.png rename to internal/ui/login/static/resources/images/icon-newuser-dark-hover@2x.png diff --git a/internal/login/static/resources/images/icon-newuser-dark.png b/internal/ui/login/static/resources/images/icon-newuser-dark.png similarity index 100% rename from internal/login/static/resources/images/icon-newuser-dark.png rename to internal/ui/login/static/resources/images/icon-newuser-dark.png diff --git a/internal/login/static/resources/images/icon-newuser-dark@2x.png b/internal/ui/login/static/resources/images/icon-newuser-dark@2x.png similarity index 100% rename from internal/login/static/resources/images/icon-newuser-dark@2x.png rename to internal/ui/login/static/resources/images/icon-newuser-dark@2x.png diff --git a/internal/login/static/resources/images/icon-newuser-light-hover.png b/internal/ui/login/static/resources/images/icon-newuser-light-hover.png similarity index 100% rename from internal/login/static/resources/images/icon-newuser-light-hover.png rename to internal/ui/login/static/resources/images/icon-newuser-light-hover.png diff --git a/internal/login/static/resources/images/icon-newuser-light-hover@2x.png b/internal/ui/login/static/resources/images/icon-newuser-light-hover@2x.png similarity index 100% rename from internal/login/static/resources/images/icon-newuser-light-hover@2x.png rename to internal/ui/login/static/resources/images/icon-newuser-light-hover@2x.png diff --git a/internal/login/static/resources/images/icon-newuser-light.png b/internal/ui/login/static/resources/images/icon-newuser-light.png similarity index 100% rename from internal/login/static/resources/images/icon-newuser-light.png rename to internal/ui/login/static/resources/images/icon-newuser-light.png diff --git a/internal/login/static/resources/images/icon-newuser-light@2x.png b/internal/ui/login/static/resources/images/icon-newuser-light@2x.png similarity index 100% rename from internal/login/static/resources/images/icon-newuser-light@2x.png rename to internal/ui/login/static/resources/images/icon-newuser-light@2x.png diff --git a/internal/login/static/resources/images/icon-user-dark-hover.png b/internal/ui/login/static/resources/images/icon-user-dark-hover.png similarity index 100% rename from internal/login/static/resources/images/icon-user-dark-hover.png rename to internal/ui/login/static/resources/images/icon-user-dark-hover.png diff --git a/internal/login/static/resources/images/icon-user-dark-hover@2x.png b/internal/ui/login/static/resources/images/icon-user-dark-hover@2x.png similarity index 100% rename from internal/login/static/resources/images/icon-user-dark-hover@2x.png rename to internal/ui/login/static/resources/images/icon-user-dark-hover@2x.png diff --git a/internal/login/static/resources/images/icon-user-dark.png b/internal/ui/login/static/resources/images/icon-user-dark.png similarity index 100% rename from internal/login/static/resources/images/icon-user-dark.png rename to internal/ui/login/static/resources/images/icon-user-dark.png diff --git a/internal/login/static/resources/images/icon-user-dark@2x.png b/internal/ui/login/static/resources/images/icon-user-dark@2x.png similarity index 100% rename from internal/login/static/resources/images/icon-user-dark@2x.png rename to internal/ui/login/static/resources/images/icon-user-dark@2x.png diff --git a/internal/login/static/resources/images/icon-user-light-hover.png b/internal/ui/login/static/resources/images/icon-user-light-hover.png similarity index 100% rename from internal/login/static/resources/images/icon-user-light-hover.png rename to internal/ui/login/static/resources/images/icon-user-light-hover.png diff --git a/internal/login/static/resources/images/icon-user-light-hover@2x.png b/internal/ui/login/static/resources/images/icon-user-light-hover@2x.png similarity index 100% rename from internal/login/static/resources/images/icon-user-light-hover@2x.png rename to internal/ui/login/static/resources/images/icon-user-light-hover@2x.png diff --git a/internal/login/static/resources/images/icon-user-light.png b/internal/ui/login/static/resources/images/icon-user-light.png similarity index 100% rename from internal/login/static/resources/images/icon-user-light.png rename to internal/ui/login/static/resources/images/icon-user-light.png diff --git a/internal/login/static/resources/images/icon-user-light@2x.png b/internal/ui/login/static/resources/images/icon-user-light@2x.png similarity index 100% rename from internal/login/static/resources/images/icon-user-light@2x.png rename to internal/ui/login/static/resources/images/icon-user-light@2x.png diff --git a/internal/login/static/resources/scripts/copy_to_clipboard.js b/internal/ui/login/static/resources/scripts/copy_to_clipboard.js similarity index 100% rename from internal/login/static/resources/scripts/copy_to_clipboard.js rename to internal/ui/login/static/resources/scripts/copy_to_clipboard.js diff --git a/internal/login/static/resources/themes/caos/css/dark.css b/internal/ui/login/static/resources/themes/caos/css/dark.css similarity index 100% rename from internal/login/static/resources/themes/caos/css/dark.css rename to internal/ui/login/static/resources/themes/caos/css/dark.css diff --git a/internal/login/static/resources/themes/caos/css/dark.css.map b/internal/ui/login/static/resources/themes/caos/css/dark.css.map similarity index 100% rename from internal/login/static/resources/themes/caos/css/dark.css.map rename to internal/ui/login/static/resources/themes/caos/css/dark.css.map diff --git a/internal/login/static/resources/themes/caos/css/light.css b/internal/ui/login/static/resources/themes/caos/css/light.css similarity index 100% rename from internal/login/static/resources/themes/caos/css/light.css rename to internal/ui/login/static/resources/themes/caos/css/light.css diff --git a/internal/login/static/resources/themes/caos/css/light.css.map b/internal/ui/login/static/resources/themes/caos/css/light.css.map similarity index 100% rename from internal/login/static/resources/themes/caos/css/light.css.map rename to internal/ui/login/static/resources/themes/caos/css/light.css.map diff --git a/internal/login/static/resources/themes/caos/favicon.ico b/internal/ui/login/static/resources/themes/caos/favicon.ico similarity index 100% rename from internal/login/static/resources/themes/caos/favicon.ico rename to internal/ui/login/static/resources/themes/caos/favicon.ico diff --git a/internal/login/static/resources/themes/caos/gradientdeco-full.svg b/internal/ui/login/static/resources/themes/caos/gradientdeco-full.svg similarity index 100% rename from internal/login/static/resources/themes/caos/gradientdeco-full.svg rename to internal/ui/login/static/resources/themes/caos/gradientdeco-full.svg diff --git a/internal/login/static/resources/themes/caos/logo-dark.png b/internal/ui/login/static/resources/themes/caos/logo-dark.png similarity index 100% rename from internal/login/static/resources/themes/caos/logo-dark.png rename to internal/ui/login/static/resources/themes/caos/logo-dark.png diff --git a/internal/login/static/resources/themes/caos/logo-light.png b/internal/ui/login/static/resources/themes/caos/logo-light.png similarity index 100% rename from internal/login/static/resources/themes/caos/logo-light.png rename to internal/ui/login/static/resources/themes/caos/logo-light.png diff --git a/internal/ui/login/static/resources/themes/scss/caos/dark.scss b/internal/ui/login/static/resources/themes/scss/caos/dark.scss new file mode 100644 index 0000000000..dd95159e7d --- /dev/null +++ b/internal/ui/login/static/resources/themes/scss/caos/dark.scss @@ -0,0 +1,3 @@ +@import "../variables"; +@import "variables"; +@import "../main"; diff --git a/internal/ui/login/static/resources/themes/scss/caos/light.scss b/internal/ui/login/static/resources/themes/scss/caos/light.scss new file mode 100644 index 0000000000..3a32c19485 --- /dev/null +++ b/internal/ui/login/static/resources/themes/scss/caos/light.scss @@ -0,0 +1,4 @@ +@import "../variables"; +@import "variables"; +@import "../main"; +@import "../light"; diff --git a/internal/login/static/resources/themes/scss/caos/variables.scss b/internal/ui/login/static/resources/themes/scss/caos/variables.scss similarity index 100% rename from internal/login/static/resources/themes/scss/caos/variables.scss rename to internal/ui/login/static/resources/themes/scss/caos/variables.scss diff --git a/internal/login/static/resources/themes/scss/fonts.scss b/internal/ui/login/static/resources/themes/scss/fonts.scss similarity index 100% rename from internal/login/static/resources/themes/scss/fonts.scss rename to internal/ui/login/static/resources/themes/scss/fonts.scss diff --git a/internal/login/static/resources/themes/scss/light.scss b/internal/ui/login/static/resources/themes/scss/light.scss similarity index 100% rename from internal/login/static/resources/themes/scss/light.scss rename to internal/ui/login/static/resources/themes/scss/light.scss diff --git a/internal/login/static/resources/themes/scss/main.scss b/internal/ui/login/static/resources/themes/scss/main.scss similarity index 100% rename from internal/login/static/resources/themes/scss/main.scss rename to internal/ui/login/static/resources/themes/scss/main.scss diff --git a/internal/login/static/resources/themes/scss/variables.scss b/internal/ui/login/static/resources/themes/scss/variables.scss similarity index 100% rename from internal/login/static/resources/themes/scss/variables.scss rename to internal/ui/login/static/resources/themes/scss/variables.scss diff --git a/internal/ui/login/static/resources/themes/scss/zitadel/dark.scss b/internal/ui/login/static/resources/themes/scss/zitadel/dark.scss new file mode 100644 index 0000000000..dd95159e7d --- /dev/null +++ b/internal/ui/login/static/resources/themes/scss/zitadel/dark.scss @@ -0,0 +1,3 @@ +@import "../variables"; +@import "variables"; +@import "../main"; diff --git a/internal/ui/login/static/resources/themes/scss/zitadel/light.scss b/internal/ui/login/static/resources/themes/scss/zitadel/light.scss new file mode 100644 index 0000000000..3a32c19485 --- /dev/null +++ b/internal/ui/login/static/resources/themes/scss/zitadel/light.scss @@ -0,0 +1,4 @@ +@import "../variables"; +@import "variables"; +@import "../main"; +@import "../light"; diff --git a/internal/login/static/resources/themes/scss/zitadel/variables.scss b/internal/ui/login/static/resources/themes/scss/zitadel/variables.scss similarity index 100% rename from internal/login/static/resources/themes/scss/zitadel/variables.scss rename to internal/ui/login/static/resources/themes/scss/zitadel/variables.scss diff --git a/internal/login/static/resources/themes/zitadel/css/dark.css b/internal/ui/login/static/resources/themes/zitadel/css/dark.css similarity index 100% rename from internal/login/static/resources/themes/zitadel/css/dark.css rename to internal/ui/login/static/resources/themes/zitadel/css/dark.css diff --git a/internal/login/static/resources/themes/zitadel/css/dark.css.map b/internal/ui/login/static/resources/themes/zitadel/css/dark.css.map similarity index 100% rename from internal/login/static/resources/themes/zitadel/css/dark.css.map rename to internal/ui/login/static/resources/themes/zitadel/css/dark.css.map diff --git a/internal/login/static/resources/themes/zitadel/css/light.css b/internal/ui/login/static/resources/themes/zitadel/css/light.css similarity index 100% rename from internal/login/static/resources/themes/zitadel/css/light.css rename to internal/ui/login/static/resources/themes/zitadel/css/light.css diff --git a/internal/login/static/resources/themes/zitadel/css/light.css.map b/internal/ui/login/static/resources/themes/zitadel/css/light.css.map similarity index 100% rename from internal/login/static/resources/themes/zitadel/css/light.css.map rename to internal/ui/login/static/resources/themes/zitadel/css/light.css.map diff --git a/internal/login/static/resources/themes/zitadel/favicon.ico b/internal/ui/login/static/resources/themes/zitadel/favicon.ico similarity index 100% rename from internal/login/static/resources/themes/zitadel/favicon.ico rename to internal/ui/login/static/resources/themes/zitadel/favicon.ico diff --git a/internal/login/static/resources/themes/zitadel/gradientdeco-full.svg b/internal/ui/login/static/resources/themes/zitadel/gradientdeco-full.svg similarity index 100% rename from internal/login/static/resources/themes/zitadel/gradientdeco-full.svg rename to internal/ui/login/static/resources/themes/zitadel/gradientdeco-full.svg diff --git a/internal/login/static/resources/themes/zitadel/logo-dark.png b/internal/ui/login/static/resources/themes/zitadel/logo-dark.png similarity index 100% rename from internal/login/static/resources/themes/zitadel/logo-dark.png rename to internal/ui/login/static/resources/themes/zitadel/logo-dark.png diff --git a/internal/login/static/resources/themes/zitadel/logo-light.png b/internal/ui/login/static/resources/themes/zitadel/logo-light.png similarity index 100% rename from internal/login/static/resources/themes/zitadel/logo-light.png rename to internal/ui/login/static/resources/themes/zitadel/logo-light.png diff --git a/internal/login/static/templates/change_password.html b/internal/ui/login/static/templates/change_password.html similarity index 100% rename from internal/login/static/templates/change_password.html rename to internal/ui/login/static/templates/change_password.html diff --git a/internal/login/static/templates/change_password_done.html b/internal/ui/login/static/templates/change_password_done.html similarity index 100% rename from internal/login/static/templates/change_password_done.html rename to internal/ui/login/static/templates/change_password_done.html diff --git a/internal/login/static/templates/error-message.html b/internal/ui/login/static/templates/error-message.html similarity index 100% rename from internal/login/static/templates/error-message.html rename to internal/ui/login/static/templates/error-message.html diff --git a/internal/login/static/templates/error.html b/internal/ui/login/static/templates/error.html similarity index 100% rename from internal/login/static/templates/error.html rename to internal/ui/login/static/templates/error.html diff --git a/internal/login/static/templates/footer.html b/internal/ui/login/static/templates/footer.html similarity index 100% rename from internal/login/static/templates/footer.html rename to internal/ui/login/static/templates/footer.html diff --git a/internal/login/static/templates/header.html b/internal/ui/login/static/templates/header.html similarity index 100% rename from internal/login/static/templates/header.html rename to internal/ui/login/static/templates/header.html diff --git a/internal/login/static/templates/init_password.html b/internal/ui/login/static/templates/init_password.html similarity index 100% rename from internal/login/static/templates/init_password.html rename to internal/ui/login/static/templates/init_password.html diff --git a/internal/login/static/templates/init_password_done.html b/internal/ui/login/static/templates/init_password_done.html similarity index 100% rename from internal/login/static/templates/init_password_done.html rename to internal/ui/login/static/templates/init_password_done.html diff --git a/internal/login/static/templates/init_user.html b/internal/ui/login/static/templates/init_user.html similarity index 100% rename from internal/login/static/templates/init_user.html rename to internal/ui/login/static/templates/init_user.html diff --git a/internal/login/static/templates/init_user_done.html b/internal/ui/login/static/templates/init_user_done.html similarity index 100% rename from internal/login/static/templates/init_user_done.html rename to internal/ui/login/static/templates/init_user_done.html diff --git a/internal/login/static/templates/login.html b/internal/ui/login/static/templates/login.html similarity index 100% rename from internal/login/static/templates/login.html rename to internal/ui/login/static/templates/login.html diff --git a/internal/login/static/templates/logout_done.html b/internal/ui/login/static/templates/logout_done.html similarity index 100% rename from internal/login/static/templates/logout_done.html rename to internal/ui/login/static/templates/logout_done.html diff --git a/internal/login/static/templates/mail_verification.html b/internal/ui/login/static/templates/mail_verification.html similarity index 100% rename from internal/login/static/templates/mail_verification.html rename to internal/ui/login/static/templates/mail_verification.html diff --git a/internal/login/static/templates/mail_verified.html b/internal/ui/login/static/templates/mail_verified.html similarity index 100% rename from internal/login/static/templates/mail_verified.html rename to internal/ui/login/static/templates/mail_verified.html diff --git a/internal/login/static/templates/main.html b/internal/ui/login/static/templates/main.html similarity index 100% rename from internal/login/static/templates/main.html rename to internal/ui/login/static/templates/main.html diff --git a/internal/login/static/templates/mfa_init_done.html b/internal/ui/login/static/templates/mfa_init_done.html similarity index 100% rename from internal/login/static/templates/mfa_init_done.html rename to internal/ui/login/static/templates/mfa_init_done.html diff --git a/internal/login/static/templates/mfa_init_verify.html b/internal/ui/login/static/templates/mfa_init_verify.html similarity index 100% rename from internal/login/static/templates/mfa_init_verify.html rename to internal/ui/login/static/templates/mfa_init_verify.html diff --git a/internal/login/static/templates/mfa_prompt.html b/internal/ui/login/static/templates/mfa_prompt.html similarity index 100% rename from internal/login/static/templates/mfa_prompt.html rename to internal/ui/login/static/templates/mfa_prompt.html diff --git a/internal/login/static/templates/mfa_verify.html b/internal/ui/login/static/templates/mfa_verify.html similarity index 100% rename from internal/login/static/templates/mfa_verify.html rename to internal/ui/login/static/templates/mfa_verify.html diff --git a/internal/login/static/templates/password.html b/internal/ui/login/static/templates/password.html similarity index 100% rename from internal/login/static/templates/password.html rename to internal/ui/login/static/templates/password.html diff --git a/internal/login/static/templates/password_reset_done.html b/internal/ui/login/static/templates/password_reset_done.html similarity index 100% rename from internal/login/static/templates/password_reset_done.html rename to internal/ui/login/static/templates/password_reset_done.html diff --git a/internal/login/static/templates/register.html b/internal/ui/login/static/templates/register.html similarity index 100% rename from internal/login/static/templates/register.html rename to internal/ui/login/static/templates/register.html diff --git a/internal/login/static/templates/select_user.html b/internal/ui/login/static/templates/select_user.html similarity index 100% rename from internal/login/static/templates/select_user.html rename to internal/ui/login/static/templates/select_user.html diff --git a/internal/login/statik/generate.go b/internal/ui/login/statik/generate.go similarity index 100% rename from internal/login/statik/generate.go rename to internal/ui/login/statik/generate.go diff --git a/internal/ui/ui.go b/internal/ui/ui.go new file mode 100644 index 0000000000..d40cf571a3 --- /dev/null +++ b/internal/ui/ui.go @@ -0,0 +1,42 @@ +package ui + +import ( + "context" + "net/http" + + http_util "github.com/caos/zitadel/internal/api/http" + "github.com/caos/zitadel/internal/ui/console" + "github.com/caos/zitadel/internal/ui/login" +) + +const ( + LoginHandler = "/login" + ConsoleHandler = "/console" + uiname = "ui" +) + +type Config struct { + Port string + Login login.Config + Console console.Config +} + +type UI struct { + port string + mux *http.ServeMux +} + +func Create(config Config) *UI { + return &UI{ + port: config.Port, + mux: http.NewServeMux(), + } +} + +func (u *UI) RegisterHandler(prefix string, handler http.Handler) { + http_util.RegisterHandler(u.mux, prefix, handler) +} + +func (u *UI) Start(ctx context.Context) { + http_util.Serve(ctx, u.mux, u.port, uiname) +} diff --git a/internal/user/repository/eventsourcing/eventstore_test.go b/internal/user/repository/eventsourcing/eventstore_test.go index 79a4d4c39d..f38e1eb5e4 100644 --- a/internal/user/repository/eventsourcing/eventstore_test.go +++ b/internal/user/repository/eventsourcing/eventstore_test.go @@ -7,16 +7,15 @@ import ( "testing" "time" - org_model "github.com/caos/zitadel/internal/org/model" - policy_model "github.com/caos/zitadel/internal/policy/model" - "github.com/golang/mock/gomock" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" req_model "github.com/caos/zitadel/internal/auth_request/model" "github.com/caos/zitadel/internal/crypto" caos_errs "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" + org_model "github.com/caos/zitadel/internal/org/model" + policy_model "github.com/caos/zitadel/internal/policy/model" "github.com/caos/zitadel/internal/user/model" repo_model "github.com/caos/zitadel/internal/user/repository/eventsourcing/model" ) @@ -106,7 +105,7 @@ func TestCreateUser(t *testing.T) { name: "init mail because no pw", args: args{ es: GetMockManipulateUserWithInitCodeGen(ctrl, repo_model.User{Profile: &repo_model.Profile{UserName: "UserName", FirstName: "FirstName", LastName: "LastName"}, Email: &repo_model.Email{EmailAddress: "EmailAddress", IsEmailVerified: true}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ ObjectRoot: es_models.ObjectRoot{Sequence: 1}, Profile: &model.Profile{ @@ -140,7 +139,7 @@ func TestCreateUser(t *testing.T) { name: "email as username", args: args{ es: GetMockManipulateUserWithInitCodeGen(ctrl, repo_model.User{Profile: &repo_model.Profile{UserName: "EmailAddress", FirstName: "FirstName", LastName: "LastName"}, Email: &repo_model.Email{EmailAddress: "EmailAddress", IsEmailVerified: true}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{Sequence: 1}, Profile: &model.Profile{ FirstName: "FirstName", @@ -172,7 +171,7 @@ func TestCreateUser(t *testing.T) { name: "with verified phone number", args: args{ es: GetMockManipulateUserWithInitCodeGen(ctrl, repo_model.User{Profile: &repo_model.Profile{UserName: "EmailAddress", FirstName: "FirstName", LastName: "LastName"}, Email: &repo_model.Email{EmailAddress: "EmailAddress", IsEmailVerified: true}, Phone: &repo_model.Phone{PhoneNumber: "+41711234567", IsPhoneVerified: true}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{Sequence: 1}, Profile: &model.Profile{ FirstName: "FirstName", @@ -213,7 +212,7 @@ func TestCreateUser(t *testing.T) { name: "with password", args: args{ es: GetMockManipulateUserWithPasswordAndEmailCodeGen(ctrl, repo_model.User{Profile: &repo_model.Profile{UserName: "UserName", FirstName: "FirstName", LastName: "LastName"}, Email: &repo_model.Email{EmailAddress: "EmailAddress", IsEmailVerified: true}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{Sequence: 1}, Profile: &model.Profile{ FirstName: "FirstName", @@ -247,7 +246,7 @@ func TestCreateUser(t *testing.T) { name: "create user invalid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, policy: &policy_model.PasswordComplexityPolicy{}, orgPolicy: &org_model.OrgIamPolicy{}, @@ -260,7 +259,7 @@ func TestCreateUser(t *testing.T) { name: "create user pw policy nil", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, orgPolicy: &org_model.OrgIamPolicy{}, }, @@ -272,7 +271,7 @@ func TestCreateUser(t *testing.T) { name: "create user org policy nil", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, policy: &policy_model.PasswordComplexityPolicy{}, }, @@ -331,7 +330,7 @@ func TestRegisterUser(t *testing.T) { name: "register user, ok", args: args{ es: GetMockManipulateUserWithPasswordAndEmailCodeGen(ctrl, repo_model.User{Profile: &repo_model.Profile{UserName: "UserName", FirstName: "FirstName", LastName: "LastName"}, Email: &repo_model.Email{EmailAddress: "EmailAddress"}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ ObjectRoot: es_models.ObjectRoot{Sequence: 1}, Profile: &model.Profile{ @@ -367,7 +366,7 @@ func TestRegisterUser(t *testing.T) { name: "email as username", args: args{ es: GetMockManipulateUserWithPasswordAndEmailCodeGen(ctrl, repo_model.User{Profile: &repo_model.Profile{UserName: "EmailAddress", FirstName: "FirstName", LastName: "LastName"}, Email: &repo_model.Email{EmailAddress: "EmailAddress"}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{Sequence: 1}, Profile: &model.Profile{ FirstName: "FirstName", @@ -401,7 +400,7 @@ func TestRegisterUser(t *testing.T) { name: "invalid user", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{Sequence: 1}}, policy: &policy_model.PasswordComplexityPolicy{}, orgPolicy: &org_model.OrgIamPolicy{}, @@ -415,7 +414,7 @@ func TestRegisterUser(t *testing.T) { name: "register user no password", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{Sequence: 1}, Profile: &model.Profile{ UserName: "EmailAddress", @@ -438,7 +437,7 @@ func TestRegisterUser(t *testing.T) { name: "no resourceowner", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{Sequence: 1}, Profile: &model.Profile{ UserName: "EmailAddress", @@ -460,7 +459,7 @@ func TestRegisterUser(t *testing.T) { name: "no pw policy", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{Sequence: 1}, Profile: &model.Profile{ UserName: "EmailAddress", @@ -481,7 +480,7 @@ func TestRegisterUser(t *testing.T) { name: "no org policy", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), user: &model.User{ObjectRoot: es_models.ObjectRoot{Sequence: 1}, Profile: &model.Profile{ UserName: "EmailAddress", @@ -536,7 +535,7 @@ func TestDeactivateUser(t *testing.T) { name: "deactivate user, ok", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -547,7 +546,7 @@ func TestDeactivateUser(t *testing.T) { name: "deactivate user with inactive state", args: args{ es: GetMockManipulateInactiveUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -558,7 +557,7 @@ func TestDeactivateUser(t *testing.T) { name: "existing not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -603,7 +602,7 @@ func TestReactivateUser(t *testing.T) { name: "reactivate user, ok", args: args{ es: GetMockManipulateInactiveUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -614,7 +613,7 @@ func TestReactivateUser(t *testing.T) { name: "reactivate user with inital state", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -625,7 +624,7 @@ func TestReactivateUser(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -670,7 +669,7 @@ func TestLockUser(t *testing.T) { name: "lock user, ok", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -681,7 +680,7 @@ func TestLockUser(t *testing.T) { name: "lock user with locked state", args: args{ es: GetMockManipulateLockedUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -692,7 +691,7 @@ func TestLockUser(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -737,7 +736,7 @@ func TestUnlockUser(t *testing.T) { name: "unlock user, ok", args: args{ es: GetMockManipulateLockedUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -748,7 +747,7 @@ func TestUnlockUser(t *testing.T) { name: "unlock user not locked state", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -759,7 +758,7 @@ func TestUnlockUser(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -810,7 +809,7 @@ func TestGetInitCodeByID(t *testing.T) { UserName: "UserName", }, }), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -821,7 +820,7 @@ func TestGetInitCodeByID(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -832,7 +831,7 @@ func TestGetInitCodeByID(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -877,7 +876,7 @@ func TestCreateInitCode(t *testing.T) { name: "create init code", args: args{ es: GetMockManipulateUserWithInitCodeGen(ctrl, repo_model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -888,7 +887,7 @@ func TestCreateInitCode(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -899,7 +898,7 @@ func TestCreateInitCode(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -943,7 +942,7 @@ func TestInitCodeSent(t *testing.T) { name: "sent init", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{}, @@ -952,7 +951,7 @@ func TestInitCodeSent(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -963,7 +962,7 @@ func TestInitCodeSent(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1014,7 +1013,7 @@ func TestInitCodeVerify(t *testing.T) { }, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, verifyCode: "code", userID: "userID", @@ -1032,7 +1031,7 @@ func TestInitCodeVerify(t *testing.T) { }, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", verifyCode: "code", @@ -1050,7 +1049,7 @@ func TestInitCodeVerify(t *testing.T) { }, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", verifyCode: "code", @@ -1061,7 +1060,7 @@ func TestInitCodeVerify(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "", verifyCode: "code", @@ -1075,7 +1074,7 @@ func TestInitCodeVerify(t *testing.T) { name: "password policy not matched", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{HasNumber: true}, userID: "userID", verifyCode: "code", @@ -1089,7 +1088,7 @@ func TestInitCodeVerify(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEventsWithPw(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", password: "password", @@ -1133,7 +1132,7 @@ func TestSkipMfaInit(t *testing.T) { name: "skip mfa init", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{}, @@ -1142,7 +1141,7 @@ func TestSkipMfaInit(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -1153,7 +1152,7 @@ func TestSkipMfaInit(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1195,7 +1194,7 @@ func TestPasswordID(t *testing.T) { name: "get by id, ok", args: args{ es: GetMockManipulateUserFull(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1206,7 +1205,7 @@ func TestPasswordID(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -1217,7 +1216,7 @@ func TestPasswordID(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1228,7 +1227,7 @@ func TestPasswordID(t *testing.T) { name: "existing pw not found", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1274,7 +1273,7 @@ func TestSetOneTimePassword(t *testing.T) { name: "create one time pw", args: args{ es: GetMockManipulateUserWithPasswordCodeGen(ctrl, repo_model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID"}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, password: &model.Password{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID"}, SecretString: "Password"}, }, @@ -1286,7 +1285,7 @@ func TestSetOneTimePassword(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, password: &model.Password{ObjectRoot: es_models.ObjectRoot{AggregateID: ""}, SecretString: "Password"}, }, @@ -1298,7 +1297,7 @@ func TestSetOneTimePassword(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, password: &model.Password{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID"}, SecretString: "Password"}, }, @@ -1354,7 +1353,7 @@ func TestCheckPassword(t *testing.T) { }}, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", password: "password", authRequest: &req_model.AuthRequest{ @@ -1373,7 +1372,7 @@ func TestCheckPassword(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "", password: "password", }, @@ -1385,7 +1384,7 @@ func TestCheckPassword(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", password: "password", }, @@ -1401,7 +1400,7 @@ func TestCheckPassword(t *testing.T) { ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID"}, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", password: "password", }, @@ -1422,7 +1421,7 @@ func TestCheckPassword(t *testing.T) { }}, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", password: "wrong password", authRequest: &req_model.AuthRequest{ @@ -1486,7 +1485,7 @@ func TestSetPassword(t *testing.T) { }}, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", code: "code", @@ -1498,7 +1497,7 @@ func TestSetPassword(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "", code: "code", @@ -1512,7 +1511,7 @@ func TestSetPassword(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", code: "code", @@ -1530,7 +1529,7 @@ func TestSetPassword(t *testing.T) { ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID"}, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", code: "code", @@ -1554,7 +1553,7 @@ func TestSetPassword(t *testing.T) { }}, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", code: "code", @@ -1611,7 +1610,7 @@ func TestChangePassword(t *testing.T) { }}, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", old: "old", @@ -1625,7 +1624,7 @@ func TestChangePassword(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "", old: "old", @@ -1639,7 +1638,7 @@ func TestChangePassword(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", old: "old", @@ -1657,7 +1656,7 @@ func TestChangePassword(t *testing.T) { ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID"}, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", old: "old", @@ -1680,7 +1679,7 @@ func TestChangePassword(t *testing.T) { }}, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), policy: &policy_model.PasswordComplexityPolicy{}, userID: "userID", old: "old", @@ -1703,7 +1702,7 @@ func TestChangePassword(t *testing.T) { }}, }, ), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", old: "old", new: "new", @@ -1751,7 +1750,7 @@ func TestRequestSetPassword(t *testing.T) { name: "create pw", args: args{ es: GetMockManipulateUserWithPasswordCodeGen(ctrl, repo_model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID"}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", notifyType: model.NotificationTypeEmail, }, @@ -1773,7 +1772,7 @@ func TestRequestSetPassword(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", notifyType: model.NotificationTypeEmail, }, @@ -1815,7 +1814,7 @@ func TestPasswordCodeSent(t *testing.T) { name: "sent password code", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{}, @@ -1824,7 +1823,7 @@ func TestPasswordCodeSent(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -1835,7 +1834,7 @@ func TestPasswordCodeSent(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1877,7 +1876,7 @@ func TestProfileByID(t *testing.T) { name: "get by id, ok", args: args{ es: GetMockManipulateUserFull(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1888,7 +1887,7 @@ func TestProfileByID(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -1899,7 +1898,7 @@ func TestProfileByID(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1944,7 +1943,7 @@ func TestChangeProfile(t *testing.T) { name: "get by id, ok", args: args{ es: GetMockManipulateUserFull(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), profile: &model.Profile{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, FirstName: "FirstName Changed", LastName: "LastName Changed"}, }, res: res{ @@ -1955,7 +1954,7 @@ func TestChangeProfile(t *testing.T) { name: "invalid profile", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), profile: &model.Profile{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -1966,7 +1965,7 @@ func TestChangeProfile(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), profile: &model.Profile{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, FirstName: "FirstName Changed", LastName: "LastName Changed"}, }, res: res{ @@ -2011,7 +2010,7 @@ func TestEmailByID(t *testing.T) { name: "get by id, ok", args: args{ es: GetMockManipulateUserFull(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -2022,7 +2021,7 @@ func TestEmailByID(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -2033,7 +2032,7 @@ func TestEmailByID(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -2078,7 +2077,7 @@ func TestChangeEmail(t *testing.T) { name: "change email address, verified", args: args{ es: GetMockManipulateUserFull(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), email: &model.Email{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, EmailAddress: "EmailAddressChanged", IsEmailVerified: true}, }, res: res{ @@ -2089,7 +2088,7 @@ func TestChangeEmail(t *testing.T) { name: "change email not verified, getting code", args: args{ es: GetMockManipulateUserWithEmailCodeGen(ctrl, repo_model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Profile: &repo_model.Profile{UserName: "UserName"}, Email: &repo_model.Email{EmailAddress: "EmailAddress"}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), email: &model.Email{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, EmailAddress: "EmailAddressChanged", IsEmailVerified: false}, }, res: res{ @@ -2100,7 +2099,7 @@ func TestChangeEmail(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), email: &model.Email{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}, EmailAddress: "EmailAddressChanged", IsEmailVerified: true}, }, res: res{ @@ -2111,7 +2110,7 @@ func TestChangeEmail(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), email: &model.Email{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, EmailAddress: "EmailAddressChanged", IsEmailVerified: true}, }, res: res{ @@ -2159,7 +2158,7 @@ func TestVerifyEmail(t *testing.T) { name: "verify email code ok", args: args{ es: GetMockManipulateUserWithEmailCode(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", code: "code", }, @@ -2169,7 +2168,7 @@ func TestVerifyEmail(t *testing.T) { name: "verify email code wrong", args: args{ es: GetMockManipulateUserWithEmailCode(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", code: "wrong", }, @@ -2181,7 +2180,7 @@ func TestVerifyEmail(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), code: "code", }, res: res{ @@ -2192,7 +2191,7 @@ func TestVerifyEmail(t *testing.T) { name: "empty code", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", }, res: res{ @@ -2203,7 +2202,7 @@ func TestVerifyEmail(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", code: "code", }, @@ -2245,7 +2244,7 @@ func TestCreateEmailVerificationCode(t *testing.T) { name: "create email verification code ok", args: args{ es: GetMockManipulateUserWithEmailCodeGen(ctrl, repo_model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Profile: &repo_model.Profile{UserName: "UserName"}, Email: &repo_model.Email{EmailAddress: "EmailAddress"}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", }, res: res{}, @@ -2254,7 +2253,7 @@ func TestCreateEmailVerificationCode(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), }, res: res{ errFunc: caos_errs.IsPreconditionFailed, @@ -2264,7 +2263,7 @@ func TestCreateEmailVerificationCode(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", }, res: res{ @@ -2275,7 +2274,7 @@ func TestCreateEmailVerificationCode(t *testing.T) { name: "no email found", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", }, res: res{ @@ -2286,7 +2285,7 @@ func TestCreateEmailVerificationCode(t *testing.T) { name: "already verified", args: args{ es: GetMockManipulateUserVerifiedEmail(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", }, res: res{ @@ -2327,7 +2326,7 @@ func TestEmailVerificationCodeSent(t *testing.T) { name: "sent email verify code", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{}, @@ -2336,7 +2335,7 @@ func TestEmailVerificationCodeSent(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -2347,7 +2346,7 @@ func TestEmailVerificationCodeSent(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -2389,7 +2388,7 @@ func TestPhoneByID(t *testing.T) { name: "get by id, ok", args: args{ es: GetMockManipulateUserFull(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -2400,7 +2399,7 @@ func TestPhoneByID(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -2411,7 +2410,7 @@ func TestPhoneByID(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -2456,7 +2455,7 @@ func TestChangePhone(t *testing.T) { name: "change phone, verified", args: args{ es: GetMockManipulateUserFull(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), phone: &model.Phone{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, PhoneNumber: "0711234567", IsPhoneVerified: true}, }, res: res{ @@ -2467,7 +2466,7 @@ func TestChangePhone(t *testing.T) { name: "change phone not verified, getting code", args: args{ es: GetMockManipulateUserWithPhoneCodeGen(ctrl, repo_model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Profile: &repo_model.Profile{UserName: "UserName"}, Phone: &repo_model.Phone{PhoneNumber: "PhoneNumber"}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), phone: &model.Phone{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, PhoneNumber: "+41711234567", IsPhoneVerified: false}, }, res: res{ @@ -2478,7 +2477,7 @@ func TestChangePhone(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), phone: &model.Phone{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}, PhoneNumber: "PhoneNumberChanged", IsPhoneVerified: true}, }, res: res{ @@ -2489,7 +2488,7 @@ func TestChangePhone(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), phone: &model.Phone{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, PhoneNumber: "+41711234567", IsPhoneVerified: true}, }, res: res{ @@ -2537,7 +2536,7 @@ func TestVerifyPhone(t *testing.T) { name: "verify code ok", args: args{ es: GetMockManipulateUserWithPhoneCode(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", code: "code", }, @@ -2547,7 +2546,7 @@ func TestVerifyPhone(t *testing.T) { name: "verify code wrong", args: args{ es: GetMockManipulateUserWithPhoneCode(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", code: "wrong", }, @@ -2559,7 +2558,7 @@ func TestVerifyPhone(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), code: "Code", }, res: res{ @@ -2570,7 +2569,7 @@ func TestVerifyPhone(t *testing.T) { name: "empty code", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", }, res: res{ @@ -2581,7 +2580,7 @@ func TestVerifyPhone(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", code: "Code", }, @@ -2624,7 +2623,7 @@ func TestRemovePhone(t *testing.T) { name: "remove phone ok", args: args{ es: GetMockManipulateUserVerifiedPhone(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", code: "code", }, @@ -2634,7 +2633,7 @@ func TestRemovePhone(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), code: "Code", }, res: res{ @@ -2645,7 +2644,7 @@ func TestRemovePhone(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", code: "Code", }, @@ -2687,7 +2686,7 @@ func TestCreatePhoneVerificationCode(t *testing.T) { name: "create phone verification code okk", args: args{ es: GetMockManipulateUserWithPhoneCodeGen(ctrl, repo_model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Profile: &repo_model.Profile{UserName: "UserName"}, Phone: &repo_model.Phone{PhoneNumber: "PhoneNumber"}}), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", }, res: res{}, @@ -2696,7 +2695,7 @@ func TestCreatePhoneVerificationCode(t *testing.T) { name: "no userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), }, res: res{ errFunc: caos_errs.IsPreconditionFailed, @@ -2706,7 +2705,7 @@ func TestCreatePhoneVerificationCode(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", }, res: res{ @@ -2717,7 +2716,7 @@ func TestCreatePhoneVerificationCode(t *testing.T) { name: "no phone found", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", }, res: res{ @@ -2728,7 +2727,7 @@ func TestCreatePhoneVerificationCode(t *testing.T) { name: "already verified", args: args{ es: GetMockManipulateUserVerifiedPhone(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", }, res: res{ @@ -2769,7 +2768,7 @@ func TestPhoneVerificationCodeSent(t *testing.T) { name: "sent phone verification code", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{}, @@ -2778,7 +2777,7 @@ func TestPhoneVerificationCodeSent(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -2789,7 +2788,7 @@ func TestPhoneVerificationCodeSent(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -2831,7 +2830,7 @@ func TestAddressByID(t *testing.T) { name: "get by id, ok", args: args{ es: GetMockManipulateUserFull(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -2842,7 +2841,7 @@ func TestAddressByID(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -2853,7 +2852,7 @@ func TestAddressByID(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -2898,7 +2897,7 @@ func TestChangeAddress(t *testing.T) { name: "change address ok", args: args{ es: GetMockManipulateUserFull(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), address: &model.Address{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Country: "CountryChanged"}, }, res: res{ @@ -2909,7 +2908,7 @@ func TestChangeAddress(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), address: &model.Address{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}, Country: "CountryChanged"}, }, res: res{ @@ -2920,7 +2919,7 @@ func TestChangeAddress(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), address: &model.Address{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, Country: "CountryCountry"}, }, res: res{ @@ -2964,7 +2963,7 @@ func TestAddOTP(t *testing.T) { name: "add ok", args: args{ es: GetMockManipulateUserWithOTPGen(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", }, }, @@ -2972,7 +2971,7 @@ func TestAddOTP(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "", }, res: res{ @@ -2983,7 +2982,7 @@ func TestAddOTP(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "AggregateID", }, res: res{ @@ -3040,7 +3039,7 @@ func TestCheckMfaOTPSetup(t *testing.T) { } return es }(), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "id", code: "code", }, @@ -3056,7 +3055,7 @@ func TestCheckMfaOTPSetup(t *testing.T) { } return es }(), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "id", code: "code", }, @@ -3068,7 +3067,7 @@ func TestCheckMfaOTPSetup(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), code: "code", }, res: res{ @@ -3079,7 +3078,7 @@ func TestCheckMfaOTPSetup(t *testing.T) { name: "empty code", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", }, res: res{ @@ -3090,7 +3089,7 @@ func TestCheckMfaOTPSetup(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", code: "code", }, @@ -3102,7 +3101,7 @@ func TestCheckMfaOTPSetup(t *testing.T) { name: "user has no otp", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", code: "code", }, @@ -3152,7 +3151,7 @@ func TestCheckMfaOTP(t *testing.T) { } return es }(), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "id", code: "code", authRequest: &req_model.AuthRequest{ @@ -3177,7 +3176,7 @@ func TestCheckMfaOTP(t *testing.T) { } return es }(), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "id", code: "code", authRequest: &req_model.AuthRequest{ @@ -3198,7 +3197,7 @@ func TestCheckMfaOTP(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), code: "code", }, res: res{ @@ -3209,7 +3208,7 @@ func TestCheckMfaOTP(t *testing.T) { name: "empty code", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", }, res: res{ @@ -3220,7 +3219,7 @@ func TestCheckMfaOTP(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", code: "code", }, @@ -3232,7 +3231,7 @@ func TestCheckMfaOTP(t *testing.T) { name: "user has no otp", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), userID: "userID", code: "code", }, @@ -3274,7 +3273,7 @@ func TestRemoveOTP(t *testing.T) { name: "remove ok", args: args{ es: GetMockManipulateUserWithOTP(ctrl, false, true), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, }, @@ -3282,7 +3281,7 @@ func TestRemoveOTP(t *testing.T) { name: "empty userid", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -3293,7 +3292,7 @@ func TestRemoveOTP(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -3304,7 +3303,7 @@ func TestRemoveOTP(t *testing.T) { name: "user has no otp", args: args{ es: GetMockManipulateUser(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -3355,7 +3354,7 @@ func TestChangesUser(t *testing.T) { limit: 0, }, res: res{ - changes: &model.UserChanges{Changes: []*model.UserChange{&model.UserChange{EventType: "", Sequence: 1, ModifierId: ""}}, LastSequence: 1}, + changes: &model.UserChanges{Changes: []*model.UserChange{{EventType: "", Sequence: 1, ModifierId: ""}}, LastSequence: 1}, user: &model.Profile{FirstName: "Hans", LastName: "Muster", UserName: "HansMuster"}, }, }, diff --git a/internal/user/repository/eventsourcing/user_test.go b/internal/user/repository/eventsourcing/user_test.go index 3bb063a46f..d08b112a9f 100644 --- a/internal/user/repository/eventsourcing/user_test.go +++ b/internal/user/repository/eventsourcing/user_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/user/repository/eventsourcing/model" @@ -124,7 +124,7 @@ func TestUserCreateAggregate(t *testing.T) { { name: "user create aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress"}, @@ -141,7 +141,7 @@ func TestUserCreateAggregate(t *testing.T) { { name: "new user nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -153,7 +153,7 @@ func TestUserCreateAggregate(t *testing.T) { { name: "create with init code", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress"}, @@ -171,7 +171,7 @@ func TestUserCreateAggregate(t *testing.T) { { name: "create with phone code", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress"}, @@ -189,7 +189,7 @@ func TestUserCreateAggregate(t *testing.T) { { name: "create with email verified", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress", IsEmailVerified: true}, @@ -206,7 +206,7 @@ func TestUserCreateAggregate(t *testing.T) { { name: "create with phone verified", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress"}, @@ -272,7 +272,7 @@ func TestUserRegisterAggregate(t *testing.T) { { name: "user register aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress"}, @@ -289,7 +289,7 @@ func TestUserRegisterAggregate(t *testing.T) { { name: "new user nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: nil, emailCode: &model.EmailCode{}, resourceOwner: "newResourceowner", @@ -302,7 +302,7 @@ func TestUserRegisterAggregate(t *testing.T) { { name: "code nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), resourceOwner: "newResourceowner", new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, @@ -317,7 +317,7 @@ func TestUserRegisterAggregate(t *testing.T) { { name: "create with email code", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress"}, @@ -334,7 +334,7 @@ func TestUserRegisterAggregate(t *testing.T) { { name: "create no resourceowner", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress"}, @@ -388,7 +388,7 @@ func TestUserDeactivateAggregate(t *testing.T) { { name: "user deactivate aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -402,7 +402,7 @@ func TestUserDeactivateAggregate(t *testing.T) { { name: "new user nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -447,7 +447,7 @@ func TestUserReactivateAggregate(t *testing.T) { { name: "user reactivate aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -461,7 +461,7 @@ func TestUserReactivateAggregate(t *testing.T) { { name: "new user nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -506,7 +506,7 @@ func TestUserLockedAggregate(t *testing.T) { { name: "user locked aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -520,7 +520,7 @@ func TestUserLockedAggregate(t *testing.T) { { name: "new user nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -565,7 +565,7 @@ func TestUserUnlockedAggregate(t *testing.T) { { name: "user unlocked aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -579,7 +579,7 @@ func TestUserUnlockedAggregate(t *testing.T) { { name: "new user nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), new: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -626,7 +626,7 @@ func TestUserInitCodeAggregate(t *testing.T) { { name: "user unlocked aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -641,7 +641,7 @@ func TestUserInitCodeAggregate(t *testing.T) { { name: "code nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -688,7 +688,7 @@ func TestInitCodeSentAggregate(t *testing.T) { { name: "user init code sent aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -737,7 +737,7 @@ func TestInitCodeVerifiedAggregate(t *testing.T) { { name: "user init code only email verify", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress"}, @@ -752,7 +752,7 @@ func TestInitCodeVerifiedAggregate(t *testing.T) { { name: "user init code only password", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress", IsEmailVerified: true}, @@ -767,7 +767,7 @@ func TestInitCodeVerifiedAggregate(t *testing.T) { { name: "user init code email and pw", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, Email: &model.Email{EmailAddress: "EmailAddress"}, @@ -819,7 +819,7 @@ func TestInitCodeCheckFailedAggregate(t *testing.T) { { name: "mfa skipped init ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -867,7 +867,7 @@ func TestSkipMfaAggregate(t *testing.T) { { name: "init code check failed", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -916,7 +916,7 @@ func TestChangePasswordAggregate(t *testing.T) { { name: "user password aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -931,7 +931,7 @@ func TestChangePasswordAggregate(t *testing.T) { { name: "password nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -979,7 +979,7 @@ func TestRequestSetPasswordAggregate(t *testing.T) { { name: "user password aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -994,7 +994,7 @@ func TestRequestSetPasswordAggregate(t *testing.T) { { name: "request nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -1041,7 +1041,7 @@ func TestPasswordCodeSentAggregate(t *testing.T) { { name: "user password code sent aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1090,7 +1090,7 @@ func TestChangeProfileAggregate(t *testing.T) { { name: "user profile aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{FirstName: "FirstName"}, }, @@ -1105,7 +1105,7 @@ func TestChangeProfileAggregate(t *testing.T) { { name: "profile nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Profile: &model.Profile{UserName: "UserName"}, }, @@ -1154,7 +1154,7 @@ func TestChangeEmailAggregate(t *testing.T) { { name: "change email aggregate, verified email", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Email: &model.Email{EmailAddress: "EmailAddress"}, }, @@ -1169,7 +1169,7 @@ func TestChangeEmailAggregate(t *testing.T) { { name: "with code", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Email: &model.Email{EmailAddress: "EmailAddress"}, }, @@ -1185,7 +1185,7 @@ func TestChangeEmailAggregate(t *testing.T) { { name: "email nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Email: &model.Email{EmailAddress: "Changed"}, }, @@ -1198,7 +1198,7 @@ func TestChangeEmailAggregate(t *testing.T) { { name: "email verified and code not nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Email: &model.Email{EmailAddress: "Changed", IsEmailVerified: true}, }, @@ -1212,7 +1212,7 @@ func TestChangeEmailAggregate(t *testing.T) { { name: "email not verified and code nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Email: &model.Email{EmailAddress: "Changed"}, }, @@ -1264,7 +1264,7 @@ func TestVerifyEmailAggregate(t *testing.T) { { name: "user email verified aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1312,7 +1312,7 @@ func TestVerificationFailedEmailAggregate(t *testing.T) { { name: "user email verification failed aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1361,7 +1361,7 @@ func TestCreateEmailCodeAggregate(t *testing.T) { { name: "with code", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Email: &model.Email{EmailAddress: "EmailAddress"}, }, @@ -1376,7 +1376,7 @@ func TestCreateEmailCodeAggregate(t *testing.T) { { name: "code nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Email: &model.Email{EmailAddress: "Changed"}, }, @@ -1428,7 +1428,7 @@ func TestEmailCodeSentAggregate(t *testing.T) { { name: "user email code sent aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1478,7 +1478,7 @@ func TestChangePhoneAggregate(t *testing.T) { { name: "phone change aggregate verified phone", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Phone: &model.Phone{PhoneNumber: "+41791234567"}, }, @@ -1493,7 +1493,7 @@ func TestChangePhoneAggregate(t *testing.T) { { name: "with code", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Phone: &model.Phone{PhoneNumber: "PhoneNumber"}, }, @@ -1509,7 +1509,7 @@ func TestChangePhoneAggregate(t *testing.T) { { name: "phone nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Phone: &model.Phone{PhoneNumber: "Changed"}, }, @@ -1522,7 +1522,7 @@ func TestChangePhoneAggregate(t *testing.T) { { name: "phone verified and code not nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Phone: &model.Phone{PhoneNumber: "Changed"}, }, @@ -1537,7 +1537,7 @@ func TestChangePhoneAggregate(t *testing.T) { { name: "phone not verified and code nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Phone: &model.Phone{PhoneNumber: "Changed"}, }, @@ -1590,7 +1590,7 @@ func TestVerifyPhoneAggregate(t *testing.T) { { name: "user phone verified aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Phone: &model.Phone{PhoneNumber: "PhoneNumber"}, }, @@ -1640,7 +1640,7 @@ func TestRemovePhoneAggregate(t *testing.T) { { name: "user phone removed aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Phone: &model.Phone{PhoneNumber: "PhoneNumber"}, }, @@ -1690,7 +1690,7 @@ func TestVerificationFailedPhoneAggregate(t *testing.T) { { name: "user phone verification failed aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Phone: &model.Phone{PhoneNumber: "PhoneNumber"}, }, @@ -1741,7 +1741,7 @@ func TestCreatePhoneCodeAggregate(t *testing.T) { { name: "with code", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Email: &model.Email{EmailAddress: "EmailAddress"}, }, @@ -1756,7 +1756,7 @@ func TestCreatePhoneCodeAggregate(t *testing.T) { { name: "code nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Email: &model.Email{EmailAddress: "Changed"}, }, @@ -1808,7 +1808,7 @@ func TestPhoneCodeSentAggregate(t *testing.T) { { name: "user phone code sent aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1857,7 +1857,7 @@ func TestChangeAddressAggregate(t *testing.T) { { name: "user address change aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Address: &model.Address{Locality: "Locality"}, }, @@ -1872,7 +1872,7 @@ func TestChangeAddressAggregate(t *testing.T) { { name: "address nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, Address: &model.Address{Locality: "Changed"}, }, @@ -1925,7 +1925,7 @@ func TestOtpAddAggregate(t *testing.T) { { name: "user otp change aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, otp: &model.OTP{}, aggCreator: models.NewAggregateCreator("Test"), @@ -1938,7 +1938,7 @@ func TestOtpAddAggregate(t *testing.T) { { name: "otp nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -1988,7 +1988,7 @@ func TestOtpVerifyAggregate(t *testing.T) { { name: "user otp change aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -2036,7 +2036,7 @@ func TestOtpRemoveAggregate(t *testing.T) { { name: "user otp change aggregate ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.User{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, aggCreator: models.NewAggregateCreator("Test"), }, diff --git a/internal/usergrant/repository/eventsourcing/eventstore_test.go b/internal/usergrant/repository/eventsourcing/eventstore_test.go index 828885b967..ffbda1e2f2 100644 --- a/internal/usergrant/repository/eventsourcing/eventstore_test.go +++ b/internal/usergrant/repository/eventsourcing/eventstore_test.go @@ -2,13 +2,15 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" + "reflect" + "testing" + + "github.com/golang/mock/gomock" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/usergrant/model" - "github.com/golang/mock/gomock" - "reflect" - "testing" ) func TestUserByID(t *testing.T) { @@ -106,7 +108,7 @@ func TestAddUserGrant(t *testing.T) { name: "add grant, ok", args: args{ es: GetMockManipulateUserGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, ProjectID: "ProjectID", UserID: "UserID", @@ -125,7 +127,7 @@ func TestAddUserGrant(t *testing.T) { name: "invalid grant", args: args{ es: GetMockManipulateUserGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -172,7 +174,7 @@ func TestChangeUserGrant(t *testing.T) { name: "change grant, ok", args: args{ es: GetMockManipulateUserGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, RoleKeys: []string{"KeyChanged"}, }, @@ -187,7 +189,7 @@ func TestChangeUserGrant(t *testing.T) { name: "invalid grant", args: args{ es: GetMockManipulateUserGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: nil, }, res: res{ @@ -199,7 +201,7 @@ func TestChangeUserGrant(t *testing.T) { name: "existing user not found", args: args{ es: GetMockManipulateUserGrantNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}, RoleKeys: []string{"KeyChanged"}, }, @@ -247,7 +249,7 @@ func TestRemoveUserGrant(t *testing.T) { name: "remove grant, ok", args: args{ es: GetMockManipulateUserGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, }, @@ -255,7 +257,7 @@ func TestRemoveUserGrant(t *testing.T) { name: "no grantID", args: args{ es: GetMockManipulateUserGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -267,7 +269,7 @@ func TestRemoveUserGrant(t *testing.T) { name: "existing grant not found", args: args{ es: GetMockManipulateUserGrantNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -311,7 +313,7 @@ func TestDeactivateUserGrant(t *testing.T) { name: "deactivate, ok", args: args{ es: GetMockManipulateUserGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -325,7 +327,7 @@ func TestDeactivateUserGrant(t *testing.T) { name: "no grant id", args: args{ es: GetMockManipulateUserGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -337,7 +339,7 @@ func TestDeactivateUserGrant(t *testing.T) { name: "grant not existing", args: args{ es: GetMockManipulateUserGrantNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "ID", Sequence: 1}}, }, res: res{ @@ -387,7 +389,7 @@ func TestReactivateUserGrant(t *testing.T) { name: "reactivate, ok", args: args{ es: GetMockManipulateUserGrantInactive(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ @@ -400,7 +402,7 @@ func TestReactivateUserGrant(t *testing.T) { name: "no grant id", args: args{ es: GetMockManipulateUserGrant(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "", Sequence: 1}}, }, res: res{ @@ -412,7 +414,7 @@ func TestReactivateUserGrant(t *testing.T) { name: "grant not existing", args: args{ es: GetMockManipulateUserGrantNoEvents(ctrl), - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: es_models.ObjectRoot{AggregateID: "AggregateID", Sequence: 1}}, }, res: res{ diff --git a/internal/usergrant/repository/eventsourcing/user_grant.go b/internal/usergrant/repository/eventsourcing/user_grant.go index 4b995fe731..4b8417a9eb 100644 --- a/internal/usergrant/repository/eventsourcing/user_grant.go +++ b/internal/usergrant/repository/eventsourcing/user_grant.go @@ -3,7 +3,7 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" + "github.com/caos/zitadel/internal/api/authz" "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/models" org_es_model "github.com/caos/zitadel/internal/org/repository/eventsourcing/model" @@ -50,9 +50,9 @@ func UserGrantAddedAggregate(ctx context.Context, aggCreator *es_models.Aggregat } validationQuery := es_models.NewSearchQuery(). AggregateTypeFilter(usr_model.UserAggregate, org_es_model.OrgAggregate, proj_es_model.ProjectAggregate). - AggregateIDsFilter(grant.UserID, auth.GetCtxData(ctx).OrgID, grant.ProjectID) + AggregateIDsFilter(grant.UserID, authz.GetCtxData(ctx).OrgID, grant.ProjectID) - validation := addUserGrantValidation(auth.GetCtxData(ctx).OrgID, grant) + validation := addUserGrantValidation(authz.GetCtxData(ctx).OrgID, grant) agg, err = agg.SetPrecondition(validationQuery, validation).AppendEvent(model.UserGrantAdded, grant) if err != nil { return nil, err @@ -69,7 +69,7 @@ func UserGrantAddedAggregate(ctx context.Context, aggCreator *es_models.Aggregat } func reservedUniqueUserGrantAggregate(ctx context.Context, aggCreator *es_models.AggregateCreator, grant *model.UserGrant) (*es_models.Aggregate, error) { - grantID := auth.GetCtxData(ctx).OrgID + grant.ProjectID + grant.UserID + grantID := authz.GetCtxData(ctx).OrgID + grant.ProjectID + grant.UserID aggregate, err := aggCreator.NewAggregate(ctx, grantID, model.UserGrantUniqueAggregate, model.UserGrantVersion, 0) if err != nil { return nil, err @@ -79,7 +79,7 @@ func reservedUniqueUserGrantAggregate(ctx context.Context, aggCreator *es_models return nil, err } - return aggregate.SetPrecondition(UserGrantUniqueQuery(auth.GetCtxData(ctx).OrgID, grant.ProjectID, grant.UserID), isEventValidation(aggregate, model.UserGrantReserved)), nil + return aggregate.SetPrecondition(UserGrantUniqueQuery(authz.GetCtxData(ctx).OrgID, grant.ProjectID, grant.UserID), isEventValidation(aggregate, model.UserGrantReserved)), nil } func releasedUniqueUserGrantAggregate(ctx context.Context, aggCreator *es_models.AggregateCreator, grant *model.UserGrant) (aggregate *es_models.Aggregate, err error) { diff --git a/internal/usergrant/repository/eventsourcing/user_grant_test.go b/internal/usergrant/repository/eventsourcing/user_grant_test.go index 74b6494c7c..42fef00b10 100644 --- a/internal/usergrant/repository/eventsourcing/user_grant_test.go +++ b/internal/usergrant/repository/eventsourcing/user_grant_test.go @@ -2,11 +2,12 @@ package eventsourcing import ( "context" - "github.com/caos/zitadel/internal/api/auth" + "testing" + + "github.com/caos/zitadel/internal/api/authz" caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/eventstore/models" "github.com/caos/zitadel/internal/usergrant/repository/eventsourcing/model" - "testing" ) func TestUserGrantAddedAggregate(t *testing.T) { @@ -28,7 +29,7 @@ func TestUserGrantAddedAggregate(t *testing.T) { { name: "usergrant added ok", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: &model.UserGrant{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, UserID: "UserID", ProjectID: "ProjectID"}, aggCreator: models.NewAggregateCreator("Test"), }, @@ -40,7 +41,7 @@ func TestUserGrantAddedAggregate(t *testing.T) { { name: "grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), grant: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -90,7 +91,7 @@ func TestUserGrantChangedAggregate(t *testing.T) { { name: "change project grant", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, UserID: "UserID", @@ -112,7 +113,7 @@ func TestUserGrantChangedAggregate(t *testing.T) { { name: "change project grant cascade", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, UserID: "UserID", @@ -135,7 +136,7 @@ func TestUserGrantChangedAggregate(t *testing.T) { { name: "existing grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, new: &model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, @@ -151,7 +152,7 @@ func TestUserGrantChangedAggregate(t *testing.T) { { name: "grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, UserID: "UserID", @@ -209,7 +210,7 @@ func TestUserGrantRemovedAggregate(t *testing.T) { { name: "remove app", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, UserID: "UserID", @@ -228,7 +229,7 @@ func TestUserGrantRemovedAggregate(t *testing.T) { { name: "remove app cascade", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, UserID: "UserID", @@ -248,7 +249,7 @@ func TestUserGrantRemovedAggregate(t *testing.T) { { name: "existing project nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -259,7 +260,7 @@ func TestUserGrantRemovedAggregate(t *testing.T) { { name: "grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, UserID: "UserID", @@ -313,7 +314,7 @@ func TestUserGrantDeactivatedAggregate(t *testing.T) { { name: "deactivate project grant", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, }, @@ -330,7 +331,7 @@ func TestUserGrantDeactivatedAggregate(t *testing.T) { { name: "existing grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -341,7 +342,7 @@ func TestUserGrantDeactivatedAggregate(t *testing.T) { { name: "grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.UserGrant{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, new: nil, aggCreator: models.NewAggregateCreator("Test"), @@ -391,7 +392,7 @@ func TestUserGrantReactivatedAggregate(t *testing.T) { { name: "reactivate project grant", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.UserGrant{ ObjectRoot: models.ObjectRoot{AggregateID: "ID"}, }, @@ -408,7 +409,7 @@ func TestUserGrantReactivatedAggregate(t *testing.T) { { name: "existing grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: nil, aggCreator: models.NewAggregateCreator("Test"), }, @@ -419,7 +420,7 @@ func TestUserGrantReactivatedAggregate(t *testing.T) { { name: "grant nil", args: args{ - ctx: auth.NewMockContext("orgID", "userID"), + ctx: authz.NewMockContext("orgID", "userID"), existing: &model.UserGrant{ObjectRoot: models.ObjectRoot{AggregateID: "ID"}}, new: nil, aggCreator: models.NewAggregateCreator("Test"), diff --git a/k8s/base/deployment.yaml b/k8s/base/deployment.yaml index 0d043ef699..1c3035cc90 100644 --- a/k8s/base/deployment.yaml +++ b/k8s/base/deployment.yaml @@ -22,24 +22,12 @@ spec: imagePullPolicy: IfNotPresent args: [] ports: - - name: management-rest - containerPort: 50011 - - name: management-grpc - containerPort: 50010 - - name: auth-rest - containerPort: 50021 - - name: issuer-rest - containerPort: 50022 - - name: auth-grpc - containerPort: 50020 - - name: admin-rest - containerPort: 50041 - - name: admin-grpc - containerPort: 50040 - - name: console-http - containerPort: 50050 - - name: accounts-http - containerPort: 50031 + - name: grpc + containerPort: 50001 + - name: http + containerPort: 50002 + - name: ui + containerPort: 50003 env: - name: POD_IP valueFrom: diff --git a/k8s/base/kustomization.yaml b/k8s/base/kustomization.yaml index 4bb37c1f08..0b51b6c20d 100644 --- a/k8s/base/kustomization.yaml +++ b/k8s/base/kustomization.yaml @@ -5,8 +5,6 @@ namespace: zitadel resources: - deployment.yaml -- service-accounts.yaml -- service-api-admin.yaml -- service-api-auth.yaml -- service-api-mangagement.yaml -- service-console.yaml +- service-grpc.yaml +- service-http.yaml +- service-ui.yaml diff --git a/k8s/base/service-api-admin.yaml b/k8s/base/service-api-admin.yaml deleted file mode 100644 index 019670d253..0000000000 --- a/k8s/base/service-api-admin.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: api-admin-v1 -spec: - ports: - - name: rest - port: 80 - targetPort: admin-rest - - name: grpc - port: 8080 - targetPort: admin-grpc - selector: - app: zitadel - version: v1 diff --git a/k8s/base/service-api-auth.yaml b/k8s/base/service-api-auth.yaml deleted file mode 100644 index d9fce7b340..0000000000 --- a/k8s/base/service-api-auth.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: api-auth-v1 -spec: - ports: - - name: rest - port: 80 - targetPort: auth-rest - - name: issuer - port: 7070 - targetPort: issuer-rest - - name: grpc - port: 8080 - targetPort: auth-grpc - selector: - app: zitadel - version: v1 diff --git a/k8s/base/service-api-mangagement.yaml b/k8s/base/service-api-mangagement.yaml deleted file mode 100644 index 86990edfd6..0000000000 --- a/k8s/base/service-api-mangagement.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: api-management-v1 -spec: - ports: - - name: rest - port: 80 - targetPort: management-rest - - name: grpc - port: 8080 - targetPort: management-grpc - selector: - app: zitadel - version: v1 \ No newline at end of file diff --git a/k8s/base/service-accounts.yaml b/k8s/base/service-grpc.yaml similarity index 64% rename from k8s/base/service-accounts.yaml rename to k8s/base/service-grpc.yaml index c272d7d3a6..30945d7b9f 100644 --- a/k8s/base/service-accounts.yaml +++ b/k8s/base/service-grpc.yaml @@ -2,12 +2,12 @@ apiVersion: v1 kind: Service metadata: - name: accounts-v1 + name: grpc-v1 spec: ports: - - name: http + - name: grpc port: 80 - targetPort: accounts-http + targetPort: grpc selector: app: zitadel version: v1 diff --git a/k8s/base/service-console.yaml b/k8s/base/service-http.yaml similarity index 73% rename from k8s/base/service-console.yaml rename to k8s/base/service-http.yaml index add413f196..12ef8bc3f7 100644 --- a/k8s/base/service-console.yaml +++ b/k8s/base/service-http.yaml @@ -2,12 +2,12 @@ apiVersion: v1 kind: Service metadata: - name: console-v1 + name: http-v1 spec: ports: - name: http port: 80 - targetPort: console-http + targetPort: http selector: app: zitadel version: v1 diff --git a/k8s/base/service-ui.yaml b/k8s/base/service-ui.yaml new file mode 100644 index 0000000000..eb74f6f44d --- /dev/null +++ b/k8s/base/service-ui.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: ui-v1 +spec: + ports: + - name: ui + port: 80 + targetPort: ui + selector: + app: zitadel + version: v1 diff --git a/pkg/admin/admin.go b/pkg/admin/admin.go deleted file mode 100644 index e87bed0df5..0000000000 --- a/pkg/admin/admin.go +++ /dev/null @@ -1,29 +0,0 @@ -package admin - -import ( - "context" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" - sd "github.com/caos/zitadel/internal/config/systemdefaults" - - "github.com/caos/logging" - "github.com/caos/zitadel/internal/admin/repository/eventsourcing" - "github.com/caos/zitadel/internal/api/auth" - "github.com/caos/zitadel/pkg/admin/api" -) - -type Config struct { - Repository eventsourcing.Config - API api.Config -} - -func Start(ctx context.Context, config Config, authZRepo *authz_repo.EsRepository, authZ auth.Config, systemDefaults sd.SystemDefaults) { - roles := make([]string, len(authZ.RolePermissionMappings)) - for i, role := range authZ.RolePermissionMappings { - roles[i] = role.Role - } - - repo, err := eventsourcing.Start(ctx, config.Repository, systemDefaults, roles) - logging.Log("MAIN-9uBxp").OnError(err).Panic("unable to start app") - - api.Start(ctx, config.API, authZRepo, authZ, systemDefaults, repo) -} diff --git a/pkg/admin/api/api.go b/pkg/admin/api/api.go deleted file mode 100644 index 9bb8d40fd5..0000000000 --- a/pkg/admin/api/api.go +++ /dev/null @@ -1,25 +0,0 @@ -package api - -import ( - "context" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" - "github.com/caos/zitadel/internal/config/systemdefaults" - - "github.com/caos/zitadel/internal/admin/repository" - "github.com/caos/zitadel/internal/api/auth" - grpc_util "github.com/caos/zitadel/internal/api/grpc" - "github.com/caos/zitadel/internal/api/grpc/server" - "github.com/caos/zitadel/pkg/admin/api/grpc" -) - -type Config struct { - GRPC grpc_util.Config -} - -func Start(ctx context.Context, conf Config, authZRepo *authz_repo.EsRepository, authZ auth.Config, defaults systemdefaults.SystemDefaults, repo repository.Repository) { - grpcServer := grpc.StartServer(conf.GRPC.ToServerConfig(), authZRepo, authZ, repo) - grpcGateway := grpc.StartGateway(conf.GRPC.ToGatewayConfig()) - - server.StartServer(ctx, grpcServer, defaults) - server.StartGateway(ctx, grpcGateway) -} diff --git a/pkg/admin/api/grpc/admin.pb.authoptions.go b/pkg/admin/api/grpc/admin.pb.authoptions.go deleted file mode 100644 index 9999e90544..0000000000 --- a/pkg/admin/api/grpc/admin.pb.authoptions.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by protoc-gen-authmethod. DO NOT EDIT. - -package grpc - -import ( - "google.golang.org/grpc" - - utils_auth "github.com/caos/zitadel/internal/api/auth" - "github.com/caos/zitadel/internal/api/grpc/server/middleware" -) - -/** - * AdminService - */ - -var AdminService_AuthMethods = utils_auth.MethodMapping{ - - "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique": utils_auth.Option{ - Permission: "iam.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID": utils_auth.Option{ - Permission: "iam.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs": utils_auth.Option{ - Permission: "iam.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg": utils_auth.Option{ - Permission: "iam.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy": utils_auth.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy": utils_auth.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy": utils_auth.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/DeleteOrgIamPolicy": utils_auth.Option{ - Permission: "iam.policy.delete", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetIamMemberRoles": utils_auth.Option{ - Permission: "iam.member.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/AddIamMember": utils_auth.Option{ - Permission: "iam.member.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/ChangeIamMember": utils_auth.Option{ - Permission: "iam.member.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/RemoveIamMember": utils_auth.Option{ - Permission: "iam.member.delete", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/SearchIamMembers": utils_auth.Option{ - Permission: "iam.member.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetViews": utils_auth.Option{ - Permission: "iam.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/ClearView": utils_auth.Option{ - Permission: "iam.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetFailedEvents": utils_auth.Option{ - Permission: "iam.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/RemoveFailedEvent": utils_auth.Option{ - Permission: "iam.write", - CheckParam: "", - }, -} - -func AdminService_Authorization_Interceptor(verifier utils_auth.TokenVerifier, authConf *utils_auth.Config) grpc.UnaryServerInterceptor { - return middleware.AuthorizationInterceptor(verifier, authConf, AdminService_AuthMethods) -} diff --git a/pkg/admin/api/grpc/admin.pb.go b/pkg/admin/api/grpc/admin.pb.go deleted file mode 100644 index 343a567d68..0000000000 --- a/pkg/admin/api/grpc/admin.pb.go +++ /dev/null @@ -1,4460 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.20.1 -// protoc v3.11.3 -// source: admin.proto - -package grpc - -import ( - context "context" - _ "github.com/caos/zitadel/internal/protoc/protoc-gen-authoption/authoption" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - proto "github.com/golang/protobuf/proto" - empty "github.com/golang/protobuf/ptypes/empty" - _struct "github.com/golang/protobuf/ptypes/struct" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // 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) -) - -// 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 OrgState int32 - -const ( - OrgState_ORGSTATE_UNSPECIFIED OrgState = 0 - OrgState_ORGSTATE_ACTIVE OrgState = 1 - OrgState_ORGSTATE_INACTIVE OrgState = 2 -) - -// Enum value maps for OrgState. -var ( - OrgState_name = map[int32]string{ - 0: "ORGSTATE_UNSPECIFIED", - 1: "ORGSTATE_ACTIVE", - 2: "ORGSTATE_INACTIVE", - } - OrgState_value = map[string]int32{ - "ORGSTATE_UNSPECIFIED": 0, - "ORGSTATE_ACTIVE": 1, - "ORGSTATE_INACTIVE": 2, - } -) - -func (x OrgState) Enum() *OrgState { - p := new(OrgState) - *p = x - return p -} - -func (x OrgState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrgState) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[0].Descriptor() -} - -func (OrgState) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[0] -} - -func (x OrgState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrgState.Descriptor instead. -func (OrgState) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{0} -} - -type OrgSearchKey int32 - -const ( - OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED OrgSearchKey = 0 - OrgSearchKey_ORGSEARCHKEY_ORG_NAME OrgSearchKey = 1 - OrgSearchKey_ORGSEARCHKEY_DOMAIN OrgSearchKey = 2 - OrgSearchKey_ORGSEARCHKEY_STATE OrgSearchKey = 3 -) - -// Enum value maps for OrgSearchKey. -var ( - OrgSearchKey_name = map[int32]string{ - 0: "ORGSEARCHKEY_UNSPECIFIED", - 1: "ORGSEARCHKEY_ORG_NAME", - 2: "ORGSEARCHKEY_DOMAIN", - 3: "ORGSEARCHKEY_STATE", - } - OrgSearchKey_value = map[string]int32{ - "ORGSEARCHKEY_UNSPECIFIED": 0, - "ORGSEARCHKEY_ORG_NAME": 1, - "ORGSEARCHKEY_DOMAIN": 2, - "ORGSEARCHKEY_STATE": 3, - } -) - -func (x OrgSearchKey) Enum() *OrgSearchKey { - p := new(OrgSearchKey) - *p = x - return p -} - -func (x OrgSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrgSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[1].Descriptor() -} - -func (OrgSearchKey) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[1] -} - -func (x OrgSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrgSearchKey.Descriptor instead. -func (OrgSearchKey) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{1} -} - -type OrgSearchMethod int32 - -const ( - OrgSearchMethod_ORGSEARCHMETHOD_EQUALS OrgSearchMethod = 0 - OrgSearchMethod_ORGSEARCHMETHOD_STARTS_WITH OrgSearchMethod = 1 - OrgSearchMethod_ORGSEARCHMETHOD_CONTAINS OrgSearchMethod = 2 -) - -// Enum value maps for OrgSearchMethod. -var ( - OrgSearchMethod_name = map[int32]string{ - 0: "ORGSEARCHMETHOD_EQUALS", - 1: "ORGSEARCHMETHOD_STARTS_WITH", - 2: "ORGSEARCHMETHOD_CONTAINS", - } - OrgSearchMethod_value = map[string]int32{ - "ORGSEARCHMETHOD_EQUALS": 0, - "ORGSEARCHMETHOD_STARTS_WITH": 1, - "ORGSEARCHMETHOD_CONTAINS": 2, - } -) - -func (x OrgSearchMethod) Enum() *OrgSearchMethod { - p := new(OrgSearchMethod) - *p = x - return p -} - -func (x OrgSearchMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrgSearchMethod) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[2].Descriptor() -} - -func (OrgSearchMethod) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[2] -} - -func (x OrgSearchMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrgSearchMethod.Descriptor instead. -func (OrgSearchMethod) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{2} -} - -type UserState int32 - -const ( - UserState_USERSTATE_UNSPECIFIED UserState = 0 - UserState_USERSTATE_ACTIVE UserState = 1 - UserState_USERSTATE_INACTIVE UserState = 2 - UserState_USERSTATE_DELETED UserState = 3 - UserState_USERSTATE_LOCKED UserState = 4 - UserState_USERSTATE_SUSPEND UserState = 5 - UserState_USERSTATE_INITIAL UserState = 6 -) - -// Enum value maps for UserState. -var ( - UserState_name = map[int32]string{ - 0: "USERSTATE_UNSPECIFIED", - 1: "USERSTATE_ACTIVE", - 2: "USERSTATE_INACTIVE", - 3: "USERSTATE_DELETED", - 4: "USERSTATE_LOCKED", - 5: "USERSTATE_SUSPEND", - 6: "USERSTATE_INITIAL", - } - UserState_value = map[string]int32{ - "USERSTATE_UNSPECIFIED": 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 protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UserState) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[3].Descriptor() -} - -func (UserState) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[3] -} - -func (x UserState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UserState.Descriptor instead. -func (UserState) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{3} -} - -type Gender int32 - -const ( - Gender_GENDER_UNSPECIFIED Gender = 0 - Gender_GENDER_FEMALE Gender = 1 - Gender_GENDER_MALE Gender = 2 - Gender_GENDER_DIVERSE Gender = 3 -) - -// 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, - } -) - -func (x Gender) Enum() *Gender { - p := new(Gender) - *p = x - return p -} - -func (x Gender) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Gender) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[4].Descriptor() -} - -func (Gender) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[4] -} - -func (x Gender) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Gender.Descriptor instead. -func (Gender) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{4} -} - -type IamMemberSearchKey int32 - -const ( - IamMemberSearchKey_IAMMEMBERSEARCHKEY_UNSPECIFIED IamMemberSearchKey = 0 - IamMemberSearchKey_IAMMEMBERSEARCHKEY_FIRST_NAME IamMemberSearchKey = 1 - IamMemberSearchKey_IAMMEMBERSEARCHKEY_LAST_NAME IamMemberSearchKey = 2 - IamMemberSearchKey_IAMMEMBERSEARCHKEY_EMAIL IamMemberSearchKey = 3 - IamMemberSearchKey_IAMMEMBERSEARCHKEY_USER_ID IamMemberSearchKey = 4 -) - -// Enum value maps for IamMemberSearchKey. -var ( - IamMemberSearchKey_name = map[int32]string{ - 0: "IAMMEMBERSEARCHKEY_UNSPECIFIED", - 1: "IAMMEMBERSEARCHKEY_FIRST_NAME", - 2: "IAMMEMBERSEARCHKEY_LAST_NAME", - 3: "IAMMEMBERSEARCHKEY_EMAIL", - 4: "IAMMEMBERSEARCHKEY_USER_ID", - } - IamMemberSearchKey_value = map[string]int32{ - "IAMMEMBERSEARCHKEY_UNSPECIFIED": 0, - "IAMMEMBERSEARCHKEY_FIRST_NAME": 1, - "IAMMEMBERSEARCHKEY_LAST_NAME": 2, - "IAMMEMBERSEARCHKEY_EMAIL": 3, - "IAMMEMBERSEARCHKEY_USER_ID": 4, - } -) - -func (x IamMemberSearchKey) Enum() *IamMemberSearchKey { - p := new(IamMemberSearchKey) - *p = x - return p -} - -func (x IamMemberSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (IamMemberSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[5].Descriptor() -} - -func (IamMemberSearchKey) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[5] -} - -func (x IamMemberSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use IamMemberSearchKey.Descriptor instead. -func (IamMemberSearchKey) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{5} -} - -type SearchMethod int32 - -const ( - SearchMethod_SEARCHMETHOD_EQUALS SearchMethod = 0 - SearchMethod_SEARCHMETHOD_STARTS_WITH SearchMethod = 1 - SearchMethod_SEARCHMETHOD_CONTAINS SearchMethod = 2 - SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE SearchMethod = 3 - SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE SearchMethod = 4 - SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE SearchMethod = 5 - SearchMethod_SEARCHMETHOD_NOT_EQUALS SearchMethod = 6 - SearchMethod_SEARCHMETHOD_GREATER_THAN SearchMethod = 7 - SearchMethod_SEARCHMETHOD_LESS_THAN SearchMethod = 8 - SearchMethod_SEARCHMETHOD_IS_ONE_OF SearchMethod = 9 - SearchMethod_SEARCHMETHOD_LIST_CONTAINS SearchMethod = 10 -) - -// Enum value maps for SearchMethod. -var ( - SearchMethod_name = map[int32]string{ - 0: "SEARCHMETHOD_EQUALS", - 1: "SEARCHMETHOD_STARTS_WITH", - 2: "SEARCHMETHOD_CONTAINS", - 3: "SEARCHMETHOD_EQUALS_IGNORE_CASE", - 4: "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE", - 5: "SEARCHMETHOD_CONTAINS_IGNORE_CASE", - 6: "SEARCHMETHOD_NOT_EQUALS", - 7: "SEARCHMETHOD_GREATER_THAN", - 8: "SEARCHMETHOD_LESS_THAN", - 9: "SEARCHMETHOD_IS_ONE_OF", - 10: "SEARCHMETHOD_LIST_CONTAINS", - } - SearchMethod_value = map[string]int32{ - "SEARCHMETHOD_EQUALS": 0, - "SEARCHMETHOD_STARTS_WITH": 1, - "SEARCHMETHOD_CONTAINS": 2, - "SEARCHMETHOD_EQUALS_IGNORE_CASE": 3, - "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE": 4, - "SEARCHMETHOD_CONTAINS_IGNORE_CASE": 5, - "SEARCHMETHOD_NOT_EQUALS": 6, - "SEARCHMETHOD_GREATER_THAN": 7, - "SEARCHMETHOD_LESS_THAN": 8, - "SEARCHMETHOD_IS_ONE_OF": 9, - "SEARCHMETHOD_LIST_CONTAINS": 10, - } -) - -func (x SearchMethod) Enum() *SearchMethod { - p := new(SearchMethod) - *p = x - return p -} - -func (x SearchMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SearchMethod) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[6].Descriptor() -} - -func (SearchMethod) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[6] -} - -func (x SearchMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SearchMethod.Descriptor instead. -func (SearchMethod) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{6} -} - -type OrgID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *OrgID) Reset() { - *x = OrgID{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgID) ProtoMessage() {} - -func (x *OrgID) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 OrgID.ProtoReflect.Descriptor instead. -func (*OrgID) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{0} -} - -func (x *OrgID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type UniqueOrgRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` -} - -func (x *UniqueOrgRequest) Reset() { - *x = UniqueOrgRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UniqueOrgRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UniqueOrgRequest) ProtoMessage() {} - -func (x *UniqueOrgRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 UniqueOrgRequest.ProtoReflect.Descriptor instead. -func (*UniqueOrgRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{1} -} - -func (x *UniqueOrgRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UniqueOrgRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -type UniqueOrgResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IsUnique bool `protobuf:"varint,1,opt,name=is_unique,json=isUnique,proto3" json:"is_unique,omitempty"` -} - -func (x *UniqueOrgResponse) Reset() { - *x = UniqueOrgResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UniqueOrgResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UniqueOrgResponse) ProtoMessage() {} - -func (x *UniqueOrgResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 UniqueOrgResponse.ProtoReflect.Descriptor instead. -func (*UniqueOrgResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{2} -} - -func (x *UniqueOrgResponse) GetIsUnique() bool { - if x != nil { - return x.IsUnique - } - return false -} - -type Org struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.admin.api.v1.OrgState" 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"` - Domain string `protobuf:"bytes,6,opt,name=domain,proto3" json:"domain,omitempty"` -} - -func (x *Org) Reset() { - *x = Org{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[3] - 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_admin_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 Org.ProtoReflect.Descriptor instead. -func (*Org) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{3} -} - -func (x *Org) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Org) GetState() OrgState { - if x != nil { - return x.State - } - return OrgState_ORGSTATE_UNSPECIFIED -} - -func (x *Org) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *Org) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *Org) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Org) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -type OrgSearchRequest struct { - 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"` - SortingColumn OrgSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchKey" json:"sorting_column,omitempty"` - Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` - Queries []*OrgSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *OrgSearchRequest) Reset() { - *x = OrgSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgSearchRequest) ProtoMessage() {} - -func (x *OrgSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 OrgSearchRequest.ProtoReflect.Descriptor instead. -func (*OrgSearchRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{4} -} - -func (x *OrgSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *OrgSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *OrgSearchRequest) GetSortingColumn() OrgSearchKey { - if x != nil { - return x.SortingColumn - } - return OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED -} - -func (x *OrgSearchRequest) GetAsc() bool { - if x != nil { - return x.Asc - } - return false -} - -func (x *OrgSearchRequest) GetQueries() []*OrgSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type OrgSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key OrgSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchKey" json:"key,omitempty"` - Method OrgSearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *OrgSearchQuery) Reset() { - *x = OrgSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgSearchQuery) ProtoMessage() {} - -func (x *OrgSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 OrgSearchQuery.ProtoReflect.Descriptor instead. -func (*OrgSearchQuery) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{5} -} - -func (x *OrgSearchQuery) GetKey() OrgSearchKey { - if x != nil { - return x.Key - } - return OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED -} - -func (x *OrgSearchQuery) GetMethod() OrgSearchMethod { - if x != nil { - return x.Method - } - return OrgSearchMethod_ORGSEARCHMETHOD_EQUALS -} - -func (x *OrgSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type OrgSearchResponse struct { - 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 (x *OrgSearchResponse) Reset() { - *x = OrgSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgSearchResponse) ProtoMessage() {} - -func (x *OrgSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 OrgSearchResponse.ProtoReflect.Descriptor instead. -func (*OrgSearchResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{6} -} - -func (x *OrgSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *OrgSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *OrgSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *OrgSearchResponse) GetResult() []*Org { - if x != nil { - return x.Result - } - return nil -} - -type OrgSetUpRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Org *CreateOrgRequest `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"` - User *CreateUserRequest `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *OrgSetUpRequest) Reset() { - *x = OrgSetUpRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgSetUpRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgSetUpRequest) ProtoMessage() {} - -func (x *OrgSetUpRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 OrgSetUpRequest.ProtoReflect.Descriptor instead. -func (*OrgSetUpRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{7} -} - -func (x *OrgSetUpRequest) GetOrg() *CreateOrgRequest { - if x != nil { - return x.Org - } - return nil -} - -func (x *OrgSetUpRequest) GetUser() *CreateUserRequest { - if x != nil { - return x.User - } - return nil -} - -type OrgSetUpResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Org *Org `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *OrgSetUpResponse) Reset() { - *x = OrgSetUpResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgSetUpResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgSetUpResponse) ProtoMessage() {} - -func (x *OrgSetUpResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 OrgSetUpResponse.ProtoReflect.Descriptor instead. -func (*OrgSetUpResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{8} -} - -func (x *OrgSetUpResponse) GetOrg() *Org { - if x != nil { - return x.Org - } - return nil -} - -func (x *OrgSetUpResponse) GetUser() *User { - if x != nil { - return x.User - } - return nil -} - -type CreateUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,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"` - 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=caos.zitadel.admin.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,8,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Phone string `protobuf:"bytes,9,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,10,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,12,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,13,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,15,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Password string `protobuf:"bytes,16,opt,name=password,proto3" json:"password,omitempty"` -} - -func (x *CreateUserRequest) Reset() { - *x = CreateUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateUserRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateUserRequest) ProtoMessage() {} - -func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 CreateUserRequest.ProtoReflect.Descriptor instead. -func (*CreateUserRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{9} -} - -func (x *CreateUserRequest) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *CreateUserRequest) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *CreateUserRequest) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *CreateUserRequest) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *CreateUserRequest) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *CreateUserRequest) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *CreateUserRequest) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *CreateUserRequest) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *CreateUserRequest) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *CreateUserRequest) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *CreateUserRequest) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *CreateUserRequest) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *CreateUserRequest) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *CreateUserRequest) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *CreateUserRequest) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -func (x *CreateUserRequest) GetPassword() string { - if x != nil { - return x.Password - } - 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=caos.zitadel.admin.api.v1.UserState" 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"` - UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - FirstName string `protobuf:"bytes,6,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,7,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,8,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - DisplayName string `protobuf:"bytes,9,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,10,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,11,opt,name=gender,proto3,enum=caos.zitadel.admin.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,13,opt,name=isEmailVerified,proto3" json:"isEmailVerified,omitempty"` - Phone string `protobuf:"bytes,14,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,15,opt,name=isPhoneVerified,proto3" json:"isPhoneVerified,omitempty"` - Country string `protobuf:"bytes,16,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,17,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,18,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,19,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,20,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Sequence uint64 `protobuf:"varint,21,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *User) Reset() { - *x = User{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[10] - 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_admin_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 User.ProtoReflect.Descriptor instead. -func (*User) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{10} -} - -func (x *User) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *User) GetState() UserState { - if x != nil { - return x.State - } - return UserState_USERSTATE_UNSPECIFIED -} - -func (x *User) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *User) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *User) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *User) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *User) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *User) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *User) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *User) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *User) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *User) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *User) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *User) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *User) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *User) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *User) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *User) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *User) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *User) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -func (x *User) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type CreateOrgRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` -} - -func (x *CreateOrgRequest) Reset() { - *x = CreateOrgRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateOrgRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateOrgRequest) ProtoMessage() {} - -func (x *CreateOrgRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 CreateOrgRequest.ProtoReflect.Descriptor instead. -func (*CreateOrgRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{11} -} - -func (x *CreateOrgRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateOrgRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -type OrgIamPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - UserLoginMustBeDomain bool `protobuf:"varint,3,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"` - Default bool `protobuf:"varint,4,opt,name=default,proto3" json:"default,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *OrgIamPolicy) Reset() { - *x = OrgIamPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgIamPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgIamPolicy) ProtoMessage() {} - -func (x *OrgIamPolicy) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 OrgIamPolicy.ProtoReflect.Descriptor instead. -func (*OrgIamPolicy) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{12} -} - -func (x *OrgIamPolicy) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *OrgIamPolicy) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *OrgIamPolicy) GetUserLoginMustBeDomain() bool { - if x != nil { - return x.UserLoginMustBeDomain - } - return false -} - -func (x *OrgIamPolicy) GetDefault() bool { - if x != nil { - return x.Default - } - return false -} - -func (x *OrgIamPolicy) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *OrgIamPolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *OrgIamPolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type OrgIamPolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - UserLoginMustBeDomain bool `protobuf:"varint,3,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"` -} - -func (x *OrgIamPolicyRequest) Reset() { - *x = OrgIamPolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgIamPolicyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgIamPolicyRequest) ProtoMessage() {} - -func (x *OrgIamPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 OrgIamPolicyRequest.ProtoReflect.Descriptor instead. -func (*OrgIamPolicyRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{13} -} - -func (x *OrgIamPolicyRequest) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *OrgIamPolicyRequest) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *OrgIamPolicyRequest) GetUserLoginMustBeDomain() bool { - if x != nil { - return x.UserLoginMustBeDomain - } - return false -} - -type OrgIamPolicyID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` -} - -func (x *OrgIamPolicyID) Reset() { - *x = OrgIamPolicyID{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgIamPolicyID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgIamPolicyID) ProtoMessage() {} - -func (x *OrgIamPolicyID) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 OrgIamPolicyID.ProtoReflect.Descriptor instead. -func (*OrgIamPolicyID) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{14} -} - -func (x *OrgIamPolicyID) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -type IamMemberRoles struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *IamMemberRoles) Reset() { - *x = IamMemberRoles{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMemberRoles) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMemberRoles) ProtoMessage() {} - -func (x *IamMemberRoles) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 IamMemberRoles.ProtoReflect.Descriptor instead. -func (*IamMemberRoles) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{15} -} - -func (x *IamMemberRoles) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type IamMember struct { - 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"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *IamMember) Reset() { - *x = IamMember{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMember) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMember) ProtoMessage() {} - -func (x *IamMember) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 IamMember.ProtoReflect.Descriptor instead. -func (*IamMember) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{16} -} - -func (x *IamMember) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *IamMember) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *IamMember) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *IamMember) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *IamMember) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type AddIamMemberRequest struct { - 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"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *AddIamMemberRequest) Reset() { - *x = AddIamMemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddIamMemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddIamMemberRequest) ProtoMessage() {} - -func (x *AddIamMemberRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 AddIamMemberRequest.ProtoReflect.Descriptor instead. -func (*AddIamMemberRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{17} -} - -func (x *AddIamMemberRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *AddIamMemberRequest) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type ChangeIamMemberRequest struct { - 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"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *ChangeIamMemberRequest) Reset() { - *x = ChangeIamMemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChangeIamMemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChangeIamMemberRequest) ProtoMessage() {} - -func (x *ChangeIamMemberRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 ChangeIamMemberRequest.ProtoReflect.Descriptor instead. -func (*ChangeIamMemberRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{18} -} - -func (x *ChangeIamMemberRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ChangeIamMemberRequest) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type RemoveIamMemberRequest struct { - 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"` -} - -func (x *RemoveIamMemberRequest) Reset() { - *x = RemoveIamMemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveIamMemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveIamMemberRequest) ProtoMessage() {} - -func (x *RemoveIamMemberRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 RemoveIamMemberRequest.ProtoReflect.Descriptor instead. -func (*RemoveIamMemberRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{19} -} - -func (x *RemoveIamMemberRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -type IamMemberSearchResponse struct { - 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 []*IamMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *IamMemberSearchResponse) Reset() { - *x = IamMemberSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMemberSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMemberSearchResponse) ProtoMessage() {} - -func (x *IamMemberSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 IamMemberSearchResponse.ProtoReflect.Descriptor instead. -func (*IamMemberSearchResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{20} -} - -func (x *IamMemberSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *IamMemberSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *IamMemberSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *IamMemberSearchResponse) GetResult() []*IamMemberView { - if x != nil { - return x.Result - } - return nil -} - -type IamMemberView struct { - 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"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - UserName string `protobuf:"bytes,6,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` - FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` -} - -func (x *IamMemberView) Reset() { - *x = IamMemberView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMemberView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMemberView) ProtoMessage() {} - -func (x *IamMemberView) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 IamMemberView.ProtoReflect.Descriptor instead. -func (*IamMemberView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{21} -} - -func (x *IamMemberView) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *IamMemberView) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *IamMemberView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *IamMemberView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *IamMemberView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *IamMemberView) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *IamMemberView) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *IamMemberView) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *IamMemberView) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -type IamMemberSearchRequest struct { - 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"` - Queries []*IamMemberSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *IamMemberSearchRequest) Reset() { - *x = IamMemberSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMemberSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMemberSearchRequest) ProtoMessage() {} - -func (x *IamMemberSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 IamMemberSearchRequest.ProtoReflect.Descriptor instead. -func (*IamMemberSearchRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{22} -} - -func (x *IamMemberSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *IamMemberSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *IamMemberSearchRequest) GetQueries() []*IamMemberSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type IamMemberSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key IamMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.admin.api.v1.IamMemberSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.admin.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *IamMemberSearchQuery) Reset() { - *x = IamMemberSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMemberSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMemberSearchQuery) ProtoMessage() {} - -func (x *IamMemberSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 IamMemberSearchQuery.ProtoReflect.Descriptor instead. -func (*IamMemberSearchQuery) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{23} -} - -func (x *IamMemberSearchQuery) GetKey() IamMemberSearchKey { - if x != nil { - return x.Key - } - return IamMemberSearchKey_IAMMEMBERSEARCHKEY_UNSPECIFIED -} - -func (x *IamMemberSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *IamMemberSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type FailedEventID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` - ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` - FailedSequence uint64 `protobuf:"varint,3,opt,name=failed_sequence,json=failedSequence,proto3" json:"failed_sequence,omitempty"` -} - -func (x *FailedEventID) Reset() { - *x = FailedEventID{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FailedEventID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FailedEventID) ProtoMessage() {} - -func (x *FailedEventID) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 FailedEventID.ProtoReflect.Descriptor instead. -func (*FailedEventID) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{24} -} - -func (x *FailedEventID) GetDatabase() string { - if x != nil { - return x.Database - } - return "" -} - -func (x *FailedEventID) GetViewName() string { - if x != nil { - return x.ViewName - } - return "" -} - -func (x *FailedEventID) GetFailedSequence() uint64 { - if x != nil { - return x.FailedSequence - } - return 0 -} - -type FailedEvents struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FailedEvents []*FailedEvent `protobuf:"bytes,1,rep,name=failed_events,json=failedEvents,proto3" json:"failed_events,omitempty"` -} - -func (x *FailedEvents) Reset() { - *x = FailedEvents{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FailedEvents) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FailedEvents) ProtoMessage() {} - -func (x *FailedEvents) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 FailedEvents.ProtoReflect.Descriptor instead. -func (*FailedEvents) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{25} -} - -func (x *FailedEvents) GetFailedEvents() []*FailedEvent { - if x != nil { - return x.FailedEvents - } - return nil -} - -type FailedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` - ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` - FailedSequence uint64 `protobuf:"varint,3,opt,name=failed_sequence,json=failedSequence,proto3" json:"failed_sequence,omitempty"` - FailureCount uint64 `protobuf:"varint,4,opt,name=failure_count,json=failureCount,proto3" json:"failure_count,omitempty"` - ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` -} - -func (x *FailedEvent) Reset() { - *x = FailedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FailedEvent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FailedEvent) ProtoMessage() {} - -func (x *FailedEvent) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 FailedEvent.ProtoReflect.Descriptor instead. -func (*FailedEvent) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{26} -} - -func (x *FailedEvent) GetDatabase() string { - if x != nil { - return x.Database - } - return "" -} - -func (x *FailedEvent) GetViewName() string { - if x != nil { - return x.ViewName - } - return "" -} - -func (x *FailedEvent) GetFailedSequence() uint64 { - if x != nil { - return x.FailedSequence - } - return 0 -} - -func (x *FailedEvent) GetFailureCount() uint64 { - if x != nil { - return x.FailureCount - } - return 0 -} - -func (x *FailedEvent) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage - } - return "" -} - -type ViewID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` - ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` -} - -func (x *ViewID) Reset() { - *x = ViewID{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ViewID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ViewID) ProtoMessage() {} - -func (x *ViewID) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 ViewID.ProtoReflect.Descriptor instead. -func (*ViewID) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{27} -} - -func (x *ViewID) GetDatabase() string { - if x != nil { - return x.Database - } - return "" -} - -func (x *ViewID) GetViewName() string { - if x != nil { - return x.ViewName - } - return "" -} - -type Views struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Views []*View `protobuf:"bytes,1,rep,name=views,proto3" json:"views,omitempty"` -} - -func (x *Views) Reset() { - *x = Views{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Views) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Views) ProtoMessage() {} - -func (x *Views) ProtoReflect() protoreflect.Message { - mi := &file_admin_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 Views.ProtoReflect.Descriptor instead. -func (*Views) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{28} -} - -func (x *Views) GetViews() []*View { - if x != nil { - return x.Views - } - return nil -} - -type View struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` - ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *View) Reset() { - *x = View{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *View) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*View) ProtoMessage() {} - -func (x *View) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[29] - 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 View.ProtoReflect.Descriptor instead. -func (*View) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{29} -} - -func (x *View) GetDatabase() string { - if x != nil { - return x.Database - } - return "" -} - -func (x *View) GetViewName() string { - if x != nil { - return x.ViewName - } - return "" -} - -func (x *View) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -var File_admin_proto protoreflect.FileDescriptor - -var file_admin_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 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, 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, 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, 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, 0x17, 0x0a, 0x05, 0x4f, 0x72, 0x67, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x50, 0x0a, 0x10, - 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, - 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, - 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x30, - 0x0a, 0x11, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, - 0x22, 0xfa, 0x01, 0x0a, 0x03, 0x4f, 0x72, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xf1, 0x01, - 0x0a, 0x10, 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, 0x58, 0x0a, 0x0e, 0x73, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, - 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x20, 0x00, 0x52, 0x0d, 0x73, 0x6f, 0x72, - 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x73, - 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x73, 0x63, 0x12, 0x43, 0x0a, 0x07, - 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x22, 0xaf, 0x01, 0x0a, 0x0e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x43, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 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, 0x42, 0x0a, 0x06, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 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, 0x9c, 0x01, 0x0a, 0x11, 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, 0x36, 0x0a, 0x06, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x22, 0x92, 0x01, 0x0a, 0x0f, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x74, 0x55, 0x70, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x40, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x79, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x53, 0x65, - 0x74, 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x03, 0x6f, - 0x72, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x33, 0x0a, - 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x22, 0xb3, 0x05, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, - 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x29, 0x0a, 0x0a, 0x66, 0x69, 0x72, 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, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x09, - 0x6c, 0x61, 0x73, 0x74, 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, 0x6c, 0x61, 0x73, - 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, - 0xc8, 0x01, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x37, 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, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, - 0xc8, 0x01, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x0c, 0xfa, 0x42, 0x09, 0x72, 0x07, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x60, 0x01, 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, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, - 0x12, 0x1d, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x18, 0x14, 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, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x50, 0x68, - 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x07, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x0b, 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, 0x0c, 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, 0x0d, 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, 0x0e, 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, 0x0f, 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, 0x12, 0x23, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, - 0x10, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x18, 0x48, 0x52, 0x08, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x85, 0x06, 0x0a, 0x04, 0x55, 0x73, 0x65, - 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x24, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 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, 0x3b, - 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, - 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 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, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, - 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 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, 0x07, 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, 0x08, 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, 0x09, 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, 0x0a, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, - 0x61, 0x67, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 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, 0x0c, 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, 0x0d, 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, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, - 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x73, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, - 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x0f, 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, 0x10, 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, 0x11, 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, 0x12, 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, - 0x13, 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, - 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x18, 0x15, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x22, 0x47, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xb5, 0x02, 0x0a, 0x0c, 0x4f, 0x72, - 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, - 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, - 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x19, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x69, - 0x6e, 0x5f, 0x6d, 0x75, 0x73, 0x74, 0x5f, 0x62, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, - 0x6e, 0x4d, 0x75, 0x73, 0x74, 0x42, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, - 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x64, 0x61, 0x74, 0x65, 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, 0x0c, 0x63, 0x72, 0x65, 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, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, - 0x65, 0x22, 0x88, 0x01, 0x0a, 0x13, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, - 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x19, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, - 0x5f, 0x6d, 0x75, 0x73, 0x74, 0x5f, 0x62, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, - 0x4d, 0x75, 0x73, 0x74, 0x42, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x27, 0x0a, 0x0e, - 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 0x12, 0x15, - 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x6f, 0x72, 0x67, 0x49, 0x64, 0x22, 0x26, 0x0a, 0x0e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0xd4, 0x01, - 0x0a, 0x09, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 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, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 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, 0x0c, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x22, 0x44, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x49, 0x61, 0x6d, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 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, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x47, 0x0a, 0x16, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 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, 0x14, 0x0a, - 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, - 0x6c, 0x65, 0x73, 0x22, 0x31, 0x0a, 0x16, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x61, 0x6d, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 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, 0x22, 0xac, 0x01, 0x0a, 0x17, 0x49, 0x61, 0x6d, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 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, 0x40, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 0x52, 0x06, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xc7, 0x02, 0x0a, 0x0d, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 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, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, - 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 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, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, - 0x61, 0x69, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x08, 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, - 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, - 0x91, 0x01, 0x0a, 0x16, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 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, 0x49, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x14, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x49, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 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, 0x3f, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 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, 0x71, - 0x0a, 0x0d, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x12, - 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, - 0x69, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x76, 0x69, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x61, 0x69, 0x6c, - 0x65, 0x64, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, - 0x65, 0x22, 0x5b, 0x0a, 0x0c, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x4b, 0x0a, 0x0d, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x52, 0x0c, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xb9, - 0x01, 0x0a, 0x0b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, - 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, - 0x69, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x61, 0x69, 0x6c, 0x65, - 0x64, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x41, 0x0a, 0x06, 0x56, 0x69, - 0x65, 0x77, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3e, 0x0a, - 0x05, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x22, 0x5b, 0x0a, - 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, - 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x2a, 0x50, 0x0a, 0x08, 0x4f, 0x72, - 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, - 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x13, 0x0a, 0x0f, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, - 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, 0x54, - 0x45, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, 0x78, 0x0a, 0x0c, - 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x18, - 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, 0x19, 0x0a, 0x15, 0x4f, 0x52, - 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x4f, 0x52, 0x47, 0x5f, 0x4e, - 0x41, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, - 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x16, - 0x0a, 0x12, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x45, 0x10, 0x03, 0x2a, 0x6c, 0x0a, 0x0f, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1a, 0x0a, 0x16, 0x4f, 0x52, 0x47, - 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x45, 0x51, 0x55, - 0x41, 0x4c, 0x53, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, 0x47, 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, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, - 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, - 0x4e, 0x53, 0x10, 0x02, 0x2a, 0xaf, 0x01, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 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, 0xbb, 0x01, 0x0a, 0x12, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x1e, 0x49, 0x41, 0x4d, 0x4d, 0x45, - 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x49, - 0x41, 0x4d, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, - 0x59, 0x5f, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x20, - 0x0a, 0x1c, 0x49, 0x41, 0x4d, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, - 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x4c, 0x41, 0x53, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x02, - 0x12, 0x1c, 0x0a, 0x18, 0x49, 0x41, 0x4d, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, - 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x03, 0x12, 0x1e, - 0x0a, 0x1a, 0x49, 0x41, 0x4d, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, - 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x49, 0x44, 0x10, 0x04, 0x2a, 0xea, - 0x02, 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, 0x12, 0x23, 0x0a, 0x1f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, - 0x44, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, - 0x43, 0x41, 0x53, 0x45, 0x10, 0x03, 0x12, 0x28, 0x0a, 0x24, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, - 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x53, 0x5f, 0x57, 0x49, - 0x54, 0x48, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x41, 0x53, 0x45, 0x10, 0x04, - 0x12, 0x25, 0x0a, 0x21, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, - 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, - 0x5f, 0x43, 0x41, 0x53, 0x45, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x41, 0x52, 0x43, - 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x51, 0x55, 0x41, - 0x4c, 0x53, 0x10, 0x06, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, - 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, - 0x4e, 0x10, 0x07, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, - 0x48, 0x4f, 0x44, 0x5f, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x08, 0x12, - 0x1a, 0x0a, 0x16, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, - 0x49, 0x53, 0x5f, 0x4f, 0x4e, 0x45, 0x5f, 0x4f, 0x46, 0x10, 0x09, 0x12, 0x1e, 0x0a, 0x1a, 0x53, - 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x4c, 0x49, 0x53, 0x54, - 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x10, 0x0a, 0x32, 0x9c, 0x15, 0x0a, 0x0c, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 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, 0x8f, 0x01, 0x0a, 0x0b, 0x49, 0x73, 0x4f, 0x72, 0x67, 0x55, 0x6e, 0x69, 0x71, - 0x75, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, - 0x6e, 0x69, 0x71, 0x75, 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x71, - 0x75, 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x5f, 0x69, 0x73, - 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x2e, - 0x72, 0x65, 0x61, 0x64, 0x12, 0x70, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x42, 0x79, - 0x49, 0x44, 0x12, 0x20, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x67, 0x49, 0x44, 0x1a, 0x1e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x72, 0x67, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x6f, - 0x72, 0x67, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x69, 0x61, - 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x8f, 0x01, 0x0a, 0x0a, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x4f, 0x72, 0x67, 0x73, 0x12, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x22, 0x0d, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, - 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, - 0x69, 0x61, 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x8b, 0x01, 0x0a, 0x08, 0x53, 0x65, 0x74, - 0x55, 0x70, 0x4f, 0x72, 0x67, 0x12, 0x2a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x74, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, - 0x67, 0x53, 0x65, 0x74, 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x22, 0x0c, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x5f, 0x73, - 0x65, 0x74, 0x75, 0x70, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x69, 0x61, 0x6d, - 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x9c, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4f, 0x72, - 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x49, 0x44, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x35, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x7b, 0x6f, - 0x72, 0x67, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x61, 0x6d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xa8, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, - 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x61, - 0x6d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, - 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0xa8, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x49, 0x61, - 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x1a, 0x18, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, - 0x7b, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x61, 0x6d, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x12, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 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, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x2a, 0x18, 0x2f, - 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x61, - 0x6d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x11, 0x69, 0x61, 0x6d, - 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x83, - 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, - 0x6f, 0x6c, 0x65, 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, 0x29, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, - 0x0e, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x82, - 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, - 0x72, 0x65, 0x61, 0x64, 0x12, 0x8f, 0x01, 0x0a, 0x0c, 0x41, 0x64, 0x64, 0x49, 0x61, 0x6d, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x64, 0x64, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x29, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x0d, 0x22, 0x08, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x3a, 0x01, 0x2a, - 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x31, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x61, 0x6d, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x1a, 0x12, 0x2f, 0x6d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x3a, - 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x31, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, - 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 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, 0x14, 0x2a, - 0x12, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x11, 0x69, 0x61, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0xab, 0x01, 0x0a, 0x10, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, - 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, - 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, - 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x62, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x56, - 0x69, 0x65, 0x77, 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, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x73, 0x22, 0x1c, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x08, 0x12, 0x06, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x73, 0x82, 0xb5, - 0x18, 0x0a, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x7c, 0x0a, 0x09, - 0x43, 0x6c, 0x65, 0x61, 0x72, 0x56, 0x69, 0x65, 0x77, 0x12, 0x21, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x49, 0x44, 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, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1d, 0x2f, 0x76, - 0x69, 0x65, 0x77, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, - 0x7b, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x82, 0xb5, 0x18, 0x0b, 0x0a, - 0x09, 0x69, 0x61, 0x6d, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x77, 0x0a, 0x0f, 0x47, 0x65, - 0x74, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 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, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x23, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x2e, 0x72, - 0x65, 0x61, 0x64, 0x12, 0xa4, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x61, - 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x49, 0x44, 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, 0x4d, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x38, 0x2a, 0x36, 0x2f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x7b, 0x76, - 0x69, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x66, 0x61, 0x69, 0x6c, 0x65, - 0x64, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x7d, 0x82, 0xb5, 0x18, 0x0b, 0x0a, - 0x09, 0x69, 0x61, 0x6d, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0xbe, 0x01, 0x5a, 0x2a, 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, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x92, 0x41, 0x8e, 0x01, 0x12, 0x41, 0x0a, - 0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x2b, - 0x12, 0x29, 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, 0x64, 0x6d, 0x69, 0x6e, 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, -} - -var ( - file_admin_proto_rawDescOnce sync.Once - file_admin_proto_rawDescData = file_admin_proto_rawDesc -) - -func file_admin_proto_rawDescGZIP() []byte { - file_admin_proto_rawDescOnce.Do(func() { - file_admin_proto_rawDescData = protoimpl.X.CompressGZIP(file_admin_proto_rawDescData) - }) - return file_admin_proto_rawDescData -} - -var file_admin_proto_enumTypes = make([]protoimpl.EnumInfo, 7) -var file_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 30) -var file_admin_proto_goTypes = []interface{}{ - (OrgState)(0), // 0: caos.zitadel.admin.api.v1.OrgState - (OrgSearchKey)(0), // 1: caos.zitadel.admin.api.v1.OrgSearchKey - (OrgSearchMethod)(0), // 2: caos.zitadel.admin.api.v1.OrgSearchMethod - (UserState)(0), // 3: caos.zitadel.admin.api.v1.UserState - (Gender)(0), // 4: caos.zitadel.admin.api.v1.Gender - (IamMemberSearchKey)(0), // 5: caos.zitadel.admin.api.v1.IamMemberSearchKey - (SearchMethod)(0), // 6: caos.zitadel.admin.api.v1.SearchMethod - (*OrgID)(nil), // 7: caos.zitadel.admin.api.v1.OrgID - (*UniqueOrgRequest)(nil), // 8: caos.zitadel.admin.api.v1.UniqueOrgRequest - (*UniqueOrgResponse)(nil), // 9: caos.zitadel.admin.api.v1.UniqueOrgResponse - (*Org)(nil), // 10: caos.zitadel.admin.api.v1.Org - (*OrgSearchRequest)(nil), // 11: caos.zitadel.admin.api.v1.OrgSearchRequest - (*OrgSearchQuery)(nil), // 12: caos.zitadel.admin.api.v1.OrgSearchQuery - (*OrgSearchResponse)(nil), // 13: caos.zitadel.admin.api.v1.OrgSearchResponse - (*OrgSetUpRequest)(nil), // 14: caos.zitadel.admin.api.v1.OrgSetUpRequest - (*OrgSetUpResponse)(nil), // 15: caos.zitadel.admin.api.v1.OrgSetUpResponse - (*CreateUserRequest)(nil), // 16: caos.zitadel.admin.api.v1.CreateUserRequest - (*User)(nil), // 17: caos.zitadel.admin.api.v1.User - (*CreateOrgRequest)(nil), // 18: caos.zitadel.admin.api.v1.CreateOrgRequest - (*OrgIamPolicy)(nil), // 19: caos.zitadel.admin.api.v1.OrgIamPolicy - (*OrgIamPolicyRequest)(nil), // 20: caos.zitadel.admin.api.v1.OrgIamPolicyRequest - (*OrgIamPolicyID)(nil), // 21: caos.zitadel.admin.api.v1.OrgIamPolicyID - (*IamMemberRoles)(nil), // 22: caos.zitadel.admin.api.v1.IamMemberRoles - (*IamMember)(nil), // 23: caos.zitadel.admin.api.v1.IamMember - (*AddIamMemberRequest)(nil), // 24: caos.zitadel.admin.api.v1.AddIamMemberRequest - (*ChangeIamMemberRequest)(nil), // 25: caos.zitadel.admin.api.v1.ChangeIamMemberRequest - (*RemoveIamMemberRequest)(nil), // 26: caos.zitadel.admin.api.v1.RemoveIamMemberRequest - (*IamMemberSearchResponse)(nil), // 27: caos.zitadel.admin.api.v1.IamMemberSearchResponse - (*IamMemberView)(nil), // 28: caos.zitadel.admin.api.v1.IamMemberView - (*IamMemberSearchRequest)(nil), // 29: caos.zitadel.admin.api.v1.IamMemberSearchRequest - (*IamMemberSearchQuery)(nil), // 30: caos.zitadel.admin.api.v1.IamMemberSearchQuery - (*FailedEventID)(nil), // 31: caos.zitadel.admin.api.v1.FailedEventID - (*FailedEvents)(nil), // 32: caos.zitadel.admin.api.v1.FailedEvents - (*FailedEvent)(nil), // 33: caos.zitadel.admin.api.v1.FailedEvent - (*ViewID)(nil), // 34: caos.zitadel.admin.api.v1.ViewID - (*Views)(nil), // 35: caos.zitadel.admin.api.v1.Views - (*View)(nil), // 36: caos.zitadel.admin.api.v1.View - (*timestamp.Timestamp)(nil), // 37: google.protobuf.Timestamp - (*empty.Empty)(nil), // 38: google.protobuf.Empty - (*_struct.Struct)(nil), // 39: google.protobuf.Struct -} -var file_admin_proto_depIdxs = []int32{ - 0, // 0: caos.zitadel.admin.api.v1.Org.state:type_name -> caos.zitadel.admin.api.v1.OrgState - 37, // 1: caos.zitadel.admin.api.v1.Org.creation_date:type_name -> google.protobuf.Timestamp - 37, // 2: caos.zitadel.admin.api.v1.Org.change_date:type_name -> google.protobuf.Timestamp - 1, // 3: caos.zitadel.admin.api.v1.OrgSearchRequest.sorting_column:type_name -> caos.zitadel.admin.api.v1.OrgSearchKey - 12, // 4: caos.zitadel.admin.api.v1.OrgSearchRequest.queries:type_name -> caos.zitadel.admin.api.v1.OrgSearchQuery - 1, // 5: caos.zitadel.admin.api.v1.OrgSearchQuery.key:type_name -> caos.zitadel.admin.api.v1.OrgSearchKey - 2, // 6: caos.zitadel.admin.api.v1.OrgSearchQuery.method:type_name -> caos.zitadel.admin.api.v1.OrgSearchMethod - 10, // 7: caos.zitadel.admin.api.v1.OrgSearchResponse.result:type_name -> caos.zitadel.admin.api.v1.Org - 18, // 8: caos.zitadel.admin.api.v1.OrgSetUpRequest.org:type_name -> caos.zitadel.admin.api.v1.CreateOrgRequest - 16, // 9: caos.zitadel.admin.api.v1.OrgSetUpRequest.user:type_name -> caos.zitadel.admin.api.v1.CreateUserRequest - 10, // 10: caos.zitadel.admin.api.v1.OrgSetUpResponse.org:type_name -> caos.zitadel.admin.api.v1.Org - 17, // 11: caos.zitadel.admin.api.v1.OrgSetUpResponse.user:type_name -> caos.zitadel.admin.api.v1.User - 4, // 12: caos.zitadel.admin.api.v1.CreateUserRequest.gender:type_name -> caos.zitadel.admin.api.v1.Gender - 3, // 13: caos.zitadel.admin.api.v1.User.state:type_name -> caos.zitadel.admin.api.v1.UserState - 37, // 14: caos.zitadel.admin.api.v1.User.creation_date:type_name -> google.protobuf.Timestamp - 37, // 15: caos.zitadel.admin.api.v1.User.change_date:type_name -> google.protobuf.Timestamp - 4, // 16: caos.zitadel.admin.api.v1.User.gender:type_name -> caos.zitadel.admin.api.v1.Gender - 37, // 17: caos.zitadel.admin.api.v1.OrgIamPolicy.creation_date:type_name -> google.protobuf.Timestamp - 37, // 18: caos.zitadel.admin.api.v1.OrgIamPolicy.change_date:type_name -> google.protobuf.Timestamp - 37, // 19: caos.zitadel.admin.api.v1.IamMember.change_date:type_name -> google.protobuf.Timestamp - 37, // 20: caos.zitadel.admin.api.v1.IamMember.creation_date:type_name -> google.protobuf.Timestamp - 28, // 21: caos.zitadel.admin.api.v1.IamMemberSearchResponse.result:type_name -> caos.zitadel.admin.api.v1.IamMemberView - 37, // 22: caos.zitadel.admin.api.v1.IamMemberView.change_date:type_name -> google.protobuf.Timestamp - 37, // 23: caos.zitadel.admin.api.v1.IamMemberView.creation_date:type_name -> google.protobuf.Timestamp - 30, // 24: caos.zitadel.admin.api.v1.IamMemberSearchRequest.queries:type_name -> caos.zitadel.admin.api.v1.IamMemberSearchQuery - 5, // 25: caos.zitadel.admin.api.v1.IamMemberSearchQuery.key:type_name -> caos.zitadel.admin.api.v1.IamMemberSearchKey - 6, // 26: caos.zitadel.admin.api.v1.IamMemberSearchQuery.method:type_name -> caos.zitadel.admin.api.v1.SearchMethod - 33, // 27: caos.zitadel.admin.api.v1.FailedEvents.failed_events:type_name -> caos.zitadel.admin.api.v1.FailedEvent - 36, // 28: caos.zitadel.admin.api.v1.Views.views:type_name -> caos.zitadel.admin.api.v1.View - 38, // 29: caos.zitadel.admin.api.v1.AdminService.Healthz:input_type -> google.protobuf.Empty - 38, // 30: caos.zitadel.admin.api.v1.AdminService.Ready:input_type -> google.protobuf.Empty - 38, // 31: caos.zitadel.admin.api.v1.AdminService.Validate:input_type -> google.protobuf.Empty - 8, // 32: caos.zitadel.admin.api.v1.AdminService.IsOrgUnique:input_type -> caos.zitadel.admin.api.v1.UniqueOrgRequest - 7, // 33: caos.zitadel.admin.api.v1.AdminService.GetOrgByID:input_type -> caos.zitadel.admin.api.v1.OrgID - 11, // 34: caos.zitadel.admin.api.v1.AdminService.SearchOrgs:input_type -> caos.zitadel.admin.api.v1.OrgSearchRequest - 14, // 35: caos.zitadel.admin.api.v1.AdminService.SetUpOrg:input_type -> caos.zitadel.admin.api.v1.OrgSetUpRequest - 21, // 36: caos.zitadel.admin.api.v1.AdminService.GetOrgIamPolicy:input_type -> caos.zitadel.admin.api.v1.OrgIamPolicyID - 20, // 37: caos.zitadel.admin.api.v1.AdminService.CreateOrgIamPolicy:input_type -> caos.zitadel.admin.api.v1.OrgIamPolicyRequest - 20, // 38: caos.zitadel.admin.api.v1.AdminService.UpdateOrgIamPolicy:input_type -> caos.zitadel.admin.api.v1.OrgIamPolicyRequest - 21, // 39: caos.zitadel.admin.api.v1.AdminService.DeleteOrgIamPolicy:input_type -> caos.zitadel.admin.api.v1.OrgIamPolicyID - 38, // 40: caos.zitadel.admin.api.v1.AdminService.GetIamMemberRoles:input_type -> google.protobuf.Empty - 24, // 41: caos.zitadel.admin.api.v1.AdminService.AddIamMember:input_type -> caos.zitadel.admin.api.v1.AddIamMemberRequest - 25, // 42: caos.zitadel.admin.api.v1.AdminService.ChangeIamMember:input_type -> caos.zitadel.admin.api.v1.ChangeIamMemberRequest - 26, // 43: caos.zitadel.admin.api.v1.AdminService.RemoveIamMember:input_type -> caos.zitadel.admin.api.v1.RemoveIamMemberRequest - 29, // 44: caos.zitadel.admin.api.v1.AdminService.SearchIamMembers:input_type -> caos.zitadel.admin.api.v1.IamMemberSearchRequest - 38, // 45: caos.zitadel.admin.api.v1.AdminService.GetViews:input_type -> google.protobuf.Empty - 34, // 46: caos.zitadel.admin.api.v1.AdminService.ClearView:input_type -> caos.zitadel.admin.api.v1.ViewID - 38, // 47: caos.zitadel.admin.api.v1.AdminService.GetFailedEvents:input_type -> google.protobuf.Empty - 31, // 48: caos.zitadel.admin.api.v1.AdminService.RemoveFailedEvent:input_type -> caos.zitadel.admin.api.v1.FailedEventID - 38, // 49: caos.zitadel.admin.api.v1.AdminService.Healthz:output_type -> google.protobuf.Empty - 38, // 50: caos.zitadel.admin.api.v1.AdminService.Ready:output_type -> google.protobuf.Empty - 39, // 51: caos.zitadel.admin.api.v1.AdminService.Validate:output_type -> google.protobuf.Struct - 9, // 52: caos.zitadel.admin.api.v1.AdminService.IsOrgUnique:output_type -> caos.zitadel.admin.api.v1.UniqueOrgResponse - 10, // 53: caos.zitadel.admin.api.v1.AdminService.GetOrgByID:output_type -> caos.zitadel.admin.api.v1.Org - 13, // 54: caos.zitadel.admin.api.v1.AdminService.SearchOrgs:output_type -> caos.zitadel.admin.api.v1.OrgSearchResponse - 15, // 55: caos.zitadel.admin.api.v1.AdminService.SetUpOrg:output_type -> caos.zitadel.admin.api.v1.OrgSetUpResponse - 19, // 56: caos.zitadel.admin.api.v1.AdminService.GetOrgIamPolicy:output_type -> caos.zitadel.admin.api.v1.OrgIamPolicy - 19, // 57: caos.zitadel.admin.api.v1.AdminService.CreateOrgIamPolicy:output_type -> caos.zitadel.admin.api.v1.OrgIamPolicy - 19, // 58: caos.zitadel.admin.api.v1.AdminService.UpdateOrgIamPolicy:output_type -> caos.zitadel.admin.api.v1.OrgIamPolicy - 38, // 59: caos.zitadel.admin.api.v1.AdminService.DeleteOrgIamPolicy:output_type -> google.protobuf.Empty - 22, // 60: caos.zitadel.admin.api.v1.AdminService.GetIamMemberRoles:output_type -> caos.zitadel.admin.api.v1.IamMemberRoles - 23, // 61: caos.zitadel.admin.api.v1.AdminService.AddIamMember:output_type -> caos.zitadel.admin.api.v1.IamMember - 23, // 62: caos.zitadel.admin.api.v1.AdminService.ChangeIamMember:output_type -> caos.zitadel.admin.api.v1.IamMember - 38, // 63: caos.zitadel.admin.api.v1.AdminService.RemoveIamMember:output_type -> google.protobuf.Empty - 27, // 64: caos.zitadel.admin.api.v1.AdminService.SearchIamMembers:output_type -> caos.zitadel.admin.api.v1.IamMemberSearchResponse - 35, // 65: caos.zitadel.admin.api.v1.AdminService.GetViews:output_type -> caos.zitadel.admin.api.v1.Views - 38, // 66: caos.zitadel.admin.api.v1.AdminService.ClearView:output_type -> google.protobuf.Empty - 32, // 67: caos.zitadel.admin.api.v1.AdminService.GetFailedEvents:output_type -> caos.zitadel.admin.api.v1.FailedEvents - 38, // 68: caos.zitadel.admin.api.v1.AdminService.RemoveFailedEvent:output_type -> google.protobuf.Empty - 49, // [49:69] is the sub-list for method output_type - 29, // [29:49] is the sub-list for method input_type - 29, // [29:29] is the sub-list for extension type_name - 29, // [29:29] is the sub-list for extension extendee - 0, // [0:29] is the sub-list for field type_name -} - -func init() { file_admin_proto_init() } -func file_admin_proto_init() { - if File_admin_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_admin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UniqueOrgRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UniqueOrgResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[3].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_admin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgSetUpRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgSetUpResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[10].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_admin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateOrgRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgIamPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgIamPolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgIamPolicyID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMemberRoles); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMember); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddIamMemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeIamMemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveIamMemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMemberSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMemberView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMemberSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMemberSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FailedEventID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FailedEvents); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FailedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ViewID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Views); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*View); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_admin_proto_rawDesc, - NumEnums: 7, - NumMessages: 30, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_admin_proto_goTypes, - DependencyIndexes: file_admin_proto_depIdxs, - EnumInfos: file_admin_proto_enumTypes, - MessageInfos: file_admin_proto_msgTypes, - }.Build() - File_admin_proto = out.File - file_admin_proto_rawDesc = nil - file_admin_proto_goTypes = nil - file_admin_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// AdminServiceClient is the client API for AdminService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AdminServiceClient interface { - // Healthz returns status OK as soon as the service started - Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - // Ready returns status OK as soon as all dependent services are available - 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) - //ORG - IsOrgUnique(ctx context.Context, in *UniqueOrgRequest, opts ...grpc.CallOption) (*UniqueOrgResponse, error) - GetOrgByID(ctx context.Context, in *OrgID, opts ...grpc.CallOption) (*Org, error) - SearchOrgs(ctx context.Context, in *OrgSearchRequest, opts ...grpc.CallOption) (*OrgSearchResponse, error) - SetUpOrg(ctx context.Context, in *OrgSetUpRequest, opts ...grpc.CallOption) (*OrgSetUpResponse, error) - //ORG_IAM_POLICY - GetOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*OrgIamPolicy, error) - CreateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) - UpdateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) - DeleteOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) - GetIamMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*IamMemberRoles, error) - AddIamMember(ctx context.Context, in *AddIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) - ChangeIamMember(ctx context.Context, in *ChangeIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) - RemoveIamMember(ctx context.Context, in *RemoveIamMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) - SearchIamMembers(ctx context.Context, in *IamMemberSearchRequest, opts ...grpc.CallOption) (*IamMemberSearchResponse, error) - GetViews(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Views, error) - ClearView(ctx context.Context, in *ViewID, opts ...grpc.CallOption) (*empty.Empty, error) - GetFailedEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*FailedEvents, error) - RemoveFailedEvent(ctx context.Context, in *FailedEventID, opts ...grpc.CallOption) (*empty.Empty, error) -} - -type adminServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient { - return &adminServiceClient{cc} -} - -func (c *adminServiceClient) Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Healthz", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Ready", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) { - out := new(_struct.Struct) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Validate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) IsOrgUnique(ctx context.Context, in *UniqueOrgRequest, opts ...grpc.CallOption) (*UniqueOrgResponse, error) { - out := new(UniqueOrgResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetOrgByID(ctx context.Context, in *OrgID, opts ...grpc.CallOption) (*Org, error) { - out := new(Org) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) SearchOrgs(ctx context.Context, in *OrgSearchRequest, opts ...grpc.CallOption) (*OrgSearchResponse, error) { - out := new(OrgSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) SetUpOrg(ctx context.Context, in *OrgSetUpRequest, opts ...grpc.CallOption) (*OrgSetUpResponse, error) { - out := new(OrgSetUpResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*OrgIamPolicy, error) { - out := new(OrgIamPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) { - out := new(OrgIamPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) { - out := new(OrgIamPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) DeleteOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/DeleteOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetIamMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*IamMemberRoles, error) { - out := new(IamMemberRoles) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetIamMemberRoles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) AddIamMember(ctx context.Context, in *AddIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) { - out := new(IamMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/AddIamMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ChangeIamMember(ctx context.Context, in *ChangeIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) { - out := new(IamMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/ChangeIamMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RemoveIamMember(ctx context.Context, in *RemoveIamMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveIamMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) SearchIamMembers(ctx context.Context, in *IamMemberSearchRequest, opts ...grpc.CallOption) (*IamMemberSearchResponse, error) { - out := new(IamMemberSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SearchIamMembers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetViews(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Views, error) { - out := new(Views) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetViews", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ClearView(ctx context.Context, in *ViewID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/ClearView", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetFailedEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*FailedEvents, error) { - out := new(FailedEvents) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetFailedEvents", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RemoveFailedEvent(ctx context.Context, in *FailedEventID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveFailedEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AdminServiceServer is the server API for AdminService service. -type AdminServiceServer interface { - // Healthz returns status OK as soon as the service started - Healthz(context.Context, *empty.Empty) (*empty.Empty, error) - // Ready returns status OK as soon as all dependent services are available - Ready(context.Context, *empty.Empty) (*empty.Empty, error) - Validate(context.Context, *empty.Empty) (*_struct.Struct, error) - //ORG - IsOrgUnique(context.Context, *UniqueOrgRequest) (*UniqueOrgResponse, error) - GetOrgByID(context.Context, *OrgID) (*Org, error) - SearchOrgs(context.Context, *OrgSearchRequest) (*OrgSearchResponse, error) - SetUpOrg(context.Context, *OrgSetUpRequest) (*OrgSetUpResponse, error) - //ORG_IAM_POLICY - GetOrgIamPolicy(context.Context, *OrgIamPolicyID) (*OrgIamPolicy, error) - CreateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) - UpdateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) - DeleteOrgIamPolicy(context.Context, *OrgIamPolicyID) (*empty.Empty, error) - GetIamMemberRoles(context.Context, *empty.Empty) (*IamMemberRoles, error) - AddIamMember(context.Context, *AddIamMemberRequest) (*IamMember, error) - ChangeIamMember(context.Context, *ChangeIamMemberRequest) (*IamMember, error) - RemoveIamMember(context.Context, *RemoveIamMemberRequest) (*empty.Empty, error) - SearchIamMembers(context.Context, *IamMemberSearchRequest) (*IamMemberSearchResponse, error) - GetViews(context.Context, *empty.Empty) (*Views, error) - ClearView(context.Context, *ViewID) (*empty.Empty, error) - GetFailedEvents(context.Context, *empty.Empty) (*FailedEvents, error) - RemoveFailedEvent(context.Context, *FailedEventID) (*empty.Empty, error) -} - -// UnimplementedAdminServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAdminServiceServer struct { -} - -func (*UnimplementedAdminServiceServer) Healthz(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Healthz not implemented") -} -func (*UnimplementedAdminServiceServer) Ready(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ready not implemented") -} -func (*UnimplementedAdminServiceServer) Validate(context.Context, *empty.Empty) (*_struct.Struct, error) { - return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented") -} -func (*UnimplementedAdminServiceServer) IsOrgUnique(context.Context, *UniqueOrgRequest) (*UniqueOrgResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsOrgUnique not implemented") -} -func (*UnimplementedAdminServiceServer) GetOrgByID(context.Context, *OrgID) (*Org, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrgByID not implemented") -} -func (*UnimplementedAdminServiceServer) SearchOrgs(context.Context, *OrgSearchRequest) (*OrgSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchOrgs not implemented") -} -func (*UnimplementedAdminServiceServer) SetUpOrg(context.Context, *OrgSetUpRequest) (*OrgSetUpResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetUpOrg not implemented") -} -func (*UnimplementedAdminServiceServer) GetOrgIamPolicy(context.Context, *OrgIamPolicyID) (*OrgIamPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrgIamPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) CreateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOrgIamPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateOrgIamPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) DeleteOrgIamPolicy(context.Context, *OrgIamPolicyID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteOrgIamPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) GetIamMemberRoles(context.Context, *empty.Empty) (*IamMemberRoles, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetIamMemberRoles not implemented") -} -func (*UnimplementedAdminServiceServer) AddIamMember(context.Context, *AddIamMemberRequest) (*IamMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddIamMember not implemented") -} -func (*UnimplementedAdminServiceServer) ChangeIamMember(context.Context, *ChangeIamMemberRequest) (*IamMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeIamMember not implemented") -} -func (*UnimplementedAdminServiceServer) RemoveIamMember(context.Context, *RemoveIamMemberRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveIamMember not implemented") -} -func (*UnimplementedAdminServiceServer) SearchIamMembers(context.Context, *IamMemberSearchRequest) (*IamMemberSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchIamMembers not implemented") -} -func (*UnimplementedAdminServiceServer) GetViews(context.Context, *empty.Empty) (*Views, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetViews not implemented") -} -func (*UnimplementedAdminServiceServer) ClearView(context.Context, *ViewID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearView not implemented") -} -func (*UnimplementedAdminServiceServer) GetFailedEvents(context.Context, *empty.Empty) (*FailedEvents, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetFailedEvents not implemented") -} -func (*UnimplementedAdminServiceServer) RemoveFailedEvent(context.Context, *FailedEventID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveFailedEvent not implemented") -} - -func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer) { - s.RegisterService(&_AdminService_serviceDesc, srv) -} - -func _AdminService_Healthz_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 { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).Healthz(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Healthz", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).Healthz(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_Ready_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 { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).Ready(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Ready", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).Ready(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_Validate_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 { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).Validate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Validate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).Validate(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_IsOrgUnique_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UniqueOrgRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).IsOrgUnique(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).IsOrgUnique(ctx, req.(*UniqueOrgRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetOrgByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetOrgByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetOrgByID(ctx, req.(*OrgID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_SearchOrgs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).SearchOrgs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).SearchOrgs(ctx, req.(*OrgSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_SetUpOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgSetUpRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).SetUpOrg(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).SetUpOrg(ctx, req.(*OrgSetUpRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgIamPolicyID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetOrgIamPolicy(ctx, req.(*OrgIamPolicyID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgIamPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateOrgIamPolicy(ctx, req.(*OrgIamPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgIamPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateOrgIamPolicy(ctx, req.(*OrgIamPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_DeleteOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgIamPolicyID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).DeleteOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/DeleteOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).DeleteOrgIamPolicy(ctx, req.(*OrgIamPolicyID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetIamMemberRoles_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 { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetIamMemberRoles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetIamMemberRoles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetIamMemberRoles(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_AddIamMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddIamMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).AddIamMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/AddIamMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).AddIamMember(ctx, req.(*AddIamMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ChangeIamMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeIamMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ChangeIamMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/ChangeIamMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ChangeIamMember(ctx, req.(*ChangeIamMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RemoveIamMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveIamMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RemoveIamMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveIamMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RemoveIamMember(ctx, req.(*RemoveIamMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_SearchIamMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IamMemberSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).SearchIamMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SearchIamMembers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).SearchIamMembers(ctx, req.(*IamMemberSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetViews_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 { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetViews(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetViews", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetViews(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ClearView_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ViewID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ClearView(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/ClearView", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ClearView(ctx, req.(*ViewID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetFailedEvents_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 { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetFailedEvents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetFailedEvents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetFailedEvents(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RemoveFailedEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FailedEventID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RemoveFailedEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveFailedEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RemoveFailedEvent(ctx, req.(*FailedEventID)) - } - return interceptor(ctx, in, info, handler) -} - -var _AdminService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "caos.zitadel.admin.api.v1.AdminService", - HandlerType: (*AdminServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Healthz", - Handler: _AdminService_Healthz_Handler, - }, - { - MethodName: "Ready", - Handler: _AdminService_Ready_Handler, - }, - { - MethodName: "Validate", - Handler: _AdminService_Validate_Handler, - }, - { - MethodName: "IsOrgUnique", - Handler: _AdminService_IsOrgUnique_Handler, - }, - { - MethodName: "GetOrgByID", - Handler: _AdminService_GetOrgByID_Handler, - }, - { - MethodName: "SearchOrgs", - Handler: _AdminService_SearchOrgs_Handler, - }, - { - MethodName: "SetUpOrg", - Handler: _AdminService_SetUpOrg_Handler, - }, - { - MethodName: "GetOrgIamPolicy", - Handler: _AdminService_GetOrgIamPolicy_Handler, - }, - { - MethodName: "CreateOrgIamPolicy", - Handler: _AdminService_CreateOrgIamPolicy_Handler, - }, - { - MethodName: "UpdateOrgIamPolicy", - Handler: _AdminService_UpdateOrgIamPolicy_Handler, - }, - { - MethodName: "DeleteOrgIamPolicy", - Handler: _AdminService_DeleteOrgIamPolicy_Handler, - }, - { - MethodName: "GetIamMemberRoles", - Handler: _AdminService_GetIamMemberRoles_Handler, - }, - { - MethodName: "AddIamMember", - Handler: _AdminService_AddIamMember_Handler, - }, - { - MethodName: "ChangeIamMember", - Handler: _AdminService_ChangeIamMember_Handler, - }, - { - MethodName: "RemoveIamMember", - Handler: _AdminService_RemoveIamMember_Handler, - }, - { - MethodName: "SearchIamMembers", - Handler: _AdminService_SearchIamMembers_Handler, - }, - { - MethodName: "GetViews", - Handler: _AdminService_GetViews_Handler, - }, - { - MethodName: "ClearView", - Handler: _AdminService_ClearView_Handler, - }, - { - MethodName: "GetFailedEvents", - Handler: _AdminService_GetFailedEvents_Handler, - }, - { - MethodName: "RemoveFailedEvent", - Handler: _AdminService_RemoveFailedEvent_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "admin.proto", -} diff --git a/pkg/admin/api/grpc/gateway.go b/pkg/admin/api/grpc/gateway.go deleted file mode 100644 index f3b9ddf490..0000000000 --- a/pkg/admin/api/grpc/gateway.go +++ /dev/null @@ -1,47 +0,0 @@ -package grpc - -import ( - grpc_util "github.com/caos/zitadel/internal/api/grpc" - "github.com/caos/zitadel/internal/api/grpc/server" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "strings" -) - -type Gateway struct { - grpcEndpoint string - port string - cutomHeaders []string -} - -func StartGateway(conf grpc_util.GatewayConfig) *Gateway { - return &Gateway{ - grpcEndpoint: conf.GRPCEndpoint, - port: conf.Port, - cutomHeaders: conf.CustomHeaders, - } -} - -func (gw *Gateway) Gateway() server.GatewayFunc { - return RegisterAdminServiceHandlerFromEndpoint -} - -func (gw *Gateway) GRPCEndpoint() string { - return ":" + gw.grpcEndpoint -} - -func (gw *Gateway) GatewayPort() string { - return gw.port -} - -func (gw *Gateway) GatewayServeMuxOptions() []runtime.ServeMuxOption { - return []runtime.ServeMuxOption{ - runtime.WithIncomingHeaderMatcher(func(header string) (string, bool) { - for _, customHeader := range gw.cutomHeaders { - if strings.HasPrefix(strings.ToLower(header), customHeader) { - return header, true - } - } - return runtime.DefaultHeaderMatcher(header) - }), - } -} diff --git a/pkg/admin/api/grpc/server.go b/pkg/admin/api/grpc/server.go deleted file mode 100644 index 26873a52b2..0000000000 --- a/pkg/admin/api/grpc/server.go +++ /dev/null @@ -1,55 +0,0 @@ -package grpc - -import ( - admin_auth "github.com/caos/zitadel/internal/admin/auth" - "github.com/caos/zitadel/internal/admin/repository" - "github.com/caos/zitadel/internal/api/auth" - grpc_util "github.com/caos/zitadel/internal/api/grpc" - "github.com/caos/zitadel/internal/api/grpc/server/middleware" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" - "github.com/caos/zitadel/internal/config/systemdefaults" - grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" - "google.golang.org/grpc" -) - -var _ AdminServiceServer = (*Server)(nil) - -type Server struct { - port string - org repository.OrgRepository - iam repository.IamRepository - administrator repository.AdministratorRepository - verifier auth.TokenVerifier - authZ auth.Config - repo repository.Repository -} - -func StartServer(conf grpc_util.ServerConfig, authZRepo *authz_repo.EsRepository, authZ auth.Config, repo repository.Repository) *Server { - return &Server{ - port: conf.Port, - org: repo, - iam: repo, - administrator: repo, - repo: repo, - authZ: authZ, - verifier: admin_auth.Start(authZRepo), - } -} - -func (s *Server) GRPCPort() string { - return s.port -} - -func (s *Server) GRPCServer(defaults systemdefaults.SystemDefaults) (*grpc.Server, error) { - gs := grpc.NewServer( - middleware.TracingStatsServer("/Healthz", "/Ready", "/Validate"), - grpc.UnaryInterceptor( - grpc_middleware.ChainUnaryServer( - middleware.ErrorHandler(defaults.DefaultLanguage), - AdminService_Authorization_Interceptor(s.verifier, &s.authZ), - ), - ), - ) - RegisterAdminServiceServer(gs, s) - return gs, nil -} diff --git a/pkg/auth/api/api.go b/pkg/auth/api/api.go deleted file mode 100644 index 8721a1514d..0000000000 --- a/pkg/auth/api/api.go +++ /dev/null @@ -1,31 +0,0 @@ -package api - -import ( - "context" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" - "github.com/caos/zitadel/internal/config/systemdefaults" - - "github.com/caos/oidc/pkg/op" - - auth_util "github.com/caos/zitadel/internal/api/auth" - grpc_util "github.com/caos/zitadel/internal/api/grpc" - "github.com/caos/zitadel/internal/api/grpc/server" - "github.com/caos/zitadel/internal/auth/repository" - "github.com/caos/zitadel/pkg/auth/api/grpc" - "github.com/caos/zitadel/pkg/auth/api/oidc" -) - -type Config struct { - GRPC grpc_util.Config - OIDC oidc.OPHandlerConfig -} - -func Start(ctx context.Context, conf Config, authZRepo *authz_repo.EsRepository, authZ auth_util.Config, defaults systemdefaults.SystemDefaults, authRepo repository.Repository) { - grpcServer := grpc.StartServer(conf.GRPC.ToServerConfig(), authZRepo, authZ, authRepo) - grpcGateway := grpc.StartGateway(conf.GRPC.ToGatewayConfig()) - oidcHandler := oidc.NewProvider(ctx, conf.OIDC, authRepo) - - server.StartServer(ctx, grpcServer, defaults) - server.StartGateway(ctx, grpcGateway) - op.Start(ctx, oidcHandler) -} diff --git a/pkg/auth/api/grpc/auth.pb.authoptions.go b/pkg/auth/api/grpc/auth.pb.authoptions.go deleted file mode 100644 index 52923fcbd5..0000000000 --- a/pkg/auth/api/grpc/auth.pb.authoptions.go +++ /dev/null @@ -1,151 +0,0 @@ -// Code generated by protoc-gen-authmethod. DO NOT EDIT. - -package grpc - -import ( - "google.golang.org/grpc" - - utils_auth "github.com/caos/zitadel/internal/api/auth" - "github.com/caos/zitadel/internal/api/grpc/server/middleware" -) - -/** - * AuthService - */ - -var AuthService_AuthMethods = utils_auth.MethodMapping{ - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserSessions": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUser": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserProfile": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserProfile": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserEmail": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserEmail": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserEmail": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ResendMyEmailVerificationMail": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserPhone": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserPhone": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/RemoveMyUserPhone": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserPhone": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ResendMyPhoneVerificationCode": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserAddress": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserChanges": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserAddress": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyMfas": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ChangeMyPassword": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyPasswordComplexityPolicy": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/AddMfaOTP": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/VerifyMfaOTP": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/RemoveMfaOTP": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/SearchMyUserGrant": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/SearchMyProjectOrgs": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyZitadelPermissions": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyProjectPermissions": utils_auth.Option{ - Permission: "authenticated", - CheckParam: "", - }, -} - -func AuthService_Authorization_Interceptor(verifier utils_auth.TokenVerifier, authConf *utils_auth.Config) grpc.UnaryServerInterceptor { - return middleware.AuthorizationInterceptor(verifier, authConf, AuthService_AuthMethods) -} diff --git a/pkg/auth/api/grpc/generate.go b/pkg/auth/api/grpc/generate.go deleted file mode 100644 index 17cea23cc5..0000000000 --- a/pkg/auth/api/grpc/generate.go +++ /dev/null @@ -1,4 +0,0 @@ -package grpc - -//go:generate protoc -I${GOPATH}/src -I../proto -I${GOPATH}/src/github.com/caos/zitadel/pkg/message -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate -I${GOPATH}/src/github.com/caos/zitadel/internal/protoc/protoc-gen-authoption --go_out=plugins=grpc:${GOPATH}/src --grpc-gateway_out=logtostderr=true:${GOPATH}/src --swagger_out=logtostderr=true:. --authoption_out=. ../proto/auth.proto -//go:generate mockgen -package api -destination ./mock/auth.proto.mock.go github.com/caos/zitadel/pkg/auth/api/grpc AuthServiceClient diff --git a/pkg/auth/api/grpc/search_converter.go b/pkg/auth/api/grpc/search_converter.go deleted file mode 100644 index a875da5019..0000000000 --- a/pkg/auth/api/grpc/search_converter.go +++ /dev/null @@ -1,22 +0,0 @@ -package grpc - -import "github.com/caos/zitadel/internal/model" - -func searchMethodToModel(method SearchMethod) model.SearchMethod { - switch method { - case SearchMethod_SEARCHMETHOD_EQUALS: - return model.SearchMethodEquals - case SearchMethod_SEARCHMETHOD_CONTAINS: - return model.SearchMethodContains - case SearchMethod_SEARCHMETHOD_STARTS_WITH: - return model.SearchMethodStartsWith - case SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE: - return model.SearchMethodEqualsIgnoreCase - case SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE: - return model.SearchMethodContainsIgnoreCase - case SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE: - return model.SearchMethodStartsWithIgnoreCase - default: - return model.SearchMethodEquals - } -} diff --git a/pkg/auth/api/grpc/server.go b/pkg/auth/api/grpc/server.go deleted file mode 100644 index b24e13f694..0000000000 --- a/pkg/auth/api/grpc/server.go +++ /dev/null @@ -1,51 +0,0 @@ -package grpc - -import ( - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" - "github.com/caos/zitadel/internal/config/systemdefaults" - grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" - "google.golang.org/grpc" - - auth_util "github.com/caos/zitadel/internal/api/auth" - grpc_util "github.com/caos/zitadel/internal/api/grpc" - "github.com/caos/zitadel/internal/api/grpc/server/middleware" - "github.com/caos/zitadel/internal/auth/auth" - "github.com/caos/zitadel/internal/auth/repository" -) - -var _ AuthServiceServer = (*Server)(nil) - -type Server struct { - port string - repo repository.Repository - verifier *auth.TokenVerifier - authZ auth_util.Config -} - -func StartServer(conf grpc_util.ServerConfig, authZRepo *authz_repo.EsRepository, authZ auth_util.Config, authRepo repository.Repository) *Server { - return &Server{ - port: conf.Port, - repo: authRepo, - authZ: authZ, - verifier: auth.Start(authZRepo), - } -} - -func (s *Server) GRPCPort() string { - return s.port -} - -func (s *Server) GRPCServer(defaults systemdefaults.SystemDefaults) (*grpc.Server, error) { - gs := grpc.NewServer( - middleware.TracingStatsServer("/Healthz", "/Ready", "/Validate"), - grpc.UnaryInterceptor( - grpc_middleware.ChainUnaryServer( - middleware.ErrorHandler(defaults.DefaultLanguage), - middleware.TranslationHandler(defaults.DefaultLanguage), - AuthService_Authorization_Interceptor(s.verifier, &s.authZ), - ), - ), - ) - RegisterAuthServiceServer(gs, s) - return gs, nil -} diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go deleted file mode 100644 index d06c028f32..0000000000 --- a/pkg/auth/auth.go +++ /dev/null @@ -1,20 +0,0 @@ -package auth - -import ( - "context" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" - - "github.com/caos/zitadel/internal/api/auth" - "github.com/caos/zitadel/internal/auth/repository/eventsourcing" - sd "github.com/caos/zitadel/internal/config/systemdefaults" - "github.com/caos/zitadel/pkg/auth/api" -) - -type Config struct { - API api.Config - Repository eventsourcing.Config -} - -func Start(ctx context.Context, config Config, authZRepo *authz_repo.EsRepository, authZ auth.Config, systemDefaults sd.SystemDefaults, authRepo *eventsourcing.EsRepository) { - api.Start(ctx, config.API, authZRepo, authZ, systemDefaults, authRepo) -} diff --git a/pkg/console/statik/generate.go b/pkg/console/statik/generate.go deleted file mode 100644 index 9156db8f23..0000000000 --- a/pkg/console/statik/generate.go +++ /dev/null @@ -1,3 +0,0 @@ -package statik - -//go:generate statik -src=../../../console/dist/app -dest=.. -ns=console diff --git a/pkg/grpc/admin/admin.pb.authoptions.go b/pkg/grpc/admin/admin.pb.authoptions.go new file mode 100644 index 0000000000..10685f7575 --- /dev/null +++ b/pkg/grpc/admin/admin.pb.authoptions.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-authmethod. DO NOT EDIT. + +package admin + +import ( + "github.com/caos/zitadel/internal/api/authz" +) + +/** + * AdminService + */ + +const AdminService_MethodPrefix = "caos.zitadel.admin.api.v1.AdminService" + +var AdminService_AuthMethods = authz.MethodMapping{ + + "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique": authz.Option{ + Permission: "iam.read", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID": authz.Option{ + Permission: "iam.read", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs": authz.Option{ + Permission: "iam.read", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg": authz.Option{ + Permission: "iam.write", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy": authz.Option{ + Permission: "iam.policy.read", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy": authz.Option{ + Permission: "iam.policy.write", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy": authz.Option{ + Permission: "iam.policy.write", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/DeleteOrgIamPolicy": authz.Option{ + Permission: "iam.policy.delete", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/GetIamMemberRoles": authz.Option{ + Permission: "iam.member.read", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/AddIamMember": authz.Option{ + Permission: "iam.member.write", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/ChangeIamMember": authz.Option{ + Permission: "iam.member.write", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/RemoveIamMember": authz.Option{ + Permission: "iam.member.delete", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/SearchIamMembers": authz.Option{ + Permission: "iam.member.read", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/GetViews": authz.Option{ + Permission: "iam.read", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/ClearView": authz.Option{ + Permission: "iam.write", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/GetFailedEvents": authz.Option{ + Permission: "iam.read", + CheckParam: "", + }, + + "/caos.zitadel.admin.api.v1.AdminService/RemoveFailedEvent": authz.Option{ + Permission: "iam.write", + CheckParam: "", + }, +} diff --git a/pkg/grpc/admin/admin.pb.go b/pkg/grpc/admin/admin.pb.go new file mode 100644 index 0000000000..139200c50e --- /dev/null +++ b/pkg/grpc/admin/admin.pb.go @@ -0,0 +1,3173 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: admin.proto + +package admin + +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" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// 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 OrgState int32 + +const ( + OrgState_ORGSTATE_UNSPECIFIED OrgState = 0 + OrgState_ORGSTATE_ACTIVE OrgState = 1 + OrgState_ORGSTATE_INACTIVE OrgState = 2 +) + +var OrgState_name = map[int32]string{ + 0: "ORGSTATE_UNSPECIFIED", + 1: "ORGSTATE_ACTIVE", + 2: "ORGSTATE_INACTIVE", +} + +var OrgState_value = map[string]int32{ + "ORGSTATE_UNSPECIFIED": 0, + "ORGSTATE_ACTIVE": 1, + "ORGSTATE_INACTIVE": 2, +} + +func (x OrgState) String() string { + return proto.EnumName(OrgState_name, int32(x)) +} + +func (OrgState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{0} +} + +type OrgSearchKey int32 + +const ( + OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED OrgSearchKey = 0 + OrgSearchKey_ORGSEARCHKEY_ORG_NAME OrgSearchKey = 1 + OrgSearchKey_ORGSEARCHKEY_DOMAIN OrgSearchKey = 2 + OrgSearchKey_ORGSEARCHKEY_STATE OrgSearchKey = 3 +) + +var OrgSearchKey_name = map[int32]string{ + 0: "ORGSEARCHKEY_UNSPECIFIED", + 1: "ORGSEARCHKEY_ORG_NAME", + 2: "ORGSEARCHKEY_DOMAIN", + 3: "ORGSEARCHKEY_STATE", +} + +var OrgSearchKey_value = map[string]int32{ + "ORGSEARCHKEY_UNSPECIFIED": 0, + "ORGSEARCHKEY_ORG_NAME": 1, + "ORGSEARCHKEY_DOMAIN": 2, + "ORGSEARCHKEY_STATE": 3, +} + +func (x OrgSearchKey) String() string { + return proto.EnumName(OrgSearchKey_name, int32(x)) +} + +func (OrgSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{1} +} + +type OrgSearchMethod int32 + +const ( + OrgSearchMethod_ORGSEARCHMETHOD_EQUALS OrgSearchMethod = 0 + OrgSearchMethod_ORGSEARCHMETHOD_STARTS_WITH OrgSearchMethod = 1 + OrgSearchMethod_ORGSEARCHMETHOD_CONTAINS OrgSearchMethod = 2 +) + +var OrgSearchMethod_name = map[int32]string{ + 0: "ORGSEARCHMETHOD_EQUALS", + 1: "ORGSEARCHMETHOD_STARTS_WITH", + 2: "ORGSEARCHMETHOD_CONTAINS", +} + +var OrgSearchMethod_value = map[string]int32{ + "ORGSEARCHMETHOD_EQUALS": 0, + "ORGSEARCHMETHOD_STARTS_WITH": 1, + "ORGSEARCHMETHOD_CONTAINS": 2, +} + +func (x OrgSearchMethod) String() string { + return proto.EnumName(OrgSearchMethod_name, int32(x)) +} + +func (OrgSearchMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{2} +} + +type UserState int32 + +const ( + UserState_USERSTATE_UNSPECIFIED UserState = 0 + UserState_USERSTATE_ACTIVE UserState = 1 + UserState_USERSTATE_INACTIVE UserState = 2 + UserState_USERSTATE_DELETED UserState = 3 + UserState_USERSTATE_LOCKED UserState = 4 + UserState_USERSTATE_SUSPEND UserState = 5 + UserState_USERSTATE_INITIAL UserState = 6 +) + +var UserState_name = map[int32]string{ + 0: "USERSTATE_UNSPECIFIED", + 1: "USERSTATE_ACTIVE", + 2: "USERSTATE_INACTIVE", + 3: "USERSTATE_DELETED", + 4: "USERSTATE_LOCKED", + 5: "USERSTATE_SUSPEND", + 6: "USERSTATE_INITIAL", +} + +var UserState_value = map[string]int32{ + "USERSTATE_UNSPECIFIED": 0, + "USERSTATE_ACTIVE": 1, + "USERSTATE_INACTIVE": 2, + "USERSTATE_DELETED": 3, + "USERSTATE_LOCKED": 4, + "USERSTATE_SUSPEND": 5, + "USERSTATE_INITIAL": 6, +} + +func (x UserState) String() string { + return proto.EnumName(UserState_name, int32(x)) +} + +func (UserState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{3} +} + +type Gender int32 + +const ( + Gender_GENDER_UNSPECIFIED Gender = 0 + Gender_GENDER_FEMALE Gender = 1 + Gender_GENDER_MALE Gender = 2 + Gender_GENDER_DIVERSE Gender = 3 +) + +var Gender_name = map[int32]string{ + 0: "GENDER_UNSPECIFIED", + 1: "GENDER_FEMALE", + 2: "GENDER_MALE", + 3: "GENDER_DIVERSE", +} + +var Gender_value = map[string]int32{ + "GENDER_UNSPECIFIED": 0, + "GENDER_FEMALE": 1, + "GENDER_MALE": 2, + "GENDER_DIVERSE": 3, +} + +func (x Gender) String() string { + return proto.EnumName(Gender_name, int32(x)) +} + +func (Gender) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{4} +} + +type IamMemberSearchKey int32 + +const ( + IamMemberSearchKey_IAMMEMBERSEARCHKEY_UNSPECIFIED IamMemberSearchKey = 0 + IamMemberSearchKey_IAMMEMBERSEARCHKEY_FIRST_NAME IamMemberSearchKey = 1 + IamMemberSearchKey_IAMMEMBERSEARCHKEY_LAST_NAME IamMemberSearchKey = 2 + IamMemberSearchKey_IAMMEMBERSEARCHKEY_EMAIL IamMemberSearchKey = 3 + IamMemberSearchKey_IAMMEMBERSEARCHKEY_USER_ID IamMemberSearchKey = 4 +) + +var IamMemberSearchKey_name = map[int32]string{ + 0: "IAMMEMBERSEARCHKEY_UNSPECIFIED", + 1: "IAMMEMBERSEARCHKEY_FIRST_NAME", + 2: "IAMMEMBERSEARCHKEY_LAST_NAME", + 3: "IAMMEMBERSEARCHKEY_EMAIL", + 4: "IAMMEMBERSEARCHKEY_USER_ID", +} + +var IamMemberSearchKey_value = map[string]int32{ + "IAMMEMBERSEARCHKEY_UNSPECIFIED": 0, + "IAMMEMBERSEARCHKEY_FIRST_NAME": 1, + "IAMMEMBERSEARCHKEY_LAST_NAME": 2, + "IAMMEMBERSEARCHKEY_EMAIL": 3, + "IAMMEMBERSEARCHKEY_USER_ID": 4, +} + +func (x IamMemberSearchKey) String() string { + return proto.EnumName(IamMemberSearchKey_name, int32(x)) +} + +func (IamMemberSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{5} +} + +type SearchMethod int32 + +const ( + SearchMethod_SEARCHMETHOD_EQUALS SearchMethod = 0 + SearchMethod_SEARCHMETHOD_STARTS_WITH SearchMethod = 1 + SearchMethod_SEARCHMETHOD_CONTAINS SearchMethod = 2 + SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE SearchMethod = 3 + SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE SearchMethod = 4 + SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE SearchMethod = 5 + SearchMethod_SEARCHMETHOD_NOT_EQUALS SearchMethod = 6 + SearchMethod_SEARCHMETHOD_GREATER_THAN SearchMethod = 7 + SearchMethod_SEARCHMETHOD_LESS_THAN SearchMethod = 8 + SearchMethod_SEARCHMETHOD_IS_ONE_OF SearchMethod = 9 + SearchMethod_SEARCHMETHOD_LIST_CONTAINS SearchMethod = 10 +) + +var SearchMethod_name = map[int32]string{ + 0: "SEARCHMETHOD_EQUALS", + 1: "SEARCHMETHOD_STARTS_WITH", + 2: "SEARCHMETHOD_CONTAINS", + 3: "SEARCHMETHOD_EQUALS_IGNORE_CASE", + 4: "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE", + 5: "SEARCHMETHOD_CONTAINS_IGNORE_CASE", + 6: "SEARCHMETHOD_NOT_EQUALS", + 7: "SEARCHMETHOD_GREATER_THAN", + 8: "SEARCHMETHOD_LESS_THAN", + 9: "SEARCHMETHOD_IS_ONE_OF", + 10: "SEARCHMETHOD_LIST_CONTAINS", +} + +var SearchMethod_value = map[string]int32{ + "SEARCHMETHOD_EQUALS": 0, + "SEARCHMETHOD_STARTS_WITH": 1, + "SEARCHMETHOD_CONTAINS": 2, + "SEARCHMETHOD_EQUALS_IGNORE_CASE": 3, + "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE": 4, + "SEARCHMETHOD_CONTAINS_IGNORE_CASE": 5, + "SEARCHMETHOD_NOT_EQUALS": 6, + "SEARCHMETHOD_GREATER_THAN": 7, + "SEARCHMETHOD_LESS_THAN": 8, + "SEARCHMETHOD_IS_ONE_OF": 9, + "SEARCHMETHOD_LIST_CONTAINS": 10, +} + +func (x SearchMethod) String() string { + return proto.EnumName(SearchMethod_name, int32(x)) +} + +func (SearchMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{6} +} + +type OrgID 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 *OrgID) Reset() { *m = OrgID{} } +func (m *OrgID) String() string { return proto.CompactTextString(m) } +func (*OrgID) ProtoMessage() {} +func (*OrgID) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{0} +} + +func (m *OrgID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgID.Unmarshal(m, b) +} +func (m *OrgID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgID.Marshal(b, m, deterministic) +} +func (m *OrgID) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgID.Merge(m, src) +} +func (m *OrgID) XXX_Size() int { + return xxx_messageInfo_OrgID.Size(m) +} +func (m *OrgID) XXX_DiscardUnknown() { + xxx_messageInfo_OrgID.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgID proto.InternalMessageInfo + +func (m *OrgID) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type UniqueOrgRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UniqueOrgRequest) Reset() { *m = UniqueOrgRequest{} } +func (m *UniqueOrgRequest) String() string { return proto.CompactTextString(m) } +func (*UniqueOrgRequest) ProtoMessage() {} +func (*UniqueOrgRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{1} +} + +func (m *UniqueOrgRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UniqueOrgRequest.Unmarshal(m, b) +} +func (m *UniqueOrgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UniqueOrgRequest.Marshal(b, m, deterministic) +} +func (m *UniqueOrgRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UniqueOrgRequest.Merge(m, src) +} +func (m *UniqueOrgRequest) XXX_Size() int { + return xxx_messageInfo_UniqueOrgRequest.Size(m) +} +func (m *UniqueOrgRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UniqueOrgRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UniqueOrgRequest proto.InternalMessageInfo + +func (m *UniqueOrgRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UniqueOrgRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +type UniqueOrgResponse 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 *UniqueOrgResponse) Reset() { *m = UniqueOrgResponse{} } +func (m *UniqueOrgResponse) String() string { return proto.CompactTextString(m) } +func (*UniqueOrgResponse) ProtoMessage() {} +func (*UniqueOrgResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{2} +} + +func (m *UniqueOrgResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UniqueOrgResponse.Unmarshal(m, b) +} +func (m *UniqueOrgResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UniqueOrgResponse.Marshal(b, m, deterministic) +} +func (m *UniqueOrgResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UniqueOrgResponse.Merge(m, src) +} +func (m *UniqueOrgResponse) XXX_Size() int { + return xxx_messageInfo_UniqueOrgResponse.Size(m) +} +func (m *UniqueOrgResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UniqueOrgResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UniqueOrgResponse proto.InternalMessageInfo + +func (m *UniqueOrgResponse) GetIsUnique() bool { + if m != nil { + return m.IsUnique + } + return false +} + +type Org struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.admin.api.v1.OrgState" 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"` + Domain string `protobuf:"bytes,6,opt,name=domain,proto3" json:"domain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Org) Reset() { *m = Org{} } +func (m *Org) String() string { return proto.CompactTextString(m) } +func (*Org) ProtoMessage() {} +func (*Org) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{3} +} + +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 + } + return "" +} + +func (m *Org) GetState() OrgState { + if m != nil { + return m.State + } + return OrgState_ORGSTATE_UNSPECIFIED +} + +func (m *Org) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *Org) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *Org) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Org) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +type OrgSearchRequest 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 OrgSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchKey" json:"sorting_column,omitempty"` + Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` + Queries []*OrgSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgSearchRequest) Reset() { *m = OrgSearchRequest{} } +func (m *OrgSearchRequest) String() string { return proto.CompactTextString(m) } +func (*OrgSearchRequest) ProtoMessage() {} +func (*OrgSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{4} +} + +func (m *OrgSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgSearchRequest.Unmarshal(m, b) +} +func (m *OrgSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgSearchRequest.Marshal(b, m, deterministic) +} +func (m *OrgSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgSearchRequest.Merge(m, src) +} +func (m *OrgSearchRequest) XXX_Size() int { + return xxx_messageInfo_OrgSearchRequest.Size(m) +} +func (m *OrgSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_OrgSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgSearchRequest proto.InternalMessageInfo + +func (m *OrgSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *OrgSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *OrgSearchRequest) GetSortingColumn() OrgSearchKey { + if m != nil { + return m.SortingColumn + } + return OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED +} + +func (m *OrgSearchRequest) GetAsc() bool { + if m != nil { + return m.Asc + } + return false +} + +func (m *OrgSearchRequest) GetQueries() []*OrgSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type OrgSearchQuery struct { + Key OrgSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchKey" json:"key,omitempty"` + Method OrgSearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchMethod" 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 *OrgSearchQuery) Reset() { *m = OrgSearchQuery{} } +func (m *OrgSearchQuery) String() string { return proto.CompactTextString(m) } +func (*OrgSearchQuery) ProtoMessage() {} +func (*OrgSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{5} +} + +func (m *OrgSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgSearchQuery.Unmarshal(m, b) +} +func (m *OrgSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgSearchQuery.Marshal(b, m, deterministic) +} +func (m *OrgSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgSearchQuery.Merge(m, src) +} +func (m *OrgSearchQuery) XXX_Size() int { + return xxx_messageInfo_OrgSearchQuery.Size(m) +} +func (m *OrgSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_OrgSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgSearchQuery proto.InternalMessageInfo + +func (m *OrgSearchQuery) GetKey() OrgSearchKey { + if m != nil { + return m.Key + } + return OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED +} + +func (m *OrgSearchQuery) GetMethod() OrgSearchMethod { + if m != nil { + return m.Method + } + return OrgSearchMethod_ORGSEARCHMETHOD_EQUALS +} + +func (m *OrgSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type OrgSearchResponse 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:"-"` +} + +func (m *OrgSearchResponse) Reset() { *m = OrgSearchResponse{} } +func (m *OrgSearchResponse) String() string { return proto.CompactTextString(m) } +func (*OrgSearchResponse) ProtoMessage() {} +func (*OrgSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{6} +} + +func (m *OrgSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgSearchResponse.Unmarshal(m, b) +} +func (m *OrgSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgSearchResponse.Marshal(b, m, deterministic) +} +func (m *OrgSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgSearchResponse.Merge(m, src) +} +func (m *OrgSearchResponse) XXX_Size() int { + return xxx_messageInfo_OrgSearchResponse.Size(m) +} +func (m *OrgSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_OrgSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgSearchResponse proto.InternalMessageInfo + +func (m *OrgSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *OrgSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *OrgSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *OrgSearchResponse) GetResult() []*Org { + if m != nil { + return m.Result + } + return nil +} + +type OrgSetUpRequest struct { + Org *CreateOrgRequest `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"` + User *CreateUserRequest `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgSetUpRequest) Reset() { *m = OrgSetUpRequest{} } +func (m *OrgSetUpRequest) String() string { return proto.CompactTextString(m) } +func (*OrgSetUpRequest) ProtoMessage() {} +func (*OrgSetUpRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{7} +} + +func (m *OrgSetUpRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgSetUpRequest.Unmarshal(m, b) +} +func (m *OrgSetUpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgSetUpRequest.Marshal(b, m, deterministic) +} +func (m *OrgSetUpRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgSetUpRequest.Merge(m, src) +} +func (m *OrgSetUpRequest) XXX_Size() int { + return xxx_messageInfo_OrgSetUpRequest.Size(m) +} +func (m *OrgSetUpRequest) XXX_DiscardUnknown() { + xxx_messageInfo_OrgSetUpRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgSetUpRequest proto.InternalMessageInfo + +func (m *OrgSetUpRequest) GetOrg() *CreateOrgRequest { + if m != nil { + return m.Org + } + return nil +} + +func (m *OrgSetUpRequest) GetUser() *CreateUserRequest { + if m != nil { + return m.User + } + return nil +} + +type OrgSetUpResponse struct { + Org *Org `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgSetUpResponse) Reset() { *m = OrgSetUpResponse{} } +func (m *OrgSetUpResponse) String() string { return proto.CompactTextString(m) } +func (*OrgSetUpResponse) ProtoMessage() {} +func (*OrgSetUpResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{8} +} + +func (m *OrgSetUpResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgSetUpResponse.Unmarshal(m, b) +} +func (m *OrgSetUpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgSetUpResponse.Marshal(b, m, deterministic) +} +func (m *OrgSetUpResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgSetUpResponse.Merge(m, src) +} +func (m *OrgSetUpResponse) XXX_Size() int { + return xxx_messageInfo_OrgSetUpResponse.Size(m) +} +func (m *OrgSetUpResponse) XXX_DiscardUnknown() { + xxx_messageInfo_OrgSetUpResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgSetUpResponse proto.InternalMessageInfo + +func (m *OrgSetUpResponse) GetOrg() *Org { + if m != nil { + return m.Org + } + return nil +} + +func (m *OrgSetUpResponse) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +type CreateUserRequest struct { + UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,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"` + 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=caos.zitadel.admin.api.v1.Gender" json:"gender,omitempty"` + Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` + IsEmailVerified bool `protobuf:"varint,8,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` + Phone string `protobuf:"bytes,9,opt,name=phone,proto3" json:"phone,omitempty"` + IsPhoneVerified bool `protobuf:"varint,10,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` + Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"` + Locality string `protobuf:"bytes,12,opt,name=locality,proto3" json:"locality,omitempty"` + PostalCode string `protobuf:"bytes,13,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` + Region string `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty"` + StreetAddress string `protobuf:"bytes,15,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` + Password string `protobuf:"bytes,16,opt,name=password,proto3" json:"password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateUserRequest) Reset() { *m = CreateUserRequest{} } +func (m *CreateUserRequest) String() string { return proto.CompactTextString(m) } +func (*CreateUserRequest) ProtoMessage() {} +func (*CreateUserRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{9} +} + +func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateUserRequest.Unmarshal(m, b) +} +func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateUserRequest.Marshal(b, m, deterministic) +} +func (m *CreateUserRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateUserRequest.Merge(m, src) +} +func (m *CreateUserRequest) XXX_Size() int { + return xxx_messageInfo_CreateUserRequest.Size(m) +} +func (m *CreateUserRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateUserRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateUserRequest proto.InternalMessageInfo + +func (m *CreateUserRequest) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *CreateUserRequest) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *CreateUserRequest) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *CreateUserRequest) GetNickName() string { + if m != nil { + return m.NickName + } + return "" +} + +func (m *CreateUserRequest) GetPreferredLanguage() string { + if m != nil { + return m.PreferredLanguage + } + return "" +} + +func (m *CreateUserRequest) GetGender() Gender { + if m != nil { + return m.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (m *CreateUserRequest) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *CreateUserRequest) GetIsEmailVerified() bool { + if m != nil { + return m.IsEmailVerified + } + return false +} + +func (m *CreateUserRequest) GetPhone() string { + if m != nil { + return m.Phone + } + return "" +} + +func (m *CreateUserRequest) GetIsPhoneVerified() bool { + if m != nil { + return m.IsPhoneVerified + } + return false +} + +func (m *CreateUserRequest) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *CreateUserRequest) GetLocality() string { + if m != nil { + return m.Locality + } + return "" +} + +func (m *CreateUserRequest) GetPostalCode() string { + if m != nil { + return m.PostalCode + } + return "" +} + +func (m *CreateUserRequest) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *CreateUserRequest) GetStreetAddress() string { + if m != nil { + return m.StreetAddress + } + return "" +} + +func (m *CreateUserRequest) GetPassword() string { + if m != nil { + return m.Password + } + return "" +} + +type User struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State UserState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.admin.api.v1.UserState" 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"` + UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` + FirstName string `protobuf:"bytes,6,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,7,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + NickName string `protobuf:"bytes,8,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` + DisplayName string `protobuf:"bytes,9,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + PreferredLanguage string `protobuf:"bytes,10,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` + Gender Gender `protobuf:"varint,11,opt,name=gender,proto3,enum=caos.zitadel.admin.api.v1.Gender" json:"gender,omitempty"` + Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"` + IsEmailVerified bool `protobuf:"varint,13,opt,name=isEmailVerified,proto3" json:"isEmailVerified,omitempty"` + Phone string `protobuf:"bytes,14,opt,name=phone,proto3" json:"phone,omitempty"` + IsPhoneVerified bool `protobuf:"varint,15,opt,name=isPhoneVerified,proto3" json:"isPhoneVerified,omitempty"` + Country string `protobuf:"bytes,16,opt,name=country,proto3" json:"country,omitempty"` + Locality string `protobuf:"bytes,17,opt,name=locality,proto3" json:"locality,omitempty"` + PostalCode string `protobuf:"bytes,18,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` + Region string `protobuf:"bytes,19,opt,name=region,proto3" json:"region,omitempty"` + StreetAddress string `protobuf:"bytes,20,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` + Sequence uint64 `protobuf:"varint,21,opt,name=sequence,proto3" json:"sequence,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 (*User) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{10} +} + +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 + } + return "" +} + +func (m *User) GetState() UserState { + if m != nil { + return m.State + } + return UserState_USERSTATE_UNSPECIFIED +} + +func (m *User) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *User) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *User) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *User) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *User) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *User) GetNickName() string { + if m != nil { + return m.NickName + } + return "" +} + +func (m *User) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *User) GetPreferredLanguage() string { + if m != nil { + return m.PreferredLanguage + } + return "" +} + +func (m *User) GetGender() Gender { + if m != nil { + return m.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (m *User) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *User) GetIsEmailVerified() bool { + if m != nil { + return m.IsEmailVerified + } + return false +} + +func (m *User) GetPhone() string { + if m != nil { + return m.Phone + } + return "" +} + +func (m *User) GetIsPhoneVerified() bool { + if m != nil { + return m.IsPhoneVerified + } + return false +} + +func (m *User) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *User) GetLocality() string { + if m != nil { + return m.Locality + } + return "" +} + +func (m *User) GetPostalCode() string { + if m != nil { + return m.PostalCode + } + return "" +} + +func (m *User) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *User) GetStreetAddress() string { + if m != nil { + return m.StreetAddress + } + return "" +} + +func (m *User) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type CreateOrgRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateOrgRequest) Reset() { *m = CreateOrgRequest{} } +func (m *CreateOrgRequest) String() string { return proto.CompactTextString(m) } +func (*CreateOrgRequest) ProtoMessage() {} +func (*CreateOrgRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{11} +} + +func (m *CreateOrgRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateOrgRequest.Unmarshal(m, b) +} +func (m *CreateOrgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateOrgRequest.Marshal(b, m, deterministic) +} +func (m *CreateOrgRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateOrgRequest.Merge(m, src) +} +func (m *CreateOrgRequest) XXX_Size() int { + return xxx_messageInfo_CreateOrgRequest.Size(m) +} +func (m *CreateOrgRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateOrgRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateOrgRequest proto.InternalMessageInfo + +func (m *CreateOrgRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateOrgRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +type OrgIamPolicy struct { + OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + UserLoginMustBeDomain bool `protobuf:"varint,3,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"` + Default bool `protobuf:"varint,4,opt,name=default,proto3" json:"default,omitempty"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgIamPolicy) Reset() { *m = OrgIamPolicy{} } +func (m *OrgIamPolicy) String() string { return proto.CompactTextString(m) } +func (*OrgIamPolicy) ProtoMessage() {} +func (*OrgIamPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{12} +} + +func (m *OrgIamPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgIamPolicy.Unmarshal(m, b) +} +func (m *OrgIamPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgIamPolicy.Marshal(b, m, deterministic) +} +func (m *OrgIamPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgIamPolicy.Merge(m, src) +} +func (m *OrgIamPolicy) XXX_Size() int { + return xxx_messageInfo_OrgIamPolicy.Size(m) +} +func (m *OrgIamPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_OrgIamPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgIamPolicy proto.InternalMessageInfo + +func (m *OrgIamPolicy) GetOrgId() string { + if m != nil { + return m.OrgId + } + return "" +} + +func (m *OrgIamPolicy) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *OrgIamPolicy) GetUserLoginMustBeDomain() bool { + if m != nil { + return m.UserLoginMustBeDomain + } + return false +} + +func (m *OrgIamPolicy) GetDefault() bool { + if m != nil { + return m.Default + } + return false +} + +func (m *OrgIamPolicy) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *OrgIamPolicy) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *OrgIamPolicy) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +type OrgIamPolicyRequest struct { + OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + UserLoginMustBeDomain bool `protobuf:"varint,3,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgIamPolicyRequest) Reset() { *m = OrgIamPolicyRequest{} } +func (m *OrgIamPolicyRequest) String() string { return proto.CompactTextString(m) } +func (*OrgIamPolicyRequest) ProtoMessage() {} +func (*OrgIamPolicyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{13} +} + +func (m *OrgIamPolicyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgIamPolicyRequest.Unmarshal(m, b) +} +func (m *OrgIamPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgIamPolicyRequest.Marshal(b, m, deterministic) +} +func (m *OrgIamPolicyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgIamPolicyRequest.Merge(m, src) +} +func (m *OrgIamPolicyRequest) XXX_Size() int { + return xxx_messageInfo_OrgIamPolicyRequest.Size(m) +} +func (m *OrgIamPolicyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_OrgIamPolicyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgIamPolicyRequest proto.InternalMessageInfo + +func (m *OrgIamPolicyRequest) GetOrgId() string { + if m != nil { + return m.OrgId + } + return "" +} + +func (m *OrgIamPolicyRequest) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *OrgIamPolicyRequest) GetUserLoginMustBeDomain() bool { + if m != nil { + return m.UserLoginMustBeDomain + } + return false +} + +type OrgIamPolicyID struct { + OrgId string `protobuf:"bytes,1,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 *OrgIamPolicyID) Reset() { *m = OrgIamPolicyID{} } +func (m *OrgIamPolicyID) String() string { return proto.CompactTextString(m) } +func (*OrgIamPolicyID) ProtoMessage() {} +func (*OrgIamPolicyID) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{14} +} + +func (m *OrgIamPolicyID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgIamPolicyID.Unmarshal(m, b) +} +func (m *OrgIamPolicyID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgIamPolicyID.Marshal(b, m, deterministic) +} +func (m *OrgIamPolicyID) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgIamPolicyID.Merge(m, src) +} +func (m *OrgIamPolicyID) XXX_Size() int { + return xxx_messageInfo_OrgIamPolicyID.Size(m) +} +func (m *OrgIamPolicyID) XXX_DiscardUnknown() { + xxx_messageInfo_OrgIamPolicyID.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgIamPolicyID proto.InternalMessageInfo + +func (m *OrgIamPolicyID) GetOrgId() string { + if m != nil { + return m.OrgId + } + return "" +} + +type IamMemberRoles struct { + Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IamMemberRoles) Reset() { *m = IamMemberRoles{} } +func (m *IamMemberRoles) String() string { return proto.CompactTextString(m) } +func (*IamMemberRoles) ProtoMessage() {} +func (*IamMemberRoles) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{15} +} + +func (m *IamMemberRoles) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IamMemberRoles.Unmarshal(m, b) +} +func (m *IamMemberRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IamMemberRoles.Marshal(b, m, deterministic) +} +func (m *IamMemberRoles) XXX_Merge(src proto.Message) { + xxx_messageInfo_IamMemberRoles.Merge(m, src) +} +func (m *IamMemberRoles) XXX_Size() int { + return xxx_messageInfo_IamMemberRoles.Size(m) +} +func (m *IamMemberRoles) XXX_DiscardUnknown() { + xxx_messageInfo_IamMemberRoles.DiscardUnknown(m) +} + +var xxx_messageInfo_IamMemberRoles proto.InternalMessageInfo + +func (m *IamMemberRoles) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type IamMember struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IamMember) Reset() { *m = IamMember{} } +func (m *IamMember) String() string { return proto.CompactTextString(m) } +func (*IamMember) ProtoMessage() {} +func (*IamMember) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{16} +} + +func (m *IamMember) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IamMember.Unmarshal(m, b) +} +func (m *IamMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IamMember.Marshal(b, m, deterministic) +} +func (m *IamMember) XXX_Merge(src proto.Message) { + xxx_messageInfo_IamMember.Merge(m, src) +} +func (m *IamMember) XXX_Size() int { + return xxx_messageInfo_IamMember.Size(m) +} +func (m *IamMember) XXX_DiscardUnknown() { + xxx_messageInfo_IamMember.DiscardUnknown(m) +} + +var xxx_messageInfo_IamMember proto.InternalMessageInfo + +func (m *IamMember) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *IamMember) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +func (m *IamMember) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *IamMember) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *IamMember) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type AddIamMemberRequest struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddIamMemberRequest) Reset() { *m = AddIamMemberRequest{} } +func (m *AddIamMemberRequest) String() string { return proto.CompactTextString(m) } +func (*AddIamMemberRequest) ProtoMessage() {} +func (*AddIamMemberRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{17} +} + +func (m *AddIamMemberRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddIamMemberRequest.Unmarshal(m, b) +} +func (m *AddIamMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddIamMemberRequest.Marshal(b, m, deterministic) +} +func (m *AddIamMemberRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddIamMemberRequest.Merge(m, src) +} +func (m *AddIamMemberRequest) XXX_Size() int { + return xxx_messageInfo_AddIamMemberRequest.Size(m) +} +func (m *AddIamMemberRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddIamMemberRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddIamMemberRequest proto.InternalMessageInfo + +func (m *AddIamMemberRequest) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *AddIamMemberRequest) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type ChangeIamMemberRequest struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangeIamMemberRequest) Reset() { *m = ChangeIamMemberRequest{} } +func (m *ChangeIamMemberRequest) String() string { return proto.CompactTextString(m) } +func (*ChangeIamMemberRequest) ProtoMessage() {} +func (*ChangeIamMemberRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{18} +} + +func (m *ChangeIamMemberRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChangeIamMemberRequest.Unmarshal(m, b) +} +func (m *ChangeIamMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChangeIamMemberRequest.Marshal(b, m, deterministic) +} +func (m *ChangeIamMemberRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeIamMemberRequest.Merge(m, src) +} +func (m *ChangeIamMemberRequest) XXX_Size() int { + return xxx_messageInfo_ChangeIamMemberRequest.Size(m) +} +func (m *ChangeIamMemberRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeIamMemberRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ChangeIamMemberRequest proto.InternalMessageInfo + +func (m *ChangeIamMemberRequest) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ChangeIamMemberRequest) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type RemoveIamMemberRequest 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 *RemoveIamMemberRequest) Reset() { *m = RemoveIamMemberRequest{} } +func (m *RemoveIamMemberRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveIamMemberRequest) ProtoMessage() {} +func (*RemoveIamMemberRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{19} +} + +func (m *RemoveIamMemberRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoveIamMemberRequest.Unmarshal(m, b) +} +func (m *RemoveIamMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoveIamMemberRequest.Marshal(b, m, deterministic) +} +func (m *RemoveIamMemberRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveIamMemberRequest.Merge(m, src) +} +func (m *RemoveIamMemberRequest) XXX_Size() int { + return xxx_messageInfo_RemoveIamMemberRequest.Size(m) +} +func (m *RemoveIamMemberRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveIamMemberRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveIamMemberRequest proto.InternalMessageInfo + +func (m *RemoveIamMemberRequest) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +type IamMemberSearchResponse 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 []*IamMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IamMemberSearchResponse) Reset() { *m = IamMemberSearchResponse{} } +func (m *IamMemberSearchResponse) String() string { return proto.CompactTextString(m) } +func (*IamMemberSearchResponse) ProtoMessage() {} +func (*IamMemberSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{20} +} + +func (m *IamMemberSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IamMemberSearchResponse.Unmarshal(m, b) +} +func (m *IamMemberSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IamMemberSearchResponse.Marshal(b, m, deterministic) +} +func (m *IamMemberSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IamMemberSearchResponse.Merge(m, src) +} +func (m *IamMemberSearchResponse) XXX_Size() int { + return xxx_messageInfo_IamMemberSearchResponse.Size(m) +} +func (m *IamMemberSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_IamMemberSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_IamMemberSearchResponse proto.InternalMessageInfo + +func (m *IamMemberSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *IamMemberSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *IamMemberSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *IamMemberSearchResponse) GetResult() []*IamMemberView { + if m != nil { + return m.Result + } + return nil +} + +type IamMemberView struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + UserName string `protobuf:"bytes,6,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` + Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` + FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IamMemberView) Reset() { *m = IamMemberView{} } +func (m *IamMemberView) String() string { return proto.CompactTextString(m) } +func (*IamMemberView) ProtoMessage() {} +func (*IamMemberView) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{21} +} + +func (m *IamMemberView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IamMemberView.Unmarshal(m, b) +} +func (m *IamMemberView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IamMemberView.Marshal(b, m, deterministic) +} +func (m *IamMemberView) XXX_Merge(src proto.Message) { + xxx_messageInfo_IamMemberView.Merge(m, src) +} +func (m *IamMemberView) XXX_Size() int { + return xxx_messageInfo_IamMemberView.Size(m) +} +func (m *IamMemberView) XXX_DiscardUnknown() { + xxx_messageInfo_IamMemberView.DiscardUnknown(m) +} + +var xxx_messageInfo_IamMemberView proto.InternalMessageInfo + +func (m *IamMemberView) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *IamMemberView) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +func (m *IamMemberView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *IamMemberView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *IamMemberView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *IamMemberView) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *IamMemberView) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *IamMemberView) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *IamMemberView) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +type IamMemberSearchRequest 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"` + Queries []*IamMemberSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IamMemberSearchRequest) Reset() { *m = IamMemberSearchRequest{} } +func (m *IamMemberSearchRequest) String() string { return proto.CompactTextString(m) } +func (*IamMemberSearchRequest) ProtoMessage() {} +func (*IamMemberSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{22} +} + +func (m *IamMemberSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IamMemberSearchRequest.Unmarshal(m, b) +} +func (m *IamMemberSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IamMemberSearchRequest.Marshal(b, m, deterministic) +} +func (m *IamMemberSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IamMemberSearchRequest.Merge(m, src) +} +func (m *IamMemberSearchRequest) XXX_Size() int { + return xxx_messageInfo_IamMemberSearchRequest.Size(m) +} +func (m *IamMemberSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_IamMemberSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_IamMemberSearchRequest proto.InternalMessageInfo + +func (m *IamMemberSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *IamMemberSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *IamMemberSearchRequest) GetQueries() []*IamMemberSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type IamMemberSearchQuery struct { + Key IamMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.admin.api.v1.IamMemberSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.admin.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 *IamMemberSearchQuery) Reset() { *m = IamMemberSearchQuery{} } +func (m *IamMemberSearchQuery) String() string { return proto.CompactTextString(m) } +func (*IamMemberSearchQuery) ProtoMessage() {} +func (*IamMemberSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{23} +} + +func (m *IamMemberSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IamMemberSearchQuery.Unmarshal(m, b) +} +func (m *IamMemberSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IamMemberSearchQuery.Marshal(b, m, deterministic) +} +func (m *IamMemberSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_IamMemberSearchQuery.Merge(m, src) +} +func (m *IamMemberSearchQuery) XXX_Size() int { + return xxx_messageInfo_IamMemberSearchQuery.Size(m) +} +func (m *IamMemberSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_IamMemberSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_IamMemberSearchQuery proto.InternalMessageInfo + +func (m *IamMemberSearchQuery) GetKey() IamMemberSearchKey { + if m != nil { + return m.Key + } + return IamMemberSearchKey_IAMMEMBERSEARCHKEY_UNSPECIFIED +} + +func (m *IamMemberSearchQuery) GetMethod() SearchMethod { + if m != nil { + return m.Method + } + return SearchMethod_SEARCHMETHOD_EQUALS +} + +func (m *IamMemberSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type FailedEventID struct { + Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` + ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` + FailedSequence uint64 `protobuf:"varint,3,opt,name=failed_sequence,json=failedSequence,proto3" json:"failed_sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FailedEventID) Reset() { *m = FailedEventID{} } +func (m *FailedEventID) String() string { return proto.CompactTextString(m) } +func (*FailedEventID) ProtoMessage() {} +func (*FailedEventID) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{24} +} + +func (m *FailedEventID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FailedEventID.Unmarshal(m, b) +} +func (m *FailedEventID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FailedEventID.Marshal(b, m, deterministic) +} +func (m *FailedEventID) XXX_Merge(src proto.Message) { + xxx_messageInfo_FailedEventID.Merge(m, src) +} +func (m *FailedEventID) XXX_Size() int { + return xxx_messageInfo_FailedEventID.Size(m) +} +func (m *FailedEventID) XXX_DiscardUnknown() { + xxx_messageInfo_FailedEventID.DiscardUnknown(m) +} + +var xxx_messageInfo_FailedEventID proto.InternalMessageInfo + +func (m *FailedEventID) GetDatabase() string { + if m != nil { + return m.Database + } + return "" +} + +func (m *FailedEventID) GetViewName() string { + if m != nil { + return m.ViewName + } + return "" +} + +func (m *FailedEventID) GetFailedSequence() uint64 { + if m != nil { + return m.FailedSequence + } + return 0 +} + +type FailedEvents struct { + FailedEvents []*FailedEvent `protobuf:"bytes,1,rep,name=failed_events,json=failedEvents,proto3" json:"failed_events,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FailedEvents) Reset() { *m = FailedEvents{} } +func (m *FailedEvents) String() string { return proto.CompactTextString(m) } +func (*FailedEvents) ProtoMessage() {} +func (*FailedEvents) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{25} +} + +func (m *FailedEvents) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FailedEvents.Unmarshal(m, b) +} +func (m *FailedEvents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FailedEvents.Marshal(b, m, deterministic) +} +func (m *FailedEvents) XXX_Merge(src proto.Message) { + xxx_messageInfo_FailedEvents.Merge(m, src) +} +func (m *FailedEvents) XXX_Size() int { + return xxx_messageInfo_FailedEvents.Size(m) +} +func (m *FailedEvents) XXX_DiscardUnknown() { + xxx_messageInfo_FailedEvents.DiscardUnknown(m) +} + +var xxx_messageInfo_FailedEvents proto.InternalMessageInfo + +func (m *FailedEvents) GetFailedEvents() []*FailedEvent { + if m != nil { + return m.FailedEvents + } + return nil +} + +type FailedEvent struct { + Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` + ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` + FailedSequence uint64 `protobuf:"varint,3,opt,name=failed_sequence,json=failedSequence,proto3" json:"failed_sequence,omitempty"` + FailureCount uint64 `protobuf:"varint,4,opt,name=failure_count,json=failureCount,proto3" json:"failure_count,omitempty"` + ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FailedEvent) Reset() { *m = FailedEvent{} } +func (m *FailedEvent) String() string { return proto.CompactTextString(m) } +func (*FailedEvent) ProtoMessage() {} +func (*FailedEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{26} +} + +func (m *FailedEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FailedEvent.Unmarshal(m, b) +} +func (m *FailedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FailedEvent.Marshal(b, m, deterministic) +} +func (m *FailedEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_FailedEvent.Merge(m, src) +} +func (m *FailedEvent) XXX_Size() int { + return xxx_messageInfo_FailedEvent.Size(m) +} +func (m *FailedEvent) XXX_DiscardUnknown() { + xxx_messageInfo_FailedEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_FailedEvent proto.InternalMessageInfo + +func (m *FailedEvent) GetDatabase() string { + if m != nil { + return m.Database + } + return "" +} + +func (m *FailedEvent) GetViewName() string { + if m != nil { + return m.ViewName + } + return "" +} + +func (m *FailedEvent) GetFailedSequence() uint64 { + if m != nil { + return m.FailedSequence + } + return 0 +} + +func (m *FailedEvent) GetFailureCount() uint64 { + if m != nil { + return m.FailureCount + } + return 0 +} + +func (m *FailedEvent) GetErrorMessage() string { + if m != nil { + return m.ErrorMessage + } + return "" +} + +type ViewID struct { + Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` + ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ViewID) Reset() { *m = ViewID{} } +func (m *ViewID) String() string { return proto.CompactTextString(m) } +func (*ViewID) ProtoMessage() {} +func (*ViewID) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{27} +} + +func (m *ViewID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ViewID.Unmarshal(m, b) +} +func (m *ViewID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ViewID.Marshal(b, m, deterministic) +} +func (m *ViewID) XXX_Merge(src proto.Message) { + xxx_messageInfo_ViewID.Merge(m, src) +} +func (m *ViewID) XXX_Size() int { + return xxx_messageInfo_ViewID.Size(m) +} +func (m *ViewID) XXX_DiscardUnknown() { + xxx_messageInfo_ViewID.DiscardUnknown(m) +} + +var xxx_messageInfo_ViewID proto.InternalMessageInfo + +func (m *ViewID) GetDatabase() string { + if m != nil { + return m.Database + } + return "" +} + +func (m *ViewID) GetViewName() string { + if m != nil { + return m.ViewName + } + return "" +} + +type Views struct { + Views []*View `protobuf:"bytes,1,rep,name=views,proto3" json:"views,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Views) Reset() { *m = Views{} } +func (m *Views) String() string { return proto.CompactTextString(m) } +func (*Views) ProtoMessage() {} +func (*Views) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{28} +} + +func (m *Views) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Views.Unmarshal(m, b) +} +func (m *Views) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Views.Marshal(b, m, deterministic) +} +func (m *Views) XXX_Merge(src proto.Message) { + xxx_messageInfo_Views.Merge(m, src) +} +func (m *Views) XXX_Size() int { + return xxx_messageInfo_Views.Size(m) +} +func (m *Views) XXX_DiscardUnknown() { + xxx_messageInfo_Views.DiscardUnknown(m) +} + +var xxx_messageInfo_Views proto.InternalMessageInfo + +func (m *Views) GetViews() []*View { + if m != nil { + return m.Views + } + return nil +} + +type View struct { + Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` + ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` + Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *View) Reset() { *m = View{} } +func (m *View) String() string { return proto.CompactTextString(m) } +func (*View) ProtoMessage() {} +func (*View) Descriptor() ([]byte, []int) { + return fileDescriptor_73a7fc70dcc2027c, []int{29} +} + +func (m *View) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_View.Unmarshal(m, b) +} +func (m *View) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_View.Marshal(b, m, deterministic) +} +func (m *View) XXX_Merge(src proto.Message) { + xxx_messageInfo_View.Merge(m, src) +} +func (m *View) XXX_Size() int { + return xxx_messageInfo_View.Size(m) +} +func (m *View) XXX_DiscardUnknown() { + xxx_messageInfo_View.DiscardUnknown(m) +} + +var xxx_messageInfo_View proto.InternalMessageInfo + +func (m *View) GetDatabase() string { + if m != nil { + return m.Database + } + return "" +} + +func (m *View) GetViewName() string { + if m != nil { + return m.ViewName + } + return "" +} + +func (m *View) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func init() { + proto.RegisterEnum("caos.zitadel.admin.api.v1.OrgState", OrgState_name, OrgState_value) + proto.RegisterEnum("caos.zitadel.admin.api.v1.OrgSearchKey", OrgSearchKey_name, OrgSearchKey_value) + proto.RegisterEnum("caos.zitadel.admin.api.v1.OrgSearchMethod", OrgSearchMethod_name, OrgSearchMethod_value) + proto.RegisterEnum("caos.zitadel.admin.api.v1.UserState", UserState_name, UserState_value) + proto.RegisterEnum("caos.zitadel.admin.api.v1.Gender", Gender_name, Gender_value) + proto.RegisterEnum("caos.zitadel.admin.api.v1.IamMemberSearchKey", IamMemberSearchKey_name, IamMemberSearchKey_value) + proto.RegisterEnum("caos.zitadel.admin.api.v1.SearchMethod", SearchMethod_name, SearchMethod_value) + proto.RegisterType((*OrgID)(nil), "caos.zitadel.admin.api.v1.OrgID") + proto.RegisterType((*UniqueOrgRequest)(nil), "caos.zitadel.admin.api.v1.UniqueOrgRequest") + proto.RegisterType((*UniqueOrgResponse)(nil), "caos.zitadel.admin.api.v1.UniqueOrgResponse") + proto.RegisterType((*Org)(nil), "caos.zitadel.admin.api.v1.Org") + proto.RegisterType((*OrgSearchRequest)(nil), "caos.zitadel.admin.api.v1.OrgSearchRequest") + proto.RegisterType((*OrgSearchQuery)(nil), "caos.zitadel.admin.api.v1.OrgSearchQuery") + proto.RegisterType((*OrgSearchResponse)(nil), "caos.zitadel.admin.api.v1.OrgSearchResponse") + proto.RegisterType((*OrgSetUpRequest)(nil), "caos.zitadel.admin.api.v1.OrgSetUpRequest") + proto.RegisterType((*OrgSetUpResponse)(nil), "caos.zitadel.admin.api.v1.OrgSetUpResponse") + proto.RegisterType((*CreateUserRequest)(nil), "caos.zitadel.admin.api.v1.CreateUserRequest") + proto.RegisterType((*User)(nil), "caos.zitadel.admin.api.v1.User") + proto.RegisterType((*CreateOrgRequest)(nil), "caos.zitadel.admin.api.v1.CreateOrgRequest") + proto.RegisterType((*OrgIamPolicy)(nil), "caos.zitadel.admin.api.v1.OrgIamPolicy") + proto.RegisterType((*OrgIamPolicyRequest)(nil), "caos.zitadel.admin.api.v1.OrgIamPolicyRequest") + proto.RegisterType((*OrgIamPolicyID)(nil), "caos.zitadel.admin.api.v1.OrgIamPolicyID") + proto.RegisterType((*IamMemberRoles)(nil), "caos.zitadel.admin.api.v1.IamMemberRoles") + proto.RegisterType((*IamMember)(nil), "caos.zitadel.admin.api.v1.IamMember") + proto.RegisterType((*AddIamMemberRequest)(nil), "caos.zitadel.admin.api.v1.AddIamMemberRequest") + proto.RegisterType((*ChangeIamMemberRequest)(nil), "caos.zitadel.admin.api.v1.ChangeIamMemberRequest") + proto.RegisterType((*RemoveIamMemberRequest)(nil), "caos.zitadel.admin.api.v1.RemoveIamMemberRequest") + proto.RegisterType((*IamMemberSearchResponse)(nil), "caos.zitadel.admin.api.v1.IamMemberSearchResponse") + proto.RegisterType((*IamMemberView)(nil), "caos.zitadel.admin.api.v1.IamMemberView") + proto.RegisterType((*IamMemberSearchRequest)(nil), "caos.zitadel.admin.api.v1.IamMemberSearchRequest") + proto.RegisterType((*IamMemberSearchQuery)(nil), "caos.zitadel.admin.api.v1.IamMemberSearchQuery") + proto.RegisterType((*FailedEventID)(nil), "caos.zitadel.admin.api.v1.FailedEventID") + proto.RegisterType((*FailedEvents)(nil), "caos.zitadel.admin.api.v1.FailedEvents") + proto.RegisterType((*FailedEvent)(nil), "caos.zitadel.admin.api.v1.FailedEvent") + proto.RegisterType((*ViewID)(nil), "caos.zitadel.admin.api.v1.ViewID") + proto.RegisterType((*Views)(nil), "caos.zitadel.admin.api.v1.Views") + proto.RegisterType((*View)(nil), "caos.zitadel.admin.api.v1.View") +} + +func init() { proto.RegisterFile("admin.proto", fileDescriptor_73a7fc70dcc2027c) } + +var fileDescriptor_73a7fc70dcc2027c = []byte{ + // 2883 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0xcd, 0x6f, 0xdb, 0xc8, + 0xd9, 0x5f, 0xea, 0xcb, 0xd2, 0x23, 0x59, 0xa6, 0x26, 0xfe, 0x50, 0xe4, 0x64, 0xe3, 0x30, 0x5f, + 0x8e, 0xb3, 0xb1, 0x12, 0xef, 0xbb, 0x5f, 0x79, 0xf1, 0xbe, 0xbb, 0xb2, 0xc4, 0x38, 0x44, 0x6c, + 0x29, 0x4b, 0xc9, 0x79, 0xf7, 0xed, 0x1e, 0x58, 0x5a, 0x1c, 0xd3, 0xec, 0x4a, 0xa2, 0x42, 0x52, + 0x4e, 0xbd, 0x69, 0x2e, 0x29, 0x0a, 0x14, 0x28, 0xd0, 0x6d, 0xb7, 0xd7, 0x05, 0x7a, 0xe9, 0xa1, + 0x40, 0x0b, 0xec, 0xa1, 0x08, 0xd0, 0x8f, 0x3f, 0xa0, 0xbd, 0xb7, 0x7f, 0x42, 0x4f, 0xbd, 0xf5, + 0x9a, 0x53, 0x31, 0x33, 0x24, 0x45, 0x4a, 0x94, 0x2c, 0xef, 0x62, 0x8b, 0x45, 0x4f, 0xb6, 0x9e, + 0xe7, 0x37, 0xcf, 0xfc, 0xe6, 0xf9, 0x98, 0x99, 0x67, 0x08, 0x59, 0x55, 0xeb, 0x1a, 0xbd, 0xcd, + 0xbe, 0x65, 0x3a, 0x26, 0x3a, 0xdf, 0x56, 0x4d, 0x7b, 0xf3, 0x53, 0xc3, 0x51, 0x35, 0xdc, 0xd9, + 0x64, 0x1a, 0xb5, 0x6f, 0x6c, 0x1e, 0xdf, 0x2d, 0x5d, 0xd0, 0x4d, 0x53, 0xef, 0xe0, 0xb2, 0xda, + 0x37, 0xca, 0x6a, 0xaf, 0x67, 0x3a, 0xaa, 0x63, 0x98, 0x3d, 0x9b, 0x0d, 0x2c, 0xad, 0xba, 0x5a, + 0xfa, 0xeb, 0x60, 0x70, 0x58, 0xc6, 0xdd, 0xbe, 0x73, 0xe2, 0x2a, 0x2f, 0x8d, 0x2a, 0x1d, 0xa3, + 0x8b, 0x6d, 0x47, 0xed, 0xf6, 0x5d, 0xc0, 0x85, 0x51, 0x80, 0xed, 0x58, 0x83, 0xb6, 0xe3, 0x6a, + 0x57, 0x8e, 0xd5, 0x8e, 0xa1, 0xa9, 0x0e, 0x2e, 0x7b, 0xff, 0xb8, 0x8a, 0x37, 0xe8, 0x9f, 0xf6, + 0x6d, 0x1d, 0xf7, 0x6e, 0xdb, 0x4f, 0x55, 0x5d, 0xc7, 0x56, 0xd9, 0xec, 0x53, 0x5a, 0x11, 0x14, + 0x8b, 0xea, 0xc0, 0x39, 0x62, 0x6a, 0x0f, 0xc5, 0x34, 0xc2, 0x0a, 0x24, 0x1b, 0x96, 0x2e, 0xd5, + 0x50, 0x1e, 0x62, 0x86, 0x56, 0xe4, 0xd6, 0xb8, 0xf5, 0x8c, 0x1c, 0x33, 0x34, 0xe1, 0x11, 0xf0, + 0xfb, 0x3d, 0xe3, 0xc9, 0x00, 0x37, 0x2c, 0x5d, 0xc6, 0x4f, 0x06, 0xd8, 0x76, 0xd0, 0x2a, 0x24, + 0x7a, 0x6a, 0x17, 0x33, 0xd4, 0xf6, 0xdc, 0xab, 0xed, 0x84, 0x15, 0xe3, 0x39, 0x99, 0x0a, 0xd1, + 0x25, 0x48, 0x69, 0x66, 0x57, 0x35, 0x7a, 0xc5, 0x58, 0x58, 0xed, 0x8a, 0x85, 0x3b, 0x50, 0x08, + 0x58, 0xb4, 0xfb, 0x66, 0xcf, 0xc6, 0x68, 0x15, 0x32, 0x86, 0xad, 0x0c, 0xa8, 0x9c, 0xda, 0x4d, + 0xcb, 0x69, 0xc3, 0x66, 0x38, 0xe1, 0x15, 0x07, 0xf1, 0x86, 0xa5, 0x8f, 0x72, 0x43, 0xef, 0x41, + 0xd2, 0x76, 0x54, 0x07, 0xd3, 0x99, 0xf2, 0x5b, 0x57, 0x36, 0x27, 0x86, 0x6e, 0xb3, 0x61, 0xe9, + 0x4d, 0x02, 0x95, 0xd9, 0x08, 0xf4, 0x3e, 0xcc, 0xb7, 0x2d, 0x4c, 0x9d, 0xa3, 0x10, 0x77, 0x16, + 0xe3, 0x6b, 0xdc, 0x7a, 0x76, 0xab, 0xb4, 0xc9, 0xc2, 0xb0, 0xe9, 0x85, 0x61, 0xb3, 0xe5, 0xc5, + 0x49, 0xce, 0x79, 0x03, 0x6a, 0xc4, 0xc0, 0x7f, 0x43, 0xb6, 0x7d, 0xa4, 0xf6, 0x74, 0xcc, 0x86, + 0x27, 0x4e, 0x1d, 0x0e, 0x0c, 0x4e, 0x07, 0x23, 0xd7, 0x81, 0x49, 0xba, 0x14, 0xe6, 0xb7, 0x65, + 0xdf, 0x6f, 0x29, 0x2a, 0xf5, 0xdc, 0xf5, 0x4f, 0x0e, 0x78, 0xc2, 0x1e, 0xab, 0x56, 0xfb, 0xc8, + 0x8b, 0xc0, 0x32, 0xa4, 0xcc, 0xc3, 0x43, 0x1b, 0x3b, 0xd4, 0x1b, 0x09, 0xd9, 0xfd, 0x85, 0x16, + 0x21, 0xd9, 0x31, 0xba, 0x86, 0x43, 0x3d, 0x92, 0x90, 0xd9, 0x0f, 0xf4, 0x11, 0xe4, 0x6d, 0xd3, + 0x72, 0x8c, 0x9e, 0xae, 0xb4, 0xcd, 0xce, 0xa0, 0xdb, 0xa3, 0xab, 0xcd, 0x6f, 0xdd, 0x38, 0xc5, + 0x61, 0x74, 0xca, 0x87, 0xf8, 0x64, 0x3b, 0xfd, 0x6a, 0x3b, 0xf9, 0x82, 0x8b, 0xad, 0xbd, 0x26, + 0xcf, 0xbb, 0x86, 0xaa, 0xd4, 0x0e, 0xe2, 0x21, 0xae, 0xda, 0x6d, 0xba, 0xfa, 0xb4, 0x4c, 0xfe, + 0x45, 0x55, 0x98, 0x7b, 0x32, 0xc0, 0x96, 0x81, 0xed, 0x62, 0x72, 0x2d, 0xbe, 0x9e, 0xdd, 0xba, + 0x39, 0xcb, 0x24, 0x1f, 0x0e, 0xb0, 0x75, 0x22, 0x7b, 0x23, 0x85, 0x2f, 0x39, 0xc8, 0x87, 0x75, + 0xa8, 0x0a, 0xf1, 0x4f, 0xf0, 0x09, 0x5d, 0xee, 0x57, 0x22, 0x4e, 0x46, 0xa3, 0x6d, 0x48, 0x75, + 0xb1, 0x73, 0x64, 0x6a, 0x6e, 0xc6, 0x6c, 0xcc, 0x62, 0x67, 0x8f, 0x8e, 0x90, 0xdd, 0x91, 0xc4, + 0xc5, 0xc7, 0x6a, 0x67, 0xc0, 0x32, 0x26, 0x23, 0xb3, 0x1f, 0xc2, 0x17, 0x1c, 0x14, 0x02, 0x51, + 0x72, 0xb3, 0xfa, 0x6c, 0x61, 0xba, 0x0c, 0x39, 0xc7, 0x74, 0xd4, 0x8e, 0x62, 0x61, 0x7b, 0xd0, + 0x71, 0xe8, 0x04, 0x09, 0x39, 0x4b, 0x65, 0x32, 0x15, 0xa1, 0xb7, 0x21, 0xe5, 0x2a, 0x13, 0xd4, + 0xb9, 0xaf, 0x4f, 0x5f, 0x80, 0xec, 0xa2, 0x85, 0xcf, 0x39, 0x58, 0xa0, 0xf4, 0x9c, 0xfd, 0xbe, + 0x97, 0x43, 0xff, 0x03, 0x71, 0xd3, 0xd2, 0x29, 0xb3, 0xec, 0xd6, 0xad, 0x29, 0x86, 0xaa, 0x24, + 0xef, 0x03, 0xf5, 0x2f, 0x93, 0x71, 0xe8, 0x03, 0x48, 0x0c, 0x6c, 0x6c, 0xd1, 0x25, 0x64, 0xb7, + 0xde, 0x38, 0x75, 0xfc, 0xbe, 0x8d, 0x2d, 0xcf, 0x00, 0x1d, 0x29, 0x9c, 0xb8, 0x89, 0x4d, 0x39, + 0xb9, 0x1e, 0xbb, 0x13, 0x24, 0x75, 0xda, 0xea, 0x28, 0x8f, 0x37, 0x43, 0x3c, 0x2e, 0x4d, 0x19, + 0x42, 0x19, 0xb0, 0xa9, 0x7f, 0x97, 0x84, 0xc2, 0x18, 0x2d, 0x74, 0x03, 0x32, 0x44, 0xab, 0x04, + 0x36, 0x37, 0x78, 0xb5, 0x3d, 0x67, 0x25, 0x79, 0xae, 0xf8, 0x17, 0x4e, 0x4e, 0x13, 0x65, 0x9d, + 0xd4, 0xea, 0x4d, 0x80, 0x43, 0xc3, 0xb2, 0x1d, 0x86, 0x8c, 0x8d, 0x21, 0x33, 0x54, 0x4b, 0xa1, + 0x37, 0x20, 0xd3, 0x51, 0x3d, 0x64, 0x7c, 0xdc, 0x26, 0x51, 0x52, 0xe0, 0x35, 0xc8, 0xf4, 0x8c, + 0xf6, 0x27, 0x0c, 0x98, 0xa0, 0x40, 0x92, 0xbd, 0x56, 0x9c, 0xc2, 0x88, 0x8a, 0xc2, 0xde, 0x01, + 0xd4, 0xb7, 0xf0, 0x21, 0xb6, 0x2c, 0xac, 0x29, 0x1d, 0xb5, 0xa7, 0x0f, 0x54, 0xdd, 0xdd, 0x48, + 0x02, 0xf8, 0x82, 0x8f, 0xd9, 0x75, 0x21, 0xe8, 0x3d, 0x48, 0xe9, 0xb8, 0xa7, 0x61, 0x8b, 0xee, + 0x2f, 0xf9, 0xad, 0xcb, 0x53, 0x3c, 0xb5, 0x43, 0x81, 0xb2, 0x3b, 0x00, 0x09, 0x90, 0xc4, 0x5d, + 0xd5, 0xe8, 0x14, 0xe7, 0xe8, 0x34, 0xb9, 0x57, 0xdb, 0x19, 0x6b, 0x8e, 0xf2, 0xff, 0x2e, 0x27, + 0x33, 0x15, 0xda, 0x80, 0x82, 0x61, 0x2b, 0xf4, 0x7f, 0xe5, 0x18, 0x5b, 0xc6, 0xa1, 0x81, 0xb5, + 0x62, 0x9a, 0xee, 0x0b, 0x0b, 0x86, 0x2d, 0x12, 0xf9, 0x63, 0x57, 0x8c, 0x2e, 0x42, 0xb2, 0x7f, + 0x64, 0xf6, 0x70, 0x31, 0x13, 0x38, 0x21, 0x8a, 0x8b, 0x32, 0x93, 0xba, 0xa6, 0xe8, 0xff, 0x43, + 0x53, 0xe0, 0x99, 0x7a, 0x44, 0xe4, 0xbe, 0x29, 0x01, 0xe6, 0xda, 0xe6, 0xa0, 0xe7, 0x58, 0x27, + 0xc5, 0xec, 0x88, 0x0f, 0x3c, 0x05, 0xba, 0x0a, 0xe9, 0x8e, 0xd9, 0x56, 0x3b, 0x86, 0x73, 0x52, + 0xcc, 0x8d, 0x3a, 0xd6, 0xd3, 0xa0, 0x9b, 0x90, 0xed, 0x9b, 0x36, 0x29, 0xbf, 0xb6, 0xa9, 0xe1, + 0xe2, 0xfc, 0x08, 0x10, 0x98, 0xb2, 0x6a, 0x6a, 0x18, 0xad, 0x91, 0x2a, 0xd4, 0x0d, 0xb3, 0x57, + 0xcc, 0x8f, 0xa0, 0x5c, 0x39, 0x2a, 0x43, 0xde, 0x76, 0x2c, 0x8c, 0x1d, 0x45, 0xd5, 0x34, 0x0b, + 0xdb, 0x76, 0x71, 0x61, 0x04, 0x39, 0xcf, 0xf4, 0x15, 0xa6, 0x46, 0x57, 0x20, 0xdd, 0x57, 0x6d, + 0xfb, 0xa9, 0x69, 0x69, 0x45, 0x3e, 0xe8, 0x95, 0x07, 0xb2, 0xaf, 0x10, 0x7e, 0x94, 0x82, 0x04, + 0xc9, 0xd7, 0xb1, 0x83, 0xf0, 0x5e, 0xf8, 0x20, 0xbc, 0x7a, 0x4a, 0x11, 0x7c, 0x8b, 0x4e, 0xc2, + 0xd5, 0x60, 0xc9, 0xb1, 0xe3, 0x70, 0x58, 0x66, 0x17, 0x43, 0x65, 0xc6, 0x8e, 0xc5, 0x40, 0x69, + 0xad, 0x06, 0x4b, 0x6b, 0x8e, 0x8d, 0xf5, 0xcb, 0x69, 0x35, 0x58, 0x4e, 0x69, 0xa6, 0xf4, 0x8b, + 0xe8, 0x32, 0xe4, 0x34, 0xc3, 0xee, 0x77, 0xd4, 0x13, 0xa6, 0xa7, 0x79, 0x28, 0x67, 0x5d, 0x19, + 0x85, 0xdc, 0x8e, 0xac, 0x33, 0xa0, 0xc0, 0xa9, 0xd5, 0x95, 0x3d, 0x6b, 0x75, 0x2d, 0x7a, 0xd5, + 0x95, 0x63, 0x07, 0x0a, 0xab, 0xa7, 0x75, 0x18, 0x2d, 0x1b, 0x9a, 0x92, 0x11, 0xd5, 0xb4, 0xe8, + 0x55, 0x53, 0x9e, 0x8d, 0x67, 0x45, 0x44, 0xc7, 0x87, 0x6a, 0x85, 0xa6, 0x60, 0x44, 0x09, 0x15, + 0x87, 0x25, 0x44, 0x33, 0x6f, 0x58, 0x38, 0xa5, 0x40, 0xe1, 0x14, 0x5c, 0xff, 0x7a, 0xe5, 0x72, + 0x29, 0x5c, 0x2e, 0x88, 0xaa, 0x83, 0x45, 0xb2, 0xec, 0x17, 0xc9, 0x39, 0x76, 0x9f, 0x71, 0x4b, + 0xe3, 0xda, 0x58, 0x69, 0x2c, 0x52, 0xfd, 0x48, 0x41, 0x94, 0x20, 0x6d, 0x93, 0x6d, 0xb9, 0xd7, + 0xc6, 0xc5, 0x25, 0x7a, 0x10, 0xfa, 0xbf, 0x85, 0x1d, 0xe0, 0x47, 0xcf, 0xa4, 0xe9, 0x77, 0xd2, + 0xe5, 0xf0, 0x9d, 0xd4, 0xbf, 0x5b, 0xbd, 0x8c, 0x41, 0x8e, 0x5c, 0x7b, 0xd5, 0xee, 0x23, 0xb3, + 0x63, 0xb4, 0x4f, 0xd0, 0x12, 0xa4, 0x4c, 0x4b, 0x57, 0xfc, 0xe2, 0x4a, 0x9a, 0x96, 0x2e, 0x69, + 0x68, 0x0d, 0xb2, 0x1a, 0xb6, 0xdb, 0x96, 0x41, 0xef, 0xcc, 0xae, 0x91, 0xa0, 0x08, 0xbd, 0x0b, + 0xe7, 0x69, 0x1e, 0x77, 0x4c, 0xdd, 0xe8, 0x29, 0xdd, 0x81, 0xed, 0x28, 0x07, 0x58, 0x71, 0x27, + 0x8d, 0x53, 0xc7, 0x2f, 0x11, 0xc0, 0x2e, 0xd1, 0xef, 0x0d, 0x6c, 0x67, 0x1b, 0xd7, 0xa8, 0x92, + 0xb8, 0x5f, 0xc3, 0x87, 0x2a, 0x3b, 0xd3, 0x09, 0xce, 0xfb, 0x19, 0x72, 0x41, 0x32, 0xec, 0x82, + 0xf1, 0xaa, 0x4d, 0x7d, 0xbd, 0xaa, 0x9d, 0x3b, 0x4b, 0xd5, 0x0a, 0x3f, 0xe6, 0xe0, 0x5c, 0xd0, + 0x6f, 0x5e, 0x10, 0xfe, 0xfd, 0xee, 0x13, 0x6e, 0xd0, 0x9b, 0xa2, 0xcf, 0x44, 0xaa, 0x4d, 0x20, + 0x21, 0x5c, 0x87, 0xbc, 0xa4, 0x76, 0xf7, 0x70, 0xf7, 0x00, 0x5b, 0xb2, 0xd9, 0xc1, 0x36, 0x29, + 0x1c, 0x8b, 0xfc, 0x53, 0xe4, 0xd6, 0xe2, 0x04, 0x47, 0x7f, 0x08, 0x7f, 0xe3, 0x20, 0xe3, 0x03, + 0xd1, 0x0a, 0xcc, 0x51, 0x62, 0xbe, 0xb5, 0x14, 0xf9, 0x29, 0x69, 0xc3, 0xc1, 0xb1, 0xc0, 0xe0, + 0x51, 0xaf, 0xc6, 0xcf, 0xb4, 0x17, 0x8e, 0xc5, 0x34, 0x71, 0xc6, 0x98, 0x4e, 0x49, 0x18, 0xa1, + 0x06, 0xe7, 0x2a, 0x9a, 0x36, 0xf4, 0x80, 0x1b, 0xb1, 0xb3, 0xad, 0x4f, 0xd8, 0x81, 0xe5, 0x2a, + 0x25, 0xfc, 0x75, 0x0d, 0xdd, 0x85, 0x65, 0x19, 0x77, 0xcd, 0xe3, 0xd9, 0x0d, 0x09, 0xbf, 0xe5, + 0x60, 0xc5, 0x47, 0x7f, 0xd3, 0x17, 0xed, 0x0f, 0x46, 0x2e, 0xda, 0xeb, 0x53, 0xf6, 0x73, 0x9f, + 0xd4, 0x63, 0x03, 0x3f, 0xf5, 0xaf, 0xdc, 0x7f, 0x8e, 0xc1, 0x7c, 0x48, 0xf3, 0x1f, 0x93, 0x4b, + 0xe1, 0x43, 0x3b, 0x35, 0x72, 0x68, 0x2f, 0x86, 0x2e, 0x8b, 0xde, 0x71, 0x16, 0x3e, 0xca, 0xd3, + 0x53, 0x8f, 0xf2, 0x4c, 0xf8, 0x28, 0x17, 0x7e, 0xce, 0xc1, 0xf2, 0x58, 0xe0, 0xbf, 0x4a, 0x1f, + 0x2c, 0x0d, 0x7b, 0xd3, 0x38, 0x8d, 0x6a, 0x79, 0x96, 0xa8, 0x46, 0x76, 0xa8, 0xbf, 0xe7, 0x60, + 0x31, 0x0a, 0x81, 0xa4, 0x60, 0x9f, 0x7a, 0x7b, 0x76, 0xfb, 0x11, 0xdd, 0xea, 0xfb, 0x23, 0xdd, + 0xea, 0xb4, 0xae, 0xf7, 0x0c, 0xad, 0xea, 0x13, 0x98, 0xbf, 0xaf, 0x1a, 0x1d, 0xac, 0x89, 0xc7, + 0xb8, 0xe7, 0x48, 0x35, 0x12, 0x6a, 0x4d, 0x75, 0xd4, 0x03, 0xd5, 0x76, 0x8f, 0x4f, 0xd9, 0xff, + 0x4d, 0x02, 0x73, 0x6c, 0xe0, 0xa7, 0x81, 0x46, 0x47, 0x4e, 0x13, 0x81, 0xdb, 0xdb, 0x2c, 0x1c, + 0x52, 0x4b, 0x8a, 0x9f, 0x2a, 0xac, 0x94, 0xf2, 0x4c, 0xdc, 0xf4, 0x36, 0x9f, 0x8f, 0x21, 0x17, + 0x98, 0xd2, 0x46, 0x0f, 0x61, 0xde, 0x1d, 0x88, 0xa9, 0x80, 0xee, 0xc0, 0xd9, 0xad, 0xeb, 0x53, + 0x16, 0x18, 0x18, 0x2f, 0xe7, 0x0e, 0x03, 0xc6, 0x84, 0x3f, 0x70, 0x90, 0x0d, 0x68, 0xbf, 0xf9, + 0xe5, 0xa0, 0x2b, 0x8c, 0xfe, 0xc0, 0xc2, 0x0a, 0xbd, 0x2a, 0xd1, 0xe2, 0x4a, 0x30, 0x5a, 0x03, + 0x0b, 0x57, 0x89, 0x8c, 0x80, 0xb0, 0x65, 0x99, 0x96, 0xd2, 0xc5, 0xb6, 0xed, 0xf7, 0x68, 0x72, + 0x8e, 0x0a, 0xf7, 0x98, 0x4c, 0xa8, 0x40, 0x8a, 0x6c, 0x0d, 0x5f, 0x23, 0x08, 0xc2, 0xff, 0x42, + 0x92, 0x98, 0xb0, 0xd1, 0x5b, 0x90, 0x24, 0x42, 0xcf, 0x99, 0xd3, 0x3a, 0x61, 0xba, 0x51, 0x31, + 0xb4, 0xf0, 0x31, 0x24, 0xe8, 0xee, 0xf4, 0x95, 0xdd, 0x16, 0xdc, 0x29, 0xe2, 0xe1, 0x9d, 0x62, + 0xe3, 0x11, 0xa4, 0xbd, 0x97, 0x37, 0x54, 0x84, 0xc5, 0x86, 0xbc, 0xd3, 0x6c, 0x55, 0x5a, 0xa2, + 0xb2, 0x5f, 0x6f, 0x3e, 0x12, 0xab, 0xd2, 0x7d, 0x49, 0xac, 0xf1, 0xaf, 0xa1, 0x73, 0xb0, 0xe0, + 0x6b, 0x2a, 0xd5, 0x96, 0xf4, 0x58, 0xe4, 0x39, 0xb4, 0x04, 0x05, 0x5f, 0x28, 0xd5, 0x5d, 0x71, + 0x6c, 0xe3, 0xfb, 0xf4, 0xc6, 0xe6, 0xd7, 0x0c, 0xba, 0x00, 0x45, 0x02, 0x13, 0x2b, 0x72, 0xf5, + 0xc1, 0x43, 0xf1, 0xff, 0x47, 0x2c, 0x9f, 0x87, 0xa5, 0x90, 0xb6, 0x21, 0xef, 0x28, 0xf5, 0xca, + 0x1e, 0xb1, 0xbf, 0x02, 0xe7, 0x42, 0xaa, 0x5a, 0x63, 0xaf, 0x22, 0xd5, 0xf9, 0x18, 0x5a, 0x06, + 0x14, 0x52, 0x50, 0x0a, 0x7c, 0x7c, 0xa3, 0xe3, 0x3e, 0xa1, 0x0c, 0x0b, 0x0d, 0x95, 0x60, 0xd9, + 0x87, 0xee, 0x89, 0xad, 0x07, 0x8d, 0x9a, 0x22, 0x7e, 0xb8, 0x5f, 0xd9, 0x6d, 0xf2, 0xaf, 0xa1, + 0x4b, 0xb0, 0x3a, 0xaa, 0x6b, 0xb6, 0x2a, 0x72, 0xab, 0xa9, 0xfc, 0x9f, 0xd4, 0x7a, 0xc0, 0x73, + 0x21, 0xe6, 0x2e, 0xa0, 0xda, 0xa8, 0xb7, 0x2a, 0x52, 0xbd, 0xc9, 0xc7, 0x36, 0xbe, 0xe4, 0x20, + 0xe3, 0xf7, 0x6a, 0x64, 0x1d, 0xfb, 0x4d, 0x51, 0x8e, 0x72, 0xde, 0x22, 0xf0, 0x43, 0x95, 0xef, + 0xbd, 0x65, 0x40, 0x43, 0xe9, 0xd0, 0x7d, 0xc4, 0xab, 0x43, 0x79, 0x4d, 0xdc, 0x15, 0x5b, 0x62, + 0x8d, 0x8f, 0x87, 0x8d, 0xec, 0x36, 0xaa, 0x0f, 0xc5, 0x1a, 0x9f, 0x08, 0x83, 0x9b, 0xfb, 0xcd, + 0x47, 0x62, 0xbd, 0xc6, 0x27, 0xc3, 0x62, 0xa9, 0x2e, 0xb5, 0xa4, 0xca, 0x2e, 0x9f, 0xda, 0xf8, + 0x08, 0x52, 0xac, 0xb3, 0x21, 0x93, 0xef, 0x88, 0xf5, 0x9a, 0x28, 0x8f, 0x50, 0x2d, 0xc0, 0xbc, + 0x2b, 0xbf, 0x2f, 0xee, 0x55, 0x76, 0x09, 0xcf, 0x05, 0xc8, 0xba, 0x22, 0x2a, 0x88, 0x21, 0x04, + 0x79, 0x57, 0x50, 0x93, 0x1e, 0x8b, 0x72, 0x93, 0x78, 0xfe, 0x4f, 0x1c, 0xa0, 0xf1, 0xed, 0x12, + 0x09, 0xf0, 0xba, 0x54, 0xd9, 0xdb, 0x13, 0xf7, 0xb6, 0x09, 0x2e, 0x3a, 0x01, 0x2e, 0xc3, 0xc5, + 0x08, 0xcc, 0x7d, 0x49, 0x6e, 0xb6, 0xbc, 0x44, 0x58, 0x83, 0x0b, 0x11, 0x90, 0xdd, 0x8a, 0x87, + 0x88, 0x91, 0x48, 0x45, 0x20, 0xc4, 0xbd, 0x8a, 0xb4, 0xcb, 0xc7, 0xd1, 0xeb, 0x50, 0x8a, 0xa2, + 0xd1, 0x14, 0x65, 0x45, 0xaa, 0xf1, 0x89, 0x8d, 0x7f, 0xc4, 0x20, 0x17, 0xca, 0x9a, 0x15, 0x38, + 0x17, 0x9d, 0x32, 0x17, 0xa0, 0x38, 0x25, 0x5f, 0xce, 0xc3, 0xd2, 0x84, 0x64, 0x41, 0x57, 0xe0, + 0x52, 0x84, 0x45, 0x45, 0xda, 0xa9, 0x37, 0x64, 0x51, 0xa9, 0x56, 0x88, 0x17, 0xd1, 0x3a, 0x5c, + 0x9d, 0x64, 0x3d, 0x84, 0x4c, 0xa0, 0x6b, 0x70, 0x39, 0x72, 0xa6, 0x10, 0x2c, 0x89, 0x56, 0x61, + 0x25, 0x04, 0xab, 0x37, 0x5a, 0xde, 0x5a, 0x52, 0xe8, 0x22, 0x9c, 0x0f, 0x29, 0x77, 0x64, 0xb1, + 0xd2, 0x12, 0x65, 0xa5, 0xf5, 0xa0, 0x52, 0xe7, 0xe7, 0x48, 0xe5, 0x84, 0xd4, 0xbb, 0x62, 0xb3, + 0xc9, 0x74, 0xe9, 0x31, 0x9d, 0xd4, 0x54, 0x1a, 0x75, 0x51, 0x69, 0xdc, 0xe7, 0x33, 0xc4, 0xd9, + 0xe1, 0x71, 0x52, 0xb3, 0x35, 0xf4, 0x04, 0x6c, 0x7d, 0xb1, 0x04, 0xb9, 0x0a, 0xd9, 0xea, 0x9a, + 0xd8, 0x3a, 0x36, 0xda, 0x18, 0x3d, 0x84, 0xb9, 0x07, 0x58, 0xed, 0x38, 0x47, 0x9f, 0xa2, 0xe5, + 0xb1, 0xcb, 0x8f, 0xd8, 0xed, 0x3b, 0x27, 0xa5, 0x09, 0x72, 0x81, 0x7f, 0xf1, 0xd7, 0xbf, 0xff, + 0x22, 0x06, 0x28, 0x5d, 0x3e, 0x72, 0x2d, 0xec, 0x40, 0x52, 0xc6, 0xaa, 0x76, 0x72, 0x66, 0x53, + 0x79, 0x6a, 0x2a, 0x8d, 0x52, 0x65, 0x8b, 0x8e, 0xaf, 0x43, 0xfa, 0xb1, 0xfb, 0x21, 0x67, 0xa2, + 0xad, 0x95, 0x31, 0x79, 0x93, 0x7e, 0x12, 0x12, 0x0a, 0xd4, 0x58, 0x16, 0x65, 0xfc, 0x8f, 0x41, + 0xe8, 0x33, 0x0e, 0xb2, 0x92, 0xdd, 0xb0, 0x74, 0xf6, 0xc5, 0x04, 0x4d, 0x7b, 0xce, 0x1d, 0xfd, + 0x9c, 0x53, 0x7a, 0x63, 0x36, 0x30, 0xbb, 0x6a, 0x0b, 0xd7, 0x5e, 0xbc, 0x2c, 0x02, 0xa4, 0x0d, + 0xb5, 0xbb, 0x49, 0xd6, 0x42, 0xb9, 0x14, 0xd0, 0x42, 0xd9, 0xb4, 0x74, 0xbb, 0xac, 0x18, 0x36, + 0xfb, 0x86, 0x83, 0xfa, 0x00, 0x3b, 0xd8, 0x69, 0x58, 0xfa, 0x36, 0xe9, 0xc9, 0xd6, 0xa6, 0xbf, + 0xe4, 0x4a, 0xb5, 0xd2, 0x29, 0x6f, 0xbd, 0xc2, 0x5a, 0xc4, 0xb4, 0x39, 0x04, 0x6c, 0xda, 0x67, + 0x86, 0xf6, 0x9c, 0xf8, 0x00, 0x58, 0x9d, 0x35, 0x2c, 0xdd, 0x9e, 0xea, 0x82, 0xd1, 0xef, 0x29, + 0x53, 0x5d, 0x30, 0xf6, 0xac, 0x2f, 0x5c, 0x8f, 0xe0, 0x82, 0x84, 0x79, 0xd7, 0x05, 0x36, 0x05, + 0xdf, 0xe3, 0x36, 0xd0, 0x4f, 0x38, 0x48, 0xd3, 0xe7, 0xed, 0x86, 0xa5, 0xa3, 0x53, 0xbf, 0x35, + 0x0c, 0x9f, 0xe6, 0x4b, 0xb7, 0x66, 0xc2, 0x06, 0xd8, 0x64, 0x21, 0x43, 0xd8, 0x3c, 0xb5, 0x0c, + 0x07, 0xb3, 0x88, 0x08, 0x39, 0x9f, 0x8e, 0x33, 0xe8, 0x13, 0x36, 0x5f, 0x70, 0xb0, 0xc0, 0x42, + 0x32, 0x7c, 0xef, 0x38, 0xe5, 0xe3, 0x4c, 0xa0, 0xad, 0x2e, 0xdd, 0x98, 0x11, 0x2a, 0xbc, 0xf5, + 0xe2, 0x65, 0xb1, 0x00, 0x0b, 0x84, 0x4f, 0x9f, 0x4a, 0x86, 0x4e, 0x2a, 0xa1, 0xa2, 0x1b, 0x30, + 0xd6, 0xa1, 0x3f, 0x2f, 0x1b, 0x6a, 0x97, 0x81, 0xd0, 0xaf, 0x39, 0x40, 0xfe, 0xab, 0xce, 0x90, + 0xe1, 0xe6, 0x8c, 0xd3, 0x7a, 0xae, 0x9b, 0x99, 0xe6, 0x7b, 0x2f, 0x5e, 0x16, 0x11, 0xf0, 0x01, + 0x9a, 0x43, 0xef, 0x5d, 0x14, 0x26, 0xf2, 0x24, 0x9e, 0x24, 0x54, 0xf7, 0xfb, 0xda, 0xb7, 0x83, + 0x6a, 0x69, 0x2a, 0xd5, 0x9f, 0x71, 0x80, 0x6a, 0xb8, 0x83, 0x47, 0xa8, 0x9e, 0x21, 0xee, 0x93, + 0xb6, 0xb4, 0x77, 0x5e, 0xbc, 0x2c, 0x9e, 0x83, 0x42, 0x80, 0x94, 0x46, 0xe7, 0x61, 0x81, 0xde, + 0x98, 0x1c, 0xe8, 0x1f, 0x72, 0x50, 0xd8, 0xc1, 0xce, 0xc8, 0x63, 0xcc, 0xa4, 0x5d, 0xf0, 0xe6, + 0x2c, 0x2d, 0x14, 0x35, 0x21, 0xdc, 0x1a, 0x26, 0x5e, 0x97, 0x8a, 0x87, 0x89, 0xc7, 0xa3, 0x7c, + 0x99, 0xc9, 0xec, 0x32, 0xeb, 0xae, 0x3f, 0xe3, 0xc8, 0x41, 0x31, 0x7c, 0x10, 0x99, 0x1a, 0xbd, + 0x88, 0x97, 0x93, 0xd2, 0xd5, 0x59, 0x88, 0x09, 0x37, 0x87, 0xa1, 0x73, 0x39, 0x0d, 0x43, 0x37, + 0x2f, 0xa4, 0x3d, 0x52, 0x24, 0x54, 0xbf, 0xe4, 0x60, 0x61, 0xe4, 0x71, 0x05, 0xdd, 0x9d, 0xf6, + 0x59, 0x2d, 0xf2, 0x21, 0x66, 0x46, 0x5e, 0x6f, 0x4e, 0xe1, 0xb5, 0x52, 0x42, 0xbe, 0xb3, 0x9e, + 0xb9, 0x2f, 0x16, 0xcf, 0x09, 0xc3, 0xcf, 0x38, 0x58, 0x18, 0x79, 0xb5, 0x99, 0xca, 0x30, 0xfa, + 0x85, 0x67, 0x62, 0x46, 0xdd, 0x1d, 0x66, 0x94, 0xcb, 0x29, 0x90, 0x51, 0x8b, 0x1b, 0x11, 0xa4, + 0xd0, 0x6f, 0x38, 0xe0, 0xd9, 0xe6, 0xec, 0xcf, 0x62, 0x4f, 0xa5, 0x14, 0xfd, 0x8e, 0x50, 0xda, + 0x3a, 0xcb, 0x10, 0x77, 0xdf, 0xbd, 0x33, 0x39, 0xdd, 0x96, 0x04, 0xde, 0x27, 0x1b, 0x38, 0x0f, + 0x0e, 0x20, 0xbd, 0x83, 0x1d, 0xd6, 0xad, 0x4d, 0xca, 0xf7, 0xb5, 0x53, 0xda, 0x36, 0x5b, 0xb8, + 0x10, 0x71, 0xfa, 0x90, 0x9b, 0x05, 0x6d, 0xe7, 0xd0, 0x0f, 0x20, 0x53, 0xed, 0x60, 0x95, 0xbd, + 0x38, 0x5d, 0x3e, 0xc5, 0xd8, 0x94, 0xf2, 0xfe, 0xaf, 0xa8, 0x53, 0xe5, 0x92, 0x70, 0x91, 0x4d, + 0x53, 0x7e, 0xe6, 0xf5, 0x86, 0xcf, 0xcb, 0xcf, 0xfc, 0xd6, 0xf0, 0x39, 0x7a, 0x4a, 0x8f, 0x98, + 0x50, 0xaf, 0x3f, 0x69, 0xa1, 0x37, 0x66, 0x6b, 0xf6, 0x6d, 0xe1, 0x4a, 0xc4, 0x7a, 0x17, 0xd0, + 0x7c, 0x99, 0x35, 0xe5, 0xec, 0x01, 0x01, 0xfd, 0x8a, 0x83, 0x02, 0x4b, 0xb7, 0xe0, 0x53, 0xc0, + 0xfa, 0x6c, 0x73, 0x4c, 0x71, 0xc3, 0x5e, 0x94, 0x1b, 0xde, 0xdd, 0x78, 0x3b, 0x34, 0xfb, 0x04, + 0x6f, 0x94, 0x9f, 0x8d, 0x3c, 0x27, 0x3c, 0xdf, 0xfe, 0x23, 0xf7, 0x79, 0xe5, 0xa7, 0x1c, 0xaa, + 0xc0, 0x3c, 0xe5, 0xb2, 0x66, 0xb3, 0x5b, 0xaa, 0x70, 0x0b, 0xdd, 0x3c, 0x72, 0x9c, 0xbe, 0x7d, + 0xaf, 0x5c, 0xd6, 0x0d, 0xe7, 0x68, 0x70, 0xb0, 0xd9, 0x36, 0xbb, 0x65, 0x42, 0xbe, 0xec, 0x92, + 0x2f, 0xf7, 0x3f, 0xd1, 0xcb, 0x74, 0xd0, 0x56, 0xfc, 0xce, 0xe6, 0xdd, 0x0d, 0x2e, 0xb6, 0xc5, + 0xab, 0xfd, 0x7e, 0xc7, 0x68, 0xd3, 0x37, 0xbb, 0xf2, 0xf7, 0x6c, 0xb3, 0x17, 0x96, 0xe8, 0x56, + 0xbf, 0x7d, 0x6f, 0x0c, 0x73, 0x6f, 0x0c, 0xf3, 0x9d, 0xeb, 0xd3, 0xa6, 0x24, 0x08, 0x36, 0xef, + 0x41, 0x8a, 0xfa, 0xe6, 0xcd, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x71, 0x50, 0x08, 0x3a, 0x2f, + 0x25, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// AdminServiceClient is the client API for AdminService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AdminServiceClient interface { + // Healthz returns status OK as soon as the service started + Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) + // Ready returns status OK as soon as all dependent services are available + 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) + //ORG + IsOrgUnique(ctx context.Context, in *UniqueOrgRequest, opts ...grpc.CallOption) (*UniqueOrgResponse, error) + GetOrgByID(ctx context.Context, in *OrgID, opts ...grpc.CallOption) (*Org, error) + SearchOrgs(ctx context.Context, in *OrgSearchRequest, opts ...grpc.CallOption) (*OrgSearchResponse, error) + SetUpOrg(ctx context.Context, in *OrgSetUpRequest, opts ...grpc.CallOption) (*OrgSetUpResponse, error) + //ORG_IAM_POLICY + GetOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*OrgIamPolicy, error) + CreateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) + UpdateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) + DeleteOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) + GetIamMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*IamMemberRoles, error) + AddIamMember(ctx context.Context, in *AddIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) + ChangeIamMember(ctx context.Context, in *ChangeIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) + RemoveIamMember(ctx context.Context, in *RemoveIamMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) + SearchIamMembers(ctx context.Context, in *IamMemberSearchRequest, opts ...grpc.CallOption) (*IamMemberSearchResponse, error) + GetViews(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Views, error) + ClearView(ctx context.Context, in *ViewID, opts ...grpc.CallOption) (*empty.Empty, error) + GetFailedEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*FailedEvents, error) + RemoveFailedEvent(ctx context.Context, in *FailedEventID, opts ...grpc.CallOption) (*empty.Empty, error) +} + +type adminServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient { + return &adminServiceClient{cc} +} + +func (c *adminServiceClient) Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Healthz", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Ready", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) { + out := new(_struct.Struct) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Validate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) IsOrgUnique(ctx context.Context, in *UniqueOrgRequest, opts ...grpc.CallOption) (*UniqueOrgResponse, error) { + out := new(UniqueOrgResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetOrgByID(ctx context.Context, in *OrgID, opts ...grpc.CallOption) (*Org, error) { + out := new(Org) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) SearchOrgs(ctx context.Context, in *OrgSearchRequest, opts ...grpc.CallOption) (*OrgSearchResponse, error) { + out := new(OrgSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) SetUpOrg(ctx context.Context, in *OrgSetUpRequest, opts ...grpc.CallOption) (*OrgSetUpResponse, error) { + out := new(OrgSetUpResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*OrgIamPolicy, error) { + out := new(OrgIamPolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) { + out := new(OrgIamPolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) { + out := new(OrgIamPolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) DeleteOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/DeleteOrgIamPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetIamMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*IamMemberRoles, error) { + out := new(IamMemberRoles) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetIamMemberRoles", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) AddIamMember(ctx context.Context, in *AddIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) { + out := new(IamMember) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/AddIamMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ChangeIamMember(ctx context.Context, in *ChangeIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) { + out := new(IamMember) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/ChangeIamMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) RemoveIamMember(ctx context.Context, in *RemoveIamMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveIamMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) SearchIamMembers(ctx context.Context, in *IamMemberSearchRequest, opts ...grpc.CallOption) (*IamMemberSearchResponse, error) { + out := new(IamMemberSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SearchIamMembers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetViews(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Views, error) { + out := new(Views) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetViews", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ClearView(ctx context.Context, in *ViewID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/ClearView", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetFailedEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*FailedEvents, error) { + out := new(FailedEvents) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetFailedEvents", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) RemoveFailedEvent(ctx context.Context, in *FailedEventID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveFailedEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AdminServiceServer is the server API for AdminService service. +type AdminServiceServer interface { + // Healthz returns status OK as soon as the service started + Healthz(context.Context, *empty.Empty) (*empty.Empty, error) + // Ready returns status OK as soon as all dependent services are available + Ready(context.Context, *empty.Empty) (*empty.Empty, error) + Validate(context.Context, *empty.Empty) (*_struct.Struct, error) + //ORG + IsOrgUnique(context.Context, *UniqueOrgRequest) (*UniqueOrgResponse, error) + GetOrgByID(context.Context, *OrgID) (*Org, error) + SearchOrgs(context.Context, *OrgSearchRequest) (*OrgSearchResponse, error) + SetUpOrg(context.Context, *OrgSetUpRequest) (*OrgSetUpResponse, error) + //ORG_IAM_POLICY + GetOrgIamPolicy(context.Context, *OrgIamPolicyID) (*OrgIamPolicy, error) + CreateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) + UpdateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) + DeleteOrgIamPolicy(context.Context, *OrgIamPolicyID) (*empty.Empty, error) + GetIamMemberRoles(context.Context, *empty.Empty) (*IamMemberRoles, error) + AddIamMember(context.Context, *AddIamMemberRequest) (*IamMember, error) + ChangeIamMember(context.Context, *ChangeIamMemberRequest) (*IamMember, error) + RemoveIamMember(context.Context, *RemoveIamMemberRequest) (*empty.Empty, error) + SearchIamMembers(context.Context, *IamMemberSearchRequest) (*IamMemberSearchResponse, error) + GetViews(context.Context, *empty.Empty) (*Views, error) + ClearView(context.Context, *ViewID) (*empty.Empty, error) + GetFailedEvents(context.Context, *empty.Empty) (*FailedEvents, error) + RemoveFailedEvent(context.Context, *FailedEventID) (*empty.Empty, error) +} + +// UnimplementedAdminServiceServer can be embedded to have forward compatible implementations. +type UnimplementedAdminServiceServer struct { +} + +func (*UnimplementedAdminServiceServer) Healthz(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Healthz not implemented") +} +func (*UnimplementedAdminServiceServer) Ready(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Ready not implemented") +} +func (*UnimplementedAdminServiceServer) Validate(ctx context.Context, req *empty.Empty) (*_struct.Struct, error) { + return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented") +} +func (*UnimplementedAdminServiceServer) IsOrgUnique(ctx context.Context, req *UniqueOrgRequest) (*UniqueOrgResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsOrgUnique not implemented") +} +func (*UnimplementedAdminServiceServer) GetOrgByID(ctx context.Context, req *OrgID) (*Org, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrgByID not implemented") +} +func (*UnimplementedAdminServiceServer) SearchOrgs(ctx context.Context, req *OrgSearchRequest) (*OrgSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchOrgs not implemented") +} +func (*UnimplementedAdminServiceServer) SetUpOrg(ctx context.Context, req *OrgSetUpRequest) (*OrgSetUpResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetUpOrg not implemented") +} +func (*UnimplementedAdminServiceServer) GetOrgIamPolicy(ctx context.Context, req *OrgIamPolicyID) (*OrgIamPolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrgIamPolicy not implemented") +} +func (*UnimplementedAdminServiceServer) CreateOrgIamPolicy(ctx context.Context, req *OrgIamPolicyRequest) (*OrgIamPolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateOrgIamPolicy not implemented") +} +func (*UnimplementedAdminServiceServer) UpdateOrgIamPolicy(ctx context.Context, req *OrgIamPolicyRequest) (*OrgIamPolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateOrgIamPolicy not implemented") +} +func (*UnimplementedAdminServiceServer) DeleteOrgIamPolicy(ctx context.Context, req *OrgIamPolicyID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteOrgIamPolicy not implemented") +} +func (*UnimplementedAdminServiceServer) GetIamMemberRoles(ctx context.Context, req *empty.Empty) (*IamMemberRoles, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetIamMemberRoles not implemented") +} +func (*UnimplementedAdminServiceServer) AddIamMember(ctx context.Context, req *AddIamMemberRequest) (*IamMember, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddIamMember not implemented") +} +func (*UnimplementedAdminServiceServer) ChangeIamMember(ctx context.Context, req *ChangeIamMemberRequest) (*IamMember, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeIamMember not implemented") +} +func (*UnimplementedAdminServiceServer) RemoveIamMember(ctx context.Context, req *RemoveIamMemberRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveIamMember not implemented") +} +func (*UnimplementedAdminServiceServer) SearchIamMembers(ctx context.Context, req *IamMemberSearchRequest) (*IamMemberSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchIamMembers not implemented") +} +func (*UnimplementedAdminServiceServer) GetViews(ctx context.Context, req *empty.Empty) (*Views, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetViews not implemented") +} +func (*UnimplementedAdminServiceServer) ClearView(ctx context.Context, req *ViewID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearView not implemented") +} +func (*UnimplementedAdminServiceServer) GetFailedEvents(ctx context.Context, req *empty.Empty) (*FailedEvents, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetFailedEvents not implemented") +} +func (*UnimplementedAdminServiceServer) RemoveFailedEvent(ctx context.Context, req *FailedEventID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveFailedEvent not implemented") +} + +func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer) { + s.RegisterService(&_AdminService_serviceDesc, srv) +} + +func _AdminService_Healthz_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 { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).Healthz(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Healthz", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).Healthz(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_Ready_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 { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).Ready(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Ready", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).Ready(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_Validate_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 { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).Validate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Validate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).Validate(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_IsOrgUnique_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UniqueOrgRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).IsOrgUnique(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).IsOrgUnique(ctx, req.(*UniqueOrgRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetOrgByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrgID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetOrgByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetOrgByID(ctx, req.(*OrgID)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_SearchOrgs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrgSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).SearchOrgs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).SearchOrgs(ctx, req.(*OrgSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_SetUpOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrgSetUpRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).SetUpOrg(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).SetUpOrg(ctx, req.(*OrgSetUpRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrgIamPolicyID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetOrgIamPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetOrgIamPolicy(ctx, req.(*OrgIamPolicyID)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrgIamPolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateOrgIamPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateOrgIamPolicy(ctx, req.(*OrgIamPolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrgIamPolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateOrgIamPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateOrgIamPolicy(ctx, req.(*OrgIamPolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_DeleteOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrgIamPolicyID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).DeleteOrgIamPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/DeleteOrgIamPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).DeleteOrgIamPolicy(ctx, req.(*OrgIamPolicyID)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetIamMemberRoles_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 { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetIamMemberRoles(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetIamMemberRoles", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetIamMemberRoles(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_AddIamMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddIamMemberRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).AddIamMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/AddIamMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).AddIamMember(ctx, req.(*AddIamMemberRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ChangeIamMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeIamMemberRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ChangeIamMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/ChangeIamMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ChangeIamMember(ctx, req.(*ChangeIamMemberRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_RemoveIamMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveIamMemberRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).RemoveIamMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveIamMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).RemoveIamMember(ctx, req.(*RemoveIamMemberRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_SearchIamMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IamMemberSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).SearchIamMembers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SearchIamMembers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).SearchIamMembers(ctx, req.(*IamMemberSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetViews_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 { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetViews(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetViews", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetViews(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ClearView_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ViewID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ClearView(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/ClearView", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ClearView(ctx, req.(*ViewID)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetFailedEvents_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 { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetFailedEvents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetFailedEvents", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetFailedEvents(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_RemoveFailedEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FailedEventID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).RemoveFailedEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveFailedEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).RemoveFailedEvent(ctx, req.(*FailedEventID)) + } + return interceptor(ctx, in, info, handler) +} + +var _AdminService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "caos.zitadel.admin.api.v1.AdminService", + HandlerType: (*AdminServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Healthz", + Handler: _AdminService_Healthz_Handler, + }, + { + MethodName: "Ready", + Handler: _AdminService_Ready_Handler, + }, + { + MethodName: "Validate", + Handler: _AdminService_Validate_Handler, + }, + { + MethodName: "IsOrgUnique", + Handler: _AdminService_IsOrgUnique_Handler, + }, + { + MethodName: "GetOrgByID", + Handler: _AdminService_GetOrgByID_Handler, + }, + { + MethodName: "SearchOrgs", + Handler: _AdminService_SearchOrgs_Handler, + }, + { + MethodName: "SetUpOrg", + Handler: _AdminService_SetUpOrg_Handler, + }, + { + MethodName: "GetOrgIamPolicy", + Handler: _AdminService_GetOrgIamPolicy_Handler, + }, + { + MethodName: "CreateOrgIamPolicy", + Handler: _AdminService_CreateOrgIamPolicy_Handler, + }, + { + MethodName: "UpdateOrgIamPolicy", + Handler: _AdminService_UpdateOrgIamPolicy_Handler, + }, + { + MethodName: "DeleteOrgIamPolicy", + Handler: _AdminService_DeleteOrgIamPolicy_Handler, + }, + { + MethodName: "GetIamMemberRoles", + Handler: _AdminService_GetIamMemberRoles_Handler, + }, + { + MethodName: "AddIamMember", + Handler: _AdminService_AddIamMember_Handler, + }, + { + MethodName: "ChangeIamMember", + Handler: _AdminService_ChangeIamMember_Handler, + }, + { + MethodName: "RemoveIamMember", + Handler: _AdminService_RemoveIamMember_Handler, + }, + { + MethodName: "SearchIamMembers", + Handler: _AdminService_SearchIamMembers_Handler, + }, + { + MethodName: "GetViews", + Handler: _AdminService_GetViews_Handler, + }, + { + MethodName: "ClearView", + Handler: _AdminService_ClearView_Handler, + }, + { + MethodName: "GetFailedEvents", + Handler: _AdminService_GetFailedEvents_Handler, + }, + { + MethodName: "RemoveFailedEvent", + Handler: _AdminService_RemoveFailedEvent_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "admin.proto", +} diff --git a/pkg/admin/api/grpc/admin.pb.gw.go b/pkg/grpc/admin/admin.pb.gw.go similarity index 53% rename from pkg/admin/api/grpc/admin.pb.gw.go rename to pkg/grpc/admin/admin.pb.gw.go index fdb469e32a..7e57eaa03c 100644 --- a/pkg/admin/api/grpc/admin.pb.gw.go +++ b/pkg/grpc/admin/admin.pb.gw.go @@ -2,11 +2,11 @@ // source: admin.proto /* -Package grpc is a reverse proxy. +Package admin is a reverse proxy. It translates gRPC into RESTful JSON APIs. */ -package grpc +package admin import ( "context" @@ -38,6 +38,15 @@ func request_AdminService_Healthz_0(ctx context.Context, marshaler runtime.Marsh } +func local_request_AdminService_Healthz_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.Healthz(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -47,6 +56,15 @@ func request_AdminService_Ready_0(ctx context.Context, marshaler runtime.Marshal } +func local_request_AdminService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.Ready(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -56,6 +74,15 @@ func request_AdminService_Validate_0(ctx context.Context, marshaler runtime.Mars } +func local_request_AdminService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.Validate(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_AdminService_IsOrgUnique_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -64,7 +91,10 @@ func request_AdminService_IsOrgUnique_0(ctx context.Context, marshaler runtime.M var protoReq UniqueOrgRequest var metadata runtime.ServerMetadata - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_IsOrgUnique_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_IsOrgUnique_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -73,6 +103,19 @@ func request_AdminService_IsOrgUnique_0(ctx context.Context, marshaler runtime.M } +func local_request_AdminService_IsOrgUnique_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UniqueOrgRequest + var metadata runtime.ServerMetadata + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_IsOrgUnique_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.IsOrgUnique(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_GetOrgByID_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OrgID var metadata runtime.ServerMetadata @@ -100,6 +143,33 @@ func request_AdminService_GetOrgByID_0(ctx context.Context, marshaler runtime.Ma } +func local_request_AdminService_GetOrgByID_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OrgID + 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 := server.GetOrgByID(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_SearchOrgs_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OrgSearchRequest var metadata runtime.ServerMetadata @@ -117,6 +187,23 @@ func request_AdminService_SearchOrgs_0(ctx context.Context, marshaler runtime.Ma } +func local_request_AdminService_SearchOrgs_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OrgSearchRequest + 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 := server.SearchOrgs(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_SetUpOrg_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OrgSetUpRequest var metadata runtime.ServerMetadata @@ -134,6 +221,23 @@ func request_AdminService_SetUpOrg_0(ctx context.Context, marshaler runtime.Mars } +func local_request_AdminService_SetUpOrg_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OrgSetUpRequest + 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 := server.SetUpOrg(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_GetOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OrgIamPolicyID var metadata runtime.ServerMetadata @@ -161,6 +265,33 @@ func request_AdminService_GetOrgIamPolicy_0(ctx context.Context, marshaler runti } +func local_request_AdminService_GetOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OrgIamPolicyID + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["org_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") + } + + protoReq.OrgId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) + } + + msg, err := server.GetOrgIamPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_CreateOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OrgIamPolicyRequest var metadata runtime.ServerMetadata @@ -196,6 +327,41 @@ func request_AdminService_CreateOrgIamPolicy_0(ctx context.Context, marshaler ru } +func local_request_AdminService_CreateOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OrgIamPolicyRequest + 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["org_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") + } + + protoReq.OrgId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) + } + + msg, err := server.CreateOrgIamPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_UpdateOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OrgIamPolicyRequest var metadata runtime.ServerMetadata @@ -231,6 +397,41 @@ func request_AdminService_UpdateOrgIamPolicy_0(ctx context.Context, marshaler ru } +func local_request_AdminService_UpdateOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OrgIamPolicyRequest + 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["org_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") + } + + protoReq.OrgId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) + } + + msg, err := server.UpdateOrgIamPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_DeleteOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OrgIamPolicyID var metadata runtime.ServerMetadata @@ -258,6 +459,33 @@ func request_AdminService_DeleteOrgIamPolicy_0(ctx context.Context, marshaler ru } +func local_request_AdminService_DeleteOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OrgIamPolicyID + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["org_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") + } + + protoReq.OrgId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) + } + + msg, err := server.DeleteOrgIamPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_GetIamMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -267,6 +495,15 @@ func request_AdminService_GetIamMemberRoles_0(ctx context.Context, marshaler run } +func local_request_AdminService_GetIamMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetIamMemberRoles(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_AddIamMember_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddIamMemberRequest var metadata runtime.ServerMetadata @@ -284,6 +521,23 @@ func request_AdminService_AddIamMember_0(ctx context.Context, marshaler runtime. } +func local_request_AdminService_AddIamMember_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddIamMemberRequest + 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 := server.AddIamMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_ChangeIamMember_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ChangeIamMemberRequest var metadata runtime.ServerMetadata @@ -319,6 +573,41 @@ func request_AdminService_ChangeIamMember_0(ctx context.Context, marshaler runti } +func local_request_AdminService_ChangeIamMember_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeIamMemberRequest + 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 := server.ChangeIamMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_RemoveIamMember_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq RemoveIamMemberRequest var metadata runtime.ServerMetadata @@ -346,6 +635,33 @@ func request_AdminService_RemoveIamMember_0(ctx context.Context, marshaler runti } +func local_request_AdminService_RemoveIamMember_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RemoveIamMemberRequest + var metadata runtime.ServerMetadata + + 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 := server.RemoveIamMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_SearchIamMembers_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq IamMemberSearchRequest var metadata runtime.ServerMetadata @@ -363,6 +679,23 @@ func request_AdminService_SearchIamMembers_0(ctx context.Context, marshaler runt } +func local_request_AdminService_SearchIamMembers_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq IamMemberSearchRequest + 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 := server.SearchIamMembers(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_GetViews_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -372,6 +705,15 @@ func request_AdminService_GetViews_0(ctx context.Context, marshaler runtime.Mars } +func local_request_AdminService_GetViews_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetViews(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_ClearView_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ViewID var metadata runtime.ServerMetadata @@ -410,6 +752,44 @@ func request_AdminService_ClearView_0(ctx context.Context, marshaler runtime.Mar } +func local_request_AdminService_ClearView_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ViewID + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["database"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "database") + } + + protoReq.Database, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "database", err) + } + + val, ok = pathParams["view_name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "view_name") + } + + protoReq.ViewName, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "view_name", err) + } + + msg, err := server.ClearView(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_GetFailedEvents_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -419,6 +799,15 @@ func request_AdminService_GetFailedEvents_0(ctx context.Context, marshaler runti } +func local_request_AdminService_GetFailedEvents_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetFailedEvents(ctx, &protoReq) + return msg, metadata, err + +} + func request_AdminService_RemoveFailedEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq FailedEventID var metadata runtime.ServerMetadata @@ -468,6 +857,463 @@ func request_AdminService_RemoveFailedEvent_0(ctx context.Context, marshaler run } +func local_request_AdminService_RemoveFailedEvent_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq FailedEventID + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["database"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "database") + } + + protoReq.Database, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "database", err) + } + + val, ok = pathParams["view_name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "view_name") + } + + protoReq.ViewName, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "view_name", err) + } + + val, ok = pathParams["failed_sequence"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "failed_sequence") + } + + protoReq.FailedSequence, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "failed_sequence", err) + } + + msg, err := server.RemoveFailedEvent(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterAdminServiceHandlerServer registers the http handlers for service AdminService to "mux". +// UnaryRPC :call AdminServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +func RegisterAdminServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AdminServiceServer, opts []grpc.DialOption) error { + + mux.Handle("GET", pattern_AdminService_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 := local_request_AdminService_Healthz_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_Healthz_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_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 := local_request_AdminService_Ready_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_Ready_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_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 := local_request_AdminService_Validate_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_Validate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_IsOrgUnique_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 := local_request_AdminService_IsOrgUnique_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_IsOrgUnique_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetOrgByID_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 := local_request_AdminService_GetOrgByID_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetOrgByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_SearchOrgs_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 := local_request_AdminService_SearchOrgs_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_SearchOrgs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_SetUpOrg_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 := local_request_AdminService_SetUpOrg_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_SetUpOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetOrgIamPolicy_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 := local_request_AdminService_GetOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateOrgIamPolicy_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 := local_request_AdminService_CreateOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateOrgIamPolicy_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 := local_request_AdminService_UpdateOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_DeleteOrgIamPolicy_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 := local_request_AdminService_DeleteOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_DeleteOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetIamMemberRoles_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 := local_request_AdminService_GetIamMemberRoles_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetIamMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_AddIamMember_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 := local_request_AdminService_AddIamMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_AddIamMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_ChangeIamMember_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 := local_request_AdminService_ChangeIamMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ChangeIamMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_RemoveIamMember_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 := local_request_AdminService_RemoveIamMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_RemoveIamMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_SearchIamMembers_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 := local_request_AdminService_SearchIamMembers_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_SearchIamMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetViews_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 := local_request_AdminService_GetViews_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetViews_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_ClearView_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 := local_request_AdminService_ClearView_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ClearView_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetFailedEvents_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 := local_request_AdminService_GetFailedEvents_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetFailedEvents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_RemoveFailedEvent_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 := local_request_AdminService_RemoveFailedEvent_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_RemoveFailedEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + // RegisterAdminServiceHandlerFromEndpoint is same as RegisterAdminServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterAdminServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { @@ -910,45 +1756,45 @@ func RegisterAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu } var ( - pattern_AdminService_Healthz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"healthz"}, "")) + pattern_AdminService_Healthz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"healthz"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_Ready_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"ready"}, "")) + pattern_AdminService_Ready_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"ready"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_Validate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"validate"}, "")) + pattern_AdminService_Validate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"validate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_IsOrgUnique_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "_isunique"}, "")) + pattern_AdminService_IsOrgUnique_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "_isunique"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_GetOrgByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"orgs", "id"}, "")) + pattern_AdminService_GetOrgByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"orgs", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_SearchOrgs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "_search"}, "")) + pattern_AdminService_SearchOrgs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_SetUpOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "_setup"}, "")) + pattern_AdminService_SetUpOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "_setup"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_GetOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "org_id", "iampolicy"}, "")) + pattern_AdminService_GetOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "org_id", "iampolicy"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_CreateOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "org_id", "iampolicy"}, "")) + pattern_AdminService_CreateOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "org_id", "iampolicy"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_UpdateOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "org_id", "iampolicy"}, "")) + pattern_AdminService_UpdateOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "org_id", "iampolicy"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_DeleteOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "org_id", "iampolicy"}, "")) + pattern_AdminService_DeleteOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "org_id", "iampolicy"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_GetIamMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"members", "roles"}, "")) + pattern_AdminService_GetIamMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"members", "roles"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_AddIamMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"members"}, "")) + pattern_AdminService_AddIamMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"members"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_ChangeIamMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"members", "user_id"}, "")) + pattern_AdminService_ChangeIamMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_RemoveIamMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"members", "user_id"}, "")) + pattern_AdminService_RemoveIamMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_SearchIamMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"members", "_search"}, "")) + pattern_AdminService_SearchIamMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"members", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_GetViews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"views"}, "")) + pattern_AdminService_GetViews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"views"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_ClearView_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 1, 0, 4, 1, 5, 2}, []string{"views", "database", "view_name"}, "")) + pattern_AdminService_ClearView_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 1, 0, 4, 1, 5, 2}, []string{"views", "database", "view_name"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_GetFailedEvents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"failedevents"}, "")) + pattern_AdminService_GetFailedEvents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"failedevents"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_AdminService_RemoveFailedEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3}, []string{"failedevents", "database", "view_name", "failed_sequence"}, "")) + pattern_AdminService_RemoveFailedEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3}, []string{"failedevents", "database", "view_name", "failed_sequence"}, "", runtime.AssumeColonVerbOpt(true))) ) var ( diff --git a/pkg/admin/api/grpc/admin.swagger.json b/pkg/grpc/admin/admin.swagger.json similarity index 90% rename from pkg/admin/api/grpc/admin.swagger.json rename to pkg/grpc/admin/admin.swagger.json index 44259e1060..57fea4346d 100644 --- a/pkg/admin/api/grpc/admin.swagger.json +++ b/pkg/grpc/admin/admin.swagger.json @@ -449,7 +449,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/protobufStruct" + "type": "object" } } }, @@ -506,19 +506,6 @@ } }, "definitions": { - "protobufListValue": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Repeated field of dynamically typed values." - } - }, - "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." - }, "protobufNullValue": { "type": "string", "enum": [ @@ -527,51 +514,6 @@ "default": "NULL_VALUE", "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." }, - "protobufStruct": { - "type": "object", - "properties": { - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Unordered map of dynamically typed values." - } - }, - "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." - }, - "protobufValue": { - "type": "object", - "properties": { - "null_value": { - "$ref": "#/definitions/protobufNullValue", - "description": "Represents a null value." - }, - "number_value": { - "type": "number", - "format": "double", - "description": "Represents a double value." - }, - "string_value": { - "type": "string", - "description": "Represents a string value." - }, - "bool_value": { - "type": "boolean", - "format": "boolean", - "description": "Represents a boolean value." - }, - "struct_value": { - "$ref": "#/definitions/protobufStruct", - "description": "Represents a structured value." - }, - "list_value": { - "$ref": "#/definitions/protobufListValue", - "description": "Represents a repeated `Value`." - } - }, - "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." - }, "v1AddIamMemberRequest": { "type": "object", "properties": { diff --git a/pkg/admin/api/grpc/mock/admin.proto.mock.go b/pkg/grpc/admin/mock/admin.proto.mock.go similarity index 66% rename from pkg/admin/api/grpc/mock/admin.proto.mock.go rename to pkg/grpc/admin/mock/admin.proto.mock.go index d3dc656fd8..fea8ab5b32 100644 --- a/pkg/admin/api/grpc/mock/admin.proto.mock.go +++ b/pkg/grpc/admin/mock/admin.proto.mock.go @@ -1,14 +1,14 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/caos/zitadel/pkg/admin/api/grpc (interfaces: AdminServiceClient) +// Source: github.com/caos/zitadel/pkg/grpc/admin (interfaces: AdminServiceClient) // Package api is a generated GoMock package. package api import ( context "context" - grpc "github.com/caos/zitadel/pkg/admin/api/grpc" + admin "github.com/caos/zitadel/pkg/grpc/admin" gomock "github.com/golang/mock/gomock" - grpc0 "google.golang.org/grpc" + grpc "google.golang.org/grpc" emptypb "google.golang.org/protobuf/types/known/emptypb" structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" @@ -37,8 +37,48 @@ func (m *MockAdminServiceClient) EXPECT() *MockAdminServiceClientMockRecorder { return m.recorder } +// AddIamMember mocks base method +func (m *MockAdminServiceClient) AddIamMember(arg0 context.Context, arg1 *admin.AddIamMemberRequest, arg2 ...grpc.CallOption) (*admin.IamMember, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddIamMember", varargs...) + ret0, _ := ret[0].(*admin.IamMember) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddIamMember indicates an expected call of AddIamMember +func (mr *MockAdminServiceClientMockRecorder) AddIamMember(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, "AddIamMember", reflect.TypeOf((*MockAdminServiceClient)(nil).AddIamMember), varargs...) +} + +// ChangeIamMember mocks base method +func (m *MockAdminServiceClient) ChangeIamMember(arg0 context.Context, arg1 *admin.ChangeIamMemberRequest, arg2 ...grpc.CallOption) (*admin.IamMember, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ChangeIamMember", varargs...) + ret0, _ := ret[0].(*admin.IamMember) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeIamMember indicates an expected call of ChangeIamMember +func (mr *MockAdminServiceClientMockRecorder) ChangeIamMember(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, "ChangeIamMember", reflect.TypeOf((*MockAdminServiceClient)(nil).ChangeIamMember), varargs...) +} + // ClearView mocks base method -func (m *MockAdminServiceClient) ClearView(arg0 context.Context, arg1 *grpc.ViewID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAdminServiceClient) ClearView(arg0 context.Context, arg1 *admin.ViewID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -58,14 +98,14 @@ func (mr *MockAdminServiceClientMockRecorder) ClearView(arg0, arg1 interface{}, } // CreateOrgIamPolicy mocks base method -func (m *MockAdminServiceClient) CreateOrgIamPolicy(arg0 context.Context, arg1 *grpc.OrgIamPolicyRequest, arg2 ...grpc0.CallOption) (*grpc.OrgIamPolicy, error) { +func (m *MockAdminServiceClient) CreateOrgIamPolicy(arg0 context.Context, arg1 *admin.OrgIamPolicyRequest, arg2 ...grpc.CallOption) (*admin.OrgIamPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateOrgIamPolicy", varargs...) - ret0, _ := ret[0].(*grpc.OrgIamPolicy) + ret0, _ := ret[0].(*admin.OrgIamPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -78,7 +118,7 @@ func (mr *MockAdminServiceClientMockRecorder) CreateOrgIamPolicy(arg0, arg1 inte } // DeleteOrgIamPolicy mocks base method -func (m *MockAdminServiceClient) DeleteOrgIamPolicy(arg0 context.Context, arg1 *grpc.OrgIamPolicyID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAdminServiceClient) DeleteOrgIamPolicy(arg0 context.Context, arg1 *admin.OrgIamPolicyID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -98,14 +138,14 @@ func (mr *MockAdminServiceClientMockRecorder) DeleteOrgIamPolicy(arg0, arg1 inte } // GetFailedEvents mocks base method -func (m *MockAdminServiceClient) GetFailedEvents(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.FailedEvents, error) { +func (m *MockAdminServiceClient) GetFailedEvents(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*admin.FailedEvents, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetFailedEvents", varargs...) - ret0, _ := ret[0].(*grpc.FailedEvents) + ret0, _ := ret[0].(*admin.FailedEvents) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -117,15 +157,35 @@ func (mr *MockAdminServiceClientMockRecorder) GetFailedEvents(arg0, arg1 interfa return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFailedEvents", reflect.TypeOf((*MockAdminServiceClient)(nil).GetFailedEvents), varargs...) } +// GetIamMemberRoles mocks base method +func (m *MockAdminServiceClient) GetIamMemberRoles(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*admin.IamMemberRoles, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetIamMemberRoles", varargs...) + ret0, _ := ret[0].(*admin.IamMemberRoles) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetIamMemberRoles indicates an expected call of GetIamMemberRoles +func (mr *MockAdminServiceClientMockRecorder) GetIamMemberRoles(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, "GetIamMemberRoles", reflect.TypeOf((*MockAdminServiceClient)(nil).GetIamMemberRoles), varargs...) +} + // GetOrgByID mocks base method -func (m *MockAdminServiceClient) GetOrgByID(arg0 context.Context, arg1 *grpc.OrgID, arg2 ...grpc0.CallOption) (*grpc.Org, error) { +func (m *MockAdminServiceClient) GetOrgByID(arg0 context.Context, arg1 *admin.OrgID, arg2 ...grpc.CallOption) (*admin.Org, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetOrgByID", varargs...) - ret0, _ := ret[0].(*grpc.Org) + ret0, _ := ret[0].(*admin.Org) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -138,14 +198,14 @@ func (mr *MockAdminServiceClientMockRecorder) GetOrgByID(arg0, arg1 interface{}, } // GetOrgIamPolicy mocks base method -func (m *MockAdminServiceClient) GetOrgIamPolicy(arg0 context.Context, arg1 *grpc.OrgIamPolicyID, arg2 ...grpc0.CallOption) (*grpc.OrgIamPolicy, error) { +func (m *MockAdminServiceClient) GetOrgIamPolicy(arg0 context.Context, arg1 *admin.OrgIamPolicyID, arg2 ...grpc.CallOption) (*admin.OrgIamPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetOrgIamPolicy", varargs...) - ret0, _ := ret[0].(*grpc.OrgIamPolicy) + ret0, _ := ret[0].(*admin.OrgIamPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -158,14 +218,14 @@ func (mr *MockAdminServiceClientMockRecorder) GetOrgIamPolicy(arg0, arg1 interfa } // GetViews mocks base method -func (m *MockAdminServiceClient) GetViews(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.Views, error) { +func (m *MockAdminServiceClient) GetViews(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*admin.Views, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetViews", varargs...) - ret0, _ := ret[0].(*grpc.Views) + ret0, _ := ret[0].(*admin.Views) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -178,7 +238,7 @@ func (mr *MockAdminServiceClientMockRecorder) GetViews(arg0, arg1 interface{}, a } // Healthz mocks base method -func (m *MockAdminServiceClient) Healthz(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAdminServiceClient) Healthz(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -198,14 +258,14 @@ func (mr *MockAdminServiceClientMockRecorder) Healthz(arg0, arg1 interface{}, ar } // IsOrgUnique mocks base method -func (m *MockAdminServiceClient) IsOrgUnique(arg0 context.Context, arg1 *grpc.UniqueOrgRequest, arg2 ...grpc0.CallOption) (*grpc.UniqueOrgResponse, error) { +func (m *MockAdminServiceClient) IsOrgUnique(arg0 context.Context, arg1 *admin.UniqueOrgRequest, arg2 ...grpc.CallOption) (*admin.UniqueOrgResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "IsOrgUnique", varargs...) - ret0, _ := ret[0].(*grpc.UniqueOrgResponse) + ret0, _ := ret[0].(*admin.UniqueOrgResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -218,7 +278,7 @@ func (mr *MockAdminServiceClientMockRecorder) IsOrgUnique(arg0, arg1 interface{} } // Ready mocks base method -func (m *MockAdminServiceClient) Ready(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAdminServiceClient) Ready(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -238,7 +298,7 @@ func (mr *MockAdminServiceClientMockRecorder) Ready(arg0, arg1 interface{}, arg2 } // RemoveFailedEvent mocks base method -func (m *MockAdminServiceClient) RemoveFailedEvent(arg0 context.Context, arg1 *grpc.FailedEventID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAdminServiceClient) RemoveFailedEvent(arg0 context.Context, arg1 *admin.FailedEventID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -257,15 +317,55 @@ func (mr *MockAdminServiceClientMockRecorder) RemoveFailedEvent(arg0, arg1 inter return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveFailedEvent", reflect.TypeOf((*MockAdminServiceClient)(nil).RemoveFailedEvent), varargs...) } +// RemoveIamMember mocks base method +func (m *MockAdminServiceClient) RemoveIamMember(arg0 context.Context, arg1 *admin.RemoveIamMemberRequest, arg2 ...grpc.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, "RemoveIamMember", varargs...) + ret0, _ := ret[0].(*emptypb.Empty) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveIamMember indicates an expected call of RemoveIamMember +func (mr *MockAdminServiceClientMockRecorder) RemoveIamMember(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, "RemoveIamMember", reflect.TypeOf((*MockAdminServiceClient)(nil).RemoveIamMember), varargs...) +} + +// SearchIamMembers mocks base method +func (m *MockAdminServiceClient) SearchIamMembers(arg0 context.Context, arg1 *admin.IamMemberSearchRequest, arg2 ...grpc.CallOption) (*admin.IamMemberSearchResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchIamMembers", varargs...) + ret0, _ := ret[0].(*admin.IamMemberSearchResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchIamMembers indicates an expected call of SearchIamMembers +func (mr *MockAdminServiceClientMockRecorder) SearchIamMembers(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, "SearchIamMembers", reflect.TypeOf((*MockAdminServiceClient)(nil).SearchIamMembers), varargs...) +} + // SearchOrgs mocks base method -func (m *MockAdminServiceClient) SearchOrgs(arg0 context.Context, arg1 *grpc.OrgSearchRequest, arg2 ...grpc0.CallOption) (*grpc.OrgSearchResponse, error) { +func (m *MockAdminServiceClient) SearchOrgs(arg0 context.Context, arg1 *admin.OrgSearchRequest, arg2 ...grpc.CallOption) (*admin.OrgSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchOrgs", varargs...) - ret0, _ := ret[0].(*grpc.OrgSearchResponse) + ret0, _ := ret[0].(*admin.OrgSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -278,14 +378,14 @@ func (mr *MockAdminServiceClientMockRecorder) SearchOrgs(arg0, arg1 interface{}, } // SetUpOrg mocks base method -func (m *MockAdminServiceClient) SetUpOrg(arg0 context.Context, arg1 *grpc.OrgSetUpRequest, arg2 ...grpc0.CallOption) (*grpc.OrgSetUpResponse, error) { +func (m *MockAdminServiceClient) SetUpOrg(arg0 context.Context, arg1 *admin.OrgSetUpRequest, arg2 ...grpc.CallOption) (*admin.OrgSetUpResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SetUpOrg", varargs...) - ret0, _ := ret[0].(*grpc.OrgSetUpResponse) + ret0, _ := ret[0].(*admin.OrgSetUpResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -298,14 +398,14 @@ func (mr *MockAdminServiceClientMockRecorder) SetUpOrg(arg0, arg1 interface{}, a } // UpdateOrgIamPolicy mocks base method -func (m *MockAdminServiceClient) UpdateOrgIamPolicy(arg0 context.Context, arg1 *grpc.OrgIamPolicyRequest, arg2 ...grpc0.CallOption) (*grpc.OrgIamPolicy, error) { +func (m *MockAdminServiceClient) UpdateOrgIamPolicy(arg0 context.Context, arg1 *admin.OrgIamPolicyRequest, arg2 ...grpc.CallOption) (*admin.OrgIamPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateOrgIamPolicy", varargs...) - ret0, _ := ret[0].(*grpc.OrgIamPolicy) + ret0, _ := ret[0].(*admin.OrgIamPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -318,7 +418,7 @@ func (mr *MockAdminServiceClientMockRecorder) UpdateOrgIamPolicy(arg0, arg1 inte } // Validate mocks base method -func (m *MockAdminServiceClient) Validate(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*structpb.Struct, error) { +func (m *MockAdminServiceClient) Validate(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*structpb.Struct, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { diff --git a/pkg/admin/api/proto/admin.proto b/pkg/grpc/admin/proto/admin.proto similarity index 99% rename from pkg/admin/api/proto/admin.proto rename to pkg/grpc/admin/proto/admin.proto index 35f6c3c1ca..135cc46ff1 100644 --- a/pkg/admin/api/proto/admin.proto +++ b/pkg/grpc/admin/proto/admin.proto @@ -11,7 +11,7 @@ import "authoption/options.proto"; package caos.zitadel.admin.api.v1; -option go_package ="github.com/caos/zitadel/pkg/admin/api/grpc"; +option go_package ="github.com/caos/zitadel/pkg/grpc/admin"; option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = { info: { diff --git a/pkg/admin/api/grpc/generate.go b/pkg/grpc/admin/proto/generate.go similarity index 62% rename from pkg/admin/api/grpc/generate.go rename to pkg/grpc/admin/proto/generate.go index e9150918fa..2df5cbd6a0 100644 --- a/pkg/admin/api/grpc/generate.go +++ b/pkg/grpc/admin/proto/generate.go @@ -1,4 +1,4 @@ -package grpc +package proto -//go:generate protoc -I$GOPATH/src -I../proto -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I$GOPATH/src/github.com/envoyproxy/protoc-gen-validate -I$GOPATH/src/github.com/caos/zitadel/internal/protoc/protoc-gen-authoption --go_out=plugins=grpc:$GOPATH/src --grpc-gateway_out=logtostderr=true:$GOPATH/src --swagger_out=logtostderr=true:. --authoption_out=. ../proto/admin.proto -//go:generate mockgen -package api -destination ./mock/admin.proto.mock.go github.com/caos/zitadel/pkg/admin/api/grpc AdminServiceClient +//go:generate protoc -I$GOPATH/src -I../proto -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I$GOPATH/src/github.com/envoyproxy/protoc-gen-validate -I$GOPATH/src/github.com/caos/zitadel/internal/protoc/protoc-gen-authoption --go_out=plugins=grpc:$GOPATH/src --grpc-gateway_out=logtostderr=true:$GOPATH/src --swagger_out=logtostderr=true:.. --authoption_out=.. admin.proto +//go:generate mockgen -package api -destination ../mock/admin.proto.mock.go github.com/caos/zitadel/pkg/grpc/admin AdminServiceClient diff --git a/pkg/grpc/auth/auth.pb.authoptions.go b/pkg/grpc/auth/auth.pb.authoptions.go new file mode 100644 index 0000000000..68cfe4f941 --- /dev/null +++ b/pkg/grpc/auth/auth.pb.authoptions.go @@ -0,0 +1,146 @@ +// Code generated by protoc-gen-authmethod. DO NOT EDIT. + +package auth + +import ( + "github.com/caos/zitadel/internal/api/authz" +) + +/** + * AuthService + */ + +const AuthService_MethodPrefix = "caos.zitadel.auth.api.v1.AuthService" + +var AuthService_AuthMethods = authz.MethodMapping{ + + "/caos.zitadel.auth.api.v1.AuthService/GetMyUserSessions": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/GetMyUser": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/GetMyUserProfile": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserProfile": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/GetMyUserEmail": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserEmail": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserEmail": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/ResendMyEmailVerificationMail": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/GetMyUserPhone": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserPhone": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/RemoveMyUserPhone": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserPhone": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/ResendMyPhoneVerificationCode": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/GetMyUserAddress": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/GetMyUserChanges": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserAddress": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/GetMyMfas": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/ChangeMyPassword": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/GetMyPasswordComplexityPolicy": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/AddMfaOTP": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/VerifyMfaOTP": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/RemoveMfaOTP": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/SearchMyUserGrant": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/SearchMyProjectOrgs": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/GetMyZitadelPermissions": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, + + "/caos.zitadel.auth.api.v1.AuthService/GetMyProjectPermissions": authz.Option{ + Permission: "authenticated", + CheckParam: "", + }, +} diff --git a/pkg/auth/api/grpc/auth.pb.go b/pkg/grpc/auth/auth.pb.go similarity index 87% rename from pkg/auth/api/grpc/auth.pb.go rename to pkg/grpc/auth/auth.pb.go index 829da1903e..60b0dbbcb9 100644 --- a/pkg/auth/api/grpc/auth.pb.go +++ b/pkg/grpc/auth/auth.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: auth.proto -package grpc +package auth import ( context "context" fmt "fmt" _ "github.com/caos/zitadel/internal/protoc/protoc-gen-authoption/authoption" - message "github.com/caos/zitadel/pkg/message" + message "github.com/caos/zitadel/pkg/grpc/message" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" empty "github.com/golang/protobuf/ptypes/empty" @@ -3051,227 +3051,227 @@ func init() { func init() { proto.RegisterFile("auth.proto", fileDescriptor_8bbd6f3875b0e874) } var fileDescriptor_8bbd6f3875b0e874 = []byte{ - // 3514 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0x5f, 0x6f, 0x1b, 0xd7, + // 3516 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0x5f, 0x6f, 0x1b, 0xd7, 0x95, 0xf7, 0x90, 0x94, 0x44, 0x1e, 0x4a, 0x14, 0x75, 0x2d, 0x4b, 0x14, 0x65, 0xd9, 0xf2, 0x38, 0x8e, 0x65, 0xc6, 0x16, 0x63, 0x25, 0xc1, 0xda, 0x0e, 0xb0, 0x01, 0x2d, 0xd2, 0x12, 0xd7, 0xe2, 0x9f, 0x0c, 0x29, 0x67, 0x1d, 0x60, 0x41, 0x8c, 0x38, 0x57, 0xd4, 0x24, 0x43, 0x0e, 0x33, 0x33, 0x94, 0x97, 0x01, 0x36, 0xc0, 0x7a, 0x17, 0x9b, 0x2d, 0xda, 0xb4, 0x45, 0x5a, 0x14, 0x28, 0xfa, - 0x54, 0xa0, 0x28, 0x0a, 0xb4, 0x68, 0x9f, 0xda, 0xa2, 0x68, 0x3f, 0x40, 0x5f, 0xfa, 0x50, 0x14, - 0xe8, 0x07, 0x28, 0xfa, 0x15, 0x8a, 0xa2, 0xe9, 0x4b, 0x71, 0xff, 0xcc, 0x70, 0x38, 0xc3, 0x21, - 0x29, 0xbb, 0x69, 0x83, 0x20, 0x4f, 0xe6, 0x3d, 0xff, 0xee, 0xb9, 0xe7, 0xfc, 0xee, 0xbd, 0x67, - 0xee, 0x91, 0x01, 0xe4, 0x9e, 0x75, 0xb2, 0xdd, 0x35, 0x74, 0x4b, 0x47, 0xa9, 0xa6, 0xac, 0x9b, - 0xdb, 0xef, 0xab, 0x96, 0xac, 0x60, 0x6d, 0x9b, 0x32, 0xe4, 0xae, 0xba, 0x7d, 0x7a, 0x3b, 0x7d, - 0xb1, 0xa5, 0xeb, 0x2d, 0x0d, 0x67, 0xe5, 0xae, 0x9a, 0x95, 0x3b, 0x1d, 0xdd, 0x92, 0x2d, 0x55, - 0xef, 0x98, 0x4c, 0x2f, 0xbd, 0xce, 0xb9, 0x74, 0x74, 0xd4, 0x3b, 0xce, 0xe2, 0x76, 0xd7, 0xea, - 0x73, 0xe6, 0x45, 0x2f, 0xd3, 0xb4, 0x8c, 0x5e, 0xd3, 0xe2, 0xdc, 0xcb, 0x5e, 0xae, 0xa5, 0xb6, - 0xb1, 0x69, 0xc9, 0xed, 0x2e, 0x17, 0x58, 0x3d, 0x95, 0x35, 0x55, 0x91, 0x2d, 0x9c, 0xb5, 0x7f, - 0x70, 0xc6, 0x4d, 0xfa, 0x4f, 0xf3, 0x56, 0x0b, 0x77, 0x6e, 0x99, 0x4f, 0xe4, 0x56, 0x0b, 0x1b, - 0x59, 0xbd, 0x4b, 0xdd, 0x1a, 0xe1, 0x62, 0x8a, 0xac, 0x86, 0xb1, 0x6d, 0x29, 0xce, 0x59, 0x68, - 0x63, 0xd3, 0x94, 0x5b, 0xdc, 0xac, 0x78, 0x04, 0xc9, 0x43, 0x13, 0x1b, 0x35, 0x6c, 0x9a, 0xaa, - 0xde, 0x79, 0xa4, 0xe2, 0x27, 0x26, 0x2a, 0xc3, 0x42, 0xcf, 0xc4, 0x46, 0xc3, 0x64, 0x44, 0x33, - 0x25, 0x6c, 0x86, 0xb7, 0xe2, 0x3b, 0x37, 0xb6, 0x83, 0xe2, 0xb5, 0xed, 0x31, 0x21, 0xcd, 0xf7, - 0x06, 0x04, 0x53, 0xfc, 0x4e, 0x08, 0x16, 0x3d, 0x12, 0x28, 0x01, 0x21, 0x55, 0x49, 0x09, 0x9b, - 0xc2, 0x56, 0x4c, 0x0a, 0xa9, 0x0a, 0x5a, 0x83, 0xa8, 0xdc, 0xc2, 0x1d, 0xab, 0xa1, 0x2a, 0xa9, - 0x10, 0xa5, 0xce, 0xd1, 0x71, 0x51, 0x41, 0x45, 0x96, 0xb4, 0x86, 0x69, 0xc9, 0x16, 0x4e, 0x85, - 0x37, 0x85, 0xad, 0xc4, 0x4e, 0x66, 0x2a, 0x5f, 0x6a, 0x44, 0x43, 0x8a, 0x11, 0x2e, 0xfd, 0x89, - 0x56, 0x61, 0x8e, 0xae, 0x4c, 0x55, 0x52, 0x11, 0x3a, 0xc9, 0x2c, 0x19, 0x16, 0x15, 0xb4, 0x0e, - 0x31, 0xca, 0xe8, 0xc8, 0x6d, 0x9c, 0x9a, 0xa1, 0xac, 0x28, 0x21, 0x94, 0xe5, 0x36, 0x46, 0x69, - 0x88, 0x9a, 0xf8, 0xbd, 0x1e, 0xee, 0x34, 0x71, 0x6a, 0x76, 0x53, 0xd8, 0x8a, 0x48, 0xce, 0x18, - 0x6d, 0x00, 0x68, 0x7a, 0x4b, 0xed, 0x30, 0xcd, 0x39, 0xaa, 0x19, 0xa3, 0x14, 0xaa, 0x7a, 0x05, - 0xe6, 0x15, 0xd5, 0xec, 0x6a, 0x72, 0x9f, 0x09, 0x44, 0xa9, 0x40, 0x9c, 0xd3, 0x88, 0x88, 0xf8, - 0x61, 0x14, 0xa2, 0xc4, 0xe7, 0x91, 0x61, 0xb9, 0x0b, 0x33, 0x6c, 0xd9, 0x21, 0xba, 0xec, 0xab, - 0x13, 0x96, 0x4d, 0xd7, 0xcb, 0x34, 0xd0, 0x1b, 0xb0, 0xd0, 0x34, 0x30, 0x45, 0x45, 0x43, 0xb1, - 0x23, 0x17, 0xdf, 0x49, 0x6f, 0x33, 0x08, 0x6e, 0xdb, 0x10, 0xdc, 0xae, 0xdb, 0x10, 0x94, 0xe6, - 0x6d, 0x85, 0x3c, 0x31, 0xf0, 0x3a, 0xc4, 0x9b, 0x27, 0x72, 0xa7, 0x85, 0x99, 0x7a, 0x64, 0xa2, - 0x3a, 0x30, 0x71, 0xaa, 0x7c, 0x17, 0x40, 0x93, 0x4d, 0xab, 0x41, 0x43, 0x41, 0x23, 0x3a, 0x5e, - 0x37, 0x46, 0xa4, 0x0f, 0x88, 0x30, 0x2a, 0x40, 0xb2, 0x2b, 0x9b, 0xe6, 0x13, 0xdd, 0x50, 0x1a, - 0xcc, 0xa2, 0x42, 0xc3, 0x3e, 0xde, 0xc0, 0xa2, 0xad, 0xb3, 0xcb, 0x54, 0x86, 0x53, 0x3a, 0xe7, - 0x49, 0xe9, 0x06, 0xc0, 0xb1, 0x6a, 0x98, 0x96, 0x3b, 0x2b, 0x31, 0x4a, 0xa1, 0xec, 0x75, 0xa0, - 0xfe, 0x30, 0x6e, 0x8c, 0xe9, 0x12, 0xc2, 0xc8, 0x9c, 0x82, 0x2f, 0xa7, 0x44, 0xbf, 0xa3, 0x36, - 0xdf, 0x65, 0xfc, 0x38, 0xd3, 0x27, 0x04, 0xca, 0xbc, 0x05, 0xa8, 0x6b, 0xe0, 0x63, 0x6c, 0x18, - 0x58, 0x69, 0x68, 0x72, 0xa7, 0xd5, 0x93, 0x5b, 0x38, 0x35, 0x4f, 0xa5, 0x96, 0x1c, 0xce, 0x01, - 0x67, 0xa0, 0x3b, 0x30, 0xdb, 0xc2, 0x1d, 0x05, 0x1b, 0xa9, 0x05, 0x8a, 0x81, 0xcd, 0x60, 0x0c, - 0xec, 0x51, 0x39, 0x89, 0xcb, 0xa3, 0x65, 0x98, 0xc1, 0x6d, 0x59, 0xd5, 0x52, 0x09, 0x6a, 0x9b, - 0x0d, 0x50, 0x06, 0x96, 0x54, 0xb3, 0x41, 0x7f, 0x37, 0x4e, 0xb1, 0xa1, 0x1e, 0xab, 0x58, 0x49, - 0x2d, 0x6e, 0x0a, 0x5b, 0x51, 0x69, 0x51, 0x35, 0x0b, 0x84, 0xfe, 0x88, 0x93, 0x89, 0x85, 0xee, - 0x89, 0xde, 0xc1, 0xa9, 0x24, 0xb3, 0x40, 0x07, 0xdc, 0x02, 0xfd, 0x3d, 0xb0, 0xb0, 0x64, 0x5b, - 0xa8, 0x12, 0xba, 0x63, 0x21, 0x05, 0x73, 0x4d, 0xbd, 0xd7, 0xb1, 0x8c, 0x7e, 0x0a, 0xb1, 0x6d, - 0xcd, 0x87, 0x64, 0x57, 0x69, 0x7a, 0x53, 0xd6, 0x54, 0xab, 0x9f, 0x3a, 0xcf, 0x43, 0xcc, 0xc7, - 0xe8, 0x32, 0xc4, 0xbb, 0xba, 0x69, 0xc9, 0x5a, 0xa3, 0xa9, 0x2b, 0x38, 0xb5, 0x4c, 0xd9, 0xc0, - 0x48, 0xbb, 0xba, 0x82, 0xd1, 0x0a, 0xcc, 0x1a, 0xb8, 0xa5, 0xea, 0x9d, 0xd4, 0x05, 0xb6, 0x8f, - 0xd9, 0x08, 0x5d, 0x83, 0x84, 0x69, 0x19, 0x18, 0x5b, 0x0d, 0x59, 0x51, 0x0c, 0x6c, 0x9a, 0xa9, - 0x15, 0xca, 0x5f, 0x60, 0xd4, 0x1c, 0x23, 0x0e, 0xed, 0xe8, 0x55, 0xcf, 0x8e, 0xbe, 0x06, 0x09, - 0x03, 0x9b, 0x7a, 0xcf, 0x68, 0xe2, 0x86, 0xfe, 0xa4, 0x83, 0x8d, 0x54, 0x8a, 0x99, 0xb0, 0xa9, - 0x15, 0x42, 0x24, 0x2e, 0x0e, 0x36, 0xbe, 0x99, 0x5a, 0xdb, 0x0c, 0x13, 0x17, 0x9d, 0x9d, 0x6f, - 0xa2, 0x97, 0x61, 0xd9, 0x95, 0xe6, 0xc1, 0x19, 0x91, 0xa6, 0xd6, 0x06, 0x10, 0x38, 0xb0, 0x55, - 0xc4, 0x5f, 0x84, 0x21, 0x4e, 0xb6, 0x71, 0xd5, 0xd0, 0x8f, 0x55, 0x0d, 0xfb, 0x0e, 0x83, 0x21, - 0x44, 0x87, 0xc6, 0x22, 0x3a, 0x3c, 0x16, 0xd1, 0x11, 0x0f, 0xa2, 0x87, 0xe0, 0x3a, 0xe3, 0x81, - 0xab, 0x17, 0xee, 0xb3, 0x7e, 0xb8, 0x8f, 0x46, 0xf4, 0xdc, 0x64, 0x44, 0x47, 0xcf, 0x88, 0x68, - 0x77, 0xde, 0x62, 0x9e, 0xbc, 0xf9, 0xce, 0x3b, 0x78, 0xbe, 0xf3, 0x2e, 0x7e, 0x96, 0xf3, 0x4e, - 0xfc, 0x7a, 0x84, 0xdd, 0x71, 0x3c, 0x77, 0x23, 0x0f, 0xf3, 0x2f, 0xf2, 0xf7, 0x99, 0xcd, 0x9f, - 0x77, 0x3b, 0xcf, 0x4f, 0xbd, 0x9d, 0x17, 0x02, 0xb7, 0xf3, 0x57, 0x42, 0x90, 0x3a, 0xec, 0x12, - 0x5f, 0x5c, 0xc0, 0x90, 0xc8, 0x72, 0x4d, 0x0b, 0xdd, 0x18, 0x4a, 0x37, 0xc5, 0xc8, 0x7d, 0xf8, - 0xe4, 0xfe, 0x9c, 0x31, 0x93, 0x14, 0x52, 0xbf, 0x16, 0xdc, 0xa9, 0xbf, 0xee, 0x4e, 0x7d, 0xc8, - 0x27, 0x39, 0x80, 0xc1, 0x75, 0x37, 0x0c, 0xc2, 0x7e, 0x41, 0x07, 0x12, 0x77, 0x47, 0xe6, 0x3b, - 0xe2, 0xd3, 0x18, 0x9b, 0xfb, 0x99, 0xb3, 0xe5, 0x5e, 0xfc, 0x93, 0x00, 0x31, 0x12, 0x08, 0x7a, - 0xc3, 0xf8, 0xf6, 0x86, 0x73, 0x57, 0x85, 0xdc, 0x77, 0xd5, 0x16, 0x78, 0xaf, 0x24, 0xba, 0xae, - 0x11, 0x37, 0x95, 0x1b, 0x59, 0x91, 0x49, 0xc8, 0x9a, 0x79, 0x3e, 0x64, 0xcd, 0x9e, 0xe9, 0x64, - 0xf8, 0x8b, 0x00, 0x0b, 0xce, 0xba, 0x47, 0x9e, 0x0b, 0x9f, 0xdf, 0xb5, 0xdf, 0x83, 0x14, 0xf5, - 0xb2, 0x5f, 0xea, 0x3b, 0x21, 0xb0, 0x77, 0xc0, 0x25, 0x88, 0xd0, 0xcb, 0xdd, 0x8f, 0x7d, 0x4a, - 0x17, 0xf7, 0x61, 0x85, 0xe9, 0xfa, 0x34, 0xbd, 0xf1, 0xb3, 0x2d, 0x85, 0x02, 0x2c, 0xdd, 0x83, - 0x95, 0xc1, 0x3e, 0x1c, 0xb2, 0xb4, 0x69, 0x47, 0xde, 0xef, 0x04, 0x63, 0x88, 0x7f, 0xe6, 0xa8, - 0xa5, 0x55, 0xcd, 0xa8, 0xcc, 0xb1, 0xfa, 0x28, 0x34, 0xb1, 0x3e, 0x0a, 0x8f, 0xae, 0x8f, 0x3e, - 0xbb, 0xb9, 0xfb, 0x2b, 0xc7, 0x2d, 0xf3, 0x37, 0x00, 0xb7, 0x9f, 0xdb, 0xd5, 0xdf, 0x75, 0x63, - 0x86, 0x3a, 0x6d, 0x63, 0xe6, 0xb2, 0xbd, 0x6a, 0x86, 0x99, 0xd8, 0x27, 0xf7, 0x67, 0x8d, 0x48, - 0x52, 0x48, 0x2d, 0xf3, 0x00, 0x88, 0x77, 0xdc, 0xc0, 0x1d, 0x52, 0x9d, 0x04, 0xf9, 0xdf, 0x84, - 0x58, 0x01, 0x68, 0x97, 0xa9, 0xde, 0x80, 0xbb, 0x8a, 0xe9, 0x50, 0x70, 0x31, 0x1d, 0x1e, 0x5f, - 0x4c, 0x47, 0xc6, 0x14, 0xd3, 0x33, 0x13, 0x8a, 0xe9, 0xd9, 0x49, 0xc5, 0xf4, 0xdc, 0xa4, 0x24, - 0x46, 0x9f, 0x2f, 0x89, 0xb1, 0x33, 0x25, 0xf1, 0xb7, 0xfc, 0xe1, 0x81, 0x7b, 0x3a, 0x12, 0xc4, - 0x5f, 0xc4, 0xf4, 0x6c, 0x31, 0xfd, 0x83, 0xe0, 0xae, 0x6a, 0xb8, 0xbf, 0x36, 0xc0, 0xc5, 0x41, - 0x30, 0x19, 0xc6, 0xa3, 0x9f, 0xdc, 0x9f, 0x31, 0xc2, 0x04, 0xe1, 0x4e, 0x58, 0x5f, 0x70, 0x85, - 0x35, 0xe4, 0x11, 0x1a, 0x04, 0xf8, 0xc6, 0x70, 0x80, 0xc3, 0x1e, 0x41, 0x77, 0xa8, 0x37, 0x9d, - 0x50, 0x47, 0x3c, 0x52, 0x76, 0xd0, 0xb3, 0xbe, 0xa0, 0xcf, 0x78, 0x24, 0x87, 0xc3, 0x2f, 0x5e, - 0x04, 0xa8, 0xf2, 0xe7, 0x84, 0x62, 0xde, 0x0b, 0x19, 0xf1, 0x0e, 0x2c, 0xda, 0x5c, 0x7b, 0xe1, - 0xd7, 0x20, 0x6a, 0xbf, 0x3f, 0x78, 0xcf, 0x85, 0x7d, 0xc9, 0x61, 0x89, 0x1a, 0x24, 0xaa, 0x43, - 0xcf, 0x14, 0xe8, 0x26, 0xcc, 0xeb, 0x9a, 0xd2, 0x08, 0x56, 0x8e, 0xeb, 0x9a, 0x62, 0xeb, 0x10, - 0xe9, 0x0e, 0x7e, 0x32, 0x90, 0x0e, 0xf9, 0xa4, 0x3b, 0xf8, 0x89, 0x2d, 0x2d, 0x8a, 0x30, 0xcf, - 0x6f, 0xdf, 0x63, 0xb9, 0x62, 0x75, 0x11, 0x72, 0x1f, 0x3f, 0xfc, 0xc8, 0x29, 0xc2, 0x7c, 0xa9, - 0xa7, 0x59, 0xea, 0x03, 0xb9, 0x69, 0xe9, 0x86, 0x89, 0xee, 0x42, 0xa4, 0x7d, 0x2c, 0xdb, 0x4f, - 0x7e, 0xd7, 0x82, 0xab, 0x3b, 0x97, 0x96, 0x44, 0x55, 0xc4, 0x0f, 0x20, 0xee, 0x22, 0xa2, 0xd7, - 0x20, 0x62, 0xf5, 0xbb, 0x6c, 0xb6, 0xc4, 0xce, 0x95, 0x31, 0x96, 0x8e, 0xe5, 0x7a, 0xbf, 0x8b, - 0x25, 0x2a, 0x8e, 0xee, 0x0c, 0xbf, 0x78, 0x89, 0x63, 0xf4, 0x1e, 0xe4, 0xdc, 0x0f, 0x5e, 0xe2, - 0x47, 0x02, 0x24, 0xd8, 0x4a, 0x25, 0x6c, 0x76, 0xf5, 0x8e, 0x39, 0xf4, 0xde, 0x27, 0x0c, 0xbd, - 0xf7, 0x25, 0x21, 0xdc, 0x33, 0xec, 0x82, 0x8b, 0xfc, 0x24, 0x1b, 0xd6, 0xc4, 0x4d, 0x03, 0x5b, - 0x7c, 0xaf, 0xf3, 0xd1, 0xc0, 0x9f, 0xc8, 0x59, 0xfd, 0x91, 0x20, 0x51, 0x29, 0xe6, 0x77, 0x77, - 0x35, 0x15, 0x77, 0xac, 0x5c, 0xcf, 0x3a, 0x21, 0xdf, 0x69, 0x4d, 0x3a, 0x1a, 0x38, 0x14, 0x65, - 0x84, 0xa2, 0x82, 0xae, 0xc2, 0x02, 0x67, 0x72, 0x3f, 0x98, 0x73, 0xf3, 0x8c, 0x58, 0xa3, 0x34, - 0xf1, 0xbf, 0x43, 0xb0, 0x42, 0xf6, 0xdd, 0x9e, 0x21, 0x13, 0x9a, 0x6c, 0x34, 0x4f, 0x6c, 0x08, - 0xae, 0xc0, 0xac, 0x7e, 0x7c, 0x6c, 0x62, 0x8b, 0x5a, 0x8e, 0x48, 0x7c, 0x44, 0x6e, 0x69, 0x4d, - 0x6d, 0xab, 0xcc, 0x5e, 0x44, 0x62, 0x03, 0xf4, 0x1f, 0x90, 0x30, 0x75, 0xc3, 0x52, 0x3b, 0xad, - 0x46, 0x53, 0xd7, 0x7a, 0xed, 0x0e, 0x7f, 0x58, 0xbd, 0x39, 0xfe, 0x85, 0xd1, 0x35, 0xef, 0x43, - 0xdc, 0xa7, 0x1b, 0xe8, 0xa9, 0x10, 0xda, 0x3c, 0x27, 0x2d, 0x70, 0x6b, 0xbb, 0xd4, 0x18, 0x89, - 0xaf, 0x6c, 0x36, 0x69, 0xcc, 0xa2, 0x12, 0xf9, 0x89, 0xf6, 0x61, 0xee, 0xbd, 0x1e, 0x36, 0x54, - 0x4c, 0x36, 0x1f, 0xc1, 0xd6, 0xf6, 0xd4, 0x33, 0xbd, 0xd9, 0xc3, 0x46, 0x5f, 0xb2, 0xd5, 0xc5, - 0x9f, 0x09, 0xb0, 0x3c, 0x4a, 0x02, 0xed, 0x43, 0xf8, 0x5d, 0xdc, 0xe7, 0x80, 0x7b, 0xd6, 0x85, - 0x10, 0x13, 0xe8, 0x5f, 0x61, 0xb6, 0x8d, 0xad, 0x13, 0x5d, 0xe1, 0x28, 0x7c, 0x31, 0xd8, 0x18, - 0xb3, 0x51, 0xa2, 0xd2, 0x12, 0xd7, 0x22, 0x31, 0x3f, 0x95, 0xb5, 0x9e, 0xfd, 0x1d, 0xcf, 0x06, - 0xe2, 0x0f, 0x05, 0x58, 0xf5, 0x25, 0x8f, 0x23, 0xf5, 0x6c, 0xd9, 0xbb, 0x02, 0xf3, 0x96, 0x4e, - 0x0e, 0x47, 0x03, 0x9b, 0x3d, 0x8d, 0x41, 0x36, 0x22, 0xc5, 0x29, 0x4d, 0xa2, 0x24, 0xf4, 0x06, - 0x39, 0x15, 0x29, 0x33, 0x42, 0xc3, 0x7d, 0x7d, 0x8a, 0x78, 0xd0, 0xb7, 0x7b, 0xae, 0x26, 0x7e, - 0x99, 0xd7, 0x7f, 0x0e, 0x87, 0xf8, 0x52, 0x31, 0x5a, 0x45, 0x1b, 0xba, 0x6c, 0x80, 0x2e, 0x42, - 0xac, 0x6a, 0xe8, 0xef, 0xe0, 0xa6, 0x55, 0xb4, 0x9f, 0xee, 0x07, 0x04, 0xb2, 0xae, 0x43, 0xba, - 0xe5, 0xec, 0x6d, 0xc5, 0x46, 0xc4, 0x96, 0xa4, 0x6b, 0xd8, 0xa4, 0xde, 0xc5, 0x24, 0x36, 0x20, - 0x97, 0x71, 0xc5, 0x68, 0x95, 0x07, 0xcf, 0x18, 0xf6, 0x50, 0xfc, 0x81, 0x00, 0x6b, 0xa5, 0x3e, - 0xb7, 0x5b, 0x31, 0x5a, 0xcf, 0x83, 0x7d, 0x3f, 0x38, 0x1f, 0x7a, 0xc1, 0x79, 0x7b, 0xcc, 0x36, - 0xf7, 0x79, 0xe1, 0xc1, 0xe7, 0xaf, 0x04, 0x58, 0x0d, 0x10, 0x42, 0x0f, 0xdd, 0x10, 0xcd, 0x9e, - 0x65, 0x92, 0x7f, 0x18, 0x4a, 0xbf, 0x27, 0x40, 0x7a, 0x54, 0xa4, 0x3f, 0x2d, 0xa0, 0xbe, 0xe6, - 0x01, 0xea, 0x46, 0xf0, 0x2a, 0x2a, 0x46, 0xcb, 0x81, 0xe7, 0x0d, 0x08, 0x57, 0x8c, 0x96, 0xaf, - 0x9c, 0x43, 0x10, 0x71, 0x3d, 0xaf, 0xd1, 0xdf, 0xe2, 0x6d, 0x58, 0x28, 0xf5, 0xab, 0xd8, 0x68, - 0xab, 0xac, 0x21, 0x85, 0x36, 0x21, 0xde, 0x1d, 0x0c, 0xe9, 0x5d, 0x17, 0x93, 0xdc, 0x24, 0x51, - 0x86, 0x04, 0xbb, 0xa0, 0x9d, 0xd2, 0xc6, 0x59, 0x9f, 0xe0, 0x5e, 0xdf, 0x75, 0x58, 0xb4, 0xeb, - 0xb2, 0x06, 0x0f, 0x0b, 0x5b, 0x7f, 0xc2, 0x26, 0x57, 0x58, 0x78, 0x38, 0xe6, 0xc2, 0x0e, 0xe6, - 0x44, 0x13, 0xe6, 0xf8, 0x14, 0xe8, 0x1e, 0xcc, 0xb1, 0x0a, 0xcb, 0xbe, 0x77, 0xc7, 0xbc, 0xaa, - 0x30, 0x1d, 0xc9, 0x56, 0x70, 0xe5, 0x23, 0x34, 0x3a, 0x1f, 0x61, 0x97, 0xbf, 0xe2, 0x97, 0x42, - 0x30, 0xcb, 0x2b, 0x0f, 0x4f, 0x15, 0x28, 0x9c, 0xe9, 0xb9, 0x2c, 0x0f, 0x80, 0x4f, 0xc9, 0x5d, - 0x45, 0xaf, 0xf8, 0x10, 0xd5, 0xf5, 0x16, 0x0b, 0xcc, 0xdf, 0x03, 0x5a, 0xd1, 0xbd, 0x8f, 0x95, - 0x12, 0xeb, 0x3b, 0x4a, 0x31, 0xaa, 0x48, 0x6e, 0xfc, 0xa1, 0x2a, 0x37, 0xec, 0xa9, 0x72, 0xd7, - 0x21, 0x86, 0x15, 0xd5, 0xd2, 0x5d, 0xcd, 0xba, 0x28, 0x23, 0xb0, 0x53, 0x85, 0xfd, 0xb6, 0xab, - 0x6b, 0x36, 0x42, 0x2f, 0x41, 0x44, 0x91, 0x2d, 0x99, 0x7f, 0xeb, 0xad, 0xfa, 0x16, 0x53, 0xa3, - 0xbd, 0x58, 0x89, 0x0a, 0x89, 0x3f, 0x0a, 0x43, 0xca, 0xa9, 0xc6, 0xf4, 0x76, 0x57, 0xc3, 0xff, - 0xa9, 0x5a, 0xfd, 0xaa, 0xae, 0xa9, 0xcd, 0xbe, 0x0f, 0x57, 0x9b, 0x10, 0x57, 0xb0, 0xd9, 0x34, - 0x54, 0xda, 0x4c, 0xe5, 0xf0, 0x72, 0x93, 0xfe, 0xc9, 0xfd, 0xb6, 0x0d, 0x80, 0xb6, 0xda, 0x69, - 0x68, 0xb8, 0xd3, 0xb2, 0x4e, 0x68, 0x54, 0x22, 0x52, 0xac, 0xad, 0x76, 0x0e, 0x28, 0x81, 0x14, - 0x17, 0x27, 0xb2, 0xd9, 0xd0, 0xf4, 0x27, 0xd8, 0x68, 0xca, 0x26, 0xfb, 0x1a, 0x8e, 0x4a, 0xf3, - 0x27, 0xb2, 0x79, 0x60, 0xd3, 0x6c, 0xa1, 0x5e, 0xb7, 0xcb, 0x85, 0xe6, 0x1c, 0xa1, 0x43, 0x9b, - 0x46, 0x26, 0x22, 0x42, 0x9d, 0x5e, 0xfb, 0x88, 0x3f, 0x00, 0x47, 0xa5, 0xd8, 0x89, 0x6c, 0x96, - 0x29, 0xc1, 0x66, 0x9b, 0xfd, 0xf6, 0x91, 0xae, 0xd1, 0x4f, 0x0b, 0xc6, 0xae, 0x51, 0xc2, 0x50, - 0xc6, 0xc1, 0xdf, 0x4a, 0x55, 0xcd, 0x86, 0x82, 0x8f, 0x65, 0x72, 0x18, 0xc4, 0x99, 0xaa, 0x6a, - 0xe6, 0x19, 0x21, 0x63, 0x0c, 0x75, 0xaa, 0x59, 0x3f, 0x77, 0x13, 0x2e, 0x1e, 0xd6, 0x0a, 0x52, - 0xad, 0x50, 0xab, 0x15, 0x2b, 0xe5, 0x5a, 0x3d, 0x57, 0x2f, 0x34, 0x0e, 0xcb, 0xb5, 0x6a, 0x61, - 0xb7, 0xf8, 0xa0, 0x58, 0xc8, 0x27, 0xcf, 0xa1, 0x75, 0x58, 0xf5, 0x49, 0xe4, 0x76, 0xeb, 0xc5, - 0x47, 0x85, 0xa4, 0x80, 0x2e, 0xc3, 0xba, 0x8f, 0x59, 0x2f, 0x48, 0xa5, 0x62, 0x39, 0x57, 0x2f, - 0xe4, 0x93, 0xa1, 0xcc, 0x7b, 0x90, 0x24, 0x25, 0x9c, 0x7d, 0xf8, 0x51, 0xd0, 0xae, 0xc1, 0x05, - 0x4a, 0x2b, 0xd4, 0xaa, 0x95, 0x72, 0xad, 0x50, 0x7f, 0x5c, 0x2d, 0x34, 0x76, 0x2b, 0xf9, 0x42, - 0xf2, 0x1c, 0xda, 0x80, 0x35, 0x1f, 0xab, 0x98, 0x6f, 0xd4, 0x2b, 0x0f, 0x0b, 0xe5, 0xa4, 0x80, - 0xae, 0xc2, 0xe5, 0x40, 0x36, 0x17, 0x0a, 0x65, 0x7e, 0xc2, 0x1f, 0x9c, 0xd8, 0x02, 0xd7, 0xe0, - 0x02, 0xf5, 0x70, 0xc4, 0xca, 0x96, 0x21, 0x39, 0x60, 0x39, 0x4b, 0x5a, 0x01, 0x34, 0xa0, 0x16, - 0xcb, 0x9c, 0x1e, 0x42, 0x17, 0x60, 0x69, 0x40, 0xcf, 0x17, 0x0e, 0x0a, 0x64, 0x81, 0xe1, 0x61, - 0x23, 0x07, 0x95, 0xdd, 0x87, 0x85, 0x7c, 0x32, 0x32, 0x2c, 0x5c, 0x3b, 0xac, 0x55, 0x0b, 0xe5, - 0x7c, 0x72, 0x66, 0x98, 0x5c, 0x2c, 0x17, 0xeb, 0xc5, 0xdc, 0x41, 0x72, 0x36, 0xf3, 0xef, 0x30, - 0xcb, 0x9e, 0x7a, 0xc9, 0xe4, 0x7b, 0x85, 0x72, 0xbe, 0x20, 0x79, 0x5c, 0x5d, 0x82, 0x05, 0x4e, - 0x7f, 0x50, 0x28, 0xe5, 0x0e, 0x88, 0x9f, 0x8b, 0x10, 0xe7, 0x24, 0x4a, 0x08, 0x21, 0x04, 0x09, - 0x4e, 0xc8, 0x17, 0x1f, 0x91, 0x9c, 0x24, 0xc3, 0x99, 0x3c, 0xcc, 0xf1, 0x8f, 0x03, 0xb4, 0x0a, - 0xe7, 0x4b, 0x0f, 0x72, 0x34, 0x64, 0xc3, 0xb6, 0x17, 0x21, 0x6e, 0x33, 0x6a, 0xa5, 0x1a, 0xb3, - 0x6c, 0x13, 0x2a, 0xf5, 0x6a, 0x32, 0x94, 0x39, 0x86, 0xa8, 0x5d, 0x9a, 0xa3, 0x14, 0x2c, 0x93, - 0xdf, 0x23, 0xc2, 0xb9, 0x02, 0xc8, 0xe1, 0x94, 0x2b, 0xf5, 0x86, 0x54, 0xc8, 0xe5, 0x1f, 0x27, - 0x05, 0xe2, 0x97, 0x43, 0x67, 0xb4, 0x10, 0x89, 0x9a, 0x8b, 0x56, 0xaa, 0x3c, 0x22, 0xb1, 0xcc, - 0x9c, 0x02, 0xf2, 0x57, 0x96, 0xe8, 0x12, 0xa4, 0xfd, 0xd4, 0xc6, 0x61, 0xf9, 0x61, 0xb9, 0xf2, - 0x56, 0x99, 0x61, 0x66, 0x04, 0xbf, 0x22, 0xed, 0x35, 0x8a, 0xf9, 0xa4, 0x80, 0xae, 0xc0, 0xc6, - 0x08, 0x76, 0x55, 0xaa, 0xfc, 0x5b, 0x61, 0xb7, 0x4e, 0x44, 0x42, 0x99, 0x23, 0xb8, 0x30, 0xb2, - 0x5c, 0x40, 0xd7, 0xe0, 0x4a, 0xe9, 0x31, 0x17, 0xad, 0x48, 0x7b, 0xb5, 0x42, 0x4e, 0xda, 0xdd, - 0x7f, 0x58, 0x78, 0xec, 0x59, 0xb9, 0x08, 0x97, 0x46, 0x8b, 0x11, 0x27, 0xca, 0xb9, 0x52, 0x21, - 0x29, 0x64, 0x7e, 0x2f, 0xc0, 0xbc, 0xbb, 0x86, 0x20, 0xf9, 0x60, 0x82, 0xa5, 0x42, 0x7d, 0xbf, - 0x92, 0x6f, 0x14, 0xde, 0x3c, 0xcc, 0x1d, 0xd4, 0x92, 0xe7, 0xd0, 0x45, 0x48, 0x0d, 0x31, 0x6a, - 0xf5, 0x9c, 0x54, 0xaf, 0x35, 0xde, 0x2a, 0xd6, 0xf7, 0x93, 0x02, 0xc1, 0xf3, 0x10, 0x77, 0xb7, - 0x52, 0xae, 0xe7, 0x8a, 0xe5, 0x5a, 0x32, 0x44, 0x76, 0xc7, 0x08, 0x8b, 0x8d, 0xe2, 0x5e, 0xb9, - 0x22, 0x15, 0x1a, 0xbb, 0x39, 0x82, 0x08, 0xb4, 0x05, 0x2f, 0x04, 0x59, 0x1f, 0x92, 0x8c, 0x90, - 0xc5, 0x8f, 0x9c, 0x69, 0x48, 0x6c, 0x66, 0xe7, 0xe9, 0x65, 0x88, 0x93, 0x6f, 0xb3, 0x1a, 0x36, - 0x4e, 0xd5, 0x26, 0x26, 0x95, 0xe0, 0x3e, 0x96, 0x35, 0xeb, 0xe4, 0x7d, 0xb4, 0xe2, 0x3b, 0x7a, - 0x0b, 0xed, 0xae, 0xd5, 0x4f, 0x07, 0xd0, 0xc5, 0xe4, 0xd3, 0xdf, 0xfd, 0xf1, 0x1b, 0x21, 0x40, - 0xd1, 0xec, 0x09, 0xb7, 0xb0, 0x07, 0x33, 0x12, 0x96, 0x95, 0xfe, 0x99, 0x4d, 0x25, 0xa8, 0xa9, - 0x28, 0x9a, 0xcd, 0x1a, 0x54, 0xbf, 0x0c, 0xd1, 0x47, 0xfc, 0xcf, 0x81, 0x02, 0x6d, 0x05, 0xdd, - 0x76, 0xe2, 0x12, 0x35, 0x16, 0x47, 0x31, 0xe7, 0x4f, 0x8a, 0xd0, 0xff, 0x0a, 0xb0, 0xb4, 0x87, - 0x2d, 0xf6, 0x2a, 0x6f, 0xff, 0x9d, 0x4e, 0xa0, 0xe5, 0xcc, 0xd4, 0x7f, 0xf8, 0x63, 0x8a, 0x2f, - 0x3d, 0xfd, 0x69, 0x6a, 0x11, 0x16, 0x88, 0x0c, 0xee, 0x58, 0x6a, 0x53, 0xb6, 0xb0, 0x42, 0xe7, - 0x47, 0x28, 0x99, 0x6d, 0xe3, 0x2c, 0xf9, 0xfe, 0xb6, 0xff, 0xae, 0x08, 0xb5, 0x21, 0xe6, 0x78, - 0x11, 0x38, 0xbb, 0x38, 0x7e, 0x76, 0x32, 0xad, 0xf8, 0x42, 0xd0, 0xac, 0x64, 0xd5, 0x74, 0xca, - 0x6c, 0x1b, 0xa3, 0xff, 0x11, 0x20, 0xe9, 0xcc, 0x67, 0x37, 0xd9, 0x83, 0xa6, 0x9d, 0xf0, 0xd7, - 0x4e, 0xae, 0x3e, 0xaf, 0x78, 0x33, 0x68, 0xf6, 0xf3, 0x68, 0xc9, 0x99, 0x3d, 0xdb, 0xe5, 0x13, - 0x7e, 0x57, 0x80, 0xf3, 0xec, 0x01, 0x6d, 0xd8, 0x91, 0x9d, 0x31, 0x13, 0x06, 0x74, 0x11, 0xd3, - 0xd7, 0xa6, 0x72, 0x52, 0xcc, 0x06, 0x39, 0xb8, 0x92, 0xf6, 0x3b, 0x78, 0x4f, 0xc8, 0xa0, 0xff, - 0x82, 0x84, 0x13, 0x28, 0xd6, 0xaf, 0x0b, 0x0a, 0xd3, 0x84, 0xcf, 0x4a, 0xa7, 0xe9, 0x25, 0x66, - 0x82, 0x7c, 0x58, 0x42, 0x8b, 0x03, 0x1f, 0x58, 0xeb, 0xeb, 0xdb, 0x02, 0x2c, 0xb1, 0x2a, 0xd5, - 0xed, 0xc2, 0xcb, 0xd3, 0x04, 0xc8, 0xdd, 0xde, 0x49, 0x5f, 0x9d, 0xc2, 0x39, 0xf1, 0x56, 0x90, - 0x63, 0xcb, 0x69, 0xaf, 0x63, 0x24, 0x34, 0xdf, 0x12, 0x60, 0xc9, 0xd7, 0xd3, 0x1a, 0x97, 0xbc, - 0xa0, 0x06, 0x58, 0xe0, 0xe6, 0x7f, 0x2d, 0xc8, 0xa1, 0x8b, 0xe2, 0xaa, 0xc7, 0xa1, 0x2c, 0xeb, - 0xb0, 0xf4, 0x89, 0x63, 0x1f, 0x0b, 0xb0, 0x21, 0x61, 0x13, 0x77, 0x94, 0x52, 0xdf, 0xd5, 0x1f, - 0x6c, 0xd2, 0x02, 0xb3, 0x34, 0x2e, 0x87, 0x41, 0x8e, 0xe4, 0x82, 0x1c, 0xd9, 0x12, 0xaf, 0xfa, - 0x1c, 0x31, 0xe8, 0xd4, 0xa7, 0xae, 0x39, 0xbd, 0x40, 0x62, 0x2d, 0xb4, 0x67, 0x04, 0x92, 0xd3, - 0x85, 0x9a, 0x12, 0x48, 0xac, 0x17, 0xe5, 0x05, 0x12, 0x73, 0x61, 0x2a, 0x20, 0xb9, 0x1b, 0x37, - 0x93, 0x80, 0x44, 0x65, 0xa7, 0x04, 0x12, 0x75, 0x8c, 0x84, 0x46, 0x87, 0x25, 0x09, 0xb7, 0xf5, - 0x53, 0x3c, 0x4d, 0x74, 0x82, 0x52, 0x14, 0x1c, 0x8c, 0x8c, 0x2f, 0x18, 0xdf, 0xf4, 0x20, 0x77, - 0x62, 0x30, 0x46, 0x77, 0xb1, 0x9e, 0x13, 0xb7, 0xd4, 0x97, 0x20, 0xdc, 0xba, 0xba, 0x83, 0x0c, - 0x43, 0xac, 0x97, 0xf2, 0xa9, 0xe0, 0x96, 0x3b, 0x32, 0x1a, 0xb7, 0x43, 0x57, 0x85, 0xdd, 0x94, - 0x79, 0xc6, 0xab, 0xc2, 0xd5, 0x7d, 0x9a, 0xf2, 0xaa, 0xe0, 0x5d, 0x0a, 0xf4, 0x91, 0xdb, 0x0b, - 0xfb, 0xb1, 0x60, 0x6b, 0xd2, 0xdb, 0x80, 0xfd, 0x64, 0x91, 0xbe, 0x32, 0x51, 0x72, 0x4a, 0x7f, - 0xec, 0xb7, 0x06, 0xef, 0xd5, 0x65, 0x07, 0x66, 0xaa, 0xab, 0x6b, 0xb8, 0x55, 0x34, 0xe9, 0xea, - 0xb2, 0x3b, 0x31, 0xd3, 0x5d, 0x5d, 0x3c, 0x60, 0x24, 0x73, 0xa7, 0xbc, 0xa6, 0x28, 0x1d, 0xcb, - 0xc1, 0x19, 0x7b, 0x71, 0xaa, 0xbe, 0x86, 0x29, 0xde, 0x08, 0x9a, 0x3d, 0x89, 0x12, 0x83, 0xd9, - 0xdb, 0x64, 0xaa, 0xaf, 0x09, 0x90, 0xb4, 0x8f, 0x1a, 0xa7, 0x5f, 0x33, 0x26, 0x57, 0xc3, 0x7d, - 0xa0, 0x40, 0x2c, 0xdf, 0x0d, 0xf2, 0x60, 0x33, 0xbd, 0xee, 0xc2, 0x32, 0x37, 0x66, 0x66, 0xf9, - 0x5f, 0xcc, 0x92, 0x48, 0x7c, 0x5f, 0x80, 0x0d, 0x1a, 0x8a, 0xc0, 0x47, 0x8e, 0xa0, 0xf0, 0xec, - 0x4c, 0xe1, 0xb6, 0xc7, 0xd6, 0x18, 0x47, 0xd1, 0xa5, 0x6c, 0x97, 0xc8, 0xa8, 0xd8, 0x74, 0x39, - 0xda, 0x74, 0x0c, 0xa0, 0x0f, 0x20, 0x96, 0x53, 0x94, 0xd2, 0xb1, 0x5c, 0xa9, 0x57, 0x03, 0x7d, - 0xda, 0x1a, 0xdb, 0x40, 0x72, 0x35, 0x7d, 0xc6, 0x40, 0x46, 0x5c, 0x1a, 0x4a, 0x5a, 0x56, 0xb7, - 0xba, 0x24, 0x50, 0x1f, 0x0a, 0xee, 0x46, 0x59, 0xbd, 0x8a, 0x5e, 0x9c, 0x78, 0x9b, 0xd3, 0x19, - 0x03, 0x93, 0xf6, 0x2f, 0x41, 0x1e, 0x5c, 0x4a, 0xaf, 0xf9, 0x3c, 0x70, 0x9f, 0x85, 0x1a, 0xcc, - 0xf3, 0x3b, 0x61, 0x7c, 0x30, 0x82, 0x26, 0x0e, 0xde, 0xce, 0x19, 0xff, 0xd2, 0xd1, 0x8f, 0x05, - 0x58, 0xe2, 0x1f, 0x75, 0x7d, 0xe7, 0x23, 0x73, 0xec, 0xed, 0x38, 0xb2, 0xf3, 0x94, 0xbe, 0x7d, - 0x06, 0x0d, 0x9e, 0xa3, 0x57, 0x83, 0x1c, 0x5d, 0x17, 0x57, 0xa8, 0xa3, 0x2d, 0xa2, 0x44, 0xbd, - 0x6d, 0x98, 0x54, 0x95, 0x84, 0xe7, 0x97, 0x02, 0x9c, 0xb7, 0x1d, 0x1e, 0x7c, 0xf0, 0x9a, 0xe8, - 0x95, 0xb3, 0x3c, 0xa4, 0xdb, 0x5e, 0xbf, 0x7a, 0x36, 0x25, 0xee, 0x78, 0x30, 0xcc, 0xc5, 0xf5, - 0x6c, 0x4b, 0xd3, 0x8f, 0x64, 0x8d, 0x14, 0xd2, 0x44, 0x59, 0x37, 0x5a, 0xa6, 0xdb, 0xfb, 0xaf, - 0x0a, 0xb0, 0x4a, 0xf7, 0xe3, 0xdb, 0x6c, 0x4a, 0xf7, 0x8b, 0xf4, 0x33, 0x54, 0x45, 0x43, 0x4f, - 0xda, 0xe2, 0x4e, 0x90, 0x5f, 0x6b, 0x68, 0x35, 0xeb, 0x7a, 0xd9, 0xce, 0x72, 0x53, 0xe4, 0x7b, - 0xe8, 0xff, 0x6c, 0x87, 0xf8, 0x6a, 0xff, 0xae, 0x0e, 0x8d, 0x2d, 0xd3, 0xdc, 0x0e, 0xb5, 0xf1, - 0xfd, 0x9f, 0x0b, 0x1f, 0xe7, 0xfe, 0x5f, 0x40, 0xaf, 0x43, 0x94, 0x7c, 0x8a, 0x6f, 0xe6, 0xaa, - 0x45, 0x31, 0x83, 0xb6, 0x4e, 0x2c, 0xab, 0x6b, 0xde, 0xcb, 0x66, 0x5b, 0xaa, 0x75, 0xd2, 0x3b, - 0xda, 0x6e, 0xea, 0xed, 0x2c, 0x99, 0xdb, 0x59, 0x41, 0xf7, 0xdd, 0x56, 0x96, 0x98, 0xdf, 0x09, - 0xbf, 0xbc, 0x7d, 0x3b, 0x23, 0x84, 0x76, 0x92, 0x72, 0xb7, 0xab, 0xf1, 0x4b, 0x3c, 0xfb, 0x8e, - 0xa9, 0x77, 0x86, 0x29, 0x2d, 0xa3, 0xdb, 0xbc, 0xe7, 0x93, 0xb9, 0xe7, 0x93, 0x79, 0xfb, 0xc6, - 0xa4, 0x19, 0xe9, 0xff, 0x0b, 0x22, 0xa2, 0x47, 0xb3, 0x34, 0x3c, 0xaf, 0xfc, 0x2d, 0x00, 0x00, - 0xff, 0xff, 0xfa, 0xa3, 0xef, 0x63, 0x57, 0x34, 0x00, 0x00, + 0x54, 0xa0, 0x28, 0x0a, 0xb4, 0x68, 0x1f, 0x8a, 0x16, 0x28, 0xda, 0x0f, 0xd0, 0x97, 0x3e, 0x14, + 0x05, 0xfa, 0x01, 0x8a, 0x7e, 0x85, 0xa2, 0x68, 0xfa, 0x52, 0xdc, 0x3f, 0x33, 0x1c, 0xce, 0x70, + 0x48, 0xca, 0x6e, 0xda, 0x20, 0xc8, 0x93, 0x78, 0xcf, 0xbf, 0x7b, 0xee, 0x39, 0xbf, 0x7b, 0xef, + 0x99, 0x7b, 0x04, 0x20, 0xf7, 0xac, 0x93, 0xed, 0xae, 0xa1, 0x5b, 0x3a, 0x4a, 0x35, 0x65, 0xdd, + 0xdc, 0x7e, 0x5f, 0xb5, 0x64, 0x05, 0x6b, 0xdb, 0x94, 0x21, 0x77, 0xd5, 0xed, 0xd3, 0xdb, 0xe9, + 0x8b, 0x2d, 0x5d, 0x6f, 0x69, 0x38, 0x2b, 0x77, 0xd5, 0xac, 0xdc, 0xe9, 0xe8, 0x96, 0x6c, 0xa9, + 0x7a, 0xc7, 0x64, 0x7a, 0xe9, 0x75, 0xce, 0xa5, 0xa3, 0xa3, 0xde, 0x71, 0x16, 0xb7, 0xbb, 0x56, + 0x9f, 0x33, 0x2f, 0x7a, 0x99, 0xa6, 0x65, 0xf4, 0x9a, 0x16, 0xe7, 0x5e, 0xf6, 0x72, 0x2d, 0xb5, + 0x8d, 0x4d, 0x4b, 0x6e, 0x77, 0xb9, 0xc0, 0xea, 0xa9, 0xac, 0xa9, 0x8a, 0x6c, 0xe1, 0xac, 0xfd, + 0x83, 0x33, 0x6e, 0xd2, 0x3f, 0xcd, 0x5b, 0x2d, 0xdc, 0xb9, 0x65, 0x3e, 0x91, 0x5b, 0x2d, 0x6c, + 0x64, 0xf5, 0x2e, 0x75, 0x6b, 0x84, 0x8b, 0x29, 0xb2, 0x1a, 0xc6, 0xb6, 0xa5, 0x38, 0xe7, 0x3c, + 0xfd, 0x93, 0x6d, 0x63, 0xd3, 0x94, 0x5b, 0xdc, 0xb8, 0x78, 0x04, 0xc9, 0x43, 0x13, 0x1b, 0x35, + 0x6c, 0x9a, 0xaa, 0xde, 0x79, 0xa4, 0xe2, 0x27, 0x26, 0x2a, 0xc3, 0x42, 0xcf, 0xc4, 0x46, 0xc3, + 0x64, 0x44, 0x33, 0x25, 0x6c, 0x86, 0xb7, 0xe2, 0x3b, 0x37, 0xb6, 0x83, 0xa2, 0xb6, 0xed, 0x31, + 0x21, 0xcd, 0xf7, 0x06, 0x04, 0x53, 0xfc, 0x4e, 0x08, 0x16, 0x3d, 0x12, 0x28, 0x01, 0x21, 0x55, + 0x49, 0x09, 0x9b, 0xc2, 0x56, 0x4c, 0x0a, 0xa9, 0x0a, 0x5a, 0x83, 0xa8, 0xdc, 0xc2, 0x1d, 0xab, + 0xa1, 0x2a, 0xa9, 0x10, 0xa5, 0xce, 0xd1, 0x71, 0x51, 0x41, 0x45, 0x96, 0xba, 0x86, 0x69, 0xc9, + 0x16, 0x4e, 0x85, 0x37, 0x85, 0xad, 0xc4, 0x4e, 0x66, 0x2a, 0x5f, 0x6a, 0x44, 0x43, 0x8a, 0x11, + 0x2e, 0xfd, 0x89, 0x56, 0x61, 0x8e, 0xae, 0x4c, 0x55, 0x52, 0x11, 0x3a, 0xc9, 0x2c, 0x19, 0x16, + 0x15, 0xb4, 0x0e, 0x31, 0xca, 0xe8, 0xc8, 0x6d, 0x9c, 0x9a, 0xa1, 0xac, 0x28, 0x21, 0x94, 0xe5, + 0x36, 0x46, 0x69, 0x88, 0x9a, 0xf8, 0xbd, 0x1e, 0xee, 0x34, 0x71, 0x6a, 0x76, 0x53, 0xd8, 0x8a, + 0x48, 0xce, 0x18, 0x6d, 0x00, 0x68, 0x7a, 0x4b, 0xed, 0x30, 0xcd, 0x39, 0xaa, 0x19, 0xa3, 0x14, + 0xaa, 0x7a, 0x05, 0xe6, 0x15, 0xd5, 0xec, 0x6a, 0x72, 0x9f, 0x09, 0x44, 0xa9, 0x40, 0x9c, 0xd3, + 0x88, 0x88, 0xf8, 0x61, 0x14, 0xa2, 0xc4, 0xe7, 0x91, 0x61, 0xb9, 0x0b, 0x33, 0x6c, 0xd9, 0x21, + 0xba, 0xec, 0xab, 0x13, 0x96, 0x4d, 0xd7, 0xcb, 0x34, 0xd0, 0x1b, 0xb0, 0xd0, 0x34, 0x30, 0xc5, + 0x46, 0x43, 0xb1, 0x23, 0x17, 0xdf, 0x49, 0x6f, 0x33, 0x20, 0x6e, 0xdb, 0x40, 0xdc, 0xae, 0xdb, + 0x40, 0x94, 0xe6, 0x6d, 0x85, 0x3c, 0x31, 0xf0, 0x3a, 0xc4, 0x9b, 0x27, 0x72, 0xa7, 0x85, 0x99, + 0x7a, 0x64, 0xa2, 0x3a, 0x30, 0x71, 0xaa, 0x7c, 0x17, 0x40, 0x93, 0x4d, 0xab, 0x41, 0x43, 0x41, + 0x23, 0x3a, 0x5e, 0x37, 0x46, 0xa4, 0x0f, 0x88, 0x30, 0x2a, 0x40, 0xb2, 0x2b, 0x9b, 0xe6, 0x13, + 0xdd, 0x50, 0x1a, 0xcc, 0xa2, 0x42, 0xc3, 0x3e, 0xde, 0xc0, 0xa2, 0xad, 0xb3, 0xcb, 0x54, 0x86, + 0x53, 0x3a, 0xe7, 0x49, 0xe9, 0x06, 0xc0, 0xb1, 0x6a, 0x98, 0x96, 0x3b, 0x2b, 0x31, 0x4a, 0xa1, + 0xec, 0x75, 0xa0, 0xfe, 0x30, 0x6e, 0x8c, 0xe9, 0x12, 0xc2, 0xc8, 0x9c, 0x82, 0x2f, 0xa7, 0x44, + 0xbf, 0xa3, 0x36, 0xdf, 0x65, 0xfc, 0x38, 0xd3, 0x27, 0x04, 0xca, 0xbc, 0x05, 0xa8, 0x6b, 0xe0, + 0x63, 0x6c, 0x18, 0x58, 0x69, 0x68, 0x72, 0xa7, 0xd5, 0x93, 0x5b, 0x38, 0x35, 0x4f, 0xa5, 0x96, + 0x1c, 0xce, 0x01, 0x67, 0xa0, 0x3b, 0x30, 0xdb, 0xc2, 0x1d, 0x05, 0x1b, 0xa9, 0x05, 0x8a, 0x81, + 0xcd, 0x60, 0x0c, 0xec, 0x51, 0x39, 0x89, 0xcb, 0xa3, 0x65, 0x98, 0xc1, 0x6d, 0x59, 0xd5, 0x52, + 0x09, 0x6a, 0x9b, 0x0d, 0x50, 0x06, 0x96, 0x54, 0xb3, 0x41, 0x7f, 0x37, 0x4e, 0xb1, 0xa1, 0x1e, + 0xab, 0x58, 0x49, 0x2d, 0x6e, 0x0a, 0x5b, 0x51, 0x69, 0x51, 0x35, 0x0b, 0x84, 0xfe, 0x88, 0x93, + 0x89, 0x85, 0xee, 0x89, 0xde, 0xc1, 0xa9, 0x24, 0xb3, 0x40, 0x07, 0xdc, 0x02, 0xfd, 0x3d, 0xb0, + 0xb0, 0x64, 0x5b, 0xa8, 0x12, 0xba, 0x63, 0x21, 0x05, 0x73, 0x4d, 0xbd, 0xd7, 0xb1, 0x8c, 0x7e, + 0x0a, 0xb1, 0x6d, 0xcd, 0x87, 0x64, 0x57, 0x69, 0x7a, 0x53, 0xd6, 0x54, 0xab, 0x9f, 0x3a, 0xcf, + 0x43, 0xcc, 0xc7, 0xe8, 0x32, 0xc4, 0xbb, 0xba, 0x69, 0xc9, 0x5a, 0xa3, 0xa9, 0x2b, 0x38, 0xb5, + 0x4c, 0xd9, 0xc0, 0x48, 0xbb, 0xba, 0x82, 0xd1, 0x0a, 0xcc, 0x1a, 0xb8, 0xa5, 0xea, 0x9d, 0xd4, + 0x05, 0xb6, 0x8f, 0xd9, 0x08, 0x5d, 0x83, 0x84, 0x69, 0x19, 0x18, 0x5b, 0x0d, 0x59, 0x51, 0x0c, + 0x6c, 0x9a, 0xa9, 0x15, 0xca, 0x5f, 0x60, 0xd4, 0x1c, 0x23, 0x0e, 0xed, 0xe8, 0x55, 0xcf, 0x8e, + 0xbe, 0x06, 0x09, 0x03, 0x9b, 0x7a, 0xcf, 0x68, 0xe2, 0x86, 0xfe, 0xa4, 0x83, 0x8d, 0x54, 0x8a, + 0x99, 0xb0, 0xa9, 0x15, 0x42, 0x24, 0x2e, 0x0e, 0x36, 0xbe, 0x99, 0x5a, 0xdb, 0x0c, 0x13, 0x17, + 0x9d, 0x9d, 0x6f, 0xa2, 0x97, 0x61, 0xd9, 0x95, 0xe6, 0xc1, 0x19, 0x91, 0xa6, 0xd6, 0x06, 0x10, + 0x38, 0xb0, 0x55, 0xc4, 0x5f, 0x84, 0x21, 0x4e, 0xb6, 0x71, 0xd5, 0xd0, 0x8f, 0x55, 0x0d, 0xfb, + 0x0e, 0x83, 0x21, 0x44, 0x87, 0xc6, 0x22, 0x3a, 0x3c, 0x16, 0xd1, 0x11, 0x0f, 0xa2, 0x87, 0xe0, + 0x3a, 0xe3, 0x81, 0xab, 0x17, 0xee, 0xb3, 0x7e, 0xb8, 0x8f, 0x46, 0xf4, 0xdc, 0x64, 0x44, 0x47, + 0xcf, 0x88, 0x68, 0x77, 0xde, 0x62, 0x9e, 0xbc, 0xf9, 0xce, 0x3b, 0x78, 0xbe, 0xf3, 0x2e, 0x7e, + 0x96, 0xf3, 0x4e, 0xfc, 0x7a, 0x84, 0xdd, 0x71, 0x3c, 0x77, 0x23, 0x0f, 0xf3, 0x2f, 0xf2, 0xf7, + 0x99, 0xcd, 0x9f, 0x77, 0x3b, 0xcf, 0x4f, 0xbd, 0x9d, 0x17, 0x02, 0xb7, 0xf3, 0x57, 0x42, 0x90, + 0x3a, 0xec, 0x12, 0x5f, 0x5c, 0xc0, 0x90, 0xc8, 0x72, 0x4d, 0x0b, 0xdd, 0x18, 0x4a, 0x37, 0xc5, + 0xc8, 0x7d, 0xf8, 0xe4, 0xfe, 0x9c, 0x31, 0x93, 0x14, 0x52, 0xbf, 0x16, 0xdc, 0xa9, 0xbf, 0xee, + 0x4e, 0x7d, 0xc8, 0x27, 0x39, 0x80, 0xc1, 0x75, 0x37, 0x0c, 0xc2, 0x7e, 0x41, 0x07, 0x12, 0x77, + 0x47, 0xe6, 0x3b, 0xe2, 0xd3, 0x18, 0x9b, 0xfb, 0x99, 0xb3, 0xe5, 0x5e, 0xfc, 0x93, 0x00, 0x31, + 0x12, 0x08, 0x7a, 0xc3, 0xf8, 0xf6, 0x86, 0x73, 0x57, 0x85, 0xdc, 0x77, 0xd5, 0x16, 0x78, 0xaf, + 0x24, 0xba, 0xae, 0x11, 0x37, 0x95, 0x1b, 0x59, 0x91, 0x49, 0xc8, 0x9a, 0x79, 0x3e, 0x64, 0xcd, + 0x9e, 0xe9, 0x64, 0xf8, 0x8b, 0x00, 0x0b, 0xce, 0xba, 0x47, 0x9e, 0x0b, 0x9f, 0xdf, 0xb5, 0xdf, + 0x83, 0x14, 0xf5, 0xb2, 0x5f, 0xea, 0x3b, 0x21, 0xb0, 0x77, 0xc0, 0x25, 0x88, 0xd0, 0xcb, 0xdd, + 0x8f, 0x7d, 0x4a, 0x17, 0xf7, 0x61, 0x85, 0xe9, 0xfa, 0x34, 0xbd, 0xf1, 0xb3, 0x2d, 0x85, 0x02, + 0x2c, 0xdd, 0x83, 0x95, 0xc1, 0x3e, 0x1c, 0xb2, 0xb4, 0x69, 0x47, 0xde, 0xef, 0x04, 0x63, 0x88, + 0x7f, 0xe6, 0xa8, 0xa5, 0x55, 0xcd, 0xa8, 0xcc, 0xb1, 0xfa, 0x28, 0x34, 0xb1, 0x3e, 0x0a, 0x8f, + 0xae, 0x8f, 0x3e, 0xbb, 0xb9, 0xfb, 0x2b, 0xc7, 0x2d, 0xf3, 0x37, 0x00, 0xb7, 0x9f, 0xdb, 0xd5, + 0xdf, 0x75, 0x63, 0x86, 0x3a, 0x6d, 0x63, 0xe6, 0xb2, 0xbd, 0x6a, 0x86, 0x99, 0xd8, 0x27, 0xf7, + 0x67, 0x8d, 0x48, 0x52, 0x48, 0x2d, 0xf3, 0x00, 0x88, 0x77, 0xdc, 0xc0, 0x1d, 0x52, 0x9d, 0x04, + 0xf9, 0xdf, 0x84, 0x58, 0x01, 0x68, 0x97, 0xa9, 0xde, 0x80, 0xbb, 0x8a, 0xe9, 0x50, 0x70, 0x31, + 0x1d, 0x1e, 0x5f, 0x4c, 0x47, 0xc6, 0x14, 0xd3, 0x33, 0x13, 0x8a, 0xe9, 0xd9, 0x49, 0xc5, 0xf4, + 0xdc, 0xa4, 0x24, 0x46, 0x9f, 0x2f, 0x89, 0xb1, 0x33, 0x25, 0xf1, 0xb7, 0xfc, 0xe1, 0x81, 0x7b, + 0x3a, 0x12, 0xc4, 0x5f, 0xc4, 0xf4, 0x6c, 0x31, 0xfd, 0x83, 0xe0, 0xae, 0x6a, 0xb8, 0xbf, 0x36, + 0xc0, 0xc5, 0x41, 0x30, 0x19, 0xc6, 0xa3, 0x9f, 0xdc, 0x9f, 0x31, 0xc2, 0x04, 0xe1, 0x4e, 0x58, + 0x5f, 0x70, 0x85, 0x35, 0xe4, 0x11, 0x1a, 0x04, 0xf8, 0xc6, 0x70, 0x80, 0xc3, 0x1e, 0x41, 0x77, + 0xa8, 0x37, 0x9d, 0x50, 0x47, 0x3c, 0x52, 0x76, 0xd0, 0xb3, 0xbe, 0xa0, 0xcf, 0x78, 0x24, 0x87, + 0xc3, 0x2f, 0x5e, 0x04, 0xa8, 0xf2, 0xe7, 0x84, 0x62, 0xde, 0x0b, 0x19, 0xf1, 0x0e, 0x2c, 0xda, + 0x5c, 0x7b, 0xe1, 0xd7, 0x20, 0x6a, 0xbf, 0x3f, 0x78, 0xcf, 0x85, 0x7d, 0xc9, 0x61, 0x89, 0x1a, + 0x24, 0xaa, 0x43, 0xcf, 0x14, 0xe8, 0x26, 0xcc, 0xeb, 0x9a, 0xd2, 0x08, 0x56, 0x8e, 0xeb, 0x9a, + 0x62, 0xeb, 0x10, 0xe9, 0x0e, 0x7e, 0x32, 0x90, 0x0e, 0xf9, 0xa4, 0x3b, 0xf8, 0x89, 0x2d, 0x2d, + 0x8a, 0x30, 0xcf, 0x6f, 0xdf, 0x63, 0xb9, 0x62, 0x75, 0x11, 0x72, 0x1f, 0x3f, 0xfc, 0xc8, 0x29, + 0xc2, 0x7c, 0xa9, 0xa7, 0x59, 0xea, 0x03, 0xb9, 0x69, 0xe9, 0x86, 0x89, 0xee, 0x42, 0xa4, 0x7d, + 0x2c, 0xdb, 0x4f, 0x7e, 0xd7, 0x82, 0xab, 0x3b, 0x97, 0x96, 0x44, 0x55, 0xc4, 0x0f, 0x20, 0xee, + 0x22, 0xa2, 0xd7, 0x20, 0x62, 0xf5, 0xbb, 0x6c, 0xb6, 0xc4, 0xce, 0x95, 0x31, 0x96, 0x8e, 0xe5, + 0x7a, 0xbf, 0x8b, 0x25, 0x2a, 0x8e, 0xee, 0x0c, 0xbf, 0x78, 0x89, 0x63, 0xf4, 0x1e, 0xe4, 0xdc, + 0x0f, 0x5e, 0xe2, 0x47, 0x02, 0x24, 0xd8, 0x4a, 0x25, 0x6c, 0x76, 0xf5, 0x8e, 0x39, 0xf4, 0xde, + 0x27, 0x0c, 0xbd, 0xf7, 0x25, 0x21, 0xdc, 0x33, 0xec, 0x82, 0x8b, 0xfc, 0x24, 0x1b, 0xd6, 0xc4, + 0x4d, 0x03, 0x5b, 0x7c, 0xaf, 0xf3, 0xd1, 0xc0, 0x9f, 0xc8, 0x59, 0xfd, 0x91, 0x20, 0x51, 0x29, + 0xe6, 0x77, 0x77, 0x35, 0x15, 0x77, 0xac, 0x5c, 0xcf, 0x3a, 0x21, 0xdf, 0x69, 0x4d, 0x3a, 0x1a, + 0x38, 0x14, 0x65, 0x84, 0xa2, 0x82, 0xae, 0xc2, 0x02, 0x67, 0x72, 0x3f, 0x98, 0x73, 0xf3, 0x8c, + 0x58, 0xa3, 0x34, 0xf1, 0xbf, 0x43, 0xb0, 0x42, 0xf6, 0xdd, 0x9e, 0x21, 0x13, 0x9a, 0x6c, 0x34, + 0x4f, 0x6c, 0x08, 0xae, 0xc0, 0xac, 0x7e, 0x7c, 0x6c, 0x62, 0x8b, 0x5a, 0x8e, 0x48, 0x7c, 0x44, + 0x6e, 0x69, 0x4d, 0x6d, 0xab, 0xcc, 0x5e, 0x44, 0x62, 0x03, 0xf4, 0x1f, 0x90, 0x30, 0x75, 0xc3, + 0x52, 0x3b, 0xad, 0x46, 0x53, 0xd7, 0x7a, 0xed, 0x0e, 0x7f, 0x58, 0xbd, 0x39, 0xfe, 0x85, 0xd1, + 0x35, 0xef, 0x43, 0xdc, 0xa7, 0x1b, 0xe8, 0xa9, 0x10, 0xda, 0x3c, 0x27, 0x2d, 0x70, 0x6b, 0xbb, + 0xd4, 0x18, 0x89, 0xaf, 0x6c, 0x36, 0x69, 0xcc, 0xa2, 0x12, 0xf9, 0x89, 0xf6, 0x61, 0xee, 0xbd, + 0x1e, 0x36, 0x54, 0x4c, 0x36, 0x1f, 0xc1, 0xd6, 0xf6, 0xd4, 0x33, 0xbd, 0xd9, 0xc3, 0x46, 0x5f, + 0xb2, 0xd5, 0xc5, 0x9f, 0x0b, 0xb0, 0x3c, 0x4a, 0x02, 0xed, 0x43, 0xf8, 0x5d, 0xdc, 0xe7, 0x80, + 0x7b, 0xd6, 0x85, 0x10, 0x13, 0xe8, 0x5f, 0x61, 0xb6, 0x8d, 0xad, 0x13, 0x5d, 0xe1, 0x28, 0x7c, + 0x31, 0xd8, 0x18, 0xb3, 0x51, 0xa2, 0xd2, 0x12, 0xd7, 0x22, 0x31, 0x3f, 0x95, 0xb5, 0x9e, 0xfd, + 0x1d, 0xcf, 0x06, 0xe2, 0x0f, 0x05, 0x58, 0xf5, 0x25, 0x8f, 0x23, 0xf5, 0x6c, 0xd9, 0xbb, 0x02, + 0xf3, 0x96, 0x4e, 0x0e, 0x47, 0x03, 0x9b, 0x3d, 0x8d, 0x41, 0x36, 0x22, 0xc5, 0x29, 0x4d, 0xa2, + 0x24, 0xf4, 0x06, 0x39, 0x15, 0x29, 0x33, 0x42, 0xc3, 0x7d, 0x7d, 0x8a, 0x78, 0xd0, 0xb7, 0x7b, + 0xae, 0x26, 0x7e, 0x99, 0xd7, 0x7f, 0x0e, 0x87, 0xf8, 0x52, 0x31, 0x5a, 0x45, 0x1b, 0xba, 0x6c, + 0x80, 0x2e, 0x42, 0xac, 0x6a, 0xe8, 0xef, 0xe0, 0xa6, 0x55, 0xb4, 0x9f, 0xee, 0x07, 0x04, 0xb2, + 0xae, 0x43, 0xba, 0xe5, 0xec, 0x6d, 0xc5, 0x46, 0xc4, 0x96, 0xa4, 0x6b, 0xd8, 0xa4, 0xde, 0xc5, + 0x24, 0x36, 0x20, 0x97, 0x71, 0xc5, 0x68, 0x95, 0x07, 0xcf, 0x18, 0xf6, 0x50, 0xfc, 0x81, 0x00, + 0x6b, 0xa5, 0x3e, 0xb7, 0x5b, 0x31, 0x5a, 0xcf, 0x83, 0x7d, 0x3f, 0x38, 0x1f, 0x7a, 0xc1, 0x79, + 0x7b, 0xcc, 0x36, 0xf7, 0x79, 0xe1, 0xc1, 0xe7, 0xaf, 0x04, 0x58, 0x0d, 0x10, 0x42, 0x0f, 0xdd, + 0x10, 0xcd, 0x9e, 0x65, 0x92, 0x7f, 0x18, 0x4a, 0xbf, 0x27, 0x40, 0x7a, 0x54, 0xa4, 0x3f, 0x2d, + 0xa0, 0xbe, 0xe6, 0x01, 0xea, 0x46, 0xf0, 0x2a, 0x2a, 0x46, 0xcb, 0x81, 0xe7, 0x0d, 0x08, 0x57, + 0x8c, 0x96, 0xaf, 0x9c, 0x43, 0x10, 0x71, 0x3d, 0xaf, 0xd1, 0xdf, 0xe2, 0x6d, 0x58, 0x28, 0xf5, + 0xab, 0xd8, 0x68, 0xab, 0xac, 0x21, 0x85, 0x36, 0x21, 0xde, 0x1d, 0x0c, 0xe9, 0x5d, 0x17, 0x93, + 0xdc, 0x24, 0x51, 0x86, 0x04, 0xbb, 0xa0, 0x9d, 0xd2, 0xc6, 0x59, 0x9f, 0xe0, 0x5e, 0xdf, 0x75, + 0x58, 0xb4, 0xeb, 0xb2, 0x06, 0x0f, 0x0b, 0x5b, 0x7f, 0xc2, 0x26, 0x57, 0x58, 0x78, 0x38, 0xe6, + 0xc2, 0x0e, 0xe6, 0x44, 0x13, 0xe6, 0xf8, 0x14, 0xe8, 0x1e, 0xcc, 0xb1, 0x0a, 0xcb, 0xbe, 0x77, + 0xc7, 0xbc, 0xaa, 0x30, 0x1d, 0xc9, 0x56, 0x70, 0xe5, 0x23, 0x34, 0x3a, 0x1f, 0x61, 0x97, 0xbf, + 0xe2, 0x97, 0x42, 0x30, 0xcb, 0x2b, 0x0f, 0x4f, 0x15, 0x28, 0x9c, 0xe9, 0xb9, 0x2c, 0x0f, 0x80, + 0x4f, 0xc9, 0x5d, 0x45, 0xaf, 0xf8, 0x10, 0xd5, 0xf5, 0x16, 0x0b, 0xcc, 0xdf, 0x03, 0x5a, 0xd1, + 0xbd, 0x8f, 0x95, 0x12, 0xeb, 0x3b, 0x4a, 0x31, 0xaa, 0x48, 0x6e, 0xfc, 0xa1, 0x2a, 0x37, 0xec, + 0xa9, 0x72, 0xd7, 0x21, 0x86, 0x15, 0xd5, 0xd2, 0x5d, 0xcd, 0xba, 0x28, 0x23, 0xb0, 0x53, 0x85, + 0xfd, 0xb6, 0xab, 0x6b, 0x36, 0x42, 0x2f, 0x41, 0x44, 0x91, 0x2d, 0x99, 0x7f, 0xeb, 0xad, 0xfa, + 0x16, 0x53, 0xa3, 0x1d, 0x59, 0x89, 0x0a, 0x89, 0x3f, 0x0a, 0x43, 0xca, 0xa9, 0xc6, 0xf4, 0x76, + 0x57, 0xc3, 0xff, 0xa9, 0x5a, 0xfd, 0xaa, 0xae, 0xa9, 0xcd, 0xbe, 0x0f, 0x57, 0x9b, 0x10, 0x57, + 0xb0, 0xd9, 0x34, 0x54, 0xda, 0x52, 0xe5, 0xf0, 0x72, 0x93, 0xfe, 0xc9, 0xfd, 0xb6, 0x0d, 0x80, + 0xb6, 0xda, 0x69, 0x68, 0xb8, 0xd3, 0xb2, 0x4e, 0x68, 0x54, 0x22, 0x52, 0xac, 0xad, 0x76, 0x0e, + 0x28, 0x81, 0x14, 0x17, 0x27, 0xb2, 0xd9, 0xd0, 0xf4, 0x27, 0xd8, 0x68, 0xca, 0x26, 0xfb, 0x1a, + 0x8e, 0x4a, 0xf3, 0x27, 0xb2, 0x79, 0x60, 0xd3, 0x6c, 0xa1, 0x5e, 0xb7, 0xcb, 0x85, 0xe6, 0x1c, + 0xa1, 0x43, 0x9b, 0x46, 0x26, 0x22, 0x42, 0x9d, 0x5e, 0xfb, 0x88, 0x3f, 0x00, 0x47, 0xa5, 0xd8, + 0x89, 0x6c, 0x96, 0x29, 0xc1, 0x66, 0x9b, 0xfd, 0xf6, 0x91, 0xae, 0xd1, 0x4f, 0x0b, 0xc6, 0xae, + 0x51, 0xc2, 0x50, 0xc6, 0xc1, 0xdf, 0x4a, 0x55, 0xcd, 0x86, 0x82, 0x8f, 0x65, 0x72, 0x18, 0xc4, + 0x99, 0xaa, 0x6a, 0xe6, 0x19, 0x21, 0x63, 0x0c, 0x75, 0xaa, 0x59, 0x3f, 0x77, 0x13, 0x2e, 0x1e, + 0xd6, 0x0a, 0x52, 0xad, 0x50, 0xab, 0x15, 0x2b, 0xe5, 0x5a, 0x3d, 0x57, 0x2f, 0x34, 0x0e, 0xcb, + 0xb5, 0x6a, 0x61, 0xb7, 0xf8, 0xa0, 0x58, 0xc8, 0x27, 0xcf, 0xa1, 0x75, 0x58, 0xf5, 0x49, 0xe4, + 0x76, 0xeb, 0xc5, 0x47, 0x85, 0xa4, 0x80, 0x2e, 0xc3, 0xba, 0x8f, 0x59, 0x2f, 0x48, 0xa5, 0x62, + 0x39, 0x57, 0x2f, 0xe4, 0x93, 0xa1, 0xcc, 0x7b, 0x90, 0x24, 0x25, 0x9c, 0x7d, 0xf8, 0x51, 0xd0, + 0xae, 0xc1, 0x05, 0x4a, 0x2b, 0xd4, 0xaa, 0x95, 0x72, 0xad, 0x50, 0x7f, 0x5c, 0x2d, 0x34, 0x76, + 0x2b, 0xf9, 0x42, 0xf2, 0x1c, 0xda, 0x80, 0x35, 0x1f, 0xab, 0x98, 0x6f, 0xd4, 0x2b, 0x0f, 0x0b, + 0xe5, 0xa4, 0x80, 0xae, 0xc2, 0xe5, 0x40, 0x36, 0x17, 0x0a, 0x65, 0x7e, 0xc2, 0x1f, 0x9c, 0xd8, + 0x02, 0xd7, 0xe0, 0x02, 0xf5, 0x70, 0xc4, 0xca, 0x96, 0x21, 0x39, 0x60, 0x39, 0x4b, 0x5a, 0x01, + 0x34, 0xa0, 0x16, 0xcb, 0x9c, 0x1e, 0x42, 0x17, 0x60, 0x69, 0x40, 0xcf, 0x17, 0x0e, 0x0a, 0x64, + 0x81, 0xe1, 0x61, 0x23, 0x07, 0x95, 0xdd, 0x87, 0x85, 0x7c, 0x32, 0x32, 0x2c, 0x5c, 0x3b, 0xac, + 0x55, 0x0b, 0xe5, 0x7c, 0x72, 0x66, 0x98, 0x5c, 0x2c, 0x17, 0xeb, 0xc5, 0xdc, 0x41, 0x72, 0x36, + 0xf3, 0xef, 0x30, 0xcb, 0x9e, 0x7a, 0xc9, 0xe4, 0x7b, 0x85, 0x72, 0xbe, 0x20, 0x79, 0x5c, 0x5d, + 0x82, 0x05, 0x4e, 0x7f, 0x50, 0x28, 0xe5, 0x0e, 0x88, 0x9f, 0x8b, 0x10, 0xe7, 0x24, 0x4a, 0x08, + 0x21, 0x04, 0x09, 0x4e, 0xc8, 0x17, 0x1f, 0x91, 0x9c, 0x24, 0xc3, 0x99, 0x3c, 0xcc, 0xf1, 0x8f, + 0x03, 0xb4, 0x0a, 0xe7, 0x4b, 0x0f, 0x72, 0x34, 0x64, 0xc3, 0xb6, 0x17, 0x21, 0x6e, 0x33, 0x6a, + 0xa5, 0x1a, 0xb3, 0x6c, 0x13, 0x2a, 0xf5, 0x6a, 0x32, 0x94, 0x39, 0x86, 0xa8, 0x5d, 0x9a, 0xa3, + 0x14, 0x2c, 0x93, 0xdf, 0x23, 0xc2, 0xb9, 0x02, 0xc8, 0xe1, 0x94, 0x2b, 0xf5, 0x86, 0x54, 0xc8, + 0xe5, 0x1f, 0x27, 0x05, 0xe2, 0x97, 0x43, 0x67, 0xb4, 0x10, 0x89, 0x9a, 0x8b, 0x56, 0xaa, 0x3c, + 0x22, 0xb1, 0xcc, 0x9c, 0x02, 0xf2, 0x57, 0x96, 0xe8, 0x12, 0xa4, 0xfd, 0xd4, 0xc6, 0x61, 0xf9, + 0x61, 0xb9, 0xf2, 0x56, 0x99, 0x61, 0x66, 0x04, 0xbf, 0x22, 0xed, 0x35, 0x8a, 0xf9, 0xa4, 0x80, + 0xae, 0xc0, 0xc6, 0x08, 0x76, 0x55, 0xaa, 0xfc, 0x5b, 0x61, 0xb7, 0x4e, 0x44, 0x42, 0x99, 0x23, + 0xb8, 0x30, 0xb2, 0x5c, 0x40, 0xd7, 0xe0, 0x4a, 0xe9, 0x31, 0x17, 0xad, 0x48, 0x7b, 0xb5, 0x42, + 0x4e, 0xda, 0xdd, 0x7f, 0x58, 0x78, 0xec, 0x59, 0xb9, 0x08, 0x97, 0x46, 0x8b, 0x11, 0x27, 0xca, + 0xb9, 0x52, 0x21, 0x29, 0x64, 0x7e, 0x2f, 0xc0, 0xbc, 0xbb, 0x86, 0x20, 0xf9, 0x60, 0x82, 0xa5, + 0x42, 0x7d, 0xbf, 0x92, 0x6f, 0x14, 0xde, 0x3c, 0xcc, 0x1d, 0xd4, 0x92, 0xe7, 0xd0, 0x45, 0x48, + 0x0d, 0x31, 0x6a, 0xf5, 0x9c, 0x54, 0xaf, 0x35, 0xde, 0x2a, 0xd6, 0xf7, 0x93, 0x02, 0xc1, 0xf3, + 0x10, 0x77, 0xb7, 0x52, 0xae, 0xe7, 0x8a, 0xe5, 0x5a, 0x32, 0x44, 0x76, 0xc7, 0x08, 0x8b, 0x8d, + 0xe2, 0x5e, 0xb9, 0x22, 0x15, 0x1a, 0xbb, 0x39, 0x82, 0x08, 0xb4, 0x05, 0x2f, 0x04, 0x59, 0x1f, + 0x92, 0x8c, 0x90, 0xc5, 0x8f, 0x9c, 0x69, 0x48, 0x6c, 0x66, 0xe7, 0xe9, 0x65, 0x88, 0x93, 0x6f, + 0xb3, 0x1a, 0x36, 0x4e, 0xd5, 0x26, 0x26, 0x95, 0xe0, 0x3e, 0x96, 0x35, 0xeb, 0xe4, 0x7d, 0xb4, + 0xe2, 0x3b, 0x7a, 0x0b, 0xed, 0xae, 0xd5, 0x4f, 0x07, 0xd0, 0xc5, 0xe4, 0xd3, 0xdf, 0xfd, 0xf1, + 0x1b, 0x21, 0x40, 0xd1, 0xec, 0x09, 0xb7, 0xb0, 0x07, 0x33, 0x12, 0x96, 0x95, 0xfe, 0x99, 0x4d, + 0x25, 0xa8, 0xa9, 0x28, 0x9a, 0xcd, 0x1a, 0x54, 0xbf, 0x0c, 0xd1, 0x47, 0xfc, 0x9f, 0x82, 0x02, + 0x6d, 0x05, 0xdd, 0x76, 0xe2, 0x12, 0x35, 0x16, 0x47, 0x31, 0xe7, 0x1f, 0x8b, 0xd0, 0xff, 0x0a, + 0xb0, 0xb4, 0x87, 0x2d, 0xf6, 0x2a, 0x6f, 0xff, 0x9f, 0x4e, 0xa0, 0xe5, 0xcc, 0xd4, 0xff, 0xf8, + 0x63, 0x8a, 0x2f, 0x3d, 0xfd, 0x59, 0x6a, 0x11, 0x16, 0x88, 0x0c, 0xee, 0x58, 0x6a, 0x53, 0xb6, + 0xb0, 0x42, 0xe7, 0x47, 0x28, 0x99, 0x6d, 0xe3, 0x2c, 0xf9, 0xfe, 0xb6, 0xff, 0xaf, 0x08, 0xb5, + 0x21, 0xe6, 0x78, 0x11, 0x38, 0xbb, 0x38, 0x7e, 0x76, 0x32, 0xad, 0xf8, 0x42, 0xd0, 0xac, 0x64, + 0xd5, 0x74, 0xca, 0x6c, 0x1b, 0xa3, 0xff, 0x11, 0x20, 0xe9, 0xcc, 0x67, 0x37, 0xd9, 0x83, 0xa6, + 0x9d, 0xf0, 0xdf, 0x4e, 0xae, 0x3e, 0xaf, 0x78, 0x33, 0x68, 0xf6, 0xf3, 0x68, 0xc9, 0x99, 0x3d, + 0xdb, 0xe5, 0x13, 0x7e, 0x57, 0x80, 0xf3, 0xec, 0x01, 0x6d, 0xd8, 0x91, 0x9d, 0x31, 0x13, 0x06, + 0x74, 0x11, 0xd3, 0xd7, 0xa6, 0x72, 0x52, 0xcc, 0x06, 0x39, 0xb8, 0x92, 0xf6, 0x3b, 0x78, 0x4f, + 0xc8, 0xa0, 0xff, 0x82, 0x84, 0x13, 0x28, 0xd6, 0xaf, 0x0b, 0x0a, 0xd3, 0x84, 0xcf, 0x4a, 0xa7, + 0xe9, 0x25, 0x66, 0x82, 0x7c, 0x58, 0x42, 0x8b, 0x03, 0x1f, 0x58, 0xeb, 0xeb, 0xdb, 0x02, 0x2c, + 0xb1, 0x2a, 0xd5, 0xed, 0xc2, 0xcb, 0xd3, 0x04, 0xc8, 0xdd, 0xde, 0x49, 0x5f, 0x9d, 0xc2, 0x39, + 0xf1, 0x56, 0x90, 0x63, 0xcb, 0x69, 0xaf, 0x63, 0x24, 0x34, 0xdf, 0x12, 0x60, 0xc9, 0xd7, 0xd3, + 0x1a, 0x97, 0xbc, 0xa0, 0x06, 0x58, 0xe0, 0xe6, 0x7f, 0x2d, 0xc8, 0xa1, 0x8b, 0xe2, 0xaa, 0xc7, + 0xa1, 0x2c, 0xeb, 0xb0, 0xf4, 0x89, 0x63, 0x1f, 0x0b, 0xb0, 0x21, 0x61, 0x13, 0x77, 0x94, 0x52, + 0xdf, 0xd5, 0x1f, 0x6c, 0xd2, 0x02, 0xb3, 0x34, 0x2e, 0x87, 0x41, 0x8e, 0xe4, 0x82, 0x1c, 0xd9, + 0x12, 0xaf, 0xfa, 0x1c, 0x31, 0xe8, 0xd4, 0xa7, 0xae, 0x39, 0xbd, 0x40, 0x62, 0x2d, 0xb4, 0x67, + 0x04, 0x92, 0xd3, 0x85, 0x9a, 0x12, 0x48, 0xac, 0x17, 0xe5, 0x05, 0x12, 0x73, 0x61, 0x2a, 0x20, + 0xb9, 0x1b, 0x37, 0x93, 0x80, 0x44, 0x65, 0xa7, 0x04, 0x12, 0x75, 0x8c, 0x84, 0x46, 0x87, 0x25, + 0x09, 0xb7, 0xf5, 0x53, 0x3c, 0x4d, 0x74, 0x82, 0x52, 0x14, 0x1c, 0x8c, 0x8c, 0x2f, 0x18, 0xdf, + 0xf4, 0x20, 0x77, 0x62, 0x30, 0x46, 0x77, 0xb1, 0x9e, 0x13, 0xb7, 0xd4, 0x97, 0x20, 0xdc, 0xba, + 0xba, 0x83, 0x0c, 0x43, 0xac, 0x97, 0xf2, 0xa9, 0xe0, 0x96, 0x3b, 0x32, 0x1a, 0xb7, 0x43, 0x57, + 0x85, 0xdd, 0x94, 0x79, 0xc6, 0xab, 0xc2, 0xd5, 0x7d, 0x9a, 0xf2, 0xaa, 0xe0, 0x5d, 0x0a, 0xf4, + 0x91, 0xdb, 0x0b, 0xfb, 0xb1, 0x60, 0x6b, 0xd2, 0xdb, 0x80, 0xfd, 0x64, 0x91, 0xbe, 0x32, 0x51, + 0x72, 0x4a, 0x7f, 0xec, 0xb7, 0x06, 0xef, 0xd5, 0x65, 0x07, 0x66, 0xaa, 0xab, 0x6b, 0xb8, 0x55, + 0x34, 0xe9, 0xea, 0xb2, 0x3b, 0x31, 0xd3, 0x5d, 0x5d, 0x3c, 0x60, 0x24, 0x73, 0xa7, 0xbc, 0xa6, + 0x28, 0x1d, 0xcb, 0xc1, 0x19, 0x7b, 0x71, 0xaa, 0xbe, 0x86, 0x29, 0xde, 0x08, 0x9a, 0x3d, 0x89, + 0x12, 0x83, 0xd9, 0xdb, 0x64, 0xaa, 0xaf, 0x09, 0x90, 0xb4, 0x8f, 0x1a, 0xa7, 0x5f, 0x33, 0x26, + 0x57, 0xc3, 0x7d, 0xa0, 0x40, 0x2c, 0xdf, 0x0d, 0xf2, 0x60, 0x33, 0xbd, 0xee, 0xc2, 0x32, 0x37, + 0x66, 0x66, 0xf9, 0x7f, 0xcc, 0x92, 0x48, 0x7c, 0x5f, 0x80, 0x0d, 0x1a, 0x8a, 0xc0, 0x47, 0x8e, + 0xa0, 0xf0, 0xec, 0x4c, 0xe1, 0xb6, 0xc7, 0xd6, 0x18, 0x47, 0xd1, 0xa5, 0x6c, 0x97, 0xc8, 0xa8, + 0xd8, 0x74, 0x39, 0xda, 0x74, 0x0c, 0xa0, 0x0f, 0x20, 0x96, 0x53, 0x94, 0xd2, 0xb1, 0x5c, 0xa9, + 0x57, 0x03, 0x7d, 0xda, 0x1a, 0xdb, 0x40, 0x72, 0x35, 0x7d, 0xc6, 0x40, 0x46, 0x5c, 0x1a, 0x4a, + 0x5a, 0x56, 0xb7, 0xba, 0x24, 0x50, 0x1f, 0x0a, 0xee, 0x46, 0x59, 0xbd, 0x8a, 0x5e, 0x9c, 0x78, + 0x9b, 0xd3, 0x19, 0x03, 0x93, 0xf6, 0x2f, 0x41, 0x1e, 0x5c, 0x4a, 0xaf, 0xf9, 0x3c, 0x70, 0x9f, + 0x85, 0x1a, 0xcc, 0xf3, 0x3b, 0x61, 0x7c, 0x30, 0x82, 0x26, 0x0e, 0xde, 0xce, 0x19, 0xff, 0xd2, + 0xd1, 0x8f, 0x05, 0x58, 0xe2, 0x1f, 0x75, 0x7d, 0xe7, 0x23, 0x73, 0xec, 0xed, 0x38, 0xb2, 0xf3, + 0x94, 0xbe, 0x7d, 0x06, 0x0d, 0x9e, 0xa3, 0x57, 0x83, 0x1c, 0x5d, 0x17, 0x57, 0xa8, 0xa3, 0x2d, + 0xa2, 0x44, 0xbd, 0x6d, 0x98, 0x54, 0x95, 0x84, 0xe7, 0x97, 0x02, 0x9c, 0xb7, 0x1d, 0x1e, 0x7c, + 0xf0, 0x9a, 0xe8, 0x95, 0xb3, 0x3c, 0xa4, 0xdb, 0x5e, 0xbf, 0x7a, 0x36, 0x25, 0xee, 0x78, 0x30, + 0xcc, 0xc5, 0xf5, 0x6c, 0x4b, 0xd3, 0x8f, 0x64, 0x8d, 0x14, 0xd2, 0x44, 0x59, 0x37, 0x5a, 0xa6, + 0xdb, 0xfb, 0xaf, 0x0a, 0xb0, 0x4a, 0xf7, 0xe3, 0xdb, 0x6c, 0x4a, 0xf7, 0x8b, 0xf4, 0x33, 0x54, + 0x45, 0x43, 0x4f, 0xda, 0xe2, 0x4e, 0x90, 0x5f, 0x6b, 0x68, 0x35, 0xeb, 0x7a, 0xd9, 0xce, 0x72, + 0x53, 0xe4, 0x7b, 0xe8, 0xff, 0x6c, 0x87, 0xf8, 0x6a, 0xff, 0xae, 0x0e, 0x8d, 0x2d, 0xd3, 0xdc, + 0x0e, 0xb5, 0xf1, 0xfd, 0x9f, 0x0a, 0x1f, 0xe7, 0xfe, 0x5f, 0x40, 0xaf, 0x43, 0x94, 0x7c, 0x8a, + 0x6f, 0xe6, 0xaa, 0x45, 0x31, 0x83, 0xb6, 0x4e, 0x2c, 0xab, 0x6b, 0xde, 0xcb, 0x66, 0x5b, 0xaa, + 0x75, 0xd2, 0x3b, 0xda, 0x6e, 0xea, 0xed, 0x2c, 0x99, 0xdb, 0x59, 0x41, 0xf7, 0xdd, 0x56, 0x96, + 0x98, 0xdf, 0x09, 0xbf, 0xbc, 0x7d, 0x3b, 0x23, 0x84, 0x76, 0x92, 0x72, 0xb7, 0xab, 0xf1, 0x4b, + 0x3c, 0xfb, 0x8e, 0xa9, 0x77, 0x86, 0x29, 0x2d, 0xa3, 0xdb, 0xbc, 0xe7, 0x93, 0xb9, 0xe7, 0x93, + 0x79, 0xfb, 0xda, 0xb8, 0x19, 0x89, 0x04, 0x9d, 0xf6, 0x68, 0x96, 0x86, 0xe6, 0x95, 0xbf, 0x05, + 0x00, 0x00, 0xff, 0xff, 0x0b, 0xcf, 0x2e, 0x6b, 0x59, 0x34, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/pkg/auth/api/grpc/auth.pb.gw.go b/pkg/grpc/auth/auth.pb.gw.go similarity index 99% rename from pkg/auth/api/grpc/auth.pb.gw.go rename to pkg/grpc/auth/auth.pb.gw.go index 2148d6b6ad..64da002f45 100644 --- a/pkg/auth/api/grpc/auth.pb.gw.go +++ b/pkg/grpc/auth/auth.pb.gw.go @@ -2,11 +2,11 @@ // source: auth.proto /* -Package grpc is a reverse proxy. +Package auth is a reverse proxy. It translates gRPC into RESTful JSON APIs. */ -package grpc +package auth import ( "context" diff --git a/pkg/auth/api/grpc/auth.swagger.json b/pkg/grpc/auth/auth.swagger.json similarity index 100% rename from pkg/auth/api/grpc/auth.swagger.json rename to pkg/grpc/auth/auth.swagger.json diff --git a/pkg/auth/api/grpc/changes.go b/pkg/grpc/auth/changes.go similarity index 95% rename from pkg/auth/api/grpc/changes.go rename to pkg/grpc/auth/changes.go index 0630fb8632..bf76a77226 100644 --- a/pkg/auth/api/grpc/changes.go +++ b/pkg/grpc/auth/changes.go @@ -1,4 +1,4 @@ -package grpc +package auth import "github.com/caos/zitadel/internal/api/grpc/server/middleware" diff --git a/pkg/auth/api/grpc/mock/auth.proto.mock.go b/pkg/grpc/auth/mock/auth.proto.mock.go similarity index 86% rename from pkg/auth/api/grpc/mock/auth.proto.mock.go rename to pkg/grpc/auth/mock/auth.proto.mock.go index 63fd053563..e6985b4a04 100644 --- a/pkg/auth/api/grpc/mock/auth.proto.mock.go +++ b/pkg/grpc/auth/mock/auth.proto.mock.go @@ -1,14 +1,14 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/caos/zitadel/pkg/auth/api/grpc (interfaces: AuthServiceClient) +// Source: github.com/caos/zitadel/pkg/grpc/auth (interfaces: AuthServiceClient) // Package api is a generated GoMock package. package api import ( context "context" - grpc "github.com/caos/zitadel/pkg/auth/api/grpc" + auth "github.com/caos/zitadel/pkg/grpc/auth" gomock "github.com/golang/mock/gomock" - grpc0 "google.golang.org/grpc" + grpc "google.golang.org/grpc" emptypb "google.golang.org/protobuf/types/known/emptypb" structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" @@ -38,14 +38,14 @@ func (m *MockAuthServiceClient) EXPECT() *MockAuthServiceClientMockRecorder { } // AddMfaOTP mocks base method -func (m *MockAuthServiceClient) AddMfaOTP(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.MfaOtpResponse, error) { +func (m *MockAuthServiceClient) AddMfaOTP(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.MfaOtpResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddMfaOTP", varargs...) - ret0, _ := ret[0].(*grpc.MfaOtpResponse) + ret0, _ := ret[0].(*auth.MfaOtpResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -58,7 +58,7 @@ func (mr *MockAuthServiceClientMockRecorder) AddMfaOTP(arg0, arg1 interface{}, a } // ChangeMyPassword mocks base method -func (m *MockAuthServiceClient) ChangeMyPassword(arg0 context.Context, arg1 *grpc.PasswordChange, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAuthServiceClient) ChangeMyPassword(arg0 context.Context, arg1 *auth.PasswordChange, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -78,14 +78,14 @@ func (mr *MockAuthServiceClientMockRecorder) ChangeMyPassword(arg0, arg1 interfa } // ChangeMyUserEmail mocks base method -func (m *MockAuthServiceClient) ChangeMyUserEmail(arg0 context.Context, arg1 *grpc.UpdateUserEmailRequest, arg2 ...grpc0.CallOption) (*grpc.UserEmail, error) { +func (m *MockAuthServiceClient) ChangeMyUserEmail(arg0 context.Context, arg1 *auth.UpdateUserEmailRequest, arg2 ...grpc.CallOption) (*auth.UserEmail, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ChangeMyUserEmail", varargs...) - ret0, _ := ret[0].(*grpc.UserEmail) + ret0, _ := ret[0].(*auth.UserEmail) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -98,14 +98,14 @@ func (mr *MockAuthServiceClientMockRecorder) ChangeMyUserEmail(arg0, arg1 interf } // ChangeMyUserPhone mocks base method -func (m *MockAuthServiceClient) ChangeMyUserPhone(arg0 context.Context, arg1 *grpc.UpdateUserPhoneRequest, arg2 ...grpc0.CallOption) (*grpc.UserPhone, error) { +func (m *MockAuthServiceClient) ChangeMyUserPhone(arg0 context.Context, arg1 *auth.UpdateUserPhoneRequest, arg2 ...grpc.CallOption) (*auth.UserPhone, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ChangeMyUserPhone", varargs...) - ret0, _ := ret[0].(*grpc.UserPhone) + ret0, _ := ret[0].(*auth.UserPhone) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -118,14 +118,14 @@ func (mr *MockAuthServiceClientMockRecorder) ChangeMyUserPhone(arg0, arg1 interf } // GetMyMfas mocks base method -func (m *MockAuthServiceClient) GetMyMfas(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.MultiFactors, error) { +func (m *MockAuthServiceClient) GetMyMfas(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.MultiFactors, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyMfas", varargs...) - ret0, _ := ret[0].(*grpc.MultiFactors) + ret0, _ := ret[0].(*auth.MultiFactors) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -138,14 +138,14 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyMfas(arg0, arg1 interface{}, a } // GetMyPasswordComplexityPolicy mocks base method -func (m *MockAuthServiceClient) GetMyPasswordComplexityPolicy(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.PasswordComplexityPolicy, error) { +func (m *MockAuthServiceClient) GetMyPasswordComplexityPolicy(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.PasswordComplexityPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyPasswordComplexityPolicy", varargs...) - ret0, _ := ret[0].(*grpc.PasswordComplexityPolicy) + ret0, _ := ret[0].(*auth.PasswordComplexityPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -158,14 +158,14 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyPasswordComplexityPolicy(arg0, } // GetMyProjectPermissions mocks base method -func (m *MockAuthServiceClient) GetMyProjectPermissions(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.MyPermissions, error) { +func (m *MockAuthServiceClient) GetMyProjectPermissions(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.MyPermissions, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyProjectPermissions", varargs...) - ret0, _ := ret[0].(*grpc.MyPermissions) + ret0, _ := ret[0].(*auth.MyPermissions) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -178,14 +178,14 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyProjectPermissions(arg0, arg1 } // GetMyUser mocks base method -func (m *MockAuthServiceClient) GetMyUser(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserView, error) { +func (m *MockAuthServiceClient) GetMyUser(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.UserView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyUser", varargs...) - ret0, _ := ret[0].(*grpc.UserView) + ret0, _ := ret[0].(*auth.UserView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -198,14 +198,14 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUser(arg0, arg1 interface{}, a } // GetMyUserAddress mocks base method -func (m *MockAuthServiceClient) GetMyUserAddress(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserAddressView, error) { +func (m *MockAuthServiceClient) GetMyUserAddress(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.UserAddressView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyUserAddress", varargs...) - ret0, _ := ret[0].(*grpc.UserAddressView) + ret0, _ := ret[0].(*auth.UserAddressView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -218,14 +218,14 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserAddress(arg0, arg1 interfa } // GetMyUserChanges mocks base method -func (m *MockAuthServiceClient) GetMyUserChanges(arg0 context.Context, arg1 *grpc.ChangesRequest, arg2 ...grpc0.CallOption) (*grpc.Changes, error) { +func (m *MockAuthServiceClient) GetMyUserChanges(arg0 context.Context, arg1 *auth.ChangesRequest, arg2 ...grpc.CallOption) (*auth.Changes, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyUserChanges", varargs...) - ret0, _ := ret[0].(*grpc.Changes) + ret0, _ := ret[0].(*auth.Changes) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -238,14 +238,14 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserChanges(arg0, arg1 interfa } // GetMyUserEmail mocks base method -func (m *MockAuthServiceClient) GetMyUserEmail(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserEmailView, error) { +func (m *MockAuthServiceClient) GetMyUserEmail(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.UserEmailView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyUserEmail", varargs...) - ret0, _ := ret[0].(*grpc.UserEmailView) + ret0, _ := ret[0].(*auth.UserEmailView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -258,14 +258,14 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserEmail(arg0, arg1 interface } // GetMyUserPhone mocks base method -func (m *MockAuthServiceClient) GetMyUserPhone(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserPhoneView, error) { +func (m *MockAuthServiceClient) GetMyUserPhone(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.UserPhoneView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyUserPhone", varargs...) - ret0, _ := ret[0].(*grpc.UserPhoneView) + ret0, _ := ret[0].(*auth.UserPhoneView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -278,14 +278,14 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserPhone(arg0, arg1 interface } // GetMyUserProfile mocks base method -func (m *MockAuthServiceClient) GetMyUserProfile(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserProfileView, error) { +func (m *MockAuthServiceClient) GetMyUserProfile(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.UserProfileView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyUserProfile", varargs...) - ret0, _ := ret[0].(*grpc.UserProfileView) + ret0, _ := ret[0].(*auth.UserProfileView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -298,14 +298,14 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserProfile(arg0, arg1 interfa } // GetMyUserSessions mocks base method -func (m *MockAuthServiceClient) GetMyUserSessions(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.UserSessionViews, error) { +func (m *MockAuthServiceClient) GetMyUserSessions(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.UserSessionViews, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyUserSessions", varargs...) - ret0, _ := ret[0].(*grpc.UserSessionViews) + ret0, _ := ret[0].(*auth.UserSessionViews) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -318,14 +318,14 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyUserSessions(arg0, arg1 interf } // GetMyZitadelPermissions mocks base method -func (m *MockAuthServiceClient) GetMyZitadelPermissions(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.MyPermissions, error) { +func (m *MockAuthServiceClient) GetMyZitadelPermissions(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*auth.MyPermissions, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyZitadelPermissions", varargs...) - ret0, _ := ret[0].(*grpc.MyPermissions) + ret0, _ := ret[0].(*auth.MyPermissions) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -338,7 +338,7 @@ func (mr *MockAuthServiceClientMockRecorder) GetMyZitadelPermissions(arg0, arg1 } // Healthz mocks base method -func (m *MockAuthServiceClient) Healthz(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAuthServiceClient) Healthz(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -358,7 +358,7 @@ func (mr *MockAuthServiceClientMockRecorder) Healthz(arg0, arg1 interface{}, arg } // Ready mocks base method -func (m *MockAuthServiceClient) Ready(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAuthServiceClient) Ready(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -378,7 +378,7 @@ func (mr *MockAuthServiceClientMockRecorder) Ready(arg0, arg1 interface{}, arg2 } // RemoveMfaOTP mocks base method -func (m *MockAuthServiceClient) RemoveMfaOTP(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAuthServiceClient) RemoveMfaOTP(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -398,7 +398,7 @@ func (mr *MockAuthServiceClientMockRecorder) RemoveMfaOTP(arg0, arg1 interface{} } // RemoveMyUserPhone mocks base method -func (m *MockAuthServiceClient) RemoveMyUserPhone(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAuthServiceClient) RemoveMyUserPhone(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -418,7 +418,7 @@ func (mr *MockAuthServiceClientMockRecorder) RemoveMyUserPhone(arg0, arg1 interf } // ResendMyEmailVerificationMail mocks base method -func (m *MockAuthServiceClient) ResendMyEmailVerificationMail(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAuthServiceClient) ResendMyEmailVerificationMail(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -438,7 +438,7 @@ func (mr *MockAuthServiceClientMockRecorder) ResendMyEmailVerificationMail(arg0, } // ResendMyPhoneVerificationCode mocks base method -func (m *MockAuthServiceClient) ResendMyPhoneVerificationCode(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAuthServiceClient) ResendMyPhoneVerificationCode(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -458,14 +458,14 @@ func (mr *MockAuthServiceClientMockRecorder) ResendMyPhoneVerificationCode(arg0, } // SearchMyProjectOrgs mocks base method -func (m *MockAuthServiceClient) SearchMyProjectOrgs(arg0 context.Context, arg1 *grpc.MyProjectOrgSearchRequest, arg2 ...grpc0.CallOption) (*grpc.MyProjectOrgSearchResponse, error) { +func (m *MockAuthServiceClient) SearchMyProjectOrgs(arg0 context.Context, arg1 *auth.MyProjectOrgSearchRequest, arg2 ...grpc.CallOption) (*auth.MyProjectOrgSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchMyProjectOrgs", varargs...) - ret0, _ := ret[0].(*grpc.MyProjectOrgSearchResponse) + ret0, _ := ret[0].(*auth.MyProjectOrgSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -478,14 +478,14 @@ func (mr *MockAuthServiceClientMockRecorder) SearchMyProjectOrgs(arg0, arg1 inte } // SearchMyUserGrant mocks base method -func (m *MockAuthServiceClient) SearchMyUserGrant(arg0 context.Context, arg1 *grpc.UserGrantSearchRequest, arg2 ...grpc0.CallOption) (*grpc.UserGrantSearchResponse, error) { +func (m *MockAuthServiceClient) SearchMyUserGrant(arg0 context.Context, arg1 *auth.UserGrantSearchRequest, arg2 ...grpc.CallOption) (*auth.UserGrantSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchMyUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrantSearchResponse) + ret0, _ := ret[0].(*auth.UserGrantSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -498,14 +498,14 @@ func (mr *MockAuthServiceClientMockRecorder) SearchMyUserGrant(arg0, arg1 interf } // UpdateMyUserAddress mocks base method -func (m *MockAuthServiceClient) UpdateMyUserAddress(arg0 context.Context, arg1 *grpc.UpdateUserAddressRequest, arg2 ...grpc0.CallOption) (*grpc.UserAddress, error) { +func (m *MockAuthServiceClient) UpdateMyUserAddress(arg0 context.Context, arg1 *auth.UpdateUserAddressRequest, arg2 ...grpc.CallOption) (*auth.UserAddress, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateMyUserAddress", varargs...) - ret0, _ := ret[0].(*grpc.UserAddress) + ret0, _ := ret[0].(*auth.UserAddress) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -518,14 +518,14 @@ func (mr *MockAuthServiceClientMockRecorder) UpdateMyUserAddress(arg0, arg1 inte } // UpdateMyUserProfile mocks base method -func (m *MockAuthServiceClient) UpdateMyUserProfile(arg0 context.Context, arg1 *grpc.UpdateUserProfileRequest, arg2 ...grpc0.CallOption) (*grpc.UserProfile, error) { +func (m *MockAuthServiceClient) UpdateMyUserProfile(arg0 context.Context, arg1 *auth.UpdateUserProfileRequest, arg2 ...grpc.CallOption) (*auth.UserProfile, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateMyUserProfile", varargs...) - ret0, _ := ret[0].(*grpc.UserProfile) + ret0, _ := ret[0].(*auth.UserProfile) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -538,7 +538,7 @@ func (mr *MockAuthServiceClientMockRecorder) UpdateMyUserProfile(arg0, arg1 inte } // Validate mocks base method -func (m *MockAuthServiceClient) Validate(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*structpb.Struct, error) { +func (m *MockAuthServiceClient) Validate(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*structpb.Struct, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -558,7 +558,7 @@ func (mr *MockAuthServiceClientMockRecorder) Validate(arg0, arg1 interface{}, ar } // VerifyMfaOTP mocks base method -func (m *MockAuthServiceClient) VerifyMfaOTP(arg0 context.Context, arg1 *grpc.VerifyMfaOtp, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAuthServiceClient) VerifyMfaOTP(arg0 context.Context, arg1 *auth.VerifyMfaOtp, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -578,7 +578,7 @@ func (mr *MockAuthServiceClientMockRecorder) VerifyMfaOTP(arg0, arg1 interface{} } // VerifyMyUserEmail mocks base method -func (m *MockAuthServiceClient) VerifyMyUserEmail(arg0 context.Context, arg1 *grpc.VerifyMyUserEmailRequest, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAuthServiceClient) VerifyMyUserEmail(arg0 context.Context, arg1 *auth.VerifyMyUserEmailRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -598,7 +598,7 @@ func (mr *MockAuthServiceClientMockRecorder) VerifyMyUserEmail(arg0, arg1 interf } // VerifyMyUserPhone mocks base method -func (m *MockAuthServiceClient) VerifyMyUserPhone(arg0 context.Context, arg1 *grpc.VerifyUserPhoneRequest, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockAuthServiceClient) VerifyMyUserPhone(arg0 context.Context, arg1 *auth.VerifyUserPhoneRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { diff --git a/pkg/auth/api/proto/auth.proto b/pkg/grpc/auth/proto/auth.proto similarity index 99% rename from pkg/auth/api/proto/auth.proto rename to pkg/grpc/auth/proto/auth.proto index 59c6376735..8ae3b981f0 100644 --- a/pkg/auth/api/proto/auth.proto +++ b/pkg/grpc/auth/proto/auth.proto @@ -7,11 +7,11 @@ import "google/protobuf/timestamp.proto"; import "validate/validate.proto"; import "protoc-gen-swagger/options/annotations.proto"; import "authoption/options.proto"; -import "message.proto"; +import "proto/message.proto"; package caos.zitadel.auth.api.v1; -option go_package = "github.com/caos/zitadel/pkg/auth/api/grpc"; +option go_package = "github.com/caos/zitadel/pkg/grpc/auth"; option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = { info: { diff --git a/pkg/grpc/auth/proto/generate.go b/pkg/grpc/auth/proto/generate.go new file mode 100644 index 0000000000..2813498537 --- /dev/null +++ b/pkg/grpc/auth/proto/generate.go @@ -0,0 +1,4 @@ +package proto + +//go:generate protoc -I${GOPATH}/src -I../proto -I${GOPATH}/src/github.com/caos/zitadel/pkg/grpc/message -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate -I${GOPATH}/src/github.com/caos/zitadel/internal/protoc/protoc-gen-authoption --go_out=plugins=grpc:${GOPATH}/src --grpc-gateway_out=logtostderr=true:${GOPATH}/src --swagger_out=logtostderr=true:.. --authoption_out=:.. auth.proto +//go:generate mockgen -package api -destination ../mock/auth.proto.mock.go github.com/caos/zitadel/pkg/grpc/auth AuthServiceClient diff --git a/pkg/grpc/management/changes.go b/pkg/grpc/management/changes.go new file mode 100644 index 0000000000..bfdf5248a7 --- /dev/null +++ b/pkg/grpc/management/changes.go @@ -0,0 +1,11 @@ +package management + +import "github.com/caos/zitadel/internal/api/grpc/server/middleware" + +func (c *Changes) Localizers() []middleware.Localizer { + localizers := make([]middleware.Localizer, len(c.Changes)) + for i, change := range c.Changes { + localizers[i] = change.EventType + } + return localizers +} diff --git a/pkg/management/api/grpc/management.pb.authoptions.go b/pkg/grpc/management/management.pb.authoptions.go similarity index 77% rename from pkg/management/api/grpc/management.pb.authoptions.go rename to pkg/grpc/management/management.pb.authoptions.go index 5f6019f0b2..f878102707 100644 --- a/pkg/management/api/grpc/management.pb.authoptions.go +++ b/pkg/grpc/management/management.pb.authoptions.go @@ -1,596 +1,591 @@ // Code generated by protoc-gen-authmethod. DO NOT EDIT. -package grpc +package management import ( - "google.golang.org/grpc" - - utils_auth "github.com/caos/zitadel/internal/api/auth" - "github.com/caos/zitadel/internal/api/grpc/server/middleware" + "github.com/caos/zitadel/internal/api/authz" ) /** * ManagementService */ -var ManagementService_AuthMethods = utils_auth.MethodMapping{ +const ManagementService_MethodPrefix = "caos.zitadel.management.api.v1.ManagementService" - "/caos.zitadel.management.api.v1.ManagementService/GetIam": utils_auth.Option{ +var ManagementService_AuthMethods = authz.MethodMapping{ + + "/caos.zitadel.management.api.v1.ManagementService/GetIam": authz.Option{ Permission: "authenticated", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetUserByID": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetUserByID": authz.Option{ Permission: "user.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetUserByEmailGlobal": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetUserByEmailGlobal": authz.Option{ Permission: "user.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchUsers": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchUsers": authz.Option{ Permission: "user.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/IsUserUnique": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/IsUserUnique": authz.Option{ Permission: "user.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/CreateUser": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/CreateUser": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/DeactivateUser": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeactivateUser": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ReactivateUser": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ReactivateUser": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/LockUser": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/LockUser": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UnlockUser": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UnlockUser": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/DeleteUser": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeleteUser": authz.Option{ Permission: "user.delete", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UserChanges": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UserChanges": authz.Option{ Permission: "user.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges": authz.Option{ Permission: "project.app.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/OrgChanges": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/OrgChanges": authz.Option{ Permission: "org.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ProjectChanges": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ProjectChanges": authz.Option{ Permission: "project.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetUserProfile": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetUserProfile": authz.Option{ Permission: "user.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetUserEmail": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetUserEmail": authz.Option{ Permission: "user.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetUserPhone": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetUserPhone": authz.Option{ Permission: "user.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetUserAddress": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetUserAddress": authz.Option{ Permission: "user.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetUserMfas": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetUserMfas": authz.Option{ Permission: "user.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword": authz.Option{ Permission: "user.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy": authz.Option{ Permission: "policy.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy": authz.Option{ Permission: "policy.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy": authz.Option{ Permission: "policy.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordComplexityPolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordComplexityPolicy": authz.Option{ Permission: "policy.delete", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy": authz.Option{ Permission: "policy.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy": authz.Option{ Permission: "policy.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy": authz.Option{ Permission: "policy.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordAgePolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordAgePolicy": authz.Option{ Permission: "policy.delete", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy": authz.Option{ Permission: "policy.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy": authz.Option{ Permission: "policy.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy": authz.Option{ Permission: "policy.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordLockoutPolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordLockoutPolicy": authz.Option{ Permission: "policy.delete", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetMyOrg": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetMyOrg": authz.Option{ Permission: "org.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal": authz.Option{ Permission: "org.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg": authz.Option{ Permission: "org.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg": authz.Option{ Permission: "org.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains": authz.Option{ Permission: "org.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain": authz.Option{ Permission: "org.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain": authz.Option{ Permission: "org.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy": authz.Option{ Permission: "authenticated", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles": authz.Option{ Permission: "org.member.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember": authz.Option{ Permission: "org.member.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember": authz.Option{ Permission: "org.member.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember": authz.Option{ Permission: "org.member.delete", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers": authz.Option{ Permission: "org.member.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchProjects": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchProjects": authz.Option{ Permission: "project.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ProjectByID": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ProjectByID": authz.Option{ Permission: "project.read", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/CreateProject": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/CreateProject": authz.Option{ Permission: "project.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdateProject": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdateProject": authz.Option{ Permission: "project.write", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/DeactivateProject": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeactivateProject": authz.Option{ Permission: "project.write", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/ReactivateProject": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ReactivateProject": authz.Option{ Permission: "project.write", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects": authz.Option{ Permission: "project.read", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID": authz.Option{ Permission: "project.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles": authz.Option{ Permission: "project.member.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers": authz.Option{ Permission: "project.member.read", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/AddProjectMember": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/AddProjectMember": authz.Option{ Permission: "project.member.write", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember": authz.Option{ Permission: "project.member.write", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember": authz.Option{ Permission: "project.member.delete", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles": authz.Option{ Permission: "project.role.read", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/AddProjectRole": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/AddProjectRole": authz.Option{ Permission: "project.role.write", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole": authz.Option{ Permission: "project.role.write", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole": authz.Option{ Permission: "project.role.write", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole": authz.Option{ Permission: "project.role.delete", CheckParam: "Id", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchApplications": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchApplications": authz.Option{ Permission: "project.app.read", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/ApplicationByID": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ApplicationByID": authz.Option{ Permission: "project.app.read", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication": authz.Option{ Permission: "project.app.write", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdateApplication": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdateApplication": authz.Option{ Permission: "project.app.write", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication": authz.Option{ Permission: "project.app.write", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication": authz.Option{ Permission: "project.app.write", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/RemoveApplication": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/RemoveApplication": authz.Option{ Permission: "project.app.delete", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig": authz.Option{ Permission: "project.app.write", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret": authz.Option{ Permission: "project.app.write", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants": authz.Option{ Permission: "project.grant.read", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID": authz.Option{ Permission: "project.grant.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant": authz.Option{ Permission: "project.grant.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant": authz.Option{ Permission: "project.grant.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant": authz.Option{ Permission: "project.grant.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant": authz.Option{ Permission: "project.grant.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant": authz.Option{ Permission: "project.grant.delete", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles": authz.Option{ Permission: "project.grant.member.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers": authz.Option{ Permission: "project.grant.member.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember": authz.Option{ Permission: "project.grant.member.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember": authz.Option{ Permission: "project.grant.member.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember": authz.Option{ Permission: "project.grant.member.delete", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants": authz.Option{ Permission: "user.grant.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UserGrantByID": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UserGrantByID": authz.Option{ Permission: "user.grant.read", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant": authz.Option{ Permission: "user.grant.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant": authz.Option{ Permission: "user.grant.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant": authz.Option{ Permission: "user.grant.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant": authz.Option{ Permission: "user.grant.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant": authz.Option{ Permission: "user.grant.delete", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/BulkCreateUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/BulkCreateUserGrant": authz.Option{ Permission: "user.grant.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/BulkUpdateUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/BulkUpdateUserGrant": authz.Option{ Permission: "user.grant.write", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant": authz.Option{ Permission: "user.grant.delete", CheckParam: "", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchProjectUserGrants": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchProjectUserGrants": authz.Option{ Permission: "project.user.grant.read", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/ProjectUserGrantByID": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ProjectUserGrantByID": authz.Option{ Permission: "project.user.grant.read", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/CreateProjectUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/CreateProjectUserGrant": authz.Option{ Permission: "project.user.grant.write", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectUserGrant": authz.Option{ Permission: "project.user.grant.write", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectUserGrant": authz.Option{ Permission: "project.user.grant.write", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectUserGrant": authz.Option{ Permission: "project.user.grant.write", CheckParam: "ProjectId", }, - "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantUserGrants": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantUserGrants": authz.Option{ Permission: "project.grant.user.grant.read", CheckParam: "ProjectGrantId", }, - "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantUserGrantByID": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantUserGrantByID": authz.Option{ Permission: "project.grant.user.grant.read", CheckParam: "ProjectGrantId", }, - "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrantUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrantUserGrant": authz.Option{ Permission: "project.grant.user.grant.write", CheckParam: "ProjectGrantId", }, - "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrantUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrantUserGrant": authz.Option{ Permission: "project.grant.user.grant.write", CheckParam: "ProjectGrantId", }, - "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrantUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrantUserGrant": authz.Option{ Permission: "project.grant.user.grant.write", CheckParam: "ProjectGrantId", }, - "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrantUserGrant": utils_auth.Option{ + "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrantUserGrant": authz.Option{ Permission: "project.grant.user.grant.write", CheckParam: "ProjectGrantId", }, } - -func ManagementService_Authorization_Interceptor(verifier utils_auth.TokenVerifier, authConf *utils_auth.Config) grpc.UnaryServerInterceptor { - return middleware.AuthorizationInterceptor(verifier, authConf, ManagementService_AuthMethods) -} diff --git a/pkg/grpc/management/management.pb.go b/pkg/grpc/management/management.pb.go new file mode 100644 index 0000000000..02626a7993 --- /dev/null +++ b/pkg/grpc/management/management.pb.go @@ -0,0 +1,15460 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: management.proto + +package management + +import ( + context "context" + fmt "fmt" + _ "github.com/caos/zitadel/internal/protoc/protoc-gen-authoption/authoption" + message "github.com/caos/zitadel/pkg/grpc/message" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + proto "github.com/golang/protobuf/proto" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// 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 UserState int32 + +const ( + UserState_USERSTATE_UNSPECIFIED UserState = 0 + UserState_USERSTATE_ACTIVE UserState = 1 + UserState_USERSTATE_INACTIVE UserState = 2 + UserState_USERSTATE_DELETED UserState = 3 + UserState_USERSTATE_LOCKED UserState = 4 + UserState_USERSTATE_SUSPEND UserState = 5 + UserState_USERSTATE_INITIAL UserState = 6 +) + +var UserState_name = map[int32]string{ + 0: "USERSTATE_UNSPECIFIED", + 1: "USERSTATE_ACTIVE", + 2: "USERSTATE_INACTIVE", + 3: "USERSTATE_DELETED", + 4: "USERSTATE_LOCKED", + 5: "USERSTATE_SUSPEND", + 6: "USERSTATE_INITIAL", +} + +var UserState_value = map[string]int32{ + "USERSTATE_UNSPECIFIED": 0, + "USERSTATE_ACTIVE": 1, + "USERSTATE_INACTIVE": 2, + "USERSTATE_DELETED": 3, + "USERSTATE_LOCKED": 4, + "USERSTATE_SUSPEND": 5, + "USERSTATE_INITIAL": 6, +} + +func (x UserState) String() string { + return proto.EnumName(UserState_name, int32(x)) +} + +func (UserState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{0} +} + +type Gender int32 + +const ( + Gender_GENDER_UNSPECIFIED Gender = 0 + Gender_GENDER_FEMALE Gender = 1 + Gender_GENDER_MALE Gender = 2 + Gender_GENDER_DIVERSE Gender = 3 +) + +var Gender_name = map[int32]string{ + 0: "GENDER_UNSPECIFIED", + 1: "GENDER_FEMALE", + 2: "GENDER_MALE", + 3: "GENDER_DIVERSE", +} + +var Gender_value = map[string]int32{ + "GENDER_UNSPECIFIED": 0, + "GENDER_FEMALE": 1, + "GENDER_MALE": 2, + "GENDER_DIVERSE": 3, +} + +func (x Gender) String() string { + return proto.EnumName(Gender_name, int32(x)) +} + +func (Gender) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{1} +} + +type UserSearchKey int32 + +const ( + UserSearchKey_USERSEARCHKEY_UNSPECIFIED UserSearchKey = 0 + UserSearchKey_USERSEARCHKEY_USER_NAME UserSearchKey = 1 + UserSearchKey_USERSEARCHKEY_FIRST_NAME UserSearchKey = 2 + UserSearchKey_USERSEARCHKEY_LAST_NAME UserSearchKey = 3 + UserSearchKey_USERSEARCHKEY_NICK_NAME UserSearchKey = 4 + UserSearchKey_USERSEARCHKEY_DISPLAY_NAME UserSearchKey = 5 + UserSearchKey_USERSEARCHKEY_EMAIL UserSearchKey = 6 + UserSearchKey_USERSEARCHKEY_STATE UserSearchKey = 7 +) + +var UserSearchKey_name = map[int32]string{ + 0: "USERSEARCHKEY_UNSPECIFIED", + 1: "USERSEARCHKEY_USER_NAME", + 2: "USERSEARCHKEY_FIRST_NAME", + 3: "USERSEARCHKEY_LAST_NAME", + 4: "USERSEARCHKEY_NICK_NAME", + 5: "USERSEARCHKEY_DISPLAY_NAME", + 6: "USERSEARCHKEY_EMAIL", + 7: "USERSEARCHKEY_STATE", +} + +var UserSearchKey_value = map[string]int32{ + "USERSEARCHKEY_UNSPECIFIED": 0, + "USERSEARCHKEY_USER_NAME": 1, + "USERSEARCHKEY_FIRST_NAME": 2, + "USERSEARCHKEY_LAST_NAME": 3, + "USERSEARCHKEY_NICK_NAME": 4, + "USERSEARCHKEY_DISPLAY_NAME": 5, + "USERSEARCHKEY_EMAIL": 6, + "USERSEARCHKEY_STATE": 7, +} + +func (x UserSearchKey) String() string { + return proto.EnumName(UserSearchKey_name, int32(x)) +} + +func (UserSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{2} +} + +type SearchMethod int32 + +const ( + SearchMethod_SEARCHMETHOD_EQUALS SearchMethod = 0 + SearchMethod_SEARCHMETHOD_STARTS_WITH SearchMethod = 1 + SearchMethod_SEARCHMETHOD_CONTAINS SearchMethod = 2 + SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE SearchMethod = 3 + SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE SearchMethod = 4 + SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE SearchMethod = 5 + SearchMethod_SEARCHMETHOD_NOT_EQUALS SearchMethod = 6 + SearchMethod_SEARCHMETHOD_GREATER_THAN SearchMethod = 7 + SearchMethod_SEARCHMETHOD_LESS_THAN SearchMethod = 8 + SearchMethod_SEARCHMETHOD_IS_ONE_OF SearchMethod = 9 + SearchMethod_SEARCHMETHOD_LIST_CONTAINS SearchMethod = 10 +) + +var SearchMethod_name = map[int32]string{ + 0: "SEARCHMETHOD_EQUALS", + 1: "SEARCHMETHOD_STARTS_WITH", + 2: "SEARCHMETHOD_CONTAINS", + 3: "SEARCHMETHOD_EQUALS_IGNORE_CASE", + 4: "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE", + 5: "SEARCHMETHOD_CONTAINS_IGNORE_CASE", + 6: "SEARCHMETHOD_NOT_EQUALS", + 7: "SEARCHMETHOD_GREATER_THAN", + 8: "SEARCHMETHOD_LESS_THAN", + 9: "SEARCHMETHOD_IS_ONE_OF", + 10: "SEARCHMETHOD_LIST_CONTAINS", +} + +var SearchMethod_value = map[string]int32{ + "SEARCHMETHOD_EQUALS": 0, + "SEARCHMETHOD_STARTS_WITH": 1, + "SEARCHMETHOD_CONTAINS": 2, + "SEARCHMETHOD_EQUALS_IGNORE_CASE": 3, + "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE": 4, + "SEARCHMETHOD_CONTAINS_IGNORE_CASE": 5, + "SEARCHMETHOD_NOT_EQUALS": 6, + "SEARCHMETHOD_GREATER_THAN": 7, + "SEARCHMETHOD_LESS_THAN": 8, + "SEARCHMETHOD_IS_ONE_OF": 9, + "SEARCHMETHOD_LIST_CONTAINS": 10, +} + +func (x SearchMethod) String() string { + return proto.EnumName(SearchMethod_name, int32(x)) +} + +func (SearchMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{3} +} + +type MfaType int32 + +const ( + MfaType_MFATYPE_UNSPECIFIED MfaType = 0 + MfaType_MFATYPE_SMS MfaType = 1 + MfaType_MFATYPE_OTP MfaType = 2 +) + +var MfaType_name = map[int32]string{ + 0: "MFATYPE_UNSPECIFIED", + 1: "MFATYPE_SMS", + 2: "MFATYPE_OTP", +} + +var MfaType_value = map[string]int32{ + "MFATYPE_UNSPECIFIED": 0, + "MFATYPE_SMS": 1, + "MFATYPE_OTP": 2, +} + +func (x MfaType) String() string { + return proto.EnumName(MfaType_name, int32(x)) +} + +func (MfaType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{4} +} + +type MFAState int32 + +const ( + MFAState_MFASTATE_UNSPECIFIED MFAState = 0 + MFAState_MFASTATE_NOT_READY MFAState = 1 + MFAState_MFASTATE_READY MFAState = 2 + MFAState_MFASTATE_REMOVED MFAState = 3 +) + +var MFAState_name = map[int32]string{ + 0: "MFASTATE_UNSPECIFIED", + 1: "MFASTATE_NOT_READY", + 2: "MFASTATE_READY", + 3: "MFASTATE_REMOVED", +} + +var MFAState_value = map[string]int32{ + "MFASTATE_UNSPECIFIED": 0, + "MFASTATE_NOT_READY": 1, + "MFASTATE_READY": 2, + "MFASTATE_REMOVED": 3, +} + +func (x MFAState) String() string { + return proto.EnumName(MFAState_name, int32(x)) +} + +func (MFAState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{5} +} + +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_edc174f991dc0a25, []int{6} +} + +type PolicyState int32 + +const ( + PolicyState_POLICYSTATE_UNSPECIFIED PolicyState = 0 + PolicyState_POLICYSTATE_ACTIVE PolicyState = 1 + PolicyState_POLICYSTATE_INACTIVE PolicyState = 2 + PolicyState_POLICYSTATE_DELETED PolicyState = 3 +) + +var PolicyState_name = map[int32]string{ + 0: "POLICYSTATE_UNSPECIFIED", + 1: "POLICYSTATE_ACTIVE", + 2: "POLICYSTATE_INACTIVE", + 3: "POLICYSTATE_DELETED", +} + +var PolicyState_value = map[string]int32{ + "POLICYSTATE_UNSPECIFIED": 0, + "POLICYSTATE_ACTIVE": 1, + "POLICYSTATE_INACTIVE": 2, + "POLICYSTATE_DELETED": 3, +} + +func (x PolicyState) String() string { + return proto.EnumName(PolicyState_name, int32(x)) +} + +func (PolicyState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{7} +} + +type OrgState int32 + +const ( + OrgState_ORGSTATE_UNSPECIFIED OrgState = 0 + OrgState_ORGSTATE_ACTIVE OrgState = 1 + OrgState_ORGSTATE_INACTIVE OrgState = 2 +) + +var OrgState_name = map[int32]string{ + 0: "ORGSTATE_UNSPECIFIED", + 1: "ORGSTATE_ACTIVE", + 2: "ORGSTATE_INACTIVE", +} + +var OrgState_value = map[string]int32{ + "ORGSTATE_UNSPECIFIED": 0, + "ORGSTATE_ACTIVE": 1, + "ORGSTATE_INACTIVE": 2, +} + +func (x OrgState) String() string { + return proto.EnumName(OrgState_name, int32(x)) +} + +func (OrgState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{8} +} + +type OrgDomainSearchKey int32 + +const ( + OrgDomainSearchKey_ORGDOMAINSEARCHKEY_UNSPECIFIED OrgDomainSearchKey = 0 + OrgDomainSearchKey_ORGDOMAINSEARCHKEY_DOMAIN OrgDomainSearchKey = 1 +) + +var OrgDomainSearchKey_name = map[int32]string{ + 0: "ORGDOMAINSEARCHKEY_UNSPECIFIED", + 1: "ORGDOMAINSEARCHKEY_DOMAIN", +} + +var OrgDomainSearchKey_value = map[string]int32{ + "ORGDOMAINSEARCHKEY_UNSPECIFIED": 0, + "ORGDOMAINSEARCHKEY_DOMAIN": 1, +} + +func (x OrgDomainSearchKey) String() string { + return proto.EnumName(OrgDomainSearchKey_name, int32(x)) +} + +func (OrgDomainSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{9} +} + +type OrgMemberSearchKey int32 + +const ( + OrgMemberSearchKey_ORGMEMBERSEARCHKEY_UNSPECIFIED OrgMemberSearchKey = 0 + OrgMemberSearchKey_ORGMEMBERSEARCHKEY_FIRST_NAME OrgMemberSearchKey = 1 + OrgMemberSearchKey_ORGMEMBERSEARCHKEY_LAST_NAME OrgMemberSearchKey = 2 + OrgMemberSearchKey_ORGMEMBERSEARCHKEY_EMAIL OrgMemberSearchKey = 3 + OrgMemberSearchKey_ORGMEMBERSEARCHKEY_USER_ID OrgMemberSearchKey = 4 +) + +var OrgMemberSearchKey_name = map[int32]string{ + 0: "ORGMEMBERSEARCHKEY_UNSPECIFIED", + 1: "ORGMEMBERSEARCHKEY_FIRST_NAME", + 2: "ORGMEMBERSEARCHKEY_LAST_NAME", + 3: "ORGMEMBERSEARCHKEY_EMAIL", + 4: "ORGMEMBERSEARCHKEY_USER_ID", +} + +var OrgMemberSearchKey_value = map[string]int32{ + "ORGMEMBERSEARCHKEY_UNSPECIFIED": 0, + "ORGMEMBERSEARCHKEY_FIRST_NAME": 1, + "ORGMEMBERSEARCHKEY_LAST_NAME": 2, + "ORGMEMBERSEARCHKEY_EMAIL": 3, + "ORGMEMBERSEARCHKEY_USER_ID": 4, +} + +func (x OrgMemberSearchKey) String() string { + return proto.EnumName(OrgMemberSearchKey_name, int32(x)) +} + +func (OrgMemberSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{10} +} + +type ProjectSearchKey int32 + +const ( + ProjectSearchKey_PROJECTSEARCHKEY_UNSPECIFIED ProjectSearchKey = 0 + ProjectSearchKey_PROJECTSEARCHKEY_PROJECT_NAME ProjectSearchKey = 1 +) + +var ProjectSearchKey_name = map[int32]string{ + 0: "PROJECTSEARCHKEY_UNSPECIFIED", + 1: "PROJECTSEARCHKEY_PROJECT_NAME", +} + +var ProjectSearchKey_value = map[string]int32{ + "PROJECTSEARCHKEY_UNSPECIFIED": 0, + "PROJECTSEARCHKEY_PROJECT_NAME": 1, +} + +func (x ProjectSearchKey) String() string { + return proto.EnumName(ProjectSearchKey_name, int32(x)) +} + +func (ProjectSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{11} +} + +type ProjectState int32 + +const ( + ProjectState_PROJECTSTATE_UNSPECIFIED ProjectState = 0 + ProjectState_PROJECTSTATE_ACTIVE ProjectState = 1 + ProjectState_PROJECTSTATE_INACTIVE ProjectState = 2 +) + +var ProjectState_name = map[int32]string{ + 0: "PROJECTSTATE_UNSPECIFIED", + 1: "PROJECTSTATE_ACTIVE", + 2: "PROJECTSTATE_INACTIVE", +} + +var ProjectState_value = map[string]int32{ + "PROJECTSTATE_UNSPECIFIED": 0, + "PROJECTSTATE_ACTIVE": 1, + "PROJECTSTATE_INACTIVE": 2, +} + +func (x ProjectState) String() string { + return proto.EnumName(ProjectState_name, int32(x)) +} + +func (ProjectState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{12} +} + +type ProjectType int32 + +const ( + ProjectType_PROJECTTYPE_UNSPECIFIED ProjectType = 0 + ProjectType_PROJECTTYPE_OWNED ProjectType = 1 + ProjectType_PROJECTTYPE_GRANTED ProjectType = 2 +) + +var ProjectType_name = map[int32]string{ + 0: "PROJECTTYPE_UNSPECIFIED", + 1: "PROJECTTYPE_OWNED", + 2: "PROJECTTYPE_GRANTED", +} + +var ProjectType_value = map[string]int32{ + "PROJECTTYPE_UNSPECIFIED": 0, + "PROJECTTYPE_OWNED": 1, + "PROJECTTYPE_GRANTED": 2, +} + +func (x ProjectType) String() string { + return proto.EnumName(ProjectType_name, int32(x)) +} + +func (ProjectType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{13} +} + +type ProjectRoleSearchKey int32 + +const ( + ProjectRoleSearchKey_PROJECTROLESEARCHKEY_UNSPECIFIED ProjectRoleSearchKey = 0 + ProjectRoleSearchKey_PROJECTROLESEARCHKEY_KEY ProjectRoleSearchKey = 1 + ProjectRoleSearchKey_PROJECTROLESEARCHKEY_DISPLAY_NAME ProjectRoleSearchKey = 2 +) + +var ProjectRoleSearchKey_name = map[int32]string{ + 0: "PROJECTROLESEARCHKEY_UNSPECIFIED", + 1: "PROJECTROLESEARCHKEY_KEY", + 2: "PROJECTROLESEARCHKEY_DISPLAY_NAME", +} + +var ProjectRoleSearchKey_value = map[string]int32{ + "PROJECTROLESEARCHKEY_UNSPECIFIED": 0, + "PROJECTROLESEARCHKEY_KEY": 1, + "PROJECTROLESEARCHKEY_DISPLAY_NAME": 2, +} + +func (x ProjectRoleSearchKey) String() string { + return proto.EnumName(ProjectRoleSearchKey_name, int32(x)) +} + +func (ProjectRoleSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{14} +} + +type ProjectMemberSearchKey int32 + +const ( + ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_UNSPECIFIED ProjectMemberSearchKey = 0 + ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_FIRST_NAME ProjectMemberSearchKey = 1 + ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_LAST_NAME ProjectMemberSearchKey = 2 + ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_EMAIL ProjectMemberSearchKey = 3 + ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_USER_ID ProjectMemberSearchKey = 4 + ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_USER_NAME ProjectMemberSearchKey = 5 +) + +var ProjectMemberSearchKey_name = map[int32]string{ + 0: "PROJECTMEMBERSEARCHKEY_UNSPECIFIED", + 1: "PROJECTMEMBERSEARCHKEY_FIRST_NAME", + 2: "PROJECTMEMBERSEARCHKEY_LAST_NAME", + 3: "PROJECTMEMBERSEARCHKEY_EMAIL", + 4: "PROJECTMEMBERSEARCHKEY_USER_ID", + 5: "PROJECTMEMBERSEARCHKEY_USER_NAME", +} + +var ProjectMemberSearchKey_value = map[string]int32{ + "PROJECTMEMBERSEARCHKEY_UNSPECIFIED": 0, + "PROJECTMEMBERSEARCHKEY_FIRST_NAME": 1, + "PROJECTMEMBERSEARCHKEY_LAST_NAME": 2, + "PROJECTMEMBERSEARCHKEY_EMAIL": 3, + "PROJECTMEMBERSEARCHKEY_USER_ID": 4, + "PROJECTMEMBERSEARCHKEY_USER_NAME": 5, +} + +func (x ProjectMemberSearchKey) String() string { + return proto.EnumName(ProjectMemberSearchKey_name, int32(x)) +} + +func (ProjectMemberSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{15} +} + +type AppState int32 + +const ( + AppState_APPSTATE_UNSPECIFIED AppState = 0 + AppState_APPSTATE_ACTIVE AppState = 1 + AppState_APPSTATE_INACTIVE AppState = 2 +) + +var AppState_name = map[int32]string{ + 0: "APPSTATE_UNSPECIFIED", + 1: "APPSTATE_ACTIVE", + 2: "APPSTATE_INACTIVE", +} + +var AppState_value = map[string]int32{ + "APPSTATE_UNSPECIFIED": 0, + "APPSTATE_ACTIVE": 1, + "APPSTATE_INACTIVE": 2, +} + +func (x AppState) String() string { + return proto.EnumName(AppState_name, int32(x)) +} + +func (AppState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{16} +} + +type OIDCResponseType int32 + +const ( + OIDCResponseType_OIDCRESPONSETYPE_CODE OIDCResponseType = 0 + OIDCResponseType_OIDCRESPONSETYPE_ID_TOKEN OIDCResponseType = 1 + OIDCResponseType_OIDCRESPONSETYPE_TOKEN OIDCResponseType = 2 +) + +var OIDCResponseType_name = map[int32]string{ + 0: "OIDCRESPONSETYPE_CODE", + 1: "OIDCRESPONSETYPE_ID_TOKEN", + 2: "OIDCRESPONSETYPE_TOKEN", +} + +var OIDCResponseType_value = map[string]int32{ + "OIDCRESPONSETYPE_CODE": 0, + "OIDCRESPONSETYPE_ID_TOKEN": 1, + "OIDCRESPONSETYPE_TOKEN": 2, +} + +func (x OIDCResponseType) String() string { + return proto.EnumName(OIDCResponseType_name, int32(x)) +} + +func (OIDCResponseType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{17} +} + +type OIDCGrantType int32 + +const ( + OIDCGrantType_OIDCGRANTTYPE_AUTHORIZATION_CODE OIDCGrantType = 0 + OIDCGrantType_OIDCGRANTTYPE_IMPLICIT OIDCGrantType = 1 + OIDCGrantType_OIDCGRANTTYPE_REFRESH_TOKEN OIDCGrantType = 2 +) + +var OIDCGrantType_name = map[int32]string{ + 0: "OIDCGRANTTYPE_AUTHORIZATION_CODE", + 1: "OIDCGRANTTYPE_IMPLICIT", + 2: "OIDCGRANTTYPE_REFRESH_TOKEN", +} + +var OIDCGrantType_value = map[string]int32{ + "OIDCGRANTTYPE_AUTHORIZATION_CODE": 0, + "OIDCGRANTTYPE_IMPLICIT": 1, + "OIDCGRANTTYPE_REFRESH_TOKEN": 2, +} + +func (x OIDCGrantType) String() string { + return proto.EnumName(OIDCGrantType_name, int32(x)) +} + +func (OIDCGrantType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{18} +} + +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", +} + +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_edc174f991dc0a25, []int{19} +} + +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_edc174f991dc0a25, []int{20} +} + +type ApplicationSearchKey int32 + +const ( + ApplicationSearchKey_APPLICATIONSERACHKEY_UNSPECIFIED ApplicationSearchKey = 0 + ApplicationSearchKey_APPLICATIONSEARCHKEY_APP_NAME ApplicationSearchKey = 1 +) + +var ApplicationSearchKey_name = map[int32]string{ + 0: "APPLICATIONSERACHKEY_UNSPECIFIED", + 1: "APPLICATIONSEARCHKEY_APP_NAME", +} + +var ApplicationSearchKey_value = map[string]int32{ + "APPLICATIONSERACHKEY_UNSPECIFIED": 0, + "APPLICATIONSEARCHKEY_APP_NAME": 1, +} + +func (x ApplicationSearchKey) String() string { + return proto.EnumName(ApplicationSearchKey_name, int32(x)) +} + +func (ApplicationSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{21} +} + +type ProjectGrantState int32 + +const ( + ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED ProjectGrantState = 0 + ProjectGrantState_PROJECTGRANTSTATE_ACTIVE ProjectGrantState = 1 + ProjectGrantState_PROJECTGRANTSTATE_INACTIVE ProjectGrantState = 2 +) + +var ProjectGrantState_name = map[int32]string{ + 0: "PROJECTGRANTSTATE_UNSPECIFIED", + 1: "PROJECTGRANTSTATE_ACTIVE", + 2: "PROJECTGRANTSTATE_INACTIVE", +} + +var ProjectGrantState_value = map[string]int32{ + "PROJECTGRANTSTATE_UNSPECIFIED": 0, + "PROJECTGRANTSTATE_ACTIVE": 1, + "PROJECTGRANTSTATE_INACTIVE": 2, +} + +func (x ProjectGrantState) String() string { + return proto.EnumName(ProjectGrantState_name, int32(x)) +} + +func (ProjectGrantState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{22} +} + +type ProjectGrantSearchKey int32 + +const ( + ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_UNSPECIFIED ProjectGrantSearchKey = 0 + ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_PROJECT_NAME ProjectGrantSearchKey = 1 + ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_ROLE_KEY ProjectGrantSearchKey = 2 +) + +var ProjectGrantSearchKey_name = map[int32]string{ + 0: "PROJECTGRANTSEARCHKEY_UNSPECIFIED", + 1: "PROJECTGRANTSEARCHKEY_PROJECT_NAME", + 2: "PROJECTGRANTSEARCHKEY_ROLE_KEY", +} + +var ProjectGrantSearchKey_value = map[string]int32{ + "PROJECTGRANTSEARCHKEY_UNSPECIFIED": 0, + "PROJECTGRANTSEARCHKEY_PROJECT_NAME": 1, + "PROJECTGRANTSEARCHKEY_ROLE_KEY": 2, +} + +func (x ProjectGrantSearchKey) String() string { + return proto.EnumName(ProjectGrantSearchKey_name, int32(x)) +} + +func (ProjectGrantSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{23} +} + +type ProjectGrantMemberSearchKey int32 + +const ( + ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED ProjectGrantMemberSearchKey = 0 + ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME ProjectGrantMemberSearchKey = 1 + ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME ProjectGrantMemberSearchKey = 2 + ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_EMAIL ProjectGrantMemberSearchKey = 3 + ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_USER_ID ProjectGrantMemberSearchKey = 4 + ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_USER_NAME ProjectGrantMemberSearchKey = 5 +) + +var ProjectGrantMemberSearchKey_name = map[int32]string{ + 0: "PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED", + 1: "PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME", + 2: "PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME", + 3: "PROJECTGRANTMEMBERSEARCHKEY_EMAIL", + 4: "PROJECTGRANTMEMBERSEARCHKEY_USER_ID", + 5: "PROJECTGRANTMEMBERSEARCHKEY_USER_NAME", +} + +var ProjectGrantMemberSearchKey_value = map[string]int32{ + "PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED": 0, + "PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME": 1, + "PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME": 2, + "PROJECTGRANTMEMBERSEARCHKEY_EMAIL": 3, + "PROJECTGRANTMEMBERSEARCHKEY_USER_ID": 4, + "PROJECTGRANTMEMBERSEARCHKEY_USER_NAME": 5, +} + +func (x ProjectGrantMemberSearchKey) String() string { + return proto.EnumName(ProjectGrantMemberSearchKey_name, int32(x)) +} + +func (ProjectGrantMemberSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{24} +} + +type UserGrantState int32 + +const ( + UserGrantState_USERGRANTSTATE_UNSPECIFIED UserGrantState = 0 + UserGrantState_USERGRANTSTATE_ACTIVE UserGrantState = 1 + UserGrantState_USERGRANTSTATE_INACTIVE UserGrantState = 2 +) + +var UserGrantState_name = map[int32]string{ + 0: "USERGRANTSTATE_UNSPECIFIED", + 1: "USERGRANTSTATE_ACTIVE", + 2: "USERGRANTSTATE_INACTIVE", +} + +var UserGrantState_value = map[string]int32{ + "USERGRANTSTATE_UNSPECIFIED": 0, + "USERGRANTSTATE_ACTIVE": 1, + "USERGRANTSTATE_INACTIVE": 2, +} + +func (x UserGrantState) String() string { + return proto.EnumName(UserGrantState_name, int32(x)) +} + +func (UserGrantState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{25} +} + +type UserGrantSearchKey int32 + +const ( + UserGrantSearchKey_USERGRANTSEARCHKEY_UNSPECIFIED UserGrantSearchKey = 0 + UserGrantSearchKey_USERGRANTSEARCHKEY_PROJECT_ID UserGrantSearchKey = 1 + UserGrantSearchKey_USERGRANTSEARCHKEY_USER_ID UserGrantSearchKey = 2 + UserGrantSearchKey_USERGRANTSEARCHKEY_ORG_ID UserGrantSearchKey = 3 + UserGrantSearchKey_USERGRANTSEARCHKEY_ROLE_KEY UserGrantSearchKey = 4 +) + +var UserGrantSearchKey_name = map[int32]string{ + 0: "USERGRANTSEARCHKEY_UNSPECIFIED", + 1: "USERGRANTSEARCHKEY_PROJECT_ID", + 2: "USERGRANTSEARCHKEY_USER_ID", + 3: "USERGRANTSEARCHKEY_ORG_ID", + 4: "USERGRANTSEARCHKEY_ROLE_KEY", +} + +var UserGrantSearchKey_value = map[string]int32{ + "USERGRANTSEARCHKEY_UNSPECIFIED": 0, + "USERGRANTSEARCHKEY_PROJECT_ID": 1, + "USERGRANTSEARCHKEY_USER_ID": 2, + "USERGRANTSEARCHKEY_ORG_ID": 3, + "USERGRANTSEARCHKEY_ROLE_KEY": 4, +} + +func (x UserGrantSearchKey) String() string { + return proto.EnumName(UserGrantSearchKey_name, int32(x)) +} + +func (UserGrantSearchKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{26} +} + +type Iam struct { + GlobalOrgId string `protobuf:"bytes,1,opt,name=global_org_id,json=globalOrgId,proto3" json:"global_org_id,omitempty"` + IamProjectId string `protobuf:"bytes,2,opt,name=iam_project_id,json=iamProjectId,proto3" json:"iam_project_id,omitempty"` + SetUpDone bool `protobuf:"varint,3,opt,name=set_up_done,json=setUpDone,proto3" json:"set_up_done,omitempty"` + SetUpStarted bool `protobuf:"varint,4,opt,name=set_up_started,json=setUpStarted,proto3" json:"set_up_started,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Iam) Reset() { *m = Iam{} } +func (m *Iam) String() string { return proto.CompactTextString(m) } +func (*Iam) ProtoMessage() {} +func (*Iam) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{0} +} + +func (m *Iam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Iam.Unmarshal(m, b) +} +func (m *Iam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Iam.Marshal(b, m, deterministic) +} +func (m *Iam) XXX_Merge(src proto.Message) { + xxx_messageInfo_Iam.Merge(m, src) +} +func (m *Iam) XXX_Size() int { + return xxx_messageInfo_Iam.Size(m) +} +func (m *Iam) XXX_DiscardUnknown() { + xxx_messageInfo_Iam.DiscardUnknown(m) +} + +var xxx_messageInfo_Iam proto.InternalMessageInfo + +func (m *Iam) GetGlobalOrgId() string { + if m != nil { + return m.GlobalOrgId + } + return "" +} + +func (m *Iam) GetIamProjectId() string { + if m != nil { + return m.IamProjectId + } + return "" +} + +func (m *Iam) GetSetUpDone() bool { + if m != nil { + return m.SetUpDone + } + return false +} + +func (m *Iam) GetSetUpStarted() bool { + if m != nil { + return m.SetUpStarted + } + return false +} + +type ChangeRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + SecId string `protobuf:"bytes,2,opt,name=sec_id,json=secId,proto3" json:"sec_id,omitempty"` + Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + SequenceOffset uint64 `protobuf:"varint,4,opt,name=sequence_offset,json=sequenceOffset,proto3" json:"sequence_offset,omitempty"` + Asc bool `protobuf:"varint,5,opt,name=asc,proto3" json:"asc,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangeRequest) Reset() { *m = ChangeRequest{} } +func (m *ChangeRequest) String() string { return proto.CompactTextString(m) } +func (*ChangeRequest) ProtoMessage() {} +func (*ChangeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{1} +} + +func (m *ChangeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChangeRequest.Unmarshal(m, b) +} +func (m *ChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChangeRequest.Marshal(b, m, deterministic) +} +func (m *ChangeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeRequest.Merge(m, src) +} +func (m *ChangeRequest) XXX_Size() int { + return xxx_messageInfo_ChangeRequest.Size(m) +} +func (m *ChangeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ChangeRequest proto.InternalMessageInfo + +func (m *ChangeRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ChangeRequest) GetSecId() string { + if m != nil { + return m.SecId + } + return "" +} + +func (m *ChangeRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ChangeRequest) GetSequenceOffset() uint64 { + if m != nil { + return m.SequenceOffset + } + return 0 +} + +func (m *ChangeRequest) GetAsc() bool { + if m != nil { + return m.Asc + } + return false +} + +type Changes struct { + Changes []*Change `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` + Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Changes) Reset() { *m = Changes{} } +func (m *Changes) String() string { return proto.CompactTextString(m) } +func (*Changes) ProtoMessage() {} +func (*Changes) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{2} +} + +func (m *Changes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Changes.Unmarshal(m, b) +} +func (m *Changes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Changes.Marshal(b, m, deterministic) +} +func (m *Changes) XXX_Merge(src proto.Message) { + xxx_messageInfo_Changes.Merge(m, src) +} +func (m *Changes) XXX_Size() int { + return xxx_messageInfo_Changes.Size(m) +} +func (m *Changes) XXX_DiscardUnknown() { + xxx_messageInfo_Changes.DiscardUnknown(m) +} + +var xxx_messageInfo_Changes proto.InternalMessageInfo + +func (m *Changes) GetChanges() []*Change { + if m != nil { + return m.Changes + } + return nil +} + +func (m *Changes) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *Changes) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +type Change struct { + ChangeDate *timestamp.Timestamp `protobuf:"bytes,1,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + EventType *message.LocalizedMessage `protobuf:"bytes,2,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` + Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` + EditorId string `protobuf:"bytes,4,opt,name=editor_id,json=editorId,proto3" json:"editor_id,omitempty"` + Editor string `protobuf:"bytes,5,opt,name=editor,proto3" json:"editor,omitempty"` + Data *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Change) Reset() { *m = Change{} } +func (m *Change) String() string { return proto.CompactTextString(m) } +func (*Change) ProtoMessage() {} +func (*Change) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{3} +} + +func (m *Change) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Change.Unmarshal(m, b) +} +func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Change.Marshal(b, m, deterministic) +} +func (m *Change) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change.Merge(m, src) +} +func (m *Change) XXX_Size() int { + return xxx_messageInfo_Change.Size(m) +} +func (m *Change) XXX_DiscardUnknown() { + xxx_messageInfo_Change.DiscardUnknown(m) +} + +var xxx_messageInfo_Change proto.InternalMessageInfo + +func (m *Change) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *Change) GetEventType() *message.LocalizedMessage { + if m != nil { + return m.EventType + } + return nil +} + +func (m *Change) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *Change) GetEditorId() string { + if m != nil { + return m.EditorId + } + return "" +} + +func (m *Change) GetEditor() string { + if m != nil { + return m.Editor + } + return "" +} + +func (m *Change) GetData() *_struct.Struct { + if m != nil { + return m.Data + } + return nil +} + +type ApplicationID struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_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_edc174f991dc0a25, []int{4} +} + +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 "" +} + +func (m *ApplicationID) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +type ProjectID 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 *ProjectID) Reset() { *m = ProjectID{} } +func (m *ProjectID) String() string { return proto.CompactTextString(m) } +func (*ProjectID) ProtoMessage() {} +func (*ProjectID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{5} +} + +func (m *ProjectID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectID.Unmarshal(m, b) +} +func (m *ProjectID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectID.Marshal(b, m, deterministic) +} +func (m *ProjectID) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectID.Merge(m, src) +} +func (m *ProjectID) XXX_Size() int { + return xxx_messageInfo_ProjectID.Size(m) +} +func (m *ProjectID) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectID.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectID proto.InternalMessageInfo + +func (m *ProjectID) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +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:"-"` +} + +func (m *UserID) Reset() { *m = UserID{} } +func (m *UserID) String() string { return proto.CompactTextString(m) } +func (*UserID) ProtoMessage() {} +func (*UserID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{6} +} + +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 Email 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:"-"` +} + +func (m *Email) Reset() { *m = Email{} } +func (m *Email) String() string { return proto.CompactTextString(m) } +func (*Email) ProtoMessage() {} +func (*Email) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{7} +} + +func (m *Email) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Email.Unmarshal(m, b) +} +func (m *Email) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Email.Marshal(b, m, deterministic) +} +func (m *Email) XXX_Merge(src proto.Message) { + xxx_messageInfo_Email.Merge(m, src) +} +func (m *Email) XXX_Size() int { + return xxx_messageInfo_Email.Size(m) +} +func (m *Email) XXX_DiscardUnknown() { + xxx_messageInfo_Email.DiscardUnknown(m) +} + +var xxx_messageInfo_Email proto.InternalMessageInfo + +func (m *Email) GetEmail() string { + if m != nil { + return m.Email + } + 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_edc174f991dc0a25, []int{8} +} + +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_edc174f991dc0a25, []int{9} +} + +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 CreateUserRequest struct { + UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,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"` + 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=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` + Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` + IsEmailVerified bool `protobuf:"varint,8,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` + Phone string `protobuf:"bytes,9,opt,name=phone,proto3" json:"phone,omitempty"` + IsPhoneVerified bool `protobuf:"varint,10,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` + Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"` + Locality string `protobuf:"bytes,12,opt,name=locality,proto3" json:"locality,omitempty"` + PostalCode string `protobuf:"bytes,13,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` + Region string `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty"` + StreetAddress string `protobuf:"bytes,15,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` + Password string `protobuf:"bytes,16,opt,name=password,proto3" json:"password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateUserRequest) Reset() { *m = CreateUserRequest{} } +func (m *CreateUserRequest) String() string { return proto.CompactTextString(m) } +func (*CreateUserRequest) ProtoMessage() {} +func (*CreateUserRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{10} +} + +func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateUserRequest.Unmarshal(m, b) +} +func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateUserRequest.Marshal(b, m, deterministic) +} +func (m *CreateUserRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateUserRequest.Merge(m, src) +} +func (m *CreateUserRequest) XXX_Size() int { + return xxx_messageInfo_CreateUserRequest.Size(m) +} +func (m *CreateUserRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateUserRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateUserRequest proto.InternalMessageInfo + +func (m *CreateUserRequest) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *CreateUserRequest) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *CreateUserRequest) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *CreateUserRequest) GetNickName() string { + if m != nil { + return m.NickName + } + return "" +} + +func (m *CreateUserRequest) GetPreferredLanguage() string { + if m != nil { + return m.PreferredLanguage + } + return "" +} + +func (m *CreateUserRequest) GetGender() Gender { + if m != nil { + return m.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (m *CreateUserRequest) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *CreateUserRequest) GetIsEmailVerified() bool { + if m != nil { + return m.IsEmailVerified + } + return false +} + +func (m *CreateUserRequest) GetPhone() string { + if m != nil { + return m.Phone + } + return "" +} + +func (m *CreateUserRequest) GetIsPhoneVerified() bool { + if m != nil { + return m.IsPhoneVerified + } + return false +} + +func (m *CreateUserRequest) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *CreateUserRequest) GetLocality() string { + if m != nil { + return m.Locality + } + return "" +} + +func (m *CreateUserRequest) GetPostalCode() string { + if m != nil { + return m.PostalCode + } + return "" +} + +func (m *CreateUserRequest) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *CreateUserRequest) GetStreetAddress() string { + if m != nil { + return m.StreetAddress + } + return "" +} + +func (m *CreateUserRequest) GetPassword() string { + if m != nil { + return m.Password + } + return "" +} + +type User struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State UserState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.UserState" 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"` + UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` + FirstName string `protobuf:"bytes,6,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,7,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + NickName string `protobuf:"bytes,9,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` + PreferredLanguage string `protobuf:"bytes,10,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` + Gender Gender `protobuf:"varint,11,opt,name=gender,proto3,enum=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` + Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"` + IsEmailVerified bool `protobuf:"varint,13,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` + Phone string `protobuf:"bytes,14,opt,name=phone,proto3" json:"phone,omitempty"` + IsPhoneVerified bool `protobuf:"varint,15,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` + Country string `protobuf:"bytes,16,opt,name=country,proto3" json:"country,omitempty"` + Locality string `protobuf:"bytes,17,opt,name=locality,proto3" json:"locality,omitempty"` + PostalCode string `protobuf:"bytes,18,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` + Region string `protobuf:"bytes,19,opt,name=region,proto3" json:"region,omitempty"` + StreetAddress string `protobuf:"bytes,20,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` + Sequence uint64 `protobuf:"varint,21,opt,name=sequence,proto3" json:"sequence,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 (*User) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{11} +} + +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 + } + return "" +} + +func (m *User) GetState() UserState { + if m != nil { + return m.State + } + return UserState_USERSTATE_UNSPECIFIED +} + +func (m *User) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *User) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *User) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *User) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *User) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *User) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *User) GetNickName() string { + if m != nil { + return m.NickName + } + return "" +} + +func (m *User) GetPreferredLanguage() string { + if m != nil { + return m.PreferredLanguage + } + return "" +} + +func (m *User) GetGender() Gender { + if m != nil { + return m.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (m *User) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *User) GetIsEmailVerified() bool { + if m != nil { + return m.IsEmailVerified + } + return false +} + +func (m *User) GetPhone() string { + if m != nil { + return m.Phone + } + return "" +} + +func (m *User) GetIsPhoneVerified() bool { + if m != nil { + return m.IsPhoneVerified + } + return false +} + +func (m *User) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *User) GetLocality() string { + if m != nil { + return m.Locality + } + return "" +} + +func (m *User) GetPostalCode() string { + if m != nil { + return m.PostalCode + } + return "" +} + +func (m *User) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *User) GetStreetAddress() string { + if m != nil { + return m.StreetAddress + } + return "" +} + +func (m *User) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type UserView struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State UserState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.UserState" 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"` + LastLogin *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"` + PasswordChanged *timestamp.Timestamp `protobuf:"bytes,6,opt,name=password_changed,json=passwordChanged,proto3" json:"password_changed,omitempty"` + UserName string `protobuf:"bytes,7,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` + FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + DisplayName string `protobuf:"bytes,10,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + NickName string `protobuf:"bytes,11,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` + PreferredLanguage string `protobuf:"bytes,12,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` + Gender Gender `protobuf:"varint,13,opt,name=gender,proto3,enum=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` + Email string `protobuf:"bytes,14,opt,name=email,proto3" json:"email,omitempty"` + IsEmailVerified bool `protobuf:"varint,15,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` + Phone string `protobuf:"bytes,16,opt,name=phone,proto3" json:"phone,omitempty"` + IsPhoneVerified bool `protobuf:"varint,17,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` + Country string `protobuf:"bytes,18,opt,name=country,proto3" json:"country,omitempty"` + Locality string `protobuf:"bytes,19,opt,name=locality,proto3" json:"locality,omitempty"` + PostalCode string `protobuf:"bytes,20,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` + Region string `protobuf:"bytes,21,opt,name=region,proto3" json:"region,omitempty"` + StreetAddress string `protobuf:"bytes,22,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` + Sequence uint64 `protobuf:"varint,23,opt,name=sequence,proto3" json:"sequence,omitempty"` + ResourceOwner string `protobuf:"bytes,24,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` + LoginNames []string `protobuf:"bytes,25,rep,name=login_names,json=loginNames,proto3" json:"login_names,omitempty"` + PreferredLoginName string `protobuf:"bytes,26,opt,name=preferred_login_name,json=preferredLoginName,proto3" json:"preferred_login_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserView) Reset() { *m = UserView{} } +func (m *UserView) String() string { return proto.CompactTextString(m) } +func (*UserView) ProtoMessage() {} +func (*UserView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{12} +} + +func (m *UserView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserView.Unmarshal(m, b) +} +func (m *UserView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserView.Marshal(b, m, deterministic) +} +func (m *UserView) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserView.Merge(m, src) +} +func (m *UserView) XXX_Size() int { + return xxx_messageInfo_UserView.Size(m) +} +func (m *UserView) XXX_DiscardUnknown() { + xxx_messageInfo_UserView.DiscardUnknown(m) +} + +var xxx_messageInfo_UserView proto.InternalMessageInfo + +func (m *UserView) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UserView) GetState() UserState { + if m != nil { + return m.State + } + return UserState_USERSTATE_UNSPECIFIED +} + +func (m *UserView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *UserView) GetLastLogin() *timestamp.Timestamp { + if m != nil { + return m.LastLogin + } + return nil +} + +func (m *UserView) GetPasswordChanged() *timestamp.Timestamp { + if m != nil { + return m.PasswordChanged + } + return nil +} + +func (m *UserView) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *UserView) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *UserView) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *UserView) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *UserView) GetNickName() string { + if m != nil { + return m.NickName + } + return "" +} + +func (m *UserView) GetPreferredLanguage() string { + if m != nil { + return m.PreferredLanguage + } + return "" +} + +func (m *UserView) GetGender() Gender { + if m != nil { + return m.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (m *UserView) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *UserView) GetIsEmailVerified() bool { + if m != nil { + return m.IsEmailVerified + } + return false +} + +func (m *UserView) GetPhone() string { + if m != nil { + return m.Phone + } + return "" +} + +func (m *UserView) GetIsPhoneVerified() bool { + if m != nil { + return m.IsPhoneVerified + } + return false +} + +func (m *UserView) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *UserView) GetLocality() string { + if m != nil { + return m.Locality + } + return "" +} + +func (m *UserView) GetPostalCode() string { + if m != nil { + return m.PostalCode + } + return "" +} + +func (m *UserView) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *UserView) GetStreetAddress() string { + if m != nil { + return m.StreetAddress + } + return "" +} + +func (m *UserView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *UserView) GetResourceOwner() string { + if m != nil { + return m.ResourceOwner + } + return "" +} + +func (m *UserView) GetLoginNames() []string { + if m != nil { + return m.LoginNames + } + return nil +} + +func (m *UserView) GetPreferredLoginName() string { + if m != nil { + return m.PreferredLoginName + } + return "" +} + +type UserSearchRequest 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 UserSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=caos.zitadel.management.api.v1.UserSearchKey" json:"sorting_column,omitempty"` + Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` + Queries []*UserSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserSearchRequest) Reset() { *m = UserSearchRequest{} } +func (m *UserSearchRequest) String() string { return proto.CompactTextString(m) } +func (*UserSearchRequest) ProtoMessage() {} +func (*UserSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{13} +} + +func (m *UserSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserSearchRequest.Unmarshal(m, b) +} +func (m *UserSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserSearchRequest.Marshal(b, m, deterministic) +} +func (m *UserSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserSearchRequest.Merge(m, src) +} +func (m *UserSearchRequest) XXX_Size() int { + return xxx_messageInfo_UserSearchRequest.Size(m) +} +func (m *UserSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UserSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UserSearchRequest proto.InternalMessageInfo + +func (m *UserSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *UserSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *UserSearchRequest) GetSortingColumn() UserSearchKey { + if m != nil { + return m.SortingColumn + } + return UserSearchKey_USERSEARCHKEY_UNSPECIFIED +} + +func (m *UserSearchRequest) GetAsc() bool { + if m != nil { + return m.Asc + } + return false +} + +func (m *UserSearchRequest) GetQueries() []*UserSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type UserSearchQuery struct { + Key UserSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.UserSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.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 *UserSearchQuery) Reset() { *m = UserSearchQuery{} } +func (m *UserSearchQuery) String() string { return proto.CompactTextString(m) } +func (*UserSearchQuery) ProtoMessage() {} +func (*UserSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{14} +} + +func (m *UserSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserSearchQuery.Unmarshal(m, b) +} +func (m *UserSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserSearchQuery.Marshal(b, m, deterministic) +} +func (m *UserSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserSearchQuery.Merge(m, src) +} +func (m *UserSearchQuery) XXX_Size() int { + return xxx_messageInfo_UserSearchQuery.Size(m) +} +func (m *UserSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_UserSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_UserSearchQuery proto.InternalMessageInfo + +func (m *UserSearchQuery) GetKey() UserSearchKey { + if m != nil { + return m.Key + } + return UserSearchKey_USERSEARCHKEY_UNSPECIFIED +} + +func (m *UserSearchQuery) GetMethod() SearchMethod { + if m != nil { + return m.Method + } + return SearchMethod_SEARCHMETHOD_EQUALS +} + +func (m *UserSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type UserSearchResponse 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 []*UserView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserSearchResponse) Reset() { *m = UserSearchResponse{} } +func (m *UserSearchResponse) String() string { return proto.CompactTextString(m) } +func (*UserSearchResponse) ProtoMessage() {} +func (*UserSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{15} +} + +func (m *UserSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserSearchResponse.Unmarshal(m, b) +} +func (m *UserSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserSearchResponse.Marshal(b, m, deterministic) +} +func (m *UserSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserSearchResponse.Merge(m, src) +} +func (m *UserSearchResponse) XXX_Size() int { + return xxx_messageInfo_UserSearchResponse.Size(m) +} +func (m *UserSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UserSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UserSearchResponse proto.InternalMessageInfo + +func (m *UserSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *UserSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *UserSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *UserSearchResponse) GetResult() []*UserView { + if m != nil { + return m.Result + } + return nil +} + +type UserProfile struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` + UserName string `protobuf:"bytes,8,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` + Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,10,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,11,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserProfile) Reset() { *m = UserProfile{} } +func (m *UserProfile) String() string { return proto.CompactTextString(m) } +func (*UserProfile) ProtoMessage() {} +func (*UserProfile) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{16} +} + +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 + } + return "" +} + +func (m *UserProfile) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *UserProfile) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *UserProfile) GetNickName() string { + if m != nil { + return m.NickName + } + return "" +} + +func (m *UserProfile) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *UserProfile) GetPreferredLanguage() string { + if m != nil { + return m.PreferredLanguage + } + return "" +} + +func (m *UserProfile) GetGender() Gender { + if m != nil { + return m.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (m *UserProfile) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *UserProfile) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *UserProfile) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserProfile) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +type UserProfileView struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` + UserName string `protobuf:"bytes,8,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` + Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,10,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,11,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + LoginNames []string `protobuf:"bytes,12,rep,name=login_names,json=loginNames,proto3" json:"login_names,omitempty"` + PreferredLoginName string `protobuf:"bytes,27,opt,name=preferred_login_name,json=preferredLoginName,proto3" json:"preferred_login_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserProfileView) Reset() { *m = UserProfileView{} } +func (m *UserProfileView) String() string { return proto.CompactTextString(m) } +func (*UserProfileView) ProtoMessage() {} +func (*UserProfileView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{17} +} + +func (m *UserProfileView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserProfileView.Unmarshal(m, b) +} +func (m *UserProfileView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserProfileView.Marshal(b, m, deterministic) +} +func (m *UserProfileView) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserProfileView.Merge(m, src) +} +func (m *UserProfileView) XXX_Size() int { + return xxx_messageInfo_UserProfileView.Size(m) +} +func (m *UserProfileView) XXX_DiscardUnknown() { + xxx_messageInfo_UserProfileView.DiscardUnknown(m) +} + +var xxx_messageInfo_UserProfileView proto.InternalMessageInfo + +func (m *UserProfileView) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UserProfileView) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *UserProfileView) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *UserProfileView) GetNickName() string { + if m != nil { + return m.NickName + } + return "" +} + +func (m *UserProfileView) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *UserProfileView) GetPreferredLanguage() string { + if m != nil { + return m.PreferredLanguage + } + return "" +} + +func (m *UserProfileView) GetGender() Gender { + if m != nil { + return m.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (m *UserProfileView) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *UserProfileView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *UserProfileView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserProfileView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *UserProfileView) GetLoginNames() []string { + if m != nil { + return m.LoginNames + } + return nil +} + +func (m *UserProfileView) GetPreferredLoginName() string { + if m != nil { + return m.PreferredLoginName + } + return "" +} + +type UpdateUserProfileRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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"` + 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=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateUserProfileRequest) Reset() { *m = UpdateUserProfileRequest{} } +func (m *UpdateUserProfileRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateUserProfileRequest) ProtoMessage() {} +func (*UpdateUserProfileRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{18} +} + +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) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UpdateUserProfileRequest) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *UpdateUserProfileRequest) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *UpdateUserProfileRequest) GetNickName() string { + if m != nil { + return m.NickName + } + return "" +} + +func (m *UpdateUserProfileRequest) GetPreferredLanguage() string { + if m != nil { + return m.PreferredLanguage + } + return "" +} + +func (m *UpdateUserProfileRequest) GetGender() Gender { + if m != nil { + return m.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=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` + Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserEmail) Reset() { *m = UserEmail{} } +func (m *UserEmail) String() string { return proto.CompactTextString(m) } +func (*UserEmail) ProtoMessage() {} +func (*UserEmail) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{19} +} + +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 + } + return "" +} + +func (m *UserEmail) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *UserEmail) GetIsEmailVerified() bool { + if m != nil { + return m.IsEmailVerified + } + return false +} + +func (m *UserEmail) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *UserEmail) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserEmail) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +type UserEmailView 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=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` + Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserEmailView) Reset() { *m = UserEmailView{} } +func (m *UserEmailView) String() string { return proto.CompactTextString(m) } +func (*UserEmailView) ProtoMessage() {} +func (*UserEmailView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{20} +} + +func (m *UserEmailView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserEmailView.Unmarshal(m, b) +} +func (m *UserEmailView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserEmailView.Marshal(b, m, deterministic) +} +func (m *UserEmailView) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserEmailView.Merge(m, src) +} +func (m *UserEmailView) XXX_Size() int { + return xxx_messageInfo_UserEmailView.Size(m) +} +func (m *UserEmailView) XXX_DiscardUnknown() { + xxx_messageInfo_UserEmailView.DiscardUnknown(m) +} + +var xxx_messageInfo_UserEmailView proto.InternalMessageInfo + +func (m *UserEmailView) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UserEmailView) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *UserEmailView) GetIsEmailVerified() bool { + if m != nil { + return m.IsEmailVerified + } + return false +} + +func (m *UserEmailView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *UserEmailView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserEmailView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +type UpdateUserEmailRequest 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=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateUserEmailRequest) Reset() { *m = UpdateUserEmailRequest{} } +func (m *UpdateUserEmailRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateUserEmailRequest) ProtoMessage() {} +func (*UpdateUserEmailRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{21} +} + +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) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UpdateUserEmailRequest) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *UpdateUserEmailRequest) GetIsEmailVerified() bool { + if m != nil { + return m.IsEmailVerified + } + return false +} + +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"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserPhone) Reset() { *m = UserPhone{} } +func (m *UserPhone) String() string { return proto.CompactTextString(m) } +func (*UserPhone) ProtoMessage() {} +func (*UserPhone) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{22} +} + +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 + } + return "" +} + +func (m *UserPhone) GetPhone() string { + if m != nil { + return m.Phone + } + return "" +} + +func (m *UserPhone) GetIsPhoneVerified() bool { + if m != nil { + return m.IsPhoneVerified + } + return false +} + +func (m *UserPhone) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *UserPhone) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserPhone) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +type UserPhoneView 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"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserPhoneView) Reset() { *m = UserPhoneView{} } +func (m *UserPhoneView) String() string { return proto.CompactTextString(m) } +func (*UserPhoneView) ProtoMessage() {} +func (*UserPhoneView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{23} +} + +func (m *UserPhoneView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserPhoneView.Unmarshal(m, b) +} +func (m *UserPhoneView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserPhoneView.Marshal(b, m, deterministic) +} +func (m *UserPhoneView) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserPhoneView.Merge(m, src) +} +func (m *UserPhoneView) XXX_Size() int { + return xxx_messageInfo_UserPhoneView.Size(m) +} +func (m *UserPhoneView) XXX_DiscardUnknown() { + xxx_messageInfo_UserPhoneView.DiscardUnknown(m) +} + +var xxx_messageInfo_UserPhoneView proto.InternalMessageInfo + +func (m *UserPhoneView) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UserPhoneView) GetPhone() string { + if m != nil { + return m.Phone + } + return "" +} + +func (m *UserPhoneView) GetIsPhoneVerified() bool { + if m != nil { + return m.IsPhoneVerified + } + return false +} + +func (m *UserPhoneView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *UserPhoneView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserPhoneView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +type UpdateUserPhoneRequest 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:"-"` +} + +func (m *UpdateUserPhoneRequest) Reset() { *m = UpdateUserPhoneRequest{} } +func (m *UpdateUserPhoneRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateUserPhoneRequest) ProtoMessage() {} +func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{24} +} + +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) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UpdateUserPhoneRequest) GetPhone() string { + if m != nil { + return m.Phone + } + return "" +} + +func (m *UpdateUserPhoneRequest) GetIsPhoneVerified() bool { + if m != nil { + return m.IsPhoneVerified + } + return false +} + +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"` + Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserAddress) Reset() { *m = UserAddress{} } +func (m *UserAddress) String() string { return proto.CompactTextString(m) } +func (*UserAddress) ProtoMessage() {} +func (*UserAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{25} +} + +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 + } + return "" +} + +func (m *UserAddress) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *UserAddress) GetLocality() string { + if m != nil { + return m.Locality + } + return "" +} + +func (m *UserAddress) GetPostalCode() string { + if m != nil { + return m.PostalCode + } + return "" +} + +func (m *UserAddress) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *UserAddress) GetStreetAddress() string { + if m != nil { + return m.StreetAddress + } + return "" +} + +func (m *UserAddress) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *UserAddress) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserAddress) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +type UserAddressView 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"` + Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserAddressView) Reset() { *m = UserAddressView{} } +func (m *UserAddressView) String() string { return proto.CompactTextString(m) } +func (*UserAddressView) ProtoMessage() {} +func (*UserAddressView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{26} +} + +func (m *UserAddressView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserAddressView.Unmarshal(m, b) +} +func (m *UserAddressView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserAddressView.Marshal(b, m, deterministic) +} +func (m *UserAddressView) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserAddressView.Merge(m, src) +} +func (m *UserAddressView) XXX_Size() int { + return xxx_messageInfo_UserAddressView.Size(m) +} +func (m *UserAddressView) XXX_DiscardUnknown() { + xxx_messageInfo_UserAddressView.DiscardUnknown(m) +} + +var xxx_messageInfo_UserAddressView proto.InternalMessageInfo + +func (m *UserAddressView) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UserAddressView) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *UserAddressView) GetLocality() string { + if m != nil { + return m.Locality + } + return "" +} + +func (m *UserAddressView) GetPostalCode() string { + if m != nil { + return m.PostalCode + } + return "" +} + +func (m *UserAddressView) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *UserAddressView) GetStreetAddress() string { + if m != nil { + return m.StreetAddress + } + return "" +} + +func (m *UserAddressView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *UserAddressView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserAddressView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +type UpdateUserAddressRequest 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:"-"` +} + +func (m *UpdateUserAddressRequest) Reset() { *m = UpdateUserAddressRequest{} } +func (m *UpdateUserAddressRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateUserAddressRequest) ProtoMessage() {} +func (*UpdateUserAddressRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{27} +} + +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) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UpdateUserAddressRequest) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *UpdateUserAddressRequest) GetLocality() string { + if m != nil { + return m.Locality + } + return "" +} + +func (m *UpdateUserAddressRequest) GetPostalCode() string { + if m != nil { + return m.PostalCode + } + return "" +} + +func (m *UpdateUserAddressRequest) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *UpdateUserAddressRequest) GetStreetAddress() string { + if m != nil { + return m.StreetAddress + } + 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:"-"` +} + +func (m *MultiFactors) Reset() { *m = MultiFactors{} } +func (m *MultiFactors) String() string { return proto.CompactTextString(m) } +func (*MultiFactors) ProtoMessage() {} +func (*MultiFactors) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{28} +} + +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 + } + return nil +} + +type MultiFactor struct { + Type MfaType `protobuf:"varint,1,opt,name=type,proto3,enum=caos.zitadel.management.api.v1.MfaType" json:"type,omitempty"` + State MFAState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.MFAState" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MultiFactor) Reset() { *m = MultiFactor{} } +func (m *MultiFactor) String() string { return proto.CompactTextString(m) } +func (*MultiFactor) ProtoMessage() {} +func (*MultiFactor) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{29} +} + +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 + } + return MfaType_MFATYPE_UNSPECIFIED +} + +func (m *MultiFactor) GetState() MFAState { + if m != nil { + return m.State + } + return MFAState_MFASTATE_UNSPECIFIED +} + +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:"-"` +} + +func (m *PasswordID) Reset() { *m = PasswordID{} } +func (m *PasswordID) String() string { return proto.CompactTextString(m) } +func (*PasswordID) ProtoMessage() {} +func (*PasswordID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{30} +} + +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 + } + return "" +} + +type PasswordRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PasswordRequest) Reset() { *m = PasswordRequest{} } +func (m *PasswordRequest) String() string { return proto.CompactTextString(m) } +func (*PasswordRequest) ProtoMessage() {} +func (*PasswordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{31} +} + +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) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PasswordRequest) GetPassword() string { + if m != nil { + return m.Password + } + return "" +} + +type ResetPasswordRequest 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 *ResetPasswordRequest) Reset() { *m = ResetPasswordRequest{} } +func (m *ResetPasswordRequest) String() string { return proto.CompactTextString(m) } +func (*ResetPasswordRequest) ProtoMessage() {} +func (*ResetPasswordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{32} +} + +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) GetId() string { + if m != nil { + return m.Id + } + 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=caos.zitadel.management.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_edc174f991dc0a25, []int{33} +} + +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 PasswordComplexityPolicyID 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 *PasswordComplexityPolicyID) Reset() { *m = PasswordComplexityPolicyID{} } +func (m *PasswordComplexityPolicyID) String() string { return proto.CompactTextString(m) } +func (*PasswordComplexityPolicyID) ProtoMessage() {} +func (*PasswordComplexityPolicyID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{34} +} + +func (m *PasswordComplexityPolicyID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordComplexityPolicyID.Unmarshal(m, b) +} +func (m *PasswordComplexityPolicyID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordComplexityPolicyID.Marshal(b, m, deterministic) +} +func (m *PasswordComplexityPolicyID) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordComplexityPolicyID.Merge(m, src) +} +func (m *PasswordComplexityPolicyID) XXX_Size() int { + return xxx_messageInfo_PasswordComplexityPolicyID.Size(m) +} +func (m *PasswordComplexityPolicyID) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordComplexityPolicyID.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordComplexityPolicyID proto.InternalMessageInfo + +func (m *PasswordComplexityPolicyID) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type PasswordComplexityPolicy struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + State PolicyState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.PolicyState" json:"state,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + MinLength uint64 `protobuf:"varint,6,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` + HasLowercase bool `protobuf:"varint,7,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` + HasUppercase bool `protobuf:"varint,8,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` + HasNumber bool `protobuf:"varint,9,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` + HasSymbol bool `protobuf:"varint,10,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` + Sequence uint64 `protobuf:"varint,11,opt,name=sequence,proto3" json:"sequence,omitempty"` + IsDefault bool `protobuf:"varint,12,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PasswordComplexityPolicy) Reset() { *m = PasswordComplexityPolicy{} } +func (m *PasswordComplexityPolicy) String() string { return proto.CompactTextString(m) } +func (*PasswordComplexityPolicy) ProtoMessage() {} +func (*PasswordComplexityPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{35} +} + +func (m *PasswordComplexityPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordComplexityPolicy.Unmarshal(m, b) +} +func (m *PasswordComplexityPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordComplexityPolicy.Marshal(b, m, deterministic) +} +func (m *PasswordComplexityPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordComplexityPolicy.Merge(m, src) +} +func (m *PasswordComplexityPolicy) XXX_Size() int { + return xxx_messageInfo_PasswordComplexityPolicy.Size(m) +} +func (m *PasswordComplexityPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordComplexityPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordComplexityPolicy proto.InternalMessageInfo + +func (m *PasswordComplexityPolicy) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PasswordComplexityPolicy) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *PasswordComplexityPolicy) GetState() PolicyState { + if m != nil { + return m.State + } + return PolicyState_POLICYSTATE_UNSPECIFIED +} + +func (m *PasswordComplexityPolicy) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *PasswordComplexityPolicy) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *PasswordComplexityPolicy) GetMinLength() uint64 { + if m != nil { + return m.MinLength + } + return 0 +} + +func (m *PasswordComplexityPolicy) GetHasLowercase() bool { + if m != nil { + return m.HasLowercase + } + return false +} + +func (m *PasswordComplexityPolicy) GetHasUppercase() bool { + if m != nil { + return m.HasUppercase + } + return false +} + +func (m *PasswordComplexityPolicy) GetHasNumber() bool { + if m != nil { + return m.HasNumber + } + return false +} + +func (m *PasswordComplexityPolicy) GetHasSymbol() bool { + if m != nil { + return m.HasSymbol + } + return false +} + +func (m *PasswordComplexityPolicy) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *PasswordComplexityPolicy) GetIsDefault() bool { + if m != nil { + return m.IsDefault + } + return false +} + +type PasswordComplexityPolicyCreate struct { + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + MinLength uint64 `protobuf:"varint,2,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` + HasLowercase bool `protobuf:"varint,3,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` + HasUppercase bool `protobuf:"varint,4,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` + HasNumber bool `protobuf:"varint,5,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` + HasSymbol bool `protobuf:"varint,6,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PasswordComplexityPolicyCreate) Reset() { *m = PasswordComplexityPolicyCreate{} } +func (m *PasswordComplexityPolicyCreate) String() string { return proto.CompactTextString(m) } +func (*PasswordComplexityPolicyCreate) ProtoMessage() {} +func (*PasswordComplexityPolicyCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{36} +} + +func (m *PasswordComplexityPolicyCreate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordComplexityPolicyCreate.Unmarshal(m, b) +} +func (m *PasswordComplexityPolicyCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordComplexityPolicyCreate.Marshal(b, m, deterministic) +} +func (m *PasswordComplexityPolicyCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordComplexityPolicyCreate.Merge(m, src) +} +func (m *PasswordComplexityPolicyCreate) XXX_Size() int { + return xxx_messageInfo_PasswordComplexityPolicyCreate.Size(m) +} +func (m *PasswordComplexityPolicyCreate) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordComplexityPolicyCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordComplexityPolicyCreate proto.InternalMessageInfo + +func (m *PasswordComplexityPolicyCreate) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *PasswordComplexityPolicyCreate) GetMinLength() uint64 { + if m != nil { + return m.MinLength + } + return 0 +} + +func (m *PasswordComplexityPolicyCreate) GetHasLowercase() bool { + if m != nil { + return m.HasLowercase + } + return false +} + +func (m *PasswordComplexityPolicyCreate) GetHasUppercase() bool { + if m != nil { + return m.HasUppercase + } + return false +} + +func (m *PasswordComplexityPolicyCreate) GetHasNumber() bool { + if m != nil { + return m.HasNumber + } + return false +} + +func (m *PasswordComplexityPolicyCreate) GetHasSymbol() bool { + if m != nil { + return m.HasSymbol + } + return false +} + +type PasswordComplexityPolicyUpdate struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + MinLength uint64 `protobuf:"varint,3,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` + HasLowercase bool `protobuf:"varint,4,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` + HasUppercase bool `protobuf:"varint,5,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` + HasNumber bool `protobuf:"varint,6,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` + HasSymbol bool `protobuf:"varint,7,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PasswordComplexityPolicyUpdate) Reset() { *m = PasswordComplexityPolicyUpdate{} } +func (m *PasswordComplexityPolicyUpdate) String() string { return proto.CompactTextString(m) } +func (*PasswordComplexityPolicyUpdate) ProtoMessage() {} +func (*PasswordComplexityPolicyUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{37} +} + +func (m *PasswordComplexityPolicyUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordComplexityPolicyUpdate.Unmarshal(m, b) +} +func (m *PasswordComplexityPolicyUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordComplexityPolicyUpdate.Marshal(b, m, deterministic) +} +func (m *PasswordComplexityPolicyUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordComplexityPolicyUpdate.Merge(m, src) +} +func (m *PasswordComplexityPolicyUpdate) XXX_Size() int { + return xxx_messageInfo_PasswordComplexityPolicyUpdate.Size(m) +} +func (m *PasswordComplexityPolicyUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordComplexityPolicyUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordComplexityPolicyUpdate proto.InternalMessageInfo + +func (m *PasswordComplexityPolicyUpdate) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PasswordComplexityPolicyUpdate) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *PasswordComplexityPolicyUpdate) GetMinLength() uint64 { + if m != nil { + return m.MinLength + } + return 0 +} + +func (m *PasswordComplexityPolicyUpdate) GetHasLowercase() bool { + if m != nil { + return m.HasLowercase + } + return false +} + +func (m *PasswordComplexityPolicyUpdate) GetHasUppercase() bool { + if m != nil { + return m.HasUppercase + } + return false +} + +func (m *PasswordComplexityPolicyUpdate) GetHasNumber() bool { + if m != nil { + return m.HasNumber + } + return false +} + +func (m *PasswordComplexityPolicyUpdate) GetHasSymbol() bool { + if m != nil { + return m.HasSymbol + } + return false +} + +type PasswordAgePolicyID 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 *PasswordAgePolicyID) Reset() { *m = PasswordAgePolicyID{} } +func (m *PasswordAgePolicyID) String() string { return proto.CompactTextString(m) } +func (*PasswordAgePolicyID) ProtoMessage() {} +func (*PasswordAgePolicyID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{38} +} + +func (m *PasswordAgePolicyID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordAgePolicyID.Unmarshal(m, b) +} +func (m *PasswordAgePolicyID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordAgePolicyID.Marshal(b, m, deterministic) +} +func (m *PasswordAgePolicyID) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordAgePolicyID.Merge(m, src) +} +func (m *PasswordAgePolicyID) XXX_Size() int { + return xxx_messageInfo_PasswordAgePolicyID.Size(m) +} +func (m *PasswordAgePolicyID) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordAgePolicyID.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordAgePolicyID proto.InternalMessageInfo + +func (m *PasswordAgePolicyID) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type PasswordAgePolicy struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + State PolicyState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.PolicyState" json:"state,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + MaxAgeDays uint64 `protobuf:"varint,6,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` + ExpireWarnDays uint64 `protobuf:"varint,7,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` + Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` + IsDefault bool `protobuf:"varint,9,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PasswordAgePolicy) Reset() { *m = PasswordAgePolicy{} } +func (m *PasswordAgePolicy) String() string { return proto.CompactTextString(m) } +func (*PasswordAgePolicy) ProtoMessage() {} +func (*PasswordAgePolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{39} +} + +func (m *PasswordAgePolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordAgePolicy.Unmarshal(m, b) +} +func (m *PasswordAgePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordAgePolicy.Marshal(b, m, deterministic) +} +func (m *PasswordAgePolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordAgePolicy.Merge(m, src) +} +func (m *PasswordAgePolicy) XXX_Size() int { + return xxx_messageInfo_PasswordAgePolicy.Size(m) +} +func (m *PasswordAgePolicy) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordAgePolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordAgePolicy proto.InternalMessageInfo + +func (m *PasswordAgePolicy) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PasswordAgePolicy) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *PasswordAgePolicy) GetState() PolicyState { + if m != nil { + return m.State + } + return PolicyState_POLICYSTATE_UNSPECIFIED +} + +func (m *PasswordAgePolicy) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *PasswordAgePolicy) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *PasswordAgePolicy) GetMaxAgeDays() uint64 { + if m != nil { + return m.MaxAgeDays + } + return 0 +} + +func (m *PasswordAgePolicy) GetExpireWarnDays() uint64 { + if m != nil { + return m.ExpireWarnDays + } + return 0 +} + +func (m *PasswordAgePolicy) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *PasswordAgePolicy) GetIsDefault() bool { + if m != nil { + return m.IsDefault + } + return false +} + +type PasswordAgePolicyCreate struct { + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + MaxAgeDays uint64 `protobuf:"varint,2,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` + ExpireWarnDays uint64 `protobuf:"varint,3,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PasswordAgePolicyCreate) Reset() { *m = PasswordAgePolicyCreate{} } +func (m *PasswordAgePolicyCreate) String() string { return proto.CompactTextString(m) } +func (*PasswordAgePolicyCreate) ProtoMessage() {} +func (*PasswordAgePolicyCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{40} +} + +func (m *PasswordAgePolicyCreate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordAgePolicyCreate.Unmarshal(m, b) +} +func (m *PasswordAgePolicyCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordAgePolicyCreate.Marshal(b, m, deterministic) +} +func (m *PasswordAgePolicyCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordAgePolicyCreate.Merge(m, src) +} +func (m *PasswordAgePolicyCreate) XXX_Size() int { + return xxx_messageInfo_PasswordAgePolicyCreate.Size(m) +} +func (m *PasswordAgePolicyCreate) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordAgePolicyCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordAgePolicyCreate proto.InternalMessageInfo + +func (m *PasswordAgePolicyCreate) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *PasswordAgePolicyCreate) GetMaxAgeDays() uint64 { + if m != nil { + return m.MaxAgeDays + } + return 0 +} + +func (m *PasswordAgePolicyCreate) GetExpireWarnDays() uint64 { + if m != nil { + return m.ExpireWarnDays + } + return 0 +} + +type PasswordAgePolicyUpdate struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + MaxAgeDays uint64 `protobuf:"varint,3,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` + ExpireWarnDays uint64 `protobuf:"varint,4,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PasswordAgePolicyUpdate) Reset() { *m = PasswordAgePolicyUpdate{} } +func (m *PasswordAgePolicyUpdate) String() string { return proto.CompactTextString(m) } +func (*PasswordAgePolicyUpdate) ProtoMessage() {} +func (*PasswordAgePolicyUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{41} +} + +func (m *PasswordAgePolicyUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordAgePolicyUpdate.Unmarshal(m, b) +} +func (m *PasswordAgePolicyUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordAgePolicyUpdate.Marshal(b, m, deterministic) +} +func (m *PasswordAgePolicyUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordAgePolicyUpdate.Merge(m, src) +} +func (m *PasswordAgePolicyUpdate) XXX_Size() int { + return xxx_messageInfo_PasswordAgePolicyUpdate.Size(m) +} +func (m *PasswordAgePolicyUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordAgePolicyUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordAgePolicyUpdate proto.InternalMessageInfo + +func (m *PasswordAgePolicyUpdate) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PasswordAgePolicyUpdate) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *PasswordAgePolicyUpdate) GetMaxAgeDays() uint64 { + if m != nil { + return m.MaxAgeDays + } + return 0 +} + +func (m *PasswordAgePolicyUpdate) GetExpireWarnDays() uint64 { + if m != nil { + return m.ExpireWarnDays + } + return 0 +} + +type PasswordLockoutPolicyID 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 *PasswordLockoutPolicyID) Reset() { *m = PasswordLockoutPolicyID{} } +func (m *PasswordLockoutPolicyID) String() string { return proto.CompactTextString(m) } +func (*PasswordLockoutPolicyID) ProtoMessage() {} +func (*PasswordLockoutPolicyID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{42} +} + +func (m *PasswordLockoutPolicyID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordLockoutPolicyID.Unmarshal(m, b) +} +func (m *PasswordLockoutPolicyID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordLockoutPolicyID.Marshal(b, m, deterministic) +} +func (m *PasswordLockoutPolicyID) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordLockoutPolicyID.Merge(m, src) +} +func (m *PasswordLockoutPolicyID) XXX_Size() int { + return xxx_messageInfo_PasswordLockoutPolicyID.Size(m) +} +func (m *PasswordLockoutPolicyID) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordLockoutPolicyID.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordLockoutPolicyID proto.InternalMessageInfo + +func (m *PasswordLockoutPolicyID) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type PasswordLockoutPolicy struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + State PolicyState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.PolicyState" json:"state,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + MaxAttempts uint64 `protobuf:"varint,6,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` + ShowLockOutFailures bool `protobuf:"varint,7,opt,name=show_lock_out_failures,json=showLockOutFailures,proto3" json:"show_lock_out_failures,omitempty"` + Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` + IsDefault bool `protobuf:"varint,9,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PasswordLockoutPolicy) Reset() { *m = PasswordLockoutPolicy{} } +func (m *PasswordLockoutPolicy) String() string { return proto.CompactTextString(m) } +func (*PasswordLockoutPolicy) ProtoMessage() {} +func (*PasswordLockoutPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{43} +} + +func (m *PasswordLockoutPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordLockoutPolicy.Unmarshal(m, b) +} +func (m *PasswordLockoutPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordLockoutPolicy.Marshal(b, m, deterministic) +} +func (m *PasswordLockoutPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordLockoutPolicy.Merge(m, src) +} +func (m *PasswordLockoutPolicy) XXX_Size() int { + return xxx_messageInfo_PasswordLockoutPolicy.Size(m) +} +func (m *PasswordLockoutPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordLockoutPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordLockoutPolicy proto.InternalMessageInfo + +func (m *PasswordLockoutPolicy) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PasswordLockoutPolicy) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *PasswordLockoutPolicy) GetState() PolicyState { + if m != nil { + return m.State + } + return PolicyState_POLICYSTATE_UNSPECIFIED +} + +func (m *PasswordLockoutPolicy) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *PasswordLockoutPolicy) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *PasswordLockoutPolicy) GetMaxAttempts() uint64 { + if m != nil { + return m.MaxAttempts + } + return 0 +} + +func (m *PasswordLockoutPolicy) GetShowLockOutFailures() bool { + if m != nil { + return m.ShowLockOutFailures + } + return false +} + +func (m *PasswordLockoutPolicy) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *PasswordLockoutPolicy) GetIsDefault() bool { + if m != nil { + return m.IsDefault + } + return false +} + +type PasswordLockoutPolicyCreate struct { + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + MaxAttempts uint64 `protobuf:"varint,2,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` + ShowLockOutFailures bool `protobuf:"varint,3,opt,name=show_lock_out_failures,json=showLockOutFailures,proto3" json:"show_lock_out_failures,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PasswordLockoutPolicyCreate) Reset() { *m = PasswordLockoutPolicyCreate{} } +func (m *PasswordLockoutPolicyCreate) String() string { return proto.CompactTextString(m) } +func (*PasswordLockoutPolicyCreate) ProtoMessage() {} +func (*PasswordLockoutPolicyCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{44} +} + +func (m *PasswordLockoutPolicyCreate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordLockoutPolicyCreate.Unmarshal(m, b) +} +func (m *PasswordLockoutPolicyCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordLockoutPolicyCreate.Marshal(b, m, deterministic) +} +func (m *PasswordLockoutPolicyCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordLockoutPolicyCreate.Merge(m, src) +} +func (m *PasswordLockoutPolicyCreate) XXX_Size() int { + return xxx_messageInfo_PasswordLockoutPolicyCreate.Size(m) +} +func (m *PasswordLockoutPolicyCreate) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordLockoutPolicyCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordLockoutPolicyCreate proto.InternalMessageInfo + +func (m *PasswordLockoutPolicyCreate) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *PasswordLockoutPolicyCreate) GetMaxAttempts() uint64 { + if m != nil { + return m.MaxAttempts + } + return 0 +} + +func (m *PasswordLockoutPolicyCreate) GetShowLockOutFailures() bool { + if m != nil { + return m.ShowLockOutFailures + } + return false +} + +type PasswordLockoutPolicyUpdate struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + MaxAttempts uint64 `protobuf:"varint,3,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` + ShowLockOutFailures bool `protobuf:"varint,4,opt,name=show_lock_out_failures,json=showLockOutFailures,proto3" json:"show_lock_out_failures,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PasswordLockoutPolicyUpdate) Reset() { *m = PasswordLockoutPolicyUpdate{} } +func (m *PasswordLockoutPolicyUpdate) String() string { return proto.CompactTextString(m) } +func (*PasswordLockoutPolicyUpdate) ProtoMessage() {} +func (*PasswordLockoutPolicyUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{45} +} + +func (m *PasswordLockoutPolicyUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordLockoutPolicyUpdate.Unmarshal(m, b) +} +func (m *PasswordLockoutPolicyUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordLockoutPolicyUpdate.Marshal(b, m, deterministic) +} +func (m *PasswordLockoutPolicyUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordLockoutPolicyUpdate.Merge(m, src) +} +func (m *PasswordLockoutPolicyUpdate) XXX_Size() int { + return xxx_messageInfo_PasswordLockoutPolicyUpdate.Size(m) +} +func (m *PasswordLockoutPolicyUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordLockoutPolicyUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_PasswordLockoutPolicyUpdate proto.InternalMessageInfo + +func (m *PasswordLockoutPolicyUpdate) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PasswordLockoutPolicyUpdate) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *PasswordLockoutPolicyUpdate) GetMaxAttempts() uint64 { + if m != nil { + return m.MaxAttempts + } + return 0 +} + +func (m *PasswordLockoutPolicyUpdate) GetShowLockOutFailures() bool { + if m != nil { + return m.ShowLockOutFailures + } + return false +} + +type OrgIamPolicy struct { + OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + UserLoginMustBeDomain bool `protobuf:"varint,3,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"` + Default bool `protobuf:"varint,4,opt,name=default,proto3" json:"default,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgIamPolicy) Reset() { *m = OrgIamPolicy{} } +func (m *OrgIamPolicy) String() string { return proto.CompactTextString(m) } +func (*OrgIamPolicy) ProtoMessage() {} +func (*OrgIamPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{46} +} + +func (m *OrgIamPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgIamPolicy.Unmarshal(m, b) +} +func (m *OrgIamPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgIamPolicy.Marshal(b, m, deterministic) +} +func (m *OrgIamPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgIamPolicy.Merge(m, src) +} +func (m *OrgIamPolicy) XXX_Size() int { + return xxx_messageInfo_OrgIamPolicy.Size(m) +} +func (m *OrgIamPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_OrgIamPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgIamPolicy proto.InternalMessageInfo + +func (m *OrgIamPolicy) GetOrgId() string { + if m != nil { + return m.OrgId + } + return "" +} + +func (m *OrgIamPolicy) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *OrgIamPolicy) GetUserLoginMustBeDomain() bool { + if m != nil { + return m.UserLoginMustBeDomain + } + return false +} + +func (m *OrgIamPolicy) GetDefault() bool { + if m != nil { + return m.Default + } + return false +} + +type OrgID 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 *OrgID) Reset() { *m = OrgID{} } +func (m *OrgID) String() string { return proto.CompactTextString(m) } +func (*OrgID) ProtoMessage() {} +func (*OrgID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{47} +} + +func (m *OrgID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgID.Unmarshal(m, b) +} +func (m *OrgID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgID.Marshal(b, m, deterministic) +} +func (m *OrgID) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgID.Merge(m, src) +} +func (m *OrgID) XXX_Size() int { + return xxx_messageInfo_OrgID.Size(m) +} +func (m *OrgID) XXX_DiscardUnknown() { + xxx_messageInfo_OrgID.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgID proto.InternalMessageInfo + +func (m *OrgID) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type Org struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.OrgState" 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"` + Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Org) Reset() { *m = Org{} } +func (m *Org) String() string { return proto.CompactTextString(m) } +func (*Org) ProtoMessage() {} +func (*Org) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{48} +} + +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 + } + return "" +} + +func (m *Org) GetState() OrgState { + if m != nil { + return m.State + } + return OrgState_ORGSTATE_UNSPECIFIED +} + +func (m *Org) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *Org) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *Org) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Org) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type OrgView struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.OrgState" 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"` + Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgView) Reset() { *m = OrgView{} } +func (m *OrgView) String() string { return proto.CompactTextString(m) } +func (*OrgView) ProtoMessage() {} +func (*OrgView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{49} +} + +func (m *OrgView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgView.Unmarshal(m, b) +} +func (m *OrgView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgView.Marshal(b, m, deterministic) +} +func (m *OrgView) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgView.Merge(m, src) +} +func (m *OrgView) XXX_Size() int { + return xxx_messageInfo_OrgView.Size(m) +} +func (m *OrgView) XXX_DiscardUnknown() { + xxx_messageInfo_OrgView.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgView proto.InternalMessageInfo + +func (m *OrgView) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *OrgView) GetState() OrgState { + if m != nil { + return m.State + } + return OrgState_ORGSTATE_UNSPECIFIED +} + +func (m *OrgView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *OrgView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *OrgView) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *OrgView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type Domain struct { + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Domain) Reset() { *m = Domain{} } +func (m *Domain) String() string { return proto.CompactTextString(m) } +func (*Domain) ProtoMessage() {} +func (*Domain) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{50} +} + +func (m *Domain) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Domain.Unmarshal(m, b) +} +func (m *Domain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Domain.Marshal(b, m, deterministic) +} +func (m *Domain) XXX_Merge(src proto.Message) { + xxx_messageInfo_Domain.Merge(m, src) +} +func (m *Domain) XXX_Size() int { + return xxx_messageInfo_Domain.Size(m) +} +func (m *Domain) XXX_DiscardUnknown() { + xxx_messageInfo_Domain.DiscardUnknown(m) +} + +var xxx_messageInfo_Domain proto.InternalMessageInfo + +func (m *Domain) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +type OrgDomains struct { + Domains []*OrgDomain `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgDomains) Reset() { *m = OrgDomains{} } +func (m *OrgDomains) String() string { return proto.CompactTextString(m) } +func (*OrgDomains) ProtoMessage() {} +func (*OrgDomains) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{51} +} + +func (m *OrgDomains) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgDomains.Unmarshal(m, b) +} +func (m *OrgDomains) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgDomains.Marshal(b, m, deterministic) +} +func (m *OrgDomains) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgDomains.Merge(m, src) +} +func (m *OrgDomains) XXX_Size() int { + return xxx_messageInfo_OrgDomains.Size(m) +} +func (m *OrgDomains) XXX_DiscardUnknown() { + xxx_messageInfo_OrgDomains.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgDomains proto.InternalMessageInfo + +func (m *OrgDomains) GetDomains() []*OrgDomain { + if m != nil { + return m.Domains + } + return nil +} + +type OrgDomain struct { + OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"` + Verified bool `protobuf:"varint,5,opt,name=verified,proto3" json:"verified,omitempty"` + Primary bool `protobuf:"varint,6,opt,name=primary,proto3" json:"primary,omitempty"` + Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgDomain) Reset() { *m = OrgDomain{} } +func (m *OrgDomain) String() string { return proto.CompactTextString(m) } +func (*OrgDomain) ProtoMessage() {} +func (*OrgDomain) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{52} +} + +func (m *OrgDomain) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgDomain.Unmarshal(m, b) +} +func (m *OrgDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgDomain.Marshal(b, m, deterministic) +} +func (m *OrgDomain) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgDomain.Merge(m, src) +} +func (m *OrgDomain) XXX_Size() int { + return xxx_messageInfo_OrgDomain.Size(m) +} +func (m *OrgDomain) XXX_DiscardUnknown() { + xxx_messageInfo_OrgDomain.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgDomain proto.InternalMessageInfo + +func (m *OrgDomain) GetOrgId() string { + if m != nil { + return m.OrgId + } + return "" +} + +func (m *OrgDomain) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *OrgDomain) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *OrgDomain) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *OrgDomain) GetVerified() bool { + if m != nil { + return m.Verified + } + return false +} + +func (m *OrgDomain) GetPrimary() bool { + if m != nil { + return m.Primary + } + return false +} + +func (m *OrgDomain) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type OrgDomainView struct { + OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"` + Verified bool `protobuf:"varint,5,opt,name=verified,proto3" json:"verified,omitempty"` + Primary bool `protobuf:"varint,6,opt,name=primary,proto3" json:"primary,omitempty"` + Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgDomainView) Reset() { *m = OrgDomainView{} } +func (m *OrgDomainView) String() string { return proto.CompactTextString(m) } +func (*OrgDomainView) ProtoMessage() {} +func (*OrgDomainView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{53} +} + +func (m *OrgDomainView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgDomainView.Unmarshal(m, b) +} +func (m *OrgDomainView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgDomainView.Marshal(b, m, deterministic) +} +func (m *OrgDomainView) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgDomainView.Merge(m, src) +} +func (m *OrgDomainView) XXX_Size() int { + return xxx_messageInfo_OrgDomainView.Size(m) +} +func (m *OrgDomainView) XXX_DiscardUnknown() { + xxx_messageInfo_OrgDomainView.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgDomainView proto.InternalMessageInfo + +func (m *OrgDomainView) GetOrgId() string { + if m != nil { + return m.OrgId + } + return "" +} + +func (m *OrgDomainView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *OrgDomainView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *OrgDomainView) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *OrgDomainView) GetVerified() bool { + if m != nil { + return m.Verified + } + return false +} + +func (m *OrgDomainView) GetPrimary() bool { + if m != nil { + return m.Primary + } + return false +} + +func (m *OrgDomainView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type AddOrgDomainRequest struct { + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddOrgDomainRequest) Reset() { *m = AddOrgDomainRequest{} } +func (m *AddOrgDomainRequest) String() string { return proto.CompactTextString(m) } +func (*AddOrgDomainRequest) ProtoMessage() {} +func (*AddOrgDomainRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{54} +} + +func (m *AddOrgDomainRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddOrgDomainRequest.Unmarshal(m, b) +} +func (m *AddOrgDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddOrgDomainRequest.Marshal(b, m, deterministic) +} +func (m *AddOrgDomainRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddOrgDomainRequest.Merge(m, src) +} +func (m *AddOrgDomainRequest) XXX_Size() int { + return xxx_messageInfo_AddOrgDomainRequest.Size(m) +} +func (m *AddOrgDomainRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddOrgDomainRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddOrgDomainRequest proto.InternalMessageInfo + +func (m *AddOrgDomainRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +type RemoveOrgDomainRequest struct { + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RemoveOrgDomainRequest) Reset() { *m = RemoveOrgDomainRequest{} } +func (m *RemoveOrgDomainRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveOrgDomainRequest) ProtoMessage() {} +func (*RemoveOrgDomainRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{55} +} + +func (m *RemoveOrgDomainRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoveOrgDomainRequest.Unmarshal(m, b) +} +func (m *RemoveOrgDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoveOrgDomainRequest.Marshal(b, m, deterministic) +} +func (m *RemoveOrgDomainRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveOrgDomainRequest.Merge(m, src) +} +func (m *RemoveOrgDomainRequest) XXX_Size() int { + return xxx_messageInfo_RemoveOrgDomainRequest.Size(m) +} +func (m *RemoveOrgDomainRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveOrgDomainRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveOrgDomainRequest proto.InternalMessageInfo + +func (m *RemoveOrgDomainRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +type OrgDomainSearchResponse 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 []*OrgDomainView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgDomainSearchResponse) Reset() { *m = OrgDomainSearchResponse{} } +func (m *OrgDomainSearchResponse) String() string { return proto.CompactTextString(m) } +func (*OrgDomainSearchResponse) ProtoMessage() {} +func (*OrgDomainSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{56} +} + +func (m *OrgDomainSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgDomainSearchResponse.Unmarshal(m, b) +} +func (m *OrgDomainSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgDomainSearchResponse.Marshal(b, m, deterministic) +} +func (m *OrgDomainSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgDomainSearchResponse.Merge(m, src) +} +func (m *OrgDomainSearchResponse) XXX_Size() int { + return xxx_messageInfo_OrgDomainSearchResponse.Size(m) +} +func (m *OrgDomainSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_OrgDomainSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgDomainSearchResponse proto.InternalMessageInfo + +func (m *OrgDomainSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *OrgDomainSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *OrgDomainSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *OrgDomainSearchResponse) GetResult() []*OrgDomainView { + if m != nil { + return m.Result + } + return nil +} + +type OrgDomainSearchRequest 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"` + Queries []*OrgDomainSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgDomainSearchRequest) Reset() { *m = OrgDomainSearchRequest{} } +func (m *OrgDomainSearchRequest) String() string { return proto.CompactTextString(m) } +func (*OrgDomainSearchRequest) ProtoMessage() {} +func (*OrgDomainSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{57} +} + +func (m *OrgDomainSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgDomainSearchRequest.Unmarshal(m, b) +} +func (m *OrgDomainSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgDomainSearchRequest.Marshal(b, m, deterministic) +} +func (m *OrgDomainSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgDomainSearchRequest.Merge(m, src) +} +func (m *OrgDomainSearchRequest) XXX_Size() int { + return xxx_messageInfo_OrgDomainSearchRequest.Size(m) +} +func (m *OrgDomainSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_OrgDomainSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgDomainSearchRequest proto.InternalMessageInfo + +func (m *OrgDomainSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *OrgDomainSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *OrgDomainSearchRequest) GetQueries() []*OrgDomainSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type OrgDomainSearchQuery struct { + Key OrgDomainSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.OrgDomainSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.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 *OrgDomainSearchQuery) Reset() { *m = OrgDomainSearchQuery{} } +func (m *OrgDomainSearchQuery) String() string { return proto.CompactTextString(m) } +func (*OrgDomainSearchQuery) ProtoMessage() {} +func (*OrgDomainSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{58} +} + +func (m *OrgDomainSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgDomainSearchQuery.Unmarshal(m, b) +} +func (m *OrgDomainSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgDomainSearchQuery.Marshal(b, m, deterministic) +} +func (m *OrgDomainSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgDomainSearchQuery.Merge(m, src) +} +func (m *OrgDomainSearchQuery) XXX_Size() int { + return xxx_messageInfo_OrgDomainSearchQuery.Size(m) +} +func (m *OrgDomainSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_OrgDomainSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgDomainSearchQuery proto.InternalMessageInfo + +func (m *OrgDomainSearchQuery) GetKey() OrgDomainSearchKey { + if m != nil { + return m.Key + } + return OrgDomainSearchKey_ORGDOMAINSEARCHKEY_UNSPECIFIED +} + +func (m *OrgDomainSearchQuery) GetMethod() SearchMethod { + if m != nil { + return m.Method + } + return SearchMethod_SEARCHMETHOD_EQUALS +} + +func (m *OrgDomainSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type OrgMemberRoles struct { + Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgMemberRoles) Reset() { *m = OrgMemberRoles{} } +func (m *OrgMemberRoles) String() string { return proto.CompactTextString(m) } +func (*OrgMemberRoles) ProtoMessage() {} +func (*OrgMemberRoles) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{59} +} + +func (m *OrgMemberRoles) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgMemberRoles.Unmarshal(m, b) +} +func (m *OrgMemberRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgMemberRoles.Marshal(b, m, deterministic) +} +func (m *OrgMemberRoles) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgMemberRoles.Merge(m, src) +} +func (m *OrgMemberRoles) XXX_Size() int { + return xxx_messageInfo_OrgMemberRoles.Size(m) +} +func (m *OrgMemberRoles) XXX_DiscardUnknown() { + xxx_messageInfo_OrgMemberRoles.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgMemberRoles proto.InternalMessageInfo + +func (m *OrgMemberRoles) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type OrgMember struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgMember) Reset() { *m = OrgMember{} } +func (m *OrgMember) String() string { return proto.CompactTextString(m) } +func (*OrgMember) ProtoMessage() {} +func (*OrgMember) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{60} +} + +func (m *OrgMember) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgMember.Unmarshal(m, b) +} +func (m *OrgMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgMember.Marshal(b, m, deterministic) +} +func (m *OrgMember) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgMember.Merge(m, src) +} +func (m *OrgMember) XXX_Size() int { + return xxx_messageInfo_OrgMember.Size(m) +} +func (m *OrgMember) XXX_DiscardUnknown() { + xxx_messageInfo_OrgMember.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgMember proto.InternalMessageInfo + +func (m *OrgMember) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *OrgMember) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +func (m *OrgMember) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *OrgMember) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *OrgMember) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type AddOrgMemberRequest struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddOrgMemberRequest) Reset() { *m = AddOrgMemberRequest{} } +func (m *AddOrgMemberRequest) String() string { return proto.CompactTextString(m) } +func (*AddOrgMemberRequest) ProtoMessage() {} +func (*AddOrgMemberRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{61} +} + +func (m *AddOrgMemberRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddOrgMemberRequest.Unmarshal(m, b) +} +func (m *AddOrgMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddOrgMemberRequest.Marshal(b, m, deterministic) +} +func (m *AddOrgMemberRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddOrgMemberRequest.Merge(m, src) +} +func (m *AddOrgMemberRequest) XXX_Size() int { + return xxx_messageInfo_AddOrgMemberRequest.Size(m) +} +func (m *AddOrgMemberRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddOrgMemberRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddOrgMemberRequest proto.InternalMessageInfo + +func (m *AddOrgMemberRequest) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *AddOrgMemberRequest) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type ChangeOrgMemberRequest struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangeOrgMemberRequest) Reset() { *m = ChangeOrgMemberRequest{} } +func (m *ChangeOrgMemberRequest) String() string { return proto.CompactTextString(m) } +func (*ChangeOrgMemberRequest) ProtoMessage() {} +func (*ChangeOrgMemberRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{62} +} + +func (m *ChangeOrgMemberRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChangeOrgMemberRequest.Unmarshal(m, b) +} +func (m *ChangeOrgMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChangeOrgMemberRequest.Marshal(b, m, deterministic) +} +func (m *ChangeOrgMemberRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeOrgMemberRequest.Merge(m, src) +} +func (m *ChangeOrgMemberRequest) XXX_Size() int { + return xxx_messageInfo_ChangeOrgMemberRequest.Size(m) +} +func (m *ChangeOrgMemberRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeOrgMemberRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ChangeOrgMemberRequest proto.InternalMessageInfo + +func (m *ChangeOrgMemberRequest) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ChangeOrgMemberRequest) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type RemoveOrgMemberRequest 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 *RemoveOrgMemberRequest) Reset() { *m = RemoveOrgMemberRequest{} } +func (m *RemoveOrgMemberRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveOrgMemberRequest) ProtoMessage() {} +func (*RemoveOrgMemberRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{63} +} + +func (m *RemoveOrgMemberRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoveOrgMemberRequest.Unmarshal(m, b) +} +func (m *RemoveOrgMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoveOrgMemberRequest.Marshal(b, m, deterministic) +} +func (m *RemoveOrgMemberRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveOrgMemberRequest.Merge(m, src) +} +func (m *RemoveOrgMemberRequest) XXX_Size() int { + return xxx_messageInfo_RemoveOrgMemberRequest.Size(m) +} +func (m *RemoveOrgMemberRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveOrgMemberRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveOrgMemberRequest proto.InternalMessageInfo + +func (m *RemoveOrgMemberRequest) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +type OrgMemberSearchResponse 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 []*OrgMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgMemberSearchResponse) Reset() { *m = OrgMemberSearchResponse{} } +func (m *OrgMemberSearchResponse) String() string { return proto.CompactTextString(m) } +func (*OrgMemberSearchResponse) ProtoMessage() {} +func (*OrgMemberSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{64} +} + +func (m *OrgMemberSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgMemberSearchResponse.Unmarshal(m, b) +} +func (m *OrgMemberSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgMemberSearchResponse.Marshal(b, m, deterministic) +} +func (m *OrgMemberSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgMemberSearchResponse.Merge(m, src) +} +func (m *OrgMemberSearchResponse) XXX_Size() int { + return xxx_messageInfo_OrgMemberSearchResponse.Size(m) +} +func (m *OrgMemberSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_OrgMemberSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgMemberSearchResponse proto.InternalMessageInfo + +func (m *OrgMemberSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *OrgMemberSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *OrgMemberSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *OrgMemberSearchResponse) GetResult() []*OrgMemberView { + if m != nil { + return m.Result + } + return nil +} + +type OrgMemberView struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + UserName string `protobuf:"bytes,6,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` + Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` + FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgMemberView) Reset() { *m = OrgMemberView{} } +func (m *OrgMemberView) String() string { return proto.CompactTextString(m) } +func (*OrgMemberView) ProtoMessage() {} +func (*OrgMemberView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{65} +} + +func (m *OrgMemberView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgMemberView.Unmarshal(m, b) +} +func (m *OrgMemberView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgMemberView.Marshal(b, m, deterministic) +} +func (m *OrgMemberView) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgMemberView.Merge(m, src) +} +func (m *OrgMemberView) XXX_Size() int { + return xxx_messageInfo_OrgMemberView.Size(m) +} +func (m *OrgMemberView) XXX_DiscardUnknown() { + xxx_messageInfo_OrgMemberView.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgMemberView proto.InternalMessageInfo + +func (m *OrgMemberView) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *OrgMemberView) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +func (m *OrgMemberView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *OrgMemberView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *OrgMemberView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *OrgMemberView) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *OrgMemberView) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *OrgMemberView) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *OrgMemberView) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +type OrgMemberSearchRequest 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"` + Queries []*OrgMemberSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OrgMemberSearchRequest) Reset() { *m = OrgMemberSearchRequest{} } +func (m *OrgMemberSearchRequest) String() string { return proto.CompactTextString(m) } +func (*OrgMemberSearchRequest) ProtoMessage() {} +func (*OrgMemberSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{66} +} + +func (m *OrgMemberSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgMemberSearchRequest.Unmarshal(m, b) +} +func (m *OrgMemberSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgMemberSearchRequest.Marshal(b, m, deterministic) +} +func (m *OrgMemberSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgMemberSearchRequest.Merge(m, src) +} +func (m *OrgMemberSearchRequest) XXX_Size() int { + return xxx_messageInfo_OrgMemberSearchRequest.Size(m) +} +func (m *OrgMemberSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_OrgMemberSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgMemberSearchRequest proto.InternalMessageInfo + +func (m *OrgMemberSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *OrgMemberSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *OrgMemberSearchRequest) GetQueries() []*OrgMemberSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type OrgMemberSearchQuery struct { + Key OrgMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.OrgMemberSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.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 *OrgMemberSearchQuery) Reset() { *m = OrgMemberSearchQuery{} } +func (m *OrgMemberSearchQuery) String() string { return proto.CompactTextString(m) } +func (*OrgMemberSearchQuery) ProtoMessage() {} +func (*OrgMemberSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{67} +} + +func (m *OrgMemberSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OrgMemberSearchQuery.Unmarshal(m, b) +} +func (m *OrgMemberSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OrgMemberSearchQuery.Marshal(b, m, deterministic) +} +func (m *OrgMemberSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrgMemberSearchQuery.Merge(m, src) +} +func (m *OrgMemberSearchQuery) XXX_Size() int { + return xxx_messageInfo_OrgMemberSearchQuery.Size(m) +} +func (m *OrgMemberSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_OrgMemberSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_OrgMemberSearchQuery proto.InternalMessageInfo + +func (m *OrgMemberSearchQuery) GetKey() OrgMemberSearchKey { + if m != nil { + return m.Key + } + return OrgMemberSearchKey_ORGMEMBERSEARCHKEY_UNSPECIFIED +} + +func (m *OrgMemberSearchQuery) GetMethod() SearchMethod { + if m != nil { + return m.Method + } + return SearchMethod_SEARCHMETHOD_EQUALS +} + +func (m *OrgMemberSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type ProjectCreateRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectCreateRequest) Reset() { *m = ProjectCreateRequest{} } +func (m *ProjectCreateRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectCreateRequest) ProtoMessage() {} +func (*ProjectCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{68} +} + +func (m *ProjectCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectCreateRequest.Unmarshal(m, b) +} +func (m *ProjectCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectCreateRequest.Marshal(b, m, deterministic) +} +func (m *ProjectCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectCreateRequest.Merge(m, src) +} +func (m *ProjectCreateRequest) XXX_Size() int { + return xxx_messageInfo_ProjectCreateRequest.Size(m) +} +func (m *ProjectCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectCreateRequest proto.InternalMessageInfo + +func (m *ProjectCreateRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type ProjectUpdateRequest 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:"-"` +} + +func (m *ProjectUpdateRequest) Reset() { *m = ProjectUpdateRequest{} } +func (m *ProjectUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectUpdateRequest) ProtoMessage() {} +func (*ProjectUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{69} +} + +func (m *ProjectUpdateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectUpdateRequest.Unmarshal(m, b) +} +func (m *ProjectUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectUpdateRequest.Marshal(b, m, deterministic) +} +func (m *ProjectUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectUpdateRequest.Merge(m, src) +} +func (m *ProjectUpdateRequest) XXX_Size() int { + return xxx_messageInfo_ProjectUpdateRequest.Size(m) +} +func (m *ProjectUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectUpdateRequest proto.InternalMessageInfo + +func (m *ProjectUpdateRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectUpdateRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type ProjectSearchResponse 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 []*ProjectView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectSearchResponse) Reset() { *m = ProjectSearchResponse{} } +func (m *ProjectSearchResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectSearchResponse) ProtoMessage() {} +func (*ProjectSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{70} +} + +func (m *ProjectSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectSearchResponse.Unmarshal(m, b) +} +func (m *ProjectSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectSearchResponse.Marshal(b, m, deterministic) +} +func (m *ProjectSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectSearchResponse.Merge(m, src) +} +func (m *ProjectSearchResponse) XXX_Size() int { + return xxx_messageInfo_ProjectSearchResponse.Size(m) +} +func (m *ProjectSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectSearchResponse proto.InternalMessageInfo + +func (m *ProjectSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *ProjectSearchResponse) GetResult() []*ProjectView { + if m != nil { + return m.Result + } + return nil +} + +type ProjectView struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + State ProjectState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectState" json:"state,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ResourceOwner string `protobuf:"bytes,6,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` + Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectView) Reset() { *m = ProjectView{} } +func (m *ProjectView) String() string { return proto.CompactTextString(m) } +func (*ProjectView) ProtoMessage() {} +func (*ProjectView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{71} +} + +func (m *ProjectView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectView.Unmarshal(m, b) +} +func (m *ProjectView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectView.Marshal(b, m, deterministic) +} +func (m *ProjectView) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectView.Merge(m, src) +} +func (m *ProjectView) XXX_Size() int { + return xxx_messageInfo_ProjectView.Size(m) +} +func (m *ProjectView) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectView.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectView proto.InternalMessageInfo + +func (m *ProjectView) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectView) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ProjectView) GetState() ProjectState { + if m != nil { + return m.State + } + return ProjectState_PROJECTSTATE_UNSPECIFIED +} + +func (m *ProjectView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *ProjectView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *ProjectView) GetResourceOwner() string { + if m != nil { + return m.ResourceOwner + } + return "" +} + +func (m *ProjectView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type ProjectSearchRequest 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"` + Queries []*ProjectSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectSearchRequest) Reset() { *m = ProjectSearchRequest{} } +func (m *ProjectSearchRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectSearchRequest) ProtoMessage() {} +func (*ProjectSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{72} +} + +func (m *ProjectSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectSearchRequest.Unmarshal(m, b) +} +func (m *ProjectSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectSearchRequest.Marshal(b, m, deterministic) +} +func (m *ProjectSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectSearchRequest.Merge(m, src) +} +func (m *ProjectSearchRequest) XXX_Size() int { + return xxx_messageInfo_ProjectSearchRequest.Size(m) +} +func (m *ProjectSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectSearchRequest proto.InternalMessageInfo + +func (m *ProjectSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectSearchRequest) GetQueries() []*ProjectSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type ProjectSearchQuery struct { + Key ProjectSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.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 *ProjectSearchQuery) Reset() { *m = ProjectSearchQuery{} } +func (m *ProjectSearchQuery) String() string { return proto.CompactTextString(m) } +func (*ProjectSearchQuery) ProtoMessage() {} +func (*ProjectSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{73} +} + +func (m *ProjectSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectSearchQuery.Unmarshal(m, b) +} +func (m *ProjectSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectSearchQuery.Marshal(b, m, deterministic) +} +func (m *ProjectSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectSearchQuery.Merge(m, src) +} +func (m *ProjectSearchQuery) XXX_Size() int { + return xxx_messageInfo_ProjectSearchQuery.Size(m) +} +func (m *ProjectSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectSearchQuery proto.InternalMessageInfo + +func (m *ProjectSearchQuery) GetKey() ProjectSearchKey { + if m != nil { + return m.Key + } + return ProjectSearchKey_PROJECTSEARCHKEY_UNSPECIFIED +} + +func (m *ProjectSearchQuery) GetMethod() SearchMethod { + if m != nil { + return m.Method + } + return SearchMethod_SEARCHMETHOD_EQUALS +} + +func (m *ProjectSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type Projects struct { + Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Projects) Reset() { *m = Projects{} } +func (m *Projects) String() string { return proto.CompactTextString(m) } +func (*Projects) ProtoMessage() {} +func (*Projects) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{74} +} + +func (m *Projects) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Projects.Unmarshal(m, b) +} +func (m *Projects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Projects.Marshal(b, m, deterministic) +} +func (m *Projects) XXX_Merge(src proto.Message) { + xxx_messageInfo_Projects.Merge(m, src) +} +func (m *Projects) XXX_Size() int { + return xxx_messageInfo_Projects.Size(m) +} +func (m *Projects) XXX_DiscardUnknown() { + xxx_messageInfo_Projects.DiscardUnknown(m) +} + +var xxx_messageInfo_Projects proto.InternalMessageInfo + +func (m *Projects) GetProjects() []*Project { + if m != nil { + return m.Projects + } + return nil +} + +type Project 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"` + State ProjectState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectState" json:"state,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Project) Reset() { *m = Project{} } +func (m *Project) String() string { return proto.CompactTextString(m) } +func (*Project) ProtoMessage() {} +func (*Project) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{75} +} + +func (m *Project) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Project.Unmarshal(m, b) +} +func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Project.Marshal(b, m, deterministic) +} +func (m *Project) XXX_Merge(src proto.Message) { + xxx_messageInfo_Project.Merge(m, src) +} +func (m *Project) XXX_Size() int { + return xxx_messageInfo_Project.Size(m) +} +func (m *Project) XXX_DiscardUnknown() { + xxx_messageInfo_Project.DiscardUnknown(m) +} + +var xxx_messageInfo_Project proto.InternalMessageInfo + +func (m *Project) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Project) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Project) GetState() ProjectState { + if m != nil { + return m.State + } + return ProjectState_PROJECTSTATE_UNSPECIFIED +} + +func (m *Project) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *Project) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *Project) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type ProjectMemberRoles struct { + Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectMemberRoles) Reset() { *m = ProjectMemberRoles{} } +func (m *ProjectMemberRoles) String() string { return proto.CompactTextString(m) } +func (*ProjectMemberRoles) ProtoMessage() {} +func (*ProjectMemberRoles) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{76} +} + +func (m *ProjectMemberRoles) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectMemberRoles.Unmarshal(m, b) +} +func (m *ProjectMemberRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectMemberRoles.Marshal(b, m, deterministic) +} +func (m *ProjectMemberRoles) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectMemberRoles.Merge(m, src) +} +func (m *ProjectMemberRoles) XXX_Size() int { + return xxx_messageInfo_ProjectMemberRoles.Size(m) +} +func (m *ProjectMemberRoles) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectMemberRoles.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectMemberRoles proto.InternalMessageInfo + +func (m *ProjectMemberRoles) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type ProjectMember struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectMember) Reset() { *m = ProjectMember{} } +func (m *ProjectMember) String() string { return proto.CompactTextString(m) } +func (*ProjectMember) ProtoMessage() {} +func (*ProjectMember) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{77} +} + +func (m *ProjectMember) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectMember.Unmarshal(m, b) +} +func (m *ProjectMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectMember.Marshal(b, m, deterministic) +} +func (m *ProjectMember) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectMember.Merge(m, src) +} +func (m *ProjectMember) XXX_Size() int { + return xxx_messageInfo_ProjectMember.Size(m) +} +func (m *ProjectMember) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectMember.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectMember proto.InternalMessageInfo + +func (m *ProjectMember) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectMember) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +func (m *ProjectMember) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *ProjectMember) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *ProjectMember) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type ProjectMemberAdd struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectMemberAdd) Reset() { *m = ProjectMemberAdd{} } +func (m *ProjectMemberAdd) String() string { return proto.CompactTextString(m) } +func (*ProjectMemberAdd) ProtoMessage() {} +func (*ProjectMemberAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{78} +} + +func (m *ProjectMemberAdd) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectMemberAdd.Unmarshal(m, b) +} +func (m *ProjectMemberAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectMemberAdd.Marshal(b, m, deterministic) +} +func (m *ProjectMemberAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectMemberAdd.Merge(m, src) +} +func (m *ProjectMemberAdd) XXX_Size() int { + return xxx_messageInfo_ProjectMemberAdd.Size(m) +} +func (m *ProjectMemberAdd) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectMemberAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectMemberAdd proto.InternalMessageInfo + +func (m *ProjectMemberAdd) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectMemberAdd) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectMemberAdd) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type ProjectMemberChange struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectMemberChange) Reset() { *m = ProjectMemberChange{} } +func (m *ProjectMemberChange) String() string { return proto.CompactTextString(m) } +func (*ProjectMemberChange) ProtoMessage() {} +func (*ProjectMemberChange) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{79} +} + +func (m *ProjectMemberChange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectMemberChange.Unmarshal(m, b) +} +func (m *ProjectMemberChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectMemberChange.Marshal(b, m, deterministic) +} +func (m *ProjectMemberChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectMemberChange.Merge(m, src) +} +func (m *ProjectMemberChange) XXX_Size() int { + return xxx_messageInfo_ProjectMemberChange.Size(m) +} +func (m *ProjectMemberChange) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectMemberChange.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectMemberChange proto.InternalMessageInfo + +func (m *ProjectMemberChange) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectMemberChange) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectMemberChange) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type ProjectMemberRemove struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + UserId string `protobuf:"bytes,2,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 *ProjectMemberRemove) Reset() { *m = ProjectMemberRemove{} } +func (m *ProjectMemberRemove) String() string { return proto.CompactTextString(m) } +func (*ProjectMemberRemove) ProtoMessage() {} +func (*ProjectMemberRemove) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{80} +} + +func (m *ProjectMemberRemove) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectMemberRemove.Unmarshal(m, b) +} +func (m *ProjectMemberRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectMemberRemove.Marshal(b, m, deterministic) +} +func (m *ProjectMemberRemove) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectMemberRemove.Merge(m, src) +} +func (m *ProjectMemberRemove) XXX_Size() int { + return xxx_messageInfo_ProjectMemberRemove.Size(m) +} +func (m *ProjectMemberRemove) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectMemberRemove.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectMemberRemove proto.InternalMessageInfo + +func (m *ProjectMemberRemove) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectMemberRemove) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +type ProjectRoleAdd struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRoleAdd) Reset() { *m = ProjectRoleAdd{} } +func (m *ProjectRoleAdd) String() string { return proto.CompactTextString(m) } +func (*ProjectRoleAdd) ProtoMessage() {} +func (*ProjectRoleAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{81} +} + +func (m *ProjectRoleAdd) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRoleAdd.Unmarshal(m, b) +} +func (m *ProjectRoleAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRoleAdd.Marshal(b, m, deterministic) +} +func (m *ProjectRoleAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRoleAdd.Merge(m, src) +} +func (m *ProjectRoleAdd) XXX_Size() int { + return xxx_messageInfo_ProjectRoleAdd.Size(m) +} +func (m *ProjectRoleAdd) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRoleAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRoleAdd proto.InternalMessageInfo + +func (m *ProjectRoleAdd) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectRoleAdd) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *ProjectRoleAdd) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *ProjectRoleAdd) GetGroup() string { + if m != nil { + return m.Group + } + return "" +} + +type ProjectRoleAddBulk struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProjectRoles []*ProjectRoleAdd `protobuf:"bytes,2,rep,name=project_roles,json=projectRoles,proto3" json:"project_roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRoleAddBulk) Reset() { *m = ProjectRoleAddBulk{} } +func (m *ProjectRoleAddBulk) String() string { return proto.CompactTextString(m) } +func (*ProjectRoleAddBulk) ProtoMessage() {} +func (*ProjectRoleAddBulk) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{82} +} + +func (m *ProjectRoleAddBulk) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRoleAddBulk.Unmarshal(m, b) +} +func (m *ProjectRoleAddBulk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRoleAddBulk.Marshal(b, m, deterministic) +} +func (m *ProjectRoleAddBulk) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRoleAddBulk.Merge(m, src) +} +func (m *ProjectRoleAddBulk) XXX_Size() int { + return xxx_messageInfo_ProjectRoleAddBulk.Size(m) +} +func (m *ProjectRoleAddBulk) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRoleAddBulk.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRoleAddBulk proto.InternalMessageInfo + +func (m *ProjectRoleAddBulk) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectRoleAddBulk) GetProjectRoles() []*ProjectRoleAdd { + if m != nil { + return m.ProjectRoles + } + return nil +} + +type ProjectRoleChange struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRoleChange) Reset() { *m = ProjectRoleChange{} } +func (m *ProjectRoleChange) String() string { return proto.CompactTextString(m) } +func (*ProjectRoleChange) ProtoMessage() {} +func (*ProjectRoleChange) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{83} +} + +func (m *ProjectRoleChange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRoleChange.Unmarshal(m, b) +} +func (m *ProjectRoleChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRoleChange.Marshal(b, m, deterministic) +} +func (m *ProjectRoleChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRoleChange.Merge(m, src) +} +func (m *ProjectRoleChange) XXX_Size() int { + return xxx_messageInfo_ProjectRoleChange.Size(m) +} +func (m *ProjectRoleChange) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRoleChange.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRoleChange proto.InternalMessageInfo + +func (m *ProjectRoleChange) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectRoleChange) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *ProjectRoleChange) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *ProjectRoleChange) GetGroup() string { + if m != nil { + return m.Group + } + return "" +} + +type ProjectRole struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + Group string `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"` + Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRole) Reset() { *m = ProjectRole{} } +func (m *ProjectRole) String() string { return proto.CompactTextString(m) } +func (*ProjectRole) ProtoMessage() {} +func (*ProjectRole) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{84} +} + +func (m *ProjectRole) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRole.Unmarshal(m, b) +} +func (m *ProjectRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRole.Marshal(b, m, deterministic) +} +func (m *ProjectRole) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRole.Merge(m, src) +} +func (m *ProjectRole) XXX_Size() int { + return xxx_messageInfo_ProjectRole.Size(m) +} +func (m *ProjectRole) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRole.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRole proto.InternalMessageInfo + +func (m *ProjectRole) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectRole) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *ProjectRole) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *ProjectRole) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *ProjectRole) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *ProjectRole) GetGroup() string { + if m != nil { + return m.Group + } + return "" +} + +func (m *ProjectRole) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type ProjectRoleView struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + Group string `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"` + Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRoleView) Reset() { *m = ProjectRoleView{} } +func (m *ProjectRoleView) String() string { return proto.CompactTextString(m) } +func (*ProjectRoleView) ProtoMessage() {} +func (*ProjectRoleView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{85} +} + +func (m *ProjectRoleView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRoleView.Unmarshal(m, b) +} +func (m *ProjectRoleView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRoleView.Marshal(b, m, deterministic) +} +func (m *ProjectRoleView) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRoleView.Merge(m, src) +} +func (m *ProjectRoleView) XXX_Size() int { + return xxx_messageInfo_ProjectRoleView.Size(m) +} +func (m *ProjectRoleView) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRoleView.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRoleView proto.InternalMessageInfo + +func (m *ProjectRoleView) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectRoleView) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *ProjectRoleView) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *ProjectRoleView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *ProjectRoleView) GetGroup() string { + if m != nil { + return m.Group + } + return "" +} + +func (m *ProjectRoleView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type ProjectRoleRemove struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRoleRemove) Reset() { *m = ProjectRoleRemove{} } +func (m *ProjectRoleRemove) String() string { return proto.CompactTextString(m) } +func (*ProjectRoleRemove) ProtoMessage() {} +func (*ProjectRoleRemove) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{86} +} + +func (m *ProjectRoleRemove) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRoleRemove.Unmarshal(m, b) +} +func (m *ProjectRoleRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRoleRemove.Marshal(b, m, deterministic) +} +func (m *ProjectRoleRemove) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRoleRemove.Merge(m, src) +} +func (m *ProjectRoleRemove) XXX_Size() int { + return xxx_messageInfo_ProjectRoleRemove.Size(m) +} +func (m *ProjectRoleRemove) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRoleRemove.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRoleRemove proto.InternalMessageInfo + +func (m *ProjectRoleRemove) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectRoleRemove) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +type ProjectRoleSearchResponse 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 []*ProjectRoleView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRoleSearchResponse) Reset() { *m = ProjectRoleSearchResponse{} } +func (m *ProjectRoleSearchResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectRoleSearchResponse) ProtoMessage() {} +func (*ProjectRoleSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{87} +} + +func (m *ProjectRoleSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRoleSearchResponse.Unmarshal(m, b) +} +func (m *ProjectRoleSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRoleSearchResponse.Marshal(b, m, deterministic) +} +func (m *ProjectRoleSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRoleSearchResponse.Merge(m, src) +} +func (m *ProjectRoleSearchResponse) XXX_Size() int { + return xxx_messageInfo_ProjectRoleSearchResponse.Size(m) +} +func (m *ProjectRoleSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRoleSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRoleSearchResponse proto.InternalMessageInfo + +func (m *ProjectRoleSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectRoleSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectRoleSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *ProjectRoleSearchResponse) GetResult() []*ProjectRoleView { + if m != nil { + return m.Result + } + return nil +} + +type ProjectRoleSearchRequest struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + Queries []*ProjectRoleSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRoleSearchRequest) Reset() { *m = ProjectRoleSearchRequest{} } +func (m *ProjectRoleSearchRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectRoleSearchRequest) ProtoMessage() {} +func (*ProjectRoleSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{88} +} + +func (m *ProjectRoleSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRoleSearchRequest.Unmarshal(m, b) +} +func (m *ProjectRoleSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRoleSearchRequest.Marshal(b, m, deterministic) +} +func (m *ProjectRoleSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRoleSearchRequest.Merge(m, src) +} +func (m *ProjectRoleSearchRequest) XXX_Size() int { + return xxx_messageInfo_ProjectRoleSearchRequest.Size(m) +} +func (m *ProjectRoleSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRoleSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRoleSearchRequest proto.InternalMessageInfo + +func (m *ProjectRoleSearchRequest) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectRoleSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectRoleSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectRoleSearchRequest) GetQueries() []*ProjectRoleSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type ProjectRoleSearchQuery struct { + Key ProjectRoleSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectRoleSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.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 *ProjectRoleSearchQuery) Reset() { *m = ProjectRoleSearchQuery{} } +func (m *ProjectRoleSearchQuery) String() string { return proto.CompactTextString(m) } +func (*ProjectRoleSearchQuery) ProtoMessage() {} +func (*ProjectRoleSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{89} +} + +func (m *ProjectRoleSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRoleSearchQuery.Unmarshal(m, b) +} +func (m *ProjectRoleSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRoleSearchQuery.Marshal(b, m, deterministic) +} +func (m *ProjectRoleSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRoleSearchQuery.Merge(m, src) +} +func (m *ProjectRoleSearchQuery) XXX_Size() int { + return xxx_messageInfo_ProjectRoleSearchQuery.Size(m) +} +func (m *ProjectRoleSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRoleSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRoleSearchQuery proto.InternalMessageInfo + +func (m *ProjectRoleSearchQuery) GetKey() ProjectRoleSearchKey { + if m != nil { + return m.Key + } + return ProjectRoleSearchKey_PROJECTROLESEARCHKEY_UNSPECIFIED +} + +func (m *ProjectRoleSearchQuery) GetMethod() SearchMethod { + if m != nil { + return m.Method + } + return SearchMethod_SEARCHMETHOD_EQUALS +} + +func (m *ProjectRoleSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type ProjectMemberView 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"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + Sequence uint64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectMemberView) Reset() { *m = ProjectMemberView{} } +func (m *ProjectMemberView) String() string { return proto.CompactTextString(m) } +func (*ProjectMemberView) ProtoMessage() {} +func (*ProjectMemberView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{90} +} + +func (m *ProjectMemberView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectMemberView.Unmarshal(m, b) +} +func (m *ProjectMemberView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectMemberView.Marshal(b, m, deterministic) +} +func (m *ProjectMemberView) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectMemberView.Merge(m, src) +} +func (m *ProjectMemberView) XXX_Size() int { + return xxx_messageInfo_ProjectMemberView.Size(m) +} +func (m *ProjectMemberView) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectMemberView.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectMemberView proto.InternalMessageInfo + +func (m *ProjectMemberView) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectMemberView) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *ProjectMemberView) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *ProjectMemberView) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *ProjectMemberView) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *ProjectMemberView) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +func (m *ProjectMemberView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *ProjectMemberView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *ProjectMemberView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type ProjectMemberSearchResponse 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 []*ProjectMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectMemberSearchResponse) Reset() { *m = ProjectMemberSearchResponse{} } +func (m *ProjectMemberSearchResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectMemberSearchResponse) ProtoMessage() {} +func (*ProjectMemberSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{91} +} + +func (m *ProjectMemberSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectMemberSearchResponse.Unmarshal(m, b) +} +func (m *ProjectMemberSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectMemberSearchResponse.Marshal(b, m, deterministic) +} +func (m *ProjectMemberSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectMemberSearchResponse.Merge(m, src) +} +func (m *ProjectMemberSearchResponse) XXX_Size() int { + return xxx_messageInfo_ProjectMemberSearchResponse.Size(m) +} +func (m *ProjectMemberSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectMemberSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectMemberSearchResponse proto.InternalMessageInfo + +func (m *ProjectMemberSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectMemberSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectMemberSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *ProjectMemberSearchResponse) GetResult() []*ProjectMemberView { + if m != nil { + return m.Result + } + return nil +} + +type ProjectMemberSearchRequest struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + Queries []*ProjectMemberSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectMemberSearchRequest) Reset() { *m = ProjectMemberSearchRequest{} } +func (m *ProjectMemberSearchRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectMemberSearchRequest) ProtoMessage() {} +func (*ProjectMemberSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{92} +} + +func (m *ProjectMemberSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectMemberSearchRequest.Unmarshal(m, b) +} +func (m *ProjectMemberSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectMemberSearchRequest.Marshal(b, m, deterministic) +} +func (m *ProjectMemberSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectMemberSearchRequest.Merge(m, src) +} +func (m *ProjectMemberSearchRequest) XXX_Size() int { + return xxx_messageInfo_ProjectMemberSearchRequest.Size(m) +} +func (m *ProjectMemberSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectMemberSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectMemberSearchRequest proto.InternalMessageInfo + +func (m *ProjectMemberSearchRequest) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectMemberSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectMemberSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectMemberSearchRequest) GetQueries() []*ProjectMemberSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type ProjectMemberSearchQuery struct { + Key ProjectMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectMemberSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.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 *ProjectMemberSearchQuery) Reset() { *m = ProjectMemberSearchQuery{} } +func (m *ProjectMemberSearchQuery) String() string { return proto.CompactTextString(m) } +func (*ProjectMemberSearchQuery) ProtoMessage() {} +func (*ProjectMemberSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{93} +} + +func (m *ProjectMemberSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectMemberSearchQuery.Unmarshal(m, b) +} +func (m *ProjectMemberSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectMemberSearchQuery.Marshal(b, m, deterministic) +} +func (m *ProjectMemberSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectMemberSearchQuery.Merge(m, src) +} +func (m *ProjectMemberSearchQuery) XXX_Size() int { + return xxx_messageInfo_ProjectMemberSearchQuery.Size(m) +} +func (m *ProjectMemberSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectMemberSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectMemberSearchQuery proto.InternalMessageInfo + +func (m *ProjectMemberSearchQuery) GetKey() ProjectMemberSearchKey { + if m != nil { + return m.Key + } + return ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_UNSPECIFIED +} + +func (m *ProjectMemberSearchQuery) GetMethod() SearchMethod { + if m != nil { + return m.Method + } + return SearchMethod_SEARCHMETHOD_EQUALS +} + +func (m *ProjectMemberSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + 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=caos.zitadel.management.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"` + Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` + 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_edc174f991dc0a25, []int{94} +} + +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 +} + +func (m *Application) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Application) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Application_OidcConfig)(nil), + } +} + +type ApplicationUpdate struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ApplicationUpdate) Reset() { *m = ApplicationUpdate{} } +func (m *ApplicationUpdate) String() string { return proto.CompactTextString(m) } +func (*ApplicationUpdate) ProtoMessage() {} +func (*ApplicationUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{95} +} + +func (m *ApplicationUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ApplicationUpdate.Unmarshal(m, b) +} +func (m *ApplicationUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ApplicationUpdate.Marshal(b, m, deterministic) +} +func (m *ApplicationUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationUpdate.Merge(m, src) +} +func (m *ApplicationUpdate) XXX_Size() int { + return xxx_messageInfo_ApplicationUpdate.Size(m) +} +func (m *ApplicationUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationUpdate proto.InternalMessageInfo + +func (m *ApplicationUpdate) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ApplicationUpdate) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ApplicationUpdate) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +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=caos.zitadel.management.api.v1.OIDCResponseType" json:"response_types,omitempty"` + GrantTypes []OIDCGrantType `protobuf:"varint,3,rep,packed,name=grant_types,json=grantTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCGrantType" json:"grant_types,omitempty"` + ApplicationType OIDCApplicationType `protobuf:"varint,4,opt,name=application_type,json=applicationType,proto3,enum=caos.zitadel.management.api.v1.OIDCApplicationType" json:"application_type,omitempty"` + ClientId string `protobuf:"bytes,5,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ClientSecret string `protobuf:"bytes,6,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` + AuthMethodType OIDCAuthMethodType `protobuf:"varint,7,opt,name=auth_method_type,json=authMethodType,proto3,enum=caos.zitadel.management.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_edc174f991dc0a25, []int{96} +} + +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) GetClientId() string { + if m != nil { + return m.ClientId + } + return "" +} + +func (m *OIDCConfig) GetClientSecret() string { + if m != nil { + return m.ClientSecret + } + 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 OIDCApplicationCreate struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"` + ResponseTypes []OIDCResponseType `protobuf:"varint,4,rep,packed,name=response_types,json=responseTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCResponseType" json:"response_types,omitempty"` + GrantTypes []OIDCGrantType `protobuf:"varint,5,rep,packed,name=grant_types,json=grantTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCGrantType" json:"grant_types,omitempty"` + ApplicationType OIDCApplicationType `protobuf:"varint,6,opt,name=application_type,json=applicationType,proto3,enum=caos.zitadel.management.api.v1.OIDCApplicationType" json:"application_type,omitempty"` + AuthMethodType OIDCAuthMethodType `protobuf:"varint,7,opt,name=auth_method_type,json=authMethodType,proto3,enum=caos.zitadel.management.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 *OIDCApplicationCreate) Reset() { *m = OIDCApplicationCreate{} } +func (m *OIDCApplicationCreate) String() string { return proto.CompactTextString(m) } +func (*OIDCApplicationCreate) ProtoMessage() {} +func (*OIDCApplicationCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{97} +} + +func (m *OIDCApplicationCreate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OIDCApplicationCreate.Unmarshal(m, b) +} +func (m *OIDCApplicationCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OIDCApplicationCreate.Marshal(b, m, deterministic) +} +func (m *OIDCApplicationCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_OIDCApplicationCreate.Merge(m, src) +} +func (m *OIDCApplicationCreate) XXX_Size() int { + return xxx_messageInfo_OIDCApplicationCreate.Size(m) +} +func (m *OIDCApplicationCreate) XXX_DiscardUnknown() { + xxx_messageInfo_OIDCApplicationCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_OIDCApplicationCreate proto.InternalMessageInfo + +func (m *OIDCApplicationCreate) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *OIDCApplicationCreate) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *OIDCApplicationCreate) GetRedirectUris() []string { + if m != nil { + return m.RedirectUris + } + return nil +} + +func (m *OIDCApplicationCreate) GetResponseTypes() []OIDCResponseType { + if m != nil { + return m.ResponseTypes + } + return nil +} + +func (m *OIDCApplicationCreate) GetGrantTypes() []OIDCGrantType { + if m != nil { + return m.GrantTypes + } + return nil +} + +func (m *OIDCApplicationCreate) GetApplicationType() OIDCApplicationType { + if m != nil { + return m.ApplicationType + } + return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB +} + +func (m *OIDCApplicationCreate) GetAuthMethodType() OIDCAuthMethodType { + if m != nil { + return m.AuthMethodType + } + return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC +} + +func (m *OIDCApplicationCreate) GetPostLogoutRedirectUris() []string { + if m != nil { + return m.PostLogoutRedirectUris + } + return nil +} + +type OIDCConfigUpdate struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ApplicationId string `protobuf:"bytes,2,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"` + RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"` + ResponseTypes []OIDCResponseType `protobuf:"varint,4,rep,packed,name=response_types,json=responseTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCResponseType" json:"response_types,omitempty"` + GrantTypes []OIDCGrantType `protobuf:"varint,5,rep,packed,name=grant_types,json=grantTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCGrantType" json:"grant_types,omitempty"` + ApplicationType OIDCApplicationType `protobuf:"varint,6,opt,name=application_type,json=applicationType,proto3,enum=caos.zitadel.management.api.v1.OIDCApplicationType" json:"application_type,omitempty"` + AuthMethodType OIDCAuthMethodType `protobuf:"varint,7,opt,name=auth_method_type,json=authMethodType,proto3,enum=caos.zitadel.management.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 *OIDCConfigUpdate) Reset() { *m = OIDCConfigUpdate{} } +func (m *OIDCConfigUpdate) String() string { return proto.CompactTextString(m) } +func (*OIDCConfigUpdate) ProtoMessage() {} +func (*OIDCConfigUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{98} +} + +func (m *OIDCConfigUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OIDCConfigUpdate.Unmarshal(m, b) +} +func (m *OIDCConfigUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OIDCConfigUpdate.Marshal(b, m, deterministic) +} +func (m *OIDCConfigUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_OIDCConfigUpdate.Merge(m, src) +} +func (m *OIDCConfigUpdate) XXX_Size() int { + return xxx_messageInfo_OIDCConfigUpdate.Size(m) +} +func (m *OIDCConfigUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_OIDCConfigUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_OIDCConfigUpdate proto.InternalMessageInfo + +func (m *OIDCConfigUpdate) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *OIDCConfigUpdate) GetApplicationId() string { + if m != nil { + return m.ApplicationId + } + return "" +} + +func (m *OIDCConfigUpdate) GetRedirectUris() []string { + if m != nil { + return m.RedirectUris + } + return nil +} + +func (m *OIDCConfigUpdate) GetResponseTypes() []OIDCResponseType { + if m != nil { + return m.ResponseTypes + } + return nil +} + +func (m *OIDCConfigUpdate) GetGrantTypes() []OIDCGrantType { + if m != nil { + return m.GrantTypes + } + return nil +} + +func (m *OIDCConfigUpdate) GetApplicationType() OIDCApplicationType { + if m != nil { + return m.ApplicationType + } + return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB +} + +func (m *OIDCConfigUpdate) GetAuthMethodType() OIDCAuthMethodType { + if m != nil { + return m.AuthMethodType + } + return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC +} + +func (m *OIDCConfigUpdate) GetPostLogoutRedirectUris() []string { + if m != nil { + return m.PostLogoutRedirectUris + } + return nil +} + +type ClientSecret struct { + ClientSecret string `protobuf:"bytes,1,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClientSecret) Reset() { *m = ClientSecret{} } +func (m *ClientSecret) String() string { return proto.CompactTextString(m) } +func (*ClientSecret) ProtoMessage() {} +func (*ClientSecret) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{99} +} + +func (m *ClientSecret) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientSecret.Unmarshal(m, b) +} +func (m *ClientSecret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientSecret.Marshal(b, m, deterministic) +} +func (m *ClientSecret) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientSecret.Merge(m, src) +} +func (m *ClientSecret) XXX_Size() int { + return xxx_messageInfo_ClientSecret.Size(m) +} +func (m *ClientSecret) XXX_DiscardUnknown() { + xxx_messageInfo_ClientSecret.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientSecret proto.InternalMessageInfo + +func (m *ClientSecret) GetClientSecret() string { + if m != nil { + return m.ClientSecret + } + return "" +} + +type ApplicationView struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State AppState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.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: + // *ApplicationView_OidcConfig + AppConfig isApplicationView_AppConfig `protobuf_oneof:"app_config"` + Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ApplicationView) Reset() { *m = ApplicationView{} } +func (m *ApplicationView) String() string { return proto.CompactTextString(m) } +func (*ApplicationView) ProtoMessage() {} +func (*ApplicationView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{100} +} + +func (m *ApplicationView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ApplicationView.Unmarshal(m, b) +} +func (m *ApplicationView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ApplicationView.Marshal(b, m, deterministic) +} +func (m *ApplicationView) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationView.Merge(m, src) +} +func (m *ApplicationView) XXX_Size() int { + return xxx_messageInfo_ApplicationView.Size(m) +} +func (m *ApplicationView) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationView.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationView proto.InternalMessageInfo + +func (m *ApplicationView) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ApplicationView) GetState() AppState { + if m != nil { + return m.State + } + return AppState_APPSTATE_UNSPECIFIED +} + +func (m *ApplicationView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *ApplicationView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *ApplicationView) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isApplicationView_AppConfig interface { + isApplicationView_AppConfig() +} + +type ApplicationView_OidcConfig struct { + OidcConfig *OIDCConfig `protobuf:"bytes,8,opt,name=oidc_config,json=oidcConfig,proto3,oneof"` +} + +func (*ApplicationView_OidcConfig) isApplicationView_AppConfig() {} + +func (m *ApplicationView) GetAppConfig() isApplicationView_AppConfig { + if m != nil { + return m.AppConfig + } + return nil +} + +func (m *ApplicationView) GetOidcConfig() *OIDCConfig { + if x, ok := m.GetAppConfig().(*ApplicationView_OidcConfig); ok { + return x.OidcConfig + } + return nil +} + +func (m *ApplicationView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ApplicationView) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ApplicationView_OidcConfig)(nil), + } +} + +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 []*ApplicationView `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_edc174f991dc0a25, []int{101} +} + +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() []*ApplicationView { + if m != nil { + return m.Result + } + return nil +} + +type ApplicationSearchRequest struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + Queries []*ApplicationSearchQuery `protobuf:"bytes,4,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_edc174f991dc0a25, []int{102} +} + +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) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +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) GetQueries() []*ApplicationSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type ApplicationSearchQuery struct { + Key ApplicationSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ApplicationSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.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_edc174f991dc0a25, []int{103} +} + +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_APPLICATIONSERACHKEY_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 ProjectGrant struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + GrantedOrgId string `protobuf:"bytes,3,opt,name=granted_org_id,json=grantedOrgId,proto3" json:"granted_org_id,omitempty"` + RoleKeys []string `protobuf:"bytes,4,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + State ProjectGrantState `protobuf:"varint,5,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantState" json:"state,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrant) Reset() { *m = ProjectGrant{} } +func (m *ProjectGrant) String() string { return proto.CompactTextString(m) } +func (*ProjectGrant) ProtoMessage() {} +func (*ProjectGrant) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{104} +} + +func (m *ProjectGrant) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrant.Unmarshal(m, b) +} +func (m *ProjectGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrant.Marshal(b, m, deterministic) +} +func (m *ProjectGrant) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrant.Merge(m, src) +} +func (m *ProjectGrant) XXX_Size() int { + return xxx_messageInfo_ProjectGrant.Size(m) +} +func (m *ProjectGrant) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrant.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrant proto.InternalMessageInfo + +func (m *ProjectGrant) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectGrant) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrant) GetGrantedOrgId() string { + if m != nil { + return m.GrantedOrgId + } + return "" +} + +func (m *ProjectGrant) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +func (m *ProjectGrant) GetState() ProjectGrantState { + if m != nil { + return m.State + } + return ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED +} + +func (m *ProjectGrant) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *ProjectGrant) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *ProjectGrant) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type ProjectGrantCreate struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + GrantedOrgId string `protobuf:"bytes,2,opt,name=granted_org_id,json=grantedOrgId,proto3" json:"granted_org_id,omitempty"` + RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantCreate) Reset() { *m = ProjectGrantCreate{} } +func (m *ProjectGrantCreate) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantCreate) ProtoMessage() {} +func (*ProjectGrantCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{105} +} + +func (m *ProjectGrantCreate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantCreate.Unmarshal(m, b) +} +func (m *ProjectGrantCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantCreate.Marshal(b, m, deterministic) +} +func (m *ProjectGrantCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantCreate.Merge(m, src) +} +func (m *ProjectGrantCreate) XXX_Size() int { + return xxx_messageInfo_ProjectGrantCreate.Size(m) +} +func (m *ProjectGrantCreate) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantCreate proto.InternalMessageInfo + +func (m *ProjectGrantCreate) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrantCreate) GetGrantedOrgId() string { + if m != nil { + return m.GrantedOrgId + } + return "" +} + +func (m *ProjectGrantCreate) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +type ProjectGrantUpdate struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantUpdate) Reset() { *m = ProjectGrantUpdate{} } +func (m *ProjectGrantUpdate) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantUpdate) ProtoMessage() {} +func (*ProjectGrantUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{106} +} + +func (m *ProjectGrantUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantUpdate.Unmarshal(m, b) +} +func (m *ProjectGrantUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantUpdate.Marshal(b, m, deterministic) +} +func (m *ProjectGrantUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantUpdate.Merge(m, src) +} +func (m *ProjectGrantUpdate) XXX_Size() int { + return xxx_messageInfo_ProjectGrantUpdate.Size(m) +} +func (m *ProjectGrantUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantUpdate proto.InternalMessageInfo + +func (m *ProjectGrantUpdate) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrantUpdate) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectGrantUpdate) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +type ProjectGrantID struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantID) Reset() { *m = ProjectGrantID{} } +func (m *ProjectGrantID) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantID) ProtoMessage() {} +func (*ProjectGrantID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{107} +} + +func (m *ProjectGrantID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantID.Unmarshal(m, b) +} +func (m *ProjectGrantID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantID.Marshal(b, m, deterministic) +} +func (m *ProjectGrantID) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantID.Merge(m, src) +} +func (m *ProjectGrantID) XXX_Size() int { + return xxx_messageInfo_ProjectGrantID.Size(m) +} +func (m *ProjectGrantID) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantID.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantID proto.InternalMessageInfo + +func (m *ProjectGrantID) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrantID) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type ProjectGrantView struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + GrantedOrgId string `protobuf:"bytes,3,opt,name=granted_org_id,json=grantedOrgId,proto3" json:"granted_org_id,omitempty"` + GrantedOrgName string `protobuf:"bytes,4,opt,name=granted_org_name,json=grantedOrgName,proto3" json:"granted_org_name,omitempty"` + RoleKeys []string `protobuf:"bytes,5,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + State ProjectGrantState `protobuf:"varint,6,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantState" json:"state,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + ProjectName string `protobuf:"bytes,9,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` + Sequence uint64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence,omitempty"` + ResourceOwner string `protobuf:"bytes,11,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` + ResourceOwnerName string `protobuf:"bytes,12,opt,name=resource_owner_name,json=resourceOwnerName,proto3" json:"resource_owner_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantView) Reset() { *m = ProjectGrantView{} } +func (m *ProjectGrantView) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantView) ProtoMessage() {} +func (*ProjectGrantView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{108} +} + +func (m *ProjectGrantView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantView.Unmarshal(m, b) +} +func (m *ProjectGrantView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantView.Marshal(b, m, deterministic) +} +func (m *ProjectGrantView) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantView.Merge(m, src) +} +func (m *ProjectGrantView) XXX_Size() int { + return xxx_messageInfo_ProjectGrantView.Size(m) +} +func (m *ProjectGrantView) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantView.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantView proto.InternalMessageInfo + +func (m *ProjectGrantView) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectGrantView) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrantView) GetGrantedOrgId() string { + if m != nil { + return m.GrantedOrgId + } + return "" +} + +func (m *ProjectGrantView) GetGrantedOrgName() string { + if m != nil { + return m.GrantedOrgName + } + return "" +} + +func (m *ProjectGrantView) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +func (m *ProjectGrantView) GetState() ProjectGrantState { + if m != nil { + return m.State + } + return ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED +} + +func (m *ProjectGrantView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *ProjectGrantView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *ProjectGrantView) GetProjectName() string { + if m != nil { + return m.ProjectName + } + return "" +} + +func (m *ProjectGrantView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *ProjectGrantView) GetResourceOwner() string { + if m != nil { + return m.ResourceOwner + } + return "" +} + +func (m *ProjectGrantView) GetResourceOwnerName() string { + if m != nil { + return m.ResourceOwnerName + } + return "" +} + +type ProjectGrantSearchResponse 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 []*ProjectGrantView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantSearchResponse) Reset() { *m = ProjectGrantSearchResponse{} } +func (m *ProjectGrantSearchResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantSearchResponse) ProtoMessage() {} +func (*ProjectGrantSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{109} +} + +func (m *ProjectGrantSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantSearchResponse.Unmarshal(m, b) +} +func (m *ProjectGrantSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantSearchResponse.Marshal(b, m, deterministic) +} +func (m *ProjectGrantSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantSearchResponse.Merge(m, src) +} +func (m *ProjectGrantSearchResponse) XXX_Size() int { + return xxx_messageInfo_ProjectGrantSearchResponse.Size(m) +} +func (m *ProjectGrantSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantSearchResponse proto.InternalMessageInfo + +func (m *ProjectGrantSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectGrantSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectGrantSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *ProjectGrantSearchResponse) GetResult() []*ProjectGrantView { + if m != nil { + return m.Result + } + return nil +} + +type GrantedProjectSearchRequest 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"` + Queries []*ProjectSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GrantedProjectSearchRequest) Reset() { *m = GrantedProjectSearchRequest{} } +func (m *GrantedProjectSearchRequest) String() string { return proto.CompactTextString(m) } +func (*GrantedProjectSearchRequest) ProtoMessage() {} +func (*GrantedProjectSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{110} +} + +func (m *GrantedProjectSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GrantedProjectSearchRequest.Unmarshal(m, b) +} +func (m *GrantedProjectSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GrantedProjectSearchRequest.Marshal(b, m, deterministic) +} +func (m *GrantedProjectSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrantedProjectSearchRequest.Merge(m, src) +} +func (m *GrantedProjectSearchRequest) XXX_Size() int { + return xxx_messageInfo_GrantedProjectSearchRequest.Size(m) +} +func (m *GrantedProjectSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GrantedProjectSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GrantedProjectSearchRequest proto.InternalMessageInfo + +func (m *GrantedProjectSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *GrantedProjectSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *GrantedProjectSearchRequest) GetQueries() []*ProjectSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type ProjectGrantSearchRequest struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + Queries []*ProjectGrantSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantSearchRequest) Reset() { *m = ProjectGrantSearchRequest{} } +func (m *ProjectGrantSearchRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantSearchRequest) ProtoMessage() {} +func (*ProjectGrantSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{111} +} + +func (m *ProjectGrantSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantSearchRequest.Unmarshal(m, b) +} +func (m *ProjectGrantSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantSearchRequest.Marshal(b, m, deterministic) +} +func (m *ProjectGrantSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantSearchRequest.Merge(m, src) +} +func (m *ProjectGrantSearchRequest) XXX_Size() int { + return xxx_messageInfo_ProjectGrantSearchRequest.Size(m) +} +func (m *ProjectGrantSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantSearchRequest proto.InternalMessageInfo + +func (m *ProjectGrantSearchRequest) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrantSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectGrantSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectGrantSearchRequest) GetQueries() []*ProjectGrantSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type ProjectGrantSearchQuery struct { + Key ProjectGrantSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.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 *ProjectGrantSearchQuery) Reset() { *m = ProjectGrantSearchQuery{} } +func (m *ProjectGrantSearchQuery) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantSearchQuery) ProtoMessage() {} +func (*ProjectGrantSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{112} +} + +func (m *ProjectGrantSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantSearchQuery.Unmarshal(m, b) +} +func (m *ProjectGrantSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantSearchQuery.Marshal(b, m, deterministic) +} +func (m *ProjectGrantSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantSearchQuery.Merge(m, src) +} +func (m *ProjectGrantSearchQuery) XXX_Size() int { + return xxx_messageInfo_ProjectGrantSearchQuery.Size(m) +} +func (m *ProjectGrantSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantSearchQuery proto.InternalMessageInfo + +func (m *ProjectGrantSearchQuery) GetKey() ProjectGrantSearchKey { + if m != nil { + return m.Key + } + return ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_UNSPECIFIED +} + +func (m *ProjectGrantSearchQuery) GetMethod() SearchMethod { + if m != nil { + return m.Method + } + return SearchMethod_SEARCHMETHOD_EQUALS +} + +func (m *ProjectGrantSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type ProjectGrantMemberRoles struct { + Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantMemberRoles) Reset() { *m = ProjectGrantMemberRoles{} } +func (m *ProjectGrantMemberRoles) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantMemberRoles) ProtoMessage() {} +func (*ProjectGrantMemberRoles) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{113} +} + +func (m *ProjectGrantMemberRoles) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantMemberRoles.Unmarshal(m, b) +} +func (m *ProjectGrantMemberRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantMemberRoles.Marshal(b, m, deterministic) +} +func (m *ProjectGrantMemberRoles) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantMemberRoles.Merge(m, src) +} +func (m *ProjectGrantMemberRoles) XXX_Size() int { + return xxx_messageInfo_ProjectGrantMemberRoles.Size(m) +} +func (m *ProjectGrantMemberRoles) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantMemberRoles.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantMemberRoles proto.InternalMessageInfo + +func (m *ProjectGrantMemberRoles) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type ProjectGrantMember struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantMember) Reset() { *m = ProjectGrantMember{} } +func (m *ProjectGrantMember) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantMember) ProtoMessage() {} +func (*ProjectGrantMember) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{114} +} + +func (m *ProjectGrantMember) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantMember.Unmarshal(m, b) +} +func (m *ProjectGrantMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantMember.Marshal(b, m, deterministic) +} +func (m *ProjectGrantMember) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantMember.Merge(m, src) +} +func (m *ProjectGrantMember) XXX_Size() int { + return xxx_messageInfo_ProjectGrantMember.Size(m) +} +func (m *ProjectGrantMember) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantMember.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantMember proto.InternalMessageInfo + +func (m *ProjectGrantMember) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectGrantMember) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +func (m *ProjectGrantMember) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *ProjectGrantMember) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *ProjectGrantMember) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type ProjectGrantMemberAdd struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` + UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantMemberAdd) Reset() { *m = ProjectGrantMemberAdd{} } +func (m *ProjectGrantMemberAdd) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantMemberAdd) ProtoMessage() {} +func (*ProjectGrantMemberAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{115} +} + +func (m *ProjectGrantMemberAdd) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantMemberAdd.Unmarshal(m, b) +} +func (m *ProjectGrantMemberAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantMemberAdd.Marshal(b, m, deterministic) +} +func (m *ProjectGrantMemberAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantMemberAdd.Merge(m, src) +} +func (m *ProjectGrantMemberAdd) XXX_Size() int { + return xxx_messageInfo_ProjectGrantMemberAdd.Size(m) +} +func (m *ProjectGrantMemberAdd) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantMemberAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantMemberAdd proto.InternalMessageInfo + +func (m *ProjectGrantMemberAdd) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrantMemberAdd) GetGrantId() string { + if m != nil { + return m.GrantId + } + return "" +} + +func (m *ProjectGrantMemberAdd) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectGrantMemberAdd) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type ProjectGrantMemberChange struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` + UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Roles []string `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantMemberChange) Reset() { *m = ProjectGrantMemberChange{} } +func (m *ProjectGrantMemberChange) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantMemberChange) ProtoMessage() {} +func (*ProjectGrantMemberChange) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{116} +} + +func (m *ProjectGrantMemberChange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantMemberChange.Unmarshal(m, b) +} +func (m *ProjectGrantMemberChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantMemberChange.Marshal(b, m, deterministic) +} +func (m *ProjectGrantMemberChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantMemberChange.Merge(m, src) +} +func (m *ProjectGrantMemberChange) XXX_Size() int { + return xxx_messageInfo_ProjectGrantMemberChange.Size(m) +} +func (m *ProjectGrantMemberChange) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantMemberChange.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantMemberChange proto.InternalMessageInfo + +func (m *ProjectGrantMemberChange) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrantMemberChange) GetGrantId() string { + if m != nil { + return m.GrantId + } + return "" +} + +func (m *ProjectGrantMemberChange) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectGrantMemberChange) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +type ProjectGrantMemberRemove struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` + UserId string `protobuf:"bytes,3,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 *ProjectGrantMemberRemove) Reset() { *m = ProjectGrantMemberRemove{} } +func (m *ProjectGrantMemberRemove) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantMemberRemove) ProtoMessage() {} +func (*ProjectGrantMemberRemove) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{117} +} + +func (m *ProjectGrantMemberRemove) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantMemberRemove.Unmarshal(m, b) +} +func (m *ProjectGrantMemberRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantMemberRemove.Marshal(b, m, deterministic) +} +func (m *ProjectGrantMemberRemove) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantMemberRemove.Merge(m, src) +} +func (m *ProjectGrantMemberRemove) XXX_Size() int { + return xxx_messageInfo_ProjectGrantMemberRemove.Size(m) +} +func (m *ProjectGrantMemberRemove) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantMemberRemove.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantMemberRemove proto.InternalMessageInfo + +func (m *ProjectGrantMemberRemove) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrantMemberRemove) GetGrantId() string { + if m != nil { + return m.GrantId + } + return "" +} + +func (m *ProjectGrantMemberRemove) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +type ProjectGrantMemberView 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"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantMemberView) Reset() { *m = ProjectGrantMemberView{} } +func (m *ProjectGrantMemberView) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantMemberView) ProtoMessage() {} +func (*ProjectGrantMemberView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{118} +} + +func (m *ProjectGrantMemberView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantMemberView.Unmarshal(m, b) +} +func (m *ProjectGrantMemberView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantMemberView.Marshal(b, m, deterministic) +} +func (m *ProjectGrantMemberView) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantMemberView.Merge(m, src) +} +func (m *ProjectGrantMemberView) XXX_Size() int { + return xxx_messageInfo_ProjectGrantMemberView.Size(m) +} +func (m *ProjectGrantMemberView) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantMemberView.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantMemberView proto.InternalMessageInfo + +func (m *ProjectGrantMemberView) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectGrantMemberView) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *ProjectGrantMemberView) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *ProjectGrantMemberView) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *ProjectGrantMemberView) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *ProjectGrantMemberView) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +func (m *ProjectGrantMemberView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *ProjectGrantMemberView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *ProjectGrantMemberView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type ProjectGrantMemberSearchResponse 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 []*ProjectGrantMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantMemberSearchResponse) Reset() { *m = ProjectGrantMemberSearchResponse{} } +func (m *ProjectGrantMemberSearchResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantMemberSearchResponse) ProtoMessage() {} +func (*ProjectGrantMemberSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{119} +} + +func (m *ProjectGrantMemberSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantMemberSearchResponse.Unmarshal(m, b) +} +func (m *ProjectGrantMemberSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantMemberSearchResponse.Marshal(b, m, deterministic) +} +func (m *ProjectGrantMemberSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantMemberSearchResponse.Merge(m, src) +} +func (m *ProjectGrantMemberSearchResponse) XXX_Size() int { + return xxx_messageInfo_ProjectGrantMemberSearchResponse.Size(m) +} +func (m *ProjectGrantMemberSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantMemberSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantMemberSearchResponse proto.InternalMessageInfo + +func (m *ProjectGrantMemberSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectGrantMemberSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectGrantMemberSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *ProjectGrantMemberSearchResponse) GetResult() []*ProjectGrantMemberView { + if m != nil { + return m.Result + } + return nil +} + +type ProjectGrantMemberSearchRequest struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` + Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + Queries []*ProjectGrantMemberSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantMemberSearchRequest) Reset() { *m = ProjectGrantMemberSearchRequest{} } +func (m *ProjectGrantMemberSearchRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantMemberSearchRequest) ProtoMessage() {} +func (*ProjectGrantMemberSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{120} +} + +func (m *ProjectGrantMemberSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantMemberSearchRequest.Unmarshal(m, b) +} +func (m *ProjectGrantMemberSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantMemberSearchRequest.Marshal(b, m, deterministic) +} +func (m *ProjectGrantMemberSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantMemberSearchRequest.Merge(m, src) +} +func (m *ProjectGrantMemberSearchRequest) XXX_Size() int { + return xxx_messageInfo_ProjectGrantMemberSearchRequest.Size(m) +} +func (m *ProjectGrantMemberSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantMemberSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantMemberSearchRequest proto.InternalMessageInfo + +func (m *ProjectGrantMemberSearchRequest) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrantMemberSearchRequest) GetGrantId() string { + if m != nil { + return m.GrantId + } + return "" +} + +func (m *ProjectGrantMemberSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectGrantMemberSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectGrantMemberSearchRequest) GetQueries() []*ProjectGrantMemberSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type ProjectGrantMemberSearchQuery struct { + Key ProjectGrantMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.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 *ProjectGrantMemberSearchQuery) Reset() { *m = ProjectGrantMemberSearchQuery{} } +func (m *ProjectGrantMemberSearchQuery) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantMemberSearchQuery) ProtoMessage() {} +func (*ProjectGrantMemberSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{121} +} + +func (m *ProjectGrantMemberSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantMemberSearchQuery.Unmarshal(m, b) +} +func (m *ProjectGrantMemberSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantMemberSearchQuery.Marshal(b, m, deterministic) +} +func (m *ProjectGrantMemberSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantMemberSearchQuery.Merge(m, src) +} +func (m *ProjectGrantMemberSearchQuery) XXX_Size() int { + return xxx_messageInfo_ProjectGrantMemberSearchQuery.Size(m) +} +func (m *ProjectGrantMemberSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantMemberSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantMemberSearchQuery proto.InternalMessageInfo + +func (m *ProjectGrantMemberSearchQuery) GetKey() ProjectGrantMemberSearchKey { + if m != nil { + return m.Key + } + return ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED +} + +func (m *ProjectGrantMemberSearchQuery) GetMethod() SearchMethod { + if m != nil { + return m.Method + } + return SearchMethod_SEARCHMETHOD_EQUALS +} + +func (m *ProjectGrantMemberSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type UserGrant struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + OrgId string `protobuf:"bytes,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + RoleKeys []string `protobuf:"bytes,5,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + State UserGrantState `protobuf:"varint,6,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.UserGrantState" json:"state,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserGrant) Reset() { *m = UserGrant{} } +func (m *UserGrant) String() string { return proto.CompactTextString(m) } +func (*UserGrant) ProtoMessage() {} +func (*UserGrant) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{122} +} + +func (m *UserGrant) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrant.Unmarshal(m, b) +} +func (m *UserGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrant.Marshal(b, m, deterministic) +} +func (m *UserGrant) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrant.Merge(m, src) +} +func (m *UserGrant) XXX_Size() int { + return xxx_messageInfo_UserGrant.Size(m) +} +func (m *UserGrant) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrant.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrant proto.InternalMessageInfo + +func (m *UserGrant) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UserGrant) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *UserGrant) GetOrgId() string { + if m != nil { + return m.OrgId + } + return "" +} + +func (m *UserGrant) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *UserGrant) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +func (m *UserGrant) GetState() UserGrantState { + if m != nil { + return m.State + } + return UserGrantState_USERGRANTSTATE_UNSPECIFIED +} + +func (m *UserGrant) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserGrant) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *UserGrant) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type UserGrantCreateBulk struct { + UserGrants []*UserGrantCreate `protobuf:"bytes,1,rep,name=user_grants,json=userGrants,proto3" json:"user_grants,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserGrantCreateBulk) Reset() { *m = UserGrantCreateBulk{} } +func (m *UserGrantCreateBulk) String() string { return proto.CompactTextString(m) } +func (*UserGrantCreateBulk) ProtoMessage() {} +func (*UserGrantCreateBulk) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{123} +} + +func (m *UserGrantCreateBulk) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrantCreateBulk.Unmarshal(m, b) +} +func (m *UserGrantCreateBulk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrantCreateBulk.Marshal(b, m, deterministic) +} +func (m *UserGrantCreateBulk) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrantCreateBulk.Merge(m, src) +} +func (m *UserGrantCreateBulk) XXX_Size() int { + return xxx_messageInfo_UserGrantCreateBulk.Size(m) +} +func (m *UserGrantCreateBulk) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrantCreateBulk.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrantCreateBulk proto.InternalMessageInfo + +func (m *UserGrantCreateBulk) GetUserGrants() []*UserGrantCreate { + if m != nil { + return m.UserGrants + } + return nil +} + +type UserGrantCreate struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserGrantCreate) Reset() { *m = UserGrantCreate{} } +func (m *UserGrantCreate) String() string { return proto.CompactTextString(m) } +func (*UserGrantCreate) ProtoMessage() {} +func (*UserGrantCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{124} +} + +func (m *UserGrantCreate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrantCreate.Unmarshal(m, b) +} +func (m *UserGrantCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrantCreate.Marshal(b, m, deterministic) +} +func (m *UserGrantCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrantCreate.Merge(m, src) +} +func (m *UserGrantCreate) XXX_Size() int { + return xxx_messageInfo_UserGrantCreate.Size(m) +} +func (m *UserGrantCreate) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrantCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrantCreate proto.InternalMessageInfo + +func (m *UserGrantCreate) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *UserGrantCreate) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *UserGrantCreate) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +type UserGrantUpdateBulk struct { + UserGrants []*UserGrantUpdate `protobuf:"bytes,1,rep,name=user_grants,json=userGrants,proto3" json:"user_grants,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserGrantUpdateBulk) Reset() { *m = UserGrantUpdateBulk{} } +func (m *UserGrantUpdateBulk) String() string { return proto.CompactTextString(m) } +func (*UserGrantUpdateBulk) ProtoMessage() {} +func (*UserGrantUpdateBulk) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{125} +} + +func (m *UserGrantUpdateBulk) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrantUpdateBulk.Unmarshal(m, b) +} +func (m *UserGrantUpdateBulk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrantUpdateBulk.Marshal(b, m, deterministic) +} +func (m *UserGrantUpdateBulk) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrantUpdateBulk.Merge(m, src) +} +func (m *UserGrantUpdateBulk) XXX_Size() int { + return xxx_messageInfo_UserGrantUpdateBulk.Size(m) +} +func (m *UserGrantUpdateBulk) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrantUpdateBulk.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrantUpdateBulk proto.InternalMessageInfo + +func (m *UserGrantUpdateBulk) GetUserGrants() []*UserGrantUpdate { + if m != nil { + return m.UserGrants + } + return nil +} + +type UserGrantUpdate struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserGrantUpdate) Reset() { *m = UserGrantUpdate{} } +func (m *UserGrantUpdate) String() string { return proto.CompactTextString(m) } +func (*UserGrantUpdate) ProtoMessage() {} +func (*UserGrantUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{126} +} + +func (m *UserGrantUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrantUpdate.Unmarshal(m, b) +} +func (m *UserGrantUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrantUpdate.Marshal(b, m, deterministic) +} +func (m *UserGrantUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrantUpdate.Merge(m, src) +} +func (m *UserGrantUpdate) XXX_Size() int { + return xxx_messageInfo_UserGrantUpdate.Size(m) +} +func (m *UserGrantUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrantUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrantUpdate proto.InternalMessageInfo + +func (m *UserGrantUpdate) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *UserGrantUpdate) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UserGrantUpdate) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +type UserGrantRemoveBulk struct { + Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserGrantRemoveBulk) Reset() { *m = UserGrantRemoveBulk{} } +func (m *UserGrantRemoveBulk) String() string { return proto.CompactTextString(m) } +func (*UserGrantRemoveBulk) ProtoMessage() {} +func (*UserGrantRemoveBulk) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{127} +} + +func (m *UserGrantRemoveBulk) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrantRemoveBulk.Unmarshal(m, b) +} +func (m *UserGrantRemoveBulk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrantRemoveBulk.Marshal(b, m, deterministic) +} +func (m *UserGrantRemoveBulk) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrantRemoveBulk.Merge(m, src) +} +func (m *UserGrantRemoveBulk) XXX_Size() int { + return xxx_messageInfo_UserGrantRemoveBulk.Size(m) +} +func (m *UserGrantRemoveBulk) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrantRemoveBulk.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrantRemoveBulk proto.InternalMessageInfo + +func (m *UserGrantRemoveBulk) GetIds() []string { + if m != nil { + return m.Ids + } + return nil +} + +type UserGrantID struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserGrantID) Reset() { *m = UserGrantID{} } +func (m *UserGrantID) String() string { return proto.CompactTextString(m) } +func (*UserGrantID) ProtoMessage() {} +func (*UserGrantID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{128} +} + +func (m *UserGrantID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrantID.Unmarshal(m, b) +} +func (m *UserGrantID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrantID.Marshal(b, m, deterministic) +} +func (m *UserGrantID) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrantID.Merge(m, src) +} +func (m *UserGrantID) XXX_Size() int { + return xxx_messageInfo_UserGrantID.Size(m) +} +func (m *UserGrantID) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrantID.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrantID proto.InternalMessageInfo + +func (m *UserGrantID) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *UserGrantID) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type ProjectUserGrantID struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectUserGrantID) Reset() { *m = ProjectUserGrantID{} } +func (m *ProjectUserGrantID) String() string { return proto.CompactTextString(m) } +func (*ProjectUserGrantID) ProtoMessage() {} +func (*ProjectUserGrantID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{129} +} + +func (m *ProjectUserGrantID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectUserGrantID.Unmarshal(m, b) +} +func (m *ProjectUserGrantID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectUserGrantID.Marshal(b, m, deterministic) +} +func (m *ProjectUserGrantID) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectUserGrantID.Merge(m, src) +} +func (m *ProjectUserGrantID) XXX_Size() int { + return xxx_messageInfo_ProjectUserGrantID.Size(m) +} +func (m *ProjectUserGrantID) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectUserGrantID.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectUserGrantID proto.InternalMessageInfo + +func (m *ProjectUserGrantID) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectUserGrantID) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectUserGrantID) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type ProjectUserGrantUpdate struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + RoleKeys []string `protobuf:"bytes,4,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectUserGrantUpdate) Reset() { *m = ProjectUserGrantUpdate{} } +func (m *ProjectUserGrantUpdate) String() string { return proto.CompactTextString(m) } +func (*ProjectUserGrantUpdate) ProtoMessage() {} +func (*ProjectUserGrantUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{130} +} + +func (m *ProjectUserGrantUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectUserGrantUpdate.Unmarshal(m, b) +} +func (m *ProjectUserGrantUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectUserGrantUpdate.Marshal(b, m, deterministic) +} +func (m *ProjectUserGrantUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectUserGrantUpdate.Merge(m, src) +} +func (m *ProjectUserGrantUpdate) XXX_Size() int { + return xxx_messageInfo_ProjectUserGrantUpdate.Size(m) +} +func (m *ProjectUserGrantUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectUserGrantUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectUserGrantUpdate proto.InternalMessageInfo + +func (m *ProjectUserGrantUpdate) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectUserGrantUpdate) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectUserGrantUpdate) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectUserGrantUpdate) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +type ProjectGrantUserGrantID struct { + ProjectGrantId string `protobuf:"bytes,1,opt,name=project_grant_id,json=projectGrantId,proto3" json:"project_grant_id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantUserGrantID) Reset() { *m = ProjectGrantUserGrantID{} } +func (m *ProjectGrantUserGrantID) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantUserGrantID) ProtoMessage() {} +func (*ProjectGrantUserGrantID) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{131} +} + +func (m *ProjectGrantUserGrantID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantUserGrantID.Unmarshal(m, b) +} +func (m *ProjectGrantUserGrantID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantUserGrantID.Marshal(b, m, deterministic) +} +func (m *ProjectGrantUserGrantID) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantUserGrantID.Merge(m, src) +} +func (m *ProjectGrantUserGrantID) XXX_Size() int { + return xxx_messageInfo_ProjectGrantUserGrantID.Size(m) +} +func (m *ProjectGrantUserGrantID) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantUserGrantID.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantUserGrantID proto.InternalMessageInfo + +func (m *ProjectGrantUserGrantID) GetProjectGrantId() string { + if m != nil { + return m.ProjectGrantId + } + return "" +} + +func (m *ProjectGrantUserGrantID) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectGrantUserGrantID) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type ProjectGrantUserGrantCreate struct { + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + ProjectGrantId string `protobuf:"bytes,2,opt,name=project_grant_id,json=projectGrantId,proto3" json:"project_grant_id,omitempty"` + ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + RoleKeys []string `protobuf:"bytes,4,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantUserGrantCreate) Reset() { *m = ProjectGrantUserGrantCreate{} } +func (m *ProjectGrantUserGrantCreate) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantUserGrantCreate) ProtoMessage() {} +func (*ProjectGrantUserGrantCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{132} +} + +func (m *ProjectGrantUserGrantCreate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantUserGrantCreate.Unmarshal(m, b) +} +func (m *ProjectGrantUserGrantCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantUserGrantCreate.Marshal(b, m, deterministic) +} +func (m *ProjectGrantUserGrantCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantUserGrantCreate.Merge(m, src) +} +func (m *ProjectGrantUserGrantCreate) XXX_Size() int { + return xxx_messageInfo_ProjectGrantUserGrantCreate.Size(m) +} +func (m *ProjectGrantUserGrantCreate) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantUserGrantCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantUserGrantCreate proto.InternalMessageInfo + +func (m *ProjectGrantUserGrantCreate) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectGrantUserGrantCreate) GetProjectGrantId() string { + if m != nil { + return m.ProjectGrantId + } + return "" +} + +func (m *ProjectGrantUserGrantCreate) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectGrantUserGrantCreate) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +type ProjectGrantUserGrantUpdate struct { + ProjectGrantId string `protobuf:"bytes,1,opt,name=project_grant_id,json=projectGrantId,proto3" json:"project_grant_id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + RoleKeys []string `protobuf:"bytes,4,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantUserGrantUpdate) Reset() { *m = ProjectGrantUserGrantUpdate{} } +func (m *ProjectGrantUserGrantUpdate) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantUserGrantUpdate) ProtoMessage() {} +func (*ProjectGrantUserGrantUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{133} +} + +func (m *ProjectGrantUserGrantUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantUserGrantUpdate.Unmarshal(m, b) +} +func (m *ProjectGrantUserGrantUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantUserGrantUpdate.Marshal(b, m, deterministic) +} +func (m *ProjectGrantUserGrantUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantUserGrantUpdate.Merge(m, src) +} +func (m *ProjectGrantUserGrantUpdate) XXX_Size() int { + return xxx_messageInfo_ProjectGrantUserGrantUpdate.Size(m) +} +func (m *ProjectGrantUserGrantUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantUserGrantUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantUserGrantUpdate proto.InternalMessageInfo + +func (m *ProjectGrantUserGrantUpdate) GetProjectGrantId() string { + if m != nil { + return m.ProjectGrantId + } + return "" +} + +func (m *ProjectGrantUserGrantUpdate) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *ProjectGrantUserGrantUpdate) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ProjectGrantUserGrantUpdate) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +type UserGrantView struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + OrgId string `protobuf:"bytes,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + RoleKeys []string `protobuf:"bytes,5,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` + State UserGrantState `protobuf:"varint,6,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.UserGrantState" json:"state,omitempty"` + CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` + ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` + UserName string `protobuf:"bytes,9,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` + FirstName string `protobuf:"bytes,10,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,11,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"` + OrgName string `protobuf:"bytes,13,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"` + OrgDomain string `protobuf:"bytes,14,opt,name=org_domain,json=orgDomain,proto3" json:"org_domain,omitempty"` + ProjectName string `protobuf:"bytes,15,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` + Sequence uint64 `protobuf:"varint,16,opt,name=sequence,proto3" json:"sequence,omitempty"` + ResourceOwner string `protobuf:"bytes,17,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` + DisplayName string `protobuf:"bytes,18,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserGrantView) Reset() { *m = UserGrantView{} } +func (m *UserGrantView) String() string { return proto.CompactTextString(m) } +func (*UserGrantView) ProtoMessage() {} +func (*UserGrantView) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{134} +} + +func (m *UserGrantView) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrantView.Unmarshal(m, b) +} +func (m *UserGrantView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrantView.Marshal(b, m, deterministic) +} +func (m *UserGrantView) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrantView.Merge(m, src) +} +func (m *UserGrantView) XXX_Size() int { + return xxx_messageInfo_UserGrantView.Size(m) +} +func (m *UserGrantView) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrantView.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrantView proto.InternalMessageInfo + +func (m *UserGrantView) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UserGrantView) GetUserId() string { + if m != nil { + return m.UserId + } + return "" +} + +func (m *UserGrantView) GetOrgId() string { + if m != nil { + return m.OrgId + } + return "" +} + +func (m *UserGrantView) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *UserGrantView) GetRoleKeys() []string { + if m != nil { + return m.RoleKeys + } + return nil +} + +func (m *UserGrantView) GetState() UserGrantState { + if m != nil { + return m.State + } + return UserGrantState_USERGRANTSTATE_UNSPECIFIED +} + +func (m *UserGrantView) GetCreationDate() *timestamp.Timestamp { + if m != nil { + return m.CreationDate + } + return nil +} + +func (m *UserGrantView) GetChangeDate() *timestamp.Timestamp { + if m != nil { + return m.ChangeDate + } + return nil +} + +func (m *UserGrantView) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *UserGrantView) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" +} + +func (m *UserGrantView) GetLastName() string { + if m != nil { + return m.LastName + } + return "" +} + +func (m *UserGrantView) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *UserGrantView) GetOrgName() string { + if m != nil { + return m.OrgName + } + return "" +} + +func (m *UserGrantView) GetOrgDomain() string { + if m != nil { + return m.OrgDomain + } + return "" +} + +func (m *UserGrantView) GetProjectName() string { + if m != nil { + return m.ProjectName + } + return "" +} + +func (m *UserGrantView) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *UserGrantView) GetResourceOwner() string { + if m != nil { + return m.ResourceOwner + } + return "" +} + +func (m *UserGrantView) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +type UserGrantSearchResponse 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 []*UserGrantView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserGrantSearchResponse) Reset() { *m = UserGrantSearchResponse{} } +func (m *UserGrantSearchResponse) String() string { return proto.CompactTextString(m) } +func (*UserGrantSearchResponse) ProtoMessage() {} +func (*UserGrantSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{135} +} + +func (m *UserGrantSearchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrantSearchResponse.Unmarshal(m, b) +} +func (m *UserGrantSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrantSearchResponse.Marshal(b, m, deterministic) +} +func (m *UserGrantSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrantSearchResponse.Merge(m, src) +} +func (m *UserGrantSearchResponse) XXX_Size() int { + return xxx_messageInfo_UserGrantSearchResponse.Size(m) +} +func (m *UserGrantSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrantSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrantSearchResponse proto.InternalMessageInfo + +func (m *UserGrantSearchResponse) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *UserGrantSearchResponse) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *UserGrantSearchResponse) GetTotalResult() uint64 { + if m != nil { + return m.TotalResult + } + return 0 +} + +func (m *UserGrantSearchResponse) GetResult() []*UserGrantView { + if m != nil { + return m.Result + } + return nil +} + +type UserGrantSearchRequest 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"` + Queries []*UserGrantSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserGrantSearchRequest) Reset() { *m = UserGrantSearchRequest{} } +func (m *UserGrantSearchRequest) String() string { return proto.CompactTextString(m) } +func (*UserGrantSearchRequest) ProtoMessage() {} +func (*UserGrantSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{136} +} + +func (m *UserGrantSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrantSearchRequest.Unmarshal(m, b) +} +func (m *UserGrantSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrantSearchRequest.Marshal(b, m, deterministic) +} +func (m *UserGrantSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrantSearchRequest.Merge(m, src) +} +func (m *UserGrantSearchRequest) XXX_Size() int { + return xxx_messageInfo_UserGrantSearchRequest.Size(m) +} +func (m *UserGrantSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrantSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrantSearchRequest proto.InternalMessageInfo + +func (m *UserGrantSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *UserGrantSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *UserGrantSearchRequest) GetQueries() []*UserGrantSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type UserGrantSearchQuery struct { + Key UserGrantSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.UserGrantSearchKey" json:"key,omitempty"` + Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.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 *UserGrantSearchQuery) Reset() { *m = UserGrantSearchQuery{} } +func (m *UserGrantSearchQuery) String() string { return proto.CompactTextString(m) } +func (*UserGrantSearchQuery) ProtoMessage() {} +func (*UserGrantSearchQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{137} +} + +func (m *UserGrantSearchQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserGrantSearchQuery.Unmarshal(m, b) +} +func (m *UserGrantSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserGrantSearchQuery.Marshal(b, m, deterministic) +} +func (m *UserGrantSearchQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserGrantSearchQuery.Merge(m, src) +} +func (m *UserGrantSearchQuery) XXX_Size() int { + return xxx_messageInfo_UserGrantSearchQuery.Size(m) +} +func (m *UserGrantSearchQuery) XXX_DiscardUnknown() { + xxx_messageInfo_UserGrantSearchQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_UserGrantSearchQuery proto.InternalMessageInfo + +func (m *UserGrantSearchQuery) GetKey() UserGrantSearchKey { + if m != nil { + return m.Key + } + return UserGrantSearchKey_USERGRANTSEARCHKEY_UNSPECIFIED +} + +func (m *UserGrantSearchQuery) GetMethod() SearchMethod { + if m != nil { + return m.Method + } + return SearchMethod_SEARCHMETHOD_EQUALS +} + +func (m *UserGrantSearchQuery) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type ProjectUserGrantSearchRequest struct { + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + Queries []*UserGrantSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectUserGrantSearchRequest) Reset() { *m = ProjectUserGrantSearchRequest{} } +func (m *ProjectUserGrantSearchRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectUserGrantSearchRequest) ProtoMessage() {} +func (*ProjectUserGrantSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{138} +} + +func (m *ProjectUserGrantSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectUserGrantSearchRequest.Unmarshal(m, b) +} +func (m *ProjectUserGrantSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectUserGrantSearchRequest.Marshal(b, m, deterministic) +} +func (m *ProjectUserGrantSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectUserGrantSearchRequest.Merge(m, src) +} +func (m *ProjectUserGrantSearchRequest) XXX_Size() int { + return xxx_messageInfo_ProjectUserGrantSearchRequest.Size(m) +} +func (m *ProjectUserGrantSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectUserGrantSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectUserGrantSearchRequest proto.InternalMessageInfo + +func (m *ProjectUserGrantSearchRequest) GetProjectId() string { + if m != nil { + return m.ProjectId + } + return "" +} + +func (m *ProjectUserGrantSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectUserGrantSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectUserGrantSearchRequest) GetQueries() []*UserGrantSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +type ProjectGrantUserGrantSearchRequest struct { + ProjectGrantId string `protobuf:"bytes,1,opt,name=project_grant_id,json=projectGrantId,proto3" json:"project_grant_id,omitempty"` + Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + Queries []*UserGrantSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectGrantUserGrantSearchRequest) Reset() { *m = ProjectGrantUserGrantSearchRequest{} } +func (m *ProjectGrantUserGrantSearchRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectGrantUserGrantSearchRequest) ProtoMessage() {} +func (*ProjectGrantUserGrantSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_edc174f991dc0a25, []int{139} +} + +func (m *ProjectGrantUserGrantSearchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectGrantUserGrantSearchRequest.Unmarshal(m, b) +} +func (m *ProjectGrantUserGrantSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectGrantUserGrantSearchRequest.Marshal(b, m, deterministic) +} +func (m *ProjectGrantUserGrantSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectGrantUserGrantSearchRequest.Merge(m, src) +} +func (m *ProjectGrantUserGrantSearchRequest) XXX_Size() int { + return xxx_messageInfo_ProjectGrantUserGrantSearchRequest.Size(m) +} +func (m *ProjectGrantUserGrantSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectGrantUserGrantSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectGrantUserGrantSearchRequest proto.InternalMessageInfo + +func (m *ProjectGrantUserGrantSearchRequest) GetProjectGrantId() string { + if m != nil { + return m.ProjectGrantId + } + return "" +} + +func (m *ProjectGrantUserGrantSearchRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *ProjectGrantUserGrantSearchRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectGrantUserGrantSearchRequest) GetQueries() []*UserGrantSearchQuery { + if m != nil { + return m.Queries + } + return nil +} + +func init() { + proto.RegisterEnum("caos.zitadel.management.api.v1.UserState", UserState_name, UserState_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.Gender", Gender_name, Gender_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.UserSearchKey", UserSearchKey_name, UserSearchKey_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.SearchMethod", SearchMethod_name, SearchMethod_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.MfaType", MfaType_name, MfaType_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.MFAState", MFAState_name, MFAState_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.NotificationType", NotificationType_name, NotificationType_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.PolicyState", PolicyState_name, PolicyState_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.OrgState", OrgState_name, OrgState_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.OrgDomainSearchKey", OrgDomainSearchKey_name, OrgDomainSearchKey_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.OrgMemberSearchKey", OrgMemberSearchKey_name, OrgMemberSearchKey_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectSearchKey", ProjectSearchKey_name, ProjectSearchKey_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectState", ProjectState_name, ProjectState_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectType", ProjectType_name, ProjectType_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectRoleSearchKey", ProjectRoleSearchKey_name, ProjectRoleSearchKey_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectMemberSearchKey", ProjectMemberSearchKey_name, ProjectMemberSearchKey_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.AppState", AppState_name, AppState_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCResponseType", OIDCResponseType_name, OIDCResponseType_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCGrantType", OIDCGrantType_name, OIDCGrantType_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCApplicationType", OIDCApplicationType_name, OIDCApplicationType_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCAuthMethodType", OIDCAuthMethodType_name, OIDCAuthMethodType_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.ApplicationSearchKey", ApplicationSearchKey_name, ApplicationSearchKey_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectGrantState", ProjectGrantState_name, ProjectGrantState_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectGrantSearchKey", ProjectGrantSearchKey_name, ProjectGrantSearchKey_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey", ProjectGrantMemberSearchKey_name, ProjectGrantMemberSearchKey_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.UserGrantState", UserGrantState_name, UserGrantState_value) + proto.RegisterEnum("caos.zitadel.management.api.v1.UserGrantSearchKey", UserGrantSearchKey_name, UserGrantSearchKey_value) + proto.RegisterType((*Iam)(nil), "caos.zitadel.management.api.v1.Iam") + proto.RegisterType((*ChangeRequest)(nil), "caos.zitadel.management.api.v1.ChangeRequest") + proto.RegisterType((*Changes)(nil), "caos.zitadel.management.api.v1.Changes") + proto.RegisterType((*Change)(nil), "caos.zitadel.management.api.v1.Change") + proto.RegisterType((*ApplicationID)(nil), "caos.zitadel.management.api.v1.ApplicationID") + proto.RegisterType((*ProjectID)(nil), "caos.zitadel.management.api.v1.ProjectID") + proto.RegisterType((*UserID)(nil), "caos.zitadel.management.api.v1.UserID") + proto.RegisterType((*Email)(nil), "caos.zitadel.management.api.v1.Email") + proto.RegisterType((*UniqueUserRequest)(nil), "caos.zitadel.management.api.v1.UniqueUserRequest") + proto.RegisterType((*UniqueUserResponse)(nil), "caos.zitadel.management.api.v1.UniqueUserResponse") + proto.RegisterType((*CreateUserRequest)(nil), "caos.zitadel.management.api.v1.CreateUserRequest") + proto.RegisterType((*User)(nil), "caos.zitadel.management.api.v1.User") + proto.RegisterType((*UserView)(nil), "caos.zitadel.management.api.v1.UserView") + proto.RegisterType((*UserSearchRequest)(nil), "caos.zitadel.management.api.v1.UserSearchRequest") + proto.RegisterType((*UserSearchQuery)(nil), "caos.zitadel.management.api.v1.UserSearchQuery") + proto.RegisterType((*UserSearchResponse)(nil), "caos.zitadel.management.api.v1.UserSearchResponse") + proto.RegisterType((*UserProfile)(nil), "caos.zitadel.management.api.v1.UserProfile") + proto.RegisterType((*UserProfileView)(nil), "caos.zitadel.management.api.v1.UserProfileView") + proto.RegisterType((*UpdateUserProfileRequest)(nil), "caos.zitadel.management.api.v1.UpdateUserProfileRequest") + proto.RegisterType((*UserEmail)(nil), "caos.zitadel.management.api.v1.UserEmail") + proto.RegisterType((*UserEmailView)(nil), "caos.zitadel.management.api.v1.UserEmailView") + proto.RegisterType((*UpdateUserEmailRequest)(nil), "caos.zitadel.management.api.v1.UpdateUserEmailRequest") + proto.RegisterType((*UserPhone)(nil), "caos.zitadel.management.api.v1.UserPhone") + proto.RegisterType((*UserPhoneView)(nil), "caos.zitadel.management.api.v1.UserPhoneView") + proto.RegisterType((*UpdateUserPhoneRequest)(nil), "caos.zitadel.management.api.v1.UpdateUserPhoneRequest") + proto.RegisterType((*UserAddress)(nil), "caos.zitadel.management.api.v1.UserAddress") + proto.RegisterType((*UserAddressView)(nil), "caos.zitadel.management.api.v1.UserAddressView") + proto.RegisterType((*UpdateUserAddressRequest)(nil), "caos.zitadel.management.api.v1.UpdateUserAddressRequest") + proto.RegisterType((*MultiFactors)(nil), "caos.zitadel.management.api.v1.MultiFactors") + proto.RegisterType((*MultiFactor)(nil), "caos.zitadel.management.api.v1.MultiFactor") + proto.RegisterType((*PasswordID)(nil), "caos.zitadel.management.api.v1.PasswordID") + proto.RegisterType((*PasswordRequest)(nil), "caos.zitadel.management.api.v1.PasswordRequest") + proto.RegisterType((*ResetPasswordRequest)(nil), "caos.zitadel.management.api.v1.ResetPasswordRequest") + proto.RegisterType((*SetPasswordNotificationRequest)(nil), "caos.zitadel.management.api.v1.SetPasswordNotificationRequest") + proto.RegisterType((*PasswordComplexityPolicyID)(nil), "caos.zitadel.management.api.v1.PasswordComplexityPolicyID") + proto.RegisterType((*PasswordComplexityPolicy)(nil), "caos.zitadel.management.api.v1.PasswordComplexityPolicy") + proto.RegisterType((*PasswordComplexityPolicyCreate)(nil), "caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate") + proto.RegisterType((*PasswordComplexityPolicyUpdate)(nil), "caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate") + proto.RegisterType((*PasswordAgePolicyID)(nil), "caos.zitadel.management.api.v1.PasswordAgePolicyID") + proto.RegisterType((*PasswordAgePolicy)(nil), "caos.zitadel.management.api.v1.PasswordAgePolicy") + proto.RegisterType((*PasswordAgePolicyCreate)(nil), "caos.zitadel.management.api.v1.PasswordAgePolicyCreate") + proto.RegisterType((*PasswordAgePolicyUpdate)(nil), "caos.zitadel.management.api.v1.PasswordAgePolicyUpdate") + proto.RegisterType((*PasswordLockoutPolicyID)(nil), "caos.zitadel.management.api.v1.PasswordLockoutPolicyID") + proto.RegisterType((*PasswordLockoutPolicy)(nil), "caos.zitadel.management.api.v1.PasswordLockoutPolicy") + proto.RegisterType((*PasswordLockoutPolicyCreate)(nil), "caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate") + proto.RegisterType((*PasswordLockoutPolicyUpdate)(nil), "caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate") + proto.RegisterType((*OrgIamPolicy)(nil), "caos.zitadel.management.api.v1.OrgIamPolicy") + proto.RegisterType((*OrgID)(nil), "caos.zitadel.management.api.v1.OrgID") + proto.RegisterType((*Org)(nil), "caos.zitadel.management.api.v1.Org") + proto.RegisterType((*OrgView)(nil), "caos.zitadel.management.api.v1.OrgView") + proto.RegisterType((*Domain)(nil), "caos.zitadel.management.api.v1.Domain") + proto.RegisterType((*OrgDomains)(nil), "caos.zitadel.management.api.v1.OrgDomains") + proto.RegisterType((*OrgDomain)(nil), "caos.zitadel.management.api.v1.OrgDomain") + proto.RegisterType((*OrgDomainView)(nil), "caos.zitadel.management.api.v1.OrgDomainView") + proto.RegisterType((*AddOrgDomainRequest)(nil), "caos.zitadel.management.api.v1.AddOrgDomainRequest") + proto.RegisterType((*RemoveOrgDomainRequest)(nil), "caos.zitadel.management.api.v1.RemoveOrgDomainRequest") + proto.RegisterType((*OrgDomainSearchResponse)(nil), "caos.zitadel.management.api.v1.OrgDomainSearchResponse") + proto.RegisterType((*OrgDomainSearchRequest)(nil), "caos.zitadel.management.api.v1.OrgDomainSearchRequest") + proto.RegisterType((*OrgDomainSearchQuery)(nil), "caos.zitadel.management.api.v1.OrgDomainSearchQuery") + proto.RegisterType((*OrgMemberRoles)(nil), "caos.zitadel.management.api.v1.OrgMemberRoles") + proto.RegisterType((*OrgMember)(nil), "caos.zitadel.management.api.v1.OrgMember") + proto.RegisterType((*AddOrgMemberRequest)(nil), "caos.zitadel.management.api.v1.AddOrgMemberRequest") + proto.RegisterType((*ChangeOrgMemberRequest)(nil), "caos.zitadel.management.api.v1.ChangeOrgMemberRequest") + proto.RegisterType((*RemoveOrgMemberRequest)(nil), "caos.zitadel.management.api.v1.RemoveOrgMemberRequest") + proto.RegisterType((*OrgMemberSearchResponse)(nil), "caos.zitadel.management.api.v1.OrgMemberSearchResponse") + proto.RegisterType((*OrgMemberView)(nil), "caos.zitadel.management.api.v1.OrgMemberView") + proto.RegisterType((*OrgMemberSearchRequest)(nil), "caos.zitadel.management.api.v1.OrgMemberSearchRequest") + proto.RegisterType((*OrgMemberSearchQuery)(nil), "caos.zitadel.management.api.v1.OrgMemberSearchQuery") + proto.RegisterType((*ProjectCreateRequest)(nil), "caos.zitadel.management.api.v1.ProjectCreateRequest") + proto.RegisterType((*ProjectUpdateRequest)(nil), "caos.zitadel.management.api.v1.ProjectUpdateRequest") + proto.RegisterType((*ProjectSearchResponse)(nil), "caos.zitadel.management.api.v1.ProjectSearchResponse") + proto.RegisterType((*ProjectView)(nil), "caos.zitadel.management.api.v1.ProjectView") + proto.RegisterType((*ProjectSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectSearchRequest") + proto.RegisterType((*ProjectSearchQuery)(nil), "caos.zitadel.management.api.v1.ProjectSearchQuery") + proto.RegisterType((*Projects)(nil), "caos.zitadel.management.api.v1.Projects") + proto.RegisterType((*Project)(nil), "caos.zitadel.management.api.v1.Project") + proto.RegisterType((*ProjectMemberRoles)(nil), "caos.zitadel.management.api.v1.ProjectMemberRoles") + proto.RegisterType((*ProjectMember)(nil), "caos.zitadel.management.api.v1.ProjectMember") + proto.RegisterType((*ProjectMemberAdd)(nil), "caos.zitadel.management.api.v1.ProjectMemberAdd") + proto.RegisterType((*ProjectMemberChange)(nil), "caos.zitadel.management.api.v1.ProjectMemberChange") + proto.RegisterType((*ProjectMemberRemove)(nil), "caos.zitadel.management.api.v1.ProjectMemberRemove") + proto.RegisterType((*ProjectRoleAdd)(nil), "caos.zitadel.management.api.v1.ProjectRoleAdd") + proto.RegisterType((*ProjectRoleAddBulk)(nil), "caos.zitadel.management.api.v1.ProjectRoleAddBulk") + proto.RegisterType((*ProjectRoleChange)(nil), "caos.zitadel.management.api.v1.ProjectRoleChange") + proto.RegisterType((*ProjectRole)(nil), "caos.zitadel.management.api.v1.ProjectRole") + proto.RegisterType((*ProjectRoleView)(nil), "caos.zitadel.management.api.v1.ProjectRoleView") + proto.RegisterType((*ProjectRoleRemove)(nil), "caos.zitadel.management.api.v1.ProjectRoleRemove") + proto.RegisterType((*ProjectRoleSearchResponse)(nil), "caos.zitadel.management.api.v1.ProjectRoleSearchResponse") + proto.RegisterType((*ProjectRoleSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectRoleSearchRequest") + proto.RegisterType((*ProjectRoleSearchQuery)(nil), "caos.zitadel.management.api.v1.ProjectRoleSearchQuery") + proto.RegisterType((*ProjectMemberView)(nil), "caos.zitadel.management.api.v1.ProjectMemberView") + proto.RegisterType((*ProjectMemberSearchResponse)(nil), "caos.zitadel.management.api.v1.ProjectMemberSearchResponse") + proto.RegisterType((*ProjectMemberSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectMemberSearchRequest") + proto.RegisterType((*ProjectMemberSearchQuery)(nil), "caos.zitadel.management.api.v1.ProjectMemberSearchQuery") + proto.RegisterType((*Application)(nil), "caos.zitadel.management.api.v1.Application") + proto.RegisterType((*ApplicationUpdate)(nil), "caos.zitadel.management.api.v1.ApplicationUpdate") + proto.RegisterType((*OIDCConfig)(nil), "caos.zitadel.management.api.v1.OIDCConfig") + proto.RegisterType((*OIDCApplicationCreate)(nil), "caos.zitadel.management.api.v1.OIDCApplicationCreate") + proto.RegisterType((*OIDCConfigUpdate)(nil), "caos.zitadel.management.api.v1.OIDCConfigUpdate") + proto.RegisterType((*ClientSecret)(nil), "caos.zitadel.management.api.v1.ClientSecret") + proto.RegisterType((*ApplicationView)(nil), "caos.zitadel.management.api.v1.ApplicationView") + proto.RegisterType((*ApplicationSearchResponse)(nil), "caos.zitadel.management.api.v1.ApplicationSearchResponse") + proto.RegisterType((*ApplicationSearchRequest)(nil), "caos.zitadel.management.api.v1.ApplicationSearchRequest") + proto.RegisterType((*ApplicationSearchQuery)(nil), "caos.zitadel.management.api.v1.ApplicationSearchQuery") + proto.RegisterType((*ProjectGrant)(nil), "caos.zitadel.management.api.v1.ProjectGrant") + proto.RegisterType((*ProjectGrantCreate)(nil), "caos.zitadel.management.api.v1.ProjectGrantCreate") + proto.RegisterType((*ProjectGrantUpdate)(nil), "caos.zitadel.management.api.v1.ProjectGrantUpdate") + proto.RegisterType((*ProjectGrantID)(nil), "caos.zitadel.management.api.v1.ProjectGrantID") + proto.RegisterType((*ProjectGrantView)(nil), "caos.zitadel.management.api.v1.ProjectGrantView") + proto.RegisterType((*ProjectGrantSearchResponse)(nil), "caos.zitadel.management.api.v1.ProjectGrantSearchResponse") + proto.RegisterType((*GrantedProjectSearchRequest)(nil), "caos.zitadel.management.api.v1.GrantedProjectSearchRequest") + proto.RegisterType((*ProjectGrantSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectGrantSearchRequest") + proto.RegisterType((*ProjectGrantSearchQuery)(nil), "caos.zitadel.management.api.v1.ProjectGrantSearchQuery") + proto.RegisterType((*ProjectGrantMemberRoles)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberRoles") + proto.RegisterType((*ProjectGrantMember)(nil), "caos.zitadel.management.api.v1.ProjectGrantMember") + proto.RegisterType((*ProjectGrantMemberAdd)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberAdd") + proto.RegisterType((*ProjectGrantMemberChange)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberChange") + proto.RegisterType((*ProjectGrantMemberRemove)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberRemove") + proto.RegisterType((*ProjectGrantMemberView)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberView") + proto.RegisterType((*ProjectGrantMemberSearchResponse)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse") + proto.RegisterType((*ProjectGrantMemberSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest") + proto.RegisterType((*ProjectGrantMemberSearchQuery)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery") + proto.RegisterType((*UserGrant)(nil), "caos.zitadel.management.api.v1.UserGrant") + proto.RegisterType((*UserGrantCreateBulk)(nil), "caos.zitadel.management.api.v1.UserGrantCreateBulk") + proto.RegisterType((*UserGrantCreate)(nil), "caos.zitadel.management.api.v1.UserGrantCreate") + proto.RegisterType((*UserGrantUpdateBulk)(nil), "caos.zitadel.management.api.v1.UserGrantUpdateBulk") + proto.RegisterType((*UserGrantUpdate)(nil), "caos.zitadel.management.api.v1.UserGrantUpdate") + proto.RegisterType((*UserGrantRemoveBulk)(nil), "caos.zitadel.management.api.v1.UserGrantRemoveBulk") + proto.RegisterType((*UserGrantID)(nil), "caos.zitadel.management.api.v1.UserGrantID") + proto.RegisterType((*ProjectUserGrantID)(nil), "caos.zitadel.management.api.v1.ProjectUserGrantID") + proto.RegisterType((*ProjectUserGrantUpdate)(nil), "caos.zitadel.management.api.v1.ProjectUserGrantUpdate") + proto.RegisterType((*ProjectGrantUserGrantID)(nil), "caos.zitadel.management.api.v1.ProjectGrantUserGrantID") + proto.RegisterType((*ProjectGrantUserGrantCreate)(nil), "caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate") + proto.RegisterType((*ProjectGrantUserGrantUpdate)(nil), "caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate") + proto.RegisterType((*UserGrantView)(nil), "caos.zitadel.management.api.v1.UserGrantView") + proto.RegisterType((*UserGrantSearchResponse)(nil), "caos.zitadel.management.api.v1.UserGrantSearchResponse") + proto.RegisterType((*UserGrantSearchRequest)(nil), "caos.zitadel.management.api.v1.UserGrantSearchRequest") + proto.RegisterType((*UserGrantSearchQuery)(nil), "caos.zitadel.management.api.v1.UserGrantSearchQuery") + proto.RegisterType((*ProjectUserGrantSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest") + proto.RegisterType((*ProjectGrantUserGrantSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest") +} + +func init() { proto.RegisterFile("management.proto", fileDescriptor_edc174f991dc0a25) } + +var fileDescriptor_edc174f991dc0a25 = []byte{ + // 9227 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x7d, 0x7b, 0x6c, 0x5b, 0x59, + 0x7a, 0xdf, 0x5c, 0x92, 0x92, 0xa8, 0x4f, 0x2f, 0xea, 0xe8, 0x45, 0x53, 0x7e, 0x68, 0xee, 0xd8, + 0x63, 0x9b, 0xb6, 0x45, 0x5b, 0x33, 0xe3, 0x79, 0x78, 0x77, 0xbc, 0x94, 0x48, 0xcb, 0xcc, 0x48, + 0xa2, 0x86, 0x92, 0xc7, 0x9d, 0x6d, 0xb0, 0xdc, 0x6b, 0xf2, 0x9a, 0x66, 0xcc, 0xd7, 0xde, 0x4b, + 0x7a, 0x46, 0x3b, 0x99, 0xa0, 0xd1, 0x00, 0xcd, 0x76, 0xd3, 0x4d, 0xbb, 0x3b, 0xdd, 0x6d, 0xbb, + 0xcd, 0x66, 0x9b, 0x04, 0x9b, 0x14, 0x69, 0x83, 0x45, 0xd0, 0xa8, 0x9d, 0xed, 0xb6, 0x09, 0xd0, + 0x26, 0x6d, 0x90, 0xb4, 0x40, 0xb7, 0x0d, 0x9a, 0xfc, 0xd1, 0xa0, 0x68, 0x12, 0xf4, 0x85, 0x02, + 0x41, 0x5f, 0x28, 0x3a, 0x45, 0x83, 0xe2, 0x3c, 0xee, 0xbd, 0xe7, 0x5c, 0xde, 0x27, 0x25, 0x7b, + 0xbd, 0x9e, 0xf9, 0x4b, 0xe2, 0x79, 0xfe, 0xbe, 0xef, 0x7c, 0xdf, 0x77, 0xbe, 0xf3, 0x9d, 0x73, + 0xcf, 0x81, 0x44, 0x53, 0x69, 0x29, 0x35, 0xb5, 0xa9, 0xb6, 0xba, 0xcb, 0x1d, 0xad, 0xdd, 0x6d, + 0xa3, 0x93, 0x15, 0xa5, 0xad, 0x2f, 0x7f, 0xbe, 0xde, 0x55, 0xaa, 0x6a, 0x63, 0x99, 0xcb, 0x56, + 0x3a, 0xf5, 0xe5, 0x07, 0x57, 0x52, 0xc7, 0x6b, 0xed, 0x76, 0xad, 0xa1, 0x66, 0x94, 0x4e, 0x3d, + 0xa3, 0xb4, 0x5a, 0xed, 0xae, 0xd2, 0xad, 0xb7, 0x5b, 0x3a, 0xad, 0x9d, 0x5a, 0x64, 0xb9, 0xe4, + 0xd7, 0x9d, 0xde, 0xdd, 0x8c, 0xda, 0xec, 0x74, 0xf7, 0x58, 0xe6, 0x71, 0x7b, 0xa6, 0xde, 0xd5, + 0x7a, 0x15, 0xd6, 0x71, 0xea, 0x94, 0x3d, 0xb7, 0x5b, 0x6f, 0xaa, 0x7a, 0x57, 0x69, 0x76, 0x58, + 0x81, 0x8b, 0xe4, 0x4f, 0xe5, 0x52, 0x4d, 0x6d, 0x5d, 0xd2, 0xdf, 0x52, 0x6a, 0x35, 0x55, 0xcb, + 0xb4, 0x3b, 0xa4, 0x77, 0x07, 0x24, 0x0b, 0x0f, 0x94, 0x46, 0xbd, 0xaa, 0x74, 0xd5, 0x8c, 0xf1, + 0x0f, 0xcb, 0x48, 0x2a, 0xbd, 0xee, 0x3d, 0x5a, 0xcf, 0xa8, 0xce, 0x72, 0x66, 0xc8, 0x9f, 0x4c, + 0x53, 0xd5, 0x75, 0xa5, 0xc6, 0x8a, 0xcb, 0x5f, 0x95, 0x20, 0x5a, 0x50, 0x9a, 0x48, 0x86, 0x89, + 0x5a, 0xa3, 0x7d, 0x47, 0x69, 0x94, 0xdb, 0x5a, 0xad, 0x5c, 0xaf, 0x26, 0xa5, 0x25, 0xe9, 0xdc, + 0x68, 0x69, 0x8c, 0x26, 0x16, 0xb5, 0x5a, 0xa1, 0x8a, 0x4e, 0xc3, 0x64, 0x5d, 0x69, 0x96, 0x3b, + 0x5a, 0xfb, 0x47, 0xd4, 0x4a, 0x17, 0x17, 0x8a, 0x90, 0x42, 0xe3, 0x75, 0xa5, 0xb9, 0x4d, 0x13, + 0x0b, 0x55, 0x74, 0x12, 0xc6, 0x74, 0xb5, 0x5b, 0xee, 0x75, 0xca, 0xd5, 0x76, 0x4b, 0x4d, 0x46, + 0x97, 0xa4, 0x73, 0xf1, 0xd2, 0xa8, 0xae, 0x76, 0x6f, 0x75, 0x72, 0xed, 0x96, 0x8a, 0x5b, 0x61, + 0xf9, 0x7a, 0x57, 0xd1, 0xba, 0x6a, 0x35, 0x19, 0x23, 0x45, 0xc6, 0x49, 0x91, 0x1d, 0x9a, 0x26, + 0xff, 0x84, 0x04, 0x13, 0x6b, 0xf7, 0x94, 0x56, 0x4d, 0x2d, 0xa9, 0x9f, 0xeb, 0xa9, 0x7a, 0x17, + 0x4d, 0x42, 0xc4, 0x84, 0x15, 0xa9, 0x57, 0xd1, 0x1c, 0x0c, 0xeb, 0x6a, 0xc5, 0x42, 0x31, 0xa4, + 0xab, 0x95, 0x42, 0x15, 0xcd, 0xc2, 0x50, 0xa3, 0xde, 0xac, 0x77, 0x49, 0xc7, 0xb1, 0x12, 0xfd, + 0x81, 0xce, 0xc2, 0x94, 0x8e, 0xdb, 0x69, 0x55, 0xd4, 0x72, 0xfb, 0xee, 0x5d, 0x5d, 0xed, 0x92, + 0x5e, 0x63, 0xa5, 0x49, 0x23, 0xb9, 0x48, 0x52, 0x51, 0x02, 0xa2, 0x8a, 0x5e, 0x49, 0x0e, 0x11, + 0x48, 0xf8, 0x5f, 0x79, 0x0f, 0x46, 0x28, 0x10, 0x1d, 0x7d, 0x0a, 0x46, 0x2a, 0xf4, 0xdf, 0xa4, + 0xb4, 0x14, 0x3d, 0x37, 0xb6, 0xf2, 0xec, 0xb2, 0xb7, 0x38, 0x2d, 0x33, 0x12, 0x8c, 0x6a, 0x68, + 0x1e, 0x86, 0x59, 0xf7, 0x11, 0xd2, 0x3d, 0xfb, 0xe5, 0x8c, 0x5a, 0xfe, 0x0b, 0x11, 0x18, 0xa6, + 0x2d, 0xa0, 0x6b, 0x30, 0x46, 0xdb, 0x28, 0xe3, 0xb1, 0x26, 0x6c, 0x18, 0x5b, 0x49, 0x2d, 0x53, + 0xa1, 0x5a, 0x36, 0x84, 0x6a, 0x79, 0xd7, 0x10, 0xaa, 0x12, 0xd0, 0xe2, 0x39, 0xa5, 0xab, 0xa2, + 0x1c, 0x80, 0xfa, 0x40, 0x6d, 0x75, 0xcb, 0xdd, 0xbd, 0x8e, 0x4a, 0x7a, 0x1e, 0x5b, 0x39, 0x23, + 0x42, 0x67, 0x78, 0x37, 0xda, 0x15, 0xa5, 0x51, 0xff, 0xbc, 0x5a, 0xdd, 0xa4, 0x52, 0x52, 0x1a, + 0x25, 0x15, 0x77, 0xf7, 0x3a, 0x2a, 0x4a, 0x41, 0xdc, 0x60, 0x16, 0x83, 0x69, 0xfe, 0x46, 0x8b, + 0x30, 0xaa, 0x56, 0xeb, 0xdd, 0xb6, 0x86, 0xc7, 0x23, 0x46, 0xc6, 0x23, 0x4e, 0x13, 0x0a, 0x55, + 0x4c, 0x34, 0xfd, 0x9f, 0xb0, 0x75, 0xb4, 0xc4, 0x7e, 0xa1, 0x0b, 0x10, 0xab, 0x2a, 0x5d, 0x25, + 0x39, 0x4c, 0x00, 0x2d, 0xf4, 0x11, 0xb3, 0x43, 0xf4, 0xa7, 0x44, 0x0a, 0xc9, 0xaf, 0xc2, 0x44, + 0xb6, 0xd3, 0x69, 0xd4, 0x2b, 0x44, 0x0d, 0x0a, 0xb9, 0x3e, 0x79, 0x38, 0x01, 0xd0, 0x27, 0x99, + 0xa3, 0x1d, 0x43, 0x2c, 0xe5, 0x45, 0x18, 0x35, 0x64, 0xb4, 0xaf, 0xae, 0x9c, 0x84, 0xe1, 0x5b, + 0xba, 0xaa, 0x39, 0xe4, 0x9c, 0x80, 0xa1, 0x7c, 0x53, 0xa9, 0x37, 0xf0, 0x08, 0xa9, 0xf8, 0x1f, + 0x96, 0x47, 0x7f, 0xc8, 0x9f, 0x81, 0xe9, 0x5b, 0xad, 0xfa, 0xe7, 0x7a, 0x2a, 0xae, 0x6e, 0x48, + 0xea, 0x59, 0x18, 0xed, 0xe9, 0xaa, 0x56, 0x6e, 0x29, 0x4d, 0x3a, 0x52, 0xa3, 0xab, 0xf0, 0xe1, + 0xea, 0x88, 0x36, 0x94, 0x90, 0x92, 0xbf, 0x25, 0x95, 0xe2, 0x38, 0x73, 0x4b, 0x69, 0xaa, 0x68, + 0xc9, 0x68, 0x33, 0xd2, 0x57, 0x88, 0xb5, 0x7f, 0x05, 0x10, 0xdf, 0xbe, 0xde, 0x69, 0xb7, 0x74, + 0xc2, 0xed, 0xba, 0x5e, 0xee, 0x91, 0x0c, 0xd2, 0x41, 0xbc, 0x14, 0xaf, 0xeb, 0xb4, 0xa0, 0xfc, + 0xc1, 0x10, 0x4c, 0xaf, 0x69, 0xaa, 0xd2, 0x1d, 0x0c, 0xd3, 0x79, 0x80, 0xbb, 0x75, 0x4d, 0xef, + 0xd2, 0x92, 0xfd, 0xc0, 0x46, 0x49, 0x2e, 0x29, 0x7a, 0x16, 0x46, 0x1b, 0x8a, 0x51, 0x32, 0xda, + 0xdf, 0x26, 0xce, 0x24, 0x05, 0xcf, 0xc0, 0x68, 0xab, 0x5e, 0xb9, 0x4f, 0x0b, 0x12, 0xe9, 0x58, + 0x8d, 0x7f, 0xb8, 0x3a, 0xa4, 0x45, 0x49, 0x31, 0x9c, 0x45, 0x8a, 0xbd, 0x08, 0xa8, 0xa3, 0xa9, + 0x77, 0x55, 0x4d, 0x53, 0xab, 0xe5, 0x86, 0xd2, 0xaa, 0xf5, 0x94, 0x9a, 0x4a, 0x65, 0x86, 0x2b, + 0x3f, 0x6d, 0x96, 0xd9, 0x60, 0x45, 0xd0, 0xab, 0x30, 0x5c, 0x53, 0x5b, 0x55, 0x55, 0x23, 0xa2, + 0x34, 0xe9, 0xaf, 0x96, 0xeb, 0xa4, 0x74, 0x89, 0xd5, 0x42, 0xb2, 0x31, 0x0e, 0x23, 0xa4, 0xaf, + 0xf1, 0x0f, 0x57, 0x47, 0xb5, 0x11, 0x42, 0xc4, 0x67, 0x8d, 0x91, 0x40, 0x69, 0x98, 0xae, 0xeb, + 0x65, 0xf2, 0x7f, 0xf9, 0x81, 0xaa, 0xd5, 0xef, 0xd6, 0xd5, 0x6a, 0x32, 0x4e, 0x78, 0x3f, 0x55, + 0xd7, 0x89, 0x8c, 0xbc, 0xc1, 0x92, 0xd1, 0x09, 0x18, 0xea, 0xdc, 0xc3, 0xc6, 0x6f, 0x94, 0xb4, + 0x37, 0xf2, 0xe1, 0x6a, 0x4c, 0x8b, 0x24, 0x67, 0x4b, 0x34, 0x95, 0x35, 0x45, 0xfe, 0xb7, 0x9a, + 0x02, 0xa3, 0xa9, 0x6d, 0x9c, 0x6e, 0x36, 0x25, 0xc3, 0x48, 0xa5, 0xdd, 0x6b, 0x75, 0xb5, 0xbd, + 0xe4, 0x98, 0x8d, 0x11, 0x46, 0x06, 0x3a, 0x0d, 0xf1, 0x06, 0xd1, 0xdb, 0xee, 0x5e, 0x72, 0xdc, + 0xce, 0x5d, 0x23, 0x07, 0x9d, 0x87, 0xb1, 0x4e, 0x5b, 0xef, 0x2a, 0x8d, 0x72, 0xa5, 0x5d, 0x55, + 0x93, 0x13, 0xb6, 0x82, 0x40, 0x33, 0xd7, 0xda, 0x55, 0x2c, 0x97, 0xc3, 0x9a, 0x5a, 0xab, 0xb7, + 0x5b, 0xc9, 0x49, 0x5b, 0x29, 0x96, 0x8e, 0x32, 0x30, 0xa9, 0x77, 0x35, 0x55, 0xed, 0x96, 0x95, + 0x6a, 0x55, 0x53, 0x75, 0x3d, 0x39, 0x65, 0x2b, 0x39, 0x41, 0xf3, 0xb3, 0x34, 0x1b, 0x3d, 0x03, + 0xf1, 0x8e, 0xa2, 0xeb, 0x6f, 0xb5, 0xb5, 0x6a, 0x32, 0xc1, 0x73, 0xe5, 0x66, 0xc9, 0xcc, 0x90, + 0xdf, 0x1f, 0x86, 0x18, 0x16, 0xda, 0x3e, 0xdd, 0xbe, 0x0e, 0x43, 0x7a, 0x17, 0xdb, 0xbd, 0x08, + 0x19, 0xdf, 0xf3, 0x7e, 0xe3, 0x8b, 0x1b, 0xd9, 0xc1, 0x15, 0x4a, 0xb4, 0x1e, 0xba, 0x0e, 0x13, + 0x15, 0xac, 0x13, 0xf5, 0x76, 0x8b, 0x1a, 0xd0, 0xa8, 0xaf, 0x01, 0x1d, 0x37, 0x2a, 0x10, 0x13, + 0x6a, 0xb3, 0xbf, 0xb1, 0x50, 0xf6, 0x77, 0x91, 0x57, 0x3e, 0x6a, 0x03, 0x2d, 0x85, 0x3b, 0x21, + 0x28, 0xdc, 0x30, 0xb5, 0x5b, 0x96, 0x92, 0x2d, 0xf2, 0x4a, 0x36, 0x42, 0xeb, 0x9a, 0x8a, 0xf5, + 0x34, 0x8c, 0x57, 0xeb, 0x7a, 0xa7, 0xa1, 0xec, 0xd1, 0xfc, 0x38, 0x9d, 0xb4, 0x59, 0x9a, 0x51, + 0xdf, 0xd2, 0xbd, 0x51, 0x5a, 0xdf, 0xd4, 0xb8, 0x4b, 0x8e, 0x1a, 0x07, 0xa4, 0x94, 0xa7, 0x9e, + 0x8d, 0x0d, 0xa4, 0x67, 0xa6, 0x0d, 0x1d, 0xe7, 0x6c, 0xa8, 0xb3, 0x66, 0x4d, 0x38, 0x6b, 0xd6, + 0xac, 0xa1, 0x59, 0x93, 0xb4, 0x05, 0x0f, 0x85, 0x9a, 0x72, 0x56, 0xa8, 0xa4, 0xa5, 0x50, 0x44, + 0x0e, 0x2d, 0x35, 0x4a, 0x71, 0x6a, 0x34, 0xcd, 0x18, 0x6d, 0x28, 0xcf, 0x29, 0x51, 0x79, 0x10, + 0xc9, 0xe6, 0x55, 0x66, 0xde, 0x54, 0x99, 0x19, 0x3a, 0xc7, 0x31, 0x45, 0x39, 0xd3, 0xa7, 0x28, + 0xb3, 0x24, 0xdf, 0xa6, 0x1e, 0xfc, 0xdc, 0x3a, 0x27, 0xce, 0xad, 0xf2, 0xfb, 0x71, 0x88, 0x63, + 0x81, 0x7e, 0xa3, 0xae, 0xbe, 0xf5, 0xa4, 0x69, 0xc6, 0xcb, 0x00, 0x44, 0xba, 0x1b, 0xed, 0x5a, + 0xbd, 0x45, 0x54, 0xc3, 0xbb, 0x2e, 0xd1, 0x85, 0x0d, 0x5c, 0x18, 0xe5, 0x21, 0x61, 0x18, 0x8e, + 0x32, 0x6d, 0xb1, 0xca, 0x3c, 0x09, 0xaf, 0x06, 0xa6, 0x8c, 0x3a, 0xd4, 0xaf, 0xaa, 0x8a, 0xba, + 0x39, 0xe2, 0xa9, 0x9b, 0x71, 0x4f, 0xdd, 0x1c, 0xf5, 0xd1, 0x4d, 0xf0, 0xd1, 0xcd, 0xb1, 0x40, + 0xba, 0x39, 0xee, 0xaf, 0x9b, 0x13, 0x87, 0xd3, 0xcd, 0x49, 0x5f, 0xdd, 0x9c, 0xf2, 0xd1, 0xcd, + 0x84, 0xaf, 0x6e, 0x4e, 0xfb, 0xea, 0x26, 0x72, 0xd7, 0xcd, 0x19, 0x6f, 0xdd, 0x9c, 0xf5, 0xd0, + 0xcd, 0x39, 0x1f, 0xdd, 0x9c, 0xf7, 0xd3, 0xcd, 0x05, 0x9b, 0xdf, 0x7b, 0x06, 0x26, 0x35, 0x55, + 0x6f, 0xf7, 0x34, 0xbc, 0xae, 0x78, 0xab, 0xa5, 0x6a, 0xc9, 0x24, 0x6d, 0xc2, 0x48, 0x2d, 0xe2, + 0x44, 0x0c, 0x91, 0x48, 0x38, 0x19, 0x69, 0x3d, 0x79, 0x6c, 0x29, 0x8a, 0x21, 0x92, 0x24, 0x3c, + 0xd6, 0x3a, 0xba, 0x0c, 0xb3, 0xdc, 0x60, 0x9b, 0x45, 0x93, 0x29, 0xd2, 0x9a, 0x25, 0x08, 0x1b, + 0x46, 0x15, 0xf9, 0x4f, 0x25, 0x98, 0x26, 0xca, 0xac, 0x2a, 0x5a, 0xe5, 0x9e, 0xe1, 0xe6, 0x59, + 0xeb, 0x0b, 0xc9, 0x79, 0x7d, 0x11, 0xe1, 0x57, 0x45, 0x9f, 0x81, 0x49, 0xbd, 0xad, 0x75, 0xeb, + 0xad, 0x5a, 0xb9, 0xd2, 0x6e, 0xf4, 0x9a, 0x2d, 0xa2, 0xfc, 0x93, 0x2b, 0x97, 0x02, 0x59, 0x11, + 0xd2, 0xf1, 0x6b, 0xea, 0x1e, 0x99, 0xf4, 0xf7, 0xa5, 0xc8, 0xd2, 0x53, 0xa5, 0x09, 0xd6, 0xdc, + 0x1a, 0x69, 0xcd, 0x58, 0x4c, 0xc5, 0xcc, 0xc5, 0x14, 0x2a, 0xc0, 0xc8, 0xe7, 0x7a, 0xaa, 0x56, + 0x57, 0xf5, 0xe4, 0x10, 0x59, 0x41, 0x65, 0x82, 0x77, 0xf5, 0x7a, 0x4f, 0xd5, 0xf6, 0x4a, 0x46, + 0x7d, 0xf9, 0x03, 0x09, 0xa6, 0x6c, 0x99, 0xa8, 0x00, 0xd1, 0xfb, 0xea, 0x1e, 0xa1, 0xfd, 0x10, + 0x54, 0xe0, 0x36, 0x50, 0x0e, 0x86, 0x9b, 0x6a, 0xf7, 0x5e, 0xbb, 0xca, 0x2c, 0xeb, 0x45, 0xbf, + 0xd6, 0x68, 0x4b, 0x9b, 0xa4, 0x4e, 0x89, 0xd5, 0xc5, 0x7c, 0x7f, 0xa0, 0x34, 0x7a, 0xcc, 0x3d, + 0x2e, 0xd1, 0x1f, 0xf2, 0x2f, 0x4a, 0x80, 0xf8, 0xb1, 0x63, 0x6e, 0x7d, 0xb8, 0xc1, 0x7b, 0x1a, + 0xc6, 0xbb, 0x6d, 0x2c, 0xf5, 0x9a, 0xaa, 0xf7, 0x1a, 0xc6, 0xca, 0x71, 0x8c, 0xa4, 0x95, 0x48, + 0x12, 0xfa, 0x14, 0x16, 0x7c, 0x92, 0x19, 0x23, 0xcc, 0x3e, 0x17, 0x84, 0x23, 0x78, 0x9a, 0x29, + 0xb1, 0x7a, 0xf2, 0xaf, 0x47, 0x61, 0x0c, 0x27, 0x6e, 0x6b, 0xed, 0xbb, 0xf5, 0x86, 0xea, 0xb4, + 0xe8, 0xb2, 0xaf, 0x16, 0x5c, 0x0d, 0x64, 0xd4, 0x66, 0x20, 0x17, 0xfb, 0x56, 0x05, 0x9c, 0xf5, + 0xb3, 0x5b, 0xcf, 0xa1, 0x7e, 0xeb, 0xe9, 0x6c, 0x20, 0x87, 0xfd, 0x0d, 0xe4, 0xc8, 0x40, 0x06, + 0x52, 0x98, 0x28, 0xe2, 0xb6, 0x89, 0x82, 0xb7, 0x11, 0xa3, 0x36, 0x1b, 0xd1, 0x37, 0xc3, 0xc2, + 0xe1, 0x66, 0xd8, 0xb1, 0x30, 0x33, 0xac, 0xfc, 0xb5, 0x18, 0x55, 0x13, 0x36, 0x82, 0x8e, 0x4e, + 0xc4, 0xc7, 0xa3, 0xf8, 0x98, 0x8f, 0xa2, 0x7d, 0x02, 0x19, 0x0f, 0x3c, 0x81, 0x2c, 0xba, 0x4e, + 0x20, 0x3f, 0x13, 0x81, 0xe4, 0xad, 0x4e, 0x95, 0xc5, 0x09, 0x98, 0x78, 0xb8, 0x05, 0xdb, 0x3e, + 0x82, 0x51, 0x01, 0xf9, 0x7f, 0x4b, 0x30, 0x8a, 0x59, 0x43, 0xe3, 0x3f, 0x76, 0x8e, 0xcc, 0x0a, + 0xb1, 0x1b, 0x4f, 0x7f, 0x29, 0xea, 0xec, 0x2f, 0xf1, 0xd2, 0x16, 0xf3, 0x93, 0xb6, 0xa1, 0xc3, + 0x49, 0xdb, 0x70, 0x28, 0x9b, 0xf1, 0x7f, 0x25, 0x98, 0x30, 0x29, 0x77, 0xb4, 0x18, 0x4f, 0x32, + 0xf5, 0x0f, 0x60, 0xde, 0xd2, 0x0b, 0x02, 0xda, 0x4d, 0x2b, 0x7c, 0xe3, 0x77, 0x61, 0x38, 0x62, + 0xca, 0x1b, 0xf1, 0x89, 0x9d, 0x38, 0x4e, 0xbd, 0xeb, 0x88, 0xaf, 0x77, 0x1d, 0x75, 0xf6, 0xae, + 0x79, 0x8e, 0x0f, 0xf9, 0x71, 0x7c, 0xf8, 0x70, 0x1c, 0x1f, 0x19, 0x48, 0xde, 0x28, 0x5e, 0x17, + 0x79, 0x7b, 0x62, 0xa9, 0xef, 0xf1, 0xf2, 0x46, 0x40, 0xbb, 0xc9, 0xdb, 0x29, 0x81, 0x0b, 0xab, + 0xa3, 0x1f, 0xae, 0x0e, 0x6b, 0xb1, 0x84, 0xe4, 0x13, 0x59, 0x74, 0x66, 0x88, 0xfc, 0x2f, 0x22, + 0xd4, 0xb5, 0x33, 0x96, 0x39, 0xf6, 0xce, 0xb8, 0xc5, 0x58, 0xc4, 0x7d, 0x31, 0x16, 0xf5, 0x5e, + 0x8c, 0xc5, 0x3c, 0x16, 0x63, 0x43, 0x3e, 0x8b, 0xb1, 0x61, 0xbf, 0xc5, 0xd8, 0x88, 0xdf, 0x30, + 0xc6, 0x0f, 0x37, 0x8c, 0xa3, 0xa1, 0x86, 0xf1, 0x7b, 0x11, 0xea, 0x68, 0x31, 0xa4, 0x8e, 0x62, + 0xfc, 0x31, 0x4f, 0xc3, 0xf1, 0xf4, 0xbf, 0x4b, 0xbc, 0x8f, 0xc2, 0xf0, 0xba, 0x69, 0x87, 0x6c, + 0x63, 0xae, 0x5f, 0xa8, 0x3c, 0x1a, 0x34, 0x54, 0x1e, 0x0b, 0x14, 0x2a, 0x1f, 0x0a, 0x1c, 0x2a, + 0x1f, 0xf6, 0x0c, 0x95, 0xcb, 0x45, 0x18, 0xdf, 0xec, 0x35, 0xba, 0xf5, 0x1b, 0x4a, 0xa5, 0xdb, + 0xd6, 0x74, 0x74, 0x1d, 0x62, 0xcd, 0xbb, 0x8a, 0xb1, 0xe5, 0x78, 0xc1, 0xcf, 0x8b, 0xe1, 0xea, + 0x96, 0x48, 0x45, 0xf9, 0x8b, 0x12, 0x8c, 0x71, 0xa9, 0xe8, 0x1a, 0xc4, 0xc8, 0x46, 0x20, 0x5d, + 0x26, 0x9f, 0xf5, 0x6d, 0xf0, 0xae, 0xb2, 0xbb, 0xd7, 0x51, 0x4b, 0xa4, 0x12, 0x7a, 0x55, 0x0c, + 0x38, 0xfa, 0x2e, 0x29, 0x37, 0x6f, 0x64, 0xf9, 0x78, 0xa3, 0x7c, 0x1c, 0x60, 0x9b, 0x85, 0xe0, + 0x1c, 0xb6, 0xdb, 0x6e, 0xc2, 0x94, 0x91, 0xeb, 0x36, 0xcc, 0x67, 0xb8, 0x9d, 0x04, 0x9b, 0x1d, + 0xe4, 0xf7, 0x12, 0x9e, 0x85, 0xd9, 0x92, 0xaa, 0xab, 0x5d, 0x9f, 0xe6, 0xe4, 0x07, 0x70, 0x72, + 0xc7, 0x2a, 0xb5, 0xd5, 0xee, 0xd6, 0xef, 0xb2, 0x3d, 0x46, 0x37, 0x00, 0x39, 0xc6, 0x3e, 0xca, + 0x80, 0xcb, 0x7e, 0x0c, 0xe0, 0x9b, 0xb4, 0xf8, 0x28, 0x5f, 0x84, 0x94, 0xd1, 0xe9, 0x5a, 0xbb, + 0xd9, 0x69, 0xa8, 0x6f, 0xd7, 0xbb, 0x7b, 0xdb, 0xed, 0x46, 0xbd, 0xb2, 0xe7, 0xc0, 0x97, 0x3f, + 0x89, 0x42, 0xd2, 0xad, 0xb8, 0x83, 0x5b, 0x32, 0x56, 0x55, 0xf5, 0x8a, 0x56, 0x27, 0xdb, 0xff, + 0xcc, 0xd2, 0xf0, 0x49, 0x28, 0x6b, 0x0c, 0x22, 0x8d, 0xf7, 0xf8, 0xca, 0x14, 0xed, 0xc8, 0x3b, + 0x6e, 0x1c, 0x3b, 0x9c, 0x61, 0x18, 0x0a, 0xb5, 0x1e, 0x3a, 0x01, 0xd0, 0xac, 0xb7, 0xca, 0x0d, + 0xb5, 0x55, 0xeb, 0xde, 0x23, 0x0a, 0x15, 0x2b, 0x8d, 0x36, 0xeb, 0xad, 0x0d, 0x92, 0x80, 0x9e, + 0x81, 0x89, 0x7b, 0x8a, 0x5e, 0x6e, 0xb4, 0xdf, 0x52, 0xb5, 0x8a, 0xa2, 0x53, 0xb3, 0x16, 0x2f, + 0x8d, 0xdf, 0x53, 0xf4, 0x0d, 0x23, 0xcd, 0x28, 0xd4, 0xeb, 0x74, 0x58, 0xa1, 0xb8, 0x59, 0xe8, + 0x96, 0x91, 0x86, 0x3b, 0xc2, 0x85, 0x5a, 0xbd, 0xe6, 0x1d, 0x55, 0x23, 0xd6, 0x2b, 0x5e, 0x1a, + 0xbd, 0xa7, 0xe8, 0x5b, 0x24, 0xc1, 0xc8, 0xd6, 0xf7, 0x9a, 0x77, 0xda, 0x0d, 0xb6, 0x87, 0x87, + 0xb3, 0x77, 0x48, 0x82, 0x60, 0x59, 0xc7, 0x6c, 0x96, 0xf5, 0x04, 0x40, 0x5d, 0x2f, 0x57, 0xd5, + 0xbb, 0x4a, 0xaf, 0xd1, 0x25, 0x71, 0xdd, 0x78, 0x69, 0xb4, 0xae, 0xe7, 0x68, 0x82, 0xfc, 0x3f, + 0x24, 0x38, 0xe9, 0x36, 0xe2, 0x74, 0x7b, 0x17, 0xa5, 0xc5, 0x71, 0x96, 0x78, 0xb3, 0xf2, 0x3f, + 0xa3, 0xe2, 0x88, 0x8b, 0x0c, 0x8b, 0xf8, 0x32, 0x2c, 0x1a, 0x84, 0x61, 0x31, 0x5f, 0x86, 0x0d, + 0x79, 0x33, 0x6c, 0xd8, 0xc6, 0x30, 0xf9, 0xbd, 0x88, 0x3b, 0xd5, 0x74, 0x22, 0xe8, 0x93, 0xf6, + 0xb4, 0x83, 0xb4, 0x07, 0xe3, 0x42, 0xd4, 0x97, 0x0b, 0xb1, 0x20, 0x5c, 0x18, 0xf2, 0xe5, 0xc2, + 0xb0, 0x37, 0x17, 0x46, 0xec, 0x5c, 0x38, 0x03, 0x33, 0x06, 0x13, 0xb2, 0x35, 0xd5, 0xd5, 0x28, + 0x7c, 0x29, 0x0a, 0xd3, 0x7d, 0xe5, 0x3e, 0x8a, 0xd6, 0x60, 0x09, 0xc6, 0x9b, 0xca, 0xdb, 0x65, + 0x85, 0xd4, 0xde, 0xd3, 0x99, 0x3d, 0x80, 0xa6, 0xf2, 0x76, 0x16, 0x97, 0xd8, 0xd3, 0xd1, 0x39, + 0x48, 0xa8, 0x6f, 0x77, 0xea, 0x9a, 0x5a, 0x7e, 0x4b, 0xd1, 0x5a, 0xb4, 0x14, 0x75, 0x75, 0x26, + 0x69, 0xfa, 0x6d, 0x45, 0x6b, 0x91, 0x92, 0xbc, 0xca, 0xc6, 0x3d, 0x55, 0x76, 0xd4, 0xae, 0xb2, + 0x5f, 0x96, 0x60, 0xa1, 0x6f, 0x3c, 0x06, 0xd0, 0x55, 0x3b, 0x39, 0x91, 0x40, 0xe4, 0x44, 0x9d, + 0xc8, 0x91, 0x7f, 0xd6, 0x09, 0xd3, 0x11, 0x68, 0x92, 0x1d, 0x63, 0x34, 0x10, 0xc6, 0x98, 0x23, + 0xc6, 0xf3, 0x16, 0xc4, 0x8d, 0x76, 0xe5, 0x7e, 0xbb, 0xd7, 0x75, 0x15, 0xf9, 0x6f, 0x44, 0x61, + 0xce, 0xb1, 0xec, 0x47, 0x51, 0xec, 0x9f, 0x66, 0x63, 0xd0, 0xed, 0xaa, 0xcd, 0x4e, 0xd7, 0x10, + 0xfb, 0x31, 0x3c, 0x06, 0x2c, 0x09, 0x3d, 0x07, 0xf3, 0xfa, 0xbd, 0xf6, 0x5b, 0xe5, 0x46, 0xbb, + 0x72, 0xbf, 0xdc, 0xee, 0x75, 0xcb, 0x77, 0x95, 0x7a, 0xa3, 0xa7, 0xa9, 0x3a, 0x33, 0x3a, 0x33, + 0x38, 0x17, 0x33, 0xb2, 0xd8, 0xeb, 0xde, 0x60, 0x59, 0x87, 0x51, 0x81, 0x9f, 0x95, 0x60, 0xd1, + 0x71, 0x7c, 0x06, 0x50, 0x03, 0x3b, 0x79, 0x91, 0x30, 0xe4, 0x45, 0x5d, 0xc9, 0x93, 0x7f, 0xc5, + 0x0d, 0xe3, 0x11, 0xa8, 0x85, 0x1d, 0x73, 0x34, 0x0c, 0xe6, 0x98, 0x3b, 0xe6, 0xbf, 0x21, 0xc1, + 0x78, 0x51, 0xab, 0x15, 0x94, 0x26, 0x13, 0xf7, 0x39, 0x18, 0x16, 0x0e, 0x6a, 0x0e, 0xb5, 0xc9, + 0x11, 0x4d, 0x7f, 0xa9, 0x7f, 0x09, 0x8e, 0x91, 0x00, 0x38, 0x8d, 0x11, 0x37, 0x7b, 0x7a, 0xb7, + 0x7c, 0x47, 0x2d, 0x57, 0xdb, 0x4d, 0xa5, 0xde, 0x62, 0x5c, 0x9b, 0xc3, 0x05, 0x48, 0xa0, 0x78, + 0xb3, 0xa7, 0x77, 0x57, 0xd5, 0x1c, 0xc9, 0xc4, 0x8b, 0x57, 0x63, 0xdc, 0x29, 0x52, 0xe3, 0xa7, + 0xbc, 0x00, 0x43, 0x18, 0x5c, 0xbf, 0xba, 0xbe, 0x17, 0x81, 0x68, 0x51, 0xab, 0xf5, 0xb1, 0x34, + 0xec, 0x22, 0xa2, 0xa8, 0xd5, 0x1e, 0xa3, 0x43, 0x0b, 0x08, 0x62, 0xdc, 0x6e, 0x06, 0xf9, 0x5f, + 0xd0, 0x99, 0x61, 0xdb, 0x01, 0x8e, 0x9f, 0x88, 0xc0, 0x48, 0x51, 0xab, 0x39, 0x46, 0x04, 0x3e, + 0x5a, 0x9c, 0x58, 0x82, 0x61, 0x26, 0x4c, 0xf3, 0x30, 0xcc, 0x64, 0x8e, 0xf2, 0x82, 0xfd, 0x92, + 0x5f, 0x07, 0x28, 0x6a, 0x35, 0x5a, 0x48, 0x47, 0x6b, 0x30, 0x42, 0xd3, 0x8d, 0xd5, 0xef, 0xf9, + 0x00, 0xfc, 0xa1, 0x95, 0x4b, 0x46, 0x4d, 0xf9, 0x8b, 0x11, 0x18, 0x35, 0x93, 0xdd, 0x14, 0xa7, + 0x8f, 0x8f, 0x91, 0xc3, 0xf1, 0x31, 0x1a, 0x8a, 0x8f, 0x16, 0x37, 0x62, 0x3c, 0x37, 0x30, 0x2f, + 0xcd, 0x30, 0x1e, 0x75, 0x33, 0xcd, 0xdf, 0x58, 0x1d, 0x3b, 0x5a, 0xbd, 0xa9, 0x68, 0x7b, 0xcc, + 0xbf, 0x34, 0x7e, 0x7a, 0xc5, 0x73, 0xe4, 0x9f, 0x8a, 0xc0, 0x84, 0xc9, 0x0c, 0x22, 0x91, 0x1f, + 0x71, 0x86, 0xbc, 0x0c, 0x33, 0xd9, 0x6a, 0xd5, 0x12, 0x1b, 0xb6, 0xe8, 0x97, 0x45, 0xf9, 0x14, + 0x62, 0xfb, 0x86, 0xac, 0x7e, 0x02, 0xe6, 0x4b, 0x6a, 0xb3, 0xfd, 0x40, 0x1d, 0xa8, 0xf6, 0xaf, + 0x48, 0xb0, 0x60, 0x56, 0x7c, 0xd8, 0x27, 0x01, 0xf2, 0xb6, 0x93, 0x00, 0x97, 0x02, 0xeb, 0x91, + 0x70, 0x1c, 0xe0, 0x6b, 0x12, 0xcc, 0xf7, 0x61, 0x1e, 0xe4, 0xe4, 0xc9, 0x96, 0x75, 0x0e, 0x24, + 0x4a, 0x00, 0x3d, 0x1f, 0x18, 0x90, 0xe3, 0x61, 0x90, 0x7f, 0x2c, 0xc1, 0xac, 0x53, 0x09, 0xb4, + 0xc5, 0x9f, 0x08, 0x59, 0x09, 0xd9, 0xc9, 0x23, 0x3e, 0x16, 0xf2, 0x2c, 0x4c, 0x16, 0xb5, 0xda, + 0xa6, 0x8a, 0x97, 0x88, 0xa5, 0x76, 0x43, 0xd5, 0x71, 0x39, 0x0d, 0xff, 0x43, 0xac, 0xdf, 0x68, + 0x89, 0xfe, 0x90, 0x7f, 0x57, 0x22, 0x06, 0x8d, 0x16, 0x44, 0x0b, 0x30, 0x42, 0x26, 0x74, 0x53, + 0x81, 0x87, 0xf1, 0x4f, 0xfa, 0x25, 0x04, 0xad, 0x1c, 0xe1, 0x2a, 0x1f, 0x4e, 0x2d, 0x0f, 0xed, + 0xef, 0x7a, 0xec, 0xc2, 0xc8, 0x39, 0x43, 0x13, 0x19, 0x07, 0x98, 0x60, 0x85, 0xa3, 0x4f, 0x5e, + 0x87, 0x79, 0x7a, 0xb4, 0xef, 0xb0, 0x0d, 0x5d, 0xe1, 0xb4, 0x3b, 0x58, 0x43, 0x86, 0x4a, 0xd3, + 0xd2, 0x8f, 0xa3, 0x4a, 0x53, 0x64, 0x82, 0x4a, 0xff, 0x33, 0x3a, 0x21, 0x58, 0x39, 0x4f, 0x8c, + 0x40, 0x89, 0x67, 0x3d, 0x86, 0x6d, 0x67, 0x3d, 0x66, 0x85, 0x33, 0xff, 0xc6, 0x7e, 0xed, 0x21, + 0x0e, 0x7c, 0x1a, 0xc6, 0x51, 0x1c, 0xfd, 0x47, 0x66, 0x1c, 0xf9, 0x6e, 0x9d, 0x8d, 0x63, 0x5f, + 0x89, 0xf0, 0xc6, 0x91, 0x6f, 0xe2, 0x11, 0x1b, 0xc7, 0xab, 0x30, 0xcb, 0xbe, 0xdf, 0xa1, 0x4b, + 0x49, 0x83, 0xb5, 0x27, 0x99, 0x0b, 0xda, 0x3f, 0xd1, 0x92, 0x74, 0xf9, 0x86, 0x59, 0x8f, 0x2e, + 0xef, 0xdc, 0xa2, 0xfa, 0x46, 0x3b, 0x11, 0x97, 0x76, 0x7e, 0x59, 0x82, 0x39, 0xd6, 0xd0, 0xc3, + 0xd6, 0xec, 0x35, 0x9b, 0x66, 0xfb, 0x47, 0x26, 0x28, 0x2e, 0x41, 0xaf, 0x7f, 0x33, 0x02, 0x63, + 0x5c, 0xba, 0xed, 0xf3, 0x28, 0xc9, 0xf6, 0x79, 0x94, 0xe9, 0xc9, 0x47, 0x38, 0x4f, 0x7e, 0x55, + 0x0c, 0x90, 0x5c, 0x0c, 0x08, 0x43, 0x58, 0x9f, 0x1c, 0x6a, 0x79, 0x71, 0xe8, 0x73, 0x20, 0xfd, + 0xc7, 0x73, 0x87, 0x9d, 0x8e, 0xe7, 0x7a, 0xf9, 0x87, 0x5f, 0x91, 0x4c, 0x01, 0x3a, 0x8c, 0x4e, + 0x6f, 0xd8, 0x75, 0x7a, 0x25, 0x28, 0x37, 0x9d, 0x34, 0xfa, 0xd7, 0x24, 0x40, 0xfd, 0xf9, 0x68, + 0x83, 0xd7, 0xe7, 0xcb, 0xa1, 0x3a, 0x78, 0xc4, 0xda, 0x5c, 0x84, 0x38, 0xeb, 0x1e, 0x2f, 0xf2, + 0xe2, 0x4c, 0x0e, 0x8d, 0x55, 0xde, 0xd9, 0x80, 0xd0, 0x4b, 0x66, 0x45, 0xf9, 0x27, 0x23, 0x30, + 0xc2, 0x52, 0xfb, 0x54, 0xfb, 0xc9, 0x94, 0x6d, 0xaf, 0x75, 0x76, 0xda, 0x14, 0x0f, 0x7f, 0x6f, + 0xf2, 0xf7, 0x25, 0x98, 0x10, 0x0a, 0x3f, 0x39, 0x1e, 0xe5, 0xeb, 0x90, 0x10, 0x28, 0xcb, 0x56, + 0xab, 0x7d, 0xc2, 0xc1, 0x11, 0x1b, 0x71, 0x26, 0x36, 0xca, 0x73, 0x6b, 0x17, 0x66, 0x84, 0x26, + 0xd9, 0xe7, 0xb9, 0x87, 0x6c, 0xf5, 0x55, 0x5b, 0xab, 0xd4, 0xf1, 0x0c, 0xdc, 0xaa, 0x7c, 0x1f, + 0x26, 0x0d, 0x95, 0x68, 0x37, 0x54, 0x27, 0x32, 0x13, 0xd4, 0x34, 0xd0, 0x6a, 0x44, 0xbd, 0xed, + 0x67, 0x73, 0xa3, 0xfd, 0x67, 0x73, 0x67, 0x61, 0xa8, 0xa6, 0xb5, 0x7b, 0x1d, 0xb6, 0x08, 0xa7, + 0x3f, 0xe4, 0x3d, 0x53, 0xb8, 0x58, 0x67, 0xab, 0xbd, 0xc6, 0xfd, 0xbe, 0x0e, 0x77, 0x60, 0xc2, + 0x98, 0x6f, 0x2c, 0x99, 0x19, 0x5b, 0x59, 0x0e, 0xaa, 0xda, 0xb4, 0xe9, 0xd2, 0x78, 0xc7, 0xfa, + 0xad, 0xcb, 0x2d, 0x98, 0xe6, 0xf2, 0x5d, 0x78, 0x7f, 0x84, 0xa4, 0x7e, 0xd9, 0x9a, 0x44, 0x71, + 0x87, 0x7e, 0x93, 0xe8, 0x40, 0x3d, 0x7f, 0x7f, 0xf7, 0x10, 0x4c, 0xba, 0x87, 0x39, 0xba, 0x3d, + 0x27, 0xc4, 0xdf, 0x97, 0x60, 0x8a, 0xe3, 0x49, 0x10, 0xe7, 0xe2, 0xfb, 0xc3, 0x97, 0xf0, 0xa4, + 0xbd, 0x20, 0x88, 0x97, 0x8b, 0x12, 0xf6, 0x11, 0x23, 0x1f, 0x48, 0x70, 0x8c, 0xab, 0xf7, 0xb0, + 0xdd, 0xc3, 0x75, 0x9b, 0x7b, 0x98, 0x09, 0xa1, 0x52, 0x82, 0x8b, 0xf8, 0x1d, 0x09, 0x92, 0x0e, + 0xb8, 0xa9, 0x7b, 0xe3, 0x33, 0xa4, 0xa1, 0x2e, 0x32, 0x40, 0xdb, 0x96, 0xf7, 0x43, 0x31, 0x5f, + 0x0d, 0x81, 0xd9, 0xd1, 0x03, 0xfa, 0xa7, 0x12, 0xcc, 0x3b, 0x97, 0x41, 0xdb, 0xbc, 0x17, 0xf4, + 0x7c, 0xe8, 0x8e, 0x1e, 0xb1, 0x27, 0xf4, 0x3b, 0x11, 0x53, 0xe8, 0x82, 0xac, 0xc1, 0x85, 0x35, + 0x6d, 0xc4, 0x6d, 0x4d, 0x1b, 0x75, 0x5f, 0xd3, 0xc6, 0x3c, 0xd7, 0xb4, 0x43, 0xb6, 0xaf, 0x3b, + 0xcc, 0xe9, 0x6a, 0xd8, 0x63, 0xc6, 0x1f, 0x39, 0xdc, 0x8c, 0x1f, 0x3f, 0xc4, 0x8c, 0x0f, 0x36, + 0x0d, 0xfe, 0x8e, 0x04, 0x8b, 0x02, 0x37, 0x1f, 0xb6, 0x32, 0x16, 0x6c, 0xca, 0x78, 0x25, 0xa0, + 0xbc, 0x39, 0x44, 0x62, 0xfe, 0x91, 0x04, 0x29, 0x47, 0xec, 0x0f, 0x41, 0x21, 0x4b, 0x76, 0x85, + 0x7c, 0x29, 0x14, 0x6e, 0x47, 0x95, 0xfc, 0x6d, 0xcb, 0x9c, 0xf4, 0x87, 0x1a, 0x4a, 0xbc, 0x52, + 0x5e, 0x1d, 0xa0, 0xb3, 0x47, 0xac, 0x96, 0xff, 0x29, 0x02, 0x63, 0xdc, 0x7d, 0x23, 0x87, 0xde, + 0xb7, 0xcb, 0x76, 0x3a, 0x8f, 0xf9, 0xbe, 0xdd, 0x26, 0x8c, 0xb5, 0xeb, 0xd5, 0x4a, 0xb9, 0xd2, + 0x6e, 0xdd, 0xad, 0xd7, 0x98, 0x56, 0xa6, 0x7d, 0x83, 0x42, 0x85, 0xdc, 0xda, 0x1a, 0xa9, 0x71, + 0xf3, 0xa9, 0x12, 0xe0, 0x06, 0xe8, 0x2f, 0xaf, 0x6f, 0xa9, 0x56, 0xc7, 0x01, 0x94, 0x4e, 0x87, + 0xf5, 0x24, 0xdf, 0x81, 0x69, 0x8e, 0xd3, 0x6c, 0x13, 0xde, 0x47, 0xda, 0xe9, 0x70, 0x44, 0xfa, + 0xa2, 0x37, 0x43, 0x2e, 0xd1, 0x9b, 0xaf, 0xc6, 0x00, 0x2c, 0xa8, 0xe8, 0x19, 0x98, 0xd0, 0xd4, + 0x6a, 0x5d, 0xc3, 0xcd, 0xf7, 0xb4, 0xba, 0xb1, 0x22, 0x1a, 0x37, 0x12, 0x6f, 0x69, 0x75, 0x1d, + 0xdd, 0x26, 0xc1, 0x03, 0x62, 0x37, 0xc8, 0xc5, 0x39, 0xd4, 0x85, 0x0d, 0xb0, 0xb0, 0xc6, 0x1d, + 0x19, 0x16, 0x87, 0x9c, 0xf8, 0x9c, 0xd0, 0xb8, 0x5f, 0x3a, 0xda, 0x82, 0xb1, 0x9a, 0xa6, 0xb0, + 0xeb, 0x78, 0xe8, 0x4a, 0x20, 0xc0, 0xd7, 0xaa, 0xb8, 0xd5, 0x75, 0x5c, 0x8d, 0x34, 0x09, 0x35, + 0xe3, 0x5f, 0x1d, 0x7d, 0x06, 0x12, 0x8a, 0xc5, 0x40, 0x7a, 0xc9, 0x4f, 0x8c, 0x88, 0xe5, 0x73, + 0x41, 0x1a, 0xe5, 0x98, 0x4f, 0x9a, 0x9e, 0x52, 0xc4, 0x04, 0x3c, 0x43, 0x54, 0x1a, 0x75, 0xb5, + 0x45, 0x86, 0x82, 0xcd, 0x10, 0x34, 0xa1, 0x50, 0xc5, 0xac, 0x64, 0x99, 0xba, 0x5a, 0xd1, 0xd4, + 0x2e, 0xf3, 0xb6, 0xc6, 0x69, 0xe2, 0x0e, 0x49, 0x43, 0x3f, 0x0c, 0x09, 0xa5, 0xd7, 0xbd, 0x57, + 0xa6, 0x2a, 0x47, 0x11, 0x8e, 0x04, 0x8c, 0x3a, 0x62, 0x84, 0xbd, 0x2e, 0xd3, 0x5a, 0x02, 0x70, + 0x52, 0x11, 0x7e, 0xa3, 0x97, 0xe1, 0x58, 0xa7, 0x4d, 0x2f, 0x11, 0x68, 0xf7, 0xba, 0x65, 0x71, + 0x64, 0xe3, 0x64, 0x64, 0xe7, 0x71, 0x81, 0x0d, 0x92, 0x5f, 0xe2, 0xc6, 0x58, 0xfe, 0x46, 0x0c, + 0xe6, 0x6c, 0x3c, 0x60, 0x27, 0x55, 0x7c, 0x04, 0xd0, 0x27, 0x5c, 0xd8, 0x2f, 0x61, 0xd1, 0x40, + 0x12, 0x16, 0x7b, 0x28, 0x12, 0x36, 0xf4, 0x30, 0x24, 0x6c, 0xf8, 0x08, 0x25, 0xec, 0xb1, 0x95, + 0x8f, 0x6f, 0xc6, 0x20, 0x61, 0xd9, 0x8d, 0x60, 0xb6, 0xe9, 0x0c, 0x4c, 0xf2, 0xcc, 0x32, 0xed, + 0xd4, 0x04, 0x97, 0x4a, 0x15, 0xe7, 0x63, 0x09, 0xf9, 0xc1, 0x97, 0x90, 0xe7, 0x60, 0x7c, 0x8d, + 0x37, 0x75, 0x7d, 0xf6, 0x50, 0xea, 0xb7, 0x87, 0xf2, 0x7f, 0x8d, 0xc0, 0x14, 0x47, 0xf2, 0x91, + 0x9c, 0x0c, 0xfa, 0xd8, 0xc3, 0x70, 0xf5, 0x30, 0xf0, 0x02, 0x9d, 0x63, 0xf7, 0x63, 0xb7, 0x40, + 0xb7, 0x89, 0x82, 0xb0, 0x40, 0x77, 0xc0, 0xfd, 0x58, 0x2c, 0xd0, 0xfb, 0x70, 0x39, 0x2c, 0xd0, + 0x9d, 0xcb, 0x84, 0x5c, 0xa0, 0xf7, 0x35, 0xf2, 0x88, 0x57, 0x02, 0x7f, 0x14, 0x81, 0x71, 0xb6, + 0x1e, 0x21, 0xa6, 0x2f, 0xe4, 0xc5, 0x83, 0xe8, 0x34, 0x4c, 0x12, 0x3b, 0xa9, 0x56, 0x8d, 0xab, + 0x35, 0x69, 0xf3, 0xe3, 0x2c, 0x95, 0xde, 0xad, 0xb9, 0x08, 0xa3, 0x78, 0x6d, 0x5d, 0xbe, 0xaf, + 0xee, 0xd1, 0x21, 0x18, 0x2d, 0xc5, 0x71, 0xc2, 0x6b, 0xea, 0x9e, 0x8e, 0xd6, 0x0d, 0x53, 0x30, + 0x44, 0xa8, 0x0b, 0xba, 0xc6, 0x24, 0x70, 0xbd, 0x6d, 0xc2, 0xa3, 0xfc, 0xd0, 0xd5, 0x4b, 0x61, + 0xe5, 0x07, 0x66, 0x50, 0x99, 0xa0, 0x0e, 0xe6, 0x84, 0xf5, 0xb3, 0x36, 0xe2, 0xc7, 0xda, 0xa8, + 0xc8, 0x5a, 0xf9, 0xb3, 0x62, 0xbf, 0x83, 0xad, 0x3e, 0x3c, 0x7b, 0xb8, 0x6e, 0xc6, 0xe6, 0x49, + 0x0f, 0x85, 0x5c, 0xc8, 0xd6, 0xe5, 0x9f, 0x8c, 0x99, 0xdb, 0x18, 0xa4, 0x05, 0xb7, 0x2b, 0x3c, + 0x0e, 0x2f, 0x84, 0xe7, 0x20, 0xc1, 0x97, 0xe2, 0xe2, 0x45, 0x93, 0x56, 0x39, 0x23, 0x68, 0x64, + 0x51, 0x3c, 0xe4, 0x26, 0xae, 0xc3, 0x47, 0x2d, 0xae, 0x23, 0x87, 0x13, 0xd7, 0x78, 0xd8, 0xe3, + 0xf5, 0x06, 0x4b, 0xb9, 0xf3, 0x1e, 0x63, 0x2c, 0xad, 0xef, 0xc2, 0x10, 0xf0, 0xbd, 0x1a, 0x6a, + 0xcc, 0x69, 0xef, 0x79, 0x19, 0x66, 0xc4, 0x62, 0xb4, 0x33, 0x76, 0xcf, 0x97, 0x50, 0x96, 0x9c, + 0x32, 0xf9, 0xfb, 0x56, 0x94, 0x88, 0x32, 0xec, 0x21, 0x4f, 0x66, 0x37, 0x6d, 0x93, 0xd9, 0xe5, + 0x30, 0xa3, 0x29, 0xcc, 0x66, 0x7f, 0x5d, 0x82, 0xc5, 0x75, 0x2a, 0x46, 0x8f, 0xdd, 0x86, 0xfa, + 0x77, 0xad, 0x10, 0xbe, 0xc0, 0xd5, 0x87, 0x30, 0xd5, 0xbe, 0x6e, 0x9f, 0x6a, 0x5f, 0x0c, 0xa5, + 0x1f, 0x4e, 0xe8, 0x7f, 0x4b, 0x82, 0x05, 0x97, 0x42, 0xe8, 0x75, 0x7e, 0xb2, 0x7d, 0x21, 0x7c, + 0x57, 0x8f, 0x78, 0xb6, 0xcd, 0x88, 0x94, 0xf8, 0x6f, 0x5f, 0xff, 0x81, 0x24, 0x5a, 0xf0, 0x27, + 0x6d, 0x0f, 0xfb, 0xcf, 0x59, 0xe7, 0x8e, 0x38, 0xfa, 0xb2, 0xd5, 0xaa, 0x9f, 0x54, 0x1e, 0x83, + 0x38, 0x5d, 0xe1, 0x99, 0xf3, 0xc1, 0x08, 0xf9, 0x5d, 0x10, 0xf6, 0x91, 0xa3, 0xce, 0xcc, 0x89, + 0xf1, 0x2c, 0x7e, 0xcf, 0x0a, 0xec, 0x72, 0x10, 0xd8, 0xee, 0xeb, 0x23, 0x43, 0xd1, 0x74, 0x02, + 0xc1, 0xf6, 0xe8, 0x8e, 0x1e, 0x84, 0xfc, 0x2f, 0x23, 0xe6, 0x06, 0x13, 0xd7, 0xdf, 0xc7, 0x9b, + 0x33, 0x21, 0x44, 0xd9, 0xee, 0xe3, 0xfd, 0x13, 0x09, 0x96, 0xfa, 0x59, 0xfa, 0xb0, 0x27, 0xb0, + 0x2d, 0xdb, 0x04, 0x76, 0x35, 0x8c, 0x0d, 0x74, 0xd8, 0xa6, 0xf9, 0x43, 0x09, 0x4e, 0xb9, 0x53, + 0x11, 0x68, 0xc2, 0xf0, 0x90, 0x47, 0x8b, 0xfc, 0xa8, 0x33, 0xf9, 0x31, 0x9e, 0xfc, 0xdb, 0xf6, + 0xeb, 0x14, 0x3f, 0x19, 0x9e, 0x38, 0xc7, 0x19, 0xe5, 0x77, 0x25, 0x38, 0xe1, 0x59, 0x14, 0xdd, + 0xe6, 0xe7, 0x95, 0x6b, 0x83, 0x76, 0xfb, 0x88, 0x67, 0x97, 0xff, 0x18, 0xa1, 0x57, 0x2c, 0x39, + 0x2f, 0xe4, 0x5c, 0x0f, 0xed, 0x58, 0x9f, 0xc8, 0x44, 0xf9, 0x4f, 0x64, 0xc4, 0x51, 0x8e, 0xd9, + 0x47, 0xd9, 0xd3, 0x47, 0xce, 0x89, 0x3e, 0xf2, 0x72, 0x90, 0x9b, 0x19, 0x1f, 0x37, 0x07, 0xd9, + 0x4b, 0xd7, 0x6b, 0x30, 0x63, 0x42, 0xa6, 0x8b, 0x39, 0x72, 0x4a, 0x68, 0x1b, 0xc6, 0x08, 0x8b, + 0x89, 0xb8, 0x1b, 0xc7, 0xfd, 0x32, 0x81, 0x89, 0x67, 0x47, 0x7f, 0xa1, 0x67, 0x24, 0xe8, 0xf2, + 0x5d, 0x7a, 0xeb, 0x0e, 0xbf, 0x6a, 0x74, 0xb5, 0xcf, 0x3e, 0x8b, 0x24, 0xcf, 0x65, 0x1c, 0x4f, + 0x10, 0x5d, 0x25, 0x1e, 0x05, 0x41, 0xec, 0x4c, 0x32, 0x4f, 0xd0, 0x6d, 0x8e, 0x20, 0xb6, 0x1c, + 0x75, 0x25, 0x28, 0xd4, 0x42, 0xf4, 0x2c, 0x47, 0x01, 0x9d, 0x37, 0x09, 0x05, 0x09, 0x88, 0xd6, + 0xab, 0x86, 0x53, 0x85, 0xff, 0x95, 0xaf, 0xd2, 0x8b, 0xa1, 0x8c, 0xe5, 0x6a, 0xd0, 0xde, 0xe5, + 0x1f, 0x36, 0x3d, 0x31, 0xbe, 0xba, 0x8f, 0x2d, 0x74, 0x55, 0x3a, 0xda, 0x7a, 0xd4, 0x6c, 0xfd, + 0x5d, 0x73, 0x3e, 0xb6, 0xb3, 0xe7, 0x88, 0x7a, 0xf0, 0x8c, 0xc1, 0xc8, 0x0d, 0xd1, 0x31, 0xe5, + 0x29, 0x3c, 0x07, 0x09, 0xa3, 0x7f, 0xd3, 0xac, 0x53, 0x14, 0x93, 0x1d, 0x7e, 0xe5, 0x1f, 0x82, + 0xd8, 0x6f, 0x59, 0xe7, 0x18, 0xc4, 0xee, 0xfc, 0x44, 0xdc, 0x09, 0x4b, 0xc4, 0x11, 0xcb, 0xb3, + 0x02, 0xd7, 0xa2, 0xdc, 0x9d, 0xfc, 0x09, 0xc9, 0x55, 0x2b, 0xec, 0x5c, 0xf9, 0x92, 0x1b, 0x4e, + 0x36, 0x34, 0x47, 0xcf, 0x1a, 0x6f, 0x3c, 0x3f, 0x3e, 0x44, 0x6f, 0x92, 0x73, 0x0f, 0x94, 0x7c, + 0x6c, 0xe4, 0xe3, 0x83, 0xbf, 0x5d, 0x30, 0xea, 0x79, 0x3f, 0x3a, 0x78, 0x7a, 0xaf, 0x63, 0xfd, + 0xde, 0xab, 0xc3, 0x63, 0x00, 0xc7, 0x20, 0x6e, 0x86, 0x9e, 0x26, 0xa8, 0x6b, 0xd4, 0x66, 0x31, + 0xa7, 0x13, 0x00, 0x38, 0x8b, 0x7d, 0x58, 0x49, 0xaf, 0x29, 0x1f, 0x6d, 0x9b, 0x1f, 0xf6, 0xda, + 0xc3, 0x35, 0x53, 0xde, 0xe1, 0x9a, 0x84, 0x6f, 0xb8, 0x66, 0xda, 0x29, 0x5c, 0x63, 0x3f, 0xb8, + 0x88, 0xfa, 0x0e, 0x2e, 0x92, 0xaf, 0xc0, 0xac, 0x91, 0x7c, 0xdc, 0xbe, 0x02, 0x13, 0xb4, 0x43, + 0xf8, 0xb0, 0xb3, 0x0f, 0xf3, 0xa3, 0xf9, 0x76, 0xc9, 0xd6, 0xad, 0xcd, 0x11, 0xfd, 0xe7, 0x12, + 0xcc, 0x3a, 0x95, 0x08, 0xf9, 0xed, 0x92, 0xad, 0x09, 0x07, 0xb7, 0x73, 0xeb, 0x30, 0x6e, 0xa7, + 0xd1, 0x58, 0xf2, 0x29, 0x1f, 0x07, 0xf4, 0x1f, 0x5a, 0x7e, 0xb5, 0x0b, 0xbb, 0x8f, 0x34, 0xd6, + 0xb4, 0x65, 0x8f, 0x35, 0x1d, 0x7e, 0x34, 0x64, 0x47, 0x73, 0x2f, 0xd2, 0x10, 0xdc, 0xea, 0x7f, + 0x5f, 0xc9, 0x49, 0x7f, 0x9b, 0xdd, 0xb8, 0x4a, 0xcc, 0x2d, 0x3a, 0x06, 0x73, 0xb7, 0x76, 0xf2, + 0xa5, 0x9d, 0xdd, 0xec, 0x6e, 0xbe, 0x7c, 0x6b, 0x6b, 0x67, 0x3b, 0xbf, 0x56, 0xb8, 0x51, 0xc8, + 0xe7, 0x12, 0x4f, 0xa1, 0x59, 0x48, 0x58, 0x59, 0xd9, 0xb5, 0xdd, 0xc2, 0x1b, 0xf9, 0x84, 0x84, + 0xe6, 0x01, 0x59, 0xa9, 0x85, 0x2d, 0x96, 0x1e, 0x41, 0x73, 0x30, 0x6d, 0xa5, 0xe7, 0xf2, 0x1b, + 0xf9, 0xdd, 0x7c, 0x2e, 0x11, 0x15, 0x1b, 0xd9, 0x28, 0xae, 0xbd, 0x96, 0xcf, 0x25, 0x62, 0x62, + 0xe1, 0x9d, 0x5b, 0x3b, 0xdb, 0xf9, 0xad, 0x5c, 0x62, 0x48, 0x4c, 0x2e, 0x6c, 0x15, 0x76, 0x0b, + 0xd9, 0x8d, 0xc4, 0x70, 0xfa, 0xcf, 0xc0, 0x30, 0xbd, 0xa5, 0x18, 0x77, 0xbe, 0x9e, 0xdf, 0xca, + 0xe5, 0x4b, 0x36, 0xa8, 0xd3, 0x30, 0xc1, 0xd2, 0x6f, 0xe4, 0x37, 0xb3, 0x1b, 0x18, 0xe7, 0x14, + 0x8c, 0xb1, 0x24, 0x92, 0x10, 0x41, 0x08, 0x26, 0x59, 0x42, 0xae, 0xf0, 0x46, 0xbe, 0xb4, 0x93, + 0x4f, 0x44, 0xd3, 0xff, 0x8b, 0xdd, 0xc1, 0x6a, 0x2a, 0x08, 0x3a, 0x01, 0xc7, 0x08, 0x84, 0x7c, + 0xb6, 0xb4, 0x76, 0xf3, 0xb5, 0xfc, 0x9b, 0xb6, 0x8e, 0x16, 0x61, 0xc1, 0x96, 0xbd, 0x93, 0x2f, + 0x95, 0xb7, 0xb2, 0x9b, 0xb8, 0xcb, 0xe3, 0x90, 0x14, 0x33, 0x6f, 0x14, 0x4a, 0x3b, 0xbb, 0x34, + 0x37, 0xd2, 0x5f, 0x75, 0x23, 0x6b, 0x64, 0x46, 0xfb, 0x33, 0xb7, 0x0a, 0x6b, 0xaf, 0xd1, 0xcc, + 0x18, 0x3a, 0x09, 0x29, 0x31, 0x33, 0x57, 0xd8, 0xd9, 0xde, 0xc8, 0xbe, 0x49, 0xf3, 0x87, 0xd0, + 0x02, 0xcc, 0x88, 0xf9, 0xf9, 0xcd, 0x6c, 0x61, 0x23, 0x31, 0xdc, 0x9f, 0x41, 0x38, 0x9b, 0x18, + 0x49, 0xff, 0x97, 0x08, 0x8c, 0xf3, 0xaa, 0x8c, 0x4b, 0xd2, 0x52, 0x9b, 0xf9, 0xdd, 0x9b, 0xc5, + 0x5c, 0x39, 0xff, 0xfa, 0xad, 0xec, 0xc6, 0x4e, 0xe2, 0x29, 0x4c, 0x93, 0x90, 0xb1, 0xb3, 0x9b, + 0x2d, 0xed, 0xee, 0x94, 0x6f, 0x17, 0x76, 0x6f, 0x26, 0x24, 0x2c, 0x3d, 0x42, 0xee, 0x5a, 0x71, + 0x6b, 0x37, 0x5b, 0xd8, 0xda, 0x49, 0x44, 0xd0, 0x33, 0x70, 0xca, 0xa1, 0xc5, 0x72, 0x61, 0x7d, + 0xab, 0x58, 0xca, 0x97, 0xd7, 0xb2, 0x98, 0xff, 0xe8, 0x1c, 0x9c, 0x76, 0x6b, 0x5d, 0x28, 0x19, + 0x43, 0x67, 0xe0, 0x69, 0xc7, 0x9e, 0x84, 0x62, 0x43, 0x98, 0x8f, 0x42, 0xb1, 0xad, 0xe2, 0xae, + 0x41, 0xcb, 0x30, 0x1e, 0x5b, 0x21, 0x73, 0xbd, 0x94, 0xcf, 0xee, 0xe6, 0x4b, 0xe5, 0xdd, 0x9b, + 0xd9, 0xad, 0xc4, 0x08, 0x4a, 0xc1, 0xbc, 0x90, 0xbd, 0x91, 0xdf, 0xd9, 0xa1, 0x79, 0xf1, 0xbe, + 0xbc, 0xc2, 0x4e, 0xb9, 0xb8, 0x95, 0x2f, 0x17, 0x6f, 0x24, 0x46, 0xf1, 0xf0, 0x88, 0xf5, 0x0a, + 0x3b, 0xbb, 0x16, 0x27, 0x20, 0x9d, 0x83, 0x11, 0x76, 0x9b, 0x24, 0x66, 0xf3, 0xe6, 0x8d, 0xec, + 0xee, 0x9b, 0xdb, 0x76, 0x5d, 0x9b, 0x82, 0x31, 0x23, 0x63, 0x67, 0x73, 0x87, 0x8a, 0xaf, 0x91, + 0x50, 0xdc, 0xdd, 0x4e, 0x44, 0xd2, 0x77, 0x21, 0x6e, 0xdc, 0x2a, 0x89, 0x92, 0x30, 0x8b, 0xff, + 0x77, 0xd0, 0xd9, 0x79, 0x40, 0x66, 0x0e, 0xa6, 0xbd, 0x94, 0xcf, 0xe6, 0xde, 0x4c, 0x48, 0x58, + 0xf8, 0xcd, 0x74, 0x9a, 0x16, 0xc1, 0xaa, 0xc9, 0xa5, 0x6d, 0x16, 0xdf, 0xc0, 0x0a, 0x9b, 0xbe, + 0x09, 0x09, 0xfb, 0xe5, 0x8d, 0x98, 0xfa, 0xad, 0xe2, 0x6e, 0xe1, 0x46, 0x61, 0x2d, 0xbb, 0x5b, + 0x28, 0x6e, 0x11, 0x54, 0x54, 0xc6, 0x9e, 0xc2, 0x58, 0xfa, 0xf2, 0x08, 0x09, 0xe9, 0x1e, 0x8c, + 0x71, 0xb7, 0x47, 0xe1, 0xa1, 0xd9, 0x2e, 0x6e, 0x14, 0xd6, 0xde, 0x74, 0xc1, 0xcd, 0x67, 0x9a, + 0xd6, 0x26, 0x09, 0xb3, 0x7c, 0x3a, 0x67, 0x6f, 0x16, 0x60, 0x86, 0xcf, 0x31, 0x2d, 0x4e, 0x7a, + 0x1b, 0xe2, 0xc6, 0x7d, 0x31, 0xb8, 0x7a, 0xb1, 0xb4, 0xee, 0xd4, 0xe1, 0x0c, 0x4c, 0x99, 0x39, + 0x66, 0x6f, 0x73, 0x30, 0x6d, 0x26, 0x5a, 0x5d, 0xa5, 0x6f, 0x03, 0xea, 0xbf, 0x23, 0x01, 0xc9, + 0x70, 0xb2, 0x58, 0x5a, 0xcf, 0x15, 0x37, 0xf1, 0x30, 0xbb, 0x98, 0x8b, 0x13, 0x70, 0xcc, 0xa1, + 0x0c, 0xfd, 0x9d, 0x90, 0xd2, 0xdf, 0x95, 0x48, 0xcb, 0xb6, 0xd8, 0x10, 0x6b, 0x79, 0x33, 0xbf, + 0xb9, 0xea, 0x6e, 0x88, 0x9e, 0x86, 0x13, 0x0e, 0x65, 0x38, 0x83, 0x23, 0xa1, 0x25, 0x38, 0xee, + 0x50, 0xc4, 0xb2, 0x3a, 0x11, 0xac, 0xdc, 0x0e, 0x25, 0xe8, 0xc8, 0x46, 0xb1, 0x5c, 0x3b, 0xc1, + 0xc0, 0x06, 0xaf, 0x90, 0x4b, 0xc4, 0xd2, 0xb7, 0xcd, 0x1d, 0x5a, 0x0b, 0xfa, 0x12, 0x1c, 0xdf, + 0x2e, 0x15, 0x7f, 0x28, 0xbf, 0xb6, 0xeb, 0x01, 0xbc, 0xaf, 0x04, 0x4b, 0x60, 0xc0, 0xd3, 0x9f, + 0x35, 0xcf, 0x1e, 0xd0, 0x51, 0x3c, 0x0e, 0x49, 0xa3, 0x8a, 0xc3, 0x48, 0x62, 0x41, 0xe0, 0x73, + 0xcd, 0xd1, 0x3c, 0x06, 0x73, 0x42, 0x06, 0x37, 0xa2, 0x9f, 0x36, 0xbf, 0x70, 0x62, 0x67, 0x3d, + 0x17, 0x58, 0x49, 0x07, 0xd5, 0x9c, 0x83, 0x69, 0x3e, 0xb3, 0x78, 0x7b, 0x2b, 0x9f, 0x4b, 0x48, + 0x5c, 0xb7, 0x24, 0x79, 0xbd, 0x94, 0xdd, 0xc2, 0xf2, 0x17, 0x49, 0xff, 0xb8, 0xf5, 0xed, 0xac, + 0xf0, 0x7d, 0x05, 0x3a, 0x0d, 0x4b, 0xac, 0x46, 0xa9, 0xb8, 0x91, 0x77, 0xe3, 0x8f, 0x45, 0xac, + 0x58, 0xea, 0xb5, 0x3c, 0xd6, 0xe3, 0x33, 0xf0, 0xb4, 0x63, 0xae, 0x30, 0x23, 0x44, 0xd2, 0xff, + 0xc7, 0xfa, 0x50, 0xc4, 0x2e, 0x5c, 0xcf, 0x82, 0xcc, 0x5a, 0xf0, 0x16, 0x30, 0xab, 0x27, 0x4f, + 0x21, 0xb3, 0x88, 0xf2, 0x12, 0x34, 0x4b, 0x2c, 0xdc, 0x84, 0x4d, 0x86, 0x93, 0x6e, 0xb0, 0x0c, + 0x81, 0xf3, 0xe8, 0xcb, 0x9a, 0x85, 0x87, 0xb0, 0xfe, 0x1b, 0xa7, 0xc2, 0xb0, 0xfe, 0x67, 0xb7, + 0xb7, 0x5d, 0xf4, 0xdf, 0xcc, 0xe1, 0xf5, 0xdf, 0x4c, 0xe4, 0xa4, 0xe5, 0x1e, 0x3d, 0x0e, 0xc9, + 0x9f, 0x2c, 0xc4, 0xc2, 0x45, 0xd2, 0xf2, 0x3b, 0xdb, 0xc5, 0xad, 0x9d, 0x3c, 0x91, 0x81, 0xb5, + 0x62, 0x2e, 0xcf, 0x94, 0xde, 0x9e, 0x55, 0xc8, 0x95, 0x77, 0x8b, 0xaf, 0xe5, 0xb7, 0x12, 0x12, + 0x36, 0xa6, 0x7d, 0xd9, 0x34, 0x2f, 0x92, 0xd6, 0x60, 0x42, 0x38, 0x6d, 0x88, 0x49, 0x26, 0x09, + 0x58, 0xba, 0x48, 0xc9, 0xec, 0xad, 0xdd, 0x9b, 0xc5, 0x52, 0xe1, 0xd3, 0xc4, 0xd8, 0x1a, 0x3d, + 0xb2, 0x26, 0xad, 0x52, 0x85, 0xcd, 0xed, 0x8d, 0xc2, 0x5a, 0x61, 0x37, 0x21, 0xa1, 0x53, 0xb0, + 0x28, 0xe6, 0x95, 0xf2, 0x37, 0x4a, 0xf9, 0x9d, 0x9b, 0x66, 0x9f, 0x0f, 0x60, 0xc6, 0xe1, 0x30, + 0x22, 0xd6, 0x09, 0x92, 0xbc, 0x8d, 0x5b, 0xb2, 0x4c, 0xfb, 0xed, 0xfc, 0x6a, 0xe2, 0x29, 0x62, + 0xa1, 0x1c, 0x32, 0xc9, 0x30, 0x64, 0xd7, 0xf3, 0x5b, 0xb8, 0x63, 0x6c, 0x3e, 0x1c, 0xca, 0x6c, + 0x65, 0x19, 0x57, 0x1b, 0x80, 0xfa, 0x0f, 0x29, 0x12, 0x93, 0x84, 0x53, 0x6f, 0xed, 0xb2, 0xe9, + 0x94, 0x54, 0x5a, 0xcd, 0xee, 0x14, 0xd6, 0xa8, 0xfb, 0xe5, 0x90, 0xbb, 0x5d, 0xdc, 0xc1, 0x1d, + 0x3a, 0x67, 0x6e, 0x15, 0xb7, 0x70, 0x6f, 0x65, 0x98, 0x75, 0x3a, 0x53, 0x85, 0x19, 0xcc, 0x21, + 0xdc, 0xc9, 0x97, 0xb2, 0x2e, 0x46, 0x4b, 0x28, 0x65, 0xc8, 0x5d, 0x76, 0x7b, 0xdb, 0x30, 0x5a, + 0x5d, 0xf3, 0x8b, 0x26, 0x2b, 0x98, 0xc1, 0x19, 0x3b, 0xc2, 0x7f, 0x27, 0x41, 0xb4, 0xf4, 0x9d, + 0x2b, 0x62, 0x4a, 0xe4, 0x49, 0x48, 0xf5, 0xe7, 0x72, 0xa2, 0xf9, 0x45, 0xdb, 0x46, 0xa9, 0x45, + 0x98, 0xa5, 0xbf, 0xb4, 0xa6, 0x8b, 0x9a, 0x5b, 0xe6, 0xc0, 0x56, 0x4c, 0xb4, 0xc9, 0x9c, 0x7e, + 0xda, 0xca, 0x61, 0x3b, 0x44, 0x8c, 0x53, 0x24, 0xfd, 0xd3, 0x11, 0x31, 0x2e, 0x66, 0x37, 0x3d, + 0x17, 0xe0, 0x2c, 0xdf, 0x86, 0xb7, 0xfd, 0x49, 0xc3, 0xb3, 0x5e, 0x85, 0x05, 0x23, 0x74, 0x1e, + 0xce, 0x78, 0x95, 0xe5, 0x2d, 0x91, 0x8d, 0x2d, 0x6e, 0xe6, 0xe8, 0x2c, 0x3c, 0xe3, 0x09, 0xd5, + 0xb4, 0x49, 0x3e, 0x5d, 0xf3, 0x86, 0xe9, 0x1e, 0x4c, 0x8a, 0xb1, 0x2e, 0xc3, 0xb1, 0x77, 0x95, + 0x0d, 0xb6, 0x38, 0x73, 0x12, 0x0c, 0xb6, 0x60, 0x70, 0x96, 0x8a, 0xef, 0xb2, 0xa7, 0xb6, 0x6c, + 0x22, 0x21, 0xc3, 0x49, 0xab, 0x8e, 0xfb, 0xf4, 0xec, 0x50, 0xc6, 0x10, 0x86, 0x42, 0x8e, 0xca, + 0xa4, 0x53, 0x33, 0x8c, 0x25, 0x11, 0x63, 0x09, 0x65, 0xcb, 0x2f, 0x96, 0xd6, 0x71, 0x76, 0x14, + 0x1b, 0x24, 0x87, 0x6c, 0x53, 0x8c, 0x62, 0x2b, 0x7f, 0xfc, 0x2d, 0x09, 0xa6, 0x37, 0xcd, 0x55, + 0xed, 0x8e, 0xaa, 0x3d, 0xa8, 0x57, 0x54, 0xf4, 0x1a, 0x8c, 0xdc, 0x54, 0x95, 0x46, 0xf7, 0xde, + 0xe7, 0xd1, 0x7c, 0x5f, 0x18, 0x2f, 0xdf, 0xec, 0x74, 0xf7, 0x52, 0x2e, 0xe9, 0x72, 0x62, 0xff, + 0x5f, 0xff, 0xf1, 0xfb, 0x11, 0x40, 0xf1, 0xcc, 0x3d, 0xd6, 0xc2, 0x3a, 0x0c, 0x95, 0x54, 0xa5, + 0xba, 0x17, 0xba, 0xa9, 0x49, 0xd2, 0x54, 0x1c, 0x0d, 0x67, 0x34, 0x52, 0x7f, 0x0b, 0xe2, 0x6f, + 0xb0, 0xb7, 0xc8, 0x5d, 0xdb, 0x72, 0x7b, 0xe4, 0x59, 0x9e, 0x26, 0x8d, 0x8d, 0xa1, 0x51, 0xf3, + 0x3d, 0x73, 0x74, 0x17, 0xaf, 0x75, 0xbb, 0x05, 0xa5, 0xe9, 0xda, 0xda, 0x33, 0x7e, 0xcb, 0xff, + 0x82, 0xd2, 0x94, 0x4f, 0xed, 0x1f, 0x24, 0xa7, 0x60, 0x42, 0xe9, 0x75, 0xef, 0xa9, 0xad, 0x2e, + 0xb6, 0x7a, 0x6a, 0x95, 0x74, 0x36, 0x8c, 0x62, 0x99, 0xba, 0xd2, 0x44, 0xef, 0x49, 0x30, 0xb6, + 0xae, 0x92, 0x58, 0xc6, 0xea, 0x5e, 0x21, 0x87, 0x9e, 0x0d, 0x12, 0x54, 0x28, 0xe4, 0x52, 0x81, + 0x5f, 0x53, 0x93, 0xe5, 0xfd, 0x83, 0xe4, 0x18, 0x8d, 0xa3, 0x2e, 0x63, 0x5e, 0x91, 0xee, 0x27, + 0xd0, 0x58, 0x06, 0xa7, 0xe8, 0x99, 0x77, 0xea, 0xd5, 0x77, 0xd1, 0xd7, 0x24, 0x98, 0x35, 0x51, + 0x90, 0x87, 0x61, 0xd6, 0xc9, 0xd3, 0xeb, 0xe8, 0x8c, 0x5f, 0x37, 0xa4, 0x70, 0x08, 0x34, 0x97, + 0x9c, 0xd0, 0x24, 0xd1, 0x7c, 0x86, 0xbe, 0xf5, 0xce, 0x40, 0x95, 0xef, 0xec, 0xd1, 0x88, 0xec, + 0xcf, 0x48, 0x30, 0x46, 0x15, 0x07, 0xb7, 0xa0, 0xa3, 0x2b, 0xc1, 0x9f, 0xd5, 0x63, 0xf1, 0xa0, + 0xd4, 0x4a, 0x98, 0x2a, 0xd4, 0xb3, 0x90, 0xcf, 0x39, 0xa1, 0x9c, 0x91, 0x27, 0x0d, 0x78, 0x3a, + 0x29, 0xfe, 0x8a, 0x94, 0xc6, 0x00, 0xc7, 0x0b, 0x3a, 0x6e, 0x82, 0xbe, 0x80, 0x1d, 0x00, 0xa1, + 0xfd, 0xc9, 0xee, 0x00, 0x08, 0xfb, 0x5e, 0xe1, 0x96, 0xcf, 0x3a, 0x21, 0x44, 0x28, 0x61, 0x20, + 0xac, 0xeb, 0xf4, 0x85, 0x6e, 0xf4, 0x05, 0x09, 0xc0, 0x7a, 0x91, 0xdb, 0x1f, 0x5e, 0xdf, 0xeb, + 0xdd, 0xa9, 0xd3, 0x41, 0x18, 0x28, 0x3f, 0xbd, 0x7f, 0x90, 0x1c, 0x07, 0xb2, 0x97, 0xb8, 0xfc, + 0x96, 0x56, 0xef, 0xaa, 0x54, 0xa7, 0xe4, 0x61, 0x8a, 0x08, 0xf3, 0xea, 0x2b, 0x12, 0x4c, 0xe6, + 0x54, 0xa5, 0xd2, 0xad, 0x3f, 0x30, 0xe0, 0x04, 0x15, 0xf7, 0x60, 0x18, 0x56, 0x1c, 0x31, 0x1c, + 0x4f, 0x2d, 0x70, 0xb2, 0x9e, 0x29, 0x57, 0x4d, 0x08, 0x06, 0xa8, 0xd2, 0xf7, 0x1f, 0x94, 0x26, + 0x80, 0xfa, 0xf3, 0x12, 0xc4, 0x37, 0xda, 0x95, 0xfb, 0x0f, 0x01, 0xce, 0x45, 0x47, 0x38, 0xf3, + 0xa9, 0x69, 0x01, 0x4e, 0xa3, 0x5d, 0xb9, 0x8f, 0x81, 0x7c, 0x51, 0x02, 0xb8, 0xd5, 0x6a, 0x3c, + 0x1c, 0x28, 0xcb, 0x8e, 0x50, 0x92, 0xa9, 0x19, 0x01, 0x4a, 0xaf, 0x65, 0x80, 0xd1, 0x00, 0x72, + 0x6a, 0x43, 0x0d, 0x39, 0x4a, 0x6e, 0x33, 0xc8, 0xe9, 0xfd, 0x83, 0xe4, 0x04, 0xdd, 0x40, 0x5f, + 0xae, 0x92, 0x66, 0xa9, 0x65, 0x4c, 0x0b, 0x96, 0xf1, 0xcb, 0x12, 0xdd, 0x8f, 0xa6, 0x07, 0xce, + 0x74, 0xe4, 0xbb, 0xc5, 0x41, 0x0b, 0x1a, 0xba, 0x73, 0x36, 0x58, 0x71, 0x5d, 0x4e, 0x3b, 0xe9, + 0xf3, 0x1c, 0x12, 0x58, 0x51, 0x61, 0x18, 0x3e, 0x90, 0x00, 0xf1, 0xdf, 0x0c, 0x3e, 0x64, 0x68, + 0x3f, 0xb4, 0x7f, 0x90, 0x44, 0x66, 0x50, 0x7d, 0x59, 0xe9, 0x74, 0x2c, 0x84, 0xcb, 0xe8, 0x62, + 0xc6, 0xb8, 0x06, 0x89, 0x82, 0xe4, 0xbe, 0x9d, 0xd2, 0x33, 0xef, 0xe8, 0x6a, 0xa5, 0xcc, 0x43, + 0xff, 0x29, 0x89, 0x5c, 0xb1, 0xfb, 0xb0, 0x21, 0x63, 0xfb, 0x0d, 0x64, 0x33, 0xcf, 0x82, 0x3a, + 0x8b, 0x50, 0xa6, 0xad, 0xd5, 0x6c, 0xbc, 0xfc, 0xba, 0x64, 0x9e, 0x90, 0x7f, 0xd8, 0xa0, 0x2e, + 0xef, 0x1f, 0x24, 0x27, 0xcd, 0x7d, 0x42, 0x71, 0xf6, 0x13, 0x79, 0x68, 0x80, 0xfb, 0xaa, 0x04, + 0x93, 0x6c, 0x5a, 0x36, 0xde, 0x40, 0x0d, 0x2a, 0xf5, 0x81, 0x4e, 0x81, 0x70, 0xcf, 0x72, 0x06, + 0x12, 0xc0, 0x0e, 0x03, 0xf1, 0x4b, 0x12, 0x4c, 0xf7, 0xbd, 0xde, 0x88, 0x7c, 0xbf, 0xe2, 0x77, + 0x7b, 0xf0, 0x31, 0x75, 0x21, 0x04, 0xd8, 0x60, 0x56, 0x83, 0x21, 0xc5, 0x56, 0xe3, 0x2f, 0x49, + 0x30, 0xce, 0x98, 0x48, 0x1f, 0x53, 0x0c, 0xca, 0xc2, 0x40, 0xbb, 0x99, 0xe6, 0x2b, 0x85, 0x2e, + 0x3e, 0x03, 0x12, 0xec, 0x2a, 0x75, 0x6a, 0x7e, 0x4e, 0x82, 0x29, 0x2a, 0x14, 0x16, 0xa8, 0xab, + 0xc1, 0x99, 0xc7, 0xbf, 0x0a, 0x98, 0x3a, 0x1f, 0x18, 0x64, 0x30, 0xcb, 0x4f, 0x10, 0x62, 0xb6, + 0x7d, 0x53, 0x82, 0xc5, 0x92, 0xaa, 0xab, 0xad, 0x2a, 0xf7, 0x50, 0x20, 0xd5, 0xeb, 0xcd, 0x30, + 0x5c, 0x74, 0x33, 0xbf, 0x9f, 0x72, 0x44, 0x93, 0x96, 0xcf, 0xf4, 0xa1, 0xc1, 0x93, 0x23, 0xc6, + 0xf1, 0x80, 0x83, 0x60, 0x1b, 0x58, 0xfa, 0x6a, 0xe1, 0x91, 0x0e, 0xac, 0xf9, 0x1c, 0x60, 0xa0, + 0x81, 0xa5, 0x2f, 0xe0, 0x89, 0x03, 0x4b, 0x41, 0x85, 0x18, 0x58, 0xfe, 0xf9, 0xbd, 0x60, 0x03, + 0x4b, 0x6a, 0x04, 0x1b, 0x58, 0x82, 0x10, 0xb3, 0xed, 0x47, 0x61, 0x8a, 0x1e, 0xc0, 0x0a, 0xcf, + 0x38, 0xb7, 0xb1, 0x3c, 0xef, 0x08, 0x60, 0x26, 0xed, 0xc0, 0x22, 0x4b, 0xac, 0xb8, 0x07, 0x01, + 0xd9, 0x3c, 0xd6, 0xae, 0xaa, 0x8f, 0x46, 0xac, 0x08, 0x14, 0x37, 0xb1, 0xe2, 0x8c, 0xae, 0xf1, + 0x46, 0xdd, 0x91, 0x1a, 0x5d, 0xee, 0x89, 0xbe, 0x40, 0x46, 0x97, 0x3d, 0xdc, 0x66, 0x33, 0xba, + 0x06, 0xb4, 0x10, 0x46, 0x57, 0x7c, 0xc1, 0x2e, 0x98, 0xd1, 0x35, 0x9e, 0x85, 0x0b, 0x64, 0x74, + 0x19, 0x52, 0xcc, 0xc4, 0xbf, 0x68, 0x2d, 0x6b, 0x37, 0xef, 0x2a, 0xc1, 0x39, 0x78, 0x31, 0xc4, + 0x03, 0x73, 0xba, 0xdf, 0x22, 0x88, 0x80, 0x6a, 0xe2, 0xee, 0xbf, 0x2b, 0xc1, 0xe2, 0x8e, 0xda, + 0xaa, 0xba, 0x3c, 0xb6, 0x86, 0x5e, 0xf5, 0x3f, 0x6f, 0xe1, 0xf5, 0x4a, 0x9b, 0xab, 0x34, 0xe6, + 0x1c, 0xd9, 0xb6, 0x2c, 0x9f, 0x17, 0xa4, 0x91, 0x35, 0x8c, 0x97, 0x95, 0xad, 0xaa, 0xae, 0x76, + 0x5b, 0x5c, 0x0f, 0x98, 0x99, 0x5f, 0x97, 0x00, 0xed, 0xa8, 0xdd, 0x42, 0xab, 0xde, 0xad, 0x2b, + 0x0d, 0x03, 0x07, 0xf2, 0xbf, 0x7a, 0x4b, 0x7c, 0x7d, 0xce, 0x15, 0xe5, 0x35, 0x47, 0x94, 0x67, + 0xe4, 0x25, 0x67, 0x94, 0x75, 0x8a, 0xa3, 0xfe, 0x79, 0x62, 0x4e, 0xfe, 0x96, 0x04, 0x8b, 0xeb, + 0x16, 0x77, 0xfa, 0xde, 0x87, 0x73, 0x0b, 0x9f, 0xbc, 0x14, 0x14, 0xbd, 0xbd, 0x45, 0xf9, 0x45, + 0xea, 0xb8, 0x77, 0xc8, 0x2f, 0x6b, 0xdc, 0x97, 0xd0, 0xc9, 0x0c, 0x49, 0xab, 0xab, 0xba, 0x89, + 0x56, 0xcf, 0x54, 0xcc, 0xea, 0xe8, 0xf7, 0x24, 0x38, 0x49, 0x97, 0xb7, 0xae, 0x68, 0x5f, 0x1d, + 0x14, 0x15, 0x6d, 0xf7, 0x10, 0x54, 0x5d, 0x63, 0xde, 0x21, 0xa5, 0xca, 0x1a, 0x86, 0x67, 0x64, + 0x1f, 0xb2, 0xf0, 0x20, 0x60, 0xca, 0xa8, 0xa2, 0x1f, 0x3d, 0x65, 0xb4, 0xdd, 0x87, 0x41, 0x59, + 0x2a, 0x00, 0x65, 0xdf, 0x96, 0xe0, 0x24, 0x5d, 0xf4, 0xb9, 0x52, 0xf6, 0xca, 0xa0, 0xc8, 0x3c, + 0xa6, 0x91, 0x97, 0x69, 0xdc, 0x8e, 0x61, 0xe6, 0x96, 0x87, 0x4b, 0x69, 0x3f, 0x29, 0x7b, 0x9f, + 0xc6, 0xd2, 0xfa, 0xdf, 0x46, 0x73, 0xd3, 0x84, 0x2b, 0x41, 0xf1, 0x9b, 0x4d, 0x91, 0xa5, 0x84, + 0x83, 0x0a, 0x1c, 0x43, 0x0b, 0x4e, 0xe0, 0x94, 0x9a, 0x8a, 0x2d, 0xe0, 0x82, 0x28, 0xfb, 0x16, + 0xb0, 0x17, 0x43, 0x03, 0x60, 0xd2, 0x3e, 0x00, 0xf2, 0xe7, 0x5d, 0x84, 0xe1, 0xb8, 0xec, 0x06, + 0x1d, 0x4b, 0x01, 0x46, 0x2f, 0xca, 0xf7, 0x61, 0xd0, 0x33, 0x89, 0x3e, 0x4a, 0xf4, 0x29, 0x2f, + 0xf4, 0x5f, 0x97, 0x60, 0x41, 0x94, 0x61, 0x0b, 0xfd, 0x73, 0xa1, 0x41, 0x78, 0x48, 0xed, 0x8a, + 0x9b, 0xd4, 0x1e, 0x4b, 0xbb, 0x0a, 0xc6, 0x37, 0x25, 0x48, 0x72, 0xe2, 0x2a, 0xbe, 0x6b, 0xe6, + 0x26, 0xb2, 0x2f, 0x04, 0x45, 0x2d, 0x34, 0x47, 0xd8, 0xe7, 0x20, 0xb6, 0x27, 0xd0, 0xa2, 0x13, + 0xba, 0x06, 0xad, 0x8b, 0x7e, 0x47, 0x82, 0x45, 0x51, 0x74, 0x45, 0x90, 0xd7, 0x06, 0x02, 0xc3, + 0x44, 0x78, 0x40, 0x4a, 0x5e, 0x72, 0x11, 0x84, 0x25, 0xd9, 0x8b, 0x14, 0x2c, 0x0c, 0x98, 0x1a, + 0x51, 0x94, 0x8f, 0x82, 0x1a, 0x26, 0xd2, 0x47, 0x4d, 0x4d, 0xca, 0x8f, 0x9a, 0x5f, 0x90, 0x60, + 0x51, 0x14, 0x6d, 0x91, 0x9a, 0x17, 0x07, 0x02, 0xe4, 0x21, 0xe2, 0x57, 0xdd, 0x44, 0xfc, 0x44, + 0xda, 0x53, 0x88, 0xee, 0x43, 0x7c, 0x5d, 0xed, 0x6e, 0xee, 0x15, 0xb5, 0x9a, 0xab, 0x54, 0x9f, + 0x0d, 0xf0, 0x08, 0x01, 0x71, 0xdb, 0x4f, 0x3a, 0x84, 0x97, 0x00, 0xc5, 0x69, 0x78, 0xa9, 0xa9, + 0xe2, 0x25, 0x04, 0x9e, 0x02, 0x8a, 0x5a, 0x6d, 0x75, 0x8f, 0x1e, 0x57, 0x62, 0xdb, 0x29, 0xbe, + 0x6e, 0x30, 0x2d, 0x1d, 0x1c, 0xc9, 0x45, 0x07, 0x24, 0xdc, 0x6e, 0x0a, 0x01, 0x54, 0xbe, 0xb3, + 0xc7, 0x1e, 0x30, 0xfa, 0x31, 0x98, 0xb2, 0xe2, 0xef, 0xde, 0xbc, 0x78, 0x26, 0x00, 0x02, 0xb2, + 0x2a, 0x18, 0x83, 0x51, 0xdc, 0xbb, 0x25, 0x34, 0xc7, 0x52, 0xb3, 0x06, 0x23, 0xec, 0xb1, 0xf6, + 0x1f, 0xc3, 0x4b, 0xcf, 0x47, 0xda, 0xbf, 0x18, 0x56, 0xff, 0x80, 0x38, 0xd2, 0xe4, 0xb8, 0xe5, + 0x1e, 0xf7, 0xd0, 0xd7, 0xd5, 0x90, 0x2f, 0xf3, 0x18, 0xfe, 0xf4, 0x8b, 0xa1, 0xeb, 0xb1, 0xcd, + 0x9b, 0x2b, 0x0e, 0xa3, 0x76, 0x42, 0x4e, 0x9a, 0xb0, 0xd9, 0xe3, 0x61, 0xfc, 0x3e, 0xd3, 0x4f, + 0x4b, 0x30, 0x99, 0xad, 0x56, 0x39, 0xdc, 0xfe, 0x53, 0x87, 0xc3, 0xd3, 0x52, 0xa9, 0xe0, 0x6f, + 0x98, 0x19, 0x8b, 0x53, 0x91, 0xbb, 0x73, 0x72, 0xc2, 0x0e, 0x93, 0x2d, 0x9a, 0xa7, 0x69, 0x54, + 0x81, 0x47, 0xe8, 0xcb, 0x58, 0xe7, 0x17, 0xac, 0x5c, 0x95, 0xff, 0xb2, 0x13, 0xa2, 0xc5, 0xf4, + 0xb1, 0x3e, 0xc6, 0xbd, 0x43, 0xff, 0x79, 0x17, 0x7d, 0x41, 0x82, 0x69, 0x43, 0xef, 0xad, 0xf7, + 0x0b, 0xdd, 0x84, 0xee, 0x62, 0x00, 0xe6, 0x98, 0xad, 0x90, 0xad, 0x4c, 0xc7, 0xbd, 0x5d, 0x33, + 0xd2, 0xdc, 0x54, 0x33, 0x75, 0xa5, 0x49, 0x6d, 0x15, 0xfa, 0x12, 0x85, 0x62, 0x7b, 0x64, 0xc9, + 0x0d, 0xca, 0x72, 0xe0, 0x07, 0x51, 0xe8, 0xe5, 0xe4, 0x98, 0x35, 0xd3, 0x30, 0x85, 0x59, 0xd3, + 0x24, 0xc9, 0x62, 0x3c, 0x81, 0xc1, 0xc1, 0x19, 0x7a, 0x86, 0x7e, 0xaa, 0xfd, 0xf3, 0x9c, 0x44, + 0xb1, 0x7b, 0x0b, 0x02, 0x4a, 0x94, 0xf0, 0x20, 0x51, 0x20, 0x89, 0xa2, 0x35, 0x88, 0xdc, 0x23, + 0x48, 0x70, 0x20, 0x9d, 0x05, 0x8b, 0x01, 0xc5, 0x82, 0xf5, 0x77, 0x25, 0x98, 0xa6, 0x21, 0x35, + 0x1e, 0xe8, 0xd5, 0x60, 0x31, 0xf7, 0xc3, 0x60, 0xbd, 0xe6, 0x81, 0xf5, 0x54, 0x2a, 0x65, 0xc7, + 0x9a, 0x79, 0x87, 0x7d, 0xd8, 0xf5, 0x2e, 0xdb, 0x15, 0xe6, 0xd5, 0x21, 0x28, 0x6a, 0xe7, 0x27, + 0x9f, 0x3c, 0x17, 0x29, 0x33, 0x30, 0xcd, 0x41, 0xe4, 0xe6, 0xc3, 0xe3, 0x69, 0x0f, 0x8c, 0xe8, + 0xd7, 0x45, 0x4b, 0x48, 0xfb, 0x0b, 0x66, 0x09, 0x1d, 0x3e, 0x39, 0x0f, 0x64, 0x09, 0x9d, 0x3e, + 0xb8, 0x27, 0x9e, 0x87, 0x8b, 0xd8, 0xf2, 0x06, 0xd1, 0x20, 0x80, 0x33, 0x88, 0xbf, 0x2c, 0xc1, + 0x24, 0x6d, 0xcc, 0x7c, 0xcb, 0xe3, 0xf9, 0x50, 0x97, 0xb0, 0x18, 0xd8, 0x5f, 0x08, 0x59, 0x8b, + 0x21, 0x5f, 0x76, 0xd9, 0xcd, 0x99, 0x97, 0xa7, 0xad, 0xdd, 0x1c, 0x0e, 0xef, 0xfb, 0x92, 0x79, + 0xd6, 0x95, 0x1c, 0xf4, 0x38, 0x1f, 0xb0, 0xdb, 0x42, 0x2e, 0x15, 0xe6, 0x09, 0x1e, 0xe2, 0x11, + 0x20, 0x11, 0x17, 0x8a, 0x14, 0x28, 0xb6, 0x04, 0x9a, 0x14, 0x77, 0x9a, 0xd0, 0x5f, 0x95, 0x60, + 0x82, 0xf9, 0xd6, 0xec, 0xfd, 0x92, 0xa0, 0x4c, 0x14, 0x1e, 0x42, 0x4a, 0x05, 0x7d, 0x34, 0x85, + 0x84, 0xec, 0xa6, 0xcc, 0xd7, 0x19, 0x38, 0x9d, 0x9a, 0x94, 0x47, 0x4d, 0x6c, 0x98, 0x5f, 0x7f, + 0x53, 0x82, 0x09, 0xe6, 0x27, 0x87, 0x44, 0x26, 0x3c, 0xb5, 0x14, 0x1c, 0xd9, 0x65, 0xa2, 0x4d, + 0x22, 0x32, 0x93, 0x73, 0x33, 0x29, 0x1b, 0xe7, 0x30, 0xc4, 0x6f, 0x49, 0x30, 0x6d, 0xf9, 0x53, + 0x06, 0xcc, 0x10, 0x03, 0x1b, 0x18, 0xdb, 0x27, 0xbc, 0xb0, 0x61, 0x6b, 0x24, 0xee, 0x1f, 0xda, + 0xdc, 0xae, 0x6f, 0x11, 0x6b, 0xf4, 0x38, 0xe2, 0x14, 0xdd, 0xb3, 0x7f, 0x25, 0xc1, 0x1c, 0xd5, + 0x32, 0xf1, 0xa6, 0x26, 0xdd, 0x7f, 0x51, 0xe4, 0x71, 0xb5, 0x53, 0xea, 0x95, 0xf0, 0xf7, 0x0e, + 0x99, 0x5a, 0xfe, 0xa9, 0xfd, 0x83, 0xe4, 0x31, 0x9b, 0x36, 0x8d, 0x1a, 0x8c, 0xb1, 0xec, 0x14, + 0xbb, 0xa0, 0xcc, 0x49, 0xef, 0x7f, 0x4d, 0x82, 0xb9, 0x75, 0xb5, 0x2b, 0x02, 0x24, 0x16, 0x60, + 0x39, 0x0c, 0xae, 0x42, 0x2e, 0x15, 0xfa, 0xf2, 0x2b, 0x79, 0xcd, 0xc5, 0x46, 0x5d, 0x40, 0xe7, + 0xfb, 0x20, 0xbf, 0x63, 0x7d, 0xf8, 0xf7, 0x2e, 0xcd, 0x64, 0x26, 0xe2, 0x1b, 0x94, 0x00, 0x87, + 0x27, 0x7d, 0xdc, 0x7c, 0x97, 0x95, 0x50, 0x37, 0xac, 0x53, 0xff, 0x05, 0x4f, 0x04, 0x73, 0x30, + 0x63, 0x40, 0xb5, 0x4f, 0x06, 0x24, 0xb2, 0x65, 0x40, 0x15, 0xfd, 0x98, 0xff, 0x20, 0xc1, 0xac, + 0x30, 0x11, 0x18, 0x93, 0xd9, 0x2b, 0x03, 0x5c, 0xf4, 0x6e, 0xc8, 0xcc, 0xb5, 0x81, 0xea, 0x32, + 0xa1, 0xb9, 0xb5, 0x7f, 0x90, 0x5c, 0x72, 0xa4, 0xc5, 0x2e, 0x3b, 0x17, 0xe4, 0x67, 0x33, 0xce, + 0x23, 0xe0, 0x30, 0xe3, 0xfd, 0xaa, 0x04, 0x89, 0x6c, 0xb5, 0x2a, 0x3e, 0x97, 0x74, 0x39, 0x14, + 0xd0, 0x6c, 0xb5, 0xea, 0xbf, 0xfb, 0x29, 0xd4, 0x90, 0xaf, 0xef, 0x1f, 0x24, 0x53, 0x30, 0x6b, + 0x23, 0x46, 0xd4, 0xec, 0x45, 0xd9, 0x7e, 0x82, 0x81, 0xf3, 0xe0, 0x7e, 0x43, 0x82, 0x19, 0xea, + 0x8e, 0x89, 0xc8, 0x9f, 0x0b, 0x85, 0x83, 0xb6, 0x10, 0x16, 0x7c, 0x21, 0x00, 0xf8, 0x33, 0xa9, + 0x25, 0x67, 0xf0, 0xa2, 0x4b, 0xf7, 0xb7, 0x25, 0x98, 0xa1, 0xfe, 0xd9, 0x61, 0xc8, 0xa0, 0x2d, + 0xb8, 0x7a, 0x74, 0xeb, 0xfb, 0x07, 0xc9, 0x45, 0x98, 0xb3, 0xe1, 0xa5, 0x5e, 0x9d, 0x09, 0x58, + 0x4e, 0xfb, 0x02, 0x46, 0xff, 0xd6, 0xf4, 0xef, 0xb8, 0x4f, 0x60, 0x02, 0xec, 0x16, 0xba, 0xbd, + 0xc8, 0x92, 0x7a, 0x79, 0x80, 0x9a, 0x4c, 0x1d, 0x5e, 0xdf, 0x3f, 0x48, 0x9e, 0x84, 0x69, 0xd3, + 0x0a, 0xb5, 0x1b, 0xaa, 0xa3, 0x32, 0x9c, 0x97, 0x4f, 0xbb, 0x28, 0x03, 0x51, 0x74, 0x5e, 0x15, + 0x7e, 0x89, 0xae, 0x5d, 0xf8, 0xd7, 0x91, 0x42, 0xbe, 0xed, 0x14, 0xd8, 0xa9, 0xc2, 0xe5, 0xc9, + 0x62, 0x20, 0x09, 0x48, 0x20, 0x41, 0x94, 0xa2, 0x63, 0xf2, 0xac, 0x6d, 0x50, 0x08, 0x68, 0x0c, + 0xf6, 0xe7, 0x25, 0x40, 0xab, 0xbd, 0xc6, 0x7d, 0x1b, 0xe0, 0x95, 0x70, 0x80, 0x71, 0x0b, 0xae, + 0x72, 0x93, 0xf5, 0xc5, 0x77, 0x4a, 0x4e, 0x39, 0xe1, 0xcb, 0x94, 0xef, 0xf4, 0x1a, 0xe4, 0x70, + 0xdd, 0xdf, 0x33, 0x17, 0x5a, 0x3c, 0xc8, 0x2b, 0x21, 0x40, 0x32, 0x15, 0x0d, 0xc5, 0xd8, 0x00, + 0xc0, 0x53, 0xce, 0xc0, 0xdf, 0xb9, 0xaf, 0xee, 0xbd, 0xcb, 0x0e, 0xaa, 0x4c, 0x0b, 0x8a, 0x19, + 0x1a, 0xb8, 0x8f, 0x52, 0x5e, 0x27, 0x3e, 0xc0, 0x8c, 0x80, 0xd1, 0xa6, 0x92, 0x78, 0xb1, 0xe5, + 0x0a, 0x12, 0xfd, 0xa1, 0xa9, 0x8c, 0xdc, 0xa9, 0xbd, 0x00, 0xca, 0xe8, 0x76, 0xfb, 0xb2, 0xbf, + 0x32, 0xba, 0xde, 0x37, 0x2d, 0xdf, 0xde, 0x3f, 0x48, 0x9e, 0xe8, 0x3f, 0xcc, 0x67, 0xd7, 0xc5, + 0xcb, 0xf2, 0x05, 0x17, 0x5d, 0x14, 0xce, 0xf7, 0x71, 0x2a, 0xf9, 0x1b, 0x92, 0x70, 0xab, 0x38, + 0xf1, 0x70, 0x2e, 0x85, 0xc0, 0x19, 0xe4, 0xf8, 0x84, 0xed, 0xaa, 0x6a, 0x62, 0x59, 0x02, 0x10, + 0x93, 0x46, 0xe7, 0x82, 0x10, 0x43, 0xbc, 0x9d, 0xef, 0x49, 0x30, 0x47, 0x97, 0x36, 0xb6, 0x8f, + 0xb1, 0xd0, 0x0b, 0x21, 0xaf, 0x92, 0x67, 0x1b, 0x0c, 0x17, 0x42, 0x10, 0x25, 0xef, 0x8a, 0xa6, + 0x12, 0x13, 0x44, 0xb5, 0xc1, 0x46, 0xd1, 0x45, 0xf9, 0xac, 0x0b, 0x45, 0xed, 0x7a, 0xb5, 0xc2, + 0x53, 0x85, 0x87, 0xe6, 0xb7, 0xcd, 0x93, 0x23, 0x3c, 0x3d, 0x57, 0x42, 0x00, 0x63, 0xdb, 0x0b, + 0xa1, 0x68, 0xb9, 0x15, 0x90, 0x96, 0x4b, 0xa9, 0xc0, 0xa3, 0x83, 0x89, 0xf9, 0x37, 0x12, 0xcc, + 0x59, 0x8b, 0x2e, 0x9e, 0xa0, 0x90, 0xd2, 0x16, 0x8a, 0x18, 0x25, 0x20, 0x31, 0x2f, 0xa7, 0x9e, + 0x0f, 0x4a, 0x8c, 0x7d, 0x95, 0x86, 0x09, 0x2b, 0x3d, 0x19, 0x84, 0x89, 0xcb, 0xba, 0x6f, 0x9b, + 0x06, 0xfa, 0x10, 0x44, 0xb9, 0x19, 0xe7, 0x9d, 0xfd, 0x83, 0xe4, 0x29, 0x6b, 0x02, 0xc1, 0xf8, + 0x99, 0x6d, 0xb6, 0x1b, 0x81, 0x74, 0x70, 0x23, 0xf0, 0x9f, 0xcd, 0x3d, 0x3a, 0x0e, 0x04, 0xf7, + 0x82, 0xcf, 0xe5, 0xe0, 0xcf, 0x06, 0x30, 0xcd, 0x09, 0xf1, 0xd0, 0x80, 0xdc, 0x08, 0x38, 0x24, + 0xb9, 0xd4, 0xf5, 0x40, 0x14, 0x89, 0xef, 0x81, 0x50, 0x13, 0x41, 0xdf, 0x26, 0xc0, 0xa3, 0xf3, + 0x27, 0x12, 0xa4, 0x4a, 0x6a, 0x4d, 0x6d, 0xa9, 0x1a, 0x33, 0x7a, 0xc2, 0x8b, 0x12, 0x21, 0x87, + 0xc9, 0x37, 0x82, 0xce, 0x37, 0x2e, 0x77, 0x03, 0x52, 0xba, 0x91, 0x5a, 0x0f, 0x2c, 0x7c, 0x16, + 0x75, 0x99, 0x32, 0x3d, 0x47, 0x4d, 0x1f, 0xbf, 0xa0, 0x0f, 0x62, 0x60, 0x8a, 0xff, 0xbd, 0x04, + 0x33, 0x82, 0x6f, 0x4c, 0xef, 0xbe, 0x43, 0x2f, 0x0f, 0x12, 0x27, 0x38, 0x7c, 0x88, 0xc1, 0x26, + 0xc1, 0x64, 0xe9, 0xed, 0x3c, 0x8d, 0xc9, 0x67, 0x32, 0x9e, 0xcb, 0x75, 0x6e, 0x36, 0xfe, 0x40, + 0x12, 0xaf, 0x6d, 0x7f, 0x44, 0x01, 0x87, 0xd5, 0xfd, 0x83, 0xe4, 0xac, 0x13, 0x2d, 0x84, 0x80, + 0xd3, 0x48, 0xce, 0xf8, 0xc7, 0x1b, 0xbe, 0x23, 0x01, 0x12, 0x42, 0x92, 0xf4, 0xbe, 0xcc, 0x95, + 0x30, 0x60, 0xd8, 0xdc, 0x7b, 0x31, 0x4c, 0x1d, 0xe2, 0x8b, 0x72, 0x21, 0x08, 0x0a, 0xde, 0x0a, + 0x50, 0xca, 0xf2, 0x09, 0x4f, 0xf4, 0x2c, 0xd8, 0x83, 0x84, 0xa0, 0xe5, 0x00, 0xd8, 0x99, 0xc5, + 0x08, 0x87, 0xfd, 0x86, 0x37, 0xf6, 0xb3, 0xa9, 0x00, 0x9c, 0x67, 0xae, 0xc2, 0x7c, 0x5f, 0x48, + 0x93, 0x12, 0x11, 0x56, 0x7a, 0xc2, 0x11, 0x50, 0xf2, 0x26, 0xe0, 0xb9, 0xd4, 0xb2, 0x3f, 0x01, + 0xf6, 0x19, 0x15, 0x13, 0x53, 0xfa, 0xc1, 0x25, 0x46, 0x9c, 0x45, 0x7f, 0x4e, 0x02, 0x24, 0x2c, + 0x73, 0x06, 0x23, 0xc4, 0xeb, 0xa4, 0xea, 0xbc, 0x15, 0x29, 0xa1, 0x90, 0xb9, 0xed, 0xa4, 0xd3, + 0xe9, 0x20, 0xba, 0xfb, 0xab, 0x12, 0xa4, 0xac, 0x58, 0x61, 0xdf, 0x25, 0xea, 0x6e, 0x01, 0xc3, + 0x17, 0xc3, 0xdf, 0xe0, 0x4b, 0xa3, 0x86, 0x79, 0x12, 0x2f, 0x39, 0x26, 0xa2, 0xb6, 0xc7, 0x0e, + 0xc9, 0xc1, 0x50, 0x03, 0x3a, 0x43, 0x2b, 0x86, 0x10, 0xf7, 0x23, 0x70, 0xac, 0x7f, 0x46, 0x30, + 0xe2, 0x88, 0xd7, 0x07, 0xbd, 0x5f, 0xd8, 0x98, 0x1d, 0x3e, 0x35, 0x78, 0x03, 0x6c, 0x8e, 0xb8, + 0x13, 0x84, 0xce, 0x4f, 0xca, 0x2f, 0xf9, 0x0c, 0x91, 0x71, 0x1f, 0x9a, 0x63, 0x78, 0xf1, 0xdf, + 0x49, 0x30, 0x67, 0x85, 0x28, 0xf8, 0xeb, 0xec, 0x5f, 0x08, 0x8f, 0x3f, 0x5b, 0xad, 0xa6, 0x56, + 0xc2, 0x57, 0x93, 0xff, 0xec, 0xfe, 0x41, 0xf2, 0x38, 0xa4, 0x1c, 0x09, 0xb5, 0x14, 0xe8, 0x05, + 0xf9, 0x72, 0x58, 0x4a, 0x99, 0xab, 0x93, 0x14, 0x42, 0x1c, 0x3c, 0x91, 0x2f, 0x85, 0x47, 0xcb, + 0x02, 0x1e, 0x83, 0xd0, 0xa9, 0x06, 0xa2, 0xf3, 0x7a, 0xea, 0x95, 0xd0, 0x23, 0x2a, 0x04, 0x2d, + 0xbf, 0x27, 0x41, 0xb2, 0xdf, 0x68, 0x0c, 0x4e, 0xb1, 0x4f, 0xa4, 0xa4, 0x42, 0xd6, 0xe3, 0x8b, + 0x8e, 0x54, 0x71, 0xb6, 0xe4, 0x13, 0xe9, 0x43, 0x90, 0x85, 0xfe, 0x81, 0x04, 0x09, 0xeb, 0x93, + 0x70, 0xe6, 0xbb, 0x5d, 0x0d, 0x79, 0x17, 0x5f, 0xe0, 0x8d, 0x6b, 0x97, 0xbb, 0x34, 0xe5, 0x17, + 0xe8, 0xc6, 0x35, 0x39, 0x33, 0x6f, 0x73, 0x73, 0x52, 0xf2, 0x1c, 0x3b, 0x38, 0xdf, 0xef, 0x97, + 0xfd, 0x82, 0xc4, 0x5d, 0x11, 0x4b, 0x9c, 0xb2, 0x0b, 0x81, 0x11, 0x04, 0xfd, 0x72, 0xc9, 0x72, + 0xc7, 0x5e, 0x76, 0x07, 0x79, 0x12, 0x1d, 0x37, 0x4e, 0xf7, 0x1b, 0x9c, 0x15, 0x2c, 0xf9, 0x2f, + 0x4a, 0x30, 0x65, 0x7d, 0x0a, 0x4e, 0xe7, 0x9a, 0xb0, 0x57, 0x65, 0x07, 0xfb, 0x86, 0x89, 0x4e, + 0x99, 0x2f, 0xd1, 0xe3, 0x16, 0x1c, 0x54, 0xf1, 0x6c, 0xb0, 0x33, 0x56, 0xcc, 0xd2, 0xbf, 0x23, + 0xc1, 0x94, 0xf5, 0x91, 0x4b, 0x58, 0xa4, 0xcc, 0xdb, 0x0a, 0x81, 0xf4, 0x93, 0x1e, 0x48, 0x9f, + 0x4e, 0x79, 0x72, 0x95, 0x79, 0xe6, 0x33, 0xe2, 0x47, 0xf0, 0x14, 0x72, 0x28, 0x39, 0x08, 0x01, + 0xb7, 0xe0, 0x01, 0xf7, 0x52, 0xea, 0x9c, 0x17, 0x5c, 0xbb, 0x3f, 0xf5, 0x01, 0xd9, 0x02, 0xf9, + 0x01, 0x81, 0x2e, 0x7a, 0x4f, 0xef, 0x4b, 0xfc, 0x57, 0x6f, 0x03, 0xc0, 0xf6, 0xfa, 0x76, 0x66, + 0x06, 0xa6, 0x39, 0x8c, 0x9c, 0xa1, 0x3b, 0x99, 0xf6, 0x56, 0xb2, 0xaf, 0x49, 0x30, 0xb3, 0xda, + 0x6b, 0xdc, 0xb7, 0x2b, 0xda, 0x73, 0x21, 0x15, 0xcd, 0x73, 0x6f, 0x60, 0xc5, 0x83, 0x8b, 0xf3, + 0x32, 0xfd, 0x44, 0xcf, 0x30, 0x54, 0xc6, 0x66, 0x80, 0x01, 0xcc, 0xae, 0x57, 0xcf, 0x85, 0xd4, + 0xab, 0xc1, 0x81, 0xa5, 0x9c, 0x81, 0xfd, 0x35, 0x06, 0xcc, 0x3e, 0x96, 0xc1, 0x81, 0x59, 0x97, + 0xcf, 0xbb, 0x02, 0x7b, 0xde, 0x6b, 0x4c, 0x17, 0xd2, 0x88, 0x8e, 0xa9, 0x1d, 0xda, 0x7f, 0x93, + 0x60, 0x41, 0x70, 0x22, 0xb9, 0xe9, 0x29, 0xe8, 0xcb, 0x18, 0x47, 0x3d, 0x4b, 0x7d, 0x66, 0xff, + 0x20, 0x79, 0x1a, 0x16, 0x8c, 0x09, 0xd9, 0x36, 0x11, 0x04, 0x0f, 0xfa, 0xbb, 0x4d, 0x67, 0x7f, + 0x60, 0xdd, 0xb1, 0x27, 0xce, 0x6a, 0x2b, 0x61, 0x09, 0x0e, 0x3f, 0xb9, 0xdd, 0x09, 0x45, 0xdb, + 0xf3, 0x68, 0xc5, 0x93, 0x36, 0x67, 0x05, 0xfd, 0x3d, 0x09, 0xe6, 0x85, 0x58, 0xc4, 0xa3, 0x99, + 0x0c, 0x95, 0xfd, 0x83, 0xe4, 0x19, 0x48, 0x3a, 0x90, 0xe6, 0x18, 0x1e, 0x5b, 0x91, 0x2f, 0x85, + 0xa2, 0x0d, 0x8f, 0xdc, 0x1f, 0x49, 0x30, 0x2f, 0x44, 0x2a, 0x2c, 0xca, 0xae, 0x86, 0x1d, 0xbb, + 0xf0, 0x73, 0xe8, 0xdd, 0x70, 0x04, 0xbe, 0x98, 0x1a, 0x60, 0xf0, 0x8c, 0xe0, 0x66, 0x5f, 0x38, + 0xc3, 0xa2, 0x74, 0x10, 0x29, 0x0d, 0x41, 0xa5, 0x16, 0x8e, 0xca, 0xb5, 0xd4, 0xab, 0xe1, 0xa9, + 0xb4, 0xcf, 0xd1, 0x34, 0x9c, 0xfb, 0x64, 0x53, 0x2c, 0x4e, 0xed, 0x5f, 0x8e, 0xc0, 0xf1, 0xfe, + 0xc5, 0x3b, 0x67, 0x7c, 0x57, 0x43, 0x45, 0xdf, 0x8e, 0xd8, 0x02, 0x77, 0xf7, 0x0f, 0x92, 0x19, + 0x38, 0x21, 0x2e, 0x89, 0xec, 0xb6, 0x4a, 0x7c, 0xa3, 0x93, 0xf2, 0xe6, 0x9a, 0x7c, 0xd5, 0xe0, + 0x8d, 0x41, 0xbc, 0xfd, 0x5a, 0x73, 0x77, 0xbb, 0xfc, 0xff, 0x6c, 0x2f, 0x0a, 0x8a, 0xc6, 0xf9, + 0xc5, 0x81, 0x18, 0x12, 0xde, 0x42, 0xbf, 0x3d, 0x28, 0xed, 0xd7, 0xd1, 0x27, 0x83, 0xd2, 0xee, + 0x6c, 0xb7, 0xff, 0xd4, 0xfa, 0x64, 0xcc, 0x89, 0x14, 0x74, 0x6d, 0x20, 0x0e, 0x84, 0x37, 0xe4, + 0x6f, 0xed, 0x1f, 0x24, 0x2f, 0xc3, 0x49, 0x57, 0x0e, 0x50, 0xad, 0x70, 0x62, 0x01, 0x17, 0xcc, + 0x09, 0xcb, 0x02, 0x2c, 0x00, 0xef, 0x45, 0xcc, 0xaf, 0xcc, 0x8e, 0x90, 0x01, 0xe1, 0x0d, 0xfd, + 0x8f, 0x0e, 0xcc, 0x80, 0xd5, 0xd4, 0xe1, 0x64, 0x00, 0x73, 0xe1, 0x2f, 0x47, 0xe0, 0x94, 0x73, + 0x34, 0xdb, 0xe2, 0xc4, 0xc0, 0xca, 0x10, 0x82, 0x0b, 0x5f, 0x90, 0x06, 0x66, 0xc3, 0x56, 0xaa, + 0x70, 0x28, 0x36, 0xd8, 0xe7, 0x07, 0xcc, 0x92, 0xd2, 0x47, 0x9d, 0x25, 0xc2, 0x04, 0xb2, 0xfa, + 0x9b, 0xd2, 0x57, 0xb2, 0x7f, 0x45, 0x42, 0xeb, 0x30, 0x69, 0x5d, 0x76, 0xb9, 0x94, 0xdd, 0x2e, + 0xc8, 0x97, 0xd1, 0xf2, 0xbd, 0x6e, 0xb7, 0xa3, 0xbf, 0x92, 0xc9, 0xd4, 0xea, 0xdd, 0x7b, 0xbd, + 0x3b, 0xcb, 0x95, 0x76, 0x33, 0x83, 0x49, 0xcc, 0x30, 0x12, 0x33, 0x9d, 0xfb, 0xb5, 0x8c, 0x45, + 0xe6, 0x4a, 0xf4, 0xf2, 0xf2, 0x95, 0xb4, 0x14, 0x59, 0x49, 0x70, 0xfb, 0x92, 0x99, 0x1f, 0xd1, + 0xdb, 0x2d, 0x31, 0xa5, 0xa6, 0x75, 0x2a, 0xaf, 0xf4, 0x95, 0x79, 0xa5, 0xaf, 0xcc, 0xa7, 0x2f, + 0x78, 0xf5, 0x8b, 0x4b, 0x70, 0x9d, 0xdf, 0x19, 0x26, 0xcb, 0x98, 0xe7, 0xfe, 0x7f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x4c, 0x81, 0x9f, 0xdb, 0x78, 0xd0, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ManagementServiceClient is the client API for ManagementService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ManagementServiceClient interface { + //READINESS + Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) + 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) + // GetIam returns some needed settings of the iam (Global Organisation ID, Zitadel Project ID) + GetIam(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Iam, error) + GetUserByID(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserView, error) + // GetUserByEmailGlobal returns User, global search is overall organisations + GetUserByEmailGlobal(ctx context.Context, in *Email, opts ...grpc.CallOption) (*UserView, error) + // Limit should always be set, there is a default limit set by the service + SearchUsers(ctx context.Context, in *UserSearchRequest, opts ...grpc.CallOption) (*UserSearchResponse, error) + IsUserUnique(ctx context.Context, in *UniqueUserRequest, opts ...grpc.CallOption) (*UniqueUserResponse, error) + CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) + DeactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) + ReactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) + LockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) + UnlockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) + DeleteUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) + // UserChanges returns the event stream of the user object + UserChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) + // ApplicationChanges returns the event stream of the application object + ApplicationChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) + // OrgChanges returns the event stream of the org object + OrgChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) + // ProjectChanges returns the event stream of the project object + ProjectChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) + GetUserProfile(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserProfileView, error) + UpdateUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UserProfile, error) + GetUserEmail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserEmailView, error) + ChangeUserEmail(ctx context.Context, in *UpdateUserEmailRequest, opts ...grpc.CallOption) (*UserEmail, error) + ResendEmailVerificationMail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) + GetUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserPhoneView, error) + ChangeUserPhone(ctx context.Context, in *UpdateUserPhoneRequest, opts ...grpc.CallOption) (*UserPhone, error) + RemoveUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) + ResendPhoneVerificationCode(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) + GetUserAddress(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserAddressView, error) + UpdateUserAddress(ctx context.Context, in *UpdateUserAddressRequest, opts ...grpc.CallOption) (*UserAddress, error) + GetUserMfas(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*MultiFactors, error) + // Sends an Notification (Email/SMS) with a password reset Link + SendSetPasswordNotification(ctx context.Context, in *SetPasswordNotificationRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // A Manager is only allowed to set an initial password, on the next login the user has to change his password + SetInitialPassword(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // returns default policy if nothing other set on organisation + GetPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) + CreatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyCreate, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) + UpdatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyUpdate, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) + DeletePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) + // returns default if nothing other set on organisation + GetPasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordAgePolicy, error) + CreatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyCreate, opts ...grpc.CallOption) (*PasswordAgePolicy, error) + UpdatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyUpdate, opts ...grpc.CallOption) (*PasswordAgePolicy, error) + DeletePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyID, opts ...grpc.CallOption) (*empty.Empty, error) + // returns default if nothing other set on organisation + GetPasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) + CreatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyCreate, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) + UpdatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyUpdate, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) + DeletePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) + GetMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgView, error) + // search a organisation by its domain overall organisations + GetOrgByDomainGlobal(ctx context.Context, in *Domain, opts ...grpc.CallOption) (*OrgView, error) + DeactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) + ReactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) + SearchMyOrgDomains(ctx context.Context, in *OrgDomainSearchRequest, opts ...grpc.CallOption) (*OrgDomainSearchResponse, error) + AddMyOrgDomain(ctx context.Context, in *AddOrgDomainRequest, opts ...grpc.CallOption) (*OrgDomain, error) + RemoveMyOrgDomain(ctx context.Context, in *RemoveOrgDomainRequest, opts ...grpc.CallOption) (*empty.Empty, error) + GetMyOrgIamPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgIamPolicy, error) + GetOrgMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgMemberRoles, error) + AddMyOrgMember(ctx context.Context, in *AddOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) + ChangeMyOrgMember(ctx context.Context, in *ChangeOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) + RemoveMyOrgMember(ctx context.Context, in *RemoveOrgMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) + SearchMyOrgMembers(ctx context.Context, in *OrgMemberSearchRequest, opts ...grpc.CallOption) (*OrgMemberSearchResponse, error) + SearchProjects(ctx context.Context, in *ProjectSearchRequest, opts ...grpc.CallOption) (*ProjectSearchResponse, error) + ProjectByID(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*ProjectView, error) + CreateProject(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*Project, error) + UpdateProject(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*Project, error) + DeactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) + ReactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) + // returns all projects my organisation got granted from another organisation + SearchGrantedProjects(ctx context.Context, in *GrantedProjectSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) + // returns a project my organisation got granted from another organisation + GetGrantedProjectByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) + GetProjectMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectMemberRoles, error) + SearchProjectMembers(ctx context.Context, in *ProjectMemberSearchRequest, opts ...grpc.CallOption) (*ProjectMemberSearchResponse, error) + AddProjectMember(ctx context.Context, in *ProjectMemberAdd, opts ...grpc.CallOption) (*ProjectMember, error) + ChangeProjectMember(ctx context.Context, in *ProjectMemberChange, opts ...grpc.CallOption) (*ProjectMember, error) + RemoveProjectMember(ctx context.Context, in *ProjectMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) + SearchProjectRoles(ctx context.Context, in *ProjectRoleSearchRequest, opts ...grpc.CallOption) (*ProjectRoleSearchResponse, error) + AddProjectRole(ctx context.Context, in *ProjectRoleAdd, opts ...grpc.CallOption) (*ProjectRole, error) + // add a list of project roles in one request + BulkAddProjectRole(ctx context.Context, in *ProjectRoleAddBulk, opts ...grpc.CallOption) (*empty.Empty, error) + ChangeProjectRole(ctx context.Context, in *ProjectRoleChange, opts ...grpc.CallOption) (*ProjectRole, error) + // RemoveProjectRole removes role from UserGrants, ProjectGrants and from Project + RemoveProjectRole(ctx context.Context, in *ProjectRoleRemove, opts ...grpc.CallOption) (*empty.Empty, error) + SearchApplications(ctx context.Context, in *ApplicationSearchRequest, opts ...grpc.CallOption) (*ApplicationSearchResponse, error) + ApplicationByID(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ApplicationView, error) + CreateOIDCApplication(ctx context.Context, in *OIDCApplicationCreate, opts ...grpc.CallOption) (*Application, error) + UpdateApplication(ctx context.Context, in *ApplicationUpdate, opts ...grpc.CallOption) (*Application, error) + DeactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) + ReactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) + RemoveApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*empty.Empty, error) + UpdateApplicationOIDCConfig(ctx context.Context, in *OIDCConfigUpdate, opts ...grpc.CallOption) (*OIDCConfig, error) + RegenerateOIDCClientSecret(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ClientSecret, error) + SearchProjectGrants(ctx context.Context, in *ProjectGrantSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) + ProjectGrantByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) + CreateProjectGrant(ctx context.Context, in *ProjectGrantCreate, opts ...grpc.CallOption) (*ProjectGrant, error) + UpdateProjectGrant(ctx context.Context, in *ProjectGrantUpdate, opts ...grpc.CallOption) (*ProjectGrant, error) + DeactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) + ReactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) + // RemoveProjectGrant removes project grant and all user grants for this project grant + RemoveProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*empty.Empty, error) + GetProjectGrantMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectGrantMemberRoles, error) + SearchProjectGrantMembers(ctx context.Context, in *ProjectGrantMemberSearchRequest, opts ...grpc.CallOption) (*ProjectGrantMemberSearchResponse, error) + AddProjectGrantMember(ctx context.Context, in *ProjectGrantMemberAdd, opts ...grpc.CallOption) (*ProjectGrantMember, error) + ChangeProjectGrantMember(ctx context.Context, in *ProjectGrantMemberChange, opts ...grpc.CallOption) (*ProjectGrantMember, error) + RemoveProjectGrantMember(ctx context.Context, in *ProjectGrantMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) + SearchUserGrants(ctx context.Context, in *UserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) + UserGrantByID(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) + CreateUserGrant(ctx context.Context, in *UserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) + UpdateUserGrant(ctx context.Context, in *UserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) + DeactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) + ReactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) + RemoveUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*empty.Empty, error) + // add a list of user grants in one request + BulkCreateUserGrant(ctx context.Context, in *UserGrantCreateBulk, opts ...grpc.CallOption) (*empty.Empty, error) + // update a list of user grants in one request + BulkUpdateUserGrant(ctx context.Context, in *UserGrantUpdateBulk, opts ...grpc.CallOption) (*empty.Empty, error) + // remove a list of user grants in one request + BulkRemoveUserGrant(ctx context.Context, in *UserGrantRemoveBulk, opts ...grpc.CallOption) (*empty.Empty, error) + // search user grants based on a project + // This request is required that the user authorizations of zitadel can be differentiated + SearchProjectUserGrants(ctx context.Context, in *ProjectUserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) + // get user grant based on a project + // This request is required that the user authorizations of zitadel can be differentiated + ProjectUserGrantByID(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) + // create user grant based on a project + // This request is required that the user authorizations of zitadel can be differentiated + CreateProjectUserGrant(ctx context.Context, in *UserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) + // update user grant based on a project + // This request is required that the user authorizations of zitadel can be differentiated + UpdateProjectUserGrant(ctx context.Context, in *ProjectUserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) + // deactivate user grant based on a project + // This request is required that the user authorizations of zitadel can be differentiated + DeactivateProjectUserGrant(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) + // reactivate user grant based on a project + // This request is required that the user authorizations of zitadel can be differentiated + ReactivateProjectUserGrant(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) + // search user grants based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + SearchProjectGrantUserGrants(ctx context.Context, in *ProjectGrantUserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) + // get user grant based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + ProjectGrantUserGrantByID(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) + // create user grant based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + CreateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) + // update user grant based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + UpdateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) + // deactivate user grant based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + DeactivateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) + // reactivate user grant based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + ReactivateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) +} + +type managementServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewManagementServiceClient(cc grpc.ClientConnInterface) ManagementServiceClient { + return &managementServiceClient{cc} +} + +func (c *managementServiceClient) Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/Healthz", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/Ready", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) { + out := new(_struct.Struct) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/Validate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetIam(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Iam, error) { + out := new(Iam) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetIam", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetUserByID(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserView, error) { + out := new(UserView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetUserByEmailGlobal(ctx context.Context, in *Email, opts ...grpc.CallOption) (*UserView, error) { + out := new(UserView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserByEmailGlobal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchUsers(ctx context.Context, in *UserSearchRequest, opts ...grpc.CallOption) (*UserSearchResponse, error) { + out := new(UserSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchUsers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) IsUserUnique(ctx context.Context, in *UniqueUserRequest, opts ...grpc.CallOption) (*UniqueUserResponse, error) { + out := new(UniqueUserResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/IsUserUnique", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ReactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) LockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/LockUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UnlockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UnlockUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeleteUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeleteUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UserChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { + out := new(Changes) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UserChanges", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ApplicationChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { + out := new(Changes) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) OrgChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { + out := new(Changes) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/OrgChanges", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ProjectChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { + out := new(Changes) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectChanges", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetUserProfile(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserProfileView, error) { + out := new(UserProfileView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserProfile", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdateUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UserProfile, error) { + out := new(UserProfile) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetUserEmail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserEmailView, error) { + out := new(UserEmailView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserEmail", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ChangeUserEmail(ctx context.Context, in *UpdateUserEmailRequest, opts ...grpc.CallOption) (*UserEmail, error) { + out := new(UserEmail) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ResendEmailVerificationMail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserPhoneView, error) { + out := new(UserPhoneView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserPhone", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ChangeUserPhone(ctx context.Context, in *UpdateUserPhoneRequest, opts ...grpc.CallOption) (*UserPhone, error) { + out := new(UserPhone) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) RemoveUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ResendPhoneVerificationCode(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetUserAddress(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserAddressView, error) { + out := new(UserAddressView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdateUserAddress(ctx context.Context, in *UpdateUserAddressRequest, opts ...grpc.CallOption) (*UserAddress, error) { + out := new(UserAddress) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetUserMfas(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*MultiFactors, error) { + out := new(MultiFactors) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserMfas", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SendSetPasswordNotification(ctx context.Context, in *SetPasswordNotificationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SetInitialPassword(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) { + out := new(PasswordComplexityPolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) CreatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyCreate, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) { + out := new(PasswordComplexityPolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyUpdate, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) { + out := new(PasswordComplexityPolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeletePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordComplexityPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetPasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordAgePolicy, error) { + out := new(PasswordAgePolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) CreatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyCreate, opts ...grpc.CallOption) (*PasswordAgePolicy, error) { + out := new(PasswordAgePolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyUpdate, opts ...grpc.CallOption) (*PasswordAgePolicy, error) { + out := new(PasswordAgePolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeletePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordAgePolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetPasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) { + out := new(PasswordLockoutPolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) CreatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyCreate, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) { + out := new(PasswordLockoutPolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyUpdate, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) { + out := new(PasswordLockoutPolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeletePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordLockoutPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgView, error) { + out := new(OrgView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetMyOrg", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetOrgByDomainGlobal(ctx context.Context, in *Domain, opts ...grpc.CallOption) (*OrgView, error) { + out := new(OrgView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) { + out := new(Org) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ReactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) { + out := new(Org) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchMyOrgDomains(ctx context.Context, in *OrgDomainSearchRequest, opts ...grpc.CallOption) (*OrgDomainSearchResponse, error) { + out := new(OrgDomainSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) AddMyOrgDomain(ctx context.Context, in *AddOrgDomainRequest, opts ...grpc.CallOption) (*OrgDomain, error) { + out := new(OrgDomain) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) RemoveMyOrgDomain(ctx context.Context, in *RemoveOrgDomainRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetMyOrgIamPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgIamPolicy, error) { + out := new(OrgIamPolicy) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetOrgMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgMemberRoles, error) { + out := new(OrgMemberRoles) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) AddMyOrgMember(ctx context.Context, in *AddOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) { + out := new(OrgMember) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ChangeMyOrgMember(ctx context.Context, in *ChangeOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) { + out := new(OrgMember) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) RemoveMyOrgMember(ctx context.Context, in *RemoveOrgMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchMyOrgMembers(ctx context.Context, in *OrgMemberSearchRequest, opts ...grpc.CallOption) (*OrgMemberSearchResponse, error) { + out := new(OrgMemberSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchProjects(ctx context.Context, in *ProjectSearchRequest, opts ...grpc.CallOption) (*ProjectSearchResponse, error) { + out := new(ProjectSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjects", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ProjectByID(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*ProjectView, error) { + out := new(ProjectView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) CreateProject(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdateProject(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ReactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchGrantedProjects(ctx context.Context, in *GrantedProjectSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) { + out := new(ProjectGrantSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetGrantedProjectByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) { + out := new(ProjectGrantView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetProjectMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectMemberRoles, error) { + out := new(ProjectMemberRoles) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchProjectMembers(ctx context.Context, in *ProjectMemberSearchRequest, opts ...grpc.CallOption) (*ProjectMemberSearchResponse, error) { + out := new(ProjectMemberSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) AddProjectMember(ctx context.Context, in *ProjectMemberAdd, opts ...grpc.CallOption) (*ProjectMember, error) { + out := new(ProjectMember) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddProjectMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ChangeProjectMember(ctx context.Context, in *ProjectMemberChange, opts ...grpc.CallOption) (*ProjectMember, error) { + out := new(ProjectMember) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) RemoveProjectMember(ctx context.Context, in *ProjectMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchProjectRoles(ctx context.Context, in *ProjectRoleSearchRequest, opts ...grpc.CallOption) (*ProjectRoleSearchResponse, error) { + out := new(ProjectRoleSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) AddProjectRole(ctx context.Context, in *ProjectRoleAdd, opts ...grpc.CallOption) (*ProjectRole, error) { + out := new(ProjectRole) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddProjectRole", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) BulkAddProjectRole(ctx context.Context, in *ProjectRoleAddBulk, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ChangeProjectRole(ctx context.Context, in *ProjectRoleChange, opts ...grpc.CallOption) (*ProjectRole, error) { + out := new(ProjectRole) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) RemoveProjectRole(ctx context.Context, in *ProjectRoleRemove, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchApplications(ctx context.Context, in *ApplicationSearchRequest, opts ...grpc.CallOption) (*ApplicationSearchResponse, error) { + out := new(ApplicationSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchApplications", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ApplicationByID(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ApplicationView, error) { + out := new(ApplicationView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ApplicationByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) CreateOIDCApplication(ctx context.Context, in *OIDCApplicationCreate, opts ...grpc.CallOption) (*Application, error) { + out := new(Application) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdateApplication(ctx context.Context, in *ApplicationUpdate, opts ...grpc.CallOption) (*Application, error) { + out := new(Application) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateApplication", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) { + out := new(Application) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ReactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) { + out := new(Application) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) RemoveApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveApplication", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdateApplicationOIDCConfig(ctx context.Context, in *OIDCConfigUpdate, opts ...grpc.CallOption) (*OIDCConfig, error) { + out := new(OIDCConfig) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) RegenerateOIDCClientSecret(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ClientSecret, error) { + out := new(ClientSecret) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchProjectGrants(ctx context.Context, in *ProjectGrantSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) { + out := new(ProjectGrantSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ProjectGrantByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) { + out := new(ProjectGrantView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) CreateProjectGrant(ctx context.Context, in *ProjectGrantCreate, opts ...grpc.CallOption) (*ProjectGrant, error) { + out := new(ProjectGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdateProjectGrant(ctx context.Context, in *ProjectGrantUpdate, opts ...grpc.CallOption) (*ProjectGrant, error) { + out := new(ProjectGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) { + out := new(ProjectGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ReactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) { + out := new(ProjectGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) RemoveProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) GetProjectGrantMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectGrantMemberRoles, error) { + out := new(ProjectGrantMemberRoles) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchProjectGrantMembers(ctx context.Context, in *ProjectGrantMemberSearchRequest, opts ...grpc.CallOption) (*ProjectGrantMemberSearchResponse, error) { + out := new(ProjectGrantMemberSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) AddProjectGrantMember(ctx context.Context, in *ProjectGrantMemberAdd, opts ...grpc.CallOption) (*ProjectGrantMember, error) { + out := new(ProjectGrantMember) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ChangeProjectGrantMember(ctx context.Context, in *ProjectGrantMemberChange, opts ...grpc.CallOption) (*ProjectGrantMember, error) { + out := new(ProjectGrantMember) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) RemoveProjectGrantMember(ctx context.Context, in *ProjectGrantMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchUserGrants(ctx context.Context, in *UserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) { + out := new(UserGrantSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UserGrantByID(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) { + out := new(UserGrantView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UserGrantByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) CreateUserGrant(ctx context.Context, in *UserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdateUserGrant(ctx context.Context, in *UserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ReactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) RemoveUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) BulkCreateUserGrant(ctx context.Context, in *UserGrantCreateBulk, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/BulkCreateUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) BulkUpdateUserGrant(ctx context.Context, in *UserGrantUpdateBulk, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/BulkUpdateUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) BulkRemoveUserGrant(ctx context.Context, in *UserGrantRemoveBulk, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchProjectUserGrants(ctx context.Context, in *ProjectUserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) { + out := new(UserGrantSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectUserGrants", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ProjectUserGrantByID(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) { + out := new(UserGrantView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectUserGrantByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) CreateProjectUserGrant(ctx context.Context, in *UserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateProjectUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdateProjectUserGrant(ctx context.Context, in *ProjectUserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeactivateProjectUserGrant(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ReactivateProjectUserGrant(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) SearchProjectGrantUserGrants(ctx context.Context, in *ProjectGrantUserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) { + out := new(UserGrantSearchResponse) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantUserGrants", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ProjectGrantUserGrantByID(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) { + out := new(UserGrantView) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantUserGrantByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) CreateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrantUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) UpdateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrantUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) DeactivateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrantUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *managementServiceClient) ReactivateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { + out := new(UserGrant) + err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrantUserGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ManagementServiceServer is the server API for ManagementService service. +type ManagementServiceServer interface { + //READINESS + Healthz(context.Context, *empty.Empty) (*empty.Empty, error) + Ready(context.Context, *empty.Empty) (*empty.Empty, error) + Validate(context.Context, *empty.Empty) (*_struct.Struct, error) + // GetIam returns some needed settings of the iam (Global Organisation ID, Zitadel Project ID) + GetIam(context.Context, *empty.Empty) (*Iam, error) + GetUserByID(context.Context, *UserID) (*UserView, error) + // GetUserByEmailGlobal returns User, global search is overall organisations + GetUserByEmailGlobal(context.Context, *Email) (*UserView, error) + // Limit should always be set, there is a default limit set by the service + SearchUsers(context.Context, *UserSearchRequest) (*UserSearchResponse, error) + IsUserUnique(context.Context, *UniqueUserRequest) (*UniqueUserResponse, error) + CreateUser(context.Context, *CreateUserRequest) (*User, error) + DeactivateUser(context.Context, *UserID) (*User, error) + ReactivateUser(context.Context, *UserID) (*User, error) + LockUser(context.Context, *UserID) (*User, error) + UnlockUser(context.Context, *UserID) (*User, error) + DeleteUser(context.Context, *UserID) (*empty.Empty, error) + // UserChanges returns the event stream of the user object + UserChanges(context.Context, *ChangeRequest) (*Changes, error) + // ApplicationChanges returns the event stream of the application object + ApplicationChanges(context.Context, *ChangeRequest) (*Changes, error) + // OrgChanges returns the event stream of the org object + OrgChanges(context.Context, *ChangeRequest) (*Changes, error) + // ProjectChanges returns the event stream of the project object + ProjectChanges(context.Context, *ChangeRequest) (*Changes, error) + GetUserProfile(context.Context, *UserID) (*UserProfileView, error) + UpdateUserProfile(context.Context, *UpdateUserProfileRequest) (*UserProfile, error) + GetUserEmail(context.Context, *UserID) (*UserEmailView, error) + ChangeUserEmail(context.Context, *UpdateUserEmailRequest) (*UserEmail, error) + ResendEmailVerificationMail(context.Context, *UserID) (*empty.Empty, error) + GetUserPhone(context.Context, *UserID) (*UserPhoneView, error) + ChangeUserPhone(context.Context, *UpdateUserPhoneRequest) (*UserPhone, error) + RemoveUserPhone(context.Context, *UserID) (*empty.Empty, error) + ResendPhoneVerificationCode(context.Context, *UserID) (*empty.Empty, error) + GetUserAddress(context.Context, *UserID) (*UserAddressView, error) + UpdateUserAddress(context.Context, *UpdateUserAddressRequest) (*UserAddress, error) + GetUserMfas(context.Context, *UserID) (*MultiFactors, error) + // Sends an Notification (Email/SMS) with a password reset Link + SendSetPasswordNotification(context.Context, *SetPasswordNotificationRequest) (*empty.Empty, error) + // A Manager is only allowed to set an initial password, on the next login the user has to change his password + SetInitialPassword(context.Context, *PasswordRequest) (*empty.Empty, error) + // returns default policy if nothing other set on organisation + GetPasswordComplexityPolicy(context.Context, *empty.Empty) (*PasswordComplexityPolicy, error) + CreatePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyCreate) (*PasswordComplexityPolicy, error) + UpdatePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyUpdate) (*PasswordComplexityPolicy, error) + DeletePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyID) (*empty.Empty, error) + // returns default if nothing other set on organisation + GetPasswordAgePolicy(context.Context, *empty.Empty) (*PasswordAgePolicy, error) + CreatePasswordAgePolicy(context.Context, *PasswordAgePolicyCreate) (*PasswordAgePolicy, error) + UpdatePasswordAgePolicy(context.Context, *PasswordAgePolicyUpdate) (*PasswordAgePolicy, error) + DeletePasswordAgePolicy(context.Context, *PasswordAgePolicyID) (*empty.Empty, error) + // returns default if nothing other set on organisation + GetPasswordLockoutPolicy(context.Context, *empty.Empty) (*PasswordLockoutPolicy, error) + CreatePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyCreate) (*PasswordLockoutPolicy, error) + UpdatePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyUpdate) (*PasswordLockoutPolicy, error) + DeletePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyID) (*empty.Empty, error) + GetMyOrg(context.Context, *empty.Empty) (*OrgView, error) + // search a organisation by its domain overall organisations + GetOrgByDomainGlobal(context.Context, *Domain) (*OrgView, error) + DeactivateMyOrg(context.Context, *empty.Empty) (*Org, error) + ReactivateMyOrg(context.Context, *empty.Empty) (*Org, error) + SearchMyOrgDomains(context.Context, *OrgDomainSearchRequest) (*OrgDomainSearchResponse, error) + AddMyOrgDomain(context.Context, *AddOrgDomainRequest) (*OrgDomain, error) + RemoveMyOrgDomain(context.Context, *RemoveOrgDomainRequest) (*empty.Empty, error) + GetMyOrgIamPolicy(context.Context, *empty.Empty) (*OrgIamPolicy, error) + GetOrgMemberRoles(context.Context, *empty.Empty) (*OrgMemberRoles, error) + AddMyOrgMember(context.Context, *AddOrgMemberRequest) (*OrgMember, error) + ChangeMyOrgMember(context.Context, *ChangeOrgMemberRequest) (*OrgMember, error) + RemoveMyOrgMember(context.Context, *RemoveOrgMemberRequest) (*empty.Empty, error) + SearchMyOrgMembers(context.Context, *OrgMemberSearchRequest) (*OrgMemberSearchResponse, error) + SearchProjects(context.Context, *ProjectSearchRequest) (*ProjectSearchResponse, error) + ProjectByID(context.Context, *ProjectID) (*ProjectView, error) + CreateProject(context.Context, *ProjectCreateRequest) (*Project, error) + UpdateProject(context.Context, *ProjectUpdateRequest) (*Project, error) + DeactivateProject(context.Context, *ProjectID) (*Project, error) + ReactivateProject(context.Context, *ProjectID) (*Project, error) + // returns all projects my organisation got granted from another organisation + SearchGrantedProjects(context.Context, *GrantedProjectSearchRequest) (*ProjectGrantSearchResponse, error) + // returns a project my organisation got granted from another organisation + GetGrantedProjectByID(context.Context, *ProjectGrantID) (*ProjectGrantView, error) + GetProjectMemberRoles(context.Context, *empty.Empty) (*ProjectMemberRoles, error) + SearchProjectMembers(context.Context, *ProjectMemberSearchRequest) (*ProjectMemberSearchResponse, error) + AddProjectMember(context.Context, *ProjectMemberAdd) (*ProjectMember, error) + ChangeProjectMember(context.Context, *ProjectMemberChange) (*ProjectMember, error) + RemoveProjectMember(context.Context, *ProjectMemberRemove) (*empty.Empty, error) + SearchProjectRoles(context.Context, *ProjectRoleSearchRequest) (*ProjectRoleSearchResponse, error) + AddProjectRole(context.Context, *ProjectRoleAdd) (*ProjectRole, error) + // add a list of project roles in one request + BulkAddProjectRole(context.Context, *ProjectRoleAddBulk) (*empty.Empty, error) + ChangeProjectRole(context.Context, *ProjectRoleChange) (*ProjectRole, error) + // RemoveProjectRole removes role from UserGrants, ProjectGrants and from Project + RemoveProjectRole(context.Context, *ProjectRoleRemove) (*empty.Empty, error) + SearchApplications(context.Context, *ApplicationSearchRequest) (*ApplicationSearchResponse, error) + ApplicationByID(context.Context, *ApplicationID) (*ApplicationView, error) + CreateOIDCApplication(context.Context, *OIDCApplicationCreate) (*Application, error) + UpdateApplication(context.Context, *ApplicationUpdate) (*Application, error) + DeactivateApplication(context.Context, *ApplicationID) (*Application, error) + ReactivateApplication(context.Context, *ApplicationID) (*Application, error) + RemoveApplication(context.Context, *ApplicationID) (*empty.Empty, error) + UpdateApplicationOIDCConfig(context.Context, *OIDCConfigUpdate) (*OIDCConfig, error) + RegenerateOIDCClientSecret(context.Context, *ApplicationID) (*ClientSecret, error) + SearchProjectGrants(context.Context, *ProjectGrantSearchRequest) (*ProjectGrantSearchResponse, error) + ProjectGrantByID(context.Context, *ProjectGrantID) (*ProjectGrantView, error) + CreateProjectGrant(context.Context, *ProjectGrantCreate) (*ProjectGrant, error) + UpdateProjectGrant(context.Context, *ProjectGrantUpdate) (*ProjectGrant, error) + DeactivateProjectGrant(context.Context, *ProjectGrantID) (*ProjectGrant, error) + ReactivateProjectGrant(context.Context, *ProjectGrantID) (*ProjectGrant, error) + // RemoveProjectGrant removes project grant and all user grants for this project grant + RemoveProjectGrant(context.Context, *ProjectGrantID) (*empty.Empty, error) + GetProjectGrantMemberRoles(context.Context, *empty.Empty) (*ProjectGrantMemberRoles, error) + SearchProjectGrantMembers(context.Context, *ProjectGrantMemberSearchRequest) (*ProjectGrantMemberSearchResponse, error) + AddProjectGrantMember(context.Context, *ProjectGrantMemberAdd) (*ProjectGrantMember, error) + ChangeProjectGrantMember(context.Context, *ProjectGrantMemberChange) (*ProjectGrantMember, error) + RemoveProjectGrantMember(context.Context, *ProjectGrantMemberRemove) (*empty.Empty, error) + SearchUserGrants(context.Context, *UserGrantSearchRequest) (*UserGrantSearchResponse, error) + UserGrantByID(context.Context, *UserGrantID) (*UserGrantView, error) + CreateUserGrant(context.Context, *UserGrantCreate) (*UserGrant, error) + UpdateUserGrant(context.Context, *UserGrantUpdate) (*UserGrant, error) + DeactivateUserGrant(context.Context, *UserGrantID) (*UserGrant, error) + ReactivateUserGrant(context.Context, *UserGrantID) (*UserGrant, error) + RemoveUserGrant(context.Context, *UserGrantID) (*empty.Empty, error) + // add a list of user grants in one request + BulkCreateUserGrant(context.Context, *UserGrantCreateBulk) (*empty.Empty, error) + // update a list of user grants in one request + BulkUpdateUserGrant(context.Context, *UserGrantUpdateBulk) (*empty.Empty, error) + // remove a list of user grants in one request + BulkRemoveUserGrant(context.Context, *UserGrantRemoveBulk) (*empty.Empty, error) + // search user grants based on a project + // This request is required that the user authorizations of zitadel can be differentiated + SearchProjectUserGrants(context.Context, *ProjectUserGrantSearchRequest) (*UserGrantSearchResponse, error) + // get user grant based on a project + // This request is required that the user authorizations of zitadel can be differentiated + ProjectUserGrantByID(context.Context, *ProjectUserGrantID) (*UserGrantView, error) + // create user grant based on a project + // This request is required that the user authorizations of zitadel can be differentiated + CreateProjectUserGrant(context.Context, *UserGrantCreate) (*UserGrant, error) + // update user grant based on a project + // This request is required that the user authorizations of zitadel can be differentiated + UpdateProjectUserGrant(context.Context, *ProjectUserGrantUpdate) (*UserGrant, error) + // deactivate user grant based on a project + // This request is required that the user authorizations of zitadel can be differentiated + DeactivateProjectUserGrant(context.Context, *ProjectUserGrantID) (*UserGrant, error) + // reactivate user grant based on a project + // This request is required that the user authorizations of zitadel can be differentiated + ReactivateProjectUserGrant(context.Context, *ProjectUserGrantID) (*UserGrant, error) + // search user grants based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + SearchProjectGrantUserGrants(context.Context, *ProjectGrantUserGrantSearchRequest) (*UserGrantSearchResponse, error) + // get user grant based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + ProjectGrantUserGrantByID(context.Context, *ProjectGrantUserGrantID) (*UserGrantView, error) + // create user grant based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + CreateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantCreate) (*UserGrant, error) + // update user grant based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + UpdateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantUpdate) (*UserGrant, error) + // deactivate user grant based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + DeactivateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantID) (*UserGrant, error) + // reactivate user grant based on a projectgrant + // This request is required that the user authorizations of zitadel can be differentiated + ReactivateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantID) (*UserGrant, error) +} + +// UnimplementedManagementServiceServer can be embedded to have forward compatible implementations. +type UnimplementedManagementServiceServer struct { +} + +func (*UnimplementedManagementServiceServer) Healthz(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Healthz not implemented") +} +func (*UnimplementedManagementServiceServer) Ready(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Ready not implemented") +} +func (*UnimplementedManagementServiceServer) Validate(ctx context.Context, req *empty.Empty) (*_struct.Struct, error) { + return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented") +} +func (*UnimplementedManagementServiceServer) GetIam(ctx context.Context, req *empty.Empty) (*Iam, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetIam not implemented") +} +func (*UnimplementedManagementServiceServer) GetUserByID(ctx context.Context, req *UserID) (*UserView, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserByID not implemented") +} +func (*UnimplementedManagementServiceServer) GetUserByEmailGlobal(ctx context.Context, req *Email) (*UserView, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserByEmailGlobal not implemented") +} +func (*UnimplementedManagementServiceServer) SearchUsers(ctx context.Context, req *UserSearchRequest) (*UserSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchUsers not implemented") +} +func (*UnimplementedManagementServiceServer) IsUserUnique(ctx context.Context, req *UniqueUserRequest) (*UniqueUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsUserUnique not implemented") +} +func (*UnimplementedManagementServiceServer) CreateUser(ctx context.Context, req *CreateUserRequest) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented") +} +func (*UnimplementedManagementServiceServer) DeactivateUser(ctx context.Context, req *UserID) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeactivateUser not implemented") +} +func (*UnimplementedManagementServiceServer) ReactivateUser(ctx context.Context, req *UserID) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReactivateUser not implemented") +} +func (*UnimplementedManagementServiceServer) LockUser(ctx context.Context, req *UserID) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method LockUser not implemented") +} +func (*UnimplementedManagementServiceServer) UnlockUser(ctx context.Context, req *UserID) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnlockUser not implemented") +} +func (*UnimplementedManagementServiceServer) DeleteUser(ctx context.Context, req *UserID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteUser not implemented") +} +func (*UnimplementedManagementServiceServer) UserChanges(ctx context.Context, req *ChangeRequest) (*Changes, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserChanges not implemented") +} +func (*UnimplementedManagementServiceServer) ApplicationChanges(ctx context.Context, req *ChangeRequest) (*Changes, error) { + return nil, status.Errorf(codes.Unimplemented, "method ApplicationChanges not implemented") +} +func (*UnimplementedManagementServiceServer) OrgChanges(ctx context.Context, req *ChangeRequest) (*Changes, error) { + return nil, status.Errorf(codes.Unimplemented, "method OrgChanges not implemented") +} +func (*UnimplementedManagementServiceServer) ProjectChanges(ctx context.Context, req *ChangeRequest) (*Changes, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProjectChanges not implemented") +} +func (*UnimplementedManagementServiceServer) GetUserProfile(ctx context.Context, req *UserID) (*UserProfileView, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserProfile not implemented") +} +func (*UnimplementedManagementServiceServer) UpdateUserProfile(ctx context.Context, req *UpdateUserProfileRequest) (*UserProfile, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUserProfile not implemented") +} +func (*UnimplementedManagementServiceServer) GetUserEmail(ctx context.Context, req *UserID) (*UserEmailView, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserEmail not implemented") +} +func (*UnimplementedManagementServiceServer) ChangeUserEmail(ctx context.Context, req *UpdateUserEmailRequest) (*UserEmail, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeUserEmail not implemented") +} +func (*UnimplementedManagementServiceServer) ResendEmailVerificationMail(ctx context.Context, req *UserID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResendEmailVerificationMail not implemented") +} +func (*UnimplementedManagementServiceServer) GetUserPhone(ctx context.Context, req *UserID) (*UserPhoneView, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserPhone not implemented") +} +func (*UnimplementedManagementServiceServer) ChangeUserPhone(ctx context.Context, req *UpdateUserPhoneRequest) (*UserPhone, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeUserPhone not implemented") +} +func (*UnimplementedManagementServiceServer) RemoveUserPhone(ctx context.Context, req *UserID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveUserPhone not implemented") +} +func (*UnimplementedManagementServiceServer) ResendPhoneVerificationCode(ctx context.Context, req *UserID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResendPhoneVerificationCode not implemented") +} +func (*UnimplementedManagementServiceServer) GetUserAddress(ctx context.Context, req *UserID) (*UserAddressView, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserAddress not implemented") +} +func (*UnimplementedManagementServiceServer) UpdateUserAddress(ctx context.Context, req *UpdateUserAddressRequest) (*UserAddress, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUserAddress not implemented") +} +func (*UnimplementedManagementServiceServer) GetUserMfas(ctx context.Context, req *UserID) (*MultiFactors, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserMfas not implemented") +} +func (*UnimplementedManagementServiceServer) SendSetPasswordNotification(ctx context.Context, req *SetPasswordNotificationRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendSetPasswordNotification not implemented") +} +func (*UnimplementedManagementServiceServer) SetInitialPassword(ctx context.Context, req *PasswordRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetInitialPassword not implemented") +} +func (*UnimplementedManagementServiceServer) GetPasswordComplexityPolicy(ctx context.Context, req *empty.Empty) (*PasswordComplexityPolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPasswordComplexityPolicy not implemented") +} +func (*UnimplementedManagementServiceServer) CreatePasswordComplexityPolicy(ctx context.Context, req *PasswordComplexityPolicyCreate) (*PasswordComplexityPolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordComplexityPolicy not implemented") +} +func (*UnimplementedManagementServiceServer) UpdatePasswordComplexityPolicy(ctx context.Context, req *PasswordComplexityPolicyUpdate) (*PasswordComplexityPolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdatePasswordComplexityPolicy not implemented") +} +func (*UnimplementedManagementServiceServer) DeletePasswordComplexityPolicy(ctx context.Context, req *PasswordComplexityPolicyID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeletePasswordComplexityPolicy not implemented") +} +func (*UnimplementedManagementServiceServer) GetPasswordAgePolicy(ctx context.Context, req *empty.Empty) (*PasswordAgePolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPasswordAgePolicy not implemented") +} +func (*UnimplementedManagementServiceServer) CreatePasswordAgePolicy(ctx context.Context, req *PasswordAgePolicyCreate) (*PasswordAgePolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordAgePolicy not implemented") +} +func (*UnimplementedManagementServiceServer) UpdatePasswordAgePolicy(ctx context.Context, req *PasswordAgePolicyUpdate) (*PasswordAgePolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdatePasswordAgePolicy not implemented") +} +func (*UnimplementedManagementServiceServer) DeletePasswordAgePolicy(ctx context.Context, req *PasswordAgePolicyID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeletePasswordAgePolicy not implemented") +} +func (*UnimplementedManagementServiceServer) GetPasswordLockoutPolicy(ctx context.Context, req *empty.Empty) (*PasswordLockoutPolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPasswordLockoutPolicy not implemented") +} +func (*UnimplementedManagementServiceServer) CreatePasswordLockoutPolicy(ctx context.Context, req *PasswordLockoutPolicyCreate) (*PasswordLockoutPolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordLockoutPolicy not implemented") +} +func (*UnimplementedManagementServiceServer) UpdatePasswordLockoutPolicy(ctx context.Context, req *PasswordLockoutPolicyUpdate) (*PasswordLockoutPolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdatePasswordLockoutPolicy not implemented") +} +func (*UnimplementedManagementServiceServer) DeletePasswordLockoutPolicy(ctx context.Context, req *PasswordLockoutPolicyID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeletePasswordLockoutPolicy not implemented") +} +func (*UnimplementedManagementServiceServer) GetMyOrg(ctx context.Context, req *empty.Empty) (*OrgView, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMyOrg not implemented") +} +func (*UnimplementedManagementServiceServer) GetOrgByDomainGlobal(ctx context.Context, req *Domain) (*OrgView, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrgByDomainGlobal not implemented") +} +func (*UnimplementedManagementServiceServer) DeactivateMyOrg(ctx context.Context, req *empty.Empty) (*Org, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeactivateMyOrg not implemented") +} +func (*UnimplementedManagementServiceServer) ReactivateMyOrg(ctx context.Context, req *empty.Empty) (*Org, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReactivateMyOrg not implemented") +} +func (*UnimplementedManagementServiceServer) SearchMyOrgDomains(ctx context.Context, req *OrgDomainSearchRequest) (*OrgDomainSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchMyOrgDomains not implemented") +} +func (*UnimplementedManagementServiceServer) AddMyOrgDomain(ctx context.Context, req *AddOrgDomainRequest) (*OrgDomain, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddMyOrgDomain not implemented") +} +func (*UnimplementedManagementServiceServer) RemoveMyOrgDomain(ctx context.Context, req *RemoveOrgDomainRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveMyOrgDomain not implemented") +} +func (*UnimplementedManagementServiceServer) GetMyOrgIamPolicy(ctx context.Context, req *empty.Empty) (*OrgIamPolicy, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMyOrgIamPolicy not implemented") +} +func (*UnimplementedManagementServiceServer) GetOrgMemberRoles(ctx context.Context, req *empty.Empty) (*OrgMemberRoles, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrgMemberRoles not implemented") +} +func (*UnimplementedManagementServiceServer) AddMyOrgMember(ctx context.Context, req *AddOrgMemberRequest) (*OrgMember, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddMyOrgMember not implemented") +} +func (*UnimplementedManagementServiceServer) ChangeMyOrgMember(ctx context.Context, req *ChangeOrgMemberRequest) (*OrgMember, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeMyOrgMember not implemented") +} +func (*UnimplementedManagementServiceServer) RemoveMyOrgMember(ctx context.Context, req *RemoveOrgMemberRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveMyOrgMember not implemented") +} +func (*UnimplementedManagementServiceServer) SearchMyOrgMembers(ctx context.Context, req *OrgMemberSearchRequest) (*OrgMemberSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchMyOrgMembers not implemented") +} +func (*UnimplementedManagementServiceServer) SearchProjects(ctx context.Context, req *ProjectSearchRequest) (*ProjectSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchProjects not implemented") +} +func (*UnimplementedManagementServiceServer) ProjectByID(ctx context.Context, req *ProjectID) (*ProjectView, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProjectByID not implemented") +} +func (*UnimplementedManagementServiceServer) CreateProject(ctx context.Context, req *ProjectCreateRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateProject not implemented") +} +func (*UnimplementedManagementServiceServer) UpdateProject(ctx context.Context, req *ProjectUpdateRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProject not implemented") +} +func (*UnimplementedManagementServiceServer) DeactivateProject(ctx context.Context, req *ProjectID) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeactivateProject not implemented") +} +func (*UnimplementedManagementServiceServer) ReactivateProject(ctx context.Context, req *ProjectID) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReactivateProject not implemented") +} +func (*UnimplementedManagementServiceServer) SearchGrantedProjects(ctx context.Context, req *GrantedProjectSearchRequest) (*ProjectGrantSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchGrantedProjects not implemented") +} +func (*UnimplementedManagementServiceServer) GetGrantedProjectByID(ctx context.Context, req *ProjectGrantID) (*ProjectGrantView, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetGrantedProjectByID not implemented") +} +func (*UnimplementedManagementServiceServer) GetProjectMemberRoles(ctx context.Context, req *empty.Empty) (*ProjectMemberRoles, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectMemberRoles not implemented") +} +func (*UnimplementedManagementServiceServer) SearchProjectMembers(ctx context.Context, req *ProjectMemberSearchRequest) (*ProjectMemberSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchProjectMembers not implemented") +} +func (*UnimplementedManagementServiceServer) AddProjectMember(ctx context.Context, req *ProjectMemberAdd) (*ProjectMember, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddProjectMember not implemented") +} +func (*UnimplementedManagementServiceServer) ChangeProjectMember(ctx context.Context, req *ProjectMemberChange) (*ProjectMember, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeProjectMember not implemented") +} +func (*UnimplementedManagementServiceServer) RemoveProjectMember(ctx context.Context, req *ProjectMemberRemove) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectMember not implemented") +} +func (*UnimplementedManagementServiceServer) SearchProjectRoles(ctx context.Context, req *ProjectRoleSearchRequest) (*ProjectRoleSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchProjectRoles not implemented") +} +func (*UnimplementedManagementServiceServer) AddProjectRole(ctx context.Context, req *ProjectRoleAdd) (*ProjectRole, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddProjectRole not implemented") +} +func (*UnimplementedManagementServiceServer) BulkAddProjectRole(ctx context.Context, req *ProjectRoleAddBulk) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method BulkAddProjectRole not implemented") +} +func (*UnimplementedManagementServiceServer) ChangeProjectRole(ctx context.Context, req *ProjectRoleChange) (*ProjectRole, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeProjectRole not implemented") +} +func (*UnimplementedManagementServiceServer) RemoveProjectRole(ctx context.Context, req *ProjectRoleRemove) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectRole not implemented") +} +func (*UnimplementedManagementServiceServer) SearchApplications(ctx context.Context, req *ApplicationSearchRequest) (*ApplicationSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchApplications not implemented") +} +func (*UnimplementedManagementServiceServer) ApplicationByID(ctx context.Context, req *ApplicationID) (*ApplicationView, error) { + return nil, status.Errorf(codes.Unimplemented, "method ApplicationByID not implemented") +} +func (*UnimplementedManagementServiceServer) CreateOIDCApplication(ctx context.Context, req *OIDCApplicationCreate) (*Application, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateOIDCApplication not implemented") +} +func (*UnimplementedManagementServiceServer) UpdateApplication(ctx context.Context, req *ApplicationUpdate) (*Application, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateApplication not implemented") +} +func (*UnimplementedManagementServiceServer) DeactivateApplication(ctx context.Context, req *ApplicationID) (*Application, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeactivateApplication not implemented") +} +func (*UnimplementedManagementServiceServer) ReactivateApplication(ctx context.Context, req *ApplicationID) (*Application, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReactivateApplication not implemented") +} +func (*UnimplementedManagementServiceServer) RemoveApplication(ctx context.Context, req *ApplicationID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveApplication not implemented") +} +func (*UnimplementedManagementServiceServer) UpdateApplicationOIDCConfig(ctx context.Context, req *OIDCConfigUpdate) (*OIDCConfig, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateApplicationOIDCConfig not implemented") +} +func (*UnimplementedManagementServiceServer) RegenerateOIDCClientSecret(ctx context.Context, req *ApplicationID) (*ClientSecret, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegenerateOIDCClientSecret not implemented") +} +func (*UnimplementedManagementServiceServer) SearchProjectGrants(ctx context.Context, req *ProjectGrantSearchRequest) (*ProjectGrantSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchProjectGrants not implemented") +} +func (*UnimplementedManagementServiceServer) ProjectGrantByID(ctx context.Context, req *ProjectGrantID) (*ProjectGrantView, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProjectGrantByID not implemented") +} +func (*UnimplementedManagementServiceServer) CreateProjectGrant(ctx context.Context, req *ProjectGrantCreate) (*ProjectGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateProjectGrant not implemented") +} +func (*UnimplementedManagementServiceServer) UpdateProjectGrant(ctx context.Context, req *ProjectGrantUpdate) (*ProjectGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectGrant not implemented") +} +func (*UnimplementedManagementServiceServer) DeactivateProjectGrant(ctx context.Context, req *ProjectGrantID) (*ProjectGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeactivateProjectGrant not implemented") +} +func (*UnimplementedManagementServiceServer) ReactivateProjectGrant(ctx context.Context, req *ProjectGrantID) (*ProjectGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReactivateProjectGrant not implemented") +} +func (*UnimplementedManagementServiceServer) RemoveProjectGrant(ctx context.Context, req *ProjectGrantID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectGrant not implemented") +} +func (*UnimplementedManagementServiceServer) GetProjectGrantMemberRoles(ctx context.Context, req *empty.Empty) (*ProjectGrantMemberRoles, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectGrantMemberRoles not implemented") +} +func (*UnimplementedManagementServiceServer) SearchProjectGrantMembers(ctx context.Context, req *ProjectGrantMemberSearchRequest) (*ProjectGrantMemberSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchProjectGrantMembers not implemented") +} +func (*UnimplementedManagementServiceServer) AddProjectGrantMember(ctx context.Context, req *ProjectGrantMemberAdd) (*ProjectGrantMember, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddProjectGrantMember not implemented") +} +func (*UnimplementedManagementServiceServer) ChangeProjectGrantMember(ctx context.Context, req *ProjectGrantMemberChange) (*ProjectGrantMember, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeProjectGrantMember not implemented") +} +func (*UnimplementedManagementServiceServer) RemoveProjectGrantMember(ctx context.Context, req *ProjectGrantMemberRemove) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectGrantMember not implemented") +} +func (*UnimplementedManagementServiceServer) SearchUserGrants(ctx context.Context, req *UserGrantSearchRequest) (*UserGrantSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchUserGrants not implemented") +} +func (*UnimplementedManagementServiceServer) UserGrantByID(ctx context.Context, req *UserGrantID) (*UserGrantView, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserGrantByID not implemented") +} +func (*UnimplementedManagementServiceServer) CreateUserGrant(ctx context.Context, req *UserGrantCreate) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) UpdateUserGrant(ctx context.Context, req *UserGrantUpdate) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) DeactivateUserGrant(ctx context.Context, req *UserGrantID) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeactivateUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) ReactivateUserGrant(ctx context.Context, req *UserGrantID) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReactivateUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) RemoveUserGrant(ctx context.Context, req *UserGrantID) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) BulkCreateUserGrant(ctx context.Context, req *UserGrantCreateBulk) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method BulkCreateUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) BulkUpdateUserGrant(ctx context.Context, req *UserGrantUpdateBulk) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method BulkUpdateUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) BulkRemoveUserGrant(ctx context.Context, req *UserGrantRemoveBulk) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method BulkRemoveUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) SearchProjectUserGrants(ctx context.Context, req *ProjectUserGrantSearchRequest) (*UserGrantSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchProjectUserGrants not implemented") +} +func (*UnimplementedManagementServiceServer) ProjectUserGrantByID(ctx context.Context, req *ProjectUserGrantID) (*UserGrantView, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProjectUserGrantByID not implemented") +} +func (*UnimplementedManagementServiceServer) CreateProjectUserGrant(ctx context.Context, req *UserGrantCreate) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateProjectUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) UpdateProjectUserGrant(ctx context.Context, req *ProjectUserGrantUpdate) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) DeactivateProjectUserGrant(ctx context.Context, req *ProjectUserGrantID) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeactivateProjectUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) ReactivateProjectUserGrant(ctx context.Context, req *ProjectUserGrantID) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReactivateProjectUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) SearchProjectGrantUserGrants(ctx context.Context, req *ProjectGrantUserGrantSearchRequest) (*UserGrantSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchProjectGrantUserGrants not implemented") +} +func (*UnimplementedManagementServiceServer) ProjectGrantUserGrantByID(ctx context.Context, req *ProjectGrantUserGrantID) (*UserGrantView, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProjectGrantUserGrantByID not implemented") +} +func (*UnimplementedManagementServiceServer) CreateProjectGrantUserGrant(ctx context.Context, req *ProjectGrantUserGrantCreate) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateProjectGrantUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) UpdateProjectGrantUserGrant(ctx context.Context, req *ProjectGrantUserGrantUpdate) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectGrantUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) DeactivateProjectGrantUserGrant(ctx context.Context, req *ProjectGrantUserGrantID) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeactivateProjectGrantUserGrant not implemented") +} +func (*UnimplementedManagementServiceServer) ReactivateProjectGrantUserGrant(ctx context.Context, req *ProjectGrantUserGrantID) (*UserGrant, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReactivateProjectGrantUserGrant not implemented") +} + +func RegisterManagementServiceServer(s *grpc.Server, srv ManagementServiceServer) { + s.RegisterService(&_ManagementService_serviceDesc, srv) +} + +func _ManagementService_Healthz_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).Healthz(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/Healthz", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).Healthz(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_Ready_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).Ready(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/Ready", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).Ready(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_Validate_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).Validate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/Validate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).Validate(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetIam_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetIam(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetIam", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetIam(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetUserByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetUserByID(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetUserByEmailGlobal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Email) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetUserByEmailGlobal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserByEmailGlobal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetUserByEmailGlobal(ctx, req.(*Email)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchUsers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchUsers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchUsers(ctx, req.(*UserSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_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.(ManagementServiceServer).IsUserUnique(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/IsUserUnique", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).IsUserUnique(ctx, req.(*UniqueUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).CreateUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).CreateUser(ctx, req.(*CreateUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeactivateUser_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.(ManagementServiceServer).DeactivateUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeactivateUser(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ReactivateUser_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.(ManagementServiceServer).ReactivateUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ReactivateUser(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_LockUser_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.(ManagementServiceServer).LockUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/LockUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).LockUser(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UnlockUser_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.(ManagementServiceServer).UnlockUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UnlockUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UnlockUser(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeleteUser_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.(ManagementServiceServer).DeleteUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeleteUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeleteUser(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UserChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UserChanges(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UserChanges", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UserChanges(ctx, req.(*ChangeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ApplicationChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ApplicationChanges(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ApplicationChanges(ctx, req.(*ChangeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_OrgChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).OrgChanges(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/OrgChanges", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).OrgChanges(ctx, req.(*ChangeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ProjectChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ProjectChanges(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectChanges", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ProjectChanges(ctx, req.(*ChangeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetUserProfile_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.(ManagementServiceServer).GetUserProfile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserProfile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetUserProfile(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdateUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserProfileRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdateUserProfile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdateUserProfile(ctx, req.(*UpdateUserProfileRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetUserEmail_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.(ManagementServiceServer).GetUserEmail(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserEmail", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetUserEmail(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ChangeUserEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserEmailRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ChangeUserEmail(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ChangeUserEmail(ctx, req.(*UpdateUserEmailRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_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.(ManagementServiceServer).ResendEmailVerificationMail(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ResendEmailVerificationMail(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetUserPhone_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.(ManagementServiceServer).GetUserPhone(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserPhone", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetUserPhone(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ChangeUserPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserPhoneRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ChangeUserPhone(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ChangeUserPhone(ctx, req.(*UpdateUserPhoneRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_RemoveUserPhone_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.(ManagementServiceServer).RemoveUserPhone(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).RemoveUserPhone(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ResendPhoneVerificationCode_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.(ManagementServiceServer).ResendPhoneVerificationCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ResendPhoneVerificationCode(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetUserAddress_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.(ManagementServiceServer).GetUserAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetUserAddress(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdateUserAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdateUserAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdateUserAddress(ctx, req.(*UpdateUserAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetUserMfas_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.(ManagementServiceServer).GetUserMfas(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserMfas", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetUserMfas(ctx, req.(*UserID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SendSetPasswordNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetPasswordNotificationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SendSetPasswordNotification(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SendSetPasswordNotification(ctx, req.(*SetPasswordNotificationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SetInitialPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PasswordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SetInitialPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SetInitialPassword(ctx, req.(*PasswordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetPasswordComplexityPolicy_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetPasswordComplexityPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetPasswordComplexityPolicy(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_CreatePasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PasswordComplexityPolicyCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).CreatePasswordComplexityPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).CreatePasswordComplexityPolicy(ctx, req.(*PasswordComplexityPolicyCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdatePasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PasswordComplexityPolicyUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdatePasswordComplexityPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdatePasswordComplexityPolicy(ctx, req.(*PasswordComplexityPolicyUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeletePasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PasswordComplexityPolicyID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).DeletePasswordComplexityPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordComplexityPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeletePasswordComplexityPolicy(ctx, req.(*PasswordComplexityPolicyID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetPasswordAgePolicy_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetPasswordAgePolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetPasswordAgePolicy(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_CreatePasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PasswordAgePolicyCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).CreatePasswordAgePolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).CreatePasswordAgePolicy(ctx, req.(*PasswordAgePolicyCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdatePasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PasswordAgePolicyUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdatePasswordAgePolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdatePasswordAgePolicy(ctx, req.(*PasswordAgePolicyUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeletePasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PasswordAgePolicyID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).DeletePasswordAgePolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordAgePolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeletePasswordAgePolicy(ctx, req.(*PasswordAgePolicyID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetPasswordLockoutPolicy_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetPasswordLockoutPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetPasswordLockoutPolicy(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_CreatePasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PasswordLockoutPolicyCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).CreatePasswordLockoutPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).CreatePasswordLockoutPolicy(ctx, req.(*PasswordLockoutPolicyCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdatePasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PasswordLockoutPolicyUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdatePasswordLockoutPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdatePasswordLockoutPolicy(ctx, req.(*PasswordLockoutPolicyUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeletePasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PasswordLockoutPolicyID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).DeletePasswordLockoutPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordLockoutPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeletePasswordLockoutPolicy(ctx, req.(*PasswordLockoutPolicyID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetMyOrg_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetMyOrg(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetMyOrg", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetMyOrg(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetOrgByDomainGlobal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Domain) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetOrgByDomainGlobal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetOrgByDomainGlobal(ctx, req.(*Domain)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeactivateMyOrg_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).DeactivateMyOrg(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeactivateMyOrg(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ReactivateMyOrg_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ReactivateMyOrg(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ReactivateMyOrg(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchMyOrgDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrgDomainSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchMyOrgDomains(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchMyOrgDomains(ctx, req.(*OrgDomainSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_AddMyOrgDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddOrgDomainRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).AddMyOrgDomain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).AddMyOrgDomain(ctx, req.(*AddOrgDomainRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_RemoveMyOrgDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveOrgDomainRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).RemoveMyOrgDomain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).RemoveMyOrgDomain(ctx, req.(*RemoveOrgDomainRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetMyOrgIamPolicy_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetMyOrgIamPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetMyOrgIamPolicy(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetOrgMemberRoles_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetOrgMemberRoles(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetOrgMemberRoles(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_AddMyOrgMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddOrgMemberRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).AddMyOrgMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).AddMyOrgMember(ctx, req.(*AddOrgMemberRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ChangeMyOrgMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeOrgMemberRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ChangeMyOrgMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ChangeMyOrgMember(ctx, req.(*ChangeOrgMemberRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_RemoveMyOrgMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveOrgMemberRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).RemoveMyOrgMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).RemoveMyOrgMember(ctx, req.(*RemoveOrgMemberRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchMyOrgMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrgMemberSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchMyOrgMembers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchMyOrgMembers(ctx, req.(*OrgMemberSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchProjects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjects", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchProjects(ctx, req.(*ProjectSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ProjectByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ProjectByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ProjectByID(ctx, req.(*ProjectID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_CreateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).CreateProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).CreateProject(ctx, req.(*ProjectCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdateProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdateProject(ctx, req.(*ProjectUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeactivateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).DeactivateProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeactivateProject(ctx, req.(*ProjectID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ReactivateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ReactivateProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ReactivateProject(ctx, req.(*ProjectID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchGrantedProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GrantedProjectSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchGrantedProjects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchGrantedProjects(ctx, req.(*GrantedProjectSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetGrantedProjectByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetGrantedProjectByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetGrantedProjectByID(ctx, req.(*ProjectGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetProjectMemberRoles_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetProjectMemberRoles(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetProjectMemberRoles(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchProjectMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectMemberSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchProjectMembers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchProjectMembers(ctx, req.(*ProjectMemberSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_AddProjectMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectMemberAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).AddProjectMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddProjectMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).AddProjectMember(ctx, req.(*ProjectMemberAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ChangeProjectMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectMemberChange) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ChangeProjectMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ChangeProjectMember(ctx, req.(*ProjectMemberChange)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_RemoveProjectMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectMemberRemove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).RemoveProjectMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).RemoveProjectMember(ctx, req.(*ProjectMemberRemove)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchProjectRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectRoleSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchProjectRoles(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchProjectRoles(ctx, req.(*ProjectRoleSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_AddProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectRoleAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).AddProjectRole(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddProjectRole", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).AddProjectRole(ctx, req.(*ProjectRoleAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_BulkAddProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectRoleAddBulk) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).BulkAddProjectRole(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).BulkAddProjectRole(ctx, req.(*ProjectRoleAddBulk)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ChangeProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectRoleChange) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ChangeProjectRole(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ChangeProjectRole(ctx, req.(*ProjectRoleChange)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_RemoveProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectRoleRemove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).RemoveProjectRole(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).RemoveProjectRole(ctx, req.(*ProjectRoleRemove)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_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.(ManagementServiceServer).SearchApplications(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchApplications", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchApplications(ctx, req.(*ApplicationSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ApplicationByID_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.(ManagementServiceServer).ApplicationByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ApplicationByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ApplicationByID(ctx, req.(*ApplicationID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_CreateOIDCApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OIDCApplicationCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).CreateOIDCApplication(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).CreateOIDCApplication(ctx, req.(*OIDCApplicationCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdateApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ApplicationUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdateApplication(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateApplication", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdateApplication(ctx, req.(*ApplicationUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeactivateApplication_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.(ManagementServiceServer).DeactivateApplication(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeactivateApplication(ctx, req.(*ApplicationID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ReactivateApplication_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.(ManagementServiceServer).ReactivateApplication(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ReactivateApplication(ctx, req.(*ApplicationID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_RemoveApplication_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.(ManagementServiceServer).RemoveApplication(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveApplication", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).RemoveApplication(ctx, req.(*ApplicationID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdateApplicationOIDCConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OIDCConfigUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdateApplicationOIDCConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdateApplicationOIDCConfig(ctx, req.(*OIDCConfigUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_RegenerateOIDCClientSecret_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.(ManagementServiceServer).RegenerateOIDCClientSecret(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).RegenerateOIDCClientSecret(ctx, req.(*ApplicationID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchProjectGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchProjectGrants(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchProjectGrants(ctx, req.(*ProjectGrantSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ProjectGrantByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ProjectGrantByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ProjectGrantByID(ctx, req.(*ProjectGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_CreateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).CreateProjectGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).CreateProjectGrant(ctx, req.(*ProjectGrantCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdateProjectGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdateProjectGrant(ctx, req.(*ProjectGrantUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeactivateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).DeactivateProjectGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeactivateProjectGrant(ctx, req.(*ProjectGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ReactivateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ReactivateProjectGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ReactivateProjectGrant(ctx, req.(*ProjectGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_RemoveProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).RemoveProjectGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).RemoveProjectGrant(ctx, req.(*ProjectGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_GetProjectGrantMemberRoles_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 { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).GetProjectGrantMemberRoles(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).GetProjectGrantMemberRoles(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchProjectGrantMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantMemberSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchProjectGrantMembers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchProjectGrantMembers(ctx, req.(*ProjectGrantMemberSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_AddProjectGrantMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantMemberAdd) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).AddProjectGrantMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).AddProjectGrantMember(ctx, req.(*ProjectGrantMemberAdd)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ChangeProjectGrantMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantMemberChange) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ChangeProjectGrantMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ChangeProjectGrantMember(ctx, req.(*ProjectGrantMemberChange)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_RemoveProjectGrantMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantMemberRemove) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).RemoveProjectGrantMember(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).RemoveProjectGrantMember(ctx, req.(*ProjectGrantMemberRemove)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchUserGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchUserGrants(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchUserGrants(ctx, req.(*UserGrantSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UserGrantByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UserGrantByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UserGrantByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UserGrantByID(ctx, req.(*UserGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_CreateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).CreateUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).CreateUserGrant(ctx, req.(*UserGrantCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdateUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdateUserGrant(ctx, req.(*UserGrantUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeactivateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).DeactivateUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeactivateUserGrant(ctx, req.(*UserGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ReactivateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ReactivateUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ReactivateUserGrant(ctx, req.(*UserGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_RemoveUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).RemoveUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).RemoveUserGrant(ctx, req.(*UserGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_BulkCreateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantCreateBulk) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).BulkCreateUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/BulkCreateUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).BulkCreateUserGrant(ctx, req.(*UserGrantCreateBulk)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_BulkUpdateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantUpdateBulk) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).BulkUpdateUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/BulkUpdateUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).BulkUpdateUserGrant(ctx, req.(*UserGrantUpdateBulk)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_BulkRemoveUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantRemoveBulk) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).BulkRemoveUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).BulkRemoveUserGrant(ctx, req.(*UserGrantRemoveBulk)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchProjectUserGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectUserGrantSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchProjectUserGrants(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectUserGrants", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchProjectUserGrants(ctx, req.(*ProjectUserGrantSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ProjectUserGrantByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectUserGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ProjectUserGrantByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectUserGrantByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ProjectUserGrantByID(ctx, req.(*ProjectUserGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_CreateProjectUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserGrantCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).CreateProjectUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateProjectUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).CreateProjectUserGrant(ctx, req.(*UserGrantCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdateProjectUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectUserGrantUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdateProjectUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdateProjectUserGrant(ctx, req.(*ProjectUserGrantUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeactivateProjectUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectUserGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).DeactivateProjectUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeactivateProjectUserGrant(ctx, req.(*ProjectUserGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ReactivateProjectUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectUserGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ReactivateProjectUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ReactivateProjectUserGrant(ctx, req.(*ProjectUserGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_SearchProjectGrantUserGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantUserGrantSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).SearchProjectGrantUserGrants(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantUserGrants", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).SearchProjectGrantUserGrants(ctx, req.(*ProjectGrantUserGrantSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ProjectGrantUserGrantByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantUserGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ProjectGrantUserGrantByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantUserGrantByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ProjectGrantUserGrantByID(ctx, req.(*ProjectGrantUserGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_CreateProjectGrantUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantUserGrantCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).CreateProjectGrantUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrantUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).CreateProjectGrantUserGrant(ctx, req.(*ProjectGrantUserGrantCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_UpdateProjectGrantUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantUserGrantUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).UpdateProjectGrantUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrantUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).UpdateProjectGrantUserGrant(ctx, req.(*ProjectGrantUserGrantUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_DeactivateProjectGrantUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantUserGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).DeactivateProjectGrantUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrantUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DeactivateProjectGrantUserGrant(ctx, req.(*ProjectGrantUserGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +func _ManagementService_ReactivateProjectGrantUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProjectGrantUserGrantID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).ReactivateProjectGrantUserGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrantUserGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).ReactivateProjectGrantUserGrant(ctx, req.(*ProjectGrantUserGrantID)) + } + return interceptor(ctx, in, info, handler) +} + +var _ManagementService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "caos.zitadel.management.api.v1.ManagementService", + HandlerType: (*ManagementServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Healthz", + Handler: _ManagementService_Healthz_Handler, + }, + { + MethodName: "Ready", + Handler: _ManagementService_Ready_Handler, + }, + { + MethodName: "Validate", + Handler: _ManagementService_Validate_Handler, + }, + { + MethodName: "GetIam", + Handler: _ManagementService_GetIam_Handler, + }, + { + MethodName: "GetUserByID", + Handler: _ManagementService_GetUserByID_Handler, + }, + { + MethodName: "GetUserByEmailGlobal", + Handler: _ManagementService_GetUserByEmailGlobal_Handler, + }, + { + MethodName: "SearchUsers", + Handler: _ManagementService_SearchUsers_Handler, + }, + { + MethodName: "IsUserUnique", + Handler: _ManagementService_IsUserUnique_Handler, + }, + { + MethodName: "CreateUser", + Handler: _ManagementService_CreateUser_Handler, + }, + { + MethodName: "DeactivateUser", + Handler: _ManagementService_DeactivateUser_Handler, + }, + { + MethodName: "ReactivateUser", + Handler: _ManagementService_ReactivateUser_Handler, + }, + { + MethodName: "LockUser", + Handler: _ManagementService_LockUser_Handler, + }, + { + MethodName: "UnlockUser", + Handler: _ManagementService_UnlockUser_Handler, + }, + { + MethodName: "DeleteUser", + Handler: _ManagementService_DeleteUser_Handler, + }, + { + MethodName: "UserChanges", + Handler: _ManagementService_UserChanges_Handler, + }, + { + MethodName: "ApplicationChanges", + Handler: _ManagementService_ApplicationChanges_Handler, + }, + { + MethodName: "OrgChanges", + Handler: _ManagementService_OrgChanges_Handler, + }, + { + MethodName: "ProjectChanges", + Handler: _ManagementService_ProjectChanges_Handler, + }, + { + MethodName: "GetUserProfile", + Handler: _ManagementService_GetUserProfile_Handler, + }, + { + MethodName: "UpdateUserProfile", + Handler: _ManagementService_UpdateUserProfile_Handler, + }, + { + MethodName: "GetUserEmail", + Handler: _ManagementService_GetUserEmail_Handler, + }, + { + MethodName: "ChangeUserEmail", + Handler: _ManagementService_ChangeUserEmail_Handler, + }, + { + MethodName: "ResendEmailVerificationMail", + Handler: _ManagementService_ResendEmailVerificationMail_Handler, + }, + { + MethodName: "GetUserPhone", + Handler: _ManagementService_GetUserPhone_Handler, + }, + { + MethodName: "ChangeUserPhone", + Handler: _ManagementService_ChangeUserPhone_Handler, + }, + { + MethodName: "RemoveUserPhone", + Handler: _ManagementService_RemoveUserPhone_Handler, + }, + { + MethodName: "ResendPhoneVerificationCode", + Handler: _ManagementService_ResendPhoneVerificationCode_Handler, + }, + { + MethodName: "GetUserAddress", + Handler: _ManagementService_GetUserAddress_Handler, + }, + { + MethodName: "UpdateUserAddress", + Handler: _ManagementService_UpdateUserAddress_Handler, + }, + { + MethodName: "GetUserMfas", + Handler: _ManagementService_GetUserMfas_Handler, + }, + { + MethodName: "SendSetPasswordNotification", + Handler: _ManagementService_SendSetPasswordNotification_Handler, + }, + { + MethodName: "SetInitialPassword", + Handler: _ManagementService_SetInitialPassword_Handler, + }, + { + MethodName: "GetPasswordComplexityPolicy", + Handler: _ManagementService_GetPasswordComplexityPolicy_Handler, + }, + { + MethodName: "CreatePasswordComplexityPolicy", + Handler: _ManagementService_CreatePasswordComplexityPolicy_Handler, + }, + { + MethodName: "UpdatePasswordComplexityPolicy", + Handler: _ManagementService_UpdatePasswordComplexityPolicy_Handler, + }, + { + MethodName: "DeletePasswordComplexityPolicy", + Handler: _ManagementService_DeletePasswordComplexityPolicy_Handler, + }, + { + MethodName: "GetPasswordAgePolicy", + Handler: _ManagementService_GetPasswordAgePolicy_Handler, + }, + { + MethodName: "CreatePasswordAgePolicy", + Handler: _ManagementService_CreatePasswordAgePolicy_Handler, + }, + { + MethodName: "UpdatePasswordAgePolicy", + Handler: _ManagementService_UpdatePasswordAgePolicy_Handler, + }, + { + MethodName: "DeletePasswordAgePolicy", + Handler: _ManagementService_DeletePasswordAgePolicy_Handler, + }, + { + MethodName: "GetPasswordLockoutPolicy", + Handler: _ManagementService_GetPasswordLockoutPolicy_Handler, + }, + { + MethodName: "CreatePasswordLockoutPolicy", + Handler: _ManagementService_CreatePasswordLockoutPolicy_Handler, + }, + { + MethodName: "UpdatePasswordLockoutPolicy", + Handler: _ManagementService_UpdatePasswordLockoutPolicy_Handler, + }, + { + MethodName: "DeletePasswordLockoutPolicy", + Handler: _ManagementService_DeletePasswordLockoutPolicy_Handler, + }, + { + MethodName: "GetMyOrg", + Handler: _ManagementService_GetMyOrg_Handler, + }, + { + MethodName: "GetOrgByDomainGlobal", + Handler: _ManagementService_GetOrgByDomainGlobal_Handler, + }, + { + MethodName: "DeactivateMyOrg", + Handler: _ManagementService_DeactivateMyOrg_Handler, + }, + { + MethodName: "ReactivateMyOrg", + Handler: _ManagementService_ReactivateMyOrg_Handler, + }, + { + MethodName: "SearchMyOrgDomains", + Handler: _ManagementService_SearchMyOrgDomains_Handler, + }, + { + MethodName: "AddMyOrgDomain", + Handler: _ManagementService_AddMyOrgDomain_Handler, + }, + { + MethodName: "RemoveMyOrgDomain", + Handler: _ManagementService_RemoveMyOrgDomain_Handler, + }, + { + MethodName: "GetMyOrgIamPolicy", + Handler: _ManagementService_GetMyOrgIamPolicy_Handler, + }, + { + MethodName: "GetOrgMemberRoles", + Handler: _ManagementService_GetOrgMemberRoles_Handler, + }, + { + MethodName: "AddMyOrgMember", + Handler: _ManagementService_AddMyOrgMember_Handler, + }, + { + MethodName: "ChangeMyOrgMember", + Handler: _ManagementService_ChangeMyOrgMember_Handler, + }, + { + MethodName: "RemoveMyOrgMember", + Handler: _ManagementService_RemoveMyOrgMember_Handler, + }, + { + MethodName: "SearchMyOrgMembers", + Handler: _ManagementService_SearchMyOrgMembers_Handler, + }, + { + MethodName: "SearchProjects", + Handler: _ManagementService_SearchProjects_Handler, + }, + { + MethodName: "ProjectByID", + Handler: _ManagementService_ProjectByID_Handler, + }, + { + MethodName: "CreateProject", + Handler: _ManagementService_CreateProject_Handler, + }, + { + MethodName: "UpdateProject", + Handler: _ManagementService_UpdateProject_Handler, + }, + { + MethodName: "DeactivateProject", + Handler: _ManagementService_DeactivateProject_Handler, + }, + { + MethodName: "ReactivateProject", + Handler: _ManagementService_ReactivateProject_Handler, + }, + { + MethodName: "SearchGrantedProjects", + Handler: _ManagementService_SearchGrantedProjects_Handler, + }, + { + MethodName: "GetGrantedProjectByID", + Handler: _ManagementService_GetGrantedProjectByID_Handler, + }, + { + MethodName: "GetProjectMemberRoles", + Handler: _ManagementService_GetProjectMemberRoles_Handler, + }, + { + MethodName: "SearchProjectMembers", + Handler: _ManagementService_SearchProjectMembers_Handler, + }, + { + MethodName: "AddProjectMember", + Handler: _ManagementService_AddProjectMember_Handler, + }, + { + MethodName: "ChangeProjectMember", + Handler: _ManagementService_ChangeProjectMember_Handler, + }, + { + MethodName: "RemoveProjectMember", + Handler: _ManagementService_RemoveProjectMember_Handler, + }, + { + MethodName: "SearchProjectRoles", + Handler: _ManagementService_SearchProjectRoles_Handler, + }, + { + MethodName: "AddProjectRole", + Handler: _ManagementService_AddProjectRole_Handler, + }, + { + MethodName: "BulkAddProjectRole", + Handler: _ManagementService_BulkAddProjectRole_Handler, + }, + { + MethodName: "ChangeProjectRole", + Handler: _ManagementService_ChangeProjectRole_Handler, + }, + { + MethodName: "RemoveProjectRole", + Handler: _ManagementService_RemoveProjectRole_Handler, + }, + { + MethodName: "SearchApplications", + Handler: _ManagementService_SearchApplications_Handler, + }, + { + MethodName: "ApplicationByID", + Handler: _ManagementService_ApplicationByID_Handler, + }, + { + MethodName: "CreateOIDCApplication", + Handler: _ManagementService_CreateOIDCApplication_Handler, + }, + { + MethodName: "UpdateApplication", + Handler: _ManagementService_UpdateApplication_Handler, + }, + { + MethodName: "DeactivateApplication", + Handler: _ManagementService_DeactivateApplication_Handler, + }, + { + MethodName: "ReactivateApplication", + Handler: _ManagementService_ReactivateApplication_Handler, + }, + { + MethodName: "RemoveApplication", + Handler: _ManagementService_RemoveApplication_Handler, + }, + { + MethodName: "UpdateApplicationOIDCConfig", + Handler: _ManagementService_UpdateApplicationOIDCConfig_Handler, + }, + { + MethodName: "RegenerateOIDCClientSecret", + Handler: _ManagementService_RegenerateOIDCClientSecret_Handler, + }, + { + MethodName: "SearchProjectGrants", + Handler: _ManagementService_SearchProjectGrants_Handler, + }, + { + MethodName: "ProjectGrantByID", + Handler: _ManagementService_ProjectGrantByID_Handler, + }, + { + MethodName: "CreateProjectGrant", + Handler: _ManagementService_CreateProjectGrant_Handler, + }, + { + MethodName: "UpdateProjectGrant", + Handler: _ManagementService_UpdateProjectGrant_Handler, + }, + { + MethodName: "DeactivateProjectGrant", + Handler: _ManagementService_DeactivateProjectGrant_Handler, + }, + { + MethodName: "ReactivateProjectGrant", + Handler: _ManagementService_ReactivateProjectGrant_Handler, + }, + { + MethodName: "RemoveProjectGrant", + Handler: _ManagementService_RemoveProjectGrant_Handler, + }, + { + MethodName: "GetProjectGrantMemberRoles", + Handler: _ManagementService_GetProjectGrantMemberRoles_Handler, + }, + { + MethodName: "SearchProjectGrantMembers", + Handler: _ManagementService_SearchProjectGrantMembers_Handler, + }, + { + MethodName: "AddProjectGrantMember", + Handler: _ManagementService_AddProjectGrantMember_Handler, + }, + { + MethodName: "ChangeProjectGrantMember", + Handler: _ManagementService_ChangeProjectGrantMember_Handler, + }, + { + MethodName: "RemoveProjectGrantMember", + Handler: _ManagementService_RemoveProjectGrantMember_Handler, + }, + { + MethodName: "SearchUserGrants", + Handler: _ManagementService_SearchUserGrants_Handler, + }, + { + MethodName: "UserGrantByID", + Handler: _ManagementService_UserGrantByID_Handler, + }, + { + MethodName: "CreateUserGrant", + Handler: _ManagementService_CreateUserGrant_Handler, + }, + { + MethodName: "UpdateUserGrant", + Handler: _ManagementService_UpdateUserGrant_Handler, + }, + { + MethodName: "DeactivateUserGrant", + Handler: _ManagementService_DeactivateUserGrant_Handler, + }, + { + MethodName: "ReactivateUserGrant", + Handler: _ManagementService_ReactivateUserGrant_Handler, + }, + { + MethodName: "RemoveUserGrant", + Handler: _ManagementService_RemoveUserGrant_Handler, + }, + { + MethodName: "BulkCreateUserGrant", + Handler: _ManagementService_BulkCreateUserGrant_Handler, + }, + { + MethodName: "BulkUpdateUserGrant", + Handler: _ManagementService_BulkUpdateUserGrant_Handler, + }, + { + MethodName: "BulkRemoveUserGrant", + Handler: _ManagementService_BulkRemoveUserGrant_Handler, + }, + { + MethodName: "SearchProjectUserGrants", + Handler: _ManagementService_SearchProjectUserGrants_Handler, + }, + { + MethodName: "ProjectUserGrantByID", + Handler: _ManagementService_ProjectUserGrantByID_Handler, + }, + { + MethodName: "CreateProjectUserGrant", + Handler: _ManagementService_CreateProjectUserGrant_Handler, + }, + { + MethodName: "UpdateProjectUserGrant", + Handler: _ManagementService_UpdateProjectUserGrant_Handler, + }, + { + MethodName: "DeactivateProjectUserGrant", + Handler: _ManagementService_DeactivateProjectUserGrant_Handler, + }, + { + MethodName: "ReactivateProjectUserGrant", + Handler: _ManagementService_ReactivateProjectUserGrant_Handler, + }, + { + MethodName: "SearchProjectGrantUserGrants", + Handler: _ManagementService_SearchProjectGrantUserGrants_Handler, + }, + { + MethodName: "ProjectGrantUserGrantByID", + Handler: _ManagementService_ProjectGrantUserGrantByID_Handler, + }, + { + MethodName: "CreateProjectGrantUserGrant", + Handler: _ManagementService_CreateProjectGrantUserGrant_Handler, + }, + { + MethodName: "UpdateProjectGrantUserGrant", + Handler: _ManagementService_UpdateProjectGrantUserGrant_Handler, + }, + { + MethodName: "DeactivateProjectGrantUserGrant", + Handler: _ManagementService_DeactivateProjectGrantUserGrant_Handler, + }, + { + MethodName: "ReactivateProjectGrantUserGrant", + Handler: _ManagementService_ReactivateProjectGrantUserGrant_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "management.proto", +} diff --git a/pkg/management/api/grpc/management.pb.gw.go b/pkg/grpc/management/management.pb.gw.go similarity index 53% rename from pkg/management/api/grpc/management.pb.gw.go rename to pkg/grpc/management/management.pb.gw.go index 278532aabb..b81202a4f8 100644 --- a/pkg/management/api/grpc/management.pb.gw.go +++ b/pkg/grpc/management/management.pb.gw.go @@ -2,11 +2,11 @@ // source: management.proto /* -Package grpc is a reverse proxy. +Package management is a reverse proxy. It translates gRPC into RESTful JSON APIs. */ -package grpc +package management import ( "context" @@ -38,6 +38,15 @@ func request_ManagementService_Healthz_0(ctx context.Context, marshaler runtime. } +func local_request_ManagementService_Healthz_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.Healthz(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -47,6 +56,15 @@ func request_ManagementService_Ready_0(ctx context.Context, marshaler runtime.Ma } +func local_request_ManagementService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.Ready(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -56,6 +74,15 @@ func request_ManagementService_Validate_0(ctx context.Context, marshaler runtime } +func local_request_ManagementService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.Validate(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetIam_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -65,6 +92,15 @@ func request_ManagementService_GetIam_0(ctx context.Context, marshaler runtime.M } +func local_request_ManagementService_GetIam_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetIam(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetUserByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -92,6 +128,33 @@ func request_ManagementService_GetUserByID_0(ctx context.Context, marshaler runt } +func local_request_ManagementService_GetUserByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.GetUserByID(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_ManagementService_GetUserByEmailGlobal_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -100,7 +163,10 @@ func request_ManagementService_GetUserByEmailGlobal_0(ctx context.Context, marsh var protoReq Email var metadata runtime.ServerMetadata - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_GetUserByEmailGlobal_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_GetUserByEmailGlobal_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -109,6 +175,19 @@ func request_ManagementService_GetUserByEmailGlobal_0(ctx context.Context, marsh } +func local_request_ManagementService_GetUserByEmailGlobal_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq Email + var metadata runtime.ServerMetadata + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_GetUserByEmailGlobal_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetUserByEmailGlobal(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchUsers_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserSearchRequest var metadata runtime.ServerMetadata @@ -126,6 +205,23 @@ func request_ManagementService_SearchUsers_0(ctx context.Context, marshaler runt } +func local_request_ManagementService_SearchUsers_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserSearchRequest + 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 := server.SearchUsers(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_ManagementService_IsUserUnique_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -134,7 +230,10 @@ func request_ManagementService_IsUserUnique_0(ctx context.Context, marshaler run var protoReq UniqueUserRequest var metadata runtime.ServerMetadata - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_IsUserUnique_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_IsUserUnique_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -143,6 +242,19 @@ func request_ManagementService_IsUserUnique_0(ctx context.Context, marshaler run } +func local_request_ManagementService_IsUserUnique_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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_ManagementService_IsUserUnique_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.IsUserUnique(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_CreateUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateUserRequest var metadata runtime.ServerMetadata @@ -160,6 +272,23 @@ func request_ManagementService_CreateUser_0(ctx context.Context, marshaler runti } +func local_request_ManagementService_CreateUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateUserRequest + 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 := server.CreateUser(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_DeactivateUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -195,6 +324,41 @@ func request_ManagementService_DeactivateUser_0(ctx context.Context, marshaler r } +func local_request_ManagementService_DeactivateUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.DeactivateUser(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ReactivateUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -230,6 +394,41 @@ func request_ManagementService_ReactivateUser_0(ctx context.Context, marshaler r } +func local_request_ManagementService_ReactivateUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.ReactivateUser(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_LockUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -265,6 +464,41 @@ func request_ManagementService_LockUser_0(ctx context.Context, marshaler runtime } +func local_request_ManagementService_LockUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.LockUser(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UnlockUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -300,6 +534,41 @@ func request_ManagementService_UnlockUser_0(ctx context.Context, marshaler runti } +func local_request_ManagementService_UnlockUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.UnlockUser(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_DeleteUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -327,6 +596,33 @@ func request_ManagementService_DeleteUser_0(ctx context.Context, marshaler runti } +func local_request_ManagementService_DeleteUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.DeleteUser(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_ManagementService_UserChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -353,7 +649,10 @@ func request_ManagementService_UserChanges_0(ctx context.Context, marshaler runt return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_UserChanges_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_UserChanges_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -362,6 +661,37 @@ func request_ManagementService_UserChanges_0(ctx context.Context, marshaler runt } +func local_request_ManagementService_UserChanges_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeRequest + 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) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_UserChanges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UserChanges(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_ManagementService_ApplicationChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "sec_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) @@ -399,7 +729,10 @@ func request_ManagementService_ApplicationChanges_0(ctx context.Context, marshal return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sec_id", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_ApplicationChanges_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_ApplicationChanges_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -408,6 +741,48 @@ func request_ManagementService_ApplicationChanges_0(ctx context.Context, marshal } +func local_request_ManagementService_ApplicationChanges_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeRequest + 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) + } + + val, ok = pathParams["sec_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sec_id") + } + + protoReq.SecId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sec_id", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_ApplicationChanges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ApplicationChanges(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_ManagementService_OrgChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -434,7 +809,10 @@ func request_ManagementService_OrgChanges_0(ctx context.Context, marshaler runti return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_OrgChanges_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_OrgChanges_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -443,6 +821,37 @@ func request_ManagementService_OrgChanges_0(ctx context.Context, marshaler runti } +func local_request_ManagementService_OrgChanges_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeRequest + 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) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_OrgChanges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.OrgChanges(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_ManagementService_ProjectChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -469,7 +878,10 @@ func request_ManagementService_ProjectChanges_0(ctx context.Context, marshaler r return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_ProjectChanges_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_ProjectChanges_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -478,6 +890,37 @@ func request_ManagementService_ProjectChanges_0(ctx context.Context, marshaler r } +func local_request_ManagementService_ProjectChanges_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeRequest + 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) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_ProjectChanges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ProjectChanges(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -505,6 +948,33 @@ func request_ManagementService_GetUserProfile_0(ctx context.Context, marshaler r } +func local_request_ManagementService_GetUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.GetUserProfile(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdateUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UpdateUserProfileRequest var metadata runtime.ServerMetadata @@ -540,6 +1010,41 @@ func request_ManagementService_UpdateUserProfile_0(ctx context.Context, marshale } +func local_request_ManagementService_UpdateUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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) + } + + 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 := server.UpdateUserProfile(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -567,6 +1072,33 @@ func request_ManagementService_GetUserEmail_0(ctx context.Context, marshaler run } +func local_request_ManagementService_GetUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.GetUserEmail(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ChangeUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UpdateUserEmailRequest var metadata runtime.ServerMetadata @@ -602,6 +1134,41 @@ func request_ManagementService_ChangeUserEmail_0(ctx context.Context, marshaler } +func local_request_ManagementService_ChangeUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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) + } + + 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 := server.ChangeUserEmail(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ResendEmailVerificationMail_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -637,6 +1204,41 @@ func request_ManagementService_ResendEmailVerificationMail_0(ctx context.Context } +func local_request_ManagementService_ResendEmailVerificationMail_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.ResendEmailVerificationMail(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -664,6 +1266,33 @@ func request_ManagementService_GetUserPhone_0(ctx context.Context, marshaler run } +func local_request_ManagementService_GetUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.GetUserPhone(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ChangeUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UpdateUserPhoneRequest var metadata runtime.ServerMetadata @@ -699,6 +1328,41 @@ func request_ManagementService_ChangeUserPhone_0(ctx context.Context, marshaler } +func local_request_ManagementService_ChangeUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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) + } + + 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 := server.ChangeUserPhone(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_RemoveUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -726,6 +1390,33 @@ func request_ManagementService_RemoveUserPhone_0(ctx context.Context, marshaler } +func local_request_ManagementService_RemoveUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.RemoveUserPhone(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ResendPhoneVerificationCode_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -761,6 +1452,41 @@ func request_ManagementService_ResendPhoneVerificationCode_0(ctx context.Context } +func local_request_ManagementService_ResendPhoneVerificationCode_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.ResendPhoneVerificationCode(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -788,6 +1514,33 @@ func request_ManagementService_GetUserAddress_0(ctx context.Context, marshaler r } +func local_request_ManagementService_GetUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.GetUserAddress(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdateUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UpdateUserAddressRequest var metadata runtime.ServerMetadata @@ -823,6 +1576,41 @@ func request_ManagementService_UpdateUserAddress_0(ctx context.Context, marshale } +func local_request_ManagementService_UpdateUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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) + } + + 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 := server.UpdateUserAddress(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetUserMfas_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserID var metadata runtime.ServerMetadata @@ -850,6 +1638,33 @@ func request_ManagementService_GetUserMfas_0(ctx context.Context, marshaler runt } +func local_request_ManagementService_GetUserMfas_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.GetUserMfas(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SendSetPasswordNotification_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq SetPasswordNotificationRequest var metadata runtime.ServerMetadata @@ -885,6 +1700,41 @@ func request_ManagementService_SendSetPasswordNotification_0(ctx context.Context } +func local_request_ManagementService_SendSetPasswordNotification_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SetPasswordNotificationRequest + 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 := server.SendSetPasswordNotification(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SetInitialPassword_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq PasswordRequest var metadata runtime.ServerMetadata @@ -920,6 +1770,41 @@ func request_ManagementService_SetInitialPassword_0(ctx context.Context, marshal } +func local_request_ManagementService_SetInitialPassword_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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) + } + + 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 := server.SetInitialPassword(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -929,6 +1814,15 @@ func request_ManagementService_GetPasswordComplexityPolicy_0(ctx context.Context } +func local_request_ManagementService_GetPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetPasswordComplexityPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_CreatePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq PasswordComplexityPolicyCreate var metadata runtime.ServerMetadata @@ -946,6 +1840,23 @@ func request_ManagementService_CreatePasswordComplexityPolicy_0(ctx context.Cont } +func local_request_ManagementService_CreatePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PasswordComplexityPolicyCreate + 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 := server.CreatePasswordComplexityPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdatePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq PasswordComplexityPolicyUpdate var metadata runtime.ServerMetadata @@ -963,6 +1874,23 @@ func request_ManagementService_UpdatePasswordComplexityPolicy_0(ctx context.Cont } +func local_request_ManagementService_UpdatePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PasswordComplexityPolicyUpdate + 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 := server.UpdatePasswordComplexityPolicy(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_ManagementService_DeletePasswordComplexityPolicy_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -971,7 +1899,10 @@ func request_ManagementService_DeletePasswordComplexityPolicy_0(ctx context.Cont var protoReq PasswordComplexityPolicyID var metadata runtime.ServerMetadata - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_DeletePasswordComplexityPolicy_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_DeletePasswordComplexityPolicy_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -980,6 +1911,19 @@ func request_ManagementService_DeletePasswordComplexityPolicy_0(ctx context.Cont } +func local_request_ManagementService_DeletePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PasswordComplexityPolicyID + var metadata runtime.ServerMetadata + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_DeletePasswordComplexityPolicy_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DeletePasswordComplexityPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetPasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -989,6 +1933,15 @@ func request_ManagementService_GetPasswordAgePolicy_0(ctx context.Context, marsh } +func local_request_ManagementService_GetPasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetPasswordAgePolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_CreatePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq PasswordAgePolicyCreate var metadata runtime.ServerMetadata @@ -1006,6 +1959,23 @@ func request_ManagementService_CreatePasswordAgePolicy_0(ctx context.Context, ma } +func local_request_ManagementService_CreatePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PasswordAgePolicyCreate + 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 := server.CreatePasswordAgePolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdatePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq PasswordAgePolicyUpdate var metadata runtime.ServerMetadata @@ -1023,6 +1993,23 @@ func request_ManagementService_UpdatePasswordAgePolicy_0(ctx context.Context, ma } +func local_request_ManagementService_UpdatePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PasswordAgePolicyUpdate + 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 := server.UpdatePasswordAgePolicy(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_ManagementService_DeletePasswordAgePolicy_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -1031,7 +2018,10 @@ func request_ManagementService_DeletePasswordAgePolicy_0(ctx context.Context, ma var protoReq PasswordAgePolicyID var metadata runtime.ServerMetadata - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_DeletePasswordAgePolicy_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_DeletePasswordAgePolicy_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1040,6 +2030,19 @@ func request_ManagementService_DeletePasswordAgePolicy_0(ctx context.Context, ma } +func local_request_ManagementService_DeletePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PasswordAgePolicyID + var metadata runtime.ServerMetadata + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_DeletePasswordAgePolicy_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DeletePasswordAgePolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetPasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -1049,6 +2052,15 @@ func request_ManagementService_GetPasswordLockoutPolicy_0(ctx context.Context, m } +func local_request_ManagementService_GetPasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetPasswordLockoutPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_CreatePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq PasswordLockoutPolicyCreate var metadata runtime.ServerMetadata @@ -1066,6 +2078,23 @@ func request_ManagementService_CreatePasswordLockoutPolicy_0(ctx context.Context } +func local_request_ManagementService_CreatePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PasswordLockoutPolicyCreate + 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 := server.CreatePasswordLockoutPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdatePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq PasswordLockoutPolicyUpdate var metadata runtime.ServerMetadata @@ -1083,6 +2112,23 @@ func request_ManagementService_UpdatePasswordLockoutPolicy_0(ctx context.Context } +func local_request_ManagementService_UpdatePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PasswordLockoutPolicyUpdate + 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 := server.UpdatePasswordLockoutPolicy(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_ManagementService_DeletePasswordLockoutPolicy_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -1091,7 +2137,10 @@ func request_ManagementService_DeletePasswordLockoutPolicy_0(ctx context.Context var protoReq PasswordLockoutPolicyID var metadata runtime.ServerMetadata - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_DeletePasswordLockoutPolicy_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_DeletePasswordLockoutPolicy_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1100,6 +2149,19 @@ func request_ManagementService_DeletePasswordLockoutPolicy_0(ctx context.Context } +func local_request_ManagementService_DeletePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PasswordLockoutPolicyID + var metadata runtime.ServerMetadata + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_DeletePasswordLockoutPolicy_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DeletePasswordLockoutPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -1109,6 +2171,15 @@ func request_ManagementService_GetMyOrg_0(ctx context.Context, marshaler runtime } +func local_request_ManagementService_GetMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetMyOrg(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_ManagementService_GetOrgByDomainGlobal_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -1117,7 +2188,10 @@ func request_ManagementService_GetOrgByDomainGlobal_0(ctx context.Context, marsh var protoReq Domain var metadata runtime.ServerMetadata - if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_GetOrgByDomainGlobal_0); err != nil { + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_GetOrgByDomainGlobal_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1126,6 +2200,19 @@ func request_ManagementService_GetOrgByDomainGlobal_0(ctx context.Context, marsh } +func local_request_ManagementService_GetOrgByDomainGlobal_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq Domain + var metadata runtime.ServerMetadata + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ManagementService_GetOrgByDomainGlobal_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetOrgByDomainGlobal(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_DeactivateMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -1143,6 +2230,23 @@ func request_ManagementService_DeactivateMyOrg_0(ctx context.Context, marshaler } +func local_request_ManagementService_DeactivateMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.DeactivateMyOrg(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ReactivateMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -1160,6 +2264,23 @@ func request_ManagementService_ReactivateMyOrg_0(ctx context.Context, marshaler } +func local_request_ManagementService_ReactivateMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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 := server.ReactivateMyOrg(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchMyOrgDomains_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OrgDomainSearchRequest var metadata runtime.ServerMetadata @@ -1177,6 +2298,23 @@ func request_ManagementService_SearchMyOrgDomains_0(ctx context.Context, marshal } +func local_request_ManagementService_SearchMyOrgDomains_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OrgDomainSearchRequest + 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 := server.SearchMyOrgDomains(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_AddMyOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddOrgDomainRequest var metadata runtime.ServerMetadata @@ -1194,6 +2332,23 @@ func request_ManagementService_AddMyOrgDomain_0(ctx context.Context, marshaler r } +func local_request_ManagementService_AddMyOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddOrgDomainRequest + 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 := server.AddMyOrgDomain(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_RemoveMyOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq RemoveOrgDomainRequest var metadata runtime.ServerMetadata @@ -1221,6 +2376,33 @@ func request_ManagementService_RemoveMyOrgDomain_0(ctx context.Context, marshale } +func local_request_ManagementService_RemoveMyOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RemoveOrgDomainRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + msg, err := server.RemoveMyOrgDomain(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetMyOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -1230,6 +2412,15 @@ func request_ManagementService_GetMyOrgIamPolicy_0(ctx context.Context, marshale } +func local_request_ManagementService_GetMyOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetMyOrgIamPolicy(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetOrgMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -1239,6 +2430,15 @@ func request_ManagementService_GetOrgMemberRoles_0(ctx context.Context, marshale } +func local_request_ManagementService_GetOrgMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetOrgMemberRoles(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_AddMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddOrgMemberRequest var metadata runtime.ServerMetadata @@ -1256,6 +2456,23 @@ func request_ManagementService_AddMyOrgMember_0(ctx context.Context, marshaler r } +func local_request_ManagementService_AddMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddOrgMemberRequest + 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 := server.AddMyOrgMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ChangeMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ChangeOrgMemberRequest var metadata runtime.ServerMetadata @@ -1291,6 +2508,41 @@ func request_ManagementService_ChangeMyOrgMember_0(ctx context.Context, marshale } +func local_request_ManagementService_ChangeMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeOrgMemberRequest + 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 := server.ChangeMyOrgMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_RemoveMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq RemoveOrgMemberRequest var metadata runtime.ServerMetadata @@ -1318,6 +2570,33 @@ func request_ManagementService_RemoveMyOrgMember_0(ctx context.Context, marshale } +func local_request_ManagementService_RemoveMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RemoveOrgMemberRequest + var metadata runtime.ServerMetadata + + 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 := server.RemoveMyOrgMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchMyOrgMembers_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OrgMemberSearchRequest var metadata runtime.ServerMetadata @@ -1335,6 +2614,23 @@ func request_ManagementService_SearchMyOrgMembers_0(ctx context.Context, marshal } +func local_request_ManagementService_SearchMyOrgMembers_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OrgMemberSearchRequest + 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 := server.SearchMyOrgMembers(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchProjects_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectSearchRequest var metadata runtime.ServerMetadata @@ -1352,6 +2648,23 @@ func request_ManagementService_SearchProjects_0(ctx context.Context, marshaler r } +func local_request_ManagementService_SearchProjects_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectSearchRequest + 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 := server.SearchProjects(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ProjectByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectID var metadata runtime.ServerMetadata @@ -1379,6 +2692,33 @@ func request_ManagementService_ProjectByID_0(ctx context.Context, marshaler runt } +func local_request_ManagementService_ProjectByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectID + 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 := server.ProjectByID(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_CreateProject_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectCreateRequest var metadata runtime.ServerMetadata @@ -1396,6 +2736,23 @@ func request_ManagementService_CreateProject_0(ctx context.Context, marshaler ru } +func local_request_ManagementService_CreateProject_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectCreateRequest + 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 := server.CreateProject(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectUpdateRequest var metadata runtime.ServerMetadata @@ -1431,6 +2788,41 @@ func request_ManagementService_UpdateProject_0(ctx context.Context, marshaler ru } +func local_request_ManagementService_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectUpdateRequest + 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 := server.UpdateProject(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_DeactivateProject_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectID var metadata runtime.ServerMetadata @@ -1466,6 +2858,41 @@ func request_ManagementService_DeactivateProject_0(ctx context.Context, marshale } +func local_request_ManagementService_DeactivateProject_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectID + 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 := server.DeactivateProject(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ReactivateProject_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectID var metadata runtime.ServerMetadata @@ -1501,6 +2928,41 @@ func request_ManagementService_ReactivateProject_0(ctx context.Context, marshale } +func local_request_ManagementService_ReactivateProject_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectID + 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 := server.ReactivateProject(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchGrantedProjects_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GrantedProjectSearchRequest var metadata runtime.ServerMetadata @@ -1518,6 +2980,23 @@ func request_ManagementService_SearchGrantedProjects_0(ctx context.Context, mars } +func local_request_ManagementService_SearchGrantedProjects_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GrantedProjectSearchRequest + 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 := server.SearchGrantedProjects(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetGrantedProjectByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantID var metadata runtime.ServerMetadata @@ -1556,6 +3035,44 @@ func request_ManagementService_GetGrantedProjectByID_0(ctx context.Context, mars } +func local_request_ManagementService_GetGrantedProjectByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantID + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.GetGrantedProjectByID(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetProjectMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -1565,6 +3082,15 @@ func request_ManagementService_GetProjectMemberRoles_0(ctx context.Context, mars } +func local_request_ManagementService_GetProjectMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetProjectMemberRoles(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchProjectMembers_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectMemberSearchRequest var metadata runtime.ServerMetadata @@ -1600,6 +3126,41 @@ func request_ManagementService_SearchProjectMembers_0(ctx context.Context, marsh } +func local_request_ManagementService_SearchProjectMembers_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectMemberSearchRequest + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.SearchProjectMembers(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_AddProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectMemberAdd var metadata runtime.ServerMetadata @@ -1635,6 +3196,41 @@ func request_ManagementService_AddProjectMember_0(ctx context.Context, marshaler } +func local_request_ManagementService_AddProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectMemberAdd + 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 := server.AddProjectMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ChangeProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectMemberChange var metadata runtime.ServerMetadata @@ -1681,6 +3277,52 @@ func request_ManagementService_ChangeProjectMember_0(ctx context.Context, marsha } +func local_request_ManagementService_ChangeProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectMemberChange + 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) + } + + 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 := server.ChangeProjectMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_RemoveProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectMemberRemove var metadata runtime.ServerMetadata @@ -1719,6 +3361,44 @@ func request_ManagementService_RemoveProjectMember_0(ctx context.Context, marsha } +func local_request_ManagementService_RemoveProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectMemberRemove + 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) + } + + 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 := server.RemoveProjectMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchProjectRoles_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectRoleSearchRequest var metadata runtime.ServerMetadata @@ -1754,6 +3434,41 @@ func request_ManagementService_SearchProjectRoles_0(ctx context.Context, marshal } +func local_request_ManagementService_SearchProjectRoles_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectRoleSearchRequest + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.SearchProjectRoles(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_AddProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectRoleAdd var metadata runtime.ServerMetadata @@ -1789,6 +3504,41 @@ func request_ManagementService_AddProjectRole_0(ctx context.Context, marshaler r } +func local_request_ManagementService_AddProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectRoleAdd + 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 := server.AddProjectRole(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_BulkAddProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectRoleAddBulk var metadata runtime.ServerMetadata @@ -1824,6 +3574,41 @@ func request_ManagementService_BulkAddProjectRole_0(ctx context.Context, marshal } +func local_request_ManagementService_BulkAddProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectRoleAddBulk + 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 := server.BulkAddProjectRole(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ChangeProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectRoleChange var metadata runtime.ServerMetadata @@ -1870,6 +3655,52 @@ func request_ManagementService_ChangeProjectRole_0(ctx context.Context, marshale } +func local_request_ManagementService_ChangeProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectRoleChange + 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) + } + + val, ok = pathParams["key"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") + } + + protoReq.Key, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) + } + + msg, err := server.ChangeProjectRole(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_RemoveProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectRoleRemove var metadata runtime.ServerMetadata @@ -1908,6 +3739,44 @@ func request_ManagementService_RemoveProjectRole_0(ctx context.Context, marshale } +func local_request_ManagementService_RemoveProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectRoleRemove + 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) + } + + val, ok = pathParams["key"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") + } + + protoReq.Key, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) + } + + msg, err := server.RemoveProjectRole(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchApplications_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ApplicationSearchRequest var metadata runtime.ServerMetadata @@ -1943,6 +3812,41 @@ func request_ManagementService_SearchApplications_0(ctx context.Context, marshal } +func local_request_ManagementService_SearchApplications_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.SearchApplications(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ApplicationByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ApplicationID var metadata runtime.ServerMetadata @@ -1981,6 +3885,44 @@ func request_ManagementService_ApplicationByID_0(ctx context.Context, marshaler } +func local_request_ManagementService_ApplicationByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.ApplicationByID(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_CreateOIDCApplication_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OIDCApplicationCreate var metadata runtime.ServerMetadata @@ -2016,6 +3958,41 @@ func request_ManagementService_CreateOIDCApplication_0(ctx context.Context, mars } +func local_request_ManagementService_CreateOIDCApplication_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OIDCApplicationCreate + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.CreateOIDCApplication(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdateApplication_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ApplicationUpdate var metadata runtime.ServerMetadata @@ -2062,6 +4039,52 @@ func request_ManagementService_UpdateApplication_0(ctx context.Context, marshale } +func local_request_ManagementService_UpdateApplication_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ApplicationUpdate + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.UpdateApplication(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_DeactivateApplication_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ApplicationID var metadata runtime.ServerMetadata @@ -2108,6 +4131,52 @@ func request_ManagementService_DeactivateApplication_0(ctx context.Context, mars } +func local_request_ManagementService_DeactivateApplication_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ApplicationID + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.DeactivateApplication(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ReactivateApplication_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ApplicationID var metadata runtime.ServerMetadata @@ -2154,6 +4223,52 @@ func request_ManagementService_ReactivateApplication_0(ctx context.Context, mars } +func local_request_ManagementService_ReactivateApplication_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ApplicationID + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.ReactivateApplication(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_RemoveApplication_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ApplicationID var metadata runtime.ServerMetadata @@ -2192,6 +4307,44 @@ func request_ManagementService_RemoveApplication_0(ctx context.Context, marshale } +func local_request_ManagementService_RemoveApplication_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.RemoveApplication(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdateApplicationOIDCConfig_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OIDCConfigUpdate var metadata runtime.ServerMetadata @@ -2238,6 +4391,52 @@ func request_ManagementService_UpdateApplicationOIDCConfig_0(ctx context.Context } +func local_request_ManagementService_UpdateApplicationOIDCConfig_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OIDCConfigUpdate + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["application_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "application_id") + } + + protoReq.ApplicationId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "application_id", err) + } + + msg, err := server.UpdateApplicationOIDCConfig(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_RegenerateOIDCClientSecret_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ApplicationID var metadata runtime.ServerMetadata @@ -2284,6 +4483,52 @@ func request_ManagementService_RegenerateOIDCClientSecret_0(ctx context.Context, } +func local_request_ManagementService_RegenerateOIDCClientSecret_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ApplicationID + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.RegenerateOIDCClientSecret(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchProjectGrants_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantSearchRequest var metadata runtime.ServerMetadata @@ -2319,6 +4564,41 @@ func request_ManagementService_SearchProjectGrants_0(ctx context.Context, marsha } +func local_request_ManagementService_SearchProjectGrants_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantSearchRequest + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.SearchProjectGrants(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ProjectGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantID var metadata runtime.ServerMetadata @@ -2357,6 +4637,44 @@ func request_ManagementService_ProjectGrantByID_0(ctx context.Context, marshaler } +func local_request_ManagementService_ProjectGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantID + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.ProjectGrantByID(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_CreateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantCreate var metadata runtime.ServerMetadata @@ -2392,6 +4710,41 @@ func request_ManagementService_CreateProjectGrant_0(ctx context.Context, marshal } +func local_request_ManagementService_CreateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantCreate + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.CreateProjectGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantUpdate var metadata runtime.ServerMetadata @@ -2438,6 +4791,52 @@ func request_ManagementService_UpdateProjectGrant_0(ctx context.Context, marshal } +func local_request_ManagementService_UpdateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantUpdate + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.UpdateProjectGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_DeactivateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantID var metadata runtime.ServerMetadata @@ -2484,6 +4883,52 @@ func request_ManagementService_DeactivateProjectGrant_0(ctx context.Context, mar } +func local_request_ManagementService_DeactivateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantID + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.DeactivateProjectGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ReactivateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantID var metadata runtime.ServerMetadata @@ -2530,6 +4975,52 @@ func request_ManagementService_ReactivateProjectGrant_0(ctx context.Context, mar } +func local_request_ManagementService_ReactivateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantID + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.ReactivateProjectGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_RemoveProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantID var metadata runtime.ServerMetadata @@ -2568,6 +5059,44 @@ func request_ManagementService_RemoveProjectGrant_0(ctx context.Context, marshal } +func local_request_ManagementService_RemoveProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantID + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_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 := server.RemoveProjectGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_GetProjectGrantMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq empty.Empty var metadata runtime.ServerMetadata @@ -2577,6 +5106,15 @@ func request_ManagementService_GetProjectGrantMemberRoles_0(ctx context.Context, } +func local_request_ManagementService_GetProjectGrantMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := server.GetProjectGrantMemberRoles(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchProjectGrantMembers_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantMemberSearchRequest var metadata runtime.ServerMetadata @@ -2623,6 +5161,52 @@ func request_ManagementService_SearchProjectGrantMembers_0(ctx context.Context, } +func local_request_ManagementService_SearchProjectGrantMembers_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantMemberSearchRequest + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["grant_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") + } + + protoReq.GrantId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", err) + } + + msg, err := server.SearchProjectGrantMembers(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_AddProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantMemberAdd var metadata runtime.ServerMetadata @@ -2669,6 +5253,52 @@ func request_ManagementService_AddProjectGrantMember_0(ctx context.Context, mars } +func local_request_ManagementService_AddProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantMemberAdd + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["grant_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") + } + + protoReq.GrantId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", err) + } + + msg, err := server.AddProjectGrantMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ChangeProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantMemberChange var metadata runtime.ServerMetadata @@ -2726,6 +5356,63 @@ func request_ManagementService_ChangeProjectGrantMember_0(ctx context.Context, m } +func local_request_ManagementService_ChangeProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantMemberChange + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["grant_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") + } + + protoReq.GrantId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", 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 := server.ChangeProjectGrantMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_RemoveProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantMemberRemove var metadata runtime.ServerMetadata @@ -2775,6 +5462,55 @@ func request_ManagementService_RemoveProjectGrantMember_0(ctx context.Context, m } +func local_request_ManagementService_RemoveProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantMemberRemove + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["grant_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") + } + + protoReq.GrantId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", 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 := server.RemoveProjectGrantMember(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchUserGrants_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantSearchRequest var metadata runtime.ServerMetadata @@ -2792,6 +5528,23 @@ func request_ManagementService_SearchUserGrants_0(ctx context.Context, marshaler } +func local_request_ManagementService_SearchUserGrants_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantSearchRequest + 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 := server.SearchUserGrants(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UserGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantID var metadata runtime.ServerMetadata @@ -2830,6 +5583,44 @@ func request_ManagementService_UserGrantByID_0(ctx context.Context, marshaler ru } +func local_request_ManagementService_UserGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantID + var metadata runtime.ServerMetadata + + 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) + } + + 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 := server.UserGrantByID(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_CreateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantCreate var metadata runtime.ServerMetadata @@ -2865,6 +5656,41 @@ func request_ManagementService_CreateUserGrant_0(ctx context.Context, marshaler } +func local_request_ManagementService_CreateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantCreate + 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 := server.CreateUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantUpdate var metadata runtime.ServerMetadata @@ -2911,6 +5737,52 @@ func request_ManagementService_UpdateUserGrant_0(ctx context.Context, marshaler } +func local_request_ManagementService_UpdateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantUpdate + 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) + } + + 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 := server.UpdateUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_DeactivateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantID var metadata runtime.ServerMetadata @@ -2957,6 +5829,52 @@ func request_ManagementService_DeactivateUserGrant_0(ctx context.Context, marsha } +func local_request_ManagementService_DeactivateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantID + 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) + } + + 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 := server.DeactivateUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ReactivateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantID var metadata runtime.ServerMetadata @@ -3003,6 +5921,52 @@ func request_ManagementService_ReactivateUserGrant_0(ctx context.Context, marsha } +func local_request_ManagementService_ReactivateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantID + 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) + } + + 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 := server.ReactivateUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_RemoveUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantID var metadata runtime.ServerMetadata @@ -3041,6 +6005,44 @@ func request_ManagementService_RemoveUserGrant_0(ctx context.Context, marshaler } +func local_request_ManagementService_RemoveUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantID + var metadata runtime.ServerMetadata + + 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) + } + + 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 := server.RemoveUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_BulkCreateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantCreateBulk var metadata runtime.ServerMetadata @@ -3058,6 +6060,23 @@ func request_ManagementService_BulkCreateUserGrant_0(ctx context.Context, marsha } +func local_request_ManagementService_BulkCreateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantCreateBulk + 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 := server.BulkCreateUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_BulkUpdateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantUpdateBulk var metadata runtime.ServerMetadata @@ -3075,6 +6094,23 @@ func request_ManagementService_BulkUpdateUserGrant_0(ctx context.Context, marsha } +func local_request_ManagementService_BulkUpdateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantUpdateBulk + 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 := server.BulkUpdateUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_BulkRemoveUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantRemoveBulk var metadata runtime.ServerMetadata @@ -3092,6 +6128,23 @@ func request_ManagementService_BulkRemoveUserGrant_0(ctx context.Context, marsha } +func local_request_ManagementService_BulkRemoveUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantRemoveBulk + 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 := server.BulkRemoveUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchProjectUserGrants_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectUserGrantSearchRequest var metadata runtime.ServerMetadata @@ -3127,6 +6180,41 @@ func request_ManagementService_SearchProjectUserGrants_0(ctx context.Context, ma } +func local_request_ManagementService_SearchProjectUserGrants_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectUserGrantSearchRequest + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.SearchProjectUserGrants(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ProjectUserGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectUserGrantID var metadata runtime.ServerMetadata @@ -3176,6 +6264,55 @@ func request_ManagementService_ProjectUserGrantByID_0(ctx context.Context, marsh } +func local_request_ManagementService_ProjectUserGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectUserGrantID + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", 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) + } + + 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 := server.ProjectUserGrantByID(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_CreateProjectUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserGrantCreate var metadata runtime.ServerMetadata @@ -3222,6 +6359,52 @@ func request_ManagementService_CreateProjectUserGrant_0(ctx context.Context, mar } +func local_request_ManagementService_CreateProjectUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserGrantCreate + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", 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 := server.CreateProjectUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdateProjectUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectUserGrantUpdate var metadata runtime.ServerMetadata @@ -3279,6 +6462,63 @@ func request_ManagementService_UpdateProjectUserGrant_0(ctx context.Context, mar } +func local_request_ManagementService_UpdateProjectUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectUserGrantUpdate + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", 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) + } + + 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 := server.UpdateProjectUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_DeactivateProjectUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectUserGrantID var metadata runtime.ServerMetadata @@ -3336,6 +6576,63 @@ func request_ManagementService_DeactivateProjectUserGrant_0(ctx context.Context, } +func local_request_ManagementService_DeactivateProjectUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectUserGrantID + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", 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) + } + + 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 := server.DeactivateProjectUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ReactivateProjectUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectUserGrantID var metadata runtime.ServerMetadata @@ -3393,6 +6690,63 @@ func request_ManagementService_ReactivateProjectUserGrant_0(ctx context.Context, } +func local_request_ManagementService_ReactivateProjectUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectUserGrantID + 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["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", 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) + } + + 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 := server.ReactivateProjectUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_SearchProjectGrantUserGrants_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantUserGrantSearchRequest var metadata runtime.ServerMetadata @@ -3428,6 +6782,41 @@ func request_ManagementService_SearchProjectGrantUserGrants_0(ctx context.Contex } +func local_request_ManagementService_SearchProjectGrantUserGrants_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantUserGrantSearchRequest + 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["project_grant_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_grant_id") + } + + protoReq.ProjectGrantId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_grant_id", err) + } + + msg, err := server.SearchProjectGrantUserGrants(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ProjectGrantUserGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantUserGrantID var metadata runtime.ServerMetadata @@ -3477,6 +6866,55 @@ func request_ManagementService_ProjectGrantUserGrantByID_0(ctx context.Context, } +func local_request_ManagementService_ProjectGrantUserGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantUserGrantID + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_grant_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_grant_id") + } + + protoReq.ProjectGrantId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_grant_id", 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) + } + + 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 := server.ProjectGrantUserGrantByID(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_CreateProjectGrantUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantUserGrantCreate var metadata runtime.ServerMetadata @@ -3523,6 +6961,52 @@ func request_ManagementService_CreateProjectGrantUserGrant_0(ctx context.Context } +func local_request_ManagementService_CreateProjectGrantUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantUserGrantCreate + 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["project_grant_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_grant_id") + } + + protoReq.ProjectGrantId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_grant_id", 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 := server.CreateProjectGrantUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_UpdateProjectGrantUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantUserGrantUpdate var metadata runtime.ServerMetadata @@ -3580,6 +7064,63 @@ func request_ManagementService_UpdateProjectGrantUserGrant_0(ctx context.Context } +func local_request_ManagementService_UpdateProjectGrantUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantUserGrantUpdate + 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["project_grant_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_grant_id") + } + + protoReq.ProjectGrantId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_grant_id", 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) + } + + 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 := server.UpdateProjectGrantUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_DeactivateProjectGrantUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantUserGrantID var metadata runtime.ServerMetadata @@ -3637,6 +7178,63 @@ func request_ManagementService_DeactivateProjectGrantUserGrant_0(ctx context.Con } +func local_request_ManagementService_DeactivateProjectGrantUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantUserGrantID + 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["project_grant_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_grant_id") + } + + protoReq.ProjectGrantId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_grant_id", 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) + } + + 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 := server.DeactivateProjectGrantUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + func request_ManagementService_ReactivateProjectGrantUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProjectGrantUserGrantID var metadata runtime.ServerMetadata @@ -3694,6 +7292,2431 @@ func request_ManagementService_ReactivateProjectGrantUserGrant_0(ctx context.Con } +func local_request_ManagementService_ReactivateProjectGrantUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ProjectGrantUserGrantID + 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["project_grant_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_grant_id") + } + + protoReq.ProjectGrantId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_grant_id", 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) + } + + 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 := server.ReactivateProjectGrantUserGrant(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterManagementServiceHandlerServer registers the http handlers for service ManagementService to "mux". +// UnaryRPC :call ManagementServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +func RegisterManagementServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ManagementServiceServer, opts []grpc.DialOption) error { + + mux.Handle("GET", pattern_ManagementService_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 := local_request_ManagementService_Healthz_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_Healthz_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_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 := local_request_ManagementService_Ready_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_Ready_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_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 := local_request_ManagementService_Validate_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_Validate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetIam_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 := local_request_ManagementService_GetIam_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetIam_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_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 := local_request_ManagementService_GetUserByID_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetUserByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetUserByEmailGlobal_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 := local_request_ManagementService_GetUserByEmailGlobal_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetUserByEmailGlobal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchUsers_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 := local_request_ManagementService_SearchUsers_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchUsers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_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 := local_request_ManagementService_IsUserUnique_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_IsUserUnique_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_CreateUser_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 := local_request_ManagementService_CreateUser_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_CreateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_DeactivateUser_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 := local_request_ManagementService_DeactivateUser_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeactivateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ReactivateUser_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 := local_request_ManagementService_ReactivateUser_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ReactivateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_LockUser_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 := local_request_ManagementService_LockUser_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_LockUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UnlockUser_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 := local_request_ManagementService_UnlockUser_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UnlockUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_DeleteUser_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 := local_request_ManagementService_DeleteUser_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeleteUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_UserChanges_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 := local_request_ManagementService_UserChanges_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UserChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_ApplicationChanges_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 := local_request_ManagementService_ApplicationChanges_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ApplicationChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_OrgChanges_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 := local_request_ManagementService_OrgChanges_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_OrgChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_ProjectChanges_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 := local_request_ManagementService_ProjectChanges_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ProjectChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetUserProfile_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 := local_request_ManagementService_GetUserProfile_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdateUserProfile_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 := local_request_ManagementService_UpdateUserProfile_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdateUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetUserEmail_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 := local_request_ManagementService_GetUserEmail_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ChangeUserEmail_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 := local_request_ManagementService_ChangeUserEmail_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ChangeUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_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 := local_request_ManagementService_ResendEmailVerificationMail_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ResendEmailVerificationMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetUserPhone_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 := local_request_ManagementService_GetUserPhone_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ChangeUserPhone_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 := local_request_ManagementService_ChangeUserPhone_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ChangeUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_RemoveUserPhone_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 := local_request_ManagementService_RemoveUserPhone_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_RemoveUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_ResendPhoneVerificationCode_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 := local_request_ManagementService_ResendPhoneVerificationCode_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ResendPhoneVerificationCode_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetUserAddress_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 := local_request_ManagementService_GetUserAddress_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdateUserAddress_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 := local_request_ManagementService_UpdateUserAddress_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdateUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetUserMfas_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 := local_request_ManagementService_GetUserMfas_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetUserMfas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SendSetPasswordNotification_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 := local_request_ManagementService_SendSetPasswordNotification_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SendSetPasswordNotification_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SetInitialPassword_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 := local_request_ManagementService_SetInitialPassword_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SetInitialPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetPasswordComplexityPolicy_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 := local_request_ManagementService_GetPasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_CreatePasswordComplexityPolicy_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 := local_request_ManagementService_CreatePasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_CreatePasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdatePasswordComplexityPolicy_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 := local_request_ManagementService_UpdatePasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdatePasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_DeletePasswordComplexityPolicy_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 := local_request_ManagementService_DeletePasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeletePasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetPasswordAgePolicy_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 := local_request_ManagementService_GetPasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetPasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_CreatePasswordAgePolicy_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 := local_request_ManagementService_CreatePasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_CreatePasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdatePasswordAgePolicy_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 := local_request_ManagementService_UpdatePasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdatePasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_DeletePasswordAgePolicy_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 := local_request_ManagementService_DeletePasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeletePasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetPasswordLockoutPolicy_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 := local_request_ManagementService_GetPasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetPasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_CreatePasswordLockoutPolicy_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 := local_request_ManagementService_CreatePasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_CreatePasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdatePasswordLockoutPolicy_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 := local_request_ManagementService_UpdatePasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdatePasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_DeletePasswordLockoutPolicy_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 := local_request_ManagementService_DeletePasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeletePasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetMyOrg_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 := local_request_ManagementService_GetMyOrg_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetMyOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetOrgByDomainGlobal_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 := local_request_ManagementService_GetOrgByDomainGlobal_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetOrgByDomainGlobal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_DeactivateMyOrg_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 := local_request_ManagementService_DeactivateMyOrg_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeactivateMyOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ReactivateMyOrg_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 := local_request_ManagementService_ReactivateMyOrg_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ReactivateMyOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchMyOrgDomains_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 := local_request_ManagementService_SearchMyOrgDomains_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchMyOrgDomains_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_AddMyOrgDomain_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 := local_request_ManagementService_AddMyOrgDomain_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_AddMyOrgDomain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_RemoveMyOrgDomain_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 := local_request_ManagementService_RemoveMyOrgDomain_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_RemoveMyOrgDomain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetMyOrgIamPolicy_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 := local_request_ManagementService_GetMyOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetMyOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetOrgMemberRoles_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 := local_request_ManagementService_GetOrgMemberRoles_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetOrgMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_AddMyOrgMember_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 := local_request_ManagementService_AddMyOrgMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_AddMyOrgMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ChangeMyOrgMember_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 := local_request_ManagementService_ChangeMyOrgMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ChangeMyOrgMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_RemoveMyOrgMember_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 := local_request_ManagementService_RemoveMyOrgMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_RemoveMyOrgMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchMyOrgMembers_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 := local_request_ManagementService_SearchMyOrgMembers_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchMyOrgMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchProjects_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 := local_request_ManagementService_SearchProjects_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_ProjectByID_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 := local_request_ManagementService_ProjectByID_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ProjectByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_CreateProject_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 := local_request_ManagementService_CreateProject_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_CreateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdateProject_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 := local_request_ManagementService_UpdateProject_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_DeactivateProject_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 := local_request_ManagementService_DeactivateProject_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeactivateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ReactivateProject_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 := local_request_ManagementService_ReactivateProject_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ReactivateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchGrantedProjects_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 := local_request_ManagementService_SearchGrantedProjects_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchGrantedProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetGrantedProjectByID_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 := local_request_ManagementService_GetGrantedProjectByID_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetGrantedProjectByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetProjectMemberRoles_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 := local_request_ManagementService_GetProjectMemberRoles_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetProjectMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchProjectMembers_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 := local_request_ManagementService_SearchProjectMembers_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchProjectMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_AddProjectMember_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 := local_request_ManagementService_AddProjectMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_AddProjectMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ChangeProjectMember_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 := local_request_ManagementService_ChangeProjectMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ChangeProjectMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_RemoveProjectMember_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 := local_request_ManagementService_RemoveProjectMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_RemoveProjectMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchProjectRoles_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 := local_request_ManagementService_SearchProjectRoles_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchProjectRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_AddProjectRole_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 := local_request_ManagementService_AddProjectRole_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_AddProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_BulkAddProjectRole_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 := local_request_ManagementService_BulkAddProjectRole_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_BulkAddProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ChangeProjectRole_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 := local_request_ManagementService_ChangeProjectRole_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ChangeProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_RemoveProjectRole_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 := local_request_ManagementService_RemoveProjectRole_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_RemoveProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_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 := local_request_ManagementService_SearchApplications_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchApplications_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_ApplicationByID_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 := local_request_ManagementService_ApplicationByID_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ApplicationByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_CreateOIDCApplication_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 := local_request_ManagementService_CreateOIDCApplication_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_CreateOIDCApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdateApplication_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 := local_request_ManagementService_UpdateApplication_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdateApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_DeactivateApplication_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 := local_request_ManagementService_DeactivateApplication_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeactivateApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ReactivateApplication_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 := local_request_ManagementService_ReactivateApplication_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ReactivateApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_RemoveApplication_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 := local_request_ManagementService_RemoveApplication_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_RemoveApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdateApplicationOIDCConfig_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 := local_request_ManagementService_UpdateApplicationOIDCConfig_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdateApplicationOIDCConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_RegenerateOIDCClientSecret_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 := local_request_ManagementService_RegenerateOIDCClientSecret_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_RegenerateOIDCClientSecret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchProjectGrants_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 := local_request_ManagementService_SearchProjectGrants_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchProjectGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_ProjectGrantByID_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 := local_request_ManagementService_ProjectGrantByID_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ProjectGrantByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_CreateProjectGrant_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 := local_request_ManagementService_CreateProjectGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_CreateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdateProjectGrant_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 := local_request_ManagementService_UpdateProjectGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_DeactivateProjectGrant_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 := local_request_ManagementService_DeactivateProjectGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeactivateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ReactivateProjectGrant_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 := local_request_ManagementService_ReactivateProjectGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ReactivateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_RemoveProjectGrant_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 := local_request_ManagementService_RemoveProjectGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_RemoveProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_GetProjectGrantMemberRoles_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 := local_request_ManagementService_GetProjectGrantMemberRoles_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_GetProjectGrantMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchProjectGrantMembers_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 := local_request_ManagementService_SearchProjectGrantMembers_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchProjectGrantMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_AddProjectGrantMember_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 := local_request_ManagementService_AddProjectGrantMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_AddProjectGrantMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ChangeProjectGrantMember_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 := local_request_ManagementService_ChangeProjectGrantMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ChangeProjectGrantMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_RemoveProjectGrantMember_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 := local_request_ManagementService_RemoveProjectGrantMember_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_RemoveProjectGrantMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchUserGrants_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 := local_request_ManagementService_SearchUserGrants_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchUserGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_UserGrantByID_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 := local_request_ManagementService_UserGrantByID_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UserGrantByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_CreateUserGrant_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 := local_request_ManagementService_CreateUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_CreateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdateUserGrant_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 := local_request_ManagementService_UpdateUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_DeactivateUserGrant_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 := local_request_ManagementService_DeactivateUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeactivateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ReactivateUserGrant_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 := local_request_ManagementService_ReactivateUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ReactivateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_RemoveUserGrant_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 := local_request_ManagementService_RemoveUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_RemoveUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_BulkCreateUserGrant_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 := local_request_ManagementService_BulkCreateUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_BulkCreateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_BulkUpdateUserGrant_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 := local_request_ManagementService_BulkUpdateUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_BulkUpdateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_ManagementService_BulkRemoveUserGrant_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 := local_request_ManagementService_BulkRemoveUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_BulkRemoveUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchProjectUserGrants_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 := local_request_ManagementService_SearchProjectUserGrants_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchProjectUserGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_ProjectUserGrantByID_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 := local_request_ManagementService_ProjectUserGrantByID_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ProjectUserGrantByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_CreateProjectUserGrant_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 := local_request_ManagementService_CreateProjectUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_CreateProjectUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdateProjectUserGrant_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 := local_request_ManagementService_UpdateProjectUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdateProjectUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_DeactivateProjectUserGrant_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 := local_request_ManagementService_DeactivateProjectUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeactivateProjectUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ReactivateProjectUserGrant_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 := local_request_ManagementService_ReactivateProjectUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ReactivateProjectUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_SearchProjectGrantUserGrants_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 := local_request_ManagementService_SearchProjectGrantUserGrants_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_SearchProjectGrantUserGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ManagementService_ProjectGrantUserGrantByID_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 := local_request_ManagementService_ProjectGrantUserGrantByID_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ProjectGrantUserGrantByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ManagementService_CreateProjectGrantUserGrant_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 := local_request_ManagementService_CreateProjectGrantUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_CreateProjectGrantUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_UpdateProjectGrantUserGrant_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 := local_request_ManagementService_UpdateProjectGrantUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_UpdateProjectGrantUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_DeactivateProjectGrantUserGrant_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 := local_request_ManagementService_DeactivateProjectGrantUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_DeactivateProjectGrantUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_ManagementService_ReactivateProjectGrantUserGrant_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 := local_request_ManagementService_ReactivateProjectGrantUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ManagementService_ReactivateProjectGrantUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + // RegisterManagementServiceHandlerFromEndpoint is same as RegisterManagementServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterManagementServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { @@ -6096,241 +12119,241 @@ func RegisterManagementServiceHandlerClient(ctx context.Context, mux *runtime.Se } var ( - pattern_ManagementService_Healthz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"healthz"}, "")) + pattern_ManagementService_Healthz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"healthz"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_Ready_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"ready"}, "")) + pattern_ManagementService_Ready_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"ready"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_Validate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"validate"}, "")) + pattern_ManagementService_Validate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"validate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetIam_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"iam"}, "")) + pattern_ManagementService_GetIam_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"iam"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetUserByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"users", "id"}, "")) + pattern_ManagementService_GetUserByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"users", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetUserByEmailGlobal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"global", "users", "_byemail"}, "")) + pattern_ManagementService_GetUserByEmailGlobal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"global", "users", "_byemail"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchUsers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"users", "_search"}, "")) + pattern_ManagementService_SearchUsers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"users", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_IsUserUnique_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"users", "_isunique"}, "")) + pattern_ManagementService_IsUserUnique_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"users", "_isunique"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_CreateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"users"}, "")) + pattern_ManagementService_CreateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"users"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeactivateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_deactivate"}, "")) + pattern_ManagementService_DeactivateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ReactivateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_reactivate"}, "")) + pattern_ManagementService_ReactivateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_LockUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_lock"}, "")) + pattern_ManagementService_LockUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_lock"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UnlockUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_unlock"}, "")) + pattern_ManagementService_UnlockUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_unlock"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeleteUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"users", "id"}, "")) + pattern_ManagementService_DeleteUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"users", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UserChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "changes"}, "")) + pattern_ManagementService_UserChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "changes"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ApplicationChanges_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{"projects", "id", "applications", "sec_id", "changes"}, "")) + pattern_ManagementService_ApplicationChanges_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{"projects", "id", "applications", "sec_id", "changes"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_OrgChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "id", "changes"}, "")) + pattern_ManagementService_OrgChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "id", "changes"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ProjectChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "changes"}, "")) + pattern_ManagementService_ProjectChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "changes"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetUserProfile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "profile"}, "")) + pattern_ManagementService_GetUserProfile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "profile"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdateUserProfile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "profile"}, "")) + pattern_ManagementService_UpdateUserProfile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "profile"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "email"}, "")) + pattern_ManagementService_GetUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "email"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ChangeUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "email"}, "")) + pattern_ManagementService_ChangeUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "email"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_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_ManagementService_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"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "phone"}, "")) + pattern_ManagementService_GetUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "phone"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ChangeUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "phone"}, "")) + pattern_ManagementService_ChangeUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "phone"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_RemoveUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "phone"}, "")) + pattern_ManagementService_RemoveUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "phone"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ResendPhoneVerificationCode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "phone", "_resendverification"}, "")) + pattern_ManagementService_ResendPhoneVerificationCode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "phone", "_resendverification"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetUserAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "address"}, "")) + pattern_ManagementService_GetUserAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "address"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdateUserAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "address"}, "")) + pattern_ManagementService_UpdateUserAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "address"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetUserMfas_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "mfas"}, "")) + pattern_ManagementService_GetUserMfas_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "mfas"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SendSetPasswordNotification_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "password", "_sendsetnotification"}, "")) + pattern_ManagementService_SendSetPasswordNotification_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "password", "_sendsetnotification"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SetInitialPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "password", "_initialize"}, "")) + pattern_ManagementService_SetInitialPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "password", "_initialize"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetPasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "complexity"}, "")) + pattern_ManagementService_GetPasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_CreatePasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "complexity"}, "")) + pattern_ManagementService_CreatePasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdatePasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "complexity"}, "")) + pattern_ManagementService_UpdatePasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeletePasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "complexity"}, "")) + pattern_ManagementService_DeletePasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetPasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "age"}, "")) + pattern_ManagementService_GetPasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "age"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_CreatePasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "age"}, "")) + pattern_ManagementService_CreatePasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "age"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdatePasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "age"}, "")) + pattern_ManagementService_UpdatePasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "age"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeletePasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "age"}, "")) + pattern_ManagementService_DeletePasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "age"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetPasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "lockout"}, "")) + pattern_ManagementService_GetPasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_CreatePasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "lockout"}, "")) + pattern_ManagementService_CreatePasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdatePasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "lockout"}, "")) + pattern_ManagementService_UpdatePasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeletePasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "lockout"}, "")) + pattern_ManagementService_DeletePasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetMyOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "me"}, "")) + pattern_ManagementService_GetMyOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "me"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetOrgByDomainGlobal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"global", "orgs", "_bydomain"}, "")) + pattern_ManagementService_GetOrgByDomainGlobal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"global", "orgs", "_bydomain"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeactivateMyOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "_deactivate"}, "")) + pattern_ManagementService_DeactivateMyOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ReactivateMyOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "_reactivate"}, "")) + pattern_ManagementService_ReactivateMyOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchMyOrgDomains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "domains", "_search"}, "")) + pattern_ManagementService_SearchMyOrgDomains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "domains", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_AddMyOrgDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "domains"}, "")) + pattern_ManagementService_AddMyOrgDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "domains"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_RemoveMyOrgDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "domains", "domain"}, "")) + pattern_ManagementService_RemoveMyOrgDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "domains", "domain"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetMyOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "iampolicy"}, "")) + pattern_ManagementService_GetMyOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "iampolicy"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetOrgMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "members", "roles"}, "")) + pattern_ManagementService_GetOrgMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "members", "roles"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_AddMyOrgMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "members"}, "")) + pattern_ManagementService_AddMyOrgMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "members"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ChangeMyOrgMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "members", "user_id"}, "")) + pattern_ManagementService_ChangeMyOrgMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_RemoveMyOrgMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "members", "user_id"}, "")) + pattern_ManagementService_RemoveMyOrgMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchMyOrgMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "members", "_search"}, "")) + pattern_ManagementService_SearchMyOrgMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "members", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"projects", "_search"}, "")) + pattern_ManagementService_SearchProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"projects", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ProjectByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"projects", "id"}, "")) + pattern_ManagementService_ProjectByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"projects", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_CreateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"projects"}, "")) + pattern_ManagementService_CreateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"projects"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"projects", "id"}, "")) + pattern_ManagementService_UpdateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"projects", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeactivateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "_deactivate"}, "")) + pattern_ManagementService_DeactivateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ReactivateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "_reactivate"}, "")) + pattern_ManagementService_ReactivateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchGrantedProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"grantedprojects", "_search"}, "")) + pattern_ManagementService_SearchGrantedProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"grantedprojects", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetGrantedProjectByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"grantedprojects", "project_id", "grants", "id"}, "")) + pattern_ManagementService_GetGrantedProjectByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"grantedprojects", "project_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetProjectMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"projects", "members", "roles"}, "")) + pattern_ManagementService_GetProjectMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"projects", "members", "roles"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchProjectMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "members", "_search"}, "")) + pattern_ManagementService_SearchProjectMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "members", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_AddProjectMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "members"}, "")) + pattern_ManagementService_AddProjectMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "members"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ChangeProjectMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "members", "user_id"}, "")) + pattern_ManagementService_ChangeProjectMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_RemoveProjectMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "members", "user_id"}, "")) + pattern_ManagementService_RemoveProjectMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchProjectRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "roles", "_search"}, "")) + pattern_ManagementService_SearchProjectRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "roles", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_AddProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "roles"}, "")) + pattern_ManagementService_AddProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "roles"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_BulkAddProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "id", "roles", "_bulk"}, "")) + pattern_ManagementService_BulkAddProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "id", "roles", "_bulk"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ChangeProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "roles", "key"}, "")) + pattern_ManagementService_ChangeProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "roles", "key"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_RemoveProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "roles", "key"}, "")) + pattern_ManagementService_RemoveProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "roles", "key"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchApplications_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "applications", "_search"}, "")) + pattern_ManagementService_SearchApplications_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "applications", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ApplicationByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "applications", "id"}, "")) + pattern_ManagementService_ApplicationByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "applications", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_CreateOIDCApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "project_id", "oidcapplications"}, "")) + pattern_ManagementService_CreateOIDCApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "project_id", "oidcapplications"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdateApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "applications", "id"}, "")) + pattern_ManagementService_UpdateApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "applications", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeactivateApplication_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{"projects", "project_id", "applications", "id", "_deactivate"}, "")) + pattern_ManagementService_DeactivateApplication_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{"projects", "project_id", "applications", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ReactivateApplication_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{"projects", "project_id", "applications", "id", "_reactivate"}, "")) + pattern_ManagementService_ReactivateApplication_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{"projects", "project_id", "applications", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_RemoveApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "applications", "id"}, "")) + pattern_ManagementService_RemoveApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "applications", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdateApplicationOIDCConfig_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{"projects", "project_id", "applications", "application_id", "oidcconfig"}, "")) + pattern_ManagementService_UpdateApplicationOIDCConfig_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{"projects", "project_id", "applications", "application_id", "oidcconfig"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_RegenerateOIDCClientSecret_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, 2, 5}, []string{"projects", "project_id", "applications", "id", "oidcconfig", "_changeclientsecret"}, "")) + pattern_ManagementService_RegenerateOIDCClientSecret_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, 2, 5}, []string{"projects", "project_id", "applications", "id", "oidcconfig", "_changeclientsecret"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchProjectGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "grants", "_search"}, "")) + pattern_ManagementService_SearchProjectGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "grants", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ProjectGrantByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "grants", "id"}, "")) + pattern_ManagementService_ProjectGrantByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_CreateProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "project_id", "grants"}, "")) + pattern_ManagementService_CreateProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "project_id", "grants"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdateProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "grants", "id"}, "")) + pattern_ManagementService_UpdateProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeactivateProjectGrant_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{"projects", "project_id", "grants", "id", "_deactivate"}, "")) + pattern_ManagementService_DeactivateProjectGrant_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{"projects", "project_id", "grants", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ReactivateProjectGrant_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{"projects", "project_id", "grants", "id", "_reactivate"}, "")) + pattern_ManagementService_ReactivateProjectGrant_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{"projects", "project_id", "grants", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_RemoveProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "grants", "id"}, "")) + pattern_ManagementService_RemoveProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_GetProjectGrantMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"projects", "grants", "members", "roles"}, "")) + pattern_ManagementService_GetProjectGrantMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"projects", "grants", "members", "roles"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchProjectGrantMembers_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, 2, 5}, []string{"projects", "project_id", "grants", "grant_id", "members", "_search"}, "")) + pattern_ManagementService_SearchProjectGrantMembers_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, 2, 5}, []string{"projects", "project_id", "grants", "grant_id", "members", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_AddProjectGrantMember_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{"projects", "project_id", "grants", "grant_id", "members"}, "")) + pattern_ManagementService_AddProjectGrantMember_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{"projects", "project_id", "grants", "grant_id", "members"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ChangeProjectGrantMember_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, 1, 0, 4, 1, 5, 5}, []string{"projects", "project_id", "grants", "grant_id", "members", "user_id"}, "")) + pattern_ManagementService_ChangeProjectGrantMember_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, 1, 0, 4, 1, 5, 5}, []string{"projects", "project_id", "grants", "grant_id", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_RemoveProjectGrantMember_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, 1, 0, 4, 1, 5, 5}, []string{"projects", "project_id", "grants", "grant_id", "members", "user_id"}, "")) + pattern_ManagementService_RemoveProjectGrantMember_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, 1, 0, 4, 1, 5, 5}, []string{"projects", "project_id", "grants", "grant_id", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchUserGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "grants", "_search"}, "")) + pattern_ManagementService_SearchUserGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "grants", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UserGrantByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "grants", "id"}, "")) + pattern_ManagementService_UserGrantByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_CreateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "user_id", "grants"}, "")) + pattern_ManagementService_CreateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "user_id", "grants"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "grants", "id"}, "")) + pattern_ManagementService_UpdateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeactivateUserGrant_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{"users", "user_id", "grants", "id", "_deactivate"}, "")) + pattern_ManagementService_DeactivateUserGrant_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{"users", "user_id", "grants", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ReactivateUserGrant_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{"users", "user_id", "grants", "id", "_reactivate"}, "")) + pattern_ManagementService_ReactivateUserGrant_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{"users", "user_id", "grants", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_RemoveUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "grants", "id"}, "")) + pattern_ManagementService_RemoveUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_BulkCreateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"usergrants", "_bulk"}, "")) + pattern_ManagementService_BulkCreateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"usergrants", "_bulk"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_BulkUpdateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"usergrants", "_bulk"}, "")) + pattern_ManagementService_BulkUpdateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"usergrants", "_bulk"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_BulkRemoveUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"usersgrants", "_bulk"}, "")) + pattern_ManagementService_BulkRemoveUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"usersgrants", "_bulk"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchProjectUserGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3, 2, 4}, []string{"projects", "project_id", "users", "grants", "_search"}, "")) + pattern_ManagementService_SearchProjectUserGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3, 2, 4}, []string{"projects", "project_id", "users", "grants", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ProjectUserGrantByID_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, 1, 0, 4, 1, 5, 5}, []string{"projects", "project_id", "users", "user_id", "grants", "id"}, "")) + pattern_ManagementService_ProjectUserGrantByID_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, 1, 0, 4, 1, 5, 5}, []string{"projects", "project_id", "users", "user_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_CreateProjectUserGrant_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{"projects", "project_id", "users", "user_id", "grants"}, "")) + pattern_ManagementService_CreateProjectUserGrant_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{"projects", "project_id", "users", "user_id", "grants"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdateProjectUserGrant_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, 1, 0, 4, 1, 5, 5}, []string{"projects", "project_id", "users", "user_id", "grants", "id"}, "")) + pattern_ManagementService_UpdateProjectUserGrant_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, 1, 0, 4, 1, 5, 5}, []string{"projects", "project_id", "users", "user_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeactivateProjectUserGrant_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, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"projects", "project_id", "users", "user_id", "grants", "id", "_deactivate"}, "")) + pattern_ManagementService_DeactivateProjectUserGrant_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, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"projects", "project_id", "users", "user_id", "grants", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ReactivateProjectUserGrant_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, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"projects", "project_id", "users", "user_id", "grants", "id", "_reactivate"}, "")) + pattern_ManagementService_ReactivateProjectUserGrant_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, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"projects", "project_id", "users", "user_id", "grants", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_SearchProjectGrantUserGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3, 2, 4}, []string{"projectgrants", "project_grant_id", "users", "grants", "_search"}, "")) + pattern_ManagementService_SearchProjectGrantUserGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3, 2, 4}, []string{"projectgrants", "project_grant_id", "users", "grants", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ProjectGrantUserGrantByID_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, 1, 0, 4, 1, 5, 5}, []string{"projectgrants", "project_grant_id", "users", "user_id", "grants", "id"}, "")) + pattern_ManagementService_ProjectGrantUserGrantByID_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, 1, 0, 4, 1, 5, 5}, []string{"projectgrants", "project_grant_id", "users", "user_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_CreateProjectGrantUserGrant_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{"projectgrants", "project_grant_id", "users", "user_id", "grants"}, "")) + pattern_ManagementService_CreateProjectGrantUserGrant_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{"projectgrants", "project_grant_id", "users", "user_id", "grants"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_UpdateProjectGrantUserGrant_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, 1, 0, 4, 1, 5, 5}, []string{"projectgrants", "project_grant_id", "users", "user_id", "grants", "id"}, "")) + pattern_ManagementService_UpdateProjectGrantUserGrant_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, 1, 0, 4, 1, 5, 5}, []string{"projectgrants", "project_grant_id", "users", "user_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_DeactivateProjectGrantUserGrant_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, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"projectgrants", "project_grant_id", "users", "user_id", "grants", "id", "_deactivate"}, "")) + pattern_ManagementService_DeactivateProjectGrantUserGrant_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, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"projectgrants", "project_grant_id", "users", "user_id", "grants", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_ManagementService_ReactivateProjectGrantUserGrant_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, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"projectgrants", "project_grant_id", "users", "user_id", "grants", "id", "_reactivate"}, "")) + pattern_ManagementService_ReactivateProjectGrantUserGrant_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, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"projectgrants", "project_grant_id", "users", "user_id", "grants", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) ) var ( diff --git a/pkg/management/api/grpc/management.swagger.json b/pkg/grpc/management/management.swagger.json similarity index 100% rename from pkg/management/api/grpc/management.swagger.json rename to pkg/grpc/management/management.swagger.json diff --git a/pkg/management/api/grpc/mock/management.proto.mock.go b/pkg/grpc/management/mock/management.proto.mock.go similarity index 84% rename from pkg/management/api/grpc/mock/management.proto.mock.go rename to pkg/grpc/management/mock/management.proto.mock.go index 41b87b7f5e..5804a9a293 100644 --- a/pkg/management/api/grpc/mock/management.proto.mock.go +++ b/pkg/grpc/management/mock/management.proto.mock.go @@ -1,14 +1,14 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/caos/zitadel/pkg/management/api/grpc (interfaces: ManagementServiceClient) +// Source: github.com/caos/zitadel/pkg/grpc/management (interfaces: ManagementServiceClient) // Package api is a generated GoMock package. package api import ( context "context" - grpc "github.com/caos/zitadel/pkg/management/api/grpc" + management "github.com/caos/zitadel/pkg/grpc/management" gomock "github.com/golang/mock/gomock" - grpc0 "google.golang.org/grpc" + grpc "google.golang.org/grpc" emptypb "google.golang.org/protobuf/types/known/emptypb" structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" @@ -38,14 +38,14 @@ func (m *MockManagementServiceClient) EXPECT() *MockManagementServiceClientMockR } // AddMyOrgDomain mocks base method -func (m *MockManagementServiceClient) AddMyOrgDomain(arg0 context.Context, arg1 *grpc.AddOrgDomainRequest, arg2 ...grpc0.CallOption) (*grpc.OrgDomain, error) { +func (m *MockManagementServiceClient) AddMyOrgDomain(arg0 context.Context, arg1 *management.AddOrgDomainRequest, arg2 ...grpc.CallOption) (*management.OrgDomain, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddMyOrgDomain", varargs...) - ret0, _ := ret[0].(*grpc.OrgDomain) + ret0, _ := ret[0].(*management.OrgDomain) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -58,14 +58,14 @@ func (mr *MockManagementServiceClientMockRecorder) AddMyOrgDomain(arg0, arg1 int } // AddMyOrgMember mocks base method -func (m *MockManagementServiceClient) AddMyOrgMember(arg0 context.Context, arg1 *grpc.AddOrgMemberRequest, arg2 ...grpc0.CallOption) (*grpc.OrgMember, error) { +func (m *MockManagementServiceClient) AddMyOrgMember(arg0 context.Context, arg1 *management.AddOrgMemberRequest, arg2 ...grpc.CallOption) (*management.OrgMember, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddMyOrgMember", varargs...) - ret0, _ := ret[0].(*grpc.OrgMember) + ret0, _ := ret[0].(*management.OrgMember) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -78,14 +78,14 @@ func (mr *MockManagementServiceClientMockRecorder) AddMyOrgMember(arg0, arg1 int } // AddProjectGrantMember mocks base method -func (m *MockManagementServiceClient) AddProjectGrantMember(arg0 context.Context, arg1 *grpc.ProjectGrantMemberAdd, arg2 ...grpc0.CallOption) (*grpc.ProjectGrantMember, error) { +func (m *MockManagementServiceClient) AddProjectGrantMember(arg0 context.Context, arg1 *management.ProjectGrantMemberAdd, arg2 ...grpc.CallOption) (*management.ProjectGrantMember, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddProjectGrantMember", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrantMember) + ret0, _ := ret[0].(*management.ProjectGrantMember) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -98,14 +98,14 @@ func (mr *MockManagementServiceClientMockRecorder) AddProjectGrantMember(arg0, a } // AddProjectMember mocks base method -func (m *MockManagementServiceClient) AddProjectMember(arg0 context.Context, arg1 *grpc.ProjectMemberAdd, arg2 ...grpc0.CallOption) (*grpc.ProjectMember, error) { +func (m *MockManagementServiceClient) AddProjectMember(arg0 context.Context, arg1 *management.ProjectMemberAdd, arg2 ...grpc.CallOption) (*management.ProjectMember, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddProjectMember", varargs...) - ret0, _ := ret[0].(*grpc.ProjectMember) + ret0, _ := ret[0].(*management.ProjectMember) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -118,14 +118,14 @@ func (mr *MockManagementServiceClientMockRecorder) AddProjectMember(arg0, arg1 i } // AddProjectRole mocks base method -func (m *MockManagementServiceClient) AddProjectRole(arg0 context.Context, arg1 *grpc.ProjectRoleAdd, arg2 ...grpc0.CallOption) (*grpc.ProjectRole, error) { +func (m *MockManagementServiceClient) AddProjectRole(arg0 context.Context, arg1 *management.ProjectRoleAdd, arg2 ...grpc.CallOption) (*management.ProjectRole, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddProjectRole", varargs...) - ret0, _ := ret[0].(*grpc.ProjectRole) + ret0, _ := ret[0].(*management.ProjectRole) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -138,14 +138,14 @@ func (mr *MockManagementServiceClientMockRecorder) AddProjectRole(arg0, arg1 int } // ApplicationByID mocks base method -func (m *MockManagementServiceClient) ApplicationByID(arg0 context.Context, arg1 *grpc.ApplicationID, arg2 ...grpc0.CallOption) (*grpc.ApplicationView, error) { +func (m *MockManagementServiceClient) ApplicationByID(arg0 context.Context, arg1 *management.ApplicationID, arg2 ...grpc.CallOption) (*management.ApplicationView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ApplicationByID", varargs...) - ret0, _ := ret[0].(*grpc.ApplicationView) + ret0, _ := ret[0].(*management.ApplicationView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -158,14 +158,14 @@ func (mr *MockManagementServiceClientMockRecorder) ApplicationByID(arg0, arg1 in } // ApplicationChanges mocks base method -func (m *MockManagementServiceClient) ApplicationChanges(arg0 context.Context, arg1 *grpc.ChangeRequest, arg2 ...grpc0.CallOption) (*grpc.Changes, error) { +func (m *MockManagementServiceClient) ApplicationChanges(arg0 context.Context, arg1 *management.ChangeRequest, arg2 ...grpc.CallOption) (*management.Changes, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ApplicationChanges", varargs...) - ret0, _ := ret[0].(*grpc.Changes) + ret0, _ := ret[0].(*management.Changes) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -178,7 +178,7 @@ func (mr *MockManagementServiceClientMockRecorder) ApplicationChanges(arg0, arg1 } // BulkAddProjectRole mocks base method -func (m *MockManagementServiceClient) BulkAddProjectRole(arg0 context.Context, arg1 *grpc.ProjectRoleAddBulk, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) BulkAddProjectRole(arg0 context.Context, arg1 *management.ProjectRoleAddBulk, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -198,7 +198,7 @@ func (mr *MockManagementServiceClientMockRecorder) BulkAddProjectRole(arg0, arg1 } // BulkCreateUserGrant mocks base method -func (m *MockManagementServiceClient) BulkCreateUserGrant(arg0 context.Context, arg1 *grpc.UserGrantCreateBulk, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) BulkCreateUserGrant(arg0 context.Context, arg1 *management.UserGrantCreateBulk, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -218,7 +218,7 @@ func (mr *MockManagementServiceClientMockRecorder) BulkCreateUserGrant(arg0, arg } // BulkRemoveUserGrant mocks base method -func (m *MockManagementServiceClient) BulkRemoveUserGrant(arg0 context.Context, arg1 *grpc.UserGrantRemoveBulk, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) BulkRemoveUserGrant(arg0 context.Context, arg1 *management.UserGrantRemoveBulk, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -238,7 +238,7 @@ func (mr *MockManagementServiceClientMockRecorder) BulkRemoveUserGrant(arg0, arg } // BulkUpdateUserGrant mocks base method -func (m *MockManagementServiceClient) BulkUpdateUserGrant(arg0 context.Context, arg1 *grpc.UserGrantUpdateBulk, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) BulkUpdateUserGrant(arg0 context.Context, arg1 *management.UserGrantUpdateBulk, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -258,14 +258,14 @@ func (mr *MockManagementServiceClientMockRecorder) BulkUpdateUserGrant(arg0, arg } // ChangeMyOrgMember mocks base method -func (m *MockManagementServiceClient) ChangeMyOrgMember(arg0 context.Context, arg1 *grpc.ChangeOrgMemberRequest, arg2 ...grpc0.CallOption) (*grpc.OrgMember, error) { +func (m *MockManagementServiceClient) ChangeMyOrgMember(arg0 context.Context, arg1 *management.ChangeOrgMemberRequest, arg2 ...grpc.CallOption) (*management.OrgMember, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ChangeMyOrgMember", varargs...) - ret0, _ := ret[0].(*grpc.OrgMember) + ret0, _ := ret[0].(*management.OrgMember) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -278,14 +278,14 @@ func (mr *MockManagementServiceClientMockRecorder) ChangeMyOrgMember(arg0, arg1 } // ChangeProjectGrantMember mocks base method -func (m *MockManagementServiceClient) ChangeProjectGrantMember(arg0 context.Context, arg1 *grpc.ProjectGrantMemberChange, arg2 ...grpc0.CallOption) (*grpc.ProjectGrantMember, error) { +func (m *MockManagementServiceClient) ChangeProjectGrantMember(arg0 context.Context, arg1 *management.ProjectGrantMemberChange, arg2 ...grpc.CallOption) (*management.ProjectGrantMember, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ChangeProjectGrantMember", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrantMember) + ret0, _ := ret[0].(*management.ProjectGrantMember) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -298,14 +298,14 @@ func (mr *MockManagementServiceClientMockRecorder) ChangeProjectGrantMember(arg0 } // ChangeProjectMember mocks base method -func (m *MockManagementServiceClient) ChangeProjectMember(arg0 context.Context, arg1 *grpc.ProjectMemberChange, arg2 ...grpc0.CallOption) (*grpc.ProjectMember, error) { +func (m *MockManagementServiceClient) ChangeProjectMember(arg0 context.Context, arg1 *management.ProjectMemberChange, arg2 ...grpc.CallOption) (*management.ProjectMember, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ChangeProjectMember", varargs...) - ret0, _ := ret[0].(*grpc.ProjectMember) + ret0, _ := ret[0].(*management.ProjectMember) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -318,14 +318,14 @@ func (mr *MockManagementServiceClientMockRecorder) ChangeProjectMember(arg0, arg } // ChangeProjectRole mocks base method -func (m *MockManagementServiceClient) ChangeProjectRole(arg0 context.Context, arg1 *grpc.ProjectRoleChange, arg2 ...grpc0.CallOption) (*grpc.ProjectRole, error) { +func (m *MockManagementServiceClient) ChangeProjectRole(arg0 context.Context, arg1 *management.ProjectRoleChange, arg2 ...grpc.CallOption) (*management.ProjectRole, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ChangeProjectRole", varargs...) - ret0, _ := ret[0].(*grpc.ProjectRole) + ret0, _ := ret[0].(*management.ProjectRole) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -338,14 +338,14 @@ func (mr *MockManagementServiceClientMockRecorder) ChangeProjectRole(arg0, arg1 } // ChangeUserEmail mocks base method -func (m *MockManagementServiceClient) ChangeUserEmail(arg0 context.Context, arg1 *grpc.UpdateUserEmailRequest, arg2 ...grpc0.CallOption) (*grpc.UserEmail, error) { +func (m *MockManagementServiceClient) ChangeUserEmail(arg0 context.Context, arg1 *management.UpdateUserEmailRequest, arg2 ...grpc.CallOption) (*management.UserEmail, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ChangeUserEmail", varargs...) - ret0, _ := ret[0].(*grpc.UserEmail) + ret0, _ := ret[0].(*management.UserEmail) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -358,14 +358,14 @@ func (mr *MockManagementServiceClientMockRecorder) ChangeUserEmail(arg0, arg1 in } // ChangeUserPhone mocks base method -func (m *MockManagementServiceClient) ChangeUserPhone(arg0 context.Context, arg1 *grpc.UpdateUserPhoneRequest, arg2 ...grpc0.CallOption) (*grpc.UserPhone, error) { +func (m *MockManagementServiceClient) ChangeUserPhone(arg0 context.Context, arg1 *management.UpdateUserPhoneRequest, arg2 ...grpc.CallOption) (*management.UserPhone, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ChangeUserPhone", varargs...) - ret0, _ := ret[0].(*grpc.UserPhone) + ret0, _ := ret[0].(*management.UserPhone) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -378,14 +378,14 @@ func (mr *MockManagementServiceClientMockRecorder) ChangeUserPhone(arg0, arg1 in } // CreateOIDCApplication mocks base method -func (m *MockManagementServiceClient) CreateOIDCApplication(arg0 context.Context, arg1 *grpc.OIDCApplicationCreate, arg2 ...grpc0.CallOption) (*grpc.Application, error) { +func (m *MockManagementServiceClient) CreateOIDCApplication(arg0 context.Context, arg1 *management.OIDCApplicationCreate, arg2 ...grpc.CallOption) (*management.Application, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateOIDCApplication", varargs...) - ret0, _ := ret[0].(*grpc.Application) + ret0, _ := ret[0].(*management.Application) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -398,14 +398,14 @@ func (mr *MockManagementServiceClientMockRecorder) CreateOIDCApplication(arg0, a } // CreatePasswordAgePolicy mocks base method -func (m *MockManagementServiceClient) CreatePasswordAgePolicy(arg0 context.Context, arg1 *grpc.PasswordAgePolicyCreate, arg2 ...grpc0.CallOption) (*grpc.PasswordAgePolicy, error) { +func (m *MockManagementServiceClient) CreatePasswordAgePolicy(arg0 context.Context, arg1 *management.PasswordAgePolicyCreate, arg2 ...grpc.CallOption) (*management.PasswordAgePolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreatePasswordAgePolicy", varargs...) - ret0, _ := ret[0].(*grpc.PasswordAgePolicy) + ret0, _ := ret[0].(*management.PasswordAgePolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -418,14 +418,14 @@ func (mr *MockManagementServiceClientMockRecorder) CreatePasswordAgePolicy(arg0, } // CreatePasswordComplexityPolicy mocks base method -func (m *MockManagementServiceClient) CreatePasswordComplexityPolicy(arg0 context.Context, arg1 *grpc.PasswordComplexityPolicyCreate, arg2 ...grpc0.CallOption) (*grpc.PasswordComplexityPolicy, error) { +func (m *MockManagementServiceClient) CreatePasswordComplexityPolicy(arg0 context.Context, arg1 *management.PasswordComplexityPolicyCreate, arg2 ...grpc.CallOption) (*management.PasswordComplexityPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreatePasswordComplexityPolicy", varargs...) - ret0, _ := ret[0].(*grpc.PasswordComplexityPolicy) + ret0, _ := ret[0].(*management.PasswordComplexityPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -438,14 +438,14 @@ func (mr *MockManagementServiceClientMockRecorder) CreatePasswordComplexityPolic } // CreatePasswordLockoutPolicy mocks base method -func (m *MockManagementServiceClient) CreatePasswordLockoutPolicy(arg0 context.Context, arg1 *grpc.PasswordLockoutPolicyCreate, arg2 ...grpc0.CallOption) (*grpc.PasswordLockoutPolicy, error) { +func (m *MockManagementServiceClient) CreatePasswordLockoutPolicy(arg0 context.Context, arg1 *management.PasswordLockoutPolicyCreate, arg2 ...grpc.CallOption) (*management.PasswordLockoutPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreatePasswordLockoutPolicy", varargs...) - ret0, _ := ret[0].(*grpc.PasswordLockoutPolicy) + ret0, _ := ret[0].(*management.PasswordLockoutPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -458,14 +458,14 @@ func (mr *MockManagementServiceClientMockRecorder) CreatePasswordLockoutPolicy(a } // CreateProject mocks base method -func (m *MockManagementServiceClient) CreateProject(arg0 context.Context, arg1 *grpc.ProjectCreateRequest, arg2 ...grpc0.CallOption) (*grpc.Project, error) { +func (m *MockManagementServiceClient) CreateProject(arg0 context.Context, arg1 *management.ProjectCreateRequest, arg2 ...grpc.CallOption) (*management.Project, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateProject", varargs...) - ret0, _ := ret[0].(*grpc.Project) + ret0, _ := ret[0].(*management.Project) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -478,14 +478,14 @@ func (mr *MockManagementServiceClientMockRecorder) CreateProject(arg0, arg1 inte } // CreateProjectGrant mocks base method -func (m *MockManagementServiceClient) CreateProjectGrant(arg0 context.Context, arg1 *grpc.ProjectGrantCreate, arg2 ...grpc0.CallOption) (*grpc.ProjectGrant, error) { +func (m *MockManagementServiceClient) CreateProjectGrant(arg0 context.Context, arg1 *management.ProjectGrantCreate, arg2 ...grpc.CallOption) (*management.ProjectGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateProjectGrant", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrant) + ret0, _ := ret[0].(*management.ProjectGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -498,14 +498,14 @@ func (mr *MockManagementServiceClientMockRecorder) CreateProjectGrant(arg0, arg1 } // CreateProjectGrantUserGrant mocks base method -func (m *MockManagementServiceClient) CreateProjectGrantUserGrant(arg0 context.Context, arg1 *grpc.ProjectGrantUserGrantCreate, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) CreateProjectGrantUserGrant(arg0 context.Context, arg1 *management.ProjectGrantUserGrantCreate, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateProjectGrantUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -518,14 +518,14 @@ func (mr *MockManagementServiceClientMockRecorder) CreateProjectGrantUserGrant(a } // CreateProjectUserGrant mocks base method -func (m *MockManagementServiceClient) CreateProjectUserGrant(arg0 context.Context, arg1 *grpc.UserGrantCreate, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) CreateProjectUserGrant(arg0 context.Context, arg1 *management.UserGrantCreate, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateProjectUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -538,14 +538,14 @@ func (mr *MockManagementServiceClientMockRecorder) CreateProjectUserGrant(arg0, } // CreateUser mocks base method -func (m *MockManagementServiceClient) CreateUser(arg0 context.Context, arg1 *grpc.CreateUserRequest, arg2 ...grpc0.CallOption) (*grpc.User, error) { +func (m *MockManagementServiceClient) CreateUser(arg0 context.Context, arg1 *management.CreateUserRequest, arg2 ...grpc.CallOption) (*management.User, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateUser", varargs...) - ret0, _ := ret[0].(*grpc.User) + ret0, _ := ret[0].(*management.User) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -558,14 +558,14 @@ func (mr *MockManagementServiceClientMockRecorder) CreateUser(arg0, arg1 interfa } // CreateUserGrant mocks base method -func (m *MockManagementServiceClient) CreateUserGrant(arg0 context.Context, arg1 *grpc.UserGrantCreate, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) CreateUserGrant(arg0 context.Context, arg1 *management.UserGrantCreate, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -578,14 +578,14 @@ func (mr *MockManagementServiceClientMockRecorder) CreateUserGrant(arg0, arg1 in } // DeactivateApplication mocks base method -func (m *MockManagementServiceClient) DeactivateApplication(arg0 context.Context, arg1 *grpc.ApplicationID, arg2 ...grpc0.CallOption) (*grpc.Application, error) { +func (m *MockManagementServiceClient) DeactivateApplication(arg0 context.Context, arg1 *management.ApplicationID, arg2 ...grpc.CallOption) (*management.Application, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeactivateApplication", varargs...) - ret0, _ := ret[0].(*grpc.Application) + ret0, _ := ret[0].(*management.Application) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -598,14 +598,14 @@ func (mr *MockManagementServiceClientMockRecorder) DeactivateApplication(arg0, a } // DeactivateMyOrg mocks base method -func (m *MockManagementServiceClient) DeactivateMyOrg(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.Org, error) { +func (m *MockManagementServiceClient) DeactivateMyOrg(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.Org, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeactivateMyOrg", varargs...) - ret0, _ := ret[0].(*grpc.Org) + ret0, _ := ret[0].(*management.Org) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -618,14 +618,14 @@ func (mr *MockManagementServiceClientMockRecorder) DeactivateMyOrg(arg0, arg1 in } // DeactivateProject mocks base method -func (m *MockManagementServiceClient) DeactivateProject(arg0 context.Context, arg1 *grpc.ProjectID, arg2 ...grpc0.CallOption) (*grpc.Project, error) { +func (m *MockManagementServiceClient) DeactivateProject(arg0 context.Context, arg1 *management.ProjectID, arg2 ...grpc.CallOption) (*management.Project, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeactivateProject", varargs...) - ret0, _ := ret[0].(*grpc.Project) + ret0, _ := ret[0].(*management.Project) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -638,14 +638,14 @@ func (mr *MockManagementServiceClientMockRecorder) DeactivateProject(arg0, arg1 } // DeactivateProjectGrant mocks base method -func (m *MockManagementServiceClient) DeactivateProjectGrant(arg0 context.Context, arg1 *grpc.ProjectGrantID, arg2 ...grpc0.CallOption) (*grpc.ProjectGrant, error) { +func (m *MockManagementServiceClient) DeactivateProjectGrant(arg0 context.Context, arg1 *management.ProjectGrantID, arg2 ...grpc.CallOption) (*management.ProjectGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeactivateProjectGrant", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrant) + ret0, _ := ret[0].(*management.ProjectGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -658,14 +658,14 @@ func (mr *MockManagementServiceClientMockRecorder) DeactivateProjectGrant(arg0, } // DeactivateProjectGrantUserGrant mocks base method -func (m *MockManagementServiceClient) DeactivateProjectGrantUserGrant(arg0 context.Context, arg1 *grpc.ProjectGrantUserGrantID, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) DeactivateProjectGrantUserGrant(arg0 context.Context, arg1 *management.ProjectGrantUserGrantID, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeactivateProjectGrantUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -678,14 +678,14 @@ func (mr *MockManagementServiceClientMockRecorder) DeactivateProjectGrantUserGra } // DeactivateProjectUserGrant mocks base method -func (m *MockManagementServiceClient) DeactivateProjectUserGrant(arg0 context.Context, arg1 *grpc.ProjectUserGrantID, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) DeactivateProjectUserGrant(arg0 context.Context, arg1 *management.ProjectUserGrantID, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeactivateProjectUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -698,14 +698,14 @@ func (mr *MockManagementServiceClientMockRecorder) DeactivateProjectUserGrant(ar } // DeactivateUser mocks base method -func (m *MockManagementServiceClient) DeactivateUser(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.User, error) { +func (m *MockManagementServiceClient) DeactivateUser(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*management.User, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeactivateUser", varargs...) - ret0, _ := ret[0].(*grpc.User) + ret0, _ := ret[0].(*management.User) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -718,14 +718,14 @@ func (mr *MockManagementServiceClientMockRecorder) DeactivateUser(arg0, arg1 int } // DeactivateUserGrant mocks base method -func (m *MockManagementServiceClient) DeactivateUserGrant(arg0 context.Context, arg1 *grpc.UserGrantID, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) DeactivateUserGrant(arg0 context.Context, arg1 *management.UserGrantID, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeactivateUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -738,7 +738,7 @@ func (mr *MockManagementServiceClientMockRecorder) DeactivateUserGrant(arg0, arg } // DeletePasswordAgePolicy mocks base method -func (m *MockManagementServiceClient) DeletePasswordAgePolicy(arg0 context.Context, arg1 *grpc.PasswordAgePolicyID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) DeletePasswordAgePolicy(arg0 context.Context, arg1 *management.PasswordAgePolicyID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -758,7 +758,7 @@ func (mr *MockManagementServiceClientMockRecorder) DeletePasswordAgePolicy(arg0, } // DeletePasswordComplexityPolicy mocks base method -func (m *MockManagementServiceClient) DeletePasswordComplexityPolicy(arg0 context.Context, arg1 *grpc.PasswordComplexityPolicyID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) DeletePasswordComplexityPolicy(arg0 context.Context, arg1 *management.PasswordComplexityPolicyID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -778,7 +778,7 @@ func (mr *MockManagementServiceClientMockRecorder) DeletePasswordComplexityPolic } // DeletePasswordLockoutPolicy mocks base method -func (m *MockManagementServiceClient) DeletePasswordLockoutPolicy(arg0 context.Context, arg1 *grpc.PasswordLockoutPolicyID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) DeletePasswordLockoutPolicy(arg0 context.Context, arg1 *management.PasswordLockoutPolicyID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -798,7 +798,7 @@ func (mr *MockManagementServiceClientMockRecorder) DeletePasswordLockoutPolicy(a } // DeleteUser mocks base method -func (m *MockManagementServiceClient) DeleteUser(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) DeleteUser(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -818,14 +818,14 @@ func (mr *MockManagementServiceClientMockRecorder) DeleteUser(arg0, arg1 interfa } // GetGrantedProjectByID mocks base method -func (m *MockManagementServiceClient) GetGrantedProjectByID(arg0 context.Context, arg1 *grpc.ProjectGrantID, arg2 ...grpc0.CallOption) (*grpc.ProjectGrantView, error) { +func (m *MockManagementServiceClient) GetGrantedProjectByID(arg0 context.Context, arg1 *management.ProjectGrantID, arg2 ...grpc.CallOption) (*management.ProjectGrantView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetGrantedProjectByID", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrantView) + ret0, _ := ret[0].(*management.ProjectGrantView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -838,14 +838,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetGrantedProjectByID(arg0, a } // GetIam mocks base method -func (m *MockManagementServiceClient) GetIam(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.Iam, error) { +func (m *MockManagementServiceClient) GetIam(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.Iam, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetIam", varargs...) - ret0, _ := ret[0].(*grpc.Iam) + ret0, _ := ret[0].(*management.Iam) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -858,14 +858,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetIam(arg0, arg1 interface{} } // GetMyOrg mocks base method -func (m *MockManagementServiceClient) GetMyOrg(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.OrgView, error) { +func (m *MockManagementServiceClient) GetMyOrg(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.OrgView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyOrg", varargs...) - ret0, _ := ret[0].(*grpc.OrgView) + ret0, _ := ret[0].(*management.OrgView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -878,14 +878,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetMyOrg(arg0, arg1 interface } // GetMyOrgIamPolicy mocks base method -func (m *MockManagementServiceClient) GetMyOrgIamPolicy(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.OrgIamPolicy, error) { +func (m *MockManagementServiceClient) GetMyOrgIamPolicy(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.OrgIamPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetMyOrgIamPolicy", varargs...) - ret0, _ := ret[0].(*grpc.OrgIamPolicy) + ret0, _ := ret[0].(*management.OrgIamPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -898,14 +898,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetMyOrgIamPolicy(arg0, arg1 } // GetOrgByDomainGlobal mocks base method -func (m *MockManagementServiceClient) GetOrgByDomainGlobal(arg0 context.Context, arg1 *grpc.Domain, arg2 ...grpc0.CallOption) (*grpc.OrgView, error) { +func (m *MockManagementServiceClient) GetOrgByDomainGlobal(arg0 context.Context, arg1 *management.Domain, arg2 ...grpc.CallOption) (*management.OrgView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetOrgByDomainGlobal", varargs...) - ret0, _ := ret[0].(*grpc.OrgView) + ret0, _ := ret[0].(*management.OrgView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -918,14 +918,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetOrgByDomainGlobal(arg0, ar } // GetOrgMemberRoles mocks base method -func (m *MockManagementServiceClient) GetOrgMemberRoles(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.OrgMemberRoles, error) { +func (m *MockManagementServiceClient) GetOrgMemberRoles(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.OrgMemberRoles, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetOrgMemberRoles", varargs...) - ret0, _ := ret[0].(*grpc.OrgMemberRoles) + ret0, _ := ret[0].(*management.OrgMemberRoles) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -938,14 +938,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetOrgMemberRoles(arg0, arg1 } // GetPasswordAgePolicy mocks base method -func (m *MockManagementServiceClient) GetPasswordAgePolicy(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.PasswordAgePolicy, error) { +func (m *MockManagementServiceClient) GetPasswordAgePolicy(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.PasswordAgePolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetPasswordAgePolicy", varargs...) - ret0, _ := ret[0].(*grpc.PasswordAgePolicy) + ret0, _ := ret[0].(*management.PasswordAgePolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -958,14 +958,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetPasswordAgePolicy(arg0, ar } // GetPasswordComplexityPolicy mocks base method -func (m *MockManagementServiceClient) GetPasswordComplexityPolicy(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.PasswordComplexityPolicy, error) { +func (m *MockManagementServiceClient) GetPasswordComplexityPolicy(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.PasswordComplexityPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetPasswordComplexityPolicy", varargs...) - ret0, _ := ret[0].(*grpc.PasswordComplexityPolicy) + ret0, _ := ret[0].(*management.PasswordComplexityPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -978,14 +978,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetPasswordComplexityPolicy(a } // GetPasswordLockoutPolicy mocks base method -func (m *MockManagementServiceClient) GetPasswordLockoutPolicy(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.PasswordLockoutPolicy, error) { +func (m *MockManagementServiceClient) GetPasswordLockoutPolicy(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.PasswordLockoutPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetPasswordLockoutPolicy", varargs...) - ret0, _ := ret[0].(*grpc.PasswordLockoutPolicy) + ret0, _ := ret[0].(*management.PasswordLockoutPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -998,14 +998,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetPasswordLockoutPolicy(arg0 } // GetProjectGrantMemberRoles mocks base method -func (m *MockManagementServiceClient) GetProjectGrantMemberRoles(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.ProjectGrantMemberRoles, error) { +func (m *MockManagementServiceClient) GetProjectGrantMemberRoles(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.ProjectGrantMemberRoles, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetProjectGrantMemberRoles", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrantMemberRoles) + ret0, _ := ret[0].(*management.ProjectGrantMemberRoles) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1018,14 +1018,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetProjectGrantMemberRoles(ar } // GetProjectMemberRoles mocks base method -func (m *MockManagementServiceClient) GetProjectMemberRoles(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.ProjectMemberRoles, error) { +func (m *MockManagementServiceClient) GetProjectMemberRoles(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.ProjectMemberRoles, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetProjectMemberRoles", varargs...) - ret0, _ := ret[0].(*grpc.ProjectMemberRoles) + ret0, _ := ret[0].(*management.ProjectMemberRoles) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1038,14 +1038,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetProjectMemberRoles(arg0, a } // GetUserAddress mocks base method -func (m *MockManagementServiceClient) GetUserAddress(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.UserAddressView, error) { +func (m *MockManagementServiceClient) GetUserAddress(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*management.UserAddressView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetUserAddress", varargs...) - ret0, _ := ret[0].(*grpc.UserAddressView) + ret0, _ := ret[0].(*management.UserAddressView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1058,14 +1058,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetUserAddress(arg0, arg1 int } // GetUserByEmailGlobal mocks base method -func (m *MockManagementServiceClient) GetUserByEmailGlobal(arg0 context.Context, arg1 *grpc.Email, arg2 ...grpc0.CallOption) (*grpc.UserView, error) { +func (m *MockManagementServiceClient) GetUserByEmailGlobal(arg0 context.Context, arg1 *management.Email, arg2 ...grpc.CallOption) (*management.UserView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetUserByEmailGlobal", varargs...) - ret0, _ := ret[0].(*grpc.UserView) + ret0, _ := ret[0].(*management.UserView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1078,14 +1078,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetUserByEmailGlobal(arg0, ar } // GetUserByID mocks base method -func (m *MockManagementServiceClient) GetUserByID(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.UserView, error) { +func (m *MockManagementServiceClient) GetUserByID(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*management.UserView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetUserByID", varargs...) - ret0, _ := ret[0].(*grpc.UserView) + ret0, _ := ret[0].(*management.UserView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1098,14 +1098,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetUserByID(arg0, arg1 interf } // GetUserEmail mocks base method -func (m *MockManagementServiceClient) GetUserEmail(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.UserEmailView, error) { +func (m *MockManagementServiceClient) GetUserEmail(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*management.UserEmailView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetUserEmail", varargs...) - ret0, _ := ret[0].(*grpc.UserEmailView) + ret0, _ := ret[0].(*management.UserEmailView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1118,14 +1118,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetUserEmail(arg0, arg1 inter } // GetUserMfas mocks base method -func (m *MockManagementServiceClient) GetUserMfas(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.MultiFactors, error) { +func (m *MockManagementServiceClient) GetUserMfas(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*management.MultiFactors, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetUserMfas", varargs...) - ret0, _ := ret[0].(*grpc.MultiFactors) + ret0, _ := ret[0].(*management.MultiFactors) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1138,14 +1138,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetUserMfas(arg0, arg1 interf } // GetUserPhone mocks base method -func (m *MockManagementServiceClient) GetUserPhone(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.UserPhoneView, error) { +func (m *MockManagementServiceClient) GetUserPhone(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*management.UserPhoneView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetUserPhone", varargs...) - ret0, _ := ret[0].(*grpc.UserPhoneView) + ret0, _ := ret[0].(*management.UserPhoneView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1158,14 +1158,14 @@ func (mr *MockManagementServiceClientMockRecorder) GetUserPhone(arg0, arg1 inter } // GetUserProfile mocks base method -func (m *MockManagementServiceClient) GetUserProfile(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.UserProfileView, error) { +func (m *MockManagementServiceClient) GetUserProfile(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*management.UserProfileView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetUserProfile", varargs...) - ret0, _ := ret[0].(*grpc.UserProfileView) + ret0, _ := ret[0].(*management.UserProfileView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1178,7 +1178,7 @@ func (mr *MockManagementServiceClientMockRecorder) GetUserProfile(arg0, arg1 int } // Healthz mocks base method -func (m *MockManagementServiceClient) Healthz(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) Healthz(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1198,14 +1198,14 @@ func (mr *MockManagementServiceClientMockRecorder) Healthz(arg0, arg1 interface{ } // IsUserUnique mocks base method -func (m *MockManagementServiceClient) IsUserUnique(arg0 context.Context, arg1 *grpc.UniqueUserRequest, arg2 ...grpc0.CallOption) (*grpc.UniqueUserResponse, error) { +func (m *MockManagementServiceClient) IsUserUnique(arg0 context.Context, arg1 *management.UniqueUserRequest, arg2 ...grpc.CallOption) (*management.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) + ret0, _ := ret[0].(*management.UniqueUserResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1218,14 +1218,14 @@ func (mr *MockManagementServiceClientMockRecorder) IsUserUnique(arg0, arg1 inter } // LockUser mocks base method -func (m *MockManagementServiceClient) LockUser(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.User, error) { +func (m *MockManagementServiceClient) LockUser(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*management.User, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "LockUser", varargs...) - ret0, _ := ret[0].(*grpc.User) + ret0, _ := ret[0].(*management.User) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1238,14 +1238,14 @@ func (mr *MockManagementServiceClientMockRecorder) LockUser(arg0, arg1 interface } // OrgChanges mocks base method -func (m *MockManagementServiceClient) OrgChanges(arg0 context.Context, arg1 *grpc.ChangeRequest, arg2 ...grpc0.CallOption) (*grpc.Changes, error) { +func (m *MockManagementServiceClient) OrgChanges(arg0 context.Context, arg1 *management.ChangeRequest, arg2 ...grpc.CallOption) (*management.Changes, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "OrgChanges", varargs...) - ret0, _ := ret[0].(*grpc.Changes) + ret0, _ := ret[0].(*management.Changes) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1258,14 +1258,14 @@ func (mr *MockManagementServiceClientMockRecorder) OrgChanges(arg0, arg1 interfa } // ProjectByID mocks base method -func (m *MockManagementServiceClient) ProjectByID(arg0 context.Context, arg1 *grpc.ProjectID, arg2 ...grpc0.CallOption) (*grpc.ProjectView, error) { +func (m *MockManagementServiceClient) ProjectByID(arg0 context.Context, arg1 *management.ProjectID, arg2 ...grpc.CallOption) (*management.ProjectView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ProjectByID", varargs...) - ret0, _ := ret[0].(*grpc.ProjectView) + ret0, _ := ret[0].(*management.ProjectView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1278,14 +1278,14 @@ func (mr *MockManagementServiceClientMockRecorder) ProjectByID(arg0, arg1 interf } // ProjectChanges mocks base method -func (m *MockManagementServiceClient) ProjectChanges(arg0 context.Context, arg1 *grpc.ChangeRequest, arg2 ...grpc0.CallOption) (*grpc.Changes, error) { +func (m *MockManagementServiceClient) ProjectChanges(arg0 context.Context, arg1 *management.ChangeRequest, arg2 ...grpc.CallOption) (*management.Changes, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ProjectChanges", varargs...) - ret0, _ := ret[0].(*grpc.Changes) + ret0, _ := ret[0].(*management.Changes) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1298,14 +1298,14 @@ func (mr *MockManagementServiceClientMockRecorder) ProjectChanges(arg0, arg1 int } // ProjectGrantByID mocks base method -func (m *MockManagementServiceClient) ProjectGrantByID(arg0 context.Context, arg1 *grpc.ProjectGrantID, arg2 ...grpc0.CallOption) (*grpc.ProjectGrantView, error) { +func (m *MockManagementServiceClient) ProjectGrantByID(arg0 context.Context, arg1 *management.ProjectGrantID, arg2 ...grpc.CallOption) (*management.ProjectGrantView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ProjectGrantByID", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrantView) + ret0, _ := ret[0].(*management.ProjectGrantView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1318,14 +1318,14 @@ func (mr *MockManagementServiceClientMockRecorder) ProjectGrantByID(arg0, arg1 i } // ProjectGrantUserGrantByID mocks base method -func (m *MockManagementServiceClient) ProjectGrantUserGrantByID(arg0 context.Context, arg1 *grpc.ProjectGrantUserGrantID, arg2 ...grpc0.CallOption) (*grpc.UserGrantView, error) { +func (m *MockManagementServiceClient) ProjectGrantUserGrantByID(arg0 context.Context, arg1 *management.ProjectGrantUserGrantID, arg2 ...grpc.CallOption) (*management.UserGrantView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ProjectGrantUserGrantByID", varargs...) - ret0, _ := ret[0].(*grpc.UserGrantView) + ret0, _ := ret[0].(*management.UserGrantView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1338,14 +1338,14 @@ func (mr *MockManagementServiceClientMockRecorder) ProjectGrantUserGrantByID(arg } // ProjectUserGrantByID mocks base method -func (m *MockManagementServiceClient) ProjectUserGrantByID(arg0 context.Context, arg1 *grpc.ProjectUserGrantID, arg2 ...grpc0.CallOption) (*grpc.UserGrantView, error) { +func (m *MockManagementServiceClient) ProjectUserGrantByID(arg0 context.Context, arg1 *management.ProjectUserGrantID, arg2 ...grpc.CallOption) (*management.UserGrantView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ProjectUserGrantByID", varargs...) - ret0, _ := ret[0].(*grpc.UserGrantView) + ret0, _ := ret[0].(*management.UserGrantView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1358,14 +1358,14 @@ func (mr *MockManagementServiceClientMockRecorder) ProjectUserGrantByID(arg0, ar } // ReactivateApplication mocks base method -func (m *MockManagementServiceClient) ReactivateApplication(arg0 context.Context, arg1 *grpc.ApplicationID, arg2 ...grpc0.CallOption) (*grpc.Application, error) { +func (m *MockManagementServiceClient) ReactivateApplication(arg0 context.Context, arg1 *management.ApplicationID, arg2 ...grpc.CallOption) (*management.Application, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ReactivateApplication", varargs...) - ret0, _ := ret[0].(*grpc.Application) + ret0, _ := ret[0].(*management.Application) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1378,14 +1378,14 @@ func (mr *MockManagementServiceClientMockRecorder) ReactivateApplication(arg0, a } // ReactivateMyOrg mocks base method -func (m *MockManagementServiceClient) ReactivateMyOrg(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*grpc.Org, error) { +func (m *MockManagementServiceClient) ReactivateMyOrg(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*management.Org, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ReactivateMyOrg", varargs...) - ret0, _ := ret[0].(*grpc.Org) + ret0, _ := ret[0].(*management.Org) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1398,14 +1398,14 @@ func (mr *MockManagementServiceClientMockRecorder) ReactivateMyOrg(arg0, arg1 in } // ReactivateProject mocks base method -func (m *MockManagementServiceClient) ReactivateProject(arg0 context.Context, arg1 *grpc.ProjectID, arg2 ...grpc0.CallOption) (*grpc.Project, error) { +func (m *MockManagementServiceClient) ReactivateProject(arg0 context.Context, arg1 *management.ProjectID, arg2 ...grpc.CallOption) (*management.Project, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ReactivateProject", varargs...) - ret0, _ := ret[0].(*grpc.Project) + ret0, _ := ret[0].(*management.Project) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1418,14 +1418,14 @@ func (mr *MockManagementServiceClientMockRecorder) ReactivateProject(arg0, arg1 } // ReactivateProjectGrant mocks base method -func (m *MockManagementServiceClient) ReactivateProjectGrant(arg0 context.Context, arg1 *grpc.ProjectGrantID, arg2 ...grpc0.CallOption) (*grpc.ProjectGrant, error) { +func (m *MockManagementServiceClient) ReactivateProjectGrant(arg0 context.Context, arg1 *management.ProjectGrantID, arg2 ...grpc.CallOption) (*management.ProjectGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ReactivateProjectGrant", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrant) + ret0, _ := ret[0].(*management.ProjectGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1438,14 +1438,14 @@ func (mr *MockManagementServiceClientMockRecorder) ReactivateProjectGrant(arg0, } // ReactivateProjectGrantUserGrant mocks base method -func (m *MockManagementServiceClient) ReactivateProjectGrantUserGrant(arg0 context.Context, arg1 *grpc.ProjectGrantUserGrantID, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) ReactivateProjectGrantUserGrant(arg0 context.Context, arg1 *management.ProjectGrantUserGrantID, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ReactivateProjectGrantUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1458,14 +1458,14 @@ func (mr *MockManagementServiceClientMockRecorder) ReactivateProjectGrantUserGra } // ReactivateProjectUserGrant mocks base method -func (m *MockManagementServiceClient) ReactivateProjectUserGrant(arg0 context.Context, arg1 *grpc.ProjectUserGrantID, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) ReactivateProjectUserGrant(arg0 context.Context, arg1 *management.ProjectUserGrantID, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ReactivateProjectUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1478,14 +1478,14 @@ func (mr *MockManagementServiceClientMockRecorder) ReactivateProjectUserGrant(ar } // ReactivateUser mocks base method -func (m *MockManagementServiceClient) ReactivateUser(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.User, error) { +func (m *MockManagementServiceClient) ReactivateUser(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*management.User, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ReactivateUser", varargs...) - ret0, _ := ret[0].(*grpc.User) + ret0, _ := ret[0].(*management.User) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1498,14 +1498,14 @@ func (mr *MockManagementServiceClientMockRecorder) ReactivateUser(arg0, arg1 int } // ReactivateUserGrant mocks base method -func (m *MockManagementServiceClient) ReactivateUserGrant(arg0 context.Context, arg1 *grpc.UserGrantID, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) ReactivateUserGrant(arg0 context.Context, arg1 *management.UserGrantID, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ReactivateUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1518,7 +1518,7 @@ func (mr *MockManagementServiceClientMockRecorder) ReactivateUserGrant(arg0, arg } // Ready mocks base method -func (m *MockManagementServiceClient) Ready(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) Ready(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1538,14 +1538,14 @@ func (mr *MockManagementServiceClientMockRecorder) Ready(arg0, arg1 interface{}, } // RegenerateOIDCClientSecret mocks base method -func (m *MockManagementServiceClient) RegenerateOIDCClientSecret(arg0 context.Context, arg1 *grpc.ApplicationID, arg2 ...grpc0.CallOption) (*grpc.ClientSecret, error) { +func (m *MockManagementServiceClient) RegenerateOIDCClientSecret(arg0 context.Context, arg1 *management.ApplicationID, arg2 ...grpc.CallOption) (*management.ClientSecret, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "RegenerateOIDCClientSecret", varargs...) - ret0, _ := ret[0].(*grpc.ClientSecret) + ret0, _ := ret[0].(*management.ClientSecret) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1558,7 +1558,7 @@ func (mr *MockManagementServiceClientMockRecorder) RegenerateOIDCClientSecret(ar } // RemoveApplication mocks base method -func (m *MockManagementServiceClient) RemoveApplication(arg0 context.Context, arg1 *grpc.ApplicationID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) RemoveApplication(arg0 context.Context, arg1 *management.ApplicationID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1578,7 +1578,7 @@ func (mr *MockManagementServiceClientMockRecorder) RemoveApplication(arg0, arg1 } // RemoveMyOrgDomain mocks base method -func (m *MockManagementServiceClient) RemoveMyOrgDomain(arg0 context.Context, arg1 *grpc.RemoveOrgDomainRequest, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) RemoveMyOrgDomain(arg0 context.Context, arg1 *management.RemoveOrgDomainRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1598,7 +1598,7 @@ func (mr *MockManagementServiceClientMockRecorder) RemoveMyOrgDomain(arg0, arg1 } // RemoveMyOrgMember mocks base method -func (m *MockManagementServiceClient) RemoveMyOrgMember(arg0 context.Context, arg1 *grpc.RemoveOrgMemberRequest, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) RemoveMyOrgMember(arg0 context.Context, arg1 *management.RemoveOrgMemberRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1618,7 +1618,7 @@ func (mr *MockManagementServiceClientMockRecorder) RemoveMyOrgMember(arg0, arg1 } // RemoveProjectGrant mocks base method -func (m *MockManagementServiceClient) RemoveProjectGrant(arg0 context.Context, arg1 *grpc.ProjectGrantID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) RemoveProjectGrant(arg0 context.Context, arg1 *management.ProjectGrantID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1638,7 +1638,7 @@ func (mr *MockManagementServiceClientMockRecorder) RemoveProjectGrant(arg0, arg1 } // RemoveProjectGrantMember mocks base method -func (m *MockManagementServiceClient) RemoveProjectGrantMember(arg0 context.Context, arg1 *grpc.ProjectGrantMemberRemove, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) RemoveProjectGrantMember(arg0 context.Context, arg1 *management.ProjectGrantMemberRemove, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1658,7 +1658,7 @@ func (mr *MockManagementServiceClientMockRecorder) RemoveProjectGrantMember(arg0 } // RemoveProjectMember mocks base method -func (m *MockManagementServiceClient) RemoveProjectMember(arg0 context.Context, arg1 *grpc.ProjectMemberRemove, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) RemoveProjectMember(arg0 context.Context, arg1 *management.ProjectMemberRemove, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1678,7 +1678,7 @@ func (mr *MockManagementServiceClientMockRecorder) RemoveProjectMember(arg0, arg } // RemoveProjectRole mocks base method -func (m *MockManagementServiceClient) RemoveProjectRole(arg0 context.Context, arg1 *grpc.ProjectRoleRemove, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) RemoveProjectRole(arg0 context.Context, arg1 *management.ProjectRoleRemove, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1698,7 +1698,7 @@ func (mr *MockManagementServiceClientMockRecorder) RemoveProjectRole(arg0, arg1 } // RemoveUserGrant mocks base method -func (m *MockManagementServiceClient) RemoveUserGrant(arg0 context.Context, arg1 *grpc.UserGrantID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) RemoveUserGrant(arg0 context.Context, arg1 *management.UserGrantID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1718,7 +1718,7 @@ func (mr *MockManagementServiceClientMockRecorder) RemoveUserGrant(arg0, arg1 in } // RemoveUserPhone mocks base method -func (m *MockManagementServiceClient) RemoveUserPhone(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) RemoveUserPhone(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1738,7 +1738,7 @@ func (mr *MockManagementServiceClientMockRecorder) RemoveUserPhone(arg0, arg1 in } // ResendEmailVerificationMail mocks base method -func (m *MockManagementServiceClient) ResendEmailVerificationMail(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) ResendEmailVerificationMail(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1758,7 +1758,7 @@ func (mr *MockManagementServiceClientMockRecorder) ResendEmailVerificationMail(a } // ResendPhoneVerificationCode mocks base method -func (m *MockManagementServiceClient) ResendPhoneVerificationCode(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) ResendPhoneVerificationCode(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -1778,14 +1778,14 @@ func (mr *MockManagementServiceClientMockRecorder) ResendPhoneVerificationCode(a } // SearchApplications mocks base method -func (m *MockManagementServiceClient) SearchApplications(arg0 context.Context, arg1 *grpc.ApplicationSearchRequest, arg2 ...grpc0.CallOption) (*grpc.ApplicationSearchResponse, error) { +func (m *MockManagementServiceClient) SearchApplications(arg0 context.Context, arg1 *management.ApplicationSearchRequest, arg2 ...grpc.CallOption) (*management.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) + ret0, _ := ret[0].(*management.ApplicationSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1798,14 +1798,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchApplications(arg0, arg1 } // SearchGrantedProjects mocks base method -func (m *MockManagementServiceClient) SearchGrantedProjects(arg0 context.Context, arg1 *grpc.GrantedProjectSearchRequest, arg2 ...grpc0.CallOption) (*grpc.ProjectGrantSearchResponse, error) { +func (m *MockManagementServiceClient) SearchGrantedProjects(arg0 context.Context, arg1 *management.GrantedProjectSearchRequest, arg2 ...grpc.CallOption) (*management.ProjectGrantSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchGrantedProjects", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrantSearchResponse) + ret0, _ := ret[0].(*management.ProjectGrantSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1818,14 +1818,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchGrantedProjects(arg0, a } // SearchMyOrgDomains mocks base method -func (m *MockManagementServiceClient) SearchMyOrgDomains(arg0 context.Context, arg1 *grpc.OrgDomainSearchRequest, arg2 ...grpc0.CallOption) (*grpc.OrgDomainSearchResponse, error) { +func (m *MockManagementServiceClient) SearchMyOrgDomains(arg0 context.Context, arg1 *management.OrgDomainSearchRequest, arg2 ...grpc.CallOption) (*management.OrgDomainSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchMyOrgDomains", varargs...) - ret0, _ := ret[0].(*grpc.OrgDomainSearchResponse) + ret0, _ := ret[0].(*management.OrgDomainSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1838,14 +1838,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchMyOrgDomains(arg0, arg1 } // SearchMyOrgMembers mocks base method -func (m *MockManagementServiceClient) SearchMyOrgMembers(arg0 context.Context, arg1 *grpc.OrgMemberSearchRequest, arg2 ...grpc0.CallOption) (*grpc.OrgMemberSearchResponse, error) { +func (m *MockManagementServiceClient) SearchMyOrgMembers(arg0 context.Context, arg1 *management.OrgMemberSearchRequest, arg2 ...grpc.CallOption) (*management.OrgMemberSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchMyOrgMembers", varargs...) - ret0, _ := ret[0].(*grpc.OrgMemberSearchResponse) + ret0, _ := ret[0].(*management.OrgMemberSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1858,14 +1858,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchMyOrgMembers(arg0, arg1 } // SearchProjectGrantMembers mocks base method -func (m *MockManagementServiceClient) SearchProjectGrantMembers(arg0 context.Context, arg1 *grpc.ProjectGrantMemberSearchRequest, arg2 ...grpc0.CallOption) (*grpc.ProjectGrantMemberSearchResponse, error) { +func (m *MockManagementServiceClient) SearchProjectGrantMembers(arg0 context.Context, arg1 *management.ProjectGrantMemberSearchRequest, arg2 ...grpc.CallOption) (*management.ProjectGrantMemberSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchProjectGrantMembers", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrantMemberSearchResponse) + ret0, _ := ret[0].(*management.ProjectGrantMemberSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1878,14 +1878,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchProjectGrantMembers(arg } // SearchProjectGrantUserGrants mocks base method -func (m *MockManagementServiceClient) SearchProjectGrantUserGrants(arg0 context.Context, arg1 *grpc.ProjectGrantUserGrantSearchRequest, arg2 ...grpc0.CallOption) (*grpc.UserGrantSearchResponse, error) { +func (m *MockManagementServiceClient) SearchProjectGrantUserGrants(arg0 context.Context, arg1 *management.ProjectGrantUserGrantSearchRequest, arg2 ...grpc.CallOption) (*management.UserGrantSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchProjectGrantUserGrants", varargs...) - ret0, _ := ret[0].(*grpc.UserGrantSearchResponse) + ret0, _ := ret[0].(*management.UserGrantSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1898,14 +1898,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchProjectGrantUserGrants( } // SearchProjectGrants mocks base method -func (m *MockManagementServiceClient) SearchProjectGrants(arg0 context.Context, arg1 *grpc.ProjectGrantSearchRequest, arg2 ...grpc0.CallOption) (*grpc.ProjectGrantSearchResponse, error) { +func (m *MockManagementServiceClient) SearchProjectGrants(arg0 context.Context, arg1 *management.ProjectGrantSearchRequest, arg2 ...grpc.CallOption) (*management.ProjectGrantSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchProjectGrants", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrantSearchResponse) + ret0, _ := ret[0].(*management.ProjectGrantSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1918,14 +1918,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchProjectGrants(arg0, arg } // SearchProjectMembers mocks base method -func (m *MockManagementServiceClient) SearchProjectMembers(arg0 context.Context, arg1 *grpc.ProjectMemberSearchRequest, arg2 ...grpc0.CallOption) (*grpc.ProjectMemberSearchResponse, error) { +func (m *MockManagementServiceClient) SearchProjectMembers(arg0 context.Context, arg1 *management.ProjectMemberSearchRequest, arg2 ...grpc.CallOption) (*management.ProjectMemberSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchProjectMembers", varargs...) - ret0, _ := ret[0].(*grpc.ProjectMemberSearchResponse) + ret0, _ := ret[0].(*management.ProjectMemberSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1938,14 +1938,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchProjectMembers(arg0, ar } // SearchProjectRoles mocks base method -func (m *MockManagementServiceClient) SearchProjectRoles(arg0 context.Context, arg1 *grpc.ProjectRoleSearchRequest, arg2 ...grpc0.CallOption) (*grpc.ProjectRoleSearchResponse, error) { +func (m *MockManagementServiceClient) SearchProjectRoles(arg0 context.Context, arg1 *management.ProjectRoleSearchRequest, arg2 ...grpc.CallOption) (*management.ProjectRoleSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchProjectRoles", varargs...) - ret0, _ := ret[0].(*grpc.ProjectRoleSearchResponse) + ret0, _ := ret[0].(*management.ProjectRoleSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1958,14 +1958,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchProjectRoles(arg0, arg1 } // SearchProjectUserGrants mocks base method -func (m *MockManagementServiceClient) SearchProjectUserGrants(arg0 context.Context, arg1 *grpc.ProjectUserGrantSearchRequest, arg2 ...grpc0.CallOption) (*grpc.UserGrantSearchResponse, error) { +func (m *MockManagementServiceClient) SearchProjectUserGrants(arg0 context.Context, arg1 *management.ProjectUserGrantSearchRequest, arg2 ...grpc.CallOption) (*management.UserGrantSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchProjectUserGrants", varargs...) - ret0, _ := ret[0].(*grpc.UserGrantSearchResponse) + ret0, _ := ret[0].(*management.UserGrantSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1978,14 +1978,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchProjectUserGrants(arg0, } // SearchProjects mocks base method -func (m *MockManagementServiceClient) SearchProjects(arg0 context.Context, arg1 *grpc.ProjectSearchRequest, arg2 ...grpc0.CallOption) (*grpc.ProjectSearchResponse, error) { +func (m *MockManagementServiceClient) SearchProjects(arg0 context.Context, arg1 *management.ProjectSearchRequest, arg2 ...grpc.CallOption) (*management.ProjectSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchProjects", varargs...) - ret0, _ := ret[0].(*grpc.ProjectSearchResponse) + ret0, _ := ret[0].(*management.ProjectSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -1998,14 +1998,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchProjects(arg0, arg1 int } // SearchUserGrants mocks base method -func (m *MockManagementServiceClient) SearchUserGrants(arg0 context.Context, arg1 *grpc.UserGrantSearchRequest, arg2 ...grpc0.CallOption) (*grpc.UserGrantSearchResponse, error) { +func (m *MockManagementServiceClient) SearchUserGrants(arg0 context.Context, arg1 *management.UserGrantSearchRequest, arg2 ...grpc.CallOption) (*management.UserGrantSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchUserGrants", varargs...) - ret0, _ := ret[0].(*grpc.UserGrantSearchResponse) + ret0, _ := ret[0].(*management.UserGrantSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2018,14 +2018,14 @@ func (mr *MockManagementServiceClientMockRecorder) SearchUserGrants(arg0, arg1 i } // SearchUsers mocks base method -func (m *MockManagementServiceClient) SearchUsers(arg0 context.Context, arg1 *grpc.UserSearchRequest, arg2 ...grpc0.CallOption) (*grpc.UserSearchResponse, error) { +func (m *MockManagementServiceClient) SearchUsers(arg0 context.Context, arg1 *management.UserSearchRequest, arg2 ...grpc.CallOption) (*management.UserSearchResponse, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "SearchUsers", varargs...) - ret0, _ := ret[0].(*grpc.UserSearchResponse) + ret0, _ := ret[0].(*management.UserSearchResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2038,7 +2038,7 @@ func (mr *MockManagementServiceClientMockRecorder) SearchUsers(arg0, arg1 interf } // SendSetPasswordNotification mocks base method -func (m *MockManagementServiceClient) SendSetPasswordNotification(arg0 context.Context, arg1 *grpc.SetPasswordNotificationRequest, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) SendSetPasswordNotification(arg0 context.Context, arg1 *management.SetPasswordNotificationRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2058,7 +2058,7 @@ func (mr *MockManagementServiceClientMockRecorder) SendSetPasswordNotification(a } // SetInitialPassword mocks base method -func (m *MockManagementServiceClient) SetInitialPassword(arg0 context.Context, arg1 *grpc.PasswordRequest, arg2 ...grpc0.CallOption) (*emptypb.Empty, error) { +func (m *MockManagementServiceClient) SetInitialPassword(arg0 context.Context, arg1 *management.PasswordRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { @@ -2078,14 +2078,14 @@ func (mr *MockManagementServiceClientMockRecorder) SetInitialPassword(arg0, arg1 } // UnlockUser mocks base method -func (m *MockManagementServiceClient) UnlockUser(arg0 context.Context, arg1 *grpc.UserID, arg2 ...grpc0.CallOption) (*grpc.User, error) { +func (m *MockManagementServiceClient) UnlockUser(arg0 context.Context, arg1 *management.UserID, arg2 ...grpc.CallOption) (*management.User, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UnlockUser", varargs...) - ret0, _ := ret[0].(*grpc.User) + ret0, _ := ret[0].(*management.User) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2098,14 +2098,14 @@ func (mr *MockManagementServiceClientMockRecorder) UnlockUser(arg0, arg1 interfa } // UpdateApplication mocks base method -func (m *MockManagementServiceClient) UpdateApplication(arg0 context.Context, arg1 *grpc.ApplicationUpdate, arg2 ...grpc0.CallOption) (*grpc.Application, error) { +func (m *MockManagementServiceClient) UpdateApplication(arg0 context.Context, arg1 *management.ApplicationUpdate, arg2 ...grpc.CallOption) (*management.Application, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateApplication", varargs...) - ret0, _ := ret[0].(*grpc.Application) + ret0, _ := ret[0].(*management.Application) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2118,14 +2118,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdateApplication(arg0, arg1 } // UpdateApplicationOIDCConfig mocks base method -func (m *MockManagementServiceClient) UpdateApplicationOIDCConfig(arg0 context.Context, arg1 *grpc.OIDCConfigUpdate, arg2 ...grpc0.CallOption) (*grpc.OIDCConfig, error) { +func (m *MockManagementServiceClient) UpdateApplicationOIDCConfig(arg0 context.Context, arg1 *management.OIDCConfigUpdate, arg2 ...grpc.CallOption) (*management.OIDCConfig, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateApplicationOIDCConfig", varargs...) - ret0, _ := ret[0].(*grpc.OIDCConfig) + ret0, _ := ret[0].(*management.OIDCConfig) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2138,14 +2138,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdateApplicationOIDCConfig(a } // UpdatePasswordAgePolicy mocks base method -func (m *MockManagementServiceClient) UpdatePasswordAgePolicy(arg0 context.Context, arg1 *grpc.PasswordAgePolicyUpdate, arg2 ...grpc0.CallOption) (*grpc.PasswordAgePolicy, error) { +func (m *MockManagementServiceClient) UpdatePasswordAgePolicy(arg0 context.Context, arg1 *management.PasswordAgePolicyUpdate, arg2 ...grpc.CallOption) (*management.PasswordAgePolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdatePasswordAgePolicy", varargs...) - ret0, _ := ret[0].(*grpc.PasswordAgePolicy) + ret0, _ := ret[0].(*management.PasswordAgePolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2158,14 +2158,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdatePasswordAgePolicy(arg0, } // UpdatePasswordComplexityPolicy mocks base method -func (m *MockManagementServiceClient) UpdatePasswordComplexityPolicy(arg0 context.Context, arg1 *grpc.PasswordComplexityPolicyUpdate, arg2 ...grpc0.CallOption) (*grpc.PasswordComplexityPolicy, error) { +func (m *MockManagementServiceClient) UpdatePasswordComplexityPolicy(arg0 context.Context, arg1 *management.PasswordComplexityPolicyUpdate, arg2 ...grpc.CallOption) (*management.PasswordComplexityPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdatePasswordComplexityPolicy", varargs...) - ret0, _ := ret[0].(*grpc.PasswordComplexityPolicy) + ret0, _ := ret[0].(*management.PasswordComplexityPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2178,14 +2178,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdatePasswordComplexityPolic } // UpdatePasswordLockoutPolicy mocks base method -func (m *MockManagementServiceClient) UpdatePasswordLockoutPolicy(arg0 context.Context, arg1 *grpc.PasswordLockoutPolicyUpdate, arg2 ...grpc0.CallOption) (*grpc.PasswordLockoutPolicy, error) { +func (m *MockManagementServiceClient) UpdatePasswordLockoutPolicy(arg0 context.Context, arg1 *management.PasswordLockoutPolicyUpdate, arg2 ...grpc.CallOption) (*management.PasswordLockoutPolicy, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdatePasswordLockoutPolicy", varargs...) - ret0, _ := ret[0].(*grpc.PasswordLockoutPolicy) + ret0, _ := ret[0].(*management.PasswordLockoutPolicy) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2198,14 +2198,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdatePasswordLockoutPolicy(a } // UpdateProject mocks base method -func (m *MockManagementServiceClient) UpdateProject(arg0 context.Context, arg1 *grpc.ProjectUpdateRequest, arg2 ...grpc0.CallOption) (*grpc.Project, error) { +func (m *MockManagementServiceClient) UpdateProject(arg0 context.Context, arg1 *management.ProjectUpdateRequest, arg2 ...grpc.CallOption) (*management.Project, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateProject", varargs...) - ret0, _ := ret[0].(*grpc.Project) + ret0, _ := ret[0].(*management.Project) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2218,14 +2218,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdateProject(arg0, arg1 inte } // UpdateProjectGrant mocks base method -func (m *MockManagementServiceClient) UpdateProjectGrant(arg0 context.Context, arg1 *grpc.ProjectGrantUpdate, arg2 ...grpc0.CallOption) (*grpc.ProjectGrant, error) { +func (m *MockManagementServiceClient) UpdateProjectGrant(arg0 context.Context, arg1 *management.ProjectGrantUpdate, arg2 ...grpc.CallOption) (*management.ProjectGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateProjectGrant", varargs...) - ret0, _ := ret[0].(*grpc.ProjectGrant) + ret0, _ := ret[0].(*management.ProjectGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2238,14 +2238,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdateProjectGrant(arg0, arg1 } // UpdateProjectGrantUserGrant mocks base method -func (m *MockManagementServiceClient) UpdateProjectGrantUserGrant(arg0 context.Context, arg1 *grpc.ProjectGrantUserGrantUpdate, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) UpdateProjectGrantUserGrant(arg0 context.Context, arg1 *management.ProjectGrantUserGrantUpdate, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateProjectGrantUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2258,14 +2258,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdateProjectGrantUserGrant(a } // UpdateProjectUserGrant mocks base method -func (m *MockManagementServiceClient) UpdateProjectUserGrant(arg0 context.Context, arg1 *grpc.ProjectUserGrantUpdate, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) UpdateProjectUserGrant(arg0 context.Context, arg1 *management.ProjectUserGrantUpdate, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateProjectUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2278,14 +2278,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdateProjectUserGrant(arg0, } // UpdateUserAddress mocks base method -func (m *MockManagementServiceClient) UpdateUserAddress(arg0 context.Context, arg1 *grpc.UpdateUserAddressRequest, arg2 ...grpc0.CallOption) (*grpc.UserAddress, error) { +func (m *MockManagementServiceClient) UpdateUserAddress(arg0 context.Context, arg1 *management.UpdateUserAddressRequest, arg2 ...grpc.CallOption) (*management.UserAddress, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateUserAddress", varargs...) - ret0, _ := ret[0].(*grpc.UserAddress) + ret0, _ := ret[0].(*management.UserAddress) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2298,14 +2298,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdateUserAddress(arg0, arg1 } // UpdateUserGrant mocks base method -func (m *MockManagementServiceClient) UpdateUserGrant(arg0 context.Context, arg1 *grpc.UserGrantUpdate, arg2 ...grpc0.CallOption) (*grpc.UserGrant, error) { +func (m *MockManagementServiceClient) UpdateUserGrant(arg0 context.Context, arg1 *management.UserGrantUpdate, arg2 ...grpc.CallOption) (*management.UserGrant, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateUserGrant", varargs...) - ret0, _ := ret[0].(*grpc.UserGrant) + ret0, _ := ret[0].(*management.UserGrant) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2318,14 +2318,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdateUserGrant(arg0, arg1 in } // UpdateUserProfile mocks base method -func (m *MockManagementServiceClient) UpdateUserProfile(arg0 context.Context, arg1 *grpc.UpdateUserProfileRequest, arg2 ...grpc0.CallOption) (*grpc.UserProfile, error) { +func (m *MockManagementServiceClient) UpdateUserProfile(arg0 context.Context, arg1 *management.UpdateUserProfileRequest, arg2 ...grpc.CallOption) (*management.UserProfile, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateUserProfile", varargs...) - ret0, _ := ret[0].(*grpc.UserProfile) + ret0, _ := ret[0].(*management.UserProfile) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2338,14 +2338,14 @@ func (mr *MockManagementServiceClientMockRecorder) UpdateUserProfile(arg0, arg1 } // UserChanges mocks base method -func (m *MockManagementServiceClient) UserChanges(arg0 context.Context, arg1 *grpc.ChangeRequest, arg2 ...grpc0.CallOption) (*grpc.Changes, error) { +func (m *MockManagementServiceClient) UserChanges(arg0 context.Context, arg1 *management.ChangeRequest, arg2 ...grpc.CallOption) (*management.Changes, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UserChanges", varargs...) - ret0, _ := ret[0].(*grpc.Changes) + ret0, _ := ret[0].(*management.Changes) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2358,14 +2358,14 @@ func (mr *MockManagementServiceClientMockRecorder) UserChanges(arg0, arg1 interf } // UserGrantByID mocks base method -func (m *MockManagementServiceClient) UserGrantByID(arg0 context.Context, arg1 *grpc.UserGrantID, arg2 ...grpc0.CallOption) (*grpc.UserGrantView, error) { +func (m *MockManagementServiceClient) UserGrantByID(arg0 context.Context, arg1 *management.UserGrantID, arg2 ...grpc.CallOption) (*management.UserGrantView, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UserGrantByID", varargs...) - ret0, _ := ret[0].(*grpc.UserGrantView) + ret0, _ := ret[0].(*management.UserGrantView) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -2378,7 +2378,7 @@ func (mr *MockManagementServiceClientMockRecorder) UserGrantByID(arg0, arg1 inte } // Validate mocks base method -func (m *MockManagementServiceClient) Validate(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc0.CallOption) (*structpb.Struct, error) { +func (m *MockManagementServiceClient) Validate(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*structpb.Struct, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} for _, a := range arg2 { diff --git a/pkg/grpc/management/oneof.go b/pkg/grpc/management/oneof.go new file mode 100644 index 0000000000..21ca94cb67 --- /dev/null +++ b/pkg/grpc/management/oneof.go @@ -0,0 +1,5 @@ +package management + +//AppConfig is a type alias of the generated isApplication_AppConfig config +//to make it public +type AppConfig = isApplication_AppConfig diff --git a/pkg/grpc/management/proto/generate.go b/pkg/grpc/management/proto/generate.go new file mode 100644 index 0000000000..bd6df39d0b --- /dev/null +++ b/pkg/grpc/management/proto/generate.go @@ -0,0 +1,4 @@ +package proto + +//go:generate protoc -I${GOPATH}/src -I../proto -I${GOPATH}/src/github.com/caos/zitadel/pkg/grpc/message -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate -I${GOPATH}/src/github.com/caos/zitadel/internal/protoc/protoc-gen-authoption --go_out=plugins=grpc:${GOPATH}/src --grpc-gateway_out=logtostderr=true,allow_delete_body=true:${GOPATH}/src --swagger_out=logtostderr=true,allow_delete_body=true:$GOPATH/src --authoption_out=.. management.proto +//go:generate mockgen -package api -destination ../mock/management.proto.mock.go github.com/caos/zitadel/pkg/grpc/management ManagementServiceClient diff --git a/pkg/management/api/proto/management.proto b/pkg/grpc/management/proto/management.proto similarity index 99% rename from pkg/management/api/proto/management.proto rename to pkg/grpc/management/proto/management.proto index 302fb18191..0814702b85 100644 --- a/pkg/management/api/proto/management.proto +++ b/pkg/grpc/management/proto/management.proto @@ -6,13 +6,12 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "protoc-gen-swagger/options/annotations.proto"; import "validate/validate.proto"; -import "google/protobuf/descriptor.proto"; import "authoption/options.proto"; -import "message.proto"; +import "proto/message.proto"; package caos.zitadel.management.api.v1; -option go_package = "github.com/caos/zitadel/pkg/management/api/grpc"; +option go_package = "github.com/caos/zitadel/pkg/grpc/management"; option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = { info: { diff --git a/pkg/message/message.go b/pkg/grpc/message/message.go similarity index 100% rename from pkg/message/message.go rename to pkg/grpc/message/message.go diff --git a/pkg/message/message.pb.go b/pkg/grpc/message/message.pb.go similarity index 94% rename from pkg/message/message.pb.go rename to pkg/grpc/message/message.pb.go index 4402495ef5..883c3abe97 100644 --- a/pkg/message/message.pb.go +++ b/pkg/grpc/message/message.pb.go @@ -122,7 +122,7 @@ func init() { func init() { proto.RegisterFile("message.proto", fileDescriptor_33c57e4bae7b9afd) } var fileDescriptor_33c57e4bae7b9afd = []byte{ - // 177 bytes of a gzipped FileDescriptorProto + // 182 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcd, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x4e, 0x4e, 0xcc, 0x2f, 0xd6, 0xab, 0xca, 0x2c, 0x49, 0x4c, 0x49, 0xcd, 0xd1, 0x4b, 0x2c, 0xc8, 0xd4, 0x2b, 0x33, 0x54, 0x32, @@ -131,8 +131,8 @@ var fileDescriptor_33c57e4bae7b9afd = []byte{ 0x62, 0x87, 0x1a, 0x22, 0xc1, 0x04, 0x16, 0x84, 0x71, 0x95, 0x02, 0xb9, 0x04, 0x7c, 0xf2, 0x93, 0x13, 0x73, 0x32, 0xab, 0x52, 0x53, 0x7c, 0x21, 0x62, 0x42, 0x02, 0x5c, 0xcc, 0xd9, 0xa9, 0x95, 0x50, 0xed, 0x20, 0xa6, 0x90, 0x36, 0x97, 0x60, 0x0e, 0x4c, 0x55, 0x3c, 0xaa, 0x49, 0x02, 0x39, - 0x68, 0xda, 0x9d, 0x54, 0xa3, 0x94, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, - 0xf5, 0x41, 0xae, 0xd5, 0x87, 0xba, 0x56, 0xbf, 0x20, 0x3b, 0x5d, 0x1f, 0xaa, 0x3d, 0x89, 0x0d, - 0xec, 0x1d, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xec, 0x22, 0xc0, 0xff, 0xdf, 0x00, 0x00, - 0x00, + 0x68, 0xda, 0x9d, 0xb4, 0xa2, 0x34, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, + 0xf5, 0x41, 0xae, 0xd5, 0x87, 0xba, 0x56, 0xbf, 0x20, 0x3b, 0x5d, 0x3f, 0xbd, 0xa8, 0x20, 0x59, + 0x1f, 0x6a, 0x46, 0x12, 0x1b, 0xd8, 0x4f, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x28, + 0x69, 0x83, 0xe4, 0x00, 0x00, 0x00, } diff --git a/pkg/grpc/message/proto/generate.go b/pkg/grpc/message/proto/generate.go new file mode 100644 index 0000000000..b83492fb90 --- /dev/null +++ b/pkg/grpc/message/proto/generate.go @@ -0,0 +1,3 @@ +package proto + +//go:generate protoc -I$GOPATH/src -I. --go_out=plugins=grpc:$GOPATH/src ./message.proto diff --git a/pkg/message/message.proto b/pkg/grpc/message/proto/message.proto similarity index 75% rename from pkg/message/message.proto rename to pkg/grpc/message/proto/message.proto index 94aeb73f87..535f1dee02 100644 --- a/pkg/message/message.proto +++ b/pkg/grpc/message/proto/message.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package caos.zitadel.api.v1; -option go_package = "github.com/caos/zitadel/pkg/message"; +option go_package = "github.com/caos/zitadel/pkg/grpc/message"; message ErrorDetail { string id = 1; diff --git a/pkg/management/api/api.go b/pkg/management/api/api.go deleted file mode 100644 index 33bd336544..0000000000 --- a/pkg/management/api/api.go +++ /dev/null @@ -1,25 +0,0 @@ -package api - -import ( - "context" - "github.com/caos/zitadel/internal/api/auth" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" - "github.com/caos/zitadel/internal/config/systemdefaults" - "github.com/caos/zitadel/internal/management/repository" - - grpc_util "github.com/caos/zitadel/internal/api/grpc" - "github.com/caos/zitadel/internal/api/grpc/server" - "github.com/caos/zitadel/pkg/management/api/grpc" -) - -type Config struct { - GRPC grpc_util.Config -} - -func Start(ctx context.Context, conf Config, authZRepo *authz_repo.EsRepository, authZ auth.Config, defaults systemdefaults.SystemDefaults, repo repository.Repository) { - grpcServer := grpc.StartServer(conf.GRPC.ToServerConfig(), authZRepo, authZ, defaults, repo) - grpcGateway := grpc.StartGateway(conf.GRPC.ToGatewayConfig()) - - server.StartServer(ctx, grpcServer, defaults) - server.StartGateway(ctx, grpcGateway) -} diff --git a/pkg/management/api/grpc/generate.go b/pkg/management/api/grpc/generate.go deleted file mode 100644 index ee0f1168c2..0000000000 --- a/pkg/management/api/grpc/generate.go +++ /dev/null @@ -1,4 +0,0 @@ -package grpc - -//go:generate protoc -I${GOPATH}/src -I../proto -I${GOPATH}/src/github.com/caos/zitadel/pkg/message -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate -I${GOPATH}/src/github.com/caos/zitadel/internal/protoc/protoc-gen-authoption --go_out=plugins=grpc:${GOPATH}/src --grpc-gateway_out=logtostderr=true,allow_delete_body=true:${GOPATH}/src --swagger_out=logtostderr=true,allow_delete_body=true:. --authoption_out=. ../proto/management.proto -//go:generate mockgen -package api -destination ./mock/management.proto.mock.go github.com/caos/zitadel/pkg/management/api/grpc ManagementServiceClient diff --git a/pkg/management/api/grpc/management.pb.go b/pkg/management/api/grpc/management.pb.go deleted file mode 100644 index da2f46e993..0000000000 --- a/pkg/management/api/grpc/management.pb.go +++ /dev/null @@ -1,22033 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.20.1 -// protoc v3.11.3 -// source: management.proto - -package grpc - -import ( - context "context" - _ "github.com/caos/zitadel/internal/protoc/protoc-gen-authoption/authoption" - message "github.com/caos/zitadel/pkg/message" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - proto "github.com/golang/protobuf/proto" - _ "github.com/golang/protobuf/protoc-gen-go/descriptor" - empty "github.com/golang/protobuf/ptypes/empty" - _struct "github.com/golang/protobuf/ptypes/struct" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // 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) -) - -// 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 UserState int32 - -const ( - UserState_USERSTATE_UNSPECIFIED UserState = 0 - UserState_USERSTATE_ACTIVE UserState = 1 - UserState_USERSTATE_INACTIVE UserState = 2 - UserState_USERSTATE_DELETED UserState = 3 - UserState_USERSTATE_LOCKED UserState = 4 - UserState_USERSTATE_SUSPEND UserState = 5 - UserState_USERSTATE_INITIAL UserState = 6 -) - -// Enum value maps for UserState. -var ( - UserState_name = map[int32]string{ - 0: "USERSTATE_UNSPECIFIED", - 1: "USERSTATE_ACTIVE", - 2: "USERSTATE_INACTIVE", - 3: "USERSTATE_DELETED", - 4: "USERSTATE_LOCKED", - 5: "USERSTATE_SUSPEND", - 6: "USERSTATE_INITIAL", - } - UserState_value = map[string]int32{ - "USERSTATE_UNSPECIFIED": 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 protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UserState) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[0].Descriptor() -} - -func (UserState) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[0] -} - -func (x UserState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UserState.Descriptor instead. -func (UserState) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{0} -} - -type Gender int32 - -const ( - Gender_GENDER_UNSPECIFIED Gender = 0 - Gender_GENDER_FEMALE Gender = 1 - Gender_GENDER_MALE Gender = 2 - Gender_GENDER_DIVERSE Gender = 3 -) - -// 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, - } -) - -func (x Gender) Enum() *Gender { - p := new(Gender) - *p = x - return p -} - -func (x Gender) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Gender) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[1].Descriptor() -} - -func (Gender) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[1] -} - -func (x Gender) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Gender.Descriptor instead. -func (Gender) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{1} -} - -type UserSearchKey int32 - -const ( - UserSearchKey_USERSEARCHKEY_UNSPECIFIED UserSearchKey = 0 - UserSearchKey_USERSEARCHKEY_USER_NAME UserSearchKey = 1 - UserSearchKey_USERSEARCHKEY_FIRST_NAME UserSearchKey = 2 - UserSearchKey_USERSEARCHKEY_LAST_NAME UserSearchKey = 3 - UserSearchKey_USERSEARCHKEY_NICK_NAME UserSearchKey = 4 - UserSearchKey_USERSEARCHKEY_DISPLAY_NAME UserSearchKey = 5 - UserSearchKey_USERSEARCHKEY_EMAIL UserSearchKey = 6 - UserSearchKey_USERSEARCHKEY_STATE UserSearchKey = 7 -) - -// Enum value maps for UserSearchKey. -var ( - UserSearchKey_name = map[int32]string{ - 0: "USERSEARCHKEY_UNSPECIFIED", - 1: "USERSEARCHKEY_USER_NAME", - 2: "USERSEARCHKEY_FIRST_NAME", - 3: "USERSEARCHKEY_LAST_NAME", - 4: "USERSEARCHKEY_NICK_NAME", - 5: "USERSEARCHKEY_DISPLAY_NAME", - 6: "USERSEARCHKEY_EMAIL", - 7: "USERSEARCHKEY_STATE", - } - UserSearchKey_value = map[string]int32{ - "USERSEARCHKEY_UNSPECIFIED": 0, - "USERSEARCHKEY_USER_NAME": 1, - "USERSEARCHKEY_FIRST_NAME": 2, - "USERSEARCHKEY_LAST_NAME": 3, - "USERSEARCHKEY_NICK_NAME": 4, - "USERSEARCHKEY_DISPLAY_NAME": 5, - "USERSEARCHKEY_EMAIL": 6, - "USERSEARCHKEY_STATE": 7, - } -) - -func (x UserSearchKey) Enum() *UserSearchKey { - p := new(UserSearchKey) - *p = x - return p -} - -func (x UserSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UserSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[2].Descriptor() -} - -func (UserSearchKey) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[2] -} - -func (x UserSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UserSearchKey.Descriptor instead. -func (UserSearchKey) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{2} -} - -type SearchMethod int32 - -const ( - SearchMethod_SEARCHMETHOD_EQUALS SearchMethod = 0 - SearchMethod_SEARCHMETHOD_STARTS_WITH SearchMethod = 1 - SearchMethod_SEARCHMETHOD_CONTAINS SearchMethod = 2 - SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE SearchMethod = 3 - SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE SearchMethod = 4 - SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE SearchMethod = 5 - SearchMethod_SEARCHMETHOD_NOT_EQUALS SearchMethod = 6 - SearchMethod_SEARCHMETHOD_GREATER_THAN SearchMethod = 7 - SearchMethod_SEARCHMETHOD_LESS_THAN SearchMethod = 8 - SearchMethod_SEARCHMETHOD_IS_ONE_OF SearchMethod = 9 - SearchMethod_SEARCHMETHOD_LIST_CONTAINS SearchMethod = 10 -) - -// Enum value maps for SearchMethod. -var ( - SearchMethod_name = map[int32]string{ - 0: "SEARCHMETHOD_EQUALS", - 1: "SEARCHMETHOD_STARTS_WITH", - 2: "SEARCHMETHOD_CONTAINS", - 3: "SEARCHMETHOD_EQUALS_IGNORE_CASE", - 4: "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE", - 5: "SEARCHMETHOD_CONTAINS_IGNORE_CASE", - 6: "SEARCHMETHOD_NOT_EQUALS", - 7: "SEARCHMETHOD_GREATER_THAN", - 8: "SEARCHMETHOD_LESS_THAN", - 9: "SEARCHMETHOD_IS_ONE_OF", - 10: "SEARCHMETHOD_LIST_CONTAINS", - } - SearchMethod_value = map[string]int32{ - "SEARCHMETHOD_EQUALS": 0, - "SEARCHMETHOD_STARTS_WITH": 1, - "SEARCHMETHOD_CONTAINS": 2, - "SEARCHMETHOD_EQUALS_IGNORE_CASE": 3, - "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE": 4, - "SEARCHMETHOD_CONTAINS_IGNORE_CASE": 5, - "SEARCHMETHOD_NOT_EQUALS": 6, - "SEARCHMETHOD_GREATER_THAN": 7, - "SEARCHMETHOD_LESS_THAN": 8, - "SEARCHMETHOD_IS_ONE_OF": 9, - "SEARCHMETHOD_LIST_CONTAINS": 10, - } -) - -func (x SearchMethod) Enum() *SearchMethod { - p := new(SearchMethod) - *p = x - return p -} - -func (x SearchMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SearchMethod) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[3].Descriptor() -} - -func (SearchMethod) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[3] -} - -func (x SearchMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SearchMethod.Descriptor instead. -func (SearchMethod) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{3} -} - -type MfaType int32 - -const ( - MfaType_MFATYPE_UNSPECIFIED MfaType = 0 - MfaType_MFATYPE_SMS MfaType = 1 - MfaType_MFATYPE_OTP MfaType = 2 -) - -// 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, - } -) - -func (x MfaType) Enum() *MfaType { - p := new(MfaType) - *p = x - return p -} - -func (x MfaType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MfaType) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[4].Descriptor() -} - -func (MfaType) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[4] -} - -func (x MfaType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MfaType.Descriptor instead. -func (MfaType) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{4} -} - -type MFAState int32 - -const ( - MFAState_MFASTATE_UNSPECIFIED MFAState = 0 - MFAState_MFASTATE_NOT_READY MFAState = 1 - MFAState_MFASTATE_READY MFAState = 2 - MFAState_MFASTATE_REMOVED MFAState = 3 -) - -// 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, - } -) - -func (x MFAState) Enum() *MFAState { - p := new(MFAState) - *p = x - return p -} - -func (x MFAState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MFAState) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[5].Descriptor() -} - -func (MFAState) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[5] -} - -func (x MFAState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MFAState.Descriptor instead. -func (MFAState) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{5} -} - -type NotificationType int32 - -const ( - NotificationType_NOTIFICATIONTYPE_EMAIL NotificationType = 0 - NotificationType_NOTIFICATIONTYPE_SMS NotificationType = 1 -) - -// Enum value maps for NotificationType. -var ( - NotificationType_name = map[int32]string{ - 0: "NOTIFICATIONTYPE_EMAIL", - 1: "NOTIFICATIONTYPE_SMS", - } - NotificationType_value = map[string]int32{ - "NOTIFICATIONTYPE_EMAIL": 0, - "NOTIFICATIONTYPE_SMS": 1, - } -) - -func (x NotificationType) Enum() *NotificationType { - p := new(NotificationType) - *p = x - return p -} - -func (x NotificationType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (NotificationType) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[6].Descriptor() -} - -func (NotificationType) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[6] -} - -func (x NotificationType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use NotificationType.Descriptor instead. -func (NotificationType) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{6} -} - -type PolicyState int32 - -const ( - PolicyState_POLICYSTATE_UNSPECIFIED PolicyState = 0 - PolicyState_POLICYSTATE_ACTIVE PolicyState = 1 - PolicyState_POLICYSTATE_INACTIVE PolicyState = 2 - PolicyState_POLICYSTATE_DELETED PolicyState = 3 -) - -// Enum value maps for PolicyState. -var ( - PolicyState_name = map[int32]string{ - 0: "POLICYSTATE_UNSPECIFIED", - 1: "POLICYSTATE_ACTIVE", - 2: "POLICYSTATE_INACTIVE", - 3: "POLICYSTATE_DELETED", - } - PolicyState_value = map[string]int32{ - "POLICYSTATE_UNSPECIFIED": 0, - "POLICYSTATE_ACTIVE": 1, - "POLICYSTATE_INACTIVE": 2, - "POLICYSTATE_DELETED": 3, - } -) - -func (x PolicyState) Enum() *PolicyState { - p := new(PolicyState) - *p = x - return p -} - -func (x PolicyState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PolicyState) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[7].Descriptor() -} - -func (PolicyState) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[7] -} - -func (x PolicyState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PolicyState.Descriptor instead. -func (PolicyState) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{7} -} - -type OrgState int32 - -const ( - OrgState_ORGSTATE_UNSPECIFIED OrgState = 0 - OrgState_ORGSTATE_ACTIVE OrgState = 1 - OrgState_ORGSTATE_INACTIVE OrgState = 2 -) - -// Enum value maps for OrgState. -var ( - OrgState_name = map[int32]string{ - 0: "ORGSTATE_UNSPECIFIED", - 1: "ORGSTATE_ACTIVE", - 2: "ORGSTATE_INACTIVE", - } - OrgState_value = map[string]int32{ - "ORGSTATE_UNSPECIFIED": 0, - "ORGSTATE_ACTIVE": 1, - "ORGSTATE_INACTIVE": 2, - } -) - -func (x OrgState) Enum() *OrgState { - p := new(OrgState) - *p = x - return p -} - -func (x OrgState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrgState) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[8].Descriptor() -} - -func (OrgState) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[8] -} - -func (x OrgState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrgState.Descriptor instead. -func (OrgState) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{8} -} - -type OrgDomainSearchKey int32 - -const ( - OrgDomainSearchKey_ORGDOMAINSEARCHKEY_UNSPECIFIED OrgDomainSearchKey = 0 - OrgDomainSearchKey_ORGDOMAINSEARCHKEY_DOMAIN OrgDomainSearchKey = 1 -) - -// Enum value maps for OrgDomainSearchKey. -var ( - OrgDomainSearchKey_name = map[int32]string{ - 0: "ORGDOMAINSEARCHKEY_UNSPECIFIED", - 1: "ORGDOMAINSEARCHKEY_DOMAIN", - } - OrgDomainSearchKey_value = map[string]int32{ - "ORGDOMAINSEARCHKEY_UNSPECIFIED": 0, - "ORGDOMAINSEARCHKEY_DOMAIN": 1, - } -) - -func (x OrgDomainSearchKey) Enum() *OrgDomainSearchKey { - p := new(OrgDomainSearchKey) - *p = x - return p -} - -func (x OrgDomainSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrgDomainSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[9].Descriptor() -} - -func (OrgDomainSearchKey) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[9] -} - -func (x OrgDomainSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrgDomainSearchKey.Descriptor instead. -func (OrgDomainSearchKey) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{9} -} - -type OrgMemberSearchKey int32 - -const ( - OrgMemberSearchKey_ORGMEMBERSEARCHKEY_UNSPECIFIED OrgMemberSearchKey = 0 - OrgMemberSearchKey_ORGMEMBERSEARCHKEY_FIRST_NAME OrgMemberSearchKey = 1 - OrgMemberSearchKey_ORGMEMBERSEARCHKEY_LAST_NAME OrgMemberSearchKey = 2 - OrgMemberSearchKey_ORGMEMBERSEARCHKEY_EMAIL OrgMemberSearchKey = 3 - OrgMemberSearchKey_ORGMEMBERSEARCHKEY_USER_ID OrgMemberSearchKey = 4 -) - -// Enum value maps for OrgMemberSearchKey. -var ( - OrgMemberSearchKey_name = map[int32]string{ - 0: "ORGMEMBERSEARCHKEY_UNSPECIFIED", - 1: "ORGMEMBERSEARCHKEY_FIRST_NAME", - 2: "ORGMEMBERSEARCHKEY_LAST_NAME", - 3: "ORGMEMBERSEARCHKEY_EMAIL", - 4: "ORGMEMBERSEARCHKEY_USER_ID", - } - OrgMemberSearchKey_value = map[string]int32{ - "ORGMEMBERSEARCHKEY_UNSPECIFIED": 0, - "ORGMEMBERSEARCHKEY_FIRST_NAME": 1, - "ORGMEMBERSEARCHKEY_LAST_NAME": 2, - "ORGMEMBERSEARCHKEY_EMAIL": 3, - "ORGMEMBERSEARCHKEY_USER_ID": 4, - } -) - -func (x OrgMemberSearchKey) Enum() *OrgMemberSearchKey { - p := new(OrgMemberSearchKey) - *p = x - return p -} - -func (x OrgMemberSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrgMemberSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[10].Descriptor() -} - -func (OrgMemberSearchKey) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[10] -} - -func (x OrgMemberSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrgMemberSearchKey.Descriptor instead. -func (OrgMemberSearchKey) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{10} -} - -type ProjectSearchKey int32 - -const ( - ProjectSearchKey_PROJECTSEARCHKEY_UNSPECIFIED ProjectSearchKey = 0 - ProjectSearchKey_PROJECTSEARCHKEY_PROJECT_NAME ProjectSearchKey = 1 -) - -// Enum value maps for ProjectSearchKey. -var ( - ProjectSearchKey_name = map[int32]string{ - 0: "PROJECTSEARCHKEY_UNSPECIFIED", - 1: "PROJECTSEARCHKEY_PROJECT_NAME", - } - ProjectSearchKey_value = map[string]int32{ - "PROJECTSEARCHKEY_UNSPECIFIED": 0, - "PROJECTSEARCHKEY_PROJECT_NAME": 1, - } -) - -func (x ProjectSearchKey) Enum() *ProjectSearchKey { - p := new(ProjectSearchKey) - *p = x - return p -} - -func (x ProjectSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProjectSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[11].Descriptor() -} - -func (ProjectSearchKey) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[11] -} - -func (x ProjectSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProjectSearchKey.Descriptor instead. -func (ProjectSearchKey) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{11} -} - -type ProjectState int32 - -const ( - ProjectState_PROJECTSTATE_UNSPECIFIED ProjectState = 0 - ProjectState_PROJECTSTATE_ACTIVE ProjectState = 1 - ProjectState_PROJECTSTATE_INACTIVE ProjectState = 2 -) - -// Enum value maps for ProjectState. -var ( - ProjectState_name = map[int32]string{ - 0: "PROJECTSTATE_UNSPECIFIED", - 1: "PROJECTSTATE_ACTIVE", - 2: "PROJECTSTATE_INACTIVE", - } - ProjectState_value = map[string]int32{ - "PROJECTSTATE_UNSPECIFIED": 0, - "PROJECTSTATE_ACTIVE": 1, - "PROJECTSTATE_INACTIVE": 2, - } -) - -func (x ProjectState) Enum() *ProjectState { - p := new(ProjectState) - *p = x - return p -} - -func (x ProjectState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProjectState) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[12].Descriptor() -} - -func (ProjectState) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[12] -} - -func (x ProjectState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProjectState.Descriptor instead. -func (ProjectState) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{12} -} - -type ProjectType int32 - -const ( - ProjectType_PROJECTTYPE_UNSPECIFIED ProjectType = 0 - ProjectType_PROJECTTYPE_OWNED ProjectType = 1 - ProjectType_PROJECTTYPE_GRANTED ProjectType = 2 -) - -// Enum value maps for ProjectType. -var ( - ProjectType_name = map[int32]string{ - 0: "PROJECTTYPE_UNSPECIFIED", - 1: "PROJECTTYPE_OWNED", - 2: "PROJECTTYPE_GRANTED", - } - ProjectType_value = map[string]int32{ - "PROJECTTYPE_UNSPECIFIED": 0, - "PROJECTTYPE_OWNED": 1, - "PROJECTTYPE_GRANTED": 2, - } -) - -func (x ProjectType) Enum() *ProjectType { - p := new(ProjectType) - *p = x - return p -} - -func (x ProjectType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProjectType) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[13].Descriptor() -} - -func (ProjectType) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[13] -} - -func (x ProjectType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProjectType.Descriptor instead. -func (ProjectType) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{13} -} - -type ProjectRoleSearchKey int32 - -const ( - ProjectRoleSearchKey_PROJECTROLESEARCHKEY_UNSPECIFIED ProjectRoleSearchKey = 0 - ProjectRoleSearchKey_PROJECTROLESEARCHKEY_KEY ProjectRoleSearchKey = 1 - ProjectRoleSearchKey_PROJECTROLESEARCHKEY_DISPLAY_NAME ProjectRoleSearchKey = 2 -) - -// Enum value maps for ProjectRoleSearchKey. -var ( - ProjectRoleSearchKey_name = map[int32]string{ - 0: "PROJECTROLESEARCHKEY_UNSPECIFIED", - 1: "PROJECTROLESEARCHKEY_KEY", - 2: "PROJECTROLESEARCHKEY_DISPLAY_NAME", - } - ProjectRoleSearchKey_value = map[string]int32{ - "PROJECTROLESEARCHKEY_UNSPECIFIED": 0, - "PROJECTROLESEARCHKEY_KEY": 1, - "PROJECTROLESEARCHKEY_DISPLAY_NAME": 2, - } -) - -func (x ProjectRoleSearchKey) Enum() *ProjectRoleSearchKey { - p := new(ProjectRoleSearchKey) - *p = x - return p -} - -func (x ProjectRoleSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProjectRoleSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[14].Descriptor() -} - -func (ProjectRoleSearchKey) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[14] -} - -func (x ProjectRoleSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProjectRoleSearchKey.Descriptor instead. -func (ProjectRoleSearchKey) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{14} -} - -type ProjectMemberSearchKey int32 - -const ( - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_UNSPECIFIED ProjectMemberSearchKey = 0 - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_FIRST_NAME ProjectMemberSearchKey = 1 - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_LAST_NAME ProjectMemberSearchKey = 2 - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_EMAIL ProjectMemberSearchKey = 3 - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_USER_ID ProjectMemberSearchKey = 4 - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_USER_NAME ProjectMemberSearchKey = 5 -) - -// Enum value maps for ProjectMemberSearchKey. -var ( - ProjectMemberSearchKey_name = map[int32]string{ - 0: "PROJECTMEMBERSEARCHKEY_UNSPECIFIED", - 1: "PROJECTMEMBERSEARCHKEY_FIRST_NAME", - 2: "PROJECTMEMBERSEARCHKEY_LAST_NAME", - 3: "PROJECTMEMBERSEARCHKEY_EMAIL", - 4: "PROJECTMEMBERSEARCHKEY_USER_ID", - 5: "PROJECTMEMBERSEARCHKEY_USER_NAME", - } - ProjectMemberSearchKey_value = map[string]int32{ - "PROJECTMEMBERSEARCHKEY_UNSPECIFIED": 0, - "PROJECTMEMBERSEARCHKEY_FIRST_NAME": 1, - "PROJECTMEMBERSEARCHKEY_LAST_NAME": 2, - "PROJECTMEMBERSEARCHKEY_EMAIL": 3, - "PROJECTMEMBERSEARCHKEY_USER_ID": 4, - "PROJECTMEMBERSEARCHKEY_USER_NAME": 5, - } -) - -func (x ProjectMemberSearchKey) Enum() *ProjectMemberSearchKey { - p := new(ProjectMemberSearchKey) - *p = x - return p -} - -func (x ProjectMemberSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProjectMemberSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[15].Descriptor() -} - -func (ProjectMemberSearchKey) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[15] -} - -func (x ProjectMemberSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProjectMemberSearchKey.Descriptor instead. -func (ProjectMemberSearchKey) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{15} -} - -type AppState int32 - -const ( - AppState_APPSTATE_UNSPECIFIED AppState = 0 - AppState_APPSTATE_ACTIVE AppState = 1 - AppState_APPSTATE_INACTIVE AppState = 2 -) - -// Enum value maps for AppState. -var ( - AppState_name = map[int32]string{ - 0: "APPSTATE_UNSPECIFIED", - 1: "APPSTATE_ACTIVE", - 2: "APPSTATE_INACTIVE", - } - AppState_value = map[string]int32{ - "APPSTATE_UNSPECIFIED": 0, - "APPSTATE_ACTIVE": 1, - "APPSTATE_INACTIVE": 2, - } -) - -func (x AppState) Enum() *AppState { - p := new(AppState) - *p = x - return p -} - -func (x AppState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AppState) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[16].Descriptor() -} - -func (AppState) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[16] -} - -func (x AppState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AppState.Descriptor instead. -func (AppState) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{16} -} - -type OIDCResponseType int32 - -const ( - OIDCResponseType_OIDCRESPONSETYPE_CODE OIDCResponseType = 0 - OIDCResponseType_OIDCRESPONSETYPE_ID_TOKEN OIDCResponseType = 1 - OIDCResponseType_OIDCRESPONSETYPE_TOKEN OIDCResponseType = 2 -) - -// Enum value maps for OIDCResponseType. -var ( - OIDCResponseType_name = map[int32]string{ - 0: "OIDCRESPONSETYPE_CODE", - 1: "OIDCRESPONSETYPE_ID_TOKEN", - 2: "OIDCRESPONSETYPE_TOKEN", - } - OIDCResponseType_value = map[string]int32{ - "OIDCRESPONSETYPE_CODE": 0, - "OIDCRESPONSETYPE_ID_TOKEN": 1, - "OIDCRESPONSETYPE_TOKEN": 2, - } -) - -func (x OIDCResponseType) Enum() *OIDCResponseType { - p := new(OIDCResponseType) - *p = x - return p -} - -func (x OIDCResponseType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OIDCResponseType) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[17].Descriptor() -} - -func (OIDCResponseType) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[17] -} - -func (x OIDCResponseType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OIDCResponseType.Descriptor instead. -func (OIDCResponseType) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{17} -} - -type OIDCGrantType int32 - -const ( - OIDCGrantType_OIDCGRANTTYPE_AUTHORIZATION_CODE OIDCGrantType = 0 - OIDCGrantType_OIDCGRANTTYPE_IMPLICIT OIDCGrantType = 1 - OIDCGrantType_OIDCGRANTTYPE_REFRESH_TOKEN OIDCGrantType = 2 -) - -// Enum value maps for OIDCGrantType. -var ( - OIDCGrantType_name = map[int32]string{ - 0: "OIDCGRANTTYPE_AUTHORIZATION_CODE", - 1: "OIDCGRANTTYPE_IMPLICIT", - 2: "OIDCGRANTTYPE_REFRESH_TOKEN", - } - OIDCGrantType_value = map[string]int32{ - "OIDCGRANTTYPE_AUTHORIZATION_CODE": 0, - "OIDCGRANTTYPE_IMPLICIT": 1, - "OIDCGRANTTYPE_REFRESH_TOKEN": 2, - } -) - -func (x OIDCGrantType) Enum() *OIDCGrantType { - p := new(OIDCGrantType) - *p = x - return p -} - -func (x OIDCGrantType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OIDCGrantType) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[18].Descriptor() -} - -func (OIDCGrantType) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[18] -} - -func (x OIDCGrantType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OIDCGrantType.Descriptor instead. -func (OIDCGrantType) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{18} -} - -type OIDCApplicationType int32 - -const ( - OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB OIDCApplicationType = 0 - OIDCApplicationType_OIDCAPPLICATIONTYPE_USER_AGENT OIDCApplicationType = 1 - OIDCApplicationType_OIDCAPPLICATIONTYPE_NATIVE OIDCApplicationType = 2 -) - -// Enum value maps for OIDCApplicationType. -var ( - OIDCApplicationType_name = map[int32]string{ - 0: "OIDCAPPLICATIONTYPE_WEB", - 1: "OIDCAPPLICATIONTYPE_USER_AGENT", - 2: "OIDCAPPLICATIONTYPE_NATIVE", - } - OIDCApplicationType_value = map[string]int32{ - "OIDCAPPLICATIONTYPE_WEB": 0, - "OIDCAPPLICATIONTYPE_USER_AGENT": 1, - "OIDCAPPLICATIONTYPE_NATIVE": 2, - } -) - -func (x OIDCApplicationType) Enum() *OIDCApplicationType { - p := new(OIDCApplicationType) - *p = x - return p -} - -func (x OIDCApplicationType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OIDCApplicationType) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[19].Descriptor() -} - -func (OIDCApplicationType) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[19] -} - -func (x OIDCApplicationType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OIDCApplicationType.Descriptor instead. -func (OIDCApplicationType) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{19} -} - -type OIDCAuthMethodType int32 - -const ( - OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC OIDCAuthMethodType = 0 - OIDCAuthMethodType_OIDCAUTHMETHODTYPE_POST OIDCAuthMethodType = 1 - OIDCAuthMethodType_OIDCAUTHMETHODTYPE_NONE OIDCAuthMethodType = 2 -) - -// Enum value maps for OIDCAuthMethodType. -var ( - OIDCAuthMethodType_name = map[int32]string{ - 0: "OIDCAUTHMETHODTYPE_BASIC", - 1: "OIDCAUTHMETHODTYPE_POST", - 2: "OIDCAUTHMETHODTYPE_NONE", - } - OIDCAuthMethodType_value = map[string]int32{ - "OIDCAUTHMETHODTYPE_BASIC": 0, - "OIDCAUTHMETHODTYPE_POST": 1, - "OIDCAUTHMETHODTYPE_NONE": 2, - } -) - -func (x OIDCAuthMethodType) Enum() *OIDCAuthMethodType { - p := new(OIDCAuthMethodType) - *p = x - return p -} - -func (x OIDCAuthMethodType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OIDCAuthMethodType) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[20].Descriptor() -} - -func (OIDCAuthMethodType) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[20] -} - -func (x OIDCAuthMethodType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OIDCAuthMethodType.Descriptor instead. -func (OIDCAuthMethodType) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{20} -} - -type ApplicationSearchKey int32 - -const ( - ApplicationSearchKey_APPLICATIONSERACHKEY_UNSPECIFIED ApplicationSearchKey = 0 - ApplicationSearchKey_APPLICATIONSEARCHKEY_APP_NAME ApplicationSearchKey = 1 -) - -// Enum value maps for ApplicationSearchKey. -var ( - ApplicationSearchKey_name = map[int32]string{ - 0: "APPLICATIONSERACHKEY_UNSPECIFIED", - 1: "APPLICATIONSEARCHKEY_APP_NAME", - } - ApplicationSearchKey_value = map[string]int32{ - "APPLICATIONSERACHKEY_UNSPECIFIED": 0, - "APPLICATIONSEARCHKEY_APP_NAME": 1, - } -) - -func (x ApplicationSearchKey) Enum() *ApplicationSearchKey { - p := new(ApplicationSearchKey) - *p = x - return p -} - -func (x ApplicationSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ApplicationSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[21].Descriptor() -} - -func (ApplicationSearchKey) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[21] -} - -func (x ApplicationSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ApplicationSearchKey.Descriptor instead. -func (ApplicationSearchKey) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{21} -} - -type ProjectGrantState int32 - -const ( - ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED ProjectGrantState = 0 - ProjectGrantState_PROJECTGRANTSTATE_ACTIVE ProjectGrantState = 1 - ProjectGrantState_PROJECTGRANTSTATE_INACTIVE ProjectGrantState = 2 -) - -// Enum value maps for ProjectGrantState. -var ( - ProjectGrantState_name = map[int32]string{ - 0: "PROJECTGRANTSTATE_UNSPECIFIED", - 1: "PROJECTGRANTSTATE_ACTIVE", - 2: "PROJECTGRANTSTATE_INACTIVE", - } - ProjectGrantState_value = map[string]int32{ - "PROJECTGRANTSTATE_UNSPECIFIED": 0, - "PROJECTGRANTSTATE_ACTIVE": 1, - "PROJECTGRANTSTATE_INACTIVE": 2, - } -) - -func (x ProjectGrantState) Enum() *ProjectGrantState { - p := new(ProjectGrantState) - *p = x - return p -} - -func (x ProjectGrantState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProjectGrantState) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[22].Descriptor() -} - -func (ProjectGrantState) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[22] -} - -func (x ProjectGrantState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProjectGrantState.Descriptor instead. -func (ProjectGrantState) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{22} -} - -type ProjectGrantSearchKey int32 - -const ( - ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_UNSPECIFIED ProjectGrantSearchKey = 0 - ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_PROJECT_NAME ProjectGrantSearchKey = 1 - ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_ROLE_KEY ProjectGrantSearchKey = 2 -) - -// Enum value maps for ProjectGrantSearchKey. -var ( - ProjectGrantSearchKey_name = map[int32]string{ - 0: "PROJECTGRANTSEARCHKEY_UNSPECIFIED", - 1: "PROJECTGRANTSEARCHKEY_PROJECT_NAME", - 2: "PROJECTGRANTSEARCHKEY_ROLE_KEY", - } - ProjectGrantSearchKey_value = map[string]int32{ - "PROJECTGRANTSEARCHKEY_UNSPECIFIED": 0, - "PROJECTGRANTSEARCHKEY_PROJECT_NAME": 1, - "PROJECTGRANTSEARCHKEY_ROLE_KEY": 2, - } -) - -func (x ProjectGrantSearchKey) Enum() *ProjectGrantSearchKey { - p := new(ProjectGrantSearchKey) - *p = x - return p -} - -func (x ProjectGrantSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProjectGrantSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[23].Descriptor() -} - -func (ProjectGrantSearchKey) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[23] -} - -func (x ProjectGrantSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProjectGrantSearchKey.Descriptor instead. -func (ProjectGrantSearchKey) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{23} -} - -type ProjectGrantMemberSearchKey int32 - -const ( - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED ProjectGrantMemberSearchKey = 0 - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME ProjectGrantMemberSearchKey = 1 - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME ProjectGrantMemberSearchKey = 2 - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_EMAIL ProjectGrantMemberSearchKey = 3 - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_USER_ID ProjectGrantMemberSearchKey = 4 - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_USER_NAME ProjectGrantMemberSearchKey = 5 -) - -// Enum value maps for ProjectGrantMemberSearchKey. -var ( - ProjectGrantMemberSearchKey_name = map[int32]string{ - 0: "PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED", - 1: "PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME", - 2: "PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME", - 3: "PROJECTGRANTMEMBERSEARCHKEY_EMAIL", - 4: "PROJECTGRANTMEMBERSEARCHKEY_USER_ID", - 5: "PROJECTGRANTMEMBERSEARCHKEY_USER_NAME", - } - ProjectGrantMemberSearchKey_value = map[string]int32{ - "PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED": 0, - "PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME": 1, - "PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME": 2, - "PROJECTGRANTMEMBERSEARCHKEY_EMAIL": 3, - "PROJECTGRANTMEMBERSEARCHKEY_USER_ID": 4, - "PROJECTGRANTMEMBERSEARCHKEY_USER_NAME": 5, - } -) - -func (x ProjectGrantMemberSearchKey) Enum() *ProjectGrantMemberSearchKey { - p := new(ProjectGrantMemberSearchKey) - *p = x - return p -} - -func (x ProjectGrantMemberSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProjectGrantMemberSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[24].Descriptor() -} - -func (ProjectGrantMemberSearchKey) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[24] -} - -func (x ProjectGrantMemberSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProjectGrantMemberSearchKey.Descriptor instead. -func (ProjectGrantMemberSearchKey) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{24} -} - -type UserGrantState int32 - -const ( - UserGrantState_USERGRANTSTATE_UNSPECIFIED UserGrantState = 0 - UserGrantState_USERGRANTSTATE_ACTIVE UserGrantState = 1 - UserGrantState_USERGRANTSTATE_INACTIVE UserGrantState = 2 -) - -// Enum value maps for UserGrantState. -var ( - UserGrantState_name = map[int32]string{ - 0: "USERGRANTSTATE_UNSPECIFIED", - 1: "USERGRANTSTATE_ACTIVE", - 2: "USERGRANTSTATE_INACTIVE", - } - UserGrantState_value = map[string]int32{ - "USERGRANTSTATE_UNSPECIFIED": 0, - "USERGRANTSTATE_ACTIVE": 1, - "USERGRANTSTATE_INACTIVE": 2, - } -) - -func (x UserGrantState) Enum() *UserGrantState { - p := new(UserGrantState) - *p = x - return p -} - -func (x UserGrantState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UserGrantState) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[25].Descriptor() -} - -func (UserGrantState) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[25] -} - -func (x UserGrantState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UserGrantState.Descriptor instead. -func (UserGrantState) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{25} -} - -type UserGrantSearchKey int32 - -const ( - UserGrantSearchKey_USERGRANTSEARCHKEY_UNSPECIFIED UserGrantSearchKey = 0 - UserGrantSearchKey_USERGRANTSEARCHKEY_PROJECT_ID UserGrantSearchKey = 1 - UserGrantSearchKey_USERGRANTSEARCHKEY_USER_ID UserGrantSearchKey = 2 - UserGrantSearchKey_USERGRANTSEARCHKEY_ORG_ID UserGrantSearchKey = 3 - UserGrantSearchKey_USERGRANTSEARCHKEY_ROLE_KEY UserGrantSearchKey = 4 -) - -// Enum value maps for UserGrantSearchKey. -var ( - UserGrantSearchKey_name = map[int32]string{ - 0: "USERGRANTSEARCHKEY_UNSPECIFIED", - 1: "USERGRANTSEARCHKEY_PROJECT_ID", - 2: "USERGRANTSEARCHKEY_USER_ID", - 3: "USERGRANTSEARCHKEY_ORG_ID", - 4: "USERGRANTSEARCHKEY_ROLE_KEY", - } - UserGrantSearchKey_value = map[string]int32{ - "USERGRANTSEARCHKEY_UNSPECIFIED": 0, - "USERGRANTSEARCHKEY_PROJECT_ID": 1, - "USERGRANTSEARCHKEY_USER_ID": 2, - "USERGRANTSEARCHKEY_ORG_ID": 3, - "USERGRANTSEARCHKEY_ROLE_KEY": 4, - } -) - -func (x UserGrantSearchKey) Enum() *UserGrantSearchKey { - p := new(UserGrantSearchKey) - *p = x - return p -} - -func (x UserGrantSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UserGrantSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_management_proto_enumTypes[26].Descriptor() -} - -func (UserGrantSearchKey) Type() protoreflect.EnumType { - return &file_management_proto_enumTypes[26] -} - -func (x UserGrantSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UserGrantSearchKey.Descriptor instead. -func (UserGrantSearchKey) EnumDescriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{26} -} - -type Iam struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GlobalOrgId string `protobuf:"bytes,1,opt,name=global_org_id,json=globalOrgId,proto3" json:"global_org_id,omitempty"` - IamProjectId string `protobuf:"bytes,2,opt,name=iam_project_id,json=iamProjectId,proto3" json:"iam_project_id,omitempty"` - SetUpDone bool `protobuf:"varint,3,opt,name=set_up_done,json=setUpDone,proto3" json:"set_up_done,omitempty"` - SetUpStarted bool `protobuf:"varint,4,opt,name=set_up_started,json=setUpStarted,proto3" json:"set_up_started,omitempty"` -} - -func (x *Iam) Reset() { - *x = Iam{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Iam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Iam) ProtoMessage() {} - -func (x *Iam) ProtoReflect() protoreflect.Message { - mi := &file_management_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 Iam.ProtoReflect.Descriptor instead. -func (*Iam) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{0} -} - -func (x *Iam) GetGlobalOrgId() string { - if x != nil { - return x.GlobalOrgId - } - return "" -} - -func (x *Iam) GetIamProjectId() string { - if x != nil { - return x.IamProjectId - } - return "" -} - -func (x *Iam) GetSetUpDone() bool { - if x != nil { - return x.SetUpDone - } - return false -} - -func (x *Iam) GetSetUpStarted() bool { - if x != nil { - return x.SetUpStarted - } - return false -} - -type ChangeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - SecId string `protobuf:"bytes,2,opt,name=sec_id,json=secId,proto3" json:"sec_id,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - SequenceOffset uint64 `protobuf:"varint,4,opt,name=sequence_offset,json=sequenceOffset,proto3" json:"sequence_offset,omitempty"` - Asc bool `protobuf:"varint,5,opt,name=asc,proto3" json:"asc,omitempty"` -} - -func (x *ChangeRequest) Reset() { - *x = ChangeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChangeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChangeRequest) ProtoMessage() {} - -func (x *ChangeRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_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 ChangeRequest.ProtoReflect.Descriptor instead. -func (*ChangeRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{1} -} - -func (x *ChangeRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ChangeRequest) GetSecId() string { - if x != nil { - return x.SecId - } - return "" -} - -func (x *ChangeRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ChangeRequest) GetSequenceOffset() uint64 { - if x != nil { - return x.SequenceOffset - } - return 0 -} - -func (x *ChangeRequest) GetAsc() bool { - if x != nil { - return x.Asc - } - return false -} - -type Changes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Changes []*Change `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` -} - -func (x *Changes) Reset() { - *x = Changes{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Changes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Changes) ProtoMessage() {} - -func (x *Changes) ProtoReflect() protoreflect.Message { - mi := &file_management_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 Changes.ProtoReflect.Descriptor instead. -func (*Changes) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{2} -} - -func (x *Changes) GetChanges() []*Change { - if x != nil { - return x.Changes - } - return nil -} - -func (x *Changes) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *Changes) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -type Change struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChangeDate *timestamp.Timestamp `protobuf:"bytes,1,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - EventType *message.LocalizedMessage `protobuf:"bytes,2,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` - EditorId string `protobuf:"bytes,4,opt,name=editor_id,json=editorId,proto3" json:"editor_id,omitempty"` - Editor string `protobuf:"bytes,5,opt,name=editor,proto3" json:"editor,omitempty"` - Data *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *Change) Reset() { - *x = Change{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Change) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Change) ProtoMessage() {} - -func (x *Change) ProtoReflect() protoreflect.Message { - mi := &file_management_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 Change.ProtoReflect.Descriptor instead. -func (*Change) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{3} -} - -func (x *Change) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *Change) GetEventType() *message.LocalizedMessage { - if x != nil { - return x.EventType - } - return nil -} - -func (x *Change) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *Change) GetEditorId() string { - if x != nil { - return x.EditorId - } - return "" -} - -func (x *Change) GetEditor() string { - if x != nil { - return x.Editor - } - return "" -} - -func (x *Change) GetData() *_struct.Struct { - if x != nil { - return x.Data - } - return nil -} - -type ApplicationID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` -} - -func (x *ApplicationID) Reset() { - *x = ApplicationID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplicationID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplicationID) ProtoMessage() {} - -func (x *ApplicationID) ProtoReflect() protoreflect.Message { - mi := &file_management_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 ApplicationID.ProtoReflect.Descriptor instead. -func (*ApplicationID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{4} -} - -func (x *ApplicationID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ApplicationID) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -type ProjectID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ProjectID) Reset() { - *x = ProjectID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectID) ProtoMessage() {} - -func (x *ProjectID) ProtoReflect() protoreflect.Message { - mi := &file_management_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 ProjectID.ProtoReflect.Descriptor instead. -func (*ProjectID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{5} -} - -func (x *ProjectID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type UserID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *UserID) Reset() { - *x = UserID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[6] - 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_management_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 UserID.ProtoReflect.Descriptor instead. -func (*UserID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{6} -} - -func (x *UserID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type Email struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` -} - -func (x *Email) Reset() { - *x = Email{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Email) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Email) ProtoMessage() {} - -func (x *Email) ProtoReflect() protoreflect.Message { - mi := &file_management_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 Email.ProtoReflect.Descriptor instead. -func (*Email) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{7} -} - -func (x *Email) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -type UniqueUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - 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"` -} - -func (x *UniqueUserRequest) Reset() { - *x = UniqueUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UniqueUserRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UniqueUserRequest) ProtoMessage() {} - -func (x *UniqueUserRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_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 UniqueUserRequest.ProtoReflect.Descriptor instead. -func (*UniqueUserRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{8} -} - -func (x *UniqueUserRequest) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *UniqueUserRequest) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -type UniqueUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IsUnique bool `protobuf:"varint,1,opt,name=is_unique,json=isUnique,proto3" json:"is_unique,omitempty"` -} - -func (x *UniqueUserResponse) Reset() { - *x = UniqueUserResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UniqueUserResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UniqueUserResponse) ProtoMessage() {} - -func (x *UniqueUserResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_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 UniqueUserResponse.ProtoReflect.Descriptor instead. -func (*UniqueUserResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{9} -} - -func (x *UniqueUserResponse) GetIsUnique() bool { - if x != nil { - return x.IsUnique - } - return false -} - -type CreateUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,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"` - 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=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,8,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Phone string `protobuf:"bytes,9,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,10,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,12,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,13,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,15,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Password string `protobuf:"bytes,16,opt,name=password,proto3" json:"password,omitempty"` -} - -func (x *CreateUserRequest) Reset() { - *x = CreateUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateUserRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateUserRequest) ProtoMessage() {} - -func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_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 CreateUserRequest.ProtoReflect.Descriptor instead. -func (*CreateUserRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{10} -} - -func (x *CreateUserRequest) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *CreateUserRequest) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *CreateUserRequest) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *CreateUserRequest) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *CreateUserRequest) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *CreateUserRequest) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *CreateUserRequest) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *CreateUserRequest) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *CreateUserRequest) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *CreateUserRequest) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *CreateUserRequest) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *CreateUserRequest) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *CreateUserRequest) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *CreateUserRequest) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *CreateUserRequest) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -func (x *CreateUserRequest) GetPassword() string { - if x != nil { - return x.Password - } - 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=caos.zitadel.management.api.v1.UserState" 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"` - UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - FirstName string `protobuf:"bytes,6,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,7,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - NickName string `protobuf:"bytes,9,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,10,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,11,opt,name=gender,proto3,enum=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,13,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Phone string `protobuf:"bytes,14,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,15,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Country string `protobuf:"bytes,16,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,17,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,18,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,19,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,20,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Sequence uint64 `protobuf:"varint,21,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *User) Reset() { - *x = User{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[11] - 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_management_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 User.ProtoReflect.Descriptor instead. -func (*User) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{11} -} - -func (x *User) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *User) GetState() UserState { - if x != nil { - return x.State - } - return UserState_USERSTATE_UNSPECIFIED -} - -func (x *User) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *User) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *User) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *User) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *User) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *User) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *User) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *User) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *User) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *User) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *User) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *User) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *User) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *User) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *User) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *User) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *User) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *User) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -func (x *User) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type UserView 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=caos.zitadel.management.api.v1.UserState" 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"` - LastLogin *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"` - PasswordChanged *timestamp.Timestamp `protobuf:"bytes,6,opt,name=password_changed,json=passwordChanged,proto3" json:"password_changed,omitempty"` - UserName string `protobuf:"bytes,7,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - DisplayName string `protobuf:"bytes,10,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - NickName string `protobuf:"bytes,11,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,12,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,13,opt,name=gender,proto3,enum=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,14,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,15,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Phone string `protobuf:"bytes,16,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,17,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Country string `protobuf:"bytes,18,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,19,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,20,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,21,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,22,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Sequence uint64 `protobuf:"varint,23,opt,name=sequence,proto3" json:"sequence,omitempty"` - ResourceOwner string `protobuf:"bytes,24,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` - LoginNames []string `protobuf:"bytes,25,rep,name=login_names,json=loginNames,proto3" json:"login_names,omitempty"` - PreferredLoginName string `protobuf:"bytes,26,opt,name=preferred_login_name,json=preferredLoginName,proto3" json:"preferred_login_name,omitempty"` -} - -func (x *UserView) Reset() { - *x = UserView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserView) ProtoMessage() {} - -func (x *UserView) ProtoReflect() protoreflect.Message { - mi := &file_management_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 UserView.ProtoReflect.Descriptor instead. -func (*UserView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{12} -} - -func (x *UserView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserView) GetState() UserState { - if x != nil { - return x.State - } - return UserState_USERSTATE_UNSPECIFIED -} - -func (x *UserView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *UserView) GetLastLogin() *timestamp.Timestamp { - if x != nil { - return x.LastLogin - } - return nil -} - -func (x *UserView) GetPasswordChanged() *timestamp.Timestamp { - if x != nil { - return x.PasswordChanged - } - return nil -} - -func (x *UserView) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *UserView) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *UserView) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *UserView) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *UserView) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *UserView) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *UserView) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *UserView) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *UserView) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *UserView) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *UserView) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *UserView) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *UserView) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *UserView) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *UserView) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *UserView) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -func (x *UserView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserView) GetResourceOwner() string { - if x != nil { - return x.ResourceOwner - } - return "" -} - -func (x *UserView) GetLoginNames() []string { - if x != nil { - return x.LoginNames - } - return nil -} - -func (x *UserView) GetPreferredLoginName() string { - if x != nil { - return x.PreferredLoginName - } - return "" -} - -type UserSearchRequest struct { - 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"` - SortingColumn UserSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=caos.zitadel.management.api.v1.UserSearchKey" json:"sorting_column,omitempty"` - Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` - Queries []*UserSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *UserSearchRequest) Reset() { - *x = UserSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserSearchRequest) ProtoMessage() {} - -func (x *UserSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_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 UserSearchRequest.ProtoReflect.Descriptor instead. -func (*UserSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{13} -} - -func (x *UserSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *UserSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *UserSearchRequest) GetSortingColumn() UserSearchKey { - if x != nil { - return x.SortingColumn - } - return UserSearchKey_USERSEARCHKEY_UNSPECIFIED -} - -func (x *UserSearchRequest) GetAsc() bool { - if x != nil { - return x.Asc - } - return false -} - -func (x *UserSearchRequest) GetQueries() []*UserSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type UserSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key UserSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.UserSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *UserSearchQuery) Reset() { - *x = UserSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserSearchQuery) ProtoMessage() {} - -func (x *UserSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_management_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 UserSearchQuery.ProtoReflect.Descriptor instead. -func (*UserSearchQuery) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{14} -} - -func (x *UserSearchQuery) GetKey() UserSearchKey { - if x != nil { - return x.Key - } - return UserSearchKey_USERSEARCHKEY_UNSPECIFIED -} - -func (x *UserSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *UserSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type UserSearchResponse struct { - 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 []*UserView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *UserSearchResponse) Reset() { - *x = UserSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserSearchResponse) ProtoMessage() {} - -func (x *UserSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_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 UserSearchResponse.ProtoReflect.Descriptor instead. -func (*UserSearchResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{15} -} - -func (x *UserSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *UserSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *UserSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *UserSearchResponse) GetResult() []*UserView { - if x != nil { - return x.Result - } - return nil -} - -type UserProfile struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - UserName string `protobuf:"bytes,8,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,10,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,11,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserProfile) Reset() { - *x = UserProfile{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[16] - 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_management_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 UserProfile.ProtoReflect.Descriptor instead. -func (*UserProfile) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{16} -} - -func (x *UserProfile) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserProfile) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *UserProfile) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *UserProfile) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *UserProfile) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *UserProfile) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *UserProfile) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *UserProfile) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *UserProfile) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserProfile) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserProfile) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UserProfileView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - UserName string `protobuf:"bytes,8,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,10,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,11,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - LoginNames []string `protobuf:"bytes,12,rep,name=login_names,json=loginNames,proto3" json:"login_names,omitempty"` - PreferredLoginName string `protobuf:"bytes,27,opt,name=preferred_login_name,json=preferredLoginName,proto3" json:"preferred_login_name,omitempty"` -} - -func (x *UserProfileView) Reset() { - *x = UserProfileView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserProfileView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserProfileView) ProtoMessage() {} - -func (x *UserProfileView) ProtoReflect() protoreflect.Message { - mi := &file_management_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 UserProfileView.ProtoReflect.Descriptor instead. -func (*UserProfileView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{17} -} - -func (x *UserProfileView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserProfileView) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *UserProfileView) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *UserProfileView) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *UserProfileView) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *UserProfileView) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *UserProfileView) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *UserProfileView) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *UserProfileView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserProfileView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserProfileView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *UserProfileView) GetLoginNames() []string { - if x != nil { - return x.LoginNames - } - return nil -} - -func (x *UserProfileView) GetPreferredLoginName() string { - if x != nil { - return x.PreferredLoginName - } - return "" -} - -type UpdateUserProfileRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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"` - 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=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` -} - -func (x *UpdateUserProfileRequest) Reset() { - *x = UpdateUserProfileRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[18] - 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_management_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 UpdateUserProfileRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserProfileRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{18} -} - -func (x *UpdateUserProfileRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateUserProfileRequest) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *UpdateUserProfileRequest) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *UpdateUserProfileRequest) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *UpdateUserProfileRequest) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *UpdateUserProfileRequest) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -type UserEmail struct { - 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=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserEmail) Reset() { - *x = UserEmail{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[19] - 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_management_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 UserEmail.ProtoReflect.Descriptor instead. -func (*UserEmail) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{19} -} - -func (x *UserEmail) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserEmail) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *UserEmail) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *UserEmail) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserEmail) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserEmail) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UserEmailView struct { - 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=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserEmailView) Reset() { - *x = UserEmailView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserEmailView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserEmailView) ProtoMessage() {} - -func (x *UserEmailView) ProtoReflect() protoreflect.Message { - mi := &file_management_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 UserEmailView.ProtoReflect.Descriptor instead. -func (*UserEmailView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{20} -} - -func (x *UserEmailView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserEmailView) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *UserEmailView) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *UserEmailView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserEmailView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserEmailView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UpdateUserEmailRequest struct { - 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=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` -} - -func (x *UpdateUserEmailRequest) Reset() { - *x = UpdateUserEmailRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[21] - 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_management_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 UpdateUserEmailRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserEmailRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{21} -} - -func (x *UpdateUserEmailRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateUserEmailRequest) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *UpdateUserEmailRequest) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -type UserPhone struct { - 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"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserPhone) Reset() { - *x = UserPhone{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[22] - 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_management_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 UserPhone.ProtoReflect.Descriptor instead. -func (*UserPhone) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{22} -} - -func (x *UserPhone) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserPhone) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *UserPhone) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *UserPhone) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserPhone) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserPhone) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UserPhoneView struct { - 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"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserPhoneView) Reset() { - *x = UserPhoneView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserPhoneView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserPhoneView) ProtoMessage() {} - -func (x *UserPhoneView) ProtoReflect() protoreflect.Message { - mi := &file_management_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 UserPhoneView.ProtoReflect.Descriptor instead. -func (*UserPhoneView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{23} -} - -func (x *UserPhoneView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserPhoneView) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *UserPhoneView) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *UserPhoneView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserPhoneView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserPhoneView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UpdateUserPhoneRequest struct { - 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 (x *UpdateUserPhoneRequest) Reset() { - *x = UpdateUserPhoneRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[24] - 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_management_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 UpdateUserPhoneRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{24} -} - -func (x *UpdateUserPhoneRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateUserPhoneRequest) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *UpdateUserPhoneRequest) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -type UserAddress struct { - 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"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserAddress) Reset() { - *x = UserAddress{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[25] - 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_management_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 UserAddress.ProtoReflect.Descriptor instead. -func (*UserAddress) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{25} -} - -func (x *UserAddress) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserAddress) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *UserAddress) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *UserAddress) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *UserAddress) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *UserAddress) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -func (x *UserAddress) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserAddress) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserAddress) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UserAddressView struct { - 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"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserAddressView) Reset() { - *x = UserAddressView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserAddressView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserAddressView) ProtoMessage() {} - -func (x *UserAddressView) ProtoReflect() protoreflect.Message { - mi := &file_management_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 UserAddressView.ProtoReflect.Descriptor instead. -func (*UserAddressView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{26} -} - -func (x *UserAddressView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserAddressView) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *UserAddressView) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *UserAddressView) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *UserAddressView) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *UserAddressView) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -func (x *UserAddressView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserAddressView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserAddressView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UpdateUserAddressRequest struct { - 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 (x *UpdateUserAddressRequest) Reset() { - *x = UpdateUserAddressRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[27] - 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_management_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 UpdateUserAddressRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserAddressRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{27} -} - -func (x *UpdateUserAddressRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateUserAddressRequest) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *UpdateUserAddressRequest) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *UpdateUserAddressRequest) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *UpdateUserAddressRequest) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *UpdateUserAddressRequest) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -type MultiFactors struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Mfas []*MultiFactor `protobuf:"bytes,1,rep,name=mfas,proto3" json:"mfas,omitempty"` -} - -func (x *MultiFactors) Reset() { - *x = MultiFactors{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[28] - 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_management_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 MultiFactors.ProtoReflect.Descriptor instead. -func (*MultiFactors) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{28} -} - -func (x *MultiFactors) GetMfas() []*MultiFactor { - if x != nil { - return x.Mfas - } - return nil -} - -type MultiFactor struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type MfaType `protobuf:"varint,1,opt,name=type,proto3,enum=caos.zitadel.management.api.v1.MfaType" json:"type,omitempty"` - State MFAState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.MFAState" json:"state,omitempty"` -} - -func (x *MultiFactor) Reset() { - *x = MultiFactor{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[29] - 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_management_proto_msgTypes[29] - 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 file_management_proto_rawDescGZIP(), []int{29} -} - -func (x *MultiFactor) GetType() MfaType { - if x != nil { - return x.Type - } - return MfaType_MFATYPE_UNSPECIFIED -} - -func (x *MultiFactor) GetState() MFAState { - if x != nil { - return x.State - } - return MFAState_MFASTATE_UNSPECIFIED -} - -type PasswordID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *PasswordID) Reset() { - *x = PasswordID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[30] - 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_management_proto_msgTypes[30] - 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 file_management_proto_rawDescGZIP(), []int{30} -} - -func (x *PasswordID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type PasswordRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` -} - -func (x *PasswordRequest) Reset() { - *x = PasswordRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[31] - 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_management_proto_msgTypes[31] - 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 file_management_proto_rawDescGZIP(), []int{31} -} - -func (x *PasswordRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PasswordRequest) GetPassword() string { - if x != nil { - return x.Password - } - return "" -} - -type ResetPasswordRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ResetPasswordRequest) Reset() { - *x = ResetPasswordRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResetPasswordRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResetPasswordRequest) ProtoMessage() {} - -func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[32] - 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 ResetPasswordRequest.ProtoReflect.Descriptor instead. -func (*ResetPasswordRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{32} -} - -func (x *ResetPasswordRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type SetPasswordNotificationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type NotificationType `protobuf:"varint,2,opt,name=type,proto3,enum=caos.zitadel.management.api.v1.NotificationType" json:"type,omitempty"` -} - -func (x *SetPasswordNotificationRequest) Reset() { - *x = SetPasswordNotificationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetPasswordNotificationRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetPasswordNotificationRequest) ProtoMessage() {} - -func (x *SetPasswordNotificationRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[33] - 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 SetPasswordNotificationRequest.ProtoReflect.Descriptor instead. -func (*SetPasswordNotificationRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{33} -} - -func (x *SetPasswordNotificationRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *SetPasswordNotificationRequest) GetType() NotificationType { - if x != nil { - return x.Type - } - return NotificationType_NOTIFICATIONTYPE_EMAIL -} - -type PasswordComplexityPolicyID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *PasswordComplexityPolicyID) Reset() { - *x = PasswordComplexityPolicyID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordComplexityPolicyID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordComplexityPolicyID) ProtoMessage() {} - -func (x *PasswordComplexityPolicyID) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[34] - 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 PasswordComplexityPolicyID.ProtoReflect.Descriptor instead. -func (*PasswordComplexityPolicyID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{34} -} - -func (x *PasswordComplexityPolicyID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type PasswordComplexityPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - State PolicyState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.PolicyState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - MinLength uint64 `protobuf:"varint,6,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - HasLowercase bool `protobuf:"varint,7,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` - HasUppercase bool `protobuf:"varint,8,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` - HasNumber bool `protobuf:"varint,9,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` - HasSymbol bool `protobuf:"varint,10,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` - Sequence uint64 `protobuf:"varint,11,opt,name=sequence,proto3" json:"sequence,omitempty"` - IsDefault bool `protobuf:"varint,12,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` -} - -func (x *PasswordComplexityPolicy) Reset() { - *x = PasswordComplexityPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordComplexityPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordComplexityPolicy) ProtoMessage() {} - -func (x *PasswordComplexityPolicy) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[35] - 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 PasswordComplexityPolicy.ProtoReflect.Descriptor instead. -func (*PasswordComplexityPolicy) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{35} -} - -func (x *PasswordComplexityPolicy) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PasswordComplexityPolicy) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PasswordComplexityPolicy) GetState() PolicyState { - if x != nil { - return x.State - } - return PolicyState_POLICYSTATE_UNSPECIFIED -} - -func (x *PasswordComplexityPolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *PasswordComplexityPolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *PasswordComplexityPolicy) GetMinLength() uint64 { - if x != nil { - return x.MinLength - } - return 0 -} - -func (x *PasswordComplexityPolicy) GetHasLowercase() bool { - if x != nil { - return x.HasLowercase - } - return false -} - -func (x *PasswordComplexityPolicy) GetHasUppercase() bool { - if x != nil { - return x.HasUppercase - } - return false -} - -func (x *PasswordComplexityPolicy) GetHasNumber() bool { - if x != nil { - return x.HasNumber - } - return false -} - -func (x *PasswordComplexityPolicy) GetHasSymbol() bool { - if x != nil { - return x.HasSymbol - } - return false -} - -func (x *PasswordComplexityPolicy) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *PasswordComplexityPolicy) GetIsDefault() bool { - if x != nil { - return x.IsDefault - } - return false -} - -type PasswordComplexityPolicyCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - MinLength uint64 `protobuf:"varint,2,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - HasLowercase bool `protobuf:"varint,3,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` - HasUppercase bool `protobuf:"varint,4,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` - HasNumber bool `protobuf:"varint,5,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` - HasSymbol bool `protobuf:"varint,6,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` -} - -func (x *PasswordComplexityPolicyCreate) Reset() { - *x = PasswordComplexityPolicyCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordComplexityPolicyCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordComplexityPolicyCreate) ProtoMessage() {} - -func (x *PasswordComplexityPolicyCreate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[36] - 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 PasswordComplexityPolicyCreate.ProtoReflect.Descriptor instead. -func (*PasswordComplexityPolicyCreate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{36} -} - -func (x *PasswordComplexityPolicyCreate) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PasswordComplexityPolicyCreate) GetMinLength() uint64 { - if x != nil { - return x.MinLength - } - return 0 -} - -func (x *PasswordComplexityPolicyCreate) GetHasLowercase() bool { - if x != nil { - return x.HasLowercase - } - return false -} - -func (x *PasswordComplexityPolicyCreate) GetHasUppercase() bool { - if x != nil { - return x.HasUppercase - } - return false -} - -func (x *PasswordComplexityPolicyCreate) GetHasNumber() bool { - if x != nil { - return x.HasNumber - } - return false -} - -func (x *PasswordComplexityPolicyCreate) GetHasSymbol() bool { - if x != nil { - return x.HasSymbol - } - return false -} - -type PasswordComplexityPolicyUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - MinLength uint64 `protobuf:"varint,3,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - HasLowercase bool `protobuf:"varint,4,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` - HasUppercase bool `protobuf:"varint,5,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` - HasNumber bool `protobuf:"varint,6,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` - HasSymbol bool `protobuf:"varint,7,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` -} - -func (x *PasswordComplexityPolicyUpdate) Reset() { - *x = PasswordComplexityPolicyUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordComplexityPolicyUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordComplexityPolicyUpdate) ProtoMessage() {} - -func (x *PasswordComplexityPolicyUpdate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[37] - 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 PasswordComplexityPolicyUpdate.ProtoReflect.Descriptor instead. -func (*PasswordComplexityPolicyUpdate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{37} -} - -func (x *PasswordComplexityPolicyUpdate) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PasswordComplexityPolicyUpdate) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PasswordComplexityPolicyUpdate) GetMinLength() uint64 { - if x != nil { - return x.MinLength - } - return 0 -} - -func (x *PasswordComplexityPolicyUpdate) GetHasLowercase() bool { - if x != nil { - return x.HasLowercase - } - return false -} - -func (x *PasswordComplexityPolicyUpdate) GetHasUppercase() bool { - if x != nil { - return x.HasUppercase - } - return false -} - -func (x *PasswordComplexityPolicyUpdate) GetHasNumber() bool { - if x != nil { - return x.HasNumber - } - return false -} - -func (x *PasswordComplexityPolicyUpdate) GetHasSymbol() bool { - if x != nil { - return x.HasSymbol - } - return false -} - -type PasswordAgePolicyID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *PasswordAgePolicyID) Reset() { - *x = PasswordAgePolicyID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordAgePolicyID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordAgePolicyID) ProtoMessage() {} - -func (x *PasswordAgePolicyID) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[38] - 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 PasswordAgePolicyID.ProtoReflect.Descriptor instead. -func (*PasswordAgePolicyID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{38} -} - -func (x *PasswordAgePolicyID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type PasswordAgePolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - State PolicyState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.PolicyState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - MaxAgeDays uint64 `protobuf:"varint,6,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` - ExpireWarnDays uint64 `protobuf:"varint,7,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` - Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` - IsDefault bool `protobuf:"varint,9,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` -} - -func (x *PasswordAgePolicy) Reset() { - *x = PasswordAgePolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordAgePolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordAgePolicy) ProtoMessage() {} - -func (x *PasswordAgePolicy) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[39] - 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 PasswordAgePolicy.ProtoReflect.Descriptor instead. -func (*PasswordAgePolicy) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{39} -} - -func (x *PasswordAgePolicy) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PasswordAgePolicy) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PasswordAgePolicy) GetState() PolicyState { - if x != nil { - return x.State - } - return PolicyState_POLICYSTATE_UNSPECIFIED -} - -func (x *PasswordAgePolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *PasswordAgePolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *PasswordAgePolicy) GetMaxAgeDays() uint64 { - if x != nil { - return x.MaxAgeDays - } - return 0 -} - -func (x *PasswordAgePolicy) GetExpireWarnDays() uint64 { - if x != nil { - return x.ExpireWarnDays - } - return 0 -} - -func (x *PasswordAgePolicy) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *PasswordAgePolicy) GetIsDefault() bool { - if x != nil { - return x.IsDefault - } - return false -} - -type PasswordAgePolicyCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - MaxAgeDays uint64 `protobuf:"varint,2,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` - ExpireWarnDays uint64 `protobuf:"varint,3,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` -} - -func (x *PasswordAgePolicyCreate) Reset() { - *x = PasswordAgePolicyCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordAgePolicyCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordAgePolicyCreate) ProtoMessage() {} - -func (x *PasswordAgePolicyCreate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[40] - 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 PasswordAgePolicyCreate.ProtoReflect.Descriptor instead. -func (*PasswordAgePolicyCreate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{40} -} - -func (x *PasswordAgePolicyCreate) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PasswordAgePolicyCreate) GetMaxAgeDays() uint64 { - if x != nil { - return x.MaxAgeDays - } - return 0 -} - -func (x *PasswordAgePolicyCreate) GetExpireWarnDays() uint64 { - if x != nil { - return x.ExpireWarnDays - } - return 0 -} - -type PasswordAgePolicyUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - MaxAgeDays uint64 `protobuf:"varint,3,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` - ExpireWarnDays uint64 `protobuf:"varint,4,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` -} - -func (x *PasswordAgePolicyUpdate) Reset() { - *x = PasswordAgePolicyUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordAgePolicyUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordAgePolicyUpdate) ProtoMessage() {} - -func (x *PasswordAgePolicyUpdate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[41] - 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 PasswordAgePolicyUpdate.ProtoReflect.Descriptor instead. -func (*PasswordAgePolicyUpdate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{41} -} - -func (x *PasswordAgePolicyUpdate) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PasswordAgePolicyUpdate) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PasswordAgePolicyUpdate) GetMaxAgeDays() uint64 { - if x != nil { - return x.MaxAgeDays - } - return 0 -} - -func (x *PasswordAgePolicyUpdate) GetExpireWarnDays() uint64 { - if x != nil { - return x.ExpireWarnDays - } - return 0 -} - -type PasswordLockoutPolicyID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *PasswordLockoutPolicyID) Reset() { - *x = PasswordLockoutPolicyID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordLockoutPolicyID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordLockoutPolicyID) ProtoMessage() {} - -func (x *PasswordLockoutPolicyID) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[42] - 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 PasswordLockoutPolicyID.ProtoReflect.Descriptor instead. -func (*PasswordLockoutPolicyID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{42} -} - -func (x *PasswordLockoutPolicyID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type PasswordLockoutPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - State PolicyState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.PolicyState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - MaxAttempts uint64 `protobuf:"varint,6,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - ShowLockOutFailures bool `protobuf:"varint,7,opt,name=show_lock_out_failures,json=showLockOutFailures,proto3" json:"show_lock_out_failures,omitempty"` - Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` - IsDefault bool `protobuf:"varint,9,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` -} - -func (x *PasswordLockoutPolicy) Reset() { - *x = PasswordLockoutPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordLockoutPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordLockoutPolicy) ProtoMessage() {} - -func (x *PasswordLockoutPolicy) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[43] - 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 PasswordLockoutPolicy.ProtoReflect.Descriptor instead. -func (*PasswordLockoutPolicy) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{43} -} - -func (x *PasswordLockoutPolicy) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PasswordLockoutPolicy) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PasswordLockoutPolicy) GetState() PolicyState { - if x != nil { - return x.State - } - return PolicyState_POLICYSTATE_UNSPECIFIED -} - -func (x *PasswordLockoutPolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *PasswordLockoutPolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *PasswordLockoutPolicy) GetMaxAttempts() uint64 { - if x != nil { - return x.MaxAttempts - } - return 0 -} - -func (x *PasswordLockoutPolicy) GetShowLockOutFailures() bool { - if x != nil { - return x.ShowLockOutFailures - } - return false -} - -func (x *PasswordLockoutPolicy) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *PasswordLockoutPolicy) GetIsDefault() bool { - if x != nil { - return x.IsDefault - } - return false -} - -type PasswordLockoutPolicyCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - MaxAttempts uint64 `protobuf:"varint,2,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - ShowLockOutFailures bool `protobuf:"varint,3,opt,name=show_lock_out_failures,json=showLockOutFailures,proto3" json:"show_lock_out_failures,omitempty"` -} - -func (x *PasswordLockoutPolicyCreate) Reset() { - *x = PasswordLockoutPolicyCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordLockoutPolicyCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordLockoutPolicyCreate) ProtoMessage() {} - -func (x *PasswordLockoutPolicyCreate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[44] - 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 PasswordLockoutPolicyCreate.ProtoReflect.Descriptor instead. -func (*PasswordLockoutPolicyCreate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{44} -} - -func (x *PasswordLockoutPolicyCreate) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PasswordLockoutPolicyCreate) GetMaxAttempts() uint64 { - if x != nil { - return x.MaxAttempts - } - return 0 -} - -func (x *PasswordLockoutPolicyCreate) GetShowLockOutFailures() bool { - if x != nil { - return x.ShowLockOutFailures - } - return false -} - -type PasswordLockoutPolicyUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - MaxAttempts uint64 `protobuf:"varint,3,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - ShowLockOutFailures bool `protobuf:"varint,4,opt,name=show_lock_out_failures,json=showLockOutFailures,proto3" json:"show_lock_out_failures,omitempty"` -} - -func (x *PasswordLockoutPolicyUpdate) Reset() { - *x = PasswordLockoutPolicyUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordLockoutPolicyUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordLockoutPolicyUpdate) ProtoMessage() {} - -func (x *PasswordLockoutPolicyUpdate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[45] - 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 PasswordLockoutPolicyUpdate.ProtoReflect.Descriptor instead. -func (*PasswordLockoutPolicyUpdate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{45} -} - -func (x *PasswordLockoutPolicyUpdate) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PasswordLockoutPolicyUpdate) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PasswordLockoutPolicyUpdate) GetMaxAttempts() uint64 { - if x != nil { - return x.MaxAttempts - } - return 0 -} - -func (x *PasswordLockoutPolicyUpdate) GetShowLockOutFailures() bool { - if x != nil { - return x.ShowLockOutFailures - } - return false -} - -type OrgIamPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - UserLoginMustBeDomain bool `protobuf:"varint,3,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"` - Default bool `protobuf:"varint,4,opt,name=default,proto3" json:"default,omitempty"` -} - -func (x *OrgIamPolicy) Reset() { - *x = OrgIamPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgIamPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgIamPolicy) ProtoMessage() {} - -func (x *OrgIamPolicy) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[46] - 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 OrgIamPolicy.ProtoReflect.Descriptor instead. -func (*OrgIamPolicy) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{46} -} - -func (x *OrgIamPolicy) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *OrgIamPolicy) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *OrgIamPolicy) GetUserLoginMustBeDomain() bool { - if x != nil { - return x.UserLoginMustBeDomain - } - return false -} - -func (x *OrgIamPolicy) GetDefault() bool { - if x != nil { - return x.Default - } - return false -} - -type OrgID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *OrgID) Reset() { - *x = OrgID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgID) ProtoMessage() {} - -func (x *OrgID) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[47] - 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 OrgID.ProtoReflect.Descriptor instead. -func (*OrgID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{47} -} - -func (x *OrgID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type Org struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.OrgState" 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"` - Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *Org) Reset() { - *x = Org{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[48] - 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_management_proto_msgTypes[48] - 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 file_management_proto_rawDescGZIP(), []int{48} -} - -func (x *Org) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Org) GetState() OrgState { - if x != nil { - return x.State - } - return OrgState_ORGSTATE_UNSPECIFIED -} - -func (x *Org) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *Org) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *Org) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Org) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type OrgView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.OrgState" 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"` - Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *OrgView) Reset() { - *x = OrgView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgView) ProtoMessage() {} - -func (x *OrgView) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[49] - 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 OrgView.ProtoReflect.Descriptor instead. -func (*OrgView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{49} -} - -func (x *OrgView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *OrgView) GetState() OrgState { - if x != nil { - return x.State - } - return OrgState_ORGSTATE_UNSPECIFIED -} - -func (x *OrgView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *OrgView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *OrgView) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *OrgView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type Domain struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` -} - -func (x *Domain) Reset() { - *x = Domain{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Domain) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Domain) ProtoMessage() {} - -func (x *Domain) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[50] - 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 Domain.ProtoReflect.Descriptor instead. -func (*Domain) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{50} -} - -func (x *Domain) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -type OrgDomains struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Domains []*OrgDomain `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` -} - -func (x *OrgDomains) Reset() { - *x = OrgDomains{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgDomains) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgDomains) ProtoMessage() {} - -func (x *OrgDomains) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[51] - 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 OrgDomains.ProtoReflect.Descriptor instead. -func (*OrgDomains) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{51} -} - -func (x *OrgDomains) GetDomains() []*OrgDomain { - if x != nil { - return x.Domains - } - return nil -} - -type OrgDomain struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"` - Verified bool `protobuf:"varint,5,opt,name=verified,proto3" json:"verified,omitempty"` - Primary bool `protobuf:"varint,6,opt,name=primary,proto3" json:"primary,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *OrgDomain) Reset() { - *x = OrgDomain{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgDomain) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgDomain) ProtoMessage() {} - -func (x *OrgDomain) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[52] - 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 OrgDomain.ProtoReflect.Descriptor instead. -func (*OrgDomain) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{52} -} - -func (x *OrgDomain) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *OrgDomain) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *OrgDomain) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *OrgDomain) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *OrgDomain) GetVerified() bool { - if x != nil { - return x.Verified - } - return false -} - -func (x *OrgDomain) GetPrimary() bool { - if x != nil { - return x.Primary - } - return false -} - -func (x *OrgDomain) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type OrgDomainView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"` - Verified bool `protobuf:"varint,5,opt,name=verified,proto3" json:"verified,omitempty"` - Primary bool `protobuf:"varint,6,opt,name=primary,proto3" json:"primary,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *OrgDomainView) Reset() { - *x = OrgDomainView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgDomainView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgDomainView) ProtoMessage() {} - -func (x *OrgDomainView) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[53] - 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 OrgDomainView.ProtoReflect.Descriptor instead. -func (*OrgDomainView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{53} -} - -func (x *OrgDomainView) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *OrgDomainView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *OrgDomainView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *OrgDomainView) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *OrgDomainView) GetVerified() bool { - if x != nil { - return x.Verified - } - return false -} - -func (x *OrgDomainView) GetPrimary() bool { - if x != nil { - return x.Primary - } - return false -} - -func (x *OrgDomainView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type AddOrgDomainRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` -} - -func (x *AddOrgDomainRequest) Reset() { - *x = AddOrgDomainRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddOrgDomainRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddOrgDomainRequest) ProtoMessage() {} - -func (x *AddOrgDomainRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[54] - 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 AddOrgDomainRequest.ProtoReflect.Descriptor instead. -func (*AddOrgDomainRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{54} -} - -func (x *AddOrgDomainRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -type RemoveOrgDomainRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` -} - -func (x *RemoveOrgDomainRequest) Reset() { - *x = RemoveOrgDomainRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveOrgDomainRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveOrgDomainRequest) ProtoMessage() {} - -func (x *RemoveOrgDomainRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[55] - 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 RemoveOrgDomainRequest.ProtoReflect.Descriptor instead. -func (*RemoveOrgDomainRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{55} -} - -func (x *RemoveOrgDomainRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -type OrgDomainSearchResponse struct { - 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 []*OrgDomainView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *OrgDomainSearchResponse) Reset() { - *x = OrgDomainSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgDomainSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgDomainSearchResponse) ProtoMessage() {} - -func (x *OrgDomainSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[56] - 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 OrgDomainSearchResponse.ProtoReflect.Descriptor instead. -func (*OrgDomainSearchResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{56} -} - -func (x *OrgDomainSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *OrgDomainSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *OrgDomainSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *OrgDomainSearchResponse) GetResult() []*OrgDomainView { - if x != nil { - return x.Result - } - return nil -} - -type OrgDomainSearchRequest struct { - 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"` - Queries []*OrgDomainSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *OrgDomainSearchRequest) Reset() { - *x = OrgDomainSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgDomainSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgDomainSearchRequest) ProtoMessage() {} - -func (x *OrgDomainSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[57] - 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 OrgDomainSearchRequest.ProtoReflect.Descriptor instead. -func (*OrgDomainSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{57} -} - -func (x *OrgDomainSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *OrgDomainSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *OrgDomainSearchRequest) GetQueries() []*OrgDomainSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type OrgDomainSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key OrgDomainSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.OrgDomainSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *OrgDomainSearchQuery) Reset() { - *x = OrgDomainSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgDomainSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgDomainSearchQuery) ProtoMessage() {} - -func (x *OrgDomainSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[58] - 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 OrgDomainSearchQuery.ProtoReflect.Descriptor instead. -func (*OrgDomainSearchQuery) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{58} -} - -func (x *OrgDomainSearchQuery) GetKey() OrgDomainSearchKey { - if x != nil { - return x.Key - } - return OrgDomainSearchKey_ORGDOMAINSEARCHKEY_UNSPECIFIED -} - -func (x *OrgDomainSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *OrgDomainSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type OrgMemberRoles struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *OrgMemberRoles) Reset() { - *x = OrgMemberRoles{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgMemberRoles) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgMemberRoles) ProtoMessage() {} - -func (x *OrgMemberRoles) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[59] - 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 OrgMemberRoles.ProtoReflect.Descriptor instead. -func (*OrgMemberRoles) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{59} -} - -func (x *OrgMemberRoles) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type OrgMember struct { - 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"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *OrgMember) Reset() { - *x = OrgMember{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgMember) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgMember) ProtoMessage() {} - -func (x *OrgMember) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[60] - 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 OrgMember.ProtoReflect.Descriptor instead. -func (*OrgMember) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{60} -} - -func (x *OrgMember) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *OrgMember) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *OrgMember) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *OrgMember) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *OrgMember) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type AddOrgMemberRequest struct { - 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"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *AddOrgMemberRequest) Reset() { - *x = AddOrgMemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddOrgMemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddOrgMemberRequest) ProtoMessage() {} - -func (x *AddOrgMemberRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[61] - 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 AddOrgMemberRequest.ProtoReflect.Descriptor instead. -func (*AddOrgMemberRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{61} -} - -func (x *AddOrgMemberRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *AddOrgMemberRequest) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type ChangeOrgMemberRequest struct { - 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"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *ChangeOrgMemberRequest) Reset() { - *x = ChangeOrgMemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChangeOrgMemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChangeOrgMemberRequest) ProtoMessage() {} - -func (x *ChangeOrgMemberRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[62] - 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 ChangeOrgMemberRequest.ProtoReflect.Descriptor instead. -func (*ChangeOrgMemberRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{62} -} - -func (x *ChangeOrgMemberRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ChangeOrgMemberRequest) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type RemoveOrgMemberRequest struct { - 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"` -} - -func (x *RemoveOrgMemberRequest) Reset() { - *x = RemoveOrgMemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveOrgMemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveOrgMemberRequest) ProtoMessage() {} - -func (x *RemoveOrgMemberRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[63] - 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 RemoveOrgMemberRequest.ProtoReflect.Descriptor instead. -func (*RemoveOrgMemberRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{63} -} - -func (x *RemoveOrgMemberRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -type OrgMemberSearchResponse struct { - 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 []*OrgMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *OrgMemberSearchResponse) Reset() { - *x = OrgMemberSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgMemberSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgMemberSearchResponse) ProtoMessage() {} - -func (x *OrgMemberSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[64] - 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 OrgMemberSearchResponse.ProtoReflect.Descriptor instead. -func (*OrgMemberSearchResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{64} -} - -func (x *OrgMemberSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *OrgMemberSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *OrgMemberSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *OrgMemberSearchResponse) GetResult() []*OrgMemberView { - if x != nil { - return x.Result - } - return nil -} - -type OrgMemberView struct { - 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"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - UserName string `protobuf:"bytes,6,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` - FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` -} - -func (x *OrgMemberView) Reset() { - *x = OrgMemberView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgMemberView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgMemberView) ProtoMessage() {} - -func (x *OrgMemberView) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[65] - 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 OrgMemberView.ProtoReflect.Descriptor instead. -func (*OrgMemberView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{65} -} - -func (x *OrgMemberView) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *OrgMemberView) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *OrgMemberView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *OrgMemberView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *OrgMemberView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *OrgMemberView) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *OrgMemberView) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *OrgMemberView) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *OrgMemberView) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -type OrgMemberSearchRequest struct { - 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"` - Queries []*OrgMemberSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *OrgMemberSearchRequest) Reset() { - *x = OrgMemberSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgMemberSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgMemberSearchRequest) ProtoMessage() {} - -func (x *OrgMemberSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[66] - 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 OrgMemberSearchRequest.ProtoReflect.Descriptor instead. -func (*OrgMemberSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{66} -} - -func (x *OrgMemberSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *OrgMemberSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *OrgMemberSearchRequest) GetQueries() []*OrgMemberSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type OrgMemberSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key OrgMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.OrgMemberSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *OrgMemberSearchQuery) Reset() { - *x = OrgMemberSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgMemberSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgMemberSearchQuery) ProtoMessage() {} - -func (x *OrgMemberSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[67] - 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 OrgMemberSearchQuery.ProtoReflect.Descriptor instead. -func (*OrgMemberSearchQuery) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{67} -} - -func (x *OrgMemberSearchQuery) GetKey() OrgMemberSearchKey { - if x != nil { - return x.Key - } - return OrgMemberSearchKey_ORGMEMBERSEARCHKEY_UNSPECIFIED -} - -func (x *OrgMemberSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *OrgMemberSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type ProjectCreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *ProjectCreateRequest) Reset() { - *x = ProjectCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectCreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectCreateRequest) ProtoMessage() {} - -func (x *ProjectCreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[68] - 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 ProjectCreateRequest.ProtoReflect.Descriptor instead. -func (*ProjectCreateRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{68} -} - -func (x *ProjectCreateRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type ProjectUpdateRequest struct { - 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 (x *ProjectUpdateRequest) Reset() { - *x = ProjectUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectUpdateRequest) ProtoMessage() {} - -func (x *ProjectUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[69] - 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 ProjectUpdateRequest.ProtoReflect.Descriptor instead. -func (*ProjectUpdateRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{69} -} - -func (x *ProjectUpdateRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectUpdateRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type ProjectSearchResponse struct { - 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 []*ProjectView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *ProjectSearchResponse) Reset() { - *x = ProjectSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectSearchResponse) ProtoMessage() {} - -func (x *ProjectSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[70] - 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 ProjectSearchResponse.ProtoReflect.Descriptor instead. -func (*ProjectSearchResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{70} -} - -func (x *ProjectSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *ProjectSearchResponse) GetResult() []*ProjectView { - if x != nil { - return x.Result - } - return nil -} - -type ProjectView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - State ProjectState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectState" json:"state,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ResourceOwner string `protobuf:"bytes,6,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *ProjectView) Reset() { - *x = ProjectView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectView) ProtoMessage() {} - -func (x *ProjectView) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[71] - 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 ProjectView.ProtoReflect.Descriptor instead. -func (*ProjectView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{71} -} - -func (x *ProjectView) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectView) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ProjectView) GetState() ProjectState { - if x != nil { - return x.State - } - return ProjectState_PROJECTSTATE_UNSPECIFIED -} - -func (x *ProjectView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *ProjectView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ProjectView) GetResourceOwner() string { - if x != nil { - return x.ResourceOwner - } - return "" -} - -func (x *ProjectView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type ProjectSearchRequest struct { - 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"` - Queries []*ProjectSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *ProjectSearchRequest) Reset() { - *x = ProjectSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectSearchRequest) ProtoMessage() {} - -func (x *ProjectSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[72] - 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 ProjectSearchRequest.ProtoReflect.Descriptor instead. -func (*ProjectSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{72} -} - -func (x *ProjectSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectSearchRequest) GetQueries() []*ProjectSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type ProjectSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key ProjectSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *ProjectSearchQuery) Reset() { - *x = ProjectSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectSearchQuery) ProtoMessage() {} - -func (x *ProjectSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[73] - 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 ProjectSearchQuery.ProtoReflect.Descriptor instead. -func (*ProjectSearchQuery) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{73} -} - -func (x *ProjectSearchQuery) GetKey() ProjectSearchKey { - if x != nil { - return x.Key - } - return ProjectSearchKey_PROJECTSEARCHKEY_UNSPECIFIED -} - -func (x *ProjectSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *ProjectSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type Projects struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` -} - -func (x *Projects) Reset() { - *x = Projects{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Projects) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Projects) ProtoMessage() {} - -func (x *Projects) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[74] - 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 Projects.ProtoReflect.Descriptor instead. -func (*Projects) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{74} -} - -func (x *Projects) GetProjects() []*Project { - if x != nil { - return x.Projects - } - return nil -} - -type Project struct { - 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"` - State ProjectState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectState" json:"state,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *Project) Reset() { - *x = Project{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Project) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Project) ProtoMessage() {} - -func (x *Project) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[75] - 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 Project.ProtoReflect.Descriptor instead. -func (*Project) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{75} -} - -func (x *Project) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Project) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Project) GetState() ProjectState { - if x != nil { - return x.State - } - return ProjectState_PROJECTSTATE_UNSPECIFIED -} - -func (x *Project) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *Project) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *Project) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type ProjectMemberRoles struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *ProjectMemberRoles) Reset() { - *x = ProjectMemberRoles{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectMemberRoles) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectMemberRoles) ProtoMessage() {} - -func (x *ProjectMemberRoles) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[76] - 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 ProjectMemberRoles.ProtoReflect.Descriptor instead. -func (*ProjectMemberRoles) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{76} -} - -func (x *ProjectMemberRoles) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type ProjectMember struct { - 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"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *ProjectMember) Reset() { - *x = ProjectMember{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectMember) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectMember) ProtoMessage() {} - -func (x *ProjectMember) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[77] - 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 ProjectMember.ProtoReflect.Descriptor instead. -func (*ProjectMember) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{77} -} - -func (x *ProjectMember) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectMember) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *ProjectMember) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *ProjectMember) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ProjectMember) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type ProjectMemberAdd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *ProjectMemberAdd) Reset() { - *x = ProjectMemberAdd{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectMemberAdd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectMemberAdd) ProtoMessage() {} - -func (x *ProjectMemberAdd) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[78] - 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 ProjectMemberAdd.ProtoReflect.Descriptor instead. -func (*ProjectMemberAdd) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{78} -} - -func (x *ProjectMemberAdd) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectMemberAdd) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectMemberAdd) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type ProjectMemberChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *ProjectMemberChange) Reset() { - *x = ProjectMemberChange{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectMemberChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectMemberChange) ProtoMessage() {} - -func (x *ProjectMemberChange) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[79] - 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 ProjectMemberChange.ProtoReflect.Descriptor instead. -func (*ProjectMemberChange) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{79} -} - -func (x *ProjectMemberChange) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectMemberChange) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectMemberChange) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type ProjectMemberRemove struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` -} - -func (x *ProjectMemberRemove) Reset() { - *x = ProjectMemberRemove{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectMemberRemove) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectMemberRemove) ProtoMessage() {} - -func (x *ProjectMemberRemove) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[80] - 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 ProjectMemberRemove.ProtoReflect.Descriptor instead. -func (*ProjectMemberRemove) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{80} -} - -func (x *ProjectMemberRemove) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectMemberRemove) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -type ProjectRoleAdd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` -} - -func (x *ProjectRoleAdd) Reset() { - *x = ProjectRoleAdd{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRoleAdd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRoleAdd) ProtoMessage() {} - -func (x *ProjectRoleAdd) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[81] - 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 ProjectRoleAdd.ProtoReflect.Descriptor instead. -func (*ProjectRoleAdd) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{81} -} - -func (x *ProjectRoleAdd) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectRoleAdd) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *ProjectRoleAdd) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *ProjectRoleAdd) GetGroup() string { - if x != nil { - return x.Group - } - return "" -} - -type ProjectRoleAddBulk struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProjectRoles []*ProjectRoleAdd `protobuf:"bytes,2,rep,name=project_roles,json=projectRoles,proto3" json:"project_roles,omitempty"` -} - -func (x *ProjectRoleAddBulk) Reset() { - *x = ProjectRoleAddBulk{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRoleAddBulk) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRoleAddBulk) ProtoMessage() {} - -func (x *ProjectRoleAddBulk) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[82] - 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 ProjectRoleAddBulk.ProtoReflect.Descriptor instead. -func (*ProjectRoleAddBulk) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{82} -} - -func (x *ProjectRoleAddBulk) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectRoleAddBulk) GetProjectRoles() []*ProjectRoleAdd { - if x != nil { - return x.ProjectRoles - } - return nil -} - -type ProjectRoleChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` -} - -func (x *ProjectRoleChange) Reset() { - *x = ProjectRoleChange{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRoleChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRoleChange) ProtoMessage() {} - -func (x *ProjectRoleChange) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[83] - 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 ProjectRoleChange.ProtoReflect.Descriptor instead. -func (*ProjectRoleChange) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{83} -} - -func (x *ProjectRoleChange) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectRoleChange) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *ProjectRoleChange) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *ProjectRoleChange) GetGroup() string { - if x != nil { - return x.Group - } - return "" -} - -type ProjectRole struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Group string `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *ProjectRole) Reset() { - *x = ProjectRole{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRole) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRole) ProtoMessage() {} - -func (x *ProjectRole) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[84] - 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 ProjectRole.ProtoReflect.Descriptor instead. -func (*ProjectRole) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{84} -} - -func (x *ProjectRole) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectRole) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *ProjectRole) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *ProjectRole) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ProjectRole) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *ProjectRole) GetGroup() string { - if x != nil { - return x.Group - } - return "" -} - -func (x *ProjectRole) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type ProjectRoleView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Group string `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *ProjectRoleView) Reset() { - *x = ProjectRoleView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[85] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRoleView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRoleView) ProtoMessage() {} - -func (x *ProjectRoleView) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[85] - 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 ProjectRoleView.ProtoReflect.Descriptor instead. -func (*ProjectRoleView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{85} -} - -func (x *ProjectRoleView) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectRoleView) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *ProjectRoleView) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *ProjectRoleView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ProjectRoleView) GetGroup() string { - if x != nil { - return x.Group - } - return "" -} - -func (x *ProjectRoleView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type ProjectRoleRemove struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` -} - -func (x *ProjectRoleRemove) Reset() { - *x = ProjectRoleRemove{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[86] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRoleRemove) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRoleRemove) ProtoMessage() {} - -func (x *ProjectRoleRemove) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[86] - 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 ProjectRoleRemove.ProtoReflect.Descriptor instead. -func (*ProjectRoleRemove) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{86} -} - -func (x *ProjectRoleRemove) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectRoleRemove) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -type ProjectRoleSearchResponse struct { - 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 []*ProjectRoleView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *ProjectRoleSearchResponse) Reset() { - *x = ProjectRoleSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[87] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRoleSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRoleSearchResponse) ProtoMessage() {} - -func (x *ProjectRoleSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[87] - 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 ProjectRoleSearchResponse.ProtoReflect.Descriptor instead. -func (*ProjectRoleSearchResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{87} -} - -func (x *ProjectRoleSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectRoleSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectRoleSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *ProjectRoleSearchResponse) GetResult() []*ProjectRoleView { - if x != nil { - return x.Result - } - return nil -} - -type ProjectRoleSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ProjectRoleSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *ProjectRoleSearchRequest) Reset() { - *x = ProjectRoleSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[88] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRoleSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRoleSearchRequest) ProtoMessage() {} - -func (x *ProjectRoleSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[88] - 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 ProjectRoleSearchRequest.ProtoReflect.Descriptor instead. -func (*ProjectRoleSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{88} -} - -func (x *ProjectRoleSearchRequest) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectRoleSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectRoleSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectRoleSearchRequest) GetQueries() []*ProjectRoleSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type ProjectRoleSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key ProjectRoleSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectRoleSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *ProjectRoleSearchQuery) Reset() { - *x = ProjectRoleSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[89] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRoleSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRoleSearchQuery) ProtoMessage() {} - -func (x *ProjectRoleSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[89] - 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 ProjectRoleSearchQuery.ProtoReflect.Descriptor instead. -func (*ProjectRoleSearchQuery) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{89} -} - -func (x *ProjectRoleSearchQuery) GetKey() ProjectRoleSearchKey { - if x != nil { - return x.Key - } - return ProjectRoleSearchKey_PROJECTROLESEARCHKEY_UNSPECIFIED -} - -func (x *ProjectRoleSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *ProjectRoleSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type ProjectMemberView struct { - 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"` - UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` - FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *ProjectMemberView) Reset() { - *x = ProjectMemberView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[90] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectMemberView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectMemberView) ProtoMessage() {} - -func (x *ProjectMemberView) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[90] - 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 ProjectMemberView.ProtoReflect.Descriptor instead. -func (*ProjectMemberView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{90} -} - -func (x *ProjectMemberView) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectMemberView) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *ProjectMemberView) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *ProjectMemberView) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *ProjectMemberView) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *ProjectMemberView) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *ProjectMemberView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *ProjectMemberView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ProjectMemberView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type ProjectMemberSearchResponse struct { - 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 []*ProjectMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *ProjectMemberSearchResponse) Reset() { - *x = ProjectMemberSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[91] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectMemberSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectMemberSearchResponse) ProtoMessage() {} - -func (x *ProjectMemberSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[91] - 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 ProjectMemberSearchResponse.ProtoReflect.Descriptor instead. -func (*ProjectMemberSearchResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{91} -} - -func (x *ProjectMemberSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectMemberSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectMemberSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *ProjectMemberSearchResponse) GetResult() []*ProjectMemberView { - if x != nil { - return x.Result - } - return nil -} - -type ProjectMemberSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ProjectMemberSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *ProjectMemberSearchRequest) Reset() { - *x = ProjectMemberSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[92] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectMemberSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectMemberSearchRequest) ProtoMessage() {} - -func (x *ProjectMemberSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[92] - 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 ProjectMemberSearchRequest.ProtoReflect.Descriptor instead. -func (*ProjectMemberSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{92} -} - -func (x *ProjectMemberSearchRequest) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectMemberSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectMemberSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectMemberSearchRequest) GetQueries() []*ProjectMemberSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type ProjectMemberSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key ProjectMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectMemberSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *ProjectMemberSearchQuery) Reset() { - *x = ProjectMemberSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[93] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectMemberSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectMemberSearchQuery) ProtoMessage() {} - -func (x *ProjectMemberSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[93] - 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 ProjectMemberSearchQuery.ProtoReflect.Descriptor instead. -func (*ProjectMemberSearchQuery) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{93} -} - -func (x *ProjectMemberSearchQuery) GetKey() ProjectMemberSearchKey { - if x != nil { - return x.Key - } - return ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_UNSPECIFIED -} - -func (x *ProjectMemberSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *ProjectMemberSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type Application struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State AppState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.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 assignable to AppConfig: - // *Application_OidcConfig - AppConfig isApplication_AppConfig `protobuf_oneof:"app_config"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *Application) Reset() { - *x = Application{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[94] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Application) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Application) ProtoMessage() {} - -func (x *Application) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[94] - 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 Application.ProtoReflect.Descriptor instead. -func (*Application) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{94} -} - -func (x *Application) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Application) GetState() AppState { - if x != nil { - return x.State - } - return AppState_APPSTATE_UNSPECIFIED -} - -func (x *Application) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *Application) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *Application) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (m *Application) GetAppConfig() isApplication_AppConfig { - if m != nil { - return m.AppConfig - } - return nil -} - -func (x *Application) GetOidcConfig() *OIDCConfig { - if x, ok := x.GetAppConfig().(*Application_OidcConfig); ok { - return x.OidcConfig - } - return nil -} - -func (x *Application) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -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() {} - -type ApplicationUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *ApplicationUpdate) Reset() { - *x = ApplicationUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[95] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplicationUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplicationUpdate) ProtoMessage() {} - -func (x *ApplicationUpdate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[95] - 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 ApplicationUpdate.ProtoReflect.Descriptor instead. -func (*ApplicationUpdate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{95} -} - -func (x *ApplicationUpdate) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ApplicationUpdate) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ApplicationUpdate) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type OIDCConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - 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=caos.zitadel.management.api.v1.OIDCResponseType" json:"response_types,omitempty"` - GrantTypes []OIDCGrantType `protobuf:"varint,3,rep,packed,name=grant_types,json=grantTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCGrantType" json:"grant_types,omitempty"` - ApplicationType OIDCApplicationType `protobuf:"varint,4,opt,name=application_type,json=applicationType,proto3,enum=caos.zitadel.management.api.v1.OIDCApplicationType" json:"application_type,omitempty"` - ClientId string `protobuf:"bytes,5,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,6,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - AuthMethodType OIDCAuthMethodType `protobuf:"varint,7,opt,name=auth_method_type,json=authMethodType,proto3,enum=caos.zitadel.management.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"` -} - -func (x *OIDCConfig) Reset() { - *x = OIDCConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[96] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OIDCConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OIDCConfig) ProtoMessage() {} - -func (x *OIDCConfig) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[96] - 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 OIDCConfig.ProtoReflect.Descriptor instead. -func (*OIDCConfig) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{96} -} - -func (x *OIDCConfig) GetRedirectUris() []string { - if x != nil { - return x.RedirectUris - } - return nil -} - -func (x *OIDCConfig) GetResponseTypes() []OIDCResponseType { - if x != nil { - return x.ResponseTypes - } - return nil -} - -func (x *OIDCConfig) GetGrantTypes() []OIDCGrantType { - if x != nil { - return x.GrantTypes - } - return nil -} - -func (x *OIDCConfig) GetApplicationType() OIDCApplicationType { - if x != nil { - return x.ApplicationType - } - return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB -} - -func (x *OIDCConfig) GetClientId() string { - if x != nil { - return x.ClientId - } - return "" -} - -func (x *OIDCConfig) GetClientSecret() string { - if x != nil { - return x.ClientSecret - } - return "" -} - -func (x *OIDCConfig) GetAuthMethodType() OIDCAuthMethodType { - if x != nil { - return x.AuthMethodType - } - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC -} - -func (x *OIDCConfig) GetPostLogoutRedirectUris() []string { - if x != nil { - return x.PostLogoutRedirectUris - } - return nil -} - -type OIDCApplicationCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"` - ResponseTypes []OIDCResponseType `protobuf:"varint,4,rep,packed,name=response_types,json=responseTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCResponseType" json:"response_types,omitempty"` - GrantTypes []OIDCGrantType `protobuf:"varint,5,rep,packed,name=grant_types,json=grantTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCGrantType" json:"grant_types,omitempty"` - ApplicationType OIDCApplicationType `protobuf:"varint,6,opt,name=application_type,json=applicationType,proto3,enum=caos.zitadel.management.api.v1.OIDCApplicationType" json:"application_type,omitempty"` - AuthMethodType OIDCAuthMethodType `protobuf:"varint,7,opt,name=auth_method_type,json=authMethodType,proto3,enum=caos.zitadel.management.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"` -} - -func (x *OIDCApplicationCreate) Reset() { - *x = OIDCApplicationCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[97] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OIDCApplicationCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OIDCApplicationCreate) ProtoMessage() {} - -func (x *OIDCApplicationCreate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[97] - 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 OIDCApplicationCreate.ProtoReflect.Descriptor instead. -func (*OIDCApplicationCreate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{97} -} - -func (x *OIDCApplicationCreate) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *OIDCApplicationCreate) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *OIDCApplicationCreate) GetRedirectUris() []string { - if x != nil { - return x.RedirectUris - } - return nil -} - -func (x *OIDCApplicationCreate) GetResponseTypes() []OIDCResponseType { - if x != nil { - return x.ResponseTypes - } - return nil -} - -func (x *OIDCApplicationCreate) GetGrantTypes() []OIDCGrantType { - if x != nil { - return x.GrantTypes - } - return nil -} - -func (x *OIDCApplicationCreate) GetApplicationType() OIDCApplicationType { - if x != nil { - return x.ApplicationType - } - return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB -} - -func (x *OIDCApplicationCreate) GetAuthMethodType() OIDCAuthMethodType { - if x != nil { - return x.AuthMethodType - } - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC -} - -func (x *OIDCApplicationCreate) GetPostLogoutRedirectUris() []string { - if x != nil { - return x.PostLogoutRedirectUris - } - return nil -} - -type OIDCConfigUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - ApplicationId string `protobuf:"bytes,2,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"` - RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"` - ResponseTypes []OIDCResponseType `protobuf:"varint,4,rep,packed,name=response_types,json=responseTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCResponseType" json:"response_types,omitempty"` - GrantTypes []OIDCGrantType `protobuf:"varint,5,rep,packed,name=grant_types,json=grantTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCGrantType" json:"grant_types,omitempty"` - ApplicationType OIDCApplicationType `protobuf:"varint,6,opt,name=application_type,json=applicationType,proto3,enum=caos.zitadel.management.api.v1.OIDCApplicationType" json:"application_type,omitempty"` - AuthMethodType OIDCAuthMethodType `protobuf:"varint,7,opt,name=auth_method_type,json=authMethodType,proto3,enum=caos.zitadel.management.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"` -} - -func (x *OIDCConfigUpdate) Reset() { - *x = OIDCConfigUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[98] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OIDCConfigUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OIDCConfigUpdate) ProtoMessage() {} - -func (x *OIDCConfigUpdate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[98] - 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 OIDCConfigUpdate.ProtoReflect.Descriptor instead. -func (*OIDCConfigUpdate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{98} -} - -func (x *OIDCConfigUpdate) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *OIDCConfigUpdate) GetApplicationId() string { - if x != nil { - return x.ApplicationId - } - return "" -} - -func (x *OIDCConfigUpdate) GetRedirectUris() []string { - if x != nil { - return x.RedirectUris - } - return nil -} - -func (x *OIDCConfigUpdate) GetResponseTypes() []OIDCResponseType { - if x != nil { - return x.ResponseTypes - } - return nil -} - -func (x *OIDCConfigUpdate) GetGrantTypes() []OIDCGrantType { - if x != nil { - return x.GrantTypes - } - return nil -} - -func (x *OIDCConfigUpdate) GetApplicationType() OIDCApplicationType { - if x != nil { - return x.ApplicationType - } - return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB -} - -func (x *OIDCConfigUpdate) GetAuthMethodType() OIDCAuthMethodType { - if x != nil { - return x.AuthMethodType - } - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC -} - -func (x *OIDCConfigUpdate) GetPostLogoutRedirectUris() []string { - if x != nil { - return x.PostLogoutRedirectUris - } - return nil -} - -type ClientSecret struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ClientSecret string `protobuf:"bytes,1,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` -} - -func (x *ClientSecret) Reset() { - *x = ClientSecret{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[99] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClientSecret) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClientSecret) ProtoMessage() {} - -func (x *ClientSecret) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[99] - 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 ClientSecret.ProtoReflect.Descriptor instead. -func (*ClientSecret) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{99} -} - -func (x *ClientSecret) GetClientSecret() string { - if x != nil { - return x.ClientSecret - } - return "" -} - -type ApplicationView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State AppState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.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 assignable to AppConfig: - // *ApplicationView_OidcConfig - AppConfig isApplicationView_AppConfig `protobuf_oneof:"app_config"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *ApplicationView) Reset() { - *x = ApplicationView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[100] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplicationView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplicationView) ProtoMessage() {} - -func (x *ApplicationView) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[100] - 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 ApplicationView.ProtoReflect.Descriptor instead. -func (*ApplicationView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{100} -} - -func (x *ApplicationView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ApplicationView) GetState() AppState { - if x != nil { - return x.State - } - return AppState_APPSTATE_UNSPECIFIED -} - -func (x *ApplicationView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ApplicationView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *ApplicationView) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (m *ApplicationView) GetAppConfig() isApplicationView_AppConfig { - if m != nil { - return m.AppConfig - } - return nil -} - -func (x *ApplicationView) GetOidcConfig() *OIDCConfig { - if x, ok := x.GetAppConfig().(*ApplicationView_OidcConfig); ok { - return x.OidcConfig - } - return nil -} - -func (x *ApplicationView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type isApplicationView_AppConfig interface { - isApplicationView_AppConfig() -} - -type ApplicationView_OidcConfig struct { - OidcConfig *OIDCConfig `protobuf:"bytes,8,opt,name=oidc_config,json=oidcConfig,proto3,oneof"` -} - -func (*ApplicationView_OidcConfig) isApplicationView_AppConfig() {} - -type ApplicationSearchResponse struct { - 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 []*ApplicationView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *ApplicationSearchResponse) Reset() { - *x = ApplicationSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[101] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplicationSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplicationSearchResponse) ProtoMessage() {} - -func (x *ApplicationSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[101] - 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 ApplicationSearchResponse.ProtoReflect.Descriptor instead. -func (*ApplicationSearchResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{101} -} - -func (x *ApplicationSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ApplicationSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ApplicationSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *ApplicationSearchResponse) GetResult() []*ApplicationView { - if x != nil { - return x.Result - } - return nil -} - -type ApplicationSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ApplicationSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *ApplicationSearchRequest) Reset() { - *x = ApplicationSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[102] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplicationSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplicationSearchRequest) ProtoMessage() {} - -func (x *ApplicationSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[102] - 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 ApplicationSearchRequest.ProtoReflect.Descriptor instead. -func (*ApplicationSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{102} -} - -func (x *ApplicationSearchRequest) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ApplicationSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ApplicationSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ApplicationSearchRequest) GetQueries() []*ApplicationSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type ApplicationSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key ApplicationSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ApplicationSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *ApplicationSearchQuery) Reset() { - *x = ApplicationSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[103] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplicationSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplicationSearchQuery) ProtoMessage() {} - -func (x *ApplicationSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[103] - 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 ApplicationSearchQuery.ProtoReflect.Descriptor instead. -func (*ApplicationSearchQuery) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{103} -} - -func (x *ApplicationSearchQuery) GetKey() ApplicationSearchKey { - if x != nil { - return x.Key - } - return ApplicationSearchKey_APPLICATIONSERACHKEY_UNSPECIFIED -} - -func (x *ApplicationSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *ApplicationSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type ProjectGrant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantedOrgId string `protobuf:"bytes,3,opt,name=granted_org_id,json=grantedOrgId,proto3" json:"granted_org_id,omitempty"` - RoleKeys []string `protobuf:"bytes,4,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - State ProjectGrantState `protobuf:"varint,5,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *ProjectGrant) Reset() { - *x = ProjectGrant{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[104] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrant) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrant) ProtoMessage() {} - -func (x *ProjectGrant) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[104] - 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 ProjectGrant.ProtoReflect.Descriptor instead. -func (*ProjectGrant) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{104} -} - -func (x *ProjectGrant) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectGrant) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrant) GetGrantedOrgId() string { - if x != nil { - return x.GrantedOrgId - } - return "" -} - -func (x *ProjectGrant) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -func (x *ProjectGrant) GetState() ProjectGrantState { - if x != nil { - return x.State - } - return ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED -} - -func (x *ProjectGrant) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ProjectGrant) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *ProjectGrant) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type ProjectGrantCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantedOrgId string `protobuf:"bytes,2,opt,name=granted_org_id,json=grantedOrgId,proto3" json:"granted_org_id,omitempty"` - RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` -} - -func (x *ProjectGrantCreate) Reset() { - *x = ProjectGrantCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[105] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantCreate) ProtoMessage() {} - -func (x *ProjectGrantCreate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[105] - 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 ProjectGrantCreate.ProtoReflect.Descriptor instead. -func (*ProjectGrantCreate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{105} -} - -func (x *ProjectGrantCreate) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrantCreate) GetGrantedOrgId() string { - if x != nil { - return x.GrantedOrgId - } - return "" -} - -func (x *ProjectGrantCreate) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -type ProjectGrantUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` -} - -func (x *ProjectGrantUpdate) Reset() { - *x = ProjectGrantUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[106] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantUpdate) ProtoMessage() {} - -func (x *ProjectGrantUpdate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[106] - 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 ProjectGrantUpdate.ProtoReflect.Descriptor instead. -func (*ProjectGrantUpdate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{106} -} - -func (x *ProjectGrantUpdate) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrantUpdate) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectGrantUpdate) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -type ProjectGrantID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ProjectGrantID) Reset() { - *x = ProjectGrantID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[107] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantID) ProtoMessage() {} - -func (x *ProjectGrantID) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[107] - 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 ProjectGrantID.ProtoReflect.Descriptor instead. -func (*ProjectGrantID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{107} -} - -func (x *ProjectGrantID) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrantID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type ProjectGrantView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantedOrgId string `protobuf:"bytes,3,opt,name=granted_org_id,json=grantedOrgId,proto3" json:"granted_org_id,omitempty"` - GrantedOrgName string `protobuf:"bytes,4,opt,name=granted_org_name,json=grantedOrgName,proto3" json:"granted_org_name,omitempty"` - RoleKeys []string `protobuf:"bytes,5,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - State ProjectGrantState `protobuf:"varint,6,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - ProjectName string `protobuf:"bytes,9,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` - Sequence uint64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence,omitempty"` - ResourceOwner string `protobuf:"bytes,11,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` - ResourceOwnerName string `protobuf:"bytes,12,opt,name=resource_owner_name,json=resourceOwnerName,proto3" json:"resource_owner_name,omitempty"` -} - -func (x *ProjectGrantView) Reset() { - *x = ProjectGrantView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[108] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantView) ProtoMessage() {} - -func (x *ProjectGrantView) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[108] - 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 ProjectGrantView.ProtoReflect.Descriptor instead. -func (*ProjectGrantView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{108} -} - -func (x *ProjectGrantView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectGrantView) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrantView) GetGrantedOrgId() string { - if x != nil { - return x.GrantedOrgId - } - return "" -} - -func (x *ProjectGrantView) GetGrantedOrgName() string { - if x != nil { - return x.GrantedOrgName - } - return "" -} - -func (x *ProjectGrantView) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -func (x *ProjectGrantView) GetState() ProjectGrantState { - if x != nil { - return x.State - } - return ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED -} - -func (x *ProjectGrantView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ProjectGrantView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *ProjectGrantView) GetProjectName() string { - if x != nil { - return x.ProjectName - } - return "" -} - -func (x *ProjectGrantView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *ProjectGrantView) GetResourceOwner() string { - if x != nil { - return x.ResourceOwner - } - return "" -} - -func (x *ProjectGrantView) GetResourceOwnerName() string { - if x != nil { - return x.ResourceOwnerName - } - return "" -} - -type ProjectGrantSearchResponse struct { - 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 []*ProjectGrantView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *ProjectGrantSearchResponse) Reset() { - *x = ProjectGrantSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[109] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantSearchResponse) ProtoMessage() {} - -func (x *ProjectGrantSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[109] - 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 ProjectGrantSearchResponse.ProtoReflect.Descriptor instead. -func (*ProjectGrantSearchResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{109} -} - -func (x *ProjectGrantSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectGrantSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectGrantSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *ProjectGrantSearchResponse) GetResult() []*ProjectGrantView { - if x != nil { - return x.Result - } - return nil -} - -type GrantedProjectSearchRequest struct { - 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"` - Queries []*ProjectSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *GrantedProjectSearchRequest) Reset() { - *x = GrantedProjectSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[110] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GrantedProjectSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GrantedProjectSearchRequest) ProtoMessage() {} - -func (x *GrantedProjectSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[110] - 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 GrantedProjectSearchRequest.ProtoReflect.Descriptor instead. -func (*GrantedProjectSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{110} -} - -func (x *GrantedProjectSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *GrantedProjectSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *GrantedProjectSearchRequest) GetQueries() []*ProjectSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type ProjectGrantSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ProjectGrantSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *ProjectGrantSearchRequest) Reset() { - *x = ProjectGrantSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[111] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantSearchRequest) ProtoMessage() {} - -func (x *ProjectGrantSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[111] - 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 ProjectGrantSearchRequest.ProtoReflect.Descriptor instead. -func (*ProjectGrantSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{111} -} - -func (x *ProjectGrantSearchRequest) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrantSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectGrantSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectGrantSearchRequest) GetQueries() []*ProjectGrantSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type ProjectGrantSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key ProjectGrantSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *ProjectGrantSearchQuery) Reset() { - *x = ProjectGrantSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[112] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantSearchQuery) ProtoMessage() {} - -func (x *ProjectGrantSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[112] - 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 ProjectGrantSearchQuery.ProtoReflect.Descriptor instead. -func (*ProjectGrantSearchQuery) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{112} -} - -func (x *ProjectGrantSearchQuery) GetKey() ProjectGrantSearchKey { - if x != nil { - return x.Key - } - return ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_UNSPECIFIED -} - -func (x *ProjectGrantSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *ProjectGrantSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type ProjectGrantMemberRoles struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *ProjectGrantMemberRoles) Reset() { - *x = ProjectGrantMemberRoles{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[113] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantMemberRoles) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantMemberRoles) ProtoMessage() {} - -func (x *ProjectGrantMemberRoles) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[113] - 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 ProjectGrantMemberRoles.ProtoReflect.Descriptor instead. -func (*ProjectGrantMemberRoles) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{113} -} - -func (x *ProjectGrantMemberRoles) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type ProjectGrantMember struct { - 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"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *ProjectGrantMember) Reset() { - *x = ProjectGrantMember{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[114] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantMember) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantMember) ProtoMessage() {} - -func (x *ProjectGrantMember) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[114] - 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 ProjectGrantMember.ProtoReflect.Descriptor instead. -func (*ProjectGrantMember) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{114} -} - -func (x *ProjectGrantMember) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectGrantMember) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *ProjectGrantMember) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *ProjectGrantMember) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ProjectGrantMember) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type ProjectGrantMemberAdd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *ProjectGrantMemberAdd) Reset() { - *x = ProjectGrantMemberAdd{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[115] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantMemberAdd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantMemberAdd) ProtoMessage() {} - -func (x *ProjectGrantMemberAdd) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[115] - 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 ProjectGrantMemberAdd.ProtoReflect.Descriptor instead. -func (*ProjectGrantMemberAdd) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{115} -} - -func (x *ProjectGrantMemberAdd) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrantMemberAdd) GetGrantId() string { - if x != nil { - return x.GrantId - } - return "" -} - -func (x *ProjectGrantMemberAdd) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectGrantMemberAdd) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type ProjectGrantMemberChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *ProjectGrantMemberChange) Reset() { - *x = ProjectGrantMemberChange{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[116] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantMemberChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantMemberChange) ProtoMessage() {} - -func (x *ProjectGrantMemberChange) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[116] - 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 ProjectGrantMemberChange.ProtoReflect.Descriptor instead. -func (*ProjectGrantMemberChange) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{116} -} - -func (x *ProjectGrantMemberChange) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrantMemberChange) GetGrantId() string { - if x != nil { - return x.GrantId - } - return "" -} - -func (x *ProjectGrantMemberChange) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectGrantMemberChange) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type ProjectGrantMemberRemove struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` -} - -func (x *ProjectGrantMemberRemove) Reset() { - *x = ProjectGrantMemberRemove{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[117] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantMemberRemove) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantMemberRemove) ProtoMessage() {} - -func (x *ProjectGrantMemberRemove) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[117] - 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 ProjectGrantMemberRemove.ProtoReflect.Descriptor instead. -func (*ProjectGrantMemberRemove) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{117} -} - -func (x *ProjectGrantMemberRemove) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrantMemberRemove) GetGrantId() string { - if x != nil { - return x.GrantId - } - return "" -} - -func (x *ProjectGrantMemberRemove) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -type ProjectGrantMemberView struct { - 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"` - UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` - FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *ProjectGrantMemberView) Reset() { - *x = ProjectGrantMemberView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[118] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantMemberView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantMemberView) ProtoMessage() {} - -func (x *ProjectGrantMemberView) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[118] - 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 ProjectGrantMemberView.ProtoReflect.Descriptor instead. -func (*ProjectGrantMemberView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{118} -} - -func (x *ProjectGrantMemberView) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectGrantMemberView) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *ProjectGrantMemberView) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *ProjectGrantMemberView) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *ProjectGrantMemberView) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *ProjectGrantMemberView) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *ProjectGrantMemberView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *ProjectGrantMemberView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ProjectGrantMemberView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type ProjectGrantMemberSearchResponse struct { - 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 []*ProjectGrantMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *ProjectGrantMemberSearchResponse) Reset() { - *x = ProjectGrantMemberSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[119] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantMemberSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantMemberSearchResponse) ProtoMessage() {} - -func (x *ProjectGrantMemberSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[119] - 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 ProjectGrantMemberSearchResponse.ProtoReflect.Descriptor instead. -func (*ProjectGrantMemberSearchResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{119} -} - -func (x *ProjectGrantMemberSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectGrantMemberSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectGrantMemberSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *ProjectGrantMemberSearchResponse) GetResult() []*ProjectGrantMemberView { - if x != nil { - return x.Result - } - return nil -} - -type ProjectGrantMemberSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ProjectGrantMemberSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *ProjectGrantMemberSearchRequest) Reset() { - *x = ProjectGrantMemberSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[120] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantMemberSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantMemberSearchRequest) ProtoMessage() {} - -func (x *ProjectGrantMemberSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[120] - 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 ProjectGrantMemberSearchRequest.ProtoReflect.Descriptor instead. -func (*ProjectGrantMemberSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{120} -} - -func (x *ProjectGrantMemberSearchRequest) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrantMemberSearchRequest) GetGrantId() string { - if x != nil { - return x.GrantId - } - return "" -} - -func (x *ProjectGrantMemberSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectGrantMemberSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectGrantMemberSearchRequest) GetQueries() []*ProjectGrantMemberSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type ProjectGrantMemberSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key ProjectGrantMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *ProjectGrantMemberSearchQuery) Reset() { - *x = ProjectGrantMemberSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[121] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantMemberSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantMemberSearchQuery) ProtoMessage() {} - -func (x *ProjectGrantMemberSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[121] - 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 ProjectGrantMemberSearchQuery.ProtoReflect.Descriptor instead. -func (*ProjectGrantMemberSearchQuery) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{121} -} - -func (x *ProjectGrantMemberSearchQuery) GetKey() ProjectGrantMemberSearchKey { - if x != nil { - return x.Key - } - return ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED -} - -func (x *ProjectGrantMemberSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *ProjectGrantMemberSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type UserGrant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - OrgId string `protobuf:"bytes,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - RoleKeys []string `protobuf:"bytes,5,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - State UserGrantState `protobuf:"varint,6,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.UserGrantState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *UserGrant) Reset() { - *x = UserGrant{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[122] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrant) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrant) ProtoMessage() {} - -func (x *UserGrant) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[122] - 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 UserGrant.ProtoReflect.Descriptor instead. -func (*UserGrant) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{122} -} - -func (x *UserGrant) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserGrant) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *UserGrant) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *UserGrant) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *UserGrant) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -func (x *UserGrant) GetState() UserGrantState { - if x != nil { - return x.State - } - return UserGrantState_USERGRANTSTATE_UNSPECIFIED -} - -func (x *UserGrant) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserGrant) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *UserGrant) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type UserGrantCreateBulk struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserGrants []*UserGrantCreate `protobuf:"bytes,1,rep,name=user_grants,json=userGrants,proto3" json:"user_grants,omitempty"` -} - -func (x *UserGrantCreateBulk) Reset() { - *x = UserGrantCreateBulk{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[123] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantCreateBulk) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantCreateBulk) ProtoMessage() {} - -func (x *UserGrantCreateBulk) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[123] - 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 UserGrantCreateBulk.ProtoReflect.Descriptor instead. -func (*UserGrantCreateBulk) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{123} -} - -func (x *UserGrantCreateBulk) GetUserGrants() []*UserGrantCreate { - if x != nil { - return x.UserGrants - } - return nil -} - -type UserGrantCreate struct { - 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"` - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` -} - -func (x *UserGrantCreate) Reset() { - *x = UserGrantCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[124] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantCreate) ProtoMessage() {} - -func (x *UserGrantCreate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[124] - 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 UserGrantCreate.ProtoReflect.Descriptor instead. -func (*UserGrantCreate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{124} -} - -func (x *UserGrantCreate) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *UserGrantCreate) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *UserGrantCreate) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -type UserGrantUpdateBulk struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserGrants []*UserGrantUpdate `protobuf:"bytes,1,rep,name=user_grants,json=userGrants,proto3" json:"user_grants,omitempty"` -} - -func (x *UserGrantUpdateBulk) Reset() { - *x = UserGrantUpdateBulk{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[125] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantUpdateBulk) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantUpdateBulk) ProtoMessage() {} - -func (x *UserGrantUpdateBulk) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[125] - 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 UserGrantUpdateBulk.ProtoReflect.Descriptor instead. -func (*UserGrantUpdateBulk) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{125} -} - -func (x *UserGrantUpdateBulk) GetUserGrants() []*UserGrantUpdate { - if x != nil { - return x.UserGrants - } - return nil -} - -type UserGrantUpdate struct { - 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"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` -} - -func (x *UserGrantUpdate) Reset() { - *x = UserGrantUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[126] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantUpdate) ProtoMessage() {} - -func (x *UserGrantUpdate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[126] - 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 UserGrantUpdate.ProtoReflect.Descriptor instead. -func (*UserGrantUpdate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{126} -} - -func (x *UserGrantUpdate) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *UserGrantUpdate) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserGrantUpdate) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -type UserGrantRemoveBulk struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` -} - -func (x *UserGrantRemoveBulk) Reset() { - *x = UserGrantRemoveBulk{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[127] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantRemoveBulk) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantRemoveBulk) ProtoMessage() {} - -func (x *UserGrantRemoveBulk) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[127] - 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 UserGrantRemoveBulk.ProtoReflect.Descriptor instead. -func (*UserGrantRemoveBulk) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{127} -} - -func (x *UserGrantRemoveBulk) GetIds() []string { - if x != nil { - return x.Ids - } - return nil -} - -type UserGrantID struct { - 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"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *UserGrantID) Reset() { - *x = UserGrantID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[128] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantID) ProtoMessage() {} - -func (x *UserGrantID) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[128] - 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 UserGrantID.ProtoReflect.Descriptor instead. -func (*UserGrantID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{128} -} - -func (x *UserGrantID) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *UserGrantID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type ProjectUserGrantID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ProjectUserGrantID) Reset() { - *x = ProjectUserGrantID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[129] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectUserGrantID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectUserGrantID) ProtoMessage() {} - -func (x *ProjectUserGrantID) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[129] - 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 ProjectUserGrantID.ProtoReflect.Descriptor instead. -func (*ProjectUserGrantID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{129} -} - -func (x *ProjectUserGrantID) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectUserGrantID) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectUserGrantID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type ProjectUserGrantUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - RoleKeys []string `protobuf:"bytes,4,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` -} - -func (x *ProjectUserGrantUpdate) Reset() { - *x = ProjectUserGrantUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[130] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectUserGrantUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectUserGrantUpdate) ProtoMessage() {} - -func (x *ProjectUserGrantUpdate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[130] - 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 ProjectUserGrantUpdate.ProtoReflect.Descriptor instead. -func (*ProjectUserGrantUpdate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{130} -} - -func (x *ProjectUserGrantUpdate) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectUserGrantUpdate) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectUserGrantUpdate) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectUserGrantUpdate) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -type ProjectGrantUserGrantID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectGrantId string `protobuf:"bytes,1,opt,name=project_grant_id,json=projectGrantId,proto3" json:"project_grant_id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ProjectGrantUserGrantID) Reset() { - *x = ProjectGrantUserGrantID{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[131] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantUserGrantID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantUserGrantID) ProtoMessage() {} - -func (x *ProjectGrantUserGrantID) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[131] - 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 ProjectGrantUserGrantID.ProtoReflect.Descriptor instead. -func (*ProjectGrantUserGrantID) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{131} -} - -func (x *ProjectGrantUserGrantID) GetProjectGrantId() string { - if x != nil { - return x.ProjectGrantId - } - return "" -} - -func (x *ProjectGrantUserGrantID) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectGrantUserGrantID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type ProjectGrantUserGrantCreate struct { - 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"` - ProjectGrantId string `protobuf:"bytes,2,opt,name=project_grant_id,json=projectGrantId,proto3" json:"project_grant_id,omitempty"` - ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - RoleKeys []string `protobuf:"bytes,4,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` -} - -func (x *ProjectGrantUserGrantCreate) Reset() { - *x = ProjectGrantUserGrantCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[132] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantUserGrantCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantUserGrantCreate) ProtoMessage() {} - -func (x *ProjectGrantUserGrantCreate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[132] - 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 ProjectGrantUserGrantCreate.ProtoReflect.Descriptor instead. -func (*ProjectGrantUserGrantCreate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{132} -} - -func (x *ProjectGrantUserGrantCreate) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectGrantUserGrantCreate) GetProjectGrantId() string { - if x != nil { - return x.ProjectGrantId - } - return "" -} - -func (x *ProjectGrantUserGrantCreate) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectGrantUserGrantCreate) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -type ProjectGrantUserGrantUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectGrantId string `protobuf:"bytes,1,opt,name=project_grant_id,json=projectGrantId,proto3" json:"project_grant_id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - RoleKeys []string `protobuf:"bytes,4,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` -} - -func (x *ProjectGrantUserGrantUpdate) Reset() { - *x = ProjectGrantUserGrantUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[133] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantUserGrantUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantUserGrantUpdate) ProtoMessage() {} - -func (x *ProjectGrantUserGrantUpdate) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[133] - 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 ProjectGrantUserGrantUpdate.ProtoReflect.Descriptor instead. -func (*ProjectGrantUserGrantUpdate) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{133} -} - -func (x *ProjectGrantUserGrantUpdate) GetProjectGrantId() string { - if x != nil { - return x.ProjectGrantId - } - return "" -} - -func (x *ProjectGrantUserGrantUpdate) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ProjectGrantUserGrantUpdate) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProjectGrantUserGrantUpdate) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -type UserGrantView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - OrgId string `protobuf:"bytes,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - RoleKeys []string `protobuf:"bytes,5,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - State UserGrantState `protobuf:"varint,6,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.UserGrantState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - UserName string `protobuf:"bytes,9,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - FirstName string `protobuf:"bytes,10,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,11,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"` - OrgName string `protobuf:"bytes,13,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"` - OrgDomain string `protobuf:"bytes,14,opt,name=org_domain,json=orgDomain,proto3" json:"org_domain,omitempty"` - ProjectName string `protobuf:"bytes,15,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` - Sequence uint64 `protobuf:"varint,16,opt,name=sequence,proto3" json:"sequence,omitempty"` - ResourceOwner string `protobuf:"bytes,17,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` - DisplayName string `protobuf:"bytes,18,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` -} - -func (x *UserGrantView) Reset() { - *x = UserGrantView{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[134] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantView) ProtoMessage() {} - -func (x *UserGrantView) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[134] - 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 UserGrantView.ProtoReflect.Descriptor instead. -func (*UserGrantView) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{134} -} - -func (x *UserGrantView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserGrantView) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *UserGrantView) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *UserGrantView) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *UserGrantView) GetRoleKeys() []string { - if x != nil { - return x.RoleKeys - } - return nil -} - -func (x *UserGrantView) GetState() UserGrantState { - if x != nil { - return x.State - } - return UserGrantState_USERGRANTSTATE_UNSPECIFIED -} - -func (x *UserGrantView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserGrantView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *UserGrantView) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *UserGrantView) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *UserGrantView) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *UserGrantView) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *UserGrantView) GetOrgName() string { - if x != nil { - return x.OrgName - } - return "" -} - -func (x *UserGrantView) GetOrgDomain() string { - if x != nil { - return x.OrgDomain - } - return "" -} - -func (x *UserGrantView) GetProjectName() string { - if x != nil { - return x.ProjectName - } - return "" -} - -func (x *UserGrantView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserGrantView) GetResourceOwner() string { - if x != nil { - return x.ResourceOwner - } - return "" -} - -func (x *UserGrantView) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -type UserGrantSearchResponse struct { - 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 []*UserGrantView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *UserGrantSearchResponse) Reset() { - *x = UserGrantSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[135] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantSearchResponse) ProtoMessage() {} - -func (x *UserGrantSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[135] - 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 UserGrantSearchResponse.ProtoReflect.Descriptor instead. -func (*UserGrantSearchResponse) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{135} -} - -func (x *UserGrantSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *UserGrantSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *UserGrantSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *UserGrantSearchResponse) GetResult() []*UserGrantView { - if x != nil { - return x.Result - } - return nil -} - -type UserGrantSearchRequest struct { - 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"` - Queries []*UserGrantSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *UserGrantSearchRequest) Reset() { - *x = UserGrantSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[136] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantSearchRequest) ProtoMessage() {} - -func (x *UserGrantSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[136] - 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 UserGrantSearchRequest.ProtoReflect.Descriptor instead. -func (*UserGrantSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{136} -} - -func (x *UserGrantSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *UserGrantSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *UserGrantSearchRequest) GetQueries() []*UserGrantSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type UserGrantSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key UserGrantSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.UserGrantSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *UserGrantSearchQuery) Reset() { - *x = UserGrantSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[137] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantSearchQuery) ProtoMessage() {} - -func (x *UserGrantSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[137] - 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 UserGrantSearchQuery.ProtoReflect.Descriptor instead. -func (*UserGrantSearchQuery) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{137} -} - -func (x *UserGrantSearchQuery) GetKey() UserGrantSearchKey { - if x != nil { - return x.Key - } - return UserGrantSearchKey_USERGRANTSEARCHKEY_UNSPECIFIED -} - -func (x *UserGrantSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *UserGrantSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type ProjectUserGrantSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*UserGrantSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *ProjectUserGrantSearchRequest) Reset() { - *x = ProjectUserGrantSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[138] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectUserGrantSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectUserGrantSearchRequest) ProtoMessage() {} - -func (x *ProjectUserGrantSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[138] - 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 ProjectUserGrantSearchRequest.ProtoReflect.Descriptor instead. -func (*ProjectUserGrantSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{138} -} - -func (x *ProjectUserGrantSearchRequest) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *ProjectUserGrantSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectUserGrantSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectUserGrantSearchRequest) GetQueries() []*UserGrantSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type ProjectGrantUserGrantSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectGrantId string `protobuf:"bytes,1,opt,name=project_grant_id,json=projectGrantId,proto3" json:"project_grant_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*UserGrantSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *ProjectGrantUserGrantSearchRequest) Reset() { - *x = ProjectGrantUserGrantSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_management_proto_msgTypes[139] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectGrantUserGrantSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectGrantUserGrantSearchRequest) ProtoMessage() {} - -func (x *ProjectGrantUserGrantSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_proto_msgTypes[139] - 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 ProjectGrantUserGrantSearchRequest.ProtoReflect.Descriptor instead. -func (*ProjectGrantUserGrantSearchRequest) Descriptor() ([]byte, []int) { - return file_management_proto_rawDescGZIP(), []int{139} -} - -func (x *ProjectGrantUserGrantSearchRequest) GetProjectGrantId() string { - if x != nil { - return x.ProjectGrantId - } - return "" -} - -func (x *ProjectGrantUserGrantSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ProjectGrantUserGrantSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectGrantUserGrantSearchRequest) GetQueries() []*UserGrantSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -var File_management_proto protoreflect.FileDescriptor - -var file_management_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x1e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 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, 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, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 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, 0x1a, - 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, - 0x01, 0x0a, 0x03, 0x49, 0x61, 0x6d, 0x12, 0x22, 0x0a, 0x0d, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x5f, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x61, - 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x69, 0x61, 0x6d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, - 0x12, 0x1e, 0x0a, 0x0b, 0x73, 0x65, 0x74, 0x5f, 0x75, 0x70, 0x5f, 0x64, 0x6f, 0x6e, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x65, 0x74, 0x55, 0x70, 0x44, 0x6f, 0x6e, 0x65, - 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x65, 0x74, 0x5f, 0x75, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x65, 0x74, 0x55, 0x70, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x22, 0x87, 0x01, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x65, 0x63, 0x49, 0x64, 0x12, - 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, - 0x65, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, - 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x10, - 0x0a, 0x03, 0x61, 0x73, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x73, 0x63, - 0x22, 0x79, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x07, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x16, 0x0a, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, - 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x89, 0x02, 0x0a, 0x06, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 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, 0x44, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, - 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x09, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, - 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, - 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, - 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3e, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x1b, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 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, 0x1d, - 0x0a, 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x5e, 0x0a, - 0x11, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x27, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, - 0x01, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x65, - 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, - 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, - 0x12, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, - 0x22, 0xb8, 0x05, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, - 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x29, 0x0a, 0x0a, 0x66, 0x69, 0x72, 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, - 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x09, 0x6c, 0x61, - 0x73, 0x74, 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, 0x6c, 0x61, 0x73, 0x74, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, - 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x37, 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, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, - 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, - 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x0c, 0xfa, 0x42, 0x09, 0x72, 0x07, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x60, 0x01, - 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, 0x08, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x18, 0x14, 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, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, - 0x73, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x22, - 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x0b, 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, 0x0c, - 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, 0x0d, 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, 0x0e, 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, 0x0f, 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, 0x12, 0x23, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x18, - 0x48, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x93, 0x06, 0x0a, 0x04, - 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, - 0x61, 0x74, 0x65, 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, - 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, - 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, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1b, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 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, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x67, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x0c, 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, 0x0d, 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, 0x0e, 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, 0x0f, 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, 0x10, 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, 0x11, 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, 0x12, 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, 0x13, 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, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, - 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, - 0x65, 0x22, 0x93, 0x08, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3f, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, 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, 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, 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, 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, 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, 0x07, 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, 0x08, 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, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 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, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, - 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, - 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 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, 0x0e, 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, 0x0f, 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, 0x10, 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, 0x11, 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, 0x12, 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, 0x13, 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, 0x14, 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, 0x15, 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, 0x16, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x17, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x0a, - 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, - 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, - 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x67, 0x69, 0x6e, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, - 0x65, 0x64, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x1a, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x6f, - 0x67, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xfe, 0x01, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, - 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, 0x5e, 0x0a, 0x0e, 0x73, - 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, - 0x65, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x20, 0x00, 0x52, 0x0d, 0x73, 0x6f, - 0x72, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x61, - 0x73, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x73, 0x63, 0x12, 0x49, 0x0a, - 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x0f, 0x55, 0x73, 0x65, - 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x49, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 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, 0x44, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 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, 0xa7, 0x01, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 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, 0x40, 0x0a, 0x06, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x56, 0x69, 0x65, 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xbf, 0x03, - 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, 0x1d, 0x0a, - 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 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, 0x03, 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, 0x04, 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, 0x05, 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, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, - 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 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, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, - 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, - 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, - 0x74, 0x65, 0x18, 0x0a, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, - 0x65, 0x18, 0x0b, 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, 0x22, - 0x96, 0x04, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x56, - 0x69, 0x65, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 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, - 0x03, 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, 0x04, 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, 0x05, 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, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, - 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x3e, - 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 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, 0x1a, 0x0a, 0x08, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0a, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0b, 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, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x67, 0x69, - 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x1b, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, - 0x6f, 0x67, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x9e, 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, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x0a, 0x66, 0x69, 0x72, 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, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x27, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 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, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x09, 0x6e, 0x69, 0x63, - 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, - 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x37, 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, 0x08, 0xfa, 0x42, - 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, - 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x67, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0xf7, 0x01, 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, 0x2a, 0x0a, - 0x11, 0x69, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x76, 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, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 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, 0x0c, 0x63, 0x72, 0x65, 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, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, - 0x61, 0x74, 0x65, 0x22, 0xfb, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, - 0x6c, 0x56, 0x69, 0x65, 0x77, 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, 0x2a, 0x0a, 0x11, 0x69, - 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x76, 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, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x0c, 0x63, 0x72, 0x65, 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, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, - 0x65, 0x22, 0x76, 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, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x05, 0x65, - 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, - 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 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, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, - 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0xf7, 0x01, 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, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 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, 0x0c, 0x63, 0x72, 0x65, 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, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, - 0x61, 0x74, 0x65, 0x22, 0xfb, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, - 0x65, 0x56, 0x69, 0x65, 0x77, 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, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x64, 0x61, 0x74, 0x65, 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, 0x0c, 0x63, 0x72, 0x65, 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, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, - 0x65, 0x22, 0x75, 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, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x05, 0x70, - 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x72, - 0x04, 0x10, 0x01, 0x18, 0x14, 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, 0xcd, 0x02, 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, 0x12, 0x1a, - 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x08, 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, 0x3b, 0x0a, 0x0b, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x09, 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, 0x22, 0xd1, 0x02, 0x0a, 0x0f, 0x55, 0x73, 0x65, - 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x69, 0x65, 0x77, 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, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, - 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, - 0x08, 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, - 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x09, - 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, 0x22, 0xf2, 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, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x22, 0x0a, 0x07, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x72, 0x79, 0x18, 0x02, 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, 0x03, 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, 0x04, 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, 0x05, 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, 0x06, 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, 0x4f, 0x0a, 0x0c, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, - 0x73, 0x12, 0x3f, 0x0a, 0x04, 0x6d, 0x66, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x8a, 0x01, 0x0a, 0x0b, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x12, 0x3b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x66, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x3e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x46, 0x41, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 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, 0x48, 0x0a, - 0x0f, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x25, 0x0a, 0x08, 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, 0x08, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x65, 0x74, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x76, 0x0a, 0x1e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x44, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x2c, 0x0a, 0x1a, 0x50, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xef, 0x03, 0x0a, 0x18, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 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, 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, 0x0c, 0x63, 0x72, 0x65, 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, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, - 0x6e, 0x67, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x5f, 0x6c, 0x6f, 0x77, 0x65, - 0x72, 0x63, 0x61, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, - 0x4c, 0x6f, 0x77, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x61, 0x73, - 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0c, 0x68, 0x61, 0x73, 0x55, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x12, 0x1d, - 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, - 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x1a, 0x0a, 0x08, - 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, - 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, - 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0xf3, 0x01, 0x0a, 0x1e, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xf4, 0x03, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, - 0x6e, 0x67, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, - 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x5f, 0x6c, 0x6f, 0x77, - 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, - 0x73, 0x4c, 0x6f, 0x77, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x61, - 0x73, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x55, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x12, - 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, - 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x22, 0x83, 0x02, - 0x0a, 0x1e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x2a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xf4, 0x03, 0x52, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, - 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x68, - 0x61, 0x73, 0x5f, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x4c, 0x6f, 0x77, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, - 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x55, 0x70, 0x70, 0x65, - 0x72, 0x63, 0x61, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x4e, 0x75, - 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x73, 0x79, 0x6d, 0x62, - 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x53, 0x79, 0x6d, - 0x62, 0x6f, 0x6c, 0x22, 0x25, 0x0a, 0x13, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, - 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8d, 0x03, 0x0a, 0x11, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 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, 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, 0x0c, 0x63, 0x72, 0x65, 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, 0x20, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x67, 0x65, 0x5f, 0x64, - 0x61, 0x79, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x41, 0x67, - 0x65, 0x44, 0x61, 0x79, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, - 0x77, 0x61, 0x72, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x57, 0x61, 0x72, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x12, - 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, - 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x09, 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x91, 0x01, 0x0a, 0x17, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, - 0x72, 0x03, 0x18, 0xf4, 0x03, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x61, - 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, - 0x44, 0x61, 0x79, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x77, - 0x61, 0x72, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, - 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x57, 0x61, 0x72, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x22, 0xa1, - 0x01, 0x0a, 0x17, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xf4, 0x03, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x67, - 0x65, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6d, 0x61, - 0x78, 0x41, 0x67, 0x65, 0x44, 0x61, 0x79, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x69, - 0x72, 0x65, 0x5f, 0x77, 0x61, 0x72, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x57, 0x61, 0x72, 0x6e, 0x44, 0x61, - 0x79, 0x73, 0x22, 0x29, 0x0a, 0x17, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, - 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x9d, 0x03, - 0x0a, 0x15, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, - 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 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, 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, - 0x0c, 0x63, 0x72, 0x65, 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, 0x21, 0x0a, 0x0c, 0x6d, 0x61, - 0x78, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x33, 0x0a, - 0x16, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x66, - 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, - 0x68, 0x6f, 0x77, 0x4c, 0x6f, 0x63, 0x6b, 0x4f, 0x75, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, - 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, - 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0xa1, 0x01, - 0x0a, 0x1b, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, - 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xf4, 0x03, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, - 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0b, 0x6d, 0x61, 0x78, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x16, - 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x66, 0x61, - 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x68, - 0x6f, 0x77, 0x4c, 0x6f, 0x63, 0x6b, 0x4f, 0x75, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, - 0x73, 0x22, 0xb1, 0x01, 0x0a, 0x1b, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, - 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x2a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xf4, 0x03, - 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, - 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, - 0x12, 0x33, 0x0a, 0x16, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6f, 0x75, - 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x13, 0x73, 0x68, 0x6f, 0x77, 0x4c, 0x6f, 0x63, 0x6b, 0x4f, 0x75, 0x74, 0x46, 0x61, 0x69, - 0x6c, 0x75, 0x72, 0x65, 0x73, 0x22, 0x9b, 0x01, 0x0a, 0x0c, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x20, 0x0a, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x38, 0x0a, 0x19, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x6d, 0x75, - 0x73, 0x74, 0x5f, 0x62, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x15, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x4d, 0x75, 0x73, - 0x74, 0x42, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x22, 0x17, 0x0a, 0x05, 0x4f, 0x72, 0x67, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x83, 0x02, 0x0a, - 0x03, 0x4f, 0x72, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, - 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, - 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, - 0x63, 0x65, 0x22, 0x87, 0x02, 0x0a, 0x07, 0x4f, 0x72, 0x67, 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3e, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x67, 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, - 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x20, 0x0a, 0x06, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x51, - 0x0a, 0x0a, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x43, 0x0a, 0x07, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x73, 0x22, 0x8a, 0x02, 0x0a, 0x09, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, - 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, - 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x44, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, - 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, - 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, - 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x8e, - 0x02, 0x0a, 0x0d, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x56, 0x69, 0x65, 0x77, - 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, - 0x08, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x08, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, - 0x39, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, - 0xc8, 0x01, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x3c, 0x0a, 0x16, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, - 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xb1, 0x01, 0x0a, 0x17, 0x4f, 0x72, 0x67, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x45, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x56, 0x69, 0x65, 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x96, 0x01, 0x0a, - 0x16, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x4e, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xc2, 0x01, 0x0a, 0x14, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x4e, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x44, - 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x26, 0x0a, 0x0e, 0x4f, 0x72, - 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, - 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, - 0x65, 0x73, 0x22, 0xd4, 0x01, 0x0a, 0x09, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 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, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, - 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, - 0x63, 0x72, 0x65, 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, - 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x44, 0x0a, 0x13, 0x41, 0x64, 0x64, - 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 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, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, - 0x47, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 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, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x31, 0x0a, 0x16, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 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, 0x22, 0xb1, 0x01, 0x0a, 0x17, - 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 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, 0x45, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, - 0xc7, 0x02, 0x0a, 0x0d, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x69, 0x65, - 0x77, 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, 0x14, 0x0a, 0x05, 0x72, 0x6f, - 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, - 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, - 0x0d, 0x63, 0x72, 0x65, 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, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, - 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, - 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1d, 0x0a, - 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 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, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x16, 0x4f, 0x72, - 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 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, 0x4e, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x22, 0xc2, 0x01, 0x0a, 0x14, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x4e, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 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, 0x44, 0x0a, 0x06, 0x6d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x36, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, - 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0x46, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 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, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, - 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 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, 0x43, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x69, 0x65, 0x77, 0x52, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xc5, 0x02, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, - 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, - 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x0c, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x0e, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x77, - 0x6e, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, - 0x92, 0x01, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 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, 0x4c, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x22, 0xbe, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x4c, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 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, 0x44, 0x0a, 0x06, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 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, 0x4f, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x12, 0x43, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x08, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x8b, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 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, 0x12, 0x42, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 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, 0x0c, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x22, 0x2a, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, - 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, - 0x22, 0xd8, 0x01, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 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, 0x14, 0x0a, 0x05, 0x72, - 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, - 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3f, - 0x0a, 0x0d, 0x63, 0x72, 0x65, 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, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x51, 0x0a, 0x10, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x64, 0x64, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x54, - 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, - 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x3e, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, - 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, - 0x65, 0x72, 0x49, 0x64, 0x22, 0x6b, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, - 0x6f, 0x6c, 0x65, 0x41, 0x64, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x22, 0x79, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, - 0x41, 0x64, 0x64, 0x42, 0x75, 0x6c, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x53, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x64, 0x64, 0x52, 0x0c, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x6e, 0x0a, 0x11, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, - 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x91, 0x02, 0x0a, - 0x0b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, - 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 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, 0x0c, 0x63, 0x72, 0x65, 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, 0x14, - 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x22, 0xd8, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, - 0x56, 0x69, 0x65, 0x77, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 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, 0x0c, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, - 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x35, 0x0a, 0x11, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x22, 0xb5, 0x01, 0x0a, 0x19, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, - 0x6c, 0x65, 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, 0x47, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x56, 0x69, - 0x65, 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xb9, 0x01, 0x0a, 0x18, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, - 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x12, 0x50, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, - 0x6c, 0x65, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, - 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xc6, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x12, 0x50, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 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, 0x44, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, - 0xcb, 0x02, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x56, 0x69, 0x65, 0x77, 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, 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, 0x14, 0x0a, 0x05, 0x65, - 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, - 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x04, 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, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, - 0x6c, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, - 0x74, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, - 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, - 0x65, 0x18, 0x08, 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, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xb9, 0x01, - 0x0a, 0x1b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 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, 0x49, - 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x69, 0x65, - 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xbd, 0x01, 0x0a, 0x1a, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x52, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xca, 0x01, 0x0a, 0x18, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x52, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 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, 0x44, 0x0a, 0x06, 0x6d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 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, 0xe8, 0x02, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, - 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x44, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x0b, 0x6f, 0x69, 0x64, 0x63, - 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x49, 0x44, 0x43, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x69, 0x64, - 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x22, 0x62, 0x0a, 0x11, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x95, 0x04, 0x0a, 0x0a, 0x4f, 0x49, 0x44, 0x43, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, - 0x5f, 0x75, 0x72, 0x69, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x64, - 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x73, 0x12, 0x57, 0x0a, 0x0e, 0x72, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0e, 0x32, 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x12, 0x5e, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, - 0x44, 0x43, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x05, 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, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, - 0x63, 0x72, 0x65, 0x74, 0x12, 0x5c, 0x0a, 0x10, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x49, 0x44, 0x43, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x39, 0x0a, 0x19, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x6f, 0x75, - 0x74, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x73, 0x18, - 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x16, 0x70, 0x6f, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x6f, 0x75, - 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x73, 0x22, 0x9d, 0x04, - 0x0a, 0x15, 0x4f, 0x49, 0x44, 0x43, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, - 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, - 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x73, 0x12, 0x57, 0x0a, 0x0e, 0x72, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x12, 0x5e, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x49, 0x44, 0x43, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x5c, 0x0a, 0x10, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x49, 0x44, 0x43, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x39, 0x0a, 0x19, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x6f, 0x75, - 0x74, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x73, 0x18, - 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x16, 0x70, 0x6f, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x6f, 0x75, - 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x73, 0x22, 0x9f, 0x04, - 0x0a, 0x10, 0x4f, 0x49, 0x44, 0x43, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, - 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x64, 0x69, - 0x72, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0c, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x73, 0x12, 0x57, 0x0a, - 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, - 0x43, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x5e, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x33, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5c, 0x0a, 0x10, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x19, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, - 0x6f, 0x75, 0x74, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, - 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x16, 0x70, 0x6f, 0x73, 0x74, 0x4c, 0x6f, 0x67, - 0x6f, 0x75, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x73, 0x22, - 0x33, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, - 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, - 0x63, 0x72, 0x65, 0x74, 0x22, 0xec, 0x02, 0x0a, 0x0f, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x0b, 0x6f, 0x69, - 0x64, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0a, 0x6f, - 0x69, 0x64, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x22, 0xb5, 0x01, 0x0a, 0x19, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 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, 0x47, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, - 0x69, 0x65, 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xb9, 0x01, 0x0a, 0x18, - 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x50, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, - 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xc6, 0x01, 0x0a, 0x16, 0x41, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x12, 0x50, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x34, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x44, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0xe3, 0x02, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, - 0x12, 0x24, 0x0a, 0x0e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x72, 0x67, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x64, 0x4f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6b, - 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x65, 0x4b, - 0x65, 0x79, 0x73, 0x12, 0x47, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, - 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, 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, - 0x0c, 0x63, 0x72, 0x65, 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, 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, 0x0a, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x76, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x4f, 0x72, 0x67, 0x49, - 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x60, - 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x65, 0x4b, 0x65, 0x79, 0x73, - 0x22, 0x3f, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x49, 0x44, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, - 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x8b, 0x04, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, - 0x5f, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x4f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x4f, 0x72, - 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6b, 0x65, - 0x79, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x65, 0x4b, 0x65, - 0x79, 0x73, 0x12, 0x47, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 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, 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, 0x0c, - 0x63, 0x72, 0x65, 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, 0x08, 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, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, - 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, - 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, - 0x2e, 0x0a, 0x13, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, - 0xb7, 0x01, 0x0a, 0x1a, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, - 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, - 0x48, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x56, 0x69, 0x65, - 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x99, 0x01, 0x0a, 0x1b, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 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, 0x4c, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xbb, 0x01, 0x0a, 0x19, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, - 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, - 0x12, 0x51, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x22, 0xc8, 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, - 0x51, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 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, 0x44, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x2f, - 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, - 0xdd, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 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, - 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, - 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, - 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 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, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, - 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, - 0x80, 0x01, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x64, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, - 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, - 0x65, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x18, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, - 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, - 0x0a, 0x08, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x6d, 0x0a, 0x18, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, - 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xd0, 0x02, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x69, - 0x65, 0x77, 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, 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, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1d, - 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 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, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, - 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, - 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 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, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, - 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x08, - 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, 0x1a, - 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xc3, 0x01, 0x0a, 0x20, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 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, 0x4e, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x22, 0xe2, 0x01, 0x0a, 0x1f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, - 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, - 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x57, 0x0a, 0x07, - 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xd4, 0x01, 0x0a, 0x1d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x57, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 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, 0x44, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0xe7, 0x02, 0x0a, - 0x09, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, - 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, - 0x72, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6c, - 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, - 0x6c, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x44, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, - 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, 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, - 0x0c, 0x63, 0x72, 0x65, 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, 0x08, 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, 0x1a, 0x0a, 0x08, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x67, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x12, 0x50, 0x0a, - 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, - 0x66, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, - 0x74, 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, 0x1d, 0x0a, 0x0a, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, - 0x6c, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, - 0x6f, 0x6c, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x67, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x12, 0x50, - 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, - 0x22, 0x57, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x70, 0x64, - 0x61, 0x74, 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, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, - 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x08, 0x72, 0x6f, 0x6c, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x27, 0x0a, 0x13, 0x55, 0x73, 0x65, - 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x75, 0x6c, 0x6b, - 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, - 0x64, 0x73, 0x22, 0x36, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, - 0x44, 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, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x5c, 0x0a, 0x12, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, - 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, - 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7d, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, - 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, - 0x6c, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, - 0x6f, 0x6c, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x6c, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x49, 0x44, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x72, - 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xa5, 0x01, 0x0a, 0x1b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x43, - 0x72, 0x65, 0x61, 0x74, 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, 0x28, - 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, - 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, - 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x8d, 0x01, - 0x0a, 0x1b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, - 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, - 0x10, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x81, 0x05, - 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x56, 0x69, 0x65, 0x77, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, - 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, - 0x0a, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x44, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x47, 0x72, 0x61, 0x6e, 0x74, 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, 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, 0x0c, 0x63, 0x72, 0x65, 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, 0x08, 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, - 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 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, 0x0a, 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, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, - 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x19, - 0x0a, 0x08, 0x6f, 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x72, 0x67, - 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, - 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x21, - 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x12, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, - 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x17, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 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, 0x45, - 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x56, 0x69, 0x65, 0x77, 0x52, 0x06, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x96, 0x01, 0x0a, 0x16, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, - 0x61, 0x6e, 0x74, 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, 0x4e, - 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x34, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xcc, - 0x01, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x4e, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 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, 0x4e, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x18, 0x00, 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, 0xbc, 0x01, - 0x0a, 0x1d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x16, - 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, - 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x4e, 0x0a, 0x07, - 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xcc, 0x01, 0x0a, - 0x22, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, - 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, - 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x4e, 0x0a, 0x07, 0x71, - 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2a, 0xaf, 0x01, 0x0a, 0x09, - 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, - 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 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, 0xf5, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x19, 0x55, 0x53, 0x45, - 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x55, 0x53, 0x45, 0x52, - 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x4e, - 0x41, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x55, 0x53, 0x45, 0x52, 0x53, 0x45, 0x41, - 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x4e, 0x41, 0x4d, - 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x55, 0x53, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, - 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x4c, 0x41, 0x53, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x03, - 0x12, 0x1b, 0x0a, 0x17, 0x55, 0x53, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, - 0x59, 0x5f, 0x4e, 0x49, 0x43, 0x4b, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x04, 0x12, 0x1e, 0x0a, - 0x1a, 0x55, 0x53, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x44, - 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x05, 0x12, 0x17, 0x0a, - 0x13, 0x55, 0x53, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x45, - 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x53, 0x45, 0x52, 0x53, 0x45, - 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, 0x07, 0x2a, - 0xea, 0x02, 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, 0x12, 0x23, 0x0a, 0x1f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, - 0x4f, 0x44, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, - 0x5f, 0x43, 0x41, 0x53, 0x45, 0x10, 0x03, 0x12, 0x28, 0x0a, 0x24, 0x53, 0x45, 0x41, 0x52, 0x43, - 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x53, 0x5f, 0x57, - 0x49, 0x54, 0x48, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x41, 0x53, 0x45, 0x10, - 0x04, 0x12, 0x25, 0x0a, 0x21, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, - 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, - 0x45, 0x5f, 0x43, 0x41, 0x53, 0x45, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x41, 0x52, - 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x51, 0x55, - 0x41, 0x4c, 0x53, 0x10, 0x06, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, - 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, - 0x41, 0x4e, 0x10, 0x07, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, - 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x08, - 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, - 0x5f, 0x49, 0x53, 0x5f, 0x4f, 0x4e, 0x45, 0x5f, 0x4f, 0x46, 0x10, 0x09, 0x12, 0x1e, 0x0a, 0x1a, - 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x4c, 0x49, 0x53, - 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x10, 0x0a, 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, 0x48, 0x0a, 0x10, 0x4e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, - 0x0a, 0x16, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x4e, 0x4f, - 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, - 0x4d, 0x53, 0x10, 0x01, 0x2a, 0x75, 0x0a, 0x0b, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x53, 0x54, 0x41, - 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x16, 0x0a, 0x12, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, - 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x4f, 0x4c, 0x49, - 0x43, 0x59, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, - 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x53, 0x54, 0x41, 0x54, - 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x50, 0x0a, 0x08, 0x4f, - 0x72, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x52, 0x47, 0x53, 0x54, - 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, - 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, - 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, 0x57, 0x0a, - 0x12, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x4b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x1e, 0x4f, 0x52, 0x47, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, - 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x47, 0x44, 0x4f, - 0x4d, 0x41, 0x49, 0x4e, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x44, 0x4f, - 0x4d, 0x41, 0x49, 0x4e, 0x10, 0x01, 0x2a, 0xbb, 0x01, 0x0a, 0x12, 0x4f, 0x72, 0x67, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x22, 0x0a, - 0x1e, 0x4f, 0x52, 0x47, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, - 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x52, 0x47, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, - 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x4e, 0x41, - 0x4d, 0x45, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x47, 0x4d, 0x45, 0x4d, 0x42, 0x45, - 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x4c, 0x41, 0x53, 0x54, 0x5f, - 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x47, 0x4d, 0x45, 0x4d, - 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x4d, 0x41, - 0x49, 0x4c, 0x10, 0x03, 0x12, 0x1e, 0x0a, 0x1a, 0x4f, 0x52, 0x47, 0x4d, 0x45, 0x4d, 0x42, 0x45, - 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, - 0x49, 0x44, 0x10, 0x04, 0x2a, 0x57, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x52, 0x4f, 0x4a, - 0x45, 0x43, 0x54, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x52, - 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x50, - 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x2a, 0x60, 0x0a, - 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, - 0x18, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x50, - 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, - 0x56, 0x45, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x53, - 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, - 0x5a, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, - 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, - 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x44, - 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x81, 0x01, 0x0a, 0x14, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x52, - 0x4f, 0x4c, 0x45, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, - 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x52, 0x4f, 0x4c, 0x45, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, - 0x45, 0x59, 0x5f, 0x4b, 0x45, 0x59, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x52, 0x4f, 0x4a, - 0x45, 0x43, 0x54, 0x52, 0x4f, 0x4c, 0x45, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, - 0x5f, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x02, 0x2a, - 0xf9, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x52, - 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, - 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x4d, 0x45, 0x4d, - 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x46, 0x49, 0x52, - 0x53, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x52, 0x4f, - 0x4a, 0x45, 0x43, 0x54, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, - 0x4b, 0x45, 0x59, 0x5f, 0x4c, 0x41, 0x53, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x02, 0x12, - 0x20, 0x0a, 0x1c, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, - 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, - 0x03, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x4d, 0x45, 0x4d, 0x42, - 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x53, 0x45, 0x52, - 0x5f, 0x49, 0x44, 0x10, 0x04, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, - 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, - 0x55, 0x53, 0x45, 0x52, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x05, 0x2a, 0x50, 0x0a, 0x08, 0x41, - 0x70, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x50, 0x50, 0x53, 0x54, - 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x50, 0x50, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, - 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x50, 0x50, 0x53, 0x54, 0x41, - 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, 0x68, 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, 0x1a, 0x0a, 0x16, 0x4f, - 0x49, 0x44, 0x43, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x02, 0x2a, 0x72, 0x0a, 0x0d, 0x4f, 0x49, 0x44, 0x43, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x4f, 0x49, 0x44, 0x43, - 0x47, 0x52, 0x41, 0x4e, 0x54, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, - 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x10, 0x00, 0x12, 0x1a, - 0x0a, 0x16, 0x4f, 0x49, 0x44, 0x43, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x49, 0x4d, 0x50, 0x4c, 0x49, 0x43, 0x49, 0x54, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x49, - 0x44, 0x43, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x46, 0x52, - 0x45, 0x53, 0x48, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x02, 0x2a, 0x76, 0x0a, 0x13, 0x4f, - 0x49, 0x44, 0x43, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x49, 0x44, 0x43, 0x41, 0x50, 0x50, 0x4c, 0x49, 0x43, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x45, 0x42, 0x10, 0x00, 0x12, - 0x22, 0x0a, 0x1e, 0x4f, 0x49, 0x44, 0x43, 0x41, 0x50, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x41, 0x47, 0x45, 0x4e, - 0x54, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x4f, 0x49, 0x44, 0x43, 0x41, 0x50, 0x50, 0x4c, 0x49, - 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x41, 0x54, 0x49, 0x56, - 0x45, 0x10, 0x02, 0x2a, 0x6c, 0x0a, 0x12, 0x4f, 0x49, 0x44, 0x43, 0x41, 0x75, 0x74, 0x68, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x49, 0x44, - 0x43, 0x41, 0x55, 0x54, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x49, 0x44, 0x43, 0x41, - 0x55, 0x54, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4f, - 0x53, 0x54, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x49, 0x44, 0x43, 0x41, 0x55, 0x54, 0x48, - 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, - 0x02, 0x2a, 0x5f, 0x0a, 0x14, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x20, 0x41, 0x50, 0x50, - 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x45, 0x52, 0x41, 0x43, 0x48, 0x4b, 0x45, - 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x21, 0x0a, 0x1d, 0x41, 0x50, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x45, - 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x41, 0x50, 0x50, 0x5f, 0x4e, 0x41, 0x4d, 0x45, - 0x10, 0x01, 0x2a, 0x74, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x52, 0x4f, 0x4a, 0x45, - 0x43, 0x54, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, - 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, - 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x52, 0x4f, 0x4a, - 0x45, 0x43, 0x54, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, - 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, 0x8a, 0x01, 0x0a, 0x15, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, - 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x47, 0x52, 0x41, - 0x4e, 0x54, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x52, 0x4f, - 0x4a, 0x45, 0x43, 0x54, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, - 0x45, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, - 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x47, 0x52, 0x41, 0x4e, - 0x54, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, - 0x4b, 0x45, 0x59, 0x10, 0x02, 0x2a, 0x9c, 0x02, 0x0a, 0x1b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x27, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, - 0x47, 0x52, 0x41, 0x4e, 0x54, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, - 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x2a, 0x0a, 0x26, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x47, 0x52, 0x41, - 0x4e, 0x54, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, - 0x59, 0x5f, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x29, - 0x0a, 0x25, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x4d, 0x45, - 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x4c, 0x41, - 0x53, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x02, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x52, 0x4f, - 0x4a, 0x45, 0x43, 0x54, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, - 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x03, - 0x12, 0x27, 0x0a, 0x23, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x47, 0x52, 0x41, 0x4e, 0x54, - 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, - 0x55, 0x53, 0x45, 0x52, 0x5f, 0x49, 0x44, 0x10, 0x04, 0x12, 0x29, 0x0a, 0x25, 0x50, 0x52, 0x4f, - 0x4a, 0x45, 0x43, 0x54, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, - 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x4e, 0x41, - 0x4d, 0x45, 0x10, 0x05, 0x2a, 0x68, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x55, 0x53, 0x45, 0x52, 0x47, 0x52, - 0x41, 0x4e, 0x54, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52, 0x47, 0x52, - 0x41, 0x4e, 0x54, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, - 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x55, 0x53, 0x45, 0x52, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x53, 0x54, - 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, 0xbb, - 0x01, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x1e, 0x55, 0x53, 0x45, 0x52, 0x47, 0x52, 0x41, - 0x4e, 0x54, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x55, 0x53, 0x45, - 0x52, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, - 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, - 0x55, 0x53, 0x45, 0x52, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, - 0x45, 0x59, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, - 0x55, 0x53, 0x45, 0x52, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, - 0x45, 0x59, 0x5f, 0x4f, 0x52, 0x47, 0x5f, 0x49, 0x44, 0x10, 0x03, 0x12, 0x1f, 0x0a, 0x1b, 0x55, - 0x53, 0x45, 0x52, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, - 0x59, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x10, 0x04, 0x32, 0xe4, 0xa5, 0x01, - 0x0a, 0x11, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x66, 0x0a, 0x06, 0x47, 0x65, 0x74, - 0x49, 0x61, 0x6d, 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, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, - 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x06, 0x12, 0x04, 0x2f, 0x69, 0x61, 0x6d, 0x82, 0xb5, - 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x12, 0x83, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x49, - 0x44, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x56, - 0x69, 0x65, 0x77, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x12, 0x0b, 0x2f, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x75, 0x73, - 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x96, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x55, - 0x73, 0x65, 0x72, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x12, 0x25, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x1a, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x56, 0x69, 0x65, - 0x77, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x67, 0x6c, 0x6f, 0x62, - 0x61, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x5f, 0x62, 0x79, 0x65, 0x6d, 0x61, 0x69, - 0x6c, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, - 0x12, 0x9e, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x73, - 0x12, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x22, - 0x0e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, - 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, - 0x64, 0x12, 0x9e, 0x01, 0x0a, 0x0c, 0x49, 0x73, 0x55, 0x73, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, - 0x75, 0x65, 0x12, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x55, 0x73, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x12, 0x12, 0x10, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x5f, 0x69, 0x73, 0x75, 0x6e, 0x69, - 0x71, 0x75, 0x65, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x72, 0x65, - 0x61, 0x64, 0x12, 0x88, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, - 0x72, 0x12, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x0b, 0x22, 0x06, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, - 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x92, 0x01, - 0x0a, 0x0e, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, - 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x24, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x32, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x1a, 0x17, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, - 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x24, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x1a, 0x17, 0x2f, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, - 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x6b, - 0x55, 0x73, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x24, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x1a, 0x11, 0x2f, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x3a, 0x01, 0x2a, - 0x82, 0xb5, 0x18, 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0x8a, 0x01, 0x0a, 0x0a, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x12, - 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x24, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x1a, 0x13, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, - 0x64, 0x7d, 0x2f, 0x5f, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, - 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x72, 0x0a, - 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x49, 0x44, 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, 0x24, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x0d, 0x2a, 0x0b, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, - 0x82, 0xb5, 0x18, 0x0d, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x12, 0x91, 0x01, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x73, 0x12, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x15, 0x12, 0x13, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, - 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xb8, 0x01, 0x0a, 0x12, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x73, 0x22, 0x4a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x5f, 0x69, - 0x64, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x61, 0x64, - 0x12, 0x8e, 0x01, 0x0a, 0x0a, 0x4f, 0x72, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, - 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, - 0x12, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x73, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x72, 0x67, 0x2e, 0x72, 0x65, 0x61, - 0x64, 0x12, 0x9a, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x30, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x82, 0xb5, 0x18, 0x0e, - 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x95, - 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, - 0x65, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x15, 0x12, 0x13, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, - 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x75, 0x73, 0x65, - 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xaa, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x38, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x1a, 0x13, 0x2f, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, - 0x69, 0x74, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x45, - 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x2d, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x69, 0x65, 0x77, 0x22, 0x28, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, - 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, - 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xa2, 0x01, 0x0a, 0x0f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 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, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x2c, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x16, 0x1a, 0x11, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, - 0x7d, 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0c, 0x0a, 0x0a, - 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x1b, 0x52, - 0x65, 0x73, 0x65, 0x6e, 0x64, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x69, 0x6c, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x44, 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, 0x40, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x2a, 0x22, 0x25, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 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, 0x0c, - 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x8f, 0x01, 0x0a, - 0x0c, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x26, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, - 0x56, 0x69, 0x65, 0x77, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x82, - 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xa2, - 0x01, 0x0a, 0x0f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, - 0x6e, 0x65, 0x12, 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x29, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x1a, 0x11, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, - 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, - 0x69, 0x74, 0x65, 0x12, 0x7c, 0x0a, 0x0f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x55, 0x73, 0x65, - 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 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, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x2a, 0x11, - 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x68, 0x6f, 0x6e, - 0x65, 0x82, 0xb5, 0x18, 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, - 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, - 0x65, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 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, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x22, 0x25, 0x2f, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 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, 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, - 0x69, 0x74, 0x65, 0x12, 0x95, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x2f, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x69, 0x65, 0x77, 0x22, - 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, - 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x82, 0xb5, 0x18, 0x0b, - 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xaa, 0x01, 0x0a, 0x11, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x38, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x2b, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, - 0x1a, 0x13, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0c, 0x0a, 0x0a, 0x75, 0x73, - 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x8c, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, - 0x55, 0x73, 0x65, 0x72, 0x4d, 0x66, 0x61, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, - 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x27, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x66, 0x61, 0x73, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x75, 0x73, - 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xbb, 0x01, 0x0a, 0x1b, 0x53, 0x65, 0x6e, 0x64, - 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 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, - 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x22, 0x29, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, - 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2f, 0x5f, 0x73, - 0x65, 0x6e, 0x64, 0x73, 0x65, 0x74, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, - 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x9a, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x6c, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2f, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x2f, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x3a, - 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x12, 0xa8, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 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, 0x38, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x82, 0xb5, 0x18, 0x0d, - 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xd7, 0x01, - 0x0a, 0x1e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x12, 0x3e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x1a, 0x38, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, - 0x74, 0x79, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xd7, 0x01, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3e, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x38, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x1a, 0x1e, 0x2f, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x3a, 0x01, 0x2a, 0x82, - 0xb5, 0x18, 0x0e, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x12, 0xaf, 0x01, 0x0a, 0x1e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, - 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, - 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, - 0x2a, 0x1e, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, - 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x64, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 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, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, - 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, - 0x17, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x61, 0x67, 0x65, 0x82, 0xb5, 0x18, 0x0d, 0x0a, 0x0b, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xbb, 0x01, 0x0a, 0x17, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, - 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x31, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x61, - 0x67, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xbb, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x12, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x31, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, - 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x1a, 0x17, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, - 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x61, 0x67, 0x65, - 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, - 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x9a, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x33, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 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, 0x32, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x2a, 0x17, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, - 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x61, 0x67, 0x65, 0x82, - 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 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, 0x35, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x34, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, - 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x6c, 0x6f, 0x63, 0x6b, - 0x6f, 0x75, 0x74, 0x82, 0xb5, 0x18, 0x0d, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, - 0x72, 0x65, 0x61, 0x64, 0x12, 0xcb, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, - 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x1a, 0x35, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, - 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, - 0x22, 0x1b, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x6c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x3a, 0x01, 0x2a, - 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x12, 0xcb, 0x01, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x3b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, - 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, - 0x35, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x1a, 0x1b, - 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x73, 0x2f, 0x6c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x3a, 0x01, 0x2a, 0x82, 0xb5, - 0x18, 0x0e, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0xa6, 0x01, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x12, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, - 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 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, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x2a, 0x1b, 0x2f, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x6c, - 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x6b, 0x0a, 0x08, 0x47, 0x65, 0x74, - 0x4d, 0x79, 0x4f, 0x72, 0x67, 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, 0x27, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x67, 0x56, 0x69, 0x65, 0x77, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08, - 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x72, - 0x67, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x95, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4f, 0x72, - 0x67, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x12, - 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x56, 0x69, 0x65, 0x77, - 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, - 0x6c, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x5f, 0x62, 0x79, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x72, 0x67, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x7e, - 0x0a, 0x0f, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x79, 0x4f, 0x72, - 0x67, 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, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x22, 0x2e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x1a, 0x14, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, - 0x2f, 0x5f, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x82, - 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x6f, 0x72, 0x67, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x7e, - 0x0a, 0x0f, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x79, 0x4f, 0x72, - 0x67, 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, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x22, 0x2e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x1a, 0x14, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, - 0x2f, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x82, - 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x6f, 0x72, 0x67, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xb8, - 0x01, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x79, 0x4f, 0x72, 0x67, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, - 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, - 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0a, 0x0a, - 0x08, 0x6f, 0x72, 0x67, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x9c, 0x01, 0x0a, 0x0e, 0x41, 0x64, - 0x64, 0x4d, 0x79, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x33, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, - 0x64, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x2a, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x6f, - 0x72, 0x67, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x95, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x4d, 0x79, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x36, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x30, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x2a, 0x19, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, - 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x7d, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x6f, 0x72, 0x67, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0x88, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 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, 0x2c, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x69, - 0x61, 0x6d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, - 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x8d, 0x01, 0x0a, 0x11, - 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, - 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, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x15, 0x12, 0x13, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, - 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x2e, - 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xa3, 0x01, 0x0a, 0x0e, - 0x41, 0x64, 0x64, 0x4d, 0x79, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x33, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x31, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, - 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, - 0x10, 0x6f, 0x72, 0x67, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x12, 0xb3, 0x01, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x4f, 0x72, - 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4f, - 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1f, 0x1a, 0x1a, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x6d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, - 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x6f, 0x72, 0x67, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x9e, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x4d, 0x79, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x36, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 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, 0x39, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x2a, 0x1a, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x6d, 0x65, 0x2f, - 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x7d, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x11, 0x6f, 0x72, 0x67, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0xbf, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x4d, 0x79, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, - 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, - 0x6d, 0x65, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x2e, 0x6d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xad, 0x01, 0x0a, 0x0e, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x34, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x16, 0x22, 0x11, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x5f, 0x73, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x0c, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x93, 0x01, 0x0a, 0x0b, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x79, 0x49, 0x44, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x49, 0x44, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x69, - 0x65, 0x77, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x0c, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x02, 0x49, 0x64, - 0x12, 0x97, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x12, 0x34, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x22, 0x09, 0x2f, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x0d, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x34, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x30, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x13, 0x1a, 0x0e, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x02, 0x49, 0x64, 0x12, 0xa5, 0x01, - 0x0a, 0x11, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x44, 0x1a, 0x27, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x1a, - 0x1a, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, - 0x5f, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, - 0x18, 0x13, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x12, 0x02, 0x49, 0x64, 0x12, 0xa5, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x29, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x49, 0x44, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, - 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x1a, 0x1a, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x02, 0x49, 0x64, 0x12, 0xd2, 0x01, - 0x0a, 0x15, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x3b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x65, 0x64, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x19, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x49, 0x64, 0x12, 0xbe, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x79, 0x49, 0x44, 0x12, 0x2e, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x30, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x56, 0x69, 0x65, 0x77, 0x22, 0x43, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, - 0x7d, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x72, - 0x65, 0x61, 0x64, 0x12, 0x9d, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 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, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x19, 0x12, 0x17, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x6d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x82, 0xb5, 0x18, 0x15, 0x0a, 0x13, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x72, - 0x65, 0x61, 0x64, 0x12, 0xe6, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x3a, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x22, 0x26, 0x2f, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x5f, 0x73, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x20, 0x0a, 0x13, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, - 0x64, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0xb4, 0x01, 0x0a, - 0x10, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x12, 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x41, 0x64, 0x64, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x22, 0x16, 0x2f, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x1a, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, - 0x02, 0x49, 0x64, 0x12, 0xc4, 0x01, 0x0a, 0x13, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x33, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, - 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x1a, 0x20, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, - 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x1a, - 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x02, 0x49, 0x64, 0x12, 0xab, 0x01, 0x0a, 0x13, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x12, 0x33, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 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, - 0x47, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x2a, 0x20, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, - 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x1b, 0x0a, 0x15, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x64, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x12, 0x02, 0x49, 0x64, 0x12, 0xdc, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, - 0x38, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x22, 0x24, 0x2f, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x1e, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x09, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0xaa, 0x01, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x64, 0x64, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, - 0x14, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, - 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x18, 0x0a, 0x12, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0x02, 0x49, 0x64, 0x12, 0xa3, 0x01, 0x0a, 0x12, 0x42, 0x75, 0x6c, 0x6b, 0x41, 0x64, 0x64, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6c, 0x6b, 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, 0x1f, 0x22, - 0x1a, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, - 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x5f, 0x62, 0x75, 0x6c, 0x6b, 0x3a, 0x01, 0x2a, 0x82, 0xb5, - 0x18, 0x18, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x72, 0x6f, 0x6c, 0x65, - 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x02, 0x49, 0x64, 0x12, 0xb6, 0x01, 0x0a, 0x11, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, - 0x12, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, - 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x1a, 0x1a, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x7b, - 0x6b, 0x65, 0x79, 0x7d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x18, 0x0a, 0x12, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, - 0x02, 0x49, 0x64, 0x12, 0x9f, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 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, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x2a, 0x1a, 0x2f, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, - 0x65, 0x73, 0x2f, 0x7b, 0x6b, 0x65, 0x79, 0x7d, 0x82, 0xb5, 0x18, 0x19, 0x0a, 0x13, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x12, 0x02, 0x49, 0x64, 0x12, 0xe2, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x22, 0x2b, 0x2f, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x5f, - 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x1d, 0x0a, 0x10, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, - 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0xc4, 0x01, 0x0a, 0x0f, 0x41, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x49, 0x44, 0x12, 0x2d, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x1a, 0x2f, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x69, 0x65, 0x77, 0x22, 0x51, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, - 0x82, 0xb5, 0x18, 0x1d, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x61, 0x70, - 0x70, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, - 0x64, 0x12, 0xd1, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x49, 0x44, 0x43, - 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, - 0x43, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x54, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x22, 0x27, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x6f, 0x69, 0x64, 0x63, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x1e, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0xca, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x2b, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x55, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x2d, 0x1a, 0x28, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, - 0x82, 0xb5, 0x18, 0x1e, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x61, 0x70, - 0x70, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x49, 0x64, 0x12, 0xd6, 0x01, 0x0a, 0x15, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x1a, 0x2b, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, - 0x1a, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x64, 0x65, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x1e, 0x0a, 0x11, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0xd6, 0x01, 0x0a, 0x15, - 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x44, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x1a, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, - 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x1e, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x61, 0x70, 0x70, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x49, 0x64, 0x12, 0xaf, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 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, 0x53, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x2a, 0x28, 0x2f, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x1f, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x09, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0xe9, 0x01, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x49, 0x44, 0x43, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x2a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x22, 0x6c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x1a, 0x3f, 0x2f, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x7b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x7d, 0x2f, 0x6f, 0x69, 0x64, 0x63, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x01, 0x2a, - 0x82, 0xb5, 0x18, 0x1e, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x61, 0x70, - 0x70, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x49, 0x64, 0x12, 0xef, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x65, 0x4f, 0x49, 0x44, 0x43, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, - 0x74, 0x12, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, - 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x74, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x1a, 0x47, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, - 0x2f, 0x6f, 0x69, 0x64, 0x63, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x5f, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x3a, - 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x1e, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x61, 0x70, 0x70, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x49, 0x64, 0x12, 0xe1, 0x01, 0x0a, 0x13, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x39, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x53, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x22, 0x25, 0x2f, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, - 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x1f, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x09, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0xb8, 0x01, 0x0a, 0x10, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x42, 0x79, 0x49, 0x44, 0x12, 0x2e, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x30, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x56, 0x69, 0x65, 0x77, 0x22, - 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x14, 0x0a, - 0x12, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x72, - 0x65, 0x61, 0x64, 0x12, 0xb9, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x32, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x2c, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x41, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x15, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, - 0xbe, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, - 0x1a, 0x22, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, - 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x15, 0x0a, 0x13, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0xca, 0x01, 0x0a, 0x16, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x2c, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x33, 0x1a, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, - 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x15, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xca, 0x01, - 0x0a, 0x16, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x1a, 0x2e, - 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, - 0x64, 0x7d, 0x2f, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, - 0x2a, 0x82, 0xb5, 0x18, 0x15, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xa2, 0x01, 0x0a, 0x12, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, - 0x44, 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, 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x24, 0x2a, 0x22, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, - 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x16, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, - 0xb4, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 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, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, - 0x45, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x82, 0xb5, 0x18, 0x1b, 0x0a, 0x19, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x82, 0x02, 0x0a, 0x19, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x12, 0x3f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x62, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x22, - 0x38, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x1b, - 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, - 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xdf, 0x01, 0x0a, 0x15, - 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x35, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x64, 0x64, 0x1a, 0x32, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x22, 0x5b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x22, 0x30, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, - 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, - 0x64, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, - 0x1c, 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xef, 0x01, - 0x0a, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x38, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, - 0x1a, 0x3a, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, - 0x7b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x82, - 0xb5, 0x18, 0x1c, 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, - 0xd1, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x38, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 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, 0x63, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x2a, 0x3a, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, - 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x1d, 0x0a, 0x1b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x64, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x12, 0xba, 0x01, 0x0a, 0x10, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, - 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1a, 0x22, 0x15, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, - 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x11, 0x0a, - 0x0f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x64, - 0x12, 0xa6, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x42, 0x79, - 0x49, 0x44, 0x12, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x1a, - 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x56, 0x69, 0x65, 0x77, 0x22, 0x39, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, - 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xa7, 0x01, 0x0a, 0x0f, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x2f, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x29, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1c, 0x22, 0x17, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, - 0x12, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, - 0x69, 0x74, 0x65, 0x12, 0xac, 0x01, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, - 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x1a, 0x1c, 0x2f, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, - 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x12, 0xb8, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x1a, 0x28, 0x2f, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x75, 0x73, 0x65, - 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xb8, 0x01, - 0x0a, 0x13, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x49, 0x44, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x49, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x1a, 0x28, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, - 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, - 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 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, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x2a, 0x1c, 0x2f, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x11, 0x75, 0x73, 0x65, - 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x96, - 0x01, 0x0a, 0x13, 0x42, 0x75, 0x6c, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, - 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x33, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6c, 0x6b, 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, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x75, 0x73, - 0x65, 0x72, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x5f, 0x62, 0x75, 0x6c, 0x6b, 0x3a, 0x01, - 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x96, 0x01, 0x0a, 0x13, 0x42, 0x75, 0x6c, 0x6b, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, - 0x33, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x42, 0x75, 0x6c, 0x6b, 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, 0x32, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x16, 0x1a, 0x11, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x73, 0x2f, 0x5f, 0x62, 0x75, 0x6c, 0x6b, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, - 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0x98, 0x01, 0x0a, 0x13, 0x42, 0x75, 0x6c, 0x6b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x55, - 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x33, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x75, 0x6c, 0x6b, 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, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x2a, 0x12, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x5f, 0x62, 0x75, 0x6c, - 0x6b, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x11, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0xf1, 0x01, 0x0a, 0x17, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, - 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x3d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x5e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x22, 0x2b, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x5f, 0x73, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x24, 0x0a, 0x17, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, - 0x72, 0x65, 0x61, 0x64, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, - 0xdd, 0x01, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x42, 0x79, 0x49, 0x44, 0x12, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x2d, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x56, 0x69, 0x65, 0x77, 0x22, 0x62, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x24, 0x0a, 0x17, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, - 0x72, 0x65, 0x61, 0x64, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, - 0xd7, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x2f, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x29, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x22, 0x2d, - 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, - 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x3a, 0x01, 0x2a, - 0x82, 0xb5, 0x18, 0x25, 0x0a, 0x18, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x09, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0xe3, 0x01, 0x0a, 0x16, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x12, 0x36, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, - 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x29, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x66, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x1a, - 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, - 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x25, 0x0a, 0x18, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, - 0xef, 0x01, 0x0a, 0x1a, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x32, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x49, 0x44, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x72, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x1a, 0x3e, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x64, 0x65, 0x61, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x25, 0x0a, 0x18, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, - 0x64, 0x12, 0xef, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x12, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, - 0x72, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x1a, 0x3e, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x72, 0x65, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x25, 0x0a, 0x18, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x09, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x49, 0x64, 0x12, 0x91, 0x02, 0x0a, 0x1c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x12, 0x42, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x22, 0x36, 0x2f, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x2f, 0x0a, 0x1d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0xfd, 0x01, 0x0a, 0x19, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x42, 0x79, 0x49, 0x44, 0x12, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x2d, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x56, 0x69, 0x65, 0x77, 0x22, 0x78, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, - 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x2f, 0x0a, 0x1d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0xfe, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, - 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, - 0x77, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x22, 0x38, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x30, 0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x83, 0x02, 0x0a, 0x1b, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, - 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x22, 0x7c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x1a, 0x3d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x30, 0x0a, 0x1e, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x0e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x90, - 0x02, 0x0a, 0x1f, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x12, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x29, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x88, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4e, 0x1a, - 0x49, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, - 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, - 0x64, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, - 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, - 0x30, 0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x12, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, - 0x64, 0x12, 0x90, 0x02, 0x0a, 0x1f, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x29, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x88, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x4e, 0x1a, 0x49, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, - 0x7d, 0x2f, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, - 0x82, 0xb5, 0x18, 0x30, 0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x67, 0x72, - 0x61, 0x6e, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x12, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x49, 0x64, 0x42, 0xc9, 0x01, 0x5a, 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, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x92, 0x41, 0x94, 0x01, 0x12, 0x47, 0x0a, 0x0e, - 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x41, 0x50, 0x49, 0x22, 0x30, - 0x12, 0x2e, 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, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 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, -} - -var ( - file_management_proto_rawDescOnce sync.Once - file_management_proto_rawDescData = file_management_proto_rawDesc -) - -func file_management_proto_rawDescGZIP() []byte { - file_management_proto_rawDescOnce.Do(func() { - file_management_proto_rawDescData = protoimpl.X.CompressGZIP(file_management_proto_rawDescData) - }) - return file_management_proto_rawDescData -} - -var file_management_proto_enumTypes = make([]protoimpl.EnumInfo, 27) -var file_management_proto_msgTypes = make([]protoimpl.MessageInfo, 140) -var file_management_proto_goTypes = []interface{}{ - (UserState)(0), // 0: caos.zitadel.management.api.v1.UserState - (Gender)(0), // 1: caos.zitadel.management.api.v1.Gender - (UserSearchKey)(0), // 2: caos.zitadel.management.api.v1.UserSearchKey - (SearchMethod)(0), // 3: caos.zitadel.management.api.v1.SearchMethod - (MfaType)(0), // 4: caos.zitadel.management.api.v1.MfaType - (MFAState)(0), // 5: caos.zitadel.management.api.v1.MFAState - (NotificationType)(0), // 6: caos.zitadel.management.api.v1.NotificationType - (PolicyState)(0), // 7: caos.zitadel.management.api.v1.PolicyState - (OrgState)(0), // 8: caos.zitadel.management.api.v1.OrgState - (OrgDomainSearchKey)(0), // 9: caos.zitadel.management.api.v1.OrgDomainSearchKey - (OrgMemberSearchKey)(0), // 10: caos.zitadel.management.api.v1.OrgMemberSearchKey - (ProjectSearchKey)(0), // 11: caos.zitadel.management.api.v1.ProjectSearchKey - (ProjectState)(0), // 12: caos.zitadel.management.api.v1.ProjectState - (ProjectType)(0), // 13: caos.zitadel.management.api.v1.ProjectType - (ProjectRoleSearchKey)(0), // 14: caos.zitadel.management.api.v1.ProjectRoleSearchKey - (ProjectMemberSearchKey)(0), // 15: caos.zitadel.management.api.v1.ProjectMemberSearchKey - (AppState)(0), // 16: caos.zitadel.management.api.v1.AppState - (OIDCResponseType)(0), // 17: caos.zitadel.management.api.v1.OIDCResponseType - (OIDCGrantType)(0), // 18: caos.zitadel.management.api.v1.OIDCGrantType - (OIDCApplicationType)(0), // 19: caos.zitadel.management.api.v1.OIDCApplicationType - (OIDCAuthMethodType)(0), // 20: caos.zitadel.management.api.v1.OIDCAuthMethodType - (ApplicationSearchKey)(0), // 21: caos.zitadel.management.api.v1.ApplicationSearchKey - (ProjectGrantState)(0), // 22: caos.zitadel.management.api.v1.ProjectGrantState - (ProjectGrantSearchKey)(0), // 23: caos.zitadel.management.api.v1.ProjectGrantSearchKey - (ProjectGrantMemberSearchKey)(0), // 24: caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey - (UserGrantState)(0), // 25: caos.zitadel.management.api.v1.UserGrantState - (UserGrantSearchKey)(0), // 26: caos.zitadel.management.api.v1.UserGrantSearchKey - (*Iam)(nil), // 27: caos.zitadel.management.api.v1.Iam - (*ChangeRequest)(nil), // 28: caos.zitadel.management.api.v1.ChangeRequest - (*Changes)(nil), // 29: caos.zitadel.management.api.v1.Changes - (*Change)(nil), // 30: caos.zitadel.management.api.v1.Change - (*ApplicationID)(nil), // 31: caos.zitadel.management.api.v1.ApplicationID - (*ProjectID)(nil), // 32: caos.zitadel.management.api.v1.ProjectID - (*UserID)(nil), // 33: caos.zitadel.management.api.v1.UserID - (*Email)(nil), // 34: caos.zitadel.management.api.v1.Email - (*UniqueUserRequest)(nil), // 35: caos.zitadel.management.api.v1.UniqueUserRequest - (*UniqueUserResponse)(nil), // 36: caos.zitadel.management.api.v1.UniqueUserResponse - (*CreateUserRequest)(nil), // 37: caos.zitadel.management.api.v1.CreateUserRequest - (*User)(nil), // 38: caos.zitadel.management.api.v1.User - (*UserView)(nil), // 39: caos.zitadel.management.api.v1.UserView - (*UserSearchRequest)(nil), // 40: caos.zitadel.management.api.v1.UserSearchRequest - (*UserSearchQuery)(nil), // 41: caos.zitadel.management.api.v1.UserSearchQuery - (*UserSearchResponse)(nil), // 42: caos.zitadel.management.api.v1.UserSearchResponse - (*UserProfile)(nil), // 43: caos.zitadel.management.api.v1.UserProfile - (*UserProfileView)(nil), // 44: caos.zitadel.management.api.v1.UserProfileView - (*UpdateUserProfileRequest)(nil), // 45: caos.zitadel.management.api.v1.UpdateUserProfileRequest - (*UserEmail)(nil), // 46: caos.zitadel.management.api.v1.UserEmail - (*UserEmailView)(nil), // 47: caos.zitadel.management.api.v1.UserEmailView - (*UpdateUserEmailRequest)(nil), // 48: caos.zitadel.management.api.v1.UpdateUserEmailRequest - (*UserPhone)(nil), // 49: caos.zitadel.management.api.v1.UserPhone - (*UserPhoneView)(nil), // 50: caos.zitadel.management.api.v1.UserPhoneView - (*UpdateUserPhoneRequest)(nil), // 51: caos.zitadel.management.api.v1.UpdateUserPhoneRequest - (*UserAddress)(nil), // 52: caos.zitadel.management.api.v1.UserAddress - (*UserAddressView)(nil), // 53: caos.zitadel.management.api.v1.UserAddressView - (*UpdateUserAddressRequest)(nil), // 54: caos.zitadel.management.api.v1.UpdateUserAddressRequest - (*MultiFactors)(nil), // 55: caos.zitadel.management.api.v1.MultiFactors - (*MultiFactor)(nil), // 56: caos.zitadel.management.api.v1.MultiFactor - (*PasswordID)(nil), // 57: caos.zitadel.management.api.v1.PasswordID - (*PasswordRequest)(nil), // 58: caos.zitadel.management.api.v1.PasswordRequest - (*ResetPasswordRequest)(nil), // 59: caos.zitadel.management.api.v1.ResetPasswordRequest - (*SetPasswordNotificationRequest)(nil), // 60: caos.zitadel.management.api.v1.SetPasswordNotificationRequest - (*PasswordComplexityPolicyID)(nil), // 61: caos.zitadel.management.api.v1.PasswordComplexityPolicyID - (*PasswordComplexityPolicy)(nil), // 62: caos.zitadel.management.api.v1.PasswordComplexityPolicy - (*PasswordComplexityPolicyCreate)(nil), // 63: caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate - (*PasswordComplexityPolicyUpdate)(nil), // 64: caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate - (*PasswordAgePolicyID)(nil), // 65: caos.zitadel.management.api.v1.PasswordAgePolicyID - (*PasswordAgePolicy)(nil), // 66: caos.zitadel.management.api.v1.PasswordAgePolicy - (*PasswordAgePolicyCreate)(nil), // 67: caos.zitadel.management.api.v1.PasswordAgePolicyCreate - (*PasswordAgePolicyUpdate)(nil), // 68: caos.zitadel.management.api.v1.PasswordAgePolicyUpdate - (*PasswordLockoutPolicyID)(nil), // 69: caos.zitadel.management.api.v1.PasswordLockoutPolicyID - (*PasswordLockoutPolicy)(nil), // 70: caos.zitadel.management.api.v1.PasswordLockoutPolicy - (*PasswordLockoutPolicyCreate)(nil), // 71: caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate - (*PasswordLockoutPolicyUpdate)(nil), // 72: caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate - (*OrgIamPolicy)(nil), // 73: caos.zitadel.management.api.v1.OrgIamPolicy - (*OrgID)(nil), // 74: caos.zitadel.management.api.v1.OrgID - (*Org)(nil), // 75: caos.zitadel.management.api.v1.Org - (*OrgView)(nil), // 76: caos.zitadel.management.api.v1.OrgView - (*Domain)(nil), // 77: caos.zitadel.management.api.v1.Domain - (*OrgDomains)(nil), // 78: caos.zitadel.management.api.v1.OrgDomains - (*OrgDomain)(nil), // 79: caos.zitadel.management.api.v1.OrgDomain - (*OrgDomainView)(nil), // 80: caos.zitadel.management.api.v1.OrgDomainView - (*AddOrgDomainRequest)(nil), // 81: caos.zitadel.management.api.v1.AddOrgDomainRequest - (*RemoveOrgDomainRequest)(nil), // 82: caos.zitadel.management.api.v1.RemoveOrgDomainRequest - (*OrgDomainSearchResponse)(nil), // 83: caos.zitadel.management.api.v1.OrgDomainSearchResponse - (*OrgDomainSearchRequest)(nil), // 84: caos.zitadel.management.api.v1.OrgDomainSearchRequest - (*OrgDomainSearchQuery)(nil), // 85: caos.zitadel.management.api.v1.OrgDomainSearchQuery - (*OrgMemberRoles)(nil), // 86: caos.zitadel.management.api.v1.OrgMemberRoles - (*OrgMember)(nil), // 87: caos.zitadel.management.api.v1.OrgMember - (*AddOrgMemberRequest)(nil), // 88: caos.zitadel.management.api.v1.AddOrgMemberRequest - (*ChangeOrgMemberRequest)(nil), // 89: caos.zitadel.management.api.v1.ChangeOrgMemberRequest - (*RemoveOrgMemberRequest)(nil), // 90: caos.zitadel.management.api.v1.RemoveOrgMemberRequest - (*OrgMemberSearchResponse)(nil), // 91: caos.zitadel.management.api.v1.OrgMemberSearchResponse - (*OrgMemberView)(nil), // 92: caos.zitadel.management.api.v1.OrgMemberView - (*OrgMemberSearchRequest)(nil), // 93: caos.zitadel.management.api.v1.OrgMemberSearchRequest - (*OrgMemberSearchQuery)(nil), // 94: caos.zitadel.management.api.v1.OrgMemberSearchQuery - (*ProjectCreateRequest)(nil), // 95: caos.zitadel.management.api.v1.ProjectCreateRequest - (*ProjectUpdateRequest)(nil), // 96: caos.zitadel.management.api.v1.ProjectUpdateRequest - (*ProjectSearchResponse)(nil), // 97: caos.zitadel.management.api.v1.ProjectSearchResponse - (*ProjectView)(nil), // 98: caos.zitadel.management.api.v1.ProjectView - (*ProjectSearchRequest)(nil), // 99: caos.zitadel.management.api.v1.ProjectSearchRequest - (*ProjectSearchQuery)(nil), // 100: caos.zitadel.management.api.v1.ProjectSearchQuery - (*Projects)(nil), // 101: caos.zitadel.management.api.v1.Projects - (*Project)(nil), // 102: caos.zitadel.management.api.v1.Project - (*ProjectMemberRoles)(nil), // 103: caos.zitadel.management.api.v1.ProjectMemberRoles - (*ProjectMember)(nil), // 104: caos.zitadel.management.api.v1.ProjectMember - (*ProjectMemberAdd)(nil), // 105: caos.zitadel.management.api.v1.ProjectMemberAdd - (*ProjectMemberChange)(nil), // 106: caos.zitadel.management.api.v1.ProjectMemberChange - (*ProjectMemberRemove)(nil), // 107: caos.zitadel.management.api.v1.ProjectMemberRemove - (*ProjectRoleAdd)(nil), // 108: caos.zitadel.management.api.v1.ProjectRoleAdd - (*ProjectRoleAddBulk)(nil), // 109: caos.zitadel.management.api.v1.ProjectRoleAddBulk - (*ProjectRoleChange)(nil), // 110: caos.zitadel.management.api.v1.ProjectRoleChange - (*ProjectRole)(nil), // 111: caos.zitadel.management.api.v1.ProjectRole - (*ProjectRoleView)(nil), // 112: caos.zitadel.management.api.v1.ProjectRoleView - (*ProjectRoleRemove)(nil), // 113: caos.zitadel.management.api.v1.ProjectRoleRemove - (*ProjectRoleSearchResponse)(nil), // 114: caos.zitadel.management.api.v1.ProjectRoleSearchResponse - (*ProjectRoleSearchRequest)(nil), // 115: caos.zitadel.management.api.v1.ProjectRoleSearchRequest - (*ProjectRoleSearchQuery)(nil), // 116: caos.zitadel.management.api.v1.ProjectRoleSearchQuery - (*ProjectMemberView)(nil), // 117: caos.zitadel.management.api.v1.ProjectMemberView - (*ProjectMemberSearchResponse)(nil), // 118: caos.zitadel.management.api.v1.ProjectMemberSearchResponse - (*ProjectMemberSearchRequest)(nil), // 119: caos.zitadel.management.api.v1.ProjectMemberSearchRequest - (*ProjectMemberSearchQuery)(nil), // 120: caos.zitadel.management.api.v1.ProjectMemberSearchQuery - (*Application)(nil), // 121: caos.zitadel.management.api.v1.Application - (*ApplicationUpdate)(nil), // 122: caos.zitadel.management.api.v1.ApplicationUpdate - (*OIDCConfig)(nil), // 123: caos.zitadel.management.api.v1.OIDCConfig - (*OIDCApplicationCreate)(nil), // 124: caos.zitadel.management.api.v1.OIDCApplicationCreate - (*OIDCConfigUpdate)(nil), // 125: caos.zitadel.management.api.v1.OIDCConfigUpdate - (*ClientSecret)(nil), // 126: caos.zitadel.management.api.v1.ClientSecret - (*ApplicationView)(nil), // 127: caos.zitadel.management.api.v1.ApplicationView - (*ApplicationSearchResponse)(nil), // 128: caos.zitadel.management.api.v1.ApplicationSearchResponse - (*ApplicationSearchRequest)(nil), // 129: caos.zitadel.management.api.v1.ApplicationSearchRequest - (*ApplicationSearchQuery)(nil), // 130: caos.zitadel.management.api.v1.ApplicationSearchQuery - (*ProjectGrant)(nil), // 131: caos.zitadel.management.api.v1.ProjectGrant - (*ProjectGrantCreate)(nil), // 132: caos.zitadel.management.api.v1.ProjectGrantCreate - (*ProjectGrantUpdate)(nil), // 133: caos.zitadel.management.api.v1.ProjectGrantUpdate - (*ProjectGrantID)(nil), // 134: caos.zitadel.management.api.v1.ProjectGrantID - (*ProjectGrantView)(nil), // 135: caos.zitadel.management.api.v1.ProjectGrantView - (*ProjectGrantSearchResponse)(nil), // 136: caos.zitadel.management.api.v1.ProjectGrantSearchResponse - (*GrantedProjectSearchRequest)(nil), // 137: caos.zitadel.management.api.v1.GrantedProjectSearchRequest - (*ProjectGrantSearchRequest)(nil), // 138: caos.zitadel.management.api.v1.ProjectGrantSearchRequest - (*ProjectGrantSearchQuery)(nil), // 139: caos.zitadel.management.api.v1.ProjectGrantSearchQuery - (*ProjectGrantMemberRoles)(nil), // 140: caos.zitadel.management.api.v1.ProjectGrantMemberRoles - (*ProjectGrantMember)(nil), // 141: caos.zitadel.management.api.v1.ProjectGrantMember - (*ProjectGrantMemberAdd)(nil), // 142: caos.zitadel.management.api.v1.ProjectGrantMemberAdd - (*ProjectGrantMemberChange)(nil), // 143: caos.zitadel.management.api.v1.ProjectGrantMemberChange - (*ProjectGrantMemberRemove)(nil), // 144: caos.zitadel.management.api.v1.ProjectGrantMemberRemove - (*ProjectGrantMemberView)(nil), // 145: caos.zitadel.management.api.v1.ProjectGrantMemberView - (*ProjectGrantMemberSearchResponse)(nil), // 146: caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse - (*ProjectGrantMemberSearchRequest)(nil), // 147: caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest - (*ProjectGrantMemberSearchQuery)(nil), // 148: caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery - (*UserGrant)(nil), // 149: caos.zitadel.management.api.v1.UserGrant - (*UserGrantCreateBulk)(nil), // 150: caos.zitadel.management.api.v1.UserGrantCreateBulk - (*UserGrantCreate)(nil), // 151: caos.zitadel.management.api.v1.UserGrantCreate - (*UserGrantUpdateBulk)(nil), // 152: caos.zitadel.management.api.v1.UserGrantUpdateBulk - (*UserGrantUpdate)(nil), // 153: caos.zitadel.management.api.v1.UserGrantUpdate - (*UserGrantRemoveBulk)(nil), // 154: caos.zitadel.management.api.v1.UserGrantRemoveBulk - (*UserGrantID)(nil), // 155: caos.zitadel.management.api.v1.UserGrantID - (*ProjectUserGrantID)(nil), // 156: caos.zitadel.management.api.v1.ProjectUserGrantID - (*ProjectUserGrantUpdate)(nil), // 157: caos.zitadel.management.api.v1.ProjectUserGrantUpdate - (*ProjectGrantUserGrantID)(nil), // 158: caos.zitadel.management.api.v1.ProjectGrantUserGrantID - (*ProjectGrantUserGrantCreate)(nil), // 159: caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate - (*ProjectGrantUserGrantUpdate)(nil), // 160: caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate - (*UserGrantView)(nil), // 161: caos.zitadel.management.api.v1.UserGrantView - (*UserGrantSearchResponse)(nil), // 162: caos.zitadel.management.api.v1.UserGrantSearchResponse - (*UserGrantSearchRequest)(nil), // 163: caos.zitadel.management.api.v1.UserGrantSearchRequest - (*UserGrantSearchQuery)(nil), // 164: caos.zitadel.management.api.v1.UserGrantSearchQuery - (*ProjectUserGrantSearchRequest)(nil), // 165: caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest - (*ProjectGrantUserGrantSearchRequest)(nil), // 166: caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest - (*timestamp.Timestamp)(nil), // 167: google.protobuf.Timestamp - (*message.LocalizedMessage)(nil), // 168: caos.zitadel.api.v1.LocalizedMessage - (*_struct.Struct)(nil), // 169: google.protobuf.Struct - (*empty.Empty)(nil), // 170: google.protobuf.Empty -} -var file_management_proto_depIdxs = []int32{ - 30, // 0: caos.zitadel.management.api.v1.Changes.changes:type_name -> caos.zitadel.management.api.v1.Change - 167, // 1: caos.zitadel.management.api.v1.Change.change_date:type_name -> google.protobuf.Timestamp - 168, // 2: caos.zitadel.management.api.v1.Change.event_type:type_name -> caos.zitadel.api.v1.LocalizedMessage - 169, // 3: caos.zitadel.management.api.v1.Change.data:type_name -> google.protobuf.Struct - 1, // 4: caos.zitadel.management.api.v1.CreateUserRequest.gender:type_name -> caos.zitadel.management.api.v1.Gender - 0, // 5: caos.zitadel.management.api.v1.User.state:type_name -> caos.zitadel.management.api.v1.UserState - 167, // 6: caos.zitadel.management.api.v1.User.creation_date:type_name -> google.protobuf.Timestamp - 167, // 7: caos.zitadel.management.api.v1.User.change_date:type_name -> google.protobuf.Timestamp - 1, // 8: caos.zitadel.management.api.v1.User.gender:type_name -> caos.zitadel.management.api.v1.Gender - 0, // 9: caos.zitadel.management.api.v1.UserView.state:type_name -> caos.zitadel.management.api.v1.UserState - 167, // 10: caos.zitadel.management.api.v1.UserView.creation_date:type_name -> google.protobuf.Timestamp - 167, // 11: caos.zitadel.management.api.v1.UserView.change_date:type_name -> google.protobuf.Timestamp - 167, // 12: caos.zitadel.management.api.v1.UserView.last_login:type_name -> google.protobuf.Timestamp - 167, // 13: caos.zitadel.management.api.v1.UserView.password_changed:type_name -> google.protobuf.Timestamp - 1, // 14: caos.zitadel.management.api.v1.UserView.gender:type_name -> caos.zitadel.management.api.v1.Gender - 2, // 15: caos.zitadel.management.api.v1.UserSearchRequest.sorting_column:type_name -> caos.zitadel.management.api.v1.UserSearchKey - 41, // 16: caos.zitadel.management.api.v1.UserSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.UserSearchQuery - 2, // 17: caos.zitadel.management.api.v1.UserSearchQuery.key:type_name -> caos.zitadel.management.api.v1.UserSearchKey - 3, // 18: caos.zitadel.management.api.v1.UserSearchQuery.method:type_name -> caos.zitadel.management.api.v1.SearchMethod - 39, // 19: caos.zitadel.management.api.v1.UserSearchResponse.result:type_name -> caos.zitadel.management.api.v1.UserView - 1, // 20: caos.zitadel.management.api.v1.UserProfile.gender:type_name -> caos.zitadel.management.api.v1.Gender - 167, // 21: caos.zitadel.management.api.v1.UserProfile.creation_date:type_name -> google.protobuf.Timestamp - 167, // 22: caos.zitadel.management.api.v1.UserProfile.change_date:type_name -> google.protobuf.Timestamp - 1, // 23: caos.zitadel.management.api.v1.UserProfileView.gender:type_name -> caos.zitadel.management.api.v1.Gender - 167, // 24: caos.zitadel.management.api.v1.UserProfileView.creation_date:type_name -> google.protobuf.Timestamp - 167, // 25: caos.zitadel.management.api.v1.UserProfileView.change_date:type_name -> google.protobuf.Timestamp - 1, // 26: caos.zitadel.management.api.v1.UpdateUserProfileRequest.gender:type_name -> caos.zitadel.management.api.v1.Gender - 167, // 27: caos.zitadel.management.api.v1.UserEmail.creation_date:type_name -> google.protobuf.Timestamp - 167, // 28: caos.zitadel.management.api.v1.UserEmail.change_date:type_name -> google.protobuf.Timestamp - 167, // 29: caos.zitadel.management.api.v1.UserEmailView.creation_date:type_name -> google.protobuf.Timestamp - 167, // 30: caos.zitadel.management.api.v1.UserEmailView.change_date:type_name -> google.protobuf.Timestamp - 167, // 31: caos.zitadel.management.api.v1.UserPhone.creation_date:type_name -> google.protobuf.Timestamp - 167, // 32: caos.zitadel.management.api.v1.UserPhone.change_date:type_name -> google.protobuf.Timestamp - 167, // 33: caos.zitadel.management.api.v1.UserPhoneView.creation_date:type_name -> google.protobuf.Timestamp - 167, // 34: caos.zitadel.management.api.v1.UserPhoneView.change_date:type_name -> google.protobuf.Timestamp - 167, // 35: caos.zitadel.management.api.v1.UserAddress.creation_date:type_name -> google.protobuf.Timestamp - 167, // 36: caos.zitadel.management.api.v1.UserAddress.change_date:type_name -> google.protobuf.Timestamp - 167, // 37: caos.zitadel.management.api.v1.UserAddressView.creation_date:type_name -> google.protobuf.Timestamp - 167, // 38: caos.zitadel.management.api.v1.UserAddressView.change_date:type_name -> google.protobuf.Timestamp - 56, // 39: caos.zitadel.management.api.v1.MultiFactors.mfas:type_name -> caos.zitadel.management.api.v1.MultiFactor - 4, // 40: caos.zitadel.management.api.v1.MultiFactor.type:type_name -> caos.zitadel.management.api.v1.MfaType - 5, // 41: caos.zitadel.management.api.v1.MultiFactor.state:type_name -> caos.zitadel.management.api.v1.MFAState - 6, // 42: caos.zitadel.management.api.v1.SetPasswordNotificationRequest.type:type_name -> caos.zitadel.management.api.v1.NotificationType - 7, // 43: caos.zitadel.management.api.v1.PasswordComplexityPolicy.state:type_name -> caos.zitadel.management.api.v1.PolicyState - 167, // 44: caos.zitadel.management.api.v1.PasswordComplexityPolicy.creation_date:type_name -> google.protobuf.Timestamp - 167, // 45: caos.zitadel.management.api.v1.PasswordComplexityPolicy.change_date:type_name -> google.protobuf.Timestamp - 7, // 46: caos.zitadel.management.api.v1.PasswordAgePolicy.state:type_name -> caos.zitadel.management.api.v1.PolicyState - 167, // 47: caos.zitadel.management.api.v1.PasswordAgePolicy.creation_date:type_name -> google.protobuf.Timestamp - 167, // 48: caos.zitadel.management.api.v1.PasswordAgePolicy.change_date:type_name -> google.protobuf.Timestamp - 7, // 49: caos.zitadel.management.api.v1.PasswordLockoutPolicy.state:type_name -> caos.zitadel.management.api.v1.PolicyState - 167, // 50: caos.zitadel.management.api.v1.PasswordLockoutPolicy.creation_date:type_name -> google.protobuf.Timestamp - 167, // 51: caos.zitadel.management.api.v1.PasswordLockoutPolicy.change_date:type_name -> google.protobuf.Timestamp - 8, // 52: caos.zitadel.management.api.v1.Org.state:type_name -> caos.zitadel.management.api.v1.OrgState - 167, // 53: caos.zitadel.management.api.v1.Org.creation_date:type_name -> google.protobuf.Timestamp - 167, // 54: caos.zitadel.management.api.v1.Org.change_date:type_name -> google.protobuf.Timestamp - 8, // 55: caos.zitadel.management.api.v1.OrgView.state:type_name -> caos.zitadel.management.api.v1.OrgState - 167, // 56: caos.zitadel.management.api.v1.OrgView.creation_date:type_name -> google.protobuf.Timestamp - 167, // 57: caos.zitadel.management.api.v1.OrgView.change_date:type_name -> google.protobuf.Timestamp - 79, // 58: caos.zitadel.management.api.v1.OrgDomains.domains:type_name -> caos.zitadel.management.api.v1.OrgDomain - 167, // 59: caos.zitadel.management.api.v1.OrgDomain.creation_date:type_name -> google.protobuf.Timestamp - 167, // 60: caos.zitadel.management.api.v1.OrgDomain.change_date:type_name -> google.protobuf.Timestamp - 167, // 61: caos.zitadel.management.api.v1.OrgDomainView.creation_date:type_name -> google.protobuf.Timestamp - 167, // 62: caos.zitadel.management.api.v1.OrgDomainView.change_date:type_name -> google.protobuf.Timestamp - 80, // 63: caos.zitadel.management.api.v1.OrgDomainSearchResponse.result:type_name -> caos.zitadel.management.api.v1.OrgDomainView - 85, // 64: caos.zitadel.management.api.v1.OrgDomainSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.OrgDomainSearchQuery - 9, // 65: caos.zitadel.management.api.v1.OrgDomainSearchQuery.key:type_name -> caos.zitadel.management.api.v1.OrgDomainSearchKey - 3, // 66: caos.zitadel.management.api.v1.OrgDomainSearchQuery.method:type_name -> caos.zitadel.management.api.v1.SearchMethod - 167, // 67: caos.zitadel.management.api.v1.OrgMember.change_date:type_name -> google.protobuf.Timestamp - 167, // 68: caos.zitadel.management.api.v1.OrgMember.creation_date:type_name -> google.protobuf.Timestamp - 92, // 69: caos.zitadel.management.api.v1.OrgMemberSearchResponse.result:type_name -> caos.zitadel.management.api.v1.OrgMemberView - 167, // 70: caos.zitadel.management.api.v1.OrgMemberView.change_date:type_name -> google.protobuf.Timestamp - 167, // 71: caos.zitadel.management.api.v1.OrgMemberView.creation_date:type_name -> google.protobuf.Timestamp - 94, // 72: caos.zitadel.management.api.v1.OrgMemberSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.OrgMemberSearchQuery - 10, // 73: caos.zitadel.management.api.v1.OrgMemberSearchQuery.key:type_name -> caos.zitadel.management.api.v1.OrgMemberSearchKey - 3, // 74: caos.zitadel.management.api.v1.OrgMemberSearchQuery.method:type_name -> caos.zitadel.management.api.v1.SearchMethod - 98, // 75: caos.zitadel.management.api.v1.ProjectSearchResponse.result:type_name -> caos.zitadel.management.api.v1.ProjectView - 12, // 76: caos.zitadel.management.api.v1.ProjectView.state:type_name -> caos.zitadel.management.api.v1.ProjectState - 167, // 77: caos.zitadel.management.api.v1.ProjectView.change_date:type_name -> google.protobuf.Timestamp - 167, // 78: caos.zitadel.management.api.v1.ProjectView.creation_date:type_name -> google.protobuf.Timestamp - 100, // 79: caos.zitadel.management.api.v1.ProjectSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.ProjectSearchQuery - 11, // 80: caos.zitadel.management.api.v1.ProjectSearchQuery.key:type_name -> caos.zitadel.management.api.v1.ProjectSearchKey - 3, // 81: caos.zitadel.management.api.v1.ProjectSearchQuery.method:type_name -> caos.zitadel.management.api.v1.SearchMethod - 102, // 82: caos.zitadel.management.api.v1.Projects.projects:type_name -> caos.zitadel.management.api.v1.Project - 12, // 83: caos.zitadel.management.api.v1.Project.state:type_name -> caos.zitadel.management.api.v1.ProjectState - 167, // 84: caos.zitadel.management.api.v1.Project.change_date:type_name -> google.protobuf.Timestamp - 167, // 85: caos.zitadel.management.api.v1.Project.creation_date:type_name -> google.protobuf.Timestamp - 167, // 86: caos.zitadel.management.api.v1.ProjectMember.change_date:type_name -> google.protobuf.Timestamp - 167, // 87: caos.zitadel.management.api.v1.ProjectMember.creation_date:type_name -> google.protobuf.Timestamp - 108, // 88: caos.zitadel.management.api.v1.ProjectRoleAddBulk.project_roles:type_name -> caos.zitadel.management.api.v1.ProjectRoleAdd - 167, // 89: caos.zitadel.management.api.v1.ProjectRole.creation_date:type_name -> google.protobuf.Timestamp - 167, // 90: caos.zitadel.management.api.v1.ProjectRole.change_date:type_name -> google.protobuf.Timestamp - 167, // 91: caos.zitadel.management.api.v1.ProjectRoleView.creation_date:type_name -> google.protobuf.Timestamp - 112, // 92: caos.zitadel.management.api.v1.ProjectRoleSearchResponse.result:type_name -> caos.zitadel.management.api.v1.ProjectRoleView - 116, // 93: caos.zitadel.management.api.v1.ProjectRoleSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.ProjectRoleSearchQuery - 14, // 94: caos.zitadel.management.api.v1.ProjectRoleSearchQuery.key:type_name -> caos.zitadel.management.api.v1.ProjectRoleSearchKey - 3, // 95: caos.zitadel.management.api.v1.ProjectRoleSearchQuery.method:type_name -> caos.zitadel.management.api.v1.SearchMethod - 167, // 96: caos.zitadel.management.api.v1.ProjectMemberView.change_date:type_name -> google.protobuf.Timestamp - 167, // 97: caos.zitadel.management.api.v1.ProjectMemberView.creation_date:type_name -> google.protobuf.Timestamp - 117, // 98: caos.zitadel.management.api.v1.ProjectMemberSearchResponse.result:type_name -> caos.zitadel.management.api.v1.ProjectMemberView - 120, // 99: caos.zitadel.management.api.v1.ProjectMemberSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.ProjectMemberSearchQuery - 15, // 100: caos.zitadel.management.api.v1.ProjectMemberSearchQuery.key:type_name -> caos.zitadel.management.api.v1.ProjectMemberSearchKey - 3, // 101: caos.zitadel.management.api.v1.ProjectMemberSearchQuery.method:type_name -> caos.zitadel.management.api.v1.SearchMethod - 16, // 102: caos.zitadel.management.api.v1.Application.state:type_name -> caos.zitadel.management.api.v1.AppState - 167, // 103: caos.zitadel.management.api.v1.Application.creation_date:type_name -> google.protobuf.Timestamp - 167, // 104: caos.zitadel.management.api.v1.Application.change_date:type_name -> google.protobuf.Timestamp - 123, // 105: caos.zitadel.management.api.v1.Application.oidc_config:type_name -> caos.zitadel.management.api.v1.OIDCConfig - 17, // 106: caos.zitadel.management.api.v1.OIDCConfig.response_types:type_name -> caos.zitadel.management.api.v1.OIDCResponseType - 18, // 107: caos.zitadel.management.api.v1.OIDCConfig.grant_types:type_name -> caos.zitadel.management.api.v1.OIDCGrantType - 19, // 108: caos.zitadel.management.api.v1.OIDCConfig.application_type:type_name -> caos.zitadel.management.api.v1.OIDCApplicationType - 20, // 109: caos.zitadel.management.api.v1.OIDCConfig.auth_method_type:type_name -> caos.zitadel.management.api.v1.OIDCAuthMethodType - 17, // 110: caos.zitadel.management.api.v1.OIDCApplicationCreate.response_types:type_name -> caos.zitadel.management.api.v1.OIDCResponseType - 18, // 111: caos.zitadel.management.api.v1.OIDCApplicationCreate.grant_types:type_name -> caos.zitadel.management.api.v1.OIDCGrantType - 19, // 112: caos.zitadel.management.api.v1.OIDCApplicationCreate.application_type:type_name -> caos.zitadel.management.api.v1.OIDCApplicationType - 20, // 113: caos.zitadel.management.api.v1.OIDCApplicationCreate.auth_method_type:type_name -> caos.zitadel.management.api.v1.OIDCAuthMethodType - 17, // 114: caos.zitadel.management.api.v1.OIDCConfigUpdate.response_types:type_name -> caos.zitadel.management.api.v1.OIDCResponseType - 18, // 115: caos.zitadel.management.api.v1.OIDCConfigUpdate.grant_types:type_name -> caos.zitadel.management.api.v1.OIDCGrantType - 19, // 116: caos.zitadel.management.api.v1.OIDCConfigUpdate.application_type:type_name -> caos.zitadel.management.api.v1.OIDCApplicationType - 20, // 117: caos.zitadel.management.api.v1.OIDCConfigUpdate.auth_method_type:type_name -> caos.zitadel.management.api.v1.OIDCAuthMethodType - 16, // 118: caos.zitadel.management.api.v1.ApplicationView.state:type_name -> caos.zitadel.management.api.v1.AppState - 167, // 119: caos.zitadel.management.api.v1.ApplicationView.creation_date:type_name -> google.protobuf.Timestamp - 167, // 120: caos.zitadel.management.api.v1.ApplicationView.change_date:type_name -> google.protobuf.Timestamp - 123, // 121: caos.zitadel.management.api.v1.ApplicationView.oidc_config:type_name -> caos.zitadel.management.api.v1.OIDCConfig - 127, // 122: caos.zitadel.management.api.v1.ApplicationSearchResponse.result:type_name -> caos.zitadel.management.api.v1.ApplicationView - 130, // 123: caos.zitadel.management.api.v1.ApplicationSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.ApplicationSearchQuery - 21, // 124: caos.zitadel.management.api.v1.ApplicationSearchQuery.key:type_name -> caos.zitadel.management.api.v1.ApplicationSearchKey - 3, // 125: caos.zitadel.management.api.v1.ApplicationSearchQuery.method:type_name -> caos.zitadel.management.api.v1.SearchMethod - 22, // 126: caos.zitadel.management.api.v1.ProjectGrant.state:type_name -> caos.zitadel.management.api.v1.ProjectGrantState - 167, // 127: caos.zitadel.management.api.v1.ProjectGrant.creation_date:type_name -> google.protobuf.Timestamp - 167, // 128: caos.zitadel.management.api.v1.ProjectGrant.change_date:type_name -> google.protobuf.Timestamp - 22, // 129: caos.zitadel.management.api.v1.ProjectGrantView.state:type_name -> caos.zitadel.management.api.v1.ProjectGrantState - 167, // 130: caos.zitadel.management.api.v1.ProjectGrantView.creation_date:type_name -> google.protobuf.Timestamp - 167, // 131: caos.zitadel.management.api.v1.ProjectGrantView.change_date:type_name -> google.protobuf.Timestamp - 135, // 132: caos.zitadel.management.api.v1.ProjectGrantSearchResponse.result:type_name -> caos.zitadel.management.api.v1.ProjectGrantView - 100, // 133: caos.zitadel.management.api.v1.GrantedProjectSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.ProjectSearchQuery - 139, // 134: caos.zitadel.management.api.v1.ProjectGrantSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.ProjectGrantSearchQuery - 23, // 135: caos.zitadel.management.api.v1.ProjectGrantSearchQuery.key:type_name -> caos.zitadel.management.api.v1.ProjectGrantSearchKey - 3, // 136: caos.zitadel.management.api.v1.ProjectGrantSearchQuery.method:type_name -> caos.zitadel.management.api.v1.SearchMethod - 167, // 137: caos.zitadel.management.api.v1.ProjectGrantMember.change_date:type_name -> google.protobuf.Timestamp - 167, // 138: caos.zitadel.management.api.v1.ProjectGrantMember.creation_date:type_name -> google.protobuf.Timestamp - 167, // 139: caos.zitadel.management.api.v1.ProjectGrantMemberView.change_date:type_name -> google.protobuf.Timestamp - 167, // 140: caos.zitadel.management.api.v1.ProjectGrantMemberView.creation_date:type_name -> google.protobuf.Timestamp - 145, // 141: caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.result:type_name -> caos.zitadel.management.api.v1.ProjectGrantMemberView - 148, // 142: caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery - 24, // 143: caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.key:type_name -> caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey - 3, // 144: caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.method:type_name -> caos.zitadel.management.api.v1.SearchMethod - 25, // 145: caos.zitadel.management.api.v1.UserGrant.state:type_name -> caos.zitadel.management.api.v1.UserGrantState - 167, // 146: caos.zitadel.management.api.v1.UserGrant.creation_date:type_name -> google.protobuf.Timestamp - 167, // 147: caos.zitadel.management.api.v1.UserGrant.change_date:type_name -> google.protobuf.Timestamp - 151, // 148: caos.zitadel.management.api.v1.UserGrantCreateBulk.user_grants:type_name -> caos.zitadel.management.api.v1.UserGrantCreate - 153, // 149: caos.zitadel.management.api.v1.UserGrantUpdateBulk.user_grants:type_name -> caos.zitadel.management.api.v1.UserGrantUpdate - 25, // 150: caos.zitadel.management.api.v1.UserGrantView.state:type_name -> caos.zitadel.management.api.v1.UserGrantState - 167, // 151: caos.zitadel.management.api.v1.UserGrantView.creation_date:type_name -> google.protobuf.Timestamp - 167, // 152: caos.zitadel.management.api.v1.UserGrantView.change_date:type_name -> google.protobuf.Timestamp - 161, // 153: caos.zitadel.management.api.v1.UserGrantSearchResponse.result:type_name -> caos.zitadel.management.api.v1.UserGrantView - 164, // 154: caos.zitadel.management.api.v1.UserGrantSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.UserGrantSearchQuery - 26, // 155: caos.zitadel.management.api.v1.UserGrantSearchQuery.key:type_name -> caos.zitadel.management.api.v1.UserGrantSearchKey - 3, // 156: caos.zitadel.management.api.v1.UserGrantSearchQuery.method:type_name -> caos.zitadel.management.api.v1.SearchMethod - 164, // 157: caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.UserGrantSearchQuery - 164, // 158: caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.queries:type_name -> caos.zitadel.management.api.v1.UserGrantSearchQuery - 170, // 159: caos.zitadel.management.api.v1.ManagementService.Healthz:input_type -> google.protobuf.Empty - 170, // 160: caos.zitadel.management.api.v1.ManagementService.Ready:input_type -> google.protobuf.Empty - 170, // 161: caos.zitadel.management.api.v1.ManagementService.Validate:input_type -> google.protobuf.Empty - 170, // 162: caos.zitadel.management.api.v1.ManagementService.GetIam:input_type -> google.protobuf.Empty - 33, // 163: caos.zitadel.management.api.v1.ManagementService.GetUserByID:input_type -> caos.zitadel.management.api.v1.UserID - 34, // 164: caos.zitadel.management.api.v1.ManagementService.GetUserByEmailGlobal:input_type -> caos.zitadel.management.api.v1.Email - 40, // 165: caos.zitadel.management.api.v1.ManagementService.SearchUsers:input_type -> caos.zitadel.management.api.v1.UserSearchRequest - 35, // 166: caos.zitadel.management.api.v1.ManagementService.IsUserUnique:input_type -> caos.zitadel.management.api.v1.UniqueUserRequest - 37, // 167: caos.zitadel.management.api.v1.ManagementService.CreateUser:input_type -> caos.zitadel.management.api.v1.CreateUserRequest - 33, // 168: caos.zitadel.management.api.v1.ManagementService.DeactivateUser:input_type -> caos.zitadel.management.api.v1.UserID - 33, // 169: caos.zitadel.management.api.v1.ManagementService.ReactivateUser:input_type -> caos.zitadel.management.api.v1.UserID - 33, // 170: caos.zitadel.management.api.v1.ManagementService.LockUser:input_type -> caos.zitadel.management.api.v1.UserID - 33, // 171: caos.zitadel.management.api.v1.ManagementService.UnlockUser:input_type -> caos.zitadel.management.api.v1.UserID - 33, // 172: caos.zitadel.management.api.v1.ManagementService.DeleteUser:input_type -> caos.zitadel.management.api.v1.UserID - 28, // 173: caos.zitadel.management.api.v1.ManagementService.UserChanges:input_type -> caos.zitadel.management.api.v1.ChangeRequest - 28, // 174: caos.zitadel.management.api.v1.ManagementService.ApplicationChanges:input_type -> caos.zitadel.management.api.v1.ChangeRequest - 28, // 175: caos.zitadel.management.api.v1.ManagementService.OrgChanges:input_type -> caos.zitadel.management.api.v1.ChangeRequest - 28, // 176: caos.zitadel.management.api.v1.ManagementService.ProjectChanges:input_type -> caos.zitadel.management.api.v1.ChangeRequest - 33, // 177: caos.zitadel.management.api.v1.ManagementService.GetUserProfile:input_type -> caos.zitadel.management.api.v1.UserID - 45, // 178: caos.zitadel.management.api.v1.ManagementService.UpdateUserProfile:input_type -> caos.zitadel.management.api.v1.UpdateUserProfileRequest - 33, // 179: caos.zitadel.management.api.v1.ManagementService.GetUserEmail:input_type -> caos.zitadel.management.api.v1.UserID - 48, // 180: caos.zitadel.management.api.v1.ManagementService.ChangeUserEmail:input_type -> caos.zitadel.management.api.v1.UpdateUserEmailRequest - 33, // 181: caos.zitadel.management.api.v1.ManagementService.ResendEmailVerificationMail:input_type -> caos.zitadel.management.api.v1.UserID - 33, // 182: caos.zitadel.management.api.v1.ManagementService.GetUserPhone:input_type -> caos.zitadel.management.api.v1.UserID - 51, // 183: caos.zitadel.management.api.v1.ManagementService.ChangeUserPhone:input_type -> caos.zitadel.management.api.v1.UpdateUserPhoneRequest - 33, // 184: caos.zitadel.management.api.v1.ManagementService.RemoveUserPhone:input_type -> caos.zitadel.management.api.v1.UserID - 33, // 185: caos.zitadel.management.api.v1.ManagementService.ResendPhoneVerificationCode:input_type -> caos.zitadel.management.api.v1.UserID - 33, // 186: caos.zitadel.management.api.v1.ManagementService.GetUserAddress:input_type -> caos.zitadel.management.api.v1.UserID - 54, // 187: caos.zitadel.management.api.v1.ManagementService.UpdateUserAddress:input_type -> caos.zitadel.management.api.v1.UpdateUserAddressRequest - 33, // 188: caos.zitadel.management.api.v1.ManagementService.GetUserMfas:input_type -> caos.zitadel.management.api.v1.UserID - 60, // 189: caos.zitadel.management.api.v1.ManagementService.SendSetPasswordNotification:input_type -> caos.zitadel.management.api.v1.SetPasswordNotificationRequest - 58, // 190: caos.zitadel.management.api.v1.ManagementService.SetInitialPassword:input_type -> caos.zitadel.management.api.v1.PasswordRequest - 170, // 191: caos.zitadel.management.api.v1.ManagementService.GetPasswordComplexityPolicy:input_type -> google.protobuf.Empty - 63, // 192: caos.zitadel.management.api.v1.ManagementService.CreatePasswordComplexityPolicy:input_type -> caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate - 64, // 193: caos.zitadel.management.api.v1.ManagementService.UpdatePasswordComplexityPolicy:input_type -> caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate - 61, // 194: caos.zitadel.management.api.v1.ManagementService.DeletePasswordComplexityPolicy:input_type -> caos.zitadel.management.api.v1.PasswordComplexityPolicyID - 170, // 195: caos.zitadel.management.api.v1.ManagementService.GetPasswordAgePolicy:input_type -> google.protobuf.Empty - 67, // 196: caos.zitadel.management.api.v1.ManagementService.CreatePasswordAgePolicy:input_type -> caos.zitadel.management.api.v1.PasswordAgePolicyCreate - 68, // 197: caos.zitadel.management.api.v1.ManagementService.UpdatePasswordAgePolicy:input_type -> caos.zitadel.management.api.v1.PasswordAgePolicyUpdate - 65, // 198: caos.zitadel.management.api.v1.ManagementService.DeletePasswordAgePolicy:input_type -> caos.zitadel.management.api.v1.PasswordAgePolicyID - 170, // 199: caos.zitadel.management.api.v1.ManagementService.GetPasswordLockoutPolicy:input_type -> google.protobuf.Empty - 71, // 200: caos.zitadel.management.api.v1.ManagementService.CreatePasswordLockoutPolicy:input_type -> caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate - 72, // 201: caos.zitadel.management.api.v1.ManagementService.UpdatePasswordLockoutPolicy:input_type -> caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate - 69, // 202: caos.zitadel.management.api.v1.ManagementService.DeletePasswordLockoutPolicy:input_type -> caos.zitadel.management.api.v1.PasswordLockoutPolicyID - 170, // 203: caos.zitadel.management.api.v1.ManagementService.GetMyOrg:input_type -> google.protobuf.Empty - 77, // 204: caos.zitadel.management.api.v1.ManagementService.GetOrgByDomainGlobal:input_type -> caos.zitadel.management.api.v1.Domain - 170, // 205: caos.zitadel.management.api.v1.ManagementService.DeactivateMyOrg:input_type -> google.protobuf.Empty - 170, // 206: caos.zitadel.management.api.v1.ManagementService.ReactivateMyOrg:input_type -> google.protobuf.Empty - 84, // 207: caos.zitadel.management.api.v1.ManagementService.SearchMyOrgDomains:input_type -> caos.zitadel.management.api.v1.OrgDomainSearchRequest - 81, // 208: caos.zitadel.management.api.v1.ManagementService.AddMyOrgDomain:input_type -> caos.zitadel.management.api.v1.AddOrgDomainRequest - 82, // 209: caos.zitadel.management.api.v1.ManagementService.RemoveMyOrgDomain:input_type -> caos.zitadel.management.api.v1.RemoveOrgDomainRequest - 170, // 210: caos.zitadel.management.api.v1.ManagementService.GetMyOrgIamPolicy:input_type -> google.protobuf.Empty - 170, // 211: caos.zitadel.management.api.v1.ManagementService.GetOrgMemberRoles:input_type -> google.protobuf.Empty - 88, // 212: caos.zitadel.management.api.v1.ManagementService.AddMyOrgMember:input_type -> caos.zitadel.management.api.v1.AddOrgMemberRequest - 89, // 213: caos.zitadel.management.api.v1.ManagementService.ChangeMyOrgMember:input_type -> caos.zitadel.management.api.v1.ChangeOrgMemberRequest - 90, // 214: caos.zitadel.management.api.v1.ManagementService.RemoveMyOrgMember:input_type -> caos.zitadel.management.api.v1.RemoveOrgMemberRequest - 93, // 215: caos.zitadel.management.api.v1.ManagementService.SearchMyOrgMembers:input_type -> caos.zitadel.management.api.v1.OrgMemberSearchRequest - 99, // 216: caos.zitadel.management.api.v1.ManagementService.SearchProjects:input_type -> caos.zitadel.management.api.v1.ProjectSearchRequest - 32, // 217: caos.zitadel.management.api.v1.ManagementService.ProjectByID:input_type -> caos.zitadel.management.api.v1.ProjectID - 95, // 218: caos.zitadel.management.api.v1.ManagementService.CreateProject:input_type -> caos.zitadel.management.api.v1.ProjectCreateRequest - 96, // 219: caos.zitadel.management.api.v1.ManagementService.UpdateProject:input_type -> caos.zitadel.management.api.v1.ProjectUpdateRequest - 32, // 220: caos.zitadel.management.api.v1.ManagementService.DeactivateProject:input_type -> caos.zitadel.management.api.v1.ProjectID - 32, // 221: caos.zitadel.management.api.v1.ManagementService.ReactivateProject:input_type -> caos.zitadel.management.api.v1.ProjectID - 137, // 222: caos.zitadel.management.api.v1.ManagementService.SearchGrantedProjects:input_type -> caos.zitadel.management.api.v1.GrantedProjectSearchRequest - 134, // 223: caos.zitadel.management.api.v1.ManagementService.GetGrantedProjectByID:input_type -> caos.zitadel.management.api.v1.ProjectGrantID - 170, // 224: caos.zitadel.management.api.v1.ManagementService.GetProjectMemberRoles:input_type -> google.protobuf.Empty - 119, // 225: caos.zitadel.management.api.v1.ManagementService.SearchProjectMembers:input_type -> caos.zitadel.management.api.v1.ProjectMemberSearchRequest - 105, // 226: caos.zitadel.management.api.v1.ManagementService.AddProjectMember:input_type -> caos.zitadel.management.api.v1.ProjectMemberAdd - 106, // 227: caos.zitadel.management.api.v1.ManagementService.ChangeProjectMember:input_type -> caos.zitadel.management.api.v1.ProjectMemberChange - 107, // 228: caos.zitadel.management.api.v1.ManagementService.RemoveProjectMember:input_type -> caos.zitadel.management.api.v1.ProjectMemberRemove - 115, // 229: caos.zitadel.management.api.v1.ManagementService.SearchProjectRoles:input_type -> caos.zitadel.management.api.v1.ProjectRoleSearchRequest - 108, // 230: caos.zitadel.management.api.v1.ManagementService.AddProjectRole:input_type -> caos.zitadel.management.api.v1.ProjectRoleAdd - 109, // 231: caos.zitadel.management.api.v1.ManagementService.BulkAddProjectRole:input_type -> caos.zitadel.management.api.v1.ProjectRoleAddBulk - 110, // 232: caos.zitadel.management.api.v1.ManagementService.ChangeProjectRole:input_type -> caos.zitadel.management.api.v1.ProjectRoleChange - 113, // 233: caos.zitadel.management.api.v1.ManagementService.RemoveProjectRole:input_type -> caos.zitadel.management.api.v1.ProjectRoleRemove - 129, // 234: caos.zitadel.management.api.v1.ManagementService.SearchApplications:input_type -> caos.zitadel.management.api.v1.ApplicationSearchRequest - 31, // 235: caos.zitadel.management.api.v1.ManagementService.ApplicationByID:input_type -> caos.zitadel.management.api.v1.ApplicationID - 124, // 236: caos.zitadel.management.api.v1.ManagementService.CreateOIDCApplication:input_type -> caos.zitadel.management.api.v1.OIDCApplicationCreate - 122, // 237: caos.zitadel.management.api.v1.ManagementService.UpdateApplication:input_type -> caos.zitadel.management.api.v1.ApplicationUpdate - 31, // 238: caos.zitadel.management.api.v1.ManagementService.DeactivateApplication:input_type -> caos.zitadel.management.api.v1.ApplicationID - 31, // 239: caos.zitadel.management.api.v1.ManagementService.ReactivateApplication:input_type -> caos.zitadel.management.api.v1.ApplicationID - 31, // 240: caos.zitadel.management.api.v1.ManagementService.RemoveApplication:input_type -> caos.zitadel.management.api.v1.ApplicationID - 125, // 241: caos.zitadel.management.api.v1.ManagementService.UpdateApplicationOIDCConfig:input_type -> caos.zitadel.management.api.v1.OIDCConfigUpdate - 31, // 242: caos.zitadel.management.api.v1.ManagementService.RegenerateOIDCClientSecret:input_type -> caos.zitadel.management.api.v1.ApplicationID - 138, // 243: caos.zitadel.management.api.v1.ManagementService.SearchProjectGrants:input_type -> caos.zitadel.management.api.v1.ProjectGrantSearchRequest - 134, // 244: caos.zitadel.management.api.v1.ManagementService.ProjectGrantByID:input_type -> caos.zitadel.management.api.v1.ProjectGrantID - 132, // 245: caos.zitadel.management.api.v1.ManagementService.CreateProjectGrant:input_type -> caos.zitadel.management.api.v1.ProjectGrantCreate - 133, // 246: caos.zitadel.management.api.v1.ManagementService.UpdateProjectGrant:input_type -> caos.zitadel.management.api.v1.ProjectGrantUpdate - 134, // 247: caos.zitadel.management.api.v1.ManagementService.DeactivateProjectGrant:input_type -> caos.zitadel.management.api.v1.ProjectGrantID - 134, // 248: caos.zitadel.management.api.v1.ManagementService.ReactivateProjectGrant:input_type -> caos.zitadel.management.api.v1.ProjectGrantID - 134, // 249: caos.zitadel.management.api.v1.ManagementService.RemoveProjectGrant:input_type -> caos.zitadel.management.api.v1.ProjectGrantID - 170, // 250: caos.zitadel.management.api.v1.ManagementService.GetProjectGrantMemberRoles:input_type -> google.protobuf.Empty - 147, // 251: caos.zitadel.management.api.v1.ManagementService.SearchProjectGrantMembers:input_type -> caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest - 142, // 252: caos.zitadel.management.api.v1.ManagementService.AddProjectGrantMember:input_type -> caos.zitadel.management.api.v1.ProjectGrantMemberAdd - 143, // 253: caos.zitadel.management.api.v1.ManagementService.ChangeProjectGrantMember:input_type -> caos.zitadel.management.api.v1.ProjectGrantMemberChange - 144, // 254: caos.zitadel.management.api.v1.ManagementService.RemoveProjectGrantMember:input_type -> caos.zitadel.management.api.v1.ProjectGrantMemberRemove - 163, // 255: caos.zitadel.management.api.v1.ManagementService.SearchUserGrants:input_type -> caos.zitadel.management.api.v1.UserGrantSearchRequest - 155, // 256: caos.zitadel.management.api.v1.ManagementService.UserGrantByID:input_type -> caos.zitadel.management.api.v1.UserGrantID - 151, // 257: caos.zitadel.management.api.v1.ManagementService.CreateUserGrant:input_type -> caos.zitadel.management.api.v1.UserGrantCreate - 153, // 258: caos.zitadel.management.api.v1.ManagementService.UpdateUserGrant:input_type -> caos.zitadel.management.api.v1.UserGrantUpdate - 155, // 259: caos.zitadel.management.api.v1.ManagementService.DeactivateUserGrant:input_type -> caos.zitadel.management.api.v1.UserGrantID - 155, // 260: caos.zitadel.management.api.v1.ManagementService.ReactivateUserGrant:input_type -> caos.zitadel.management.api.v1.UserGrantID - 155, // 261: caos.zitadel.management.api.v1.ManagementService.RemoveUserGrant:input_type -> caos.zitadel.management.api.v1.UserGrantID - 150, // 262: caos.zitadel.management.api.v1.ManagementService.BulkCreateUserGrant:input_type -> caos.zitadel.management.api.v1.UserGrantCreateBulk - 152, // 263: caos.zitadel.management.api.v1.ManagementService.BulkUpdateUserGrant:input_type -> caos.zitadel.management.api.v1.UserGrantUpdateBulk - 154, // 264: caos.zitadel.management.api.v1.ManagementService.BulkRemoveUserGrant:input_type -> caos.zitadel.management.api.v1.UserGrantRemoveBulk - 165, // 265: caos.zitadel.management.api.v1.ManagementService.SearchProjectUserGrants:input_type -> caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest - 156, // 266: caos.zitadel.management.api.v1.ManagementService.ProjectUserGrantByID:input_type -> caos.zitadel.management.api.v1.ProjectUserGrantID - 151, // 267: caos.zitadel.management.api.v1.ManagementService.CreateProjectUserGrant:input_type -> caos.zitadel.management.api.v1.UserGrantCreate - 157, // 268: caos.zitadel.management.api.v1.ManagementService.UpdateProjectUserGrant:input_type -> caos.zitadel.management.api.v1.ProjectUserGrantUpdate - 156, // 269: caos.zitadel.management.api.v1.ManagementService.DeactivateProjectUserGrant:input_type -> caos.zitadel.management.api.v1.ProjectUserGrantID - 156, // 270: caos.zitadel.management.api.v1.ManagementService.ReactivateProjectUserGrant:input_type -> caos.zitadel.management.api.v1.ProjectUserGrantID - 166, // 271: caos.zitadel.management.api.v1.ManagementService.SearchProjectGrantUserGrants:input_type -> caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest - 158, // 272: caos.zitadel.management.api.v1.ManagementService.ProjectGrantUserGrantByID:input_type -> caos.zitadel.management.api.v1.ProjectGrantUserGrantID - 159, // 273: caos.zitadel.management.api.v1.ManagementService.CreateProjectGrantUserGrant:input_type -> caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate - 160, // 274: caos.zitadel.management.api.v1.ManagementService.UpdateProjectGrantUserGrant:input_type -> caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate - 158, // 275: caos.zitadel.management.api.v1.ManagementService.DeactivateProjectGrantUserGrant:input_type -> caos.zitadel.management.api.v1.ProjectGrantUserGrantID - 158, // 276: caos.zitadel.management.api.v1.ManagementService.ReactivateProjectGrantUserGrant:input_type -> caos.zitadel.management.api.v1.ProjectGrantUserGrantID - 170, // 277: caos.zitadel.management.api.v1.ManagementService.Healthz:output_type -> google.protobuf.Empty - 170, // 278: caos.zitadel.management.api.v1.ManagementService.Ready:output_type -> google.protobuf.Empty - 169, // 279: caos.zitadel.management.api.v1.ManagementService.Validate:output_type -> google.protobuf.Struct - 27, // 280: caos.zitadel.management.api.v1.ManagementService.GetIam:output_type -> caos.zitadel.management.api.v1.Iam - 39, // 281: caos.zitadel.management.api.v1.ManagementService.GetUserByID:output_type -> caos.zitadel.management.api.v1.UserView - 39, // 282: caos.zitadel.management.api.v1.ManagementService.GetUserByEmailGlobal:output_type -> caos.zitadel.management.api.v1.UserView - 42, // 283: caos.zitadel.management.api.v1.ManagementService.SearchUsers:output_type -> caos.zitadel.management.api.v1.UserSearchResponse - 36, // 284: caos.zitadel.management.api.v1.ManagementService.IsUserUnique:output_type -> caos.zitadel.management.api.v1.UniqueUserResponse - 38, // 285: caos.zitadel.management.api.v1.ManagementService.CreateUser:output_type -> caos.zitadel.management.api.v1.User - 38, // 286: caos.zitadel.management.api.v1.ManagementService.DeactivateUser:output_type -> caos.zitadel.management.api.v1.User - 38, // 287: caos.zitadel.management.api.v1.ManagementService.ReactivateUser:output_type -> caos.zitadel.management.api.v1.User - 38, // 288: caos.zitadel.management.api.v1.ManagementService.LockUser:output_type -> caos.zitadel.management.api.v1.User - 38, // 289: caos.zitadel.management.api.v1.ManagementService.UnlockUser:output_type -> caos.zitadel.management.api.v1.User - 170, // 290: caos.zitadel.management.api.v1.ManagementService.DeleteUser:output_type -> google.protobuf.Empty - 29, // 291: caos.zitadel.management.api.v1.ManagementService.UserChanges:output_type -> caos.zitadel.management.api.v1.Changes - 29, // 292: caos.zitadel.management.api.v1.ManagementService.ApplicationChanges:output_type -> caos.zitadel.management.api.v1.Changes - 29, // 293: caos.zitadel.management.api.v1.ManagementService.OrgChanges:output_type -> caos.zitadel.management.api.v1.Changes - 29, // 294: caos.zitadel.management.api.v1.ManagementService.ProjectChanges:output_type -> caos.zitadel.management.api.v1.Changes - 44, // 295: caos.zitadel.management.api.v1.ManagementService.GetUserProfile:output_type -> caos.zitadel.management.api.v1.UserProfileView - 43, // 296: caos.zitadel.management.api.v1.ManagementService.UpdateUserProfile:output_type -> caos.zitadel.management.api.v1.UserProfile - 47, // 297: caos.zitadel.management.api.v1.ManagementService.GetUserEmail:output_type -> caos.zitadel.management.api.v1.UserEmailView - 46, // 298: caos.zitadel.management.api.v1.ManagementService.ChangeUserEmail:output_type -> caos.zitadel.management.api.v1.UserEmail - 170, // 299: caos.zitadel.management.api.v1.ManagementService.ResendEmailVerificationMail:output_type -> google.protobuf.Empty - 50, // 300: caos.zitadel.management.api.v1.ManagementService.GetUserPhone:output_type -> caos.zitadel.management.api.v1.UserPhoneView - 49, // 301: caos.zitadel.management.api.v1.ManagementService.ChangeUserPhone:output_type -> caos.zitadel.management.api.v1.UserPhone - 170, // 302: caos.zitadel.management.api.v1.ManagementService.RemoveUserPhone:output_type -> google.protobuf.Empty - 170, // 303: caos.zitadel.management.api.v1.ManagementService.ResendPhoneVerificationCode:output_type -> google.protobuf.Empty - 53, // 304: caos.zitadel.management.api.v1.ManagementService.GetUserAddress:output_type -> caos.zitadel.management.api.v1.UserAddressView - 52, // 305: caos.zitadel.management.api.v1.ManagementService.UpdateUserAddress:output_type -> caos.zitadel.management.api.v1.UserAddress - 55, // 306: caos.zitadel.management.api.v1.ManagementService.GetUserMfas:output_type -> caos.zitadel.management.api.v1.MultiFactors - 170, // 307: caos.zitadel.management.api.v1.ManagementService.SendSetPasswordNotification:output_type -> google.protobuf.Empty - 170, // 308: caos.zitadel.management.api.v1.ManagementService.SetInitialPassword:output_type -> google.protobuf.Empty - 62, // 309: caos.zitadel.management.api.v1.ManagementService.GetPasswordComplexityPolicy:output_type -> caos.zitadel.management.api.v1.PasswordComplexityPolicy - 62, // 310: caos.zitadel.management.api.v1.ManagementService.CreatePasswordComplexityPolicy:output_type -> caos.zitadel.management.api.v1.PasswordComplexityPolicy - 62, // 311: caos.zitadel.management.api.v1.ManagementService.UpdatePasswordComplexityPolicy:output_type -> caos.zitadel.management.api.v1.PasswordComplexityPolicy - 170, // 312: caos.zitadel.management.api.v1.ManagementService.DeletePasswordComplexityPolicy:output_type -> google.protobuf.Empty - 66, // 313: caos.zitadel.management.api.v1.ManagementService.GetPasswordAgePolicy:output_type -> caos.zitadel.management.api.v1.PasswordAgePolicy - 66, // 314: caos.zitadel.management.api.v1.ManagementService.CreatePasswordAgePolicy:output_type -> caos.zitadel.management.api.v1.PasswordAgePolicy - 66, // 315: caos.zitadel.management.api.v1.ManagementService.UpdatePasswordAgePolicy:output_type -> caos.zitadel.management.api.v1.PasswordAgePolicy - 170, // 316: caos.zitadel.management.api.v1.ManagementService.DeletePasswordAgePolicy:output_type -> google.protobuf.Empty - 70, // 317: caos.zitadel.management.api.v1.ManagementService.GetPasswordLockoutPolicy:output_type -> caos.zitadel.management.api.v1.PasswordLockoutPolicy - 70, // 318: caos.zitadel.management.api.v1.ManagementService.CreatePasswordLockoutPolicy:output_type -> caos.zitadel.management.api.v1.PasswordLockoutPolicy - 70, // 319: caos.zitadel.management.api.v1.ManagementService.UpdatePasswordLockoutPolicy:output_type -> caos.zitadel.management.api.v1.PasswordLockoutPolicy - 170, // 320: caos.zitadel.management.api.v1.ManagementService.DeletePasswordLockoutPolicy:output_type -> google.protobuf.Empty - 76, // 321: caos.zitadel.management.api.v1.ManagementService.GetMyOrg:output_type -> caos.zitadel.management.api.v1.OrgView - 76, // 322: caos.zitadel.management.api.v1.ManagementService.GetOrgByDomainGlobal:output_type -> caos.zitadel.management.api.v1.OrgView - 75, // 323: caos.zitadel.management.api.v1.ManagementService.DeactivateMyOrg:output_type -> caos.zitadel.management.api.v1.Org - 75, // 324: caos.zitadel.management.api.v1.ManagementService.ReactivateMyOrg:output_type -> caos.zitadel.management.api.v1.Org - 83, // 325: caos.zitadel.management.api.v1.ManagementService.SearchMyOrgDomains:output_type -> caos.zitadel.management.api.v1.OrgDomainSearchResponse - 79, // 326: caos.zitadel.management.api.v1.ManagementService.AddMyOrgDomain:output_type -> caos.zitadel.management.api.v1.OrgDomain - 170, // 327: caos.zitadel.management.api.v1.ManagementService.RemoveMyOrgDomain:output_type -> google.protobuf.Empty - 73, // 328: caos.zitadel.management.api.v1.ManagementService.GetMyOrgIamPolicy:output_type -> caos.zitadel.management.api.v1.OrgIamPolicy - 86, // 329: caos.zitadel.management.api.v1.ManagementService.GetOrgMemberRoles:output_type -> caos.zitadel.management.api.v1.OrgMemberRoles - 87, // 330: caos.zitadel.management.api.v1.ManagementService.AddMyOrgMember:output_type -> caos.zitadel.management.api.v1.OrgMember - 87, // 331: caos.zitadel.management.api.v1.ManagementService.ChangeMyOrgMember:output_type -> caos.zitadel.management.api.v1.OrgMember - 170, // 332: caos.zitadel.management.api.v1.ManagementService.RemoveMyOrgMember:output_type -> google.protobuf.Empty - 91, // 333: caos.zitadel.management.api.v1.ManagementService.SearchMyOrgMembers:output_type -> caos.zitadel.management.api.v1.OrgMemberSearchResponse - 97, // 334: caos.zitadel.management.api.v1.ManagementService.SearchProjects:output_type -> caos.zitadel.management.api.v1.ProjectSearchResponse - 98, // 335: caos.zitadel.management.api.v1.ManagementService.ProjectByID:output_type -> caos.zitadel.management.api.v1.ProjectView - 102, // 336: caos.zitadel.management.api.v1.ManagementService.CreateProject:output_type -> caos.zitadel.management.api.v1.Project - 102, // 337: caos.zitadel.management.api.v1.ManagementService.UpdateProject:output_type -> caos.zitadel.management.api.v1.Project - 102, // 338: caos.zitadel.management.api.v1.ManagementService.DeactivateProject:output_type -> caos.zitadel.management.api.v1.Project - 102, // 339: caos.zitadel.management.api.v1.ManagementService.ReactivateProject:output_type -> caos.zitadel.management.api.v1.Project - 136, // 340: caos.zitadel.management.api.v1.ManagementService.SearchGrantedProjects:output_type -> caos.zitadel.management.api.v1.ProjectGrantSearchResponse - 135, // 341: caos.zitadel.management.api.v1.ManagementService.GetGrantedProjectByID:output_type -> caos.zitadel.management.api.v1.ProjectGrantView - 103, // 342: caos.zitadel.management.api.v1.ManagementService.GetProjectMemberRoles:output_type -> caos.zitadel.management.api.v1.ProjectMemberRoles - 118, // 343: caos.zitadel.management.api.v1.ManagementService.SearchProjectMembers:output_type -> caos.zitadel.management.api.v1.ProjectMemberSearchResponse - 104, // 344: caos.zitadel.management.api.v1.ManagementService.AddProjectMember:output_type -> caos.zitadel.management.api.v1.ProjectMember - 104, // 345: caos.zitadel.management.api.v1.ManagementService.ChangeProjectMember:output_type -> caos.zitadel.management.api.v1.ProjectMember - 170, // 346: caos.zitadel.management.api.v1.ManagementService.RemoveProjectMember:output_type -> google.protobuf.Empty - 114, // 347: caos.zitadel.management.api.v1.ManagementService.SearchProjectRoles:output_type -> caos.zitadel.management.api.v1.ProjectRoleSearchResponse - 111, // 348: caos.zitadel.management.api.v1.ManagementService.AddProjectRole:output_type -> caos.zitadel.management.api.v1.ProjectRole - 170, // 349: caos.zitadel.management.api.v1.ManagementService.BulkAddProjectRole:output_type -> google.protobuf.Empty - 111, // 350: caos.zitadel.management.api.v1.ManagementService.ChangeProjectRole:output_type -> caos.zitadel.management.api.v1.ProjectRole - 170, // 351: caos.zitadel.management.api.v1.ManagementService.RemoveProjectRole:output_type -> google.protobuf.Empty - 128, // 352: caos.zitadel.management.api.v1.ManagementService.SearchApplications:output_type -> caos.zitadel.management.api.v1.ApplicationSearchResponse - 127, // 353: caos.zitadel.management.api.v1.ManagementService.ApplicationByID:output_type -> caos.zitadel.management.api.v1.ApplicationView - 121, // 354: caos.zitadel.management.api.v1.ManagementService.CreateOIDCApplication:output_type -> caos.zitadel.management.api.v1.Application - 121, // 355: caos.zitadel.management.api.v1.ManagementService.UpdateApplication:output_type -> caos.zitadel.management.api.v1.Application - 121, // 356: caos.zitadel.management.api.v1.ManagementService.DeactivateApplication:output_type -> caos.zitadel.management.api.v1.Application - 121, // 357: caos.zitadel.management.api.v1.ManagementService.ReactivateApplication:output_type -> caos.zitadel.management.api.v1.Application - 170, // 358: caos.zitadel.management.api.v1.ManagementService.RemoveApplication:output_type -> google.protobuf.Empty - 123, // 359: caos.zitadel.management.api.v1.ManagementService.UpdateApplicationOIDCConfig:output_type -> caos.zitadel.management.api.v1.OIDCConfig - 126, // 360: caos.zitadel.management.api.v1.ManagementService.RegenerateOIDCClientSecret:output_type -> caos.zitadel.management.api.v1.ClientSecret - 136, // 361: caos.zitadel.management.api.v1.ManagementService.SearchProjectGrants:output_type -> caos.zitadel.management.api.v1.ProjectGrantSearchResponse - 135, // 362: caos.zitadel.management.api.v1.ManagementService.ProjectGrantByID:output_type -> caos.zitadel.management.api.v1.ProjectGrantView - 131, // 363: caos.zitadel.management.api.v1.ManagementService.CreateProjectGrant:output_type -> caos.zitadel.management.api.v1.ProjectGrant - 131, // 364: caos.zitadel.management.api.v1.ManagementService.UpdateProjectGrant:output_type -> caos.zitadel.management.api.v1.ProjectGrant - 131, // 365: caos.zitadel.management.api.v1.ManagementService.DeactivateProjectGrant:output_type -> caos.zitadel.management.api.v1.ProjectGrant - 131, // 366: caos.zitadel.management.api.v1.ManagementService.ReactivateProjectGrant:output_type -> caos.zitadel.management.api.v1.ProjectGrant - 170, // 367: caos.zitadel.management.api.v1.ManagementService.RemoveProjectGrant:output_type -> google.protobuf.Empty - 140, // 368: caos.zitadel.management.api.v1.ManagementService.GetProjectGrantMemberRoles:output_type -> caos.zitadel.management.api.v1.ProjectGrantMemberRoles - 146, // 369: caos.zitadel.management.api.v1.ManagementService.SearchProjectGrantMembers:output_type -> caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse - 141, // 370: caos.zitadel.management.api.v1.ManagementService.AddProjectGrantMember:output_type -> caos.zitadel.management.api.v1.ProjectGrantMember - 141, // 371: caos.zitadel.management.api.v1.ManagementService.ChangeProjectGrantMember:output_type -> caos.zitadel.management.api.v1.ProjectGrantMember - 170, // 372: caos.zitadel.management.api.v1.ManagementService.RemoveProjectGrantMember:output_type -> google.protobuf.Empty - 162, // 373: caos.zitadel.management.api.v1.ManagementService.SearchUserGrants:output_type -> caos.zitadel.management.api.v1.UserGrantSearchResponse - 161, // 374: caos.zitadel.management.api.v1.ManagementService.UserGrantByID:output_type -> caos.zitadel.management.api.v1.UserGrantView - 149, // 375: caos.zitadel.management.api.v1.ManagementService.CreateUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 149, // 376: caos.zitadel.management.api.v1.ManagementService.UpdateUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 149, // 377: caos.zitadel.management.api.v1.ManagementService.DeactivateUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 149, // 378: caos.zitadel.management.api.v1.ManagementService.ReactivateUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 170, // 379: caos.zitadel.management.api.v1.ManagementService.RemoveUserGrant:output_type -> google.protobuf.Empty - 170, // 380: caos.zitadel.management.api.v1.ManagementService.BulkCreateUserGrant:output_type -> google.protobuf.Empty - 170, // 381: caos.zitadel.management.api.v1.ManagementService.BulkUpdateUserGrant:output_type -> google.protobuf.Empty - 170, // 382: caos.zitadel.management.api.v1.ManagementService.BulkRemoveUserGrant:output_type -> google.protobuf.Empty - 162, // 383: caos.zitadel.management.api.v1.ManagementService.SearchProjectUserGrants:output_type -> caos.zitadel.management.api.v1.UserGrantSearchResponse - 161, // 384: caos.zitadel.management.api.v1.ManagementService.ProjectUserGrantByID:output_type -> caos.zitadel.management.api.v1.UserGrantView - 149, // 385: caos.zitadel.management.api.v1.ManagementService.CreateProjectUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 149, // 386: caos.zitadel.management.api.v1.ManagementService.UpdateProjectUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 149, // 387: caos.zitadel.management.api.v1.ManagementService.DeactivateProjectUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 149, // 388: caos.zitadel.management.api.v1.ManagementService.ReactivateProjectUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 162, // 389: caos.zitadel.management.api.v1.ManagementService.SearchProjectGrantUserGrants:output_type -> caos.zitadel.management.api.v1.UserGrantSearchResponse - 161, // 390: caos.zitadel.management.api.v1.ManagementService.ProjectGrantUserGrantByID:output_type -> caos.zitadel.management.api.v1.UserGrantView - 149, // 391: caos.zitadel.management.api.v1.ManagementService.CreateProjectGrantUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 149, // 392: caos.zitadel.management.api.v1.ManagementService.UpdateProjectGrantUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 149, // 393: caos.zitadel.management.api.v1.ManagementService.DeactivateProjectGrantUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 149, // 394: caos.zitadel.management.api.v1.ManagementService.ReactivateProjectGrantUserGrant:output_type -> caos.zitadel.management.api.v1.UserGrant - 277, // [277:395] is the sub-list for method output_type - 159, // [159:277] is the sub-list for method input_type - 159, // [159:159] is the sub-list for extension type_name - 159, // [159:159] is the sub-list for extension extendee - 0, // [0:159] is the sub-list for field type_name -} - -func init() { file_management_proto_init() } -func file_management_proto_init() { - if File_management_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_management_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Iam); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Changes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Change); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplicationID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[6].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_management_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Email); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UniqueUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UniqueUserResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[11].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_management_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[16].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_management_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserProfileView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[18].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_management_proto_msgTypes[19].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_management_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserEmailView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[21].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_management_proto_msgTypes[22].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_management_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserPhoneView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[24].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_management_proto_msgTypes[25].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_management_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserAddressView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[27].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_management_proto_msgTypes[28].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_management_proto_msgTypes[29].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_management_proto_msgTypes[30].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_management_proto_msgTypes[31].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_management_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetPasswordRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetPasswordNotificationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordComplexityPolicyID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordComplexityPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordComplexityPolicyCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordComplexityPolicyUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordAgePolicyID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordAgePolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordAgePolicyCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordAgePolicyUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordLockoutPolicyID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordLockoutPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordLockoutPolicyCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordLockoutPolicyUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgIamPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[48].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_management_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Domain); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgDomains); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgDomain); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgDomainView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddOrgDomainRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveOrgDomainRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgDomainSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgDomainSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgDomainSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgMemberRoles); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgMember); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddOrgMemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeOrgMemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveOrgMemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgMemberSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgMemberView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgMemberSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgMemberSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Projects); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Project); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectMemberRoles); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectMember); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectMemberAdd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectMemberChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectMemberRemove); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRoleAdd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRoleAddBulk); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRoleChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRole); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRoleView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRoleRemove); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRoleSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRoleSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRoleSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectMemberView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectMemberSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectMemberSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectMemberSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Application); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplicationUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OIDCConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OIDCApplicationCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OIDCConfigUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClientSecret); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplicationView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplicationSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplicationSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplicationSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrant); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GrantedProjectSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantMemberRoles); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantMember); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantMemberAdd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantMemberChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantMemberRemove); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantMemberView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantMemberSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantMemberSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantMemberSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrant); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantCreateBulk); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantUpdateBulk); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantRemoveBulk); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectUserGrantID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectUserGrantUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantUserGrantID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantUserGrantCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantUserGrantUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectUserGrantSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_management_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectGrantUserGrantSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_management_proto_msgTypes[94].OneofWrappers = []interface{}{ - (*Application_OidcConfig)(nil), - } - file_management_proto_msgTypes[100].OneofWrappers = []interface{}{ - (*ApplicationView_OidcConfig)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_management_proto_rawDesc, - NumEnums: 27, - NumMessages: 140, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_management_proto_goTypes, - DependencyIndexes: file_management_proto_depIdxs, - EnumInfos: file_management_proto_enumTypes, - MessageInfos: file_management_proto_msgTypes, - }.Build() - File_management_proto = out.File - file_management_proto_rawDesc = nil - file_management_proto_goTypes = nil - file_management_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ManagementServiceClient is the client API for ManagementService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ManagementServiceClient interface { - //READINESS - Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - 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) - // GetIam returns some needed settings of the iam (Global Organisation ID, Zitadel Project ID) - GetIam(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Iam, error) - GetUserByID(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserView, error) - // GetUserByEmailGlobal returns User, global search is overall organisations - GetUserByEmailGlobal(ctx context.Context, in *Email, opts ...grpc.CallOption) (*UserView, error) - // Limit should always be set, there is a default limit set by the service - SearchUsers(ctx context.Context, in *UserSearchRequest, opts ...grpc.CallOption) (*UserSearchResponse, error) - IsUserUnique(ctx context.Context, in *UniqueUserRequest, opts ...grpc.CallOption) (*UniqueUserResponse, error) - CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) - DeactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) - ReactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) - LockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) - UnlockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) - DeleteUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) - // UserChanges returns the event stream of the user object - UserChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) - // ApplicationChanges returns the event stream of the application object - ApplicationChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) - // OrgChanges returns the event stream of the org object - OrgChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) - // ProjectChanges returns the event stream of the project object - ProjectChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) - GetUserProfile(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserProfileView, error) - UpdateUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UserProfile, error) - GetUserEmail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserEmailView, error) - ChangeUserEmail(ctx context.Context, in *UpdateUserEmailRequest, opts ...grpc.CallOption) (*UserEmail, error) - ResendEmailVerificationMail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) - GetUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserPhoneView, error) - ChangeUserPhone(ctx context.Context, in *UpdateUserPhoneRequest, opts ...grpc.CallOption) (*UserPhone, error) - RemoveUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) - ResendPhoneVerificationCode(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) - GetUserAddress(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserAddressView, error) - UpdateUserAddress(ctx context.Context, in *UpdateUserAddressRequest, opts ...grpc.CallOption) (*UserAddress, error) - GetUserMfas(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*MultiFactors, error) - // Sends an Notification (Email/SMS) with a password reset Link - SendSetPasswordNotification(ctx context.Context, in *SetPasswordNotificationRequest, opts ...grpc.CallOption) (*empty.Empty, error) - // A Manager is only allowed to set an initial password, on the next login the user has to change his password - SetInitialPassword(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) - // returns default policy if nothing other set on organisation - GetPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) - CreatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyCreate, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) - UpdatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyUpdate, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) - DeletePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) - // returns default if nothing other set on organisation - GetPasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordAgePolicy, error) - CreatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyCreate, opts ...grpc.CallOption) (*PasswordAgePolicy, error) - UpdatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyUpdate, opts ...grpc.CallOption) (*PasswordAgePolicy, error) - DeletePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyID, opts ...grpc.CallOption) (*empty.Empty, error) - // returns default if nothing other set on organisation - GetPasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) - CreatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyCreate, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) - UpdatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyUpdate, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) - DeletePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) - GetMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgView, error) - // search a organisation by its domain overall organisations - GetOrgByDomainGlobal(ctx context.Context, in *Domain, opts ...grpc.CallOption) (*OrgView, error) - DeactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) - ReactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) - SearchMyOrgDomains(ctx context.Context, in *OrgDomainSearchRequest, opts ...grpc.CallOption) (*OrgDomainSearchResponse, error) - AddMyOrgDomain(ctx context.Context, in *AddOrgDomainRequest, opts ...grpc.CallOption) (*OrgDomain, error) - RemoveMyOrgDomain(ctx context.Context, in *RemoveOrgDomainRequest, opts ...grpc.CallOption) (*empty.Empty, error) - GetMyOrgIamPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgIamPolicy, error) - GetOrgMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgMemberRoles, error) - AddMyOrgMember(ctx context.Context, in *AddOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) - ChangeMyOrgMember(ctx context.Context, in *ChangeOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) - RemoveMyOrgMember(ctx context.Context, in *RemoveOrgMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) - SearchMyOrgMembers(ctx context.Context, in *OrgMemberSearchRequest, opts ...grpc.CallOption) (*OrgMemberSearchResponse, error) - SearchProjects(ctx context.Context, in *ProjectSearchRequest, opts ...grpc.CallOption) (*ProjectSearchResponse, error) - ProjectByID(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*ProjectView, error) - CreateProject(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*Project, error) - UpdateProject(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*Project, error) - DeactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) - ReactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) - // returns all projects my organisation got granted from another organisation - SearchGrantedProjects(ctx context.Context, in *GrantedProjectSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) - // returns a project my organisation got granted from another organisation - GetGrantedProjectByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) - GetProjectMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectMemberRoles, error) - SearchProjectMembers(ctx context.Context, in *ProjectMemberSearchRequest, opts ...grpc.CallOption) (*ProjectMemberSearchResponse, error) - AddProjectMember(ctx context.Context, in *ProjectMemberAdd, opts ...grpc.CallOption) (*ProjectMember, error) - ChangeProjectMember(ctx context.Context, in *ProjectMemberChange, opts ...grpc.CallOption) (*ProjectMember, error) - RemoveProjectMember(ctx context.Context, in *ProjectMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) - SearchProjectRoles(ctx context.Context, in *ProjectRoleSearchRequest, opts ...grpc.CallOption) (*ProjectRoleSearchResponse, error) - AddProjectRole(ctx context.Context, in *ProjectRoleAdd, opts ...grpc.CallOption) (*ProjectRole, error) - // add a list of project roles in one request - BulkAddProjectRole(ctx context.Context, in *ProjectRoleAddBulk, opts ...grpc.CallOption) (*empty.Empty, error) - ChangeProjectRole(ctx context.Context, in *ProjectRoleChange, opts ...grpc.CallOption) (*ProjectRole, error) - // RemoveProjectRole removes role from UserGrants, ProjectGrants and from Project - RemoveProjectRole(ctx context.Context, in *ProjectRoleRemove, opts ...grpc.CallOption) (*empty.Empty, error) - SearchApplications(ctx context.Context, in *ApplicationSearchRequest, opts ...grpc.CallOption) (*ApplicationSearchResponse, error) - ApplicationByID(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ApplicationView, error) - CreateOIDCApplication(ctx context.Context, in *OIDCApplicationCreate, opts ...grpc.CallOption) (*Application, error) - UpdateApplication(ctx context.Context, in *ApplicationUpdate, opts ...grpc.CallOption) (*Application, error) - DeactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) - ReactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) - RemoveApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*empty.Empty, error) - UpdateApplicationOIDCConfig(ctx context.Context, in *OIDCConfigUpdate, opts ...grpc.CallOption) (*OIDCConfig, error) - RegenerateOIDCClientSecret(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ClientSecret, error) - SearchProjectGrants(ctx context.Context, in *ProjectGrantSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) - ProjectGrantByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) - CreateProjectGrant(ctx context.Context, in *ProjectGrantCreate, opts ...grpc.CallOption) (*ProjectGrant, error) - UpdateProjectGrant(ctx context.Context, in *ProjectGrantUpdate, opts ...grpc.CallOption) (*ProjectGrant, error) - DeactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) - ReactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) - // RemoveProjectGrant removes project grant and all user grants for this project grant - RemoveProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*empty.Empty, error) - GetProjectGrantMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectGrantMemberRoles, error) - SearchProjectGrantMembers(ctx context.Context, in *ProjectGrantMemberSearchRequest, opts ...grpc.CallOption) (*ProjectGrantMemberSearchResponse, error) - AddProjectGrantMember(ctx context.Context, in *ProjectGrantMemberAdd, opts ...grpc.CallOption) (*ProjectGrantMember, error) - ChangeProjectGrantMember(ctx context.Context, in *ProjectGrantMemberChange, opts ...grpc.CallOption) (*ProjectGrantMember, error) - RemoveProjectGrantMember(ctx context.Context, in *ProjectGrantMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) - SearchUserGrants(ctx context.Context, in *UserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) - UserGrantByID(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) - CreateUserGrant(ctx context.Context, in *UserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) - UpdateUserGrant(ctx context.Context, in *UserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) - DeactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) - ReactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) - RemoveUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*empty.Empty, error) - // add a list of user grants in one request - BulkCreateUserGrant(ctx context.Context, in *UserGrantCreateBulk, opts ...grpc.CallOption) (*empty.Empty, error) - // update a list of user grants in one request - BulkUpdateUserGrant(ctx context.Context, in *UserGrantUpdateBulk, opts ...grpc.CallOption) (*empty.Empty, error) - // remove a list of user grants in one request - BulkRemoveUserGrant(ctx context.Context, in *UserGrantRemoveBulk, opts ...grpc.CallOption) (*empty.Empty, error) - // search user grants based on a project - // This request is required that the user authorizations of zitadel can be differentiated - SearchProjectUserGrants(ctx context.Context, in *ProjectUserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) - // get user grant based on a project - // This request is required that the user authorizations of zitadel can be differentiated - ProjectUserGrantByID(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) - // create user grant based on a project - // This request is required that the user authorizations of zitadel can be differentiated - CreateProjectUserGrant(ctx context.Context, in *UserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) - // update user grant based on a project - // This request is required that the user authorizations of zitadel can be differentiated - UpdateProjectUserGrant(ctx context.Context, in *ProjectUserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) - // deactivate user grant based on a project - // This request is required that the user authorizations of zitadel can be differentiated - DeactivateProjectUserGrant(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) - // reactivate user grant based on a project - // This request is required that the user authorizations of zitadel can be differentiated - ReactivateProjectUserGrant(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) - // search user grants based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - SearchProjectGrantUserGrants(ctx context.Context, in *ProjectGrantUserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) - // get user grant based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - ProjectGrantUserGrantByID(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) - // create user grant based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - CreateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) - // update user grant based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - UpdateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) - // deactivate user grant based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - DeactivateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) - // reactivate user grant based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - ReactivateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) -} - -type managementServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewManagementServiceClient(cc grpc.ClientConnInterface) ManagementServiceClient { - return &managementServiceClient{cc} -} - -func (c *managementServiceClient) Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/Healthz", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/Ready", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) { - out := new(_struct.Struct) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/Validate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetIam(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Iam, error) { - out := new(Iam) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetIam", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserByID(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserView, error) { - out := new(UserView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserByEmailGlobal(ctx context.Context, in *Email, opts ...grpc.CallOption) (*UserView, error) { - out := new(UserView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserByEmailGlobal", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchUsers(ctx context.Context, in *UserSearchRequest, opts ...grpc.CallOption) (*UserSearchResponse, error) { - out := new(UserSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchUsers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) IsUserUnique(ctx context.Context, in *UniqueUserRequest, opts ...grpc.CallOption) (*UniqueUserResponse, error) { - out := new(UniqueUserResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/IsUserUnique", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) LockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/LockUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UnlockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UnlockUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeleteUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeleteUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UserChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { - out := new(Changes) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UserChanges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ApplicationChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { - out := new(Changes) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) OrgChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { - out := new(Changes) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/OrgChanges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ProjectChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { - out := new(Changes) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectChanges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserProfile(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserProfileView, error) { - out := new(UserProfileView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserProfile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UserProfile, error) { - out := new(UserProfile) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserEmail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserEmailView, error) { - out := new(UserEmailView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserEmail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeUserEmail(ctx context.Context, in *UpdateUserEmailRequest, opts ...grpc.CallOption) (*UserEmail, error) { - out := new(UserEmail) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ResendEmailVerificationMail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserPhoneView, error) { - out := new(UserPhoneView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeUserPhone(ctx context.Context, in *UpdateUserPhoneRequest, opts ...grpc.CallOption) (*UserPhone, error) { - out := new(UserPhone) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ResendPhoneVerificationCode(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserAddress(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserAddressView, error) { - out := new(UserAddressView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateUserAddress(ctx context.Context, in *UpdateUserAddressRequest, opts ...grpc.CallOption) (*UserAddress, error) { - out := new(UserAddress) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserMfas(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*MultiFactors, error) { - out := new(MultiFactors) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserMfas", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SendSetPasswordNotification(ctx context.Context, in *SetPasswordNotificationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SetInitialPassword(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) { - out := new(PasswordComplexityPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyCreate, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) { - out := new(PasswordComplexityPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyUpdate, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) { - out := new(PasswordComplexityPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeletePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetPasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordAgePolicy, error) { - out := new(PasswordAgePolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyCreate, opts ...grpc.CallOption) (*PasswordAgePolicy, error) { - out := new(PasswordAgePolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyUpdate, opts ...grpc.CallOption) (*PasswordAgePolicy, error) { - out := new(PasswordAgePolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeletePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetPasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) { - out := new(PasswordLockoutPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyCreate, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) { - out := new(PasswordLockoutPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyUpdate, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) { - out := new(PasswordLockoutPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeletePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgView, error) { - out := new(OrgView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetMyOrg", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetOrgByDomainGlobal(ctx context.Context, in *Domain, opts ...grpc.CallOption) (*OrgView, error) { - out := new(OrgView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) { - out := new(Org) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) { - out := new(Org) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchMyOrgDomains(ctx context.Context, in *OrgDomainSearchRequest, opts ...grpc.CallOption) (*OrgDomainSearchResponse, error) { - out := new(OrgDomainSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddMyOrgDomain(ctx context.Context, in *AddOrgDomainRequest, opts ...grpc.CallOption) (*OrgDomain, error) { - out := new(OrgDomain) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveMyOrgDomain(ctx context.Context, in *RemoveOrgDomainRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetMyOrgIamPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgIamPolicy, error) { - out := new(OrgIamPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetOrgMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgMemberRoles, error) { - out := new(OrgMemberRoles) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddMyOrgMember(ctx context.Context, in *AddOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) { - out := new(OrgMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeMyOrgMember(ctx context.Context, in *ChangeOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) { - out := new(OrgMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveMyOrgMember(ctx context.Context, in *RemoveOrgMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchMyOrgMembers(ctx context.Context, in *OrgMemberSearchRequest, opts ...grpc.CallOption) (*OrgMemberSearchResponse, error) { - out := new(OrgMemberSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjects(ctx context.Context, in *ProjectSearchRequest, opts ...grpc.CallOption) (*ProjectSearchResponse, error) { - out := new(ProjectSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjects", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ProjectByID(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*ProjectView, error) { - out := new(ProjectView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateProject(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*Project, error) { - out := new(Project) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateProject(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*Project, error) { - out := new(Project) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) { - out := new(Project) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) { - out := new(Project) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchGrantedProjects(ctx context.Context, in *GrantedProjectSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) { - out := new(ProjectGrantSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetGrantedProjectByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) { - out := new(ProjectGrantView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetProjectMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectMemberRoles, error) { - out := new(ProjectMemberRoles) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjectMembers(ctx context.Context, in *ProjectMemberSearchRequest, opts ...grpc.CallOption) (*ProjectMemberSearchResponse, error) { - out := new(ProjectMemberSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddProjectMember(ctx context.Context, in *ProjectMemberAdd, opts ...grpc.CallOption) (*ProjectMember, error) { - out := new(ProjectMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddProjectMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeProjectMember(ctx context.Context, in *ProjectMemberChange, opts ...grpc.CallOption) (*ProjectMember, error) { - out := new(ProjectMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveProjectMember(ctx context.Context, in *ProjectMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjectRoles(ctx context.Context, in *ProjectRoleSearchRequest, opts ...grpc.CallOption) (*ProjectRoleSearchResponse, error) { - out := new(ProjectRoleSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddProjectRole(ctx context.Context, in *ProjectRoleAdd, opts ...grpc.CallOption) (*ProjectRole, error) { - out := new(ProjectRole) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddProjectRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) BulkAddProjectRole(ctx context.Context, in *ProjectRoleAddBulk, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeProjectRole(ctx context.Context, in *ProjectRoleChange, opts ...grpc.CallOption) (*ProjectRole, error) { - out := new(ProjectRole) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveProjectRole(ctx context.Context, in *ProjectRoleRemove, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchApplications(ctx context.Context, in *ApplicationSearchRequest, opts ...grpc.CallOption) (*ApplicationSearchResponse, error) { - out := new(ApplicationSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchApplications", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ApplicationByID(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ApplicationView, error) { - out := new(ApplicationView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ApplicationByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateOIDCApplication(ctx context.Context, in *OIDCApplicationCreate, opts ...grpc.CallOption) (*Application, error) { - out := new(Application) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateApplication(ctx context.Context, in *ApplicationUpdate, opts ...grpc.CallOption) (*Application, error) { - out := new(Application) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) { - out := new(Application) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) { - out := new(Application) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateApplicationOIDCConfig(ctx context.Context, in *OIDCConfigUpdate, opts ...grpc.CallOption) (*OIDCConfig, error) { - out := new(OIDCConfig) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RegenerateOIDCClientSecret(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ClientSecret, error) { - out := new(ClientSecret) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjectGrants(ctx context.Context, in *ProjectGrantSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) { - out := new(ProjectGrantSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ProjectGrantByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) { - out := new(ProjectGrantView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateProjectGrant(ctx context.Context, in *ProjectGrantCreate, opts ...grpc.CallOption) (*ProjectGrant, error) { - out := new(ProjectGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateProjectGrant(ctx context.Context, in *ProjectGrantUpdate, opts ...grpc.CallOption) (*ProjectGrant, error) { - out := new(ProjectGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) { - out := new(ProjectGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) { - out := new(ProjectGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetProjectGrantMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectGrantMemberRoles, error) { - out := new(ProjectGrantMemberRoles) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjectGrantMembers(ctx context.Context, in *ProjectGrantMemberSearchRequest, opts ...grpc.CallOption) (*ProjectGrantMemberSearchResponse, error) { - out := new(ProjectGrantMemberSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddProjectGrantMember(ctx context.Context, in *ProjectGrantMemberAdd, opts ...grpc.CallOption) (*ProjectGrantMember, error) { - out := new(ProjectGrantMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeProjectGrantMember(ctx context.Context, in *ProjectGrantMemberChange, opts ...grpc.CallOption) (*ProjectGrantMember, error) { - out := new(ProjectGrantMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveProjectGrantMember(ctx context.Context, in *ProjectGrantMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchUserGrants(ctx context.Context, in *UserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) { - out := new(UserGrantSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UserGrantByID(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) { - out := new(UserGrantView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UserGrantByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateUserGrant(ctx context.Context, in *UserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateUserGrant(ctx context.Context, in *UserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) BulkCreateUserGrant(ctx context.Context, in *UserGrantCreateBulk, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/BulkCreateUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) BulkUpdateUserGrant(ctx context.Context, in *UserGrantUpdateBulk, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/BulkUpdateUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) BulkRemoveUserGrant(ctx context.Context, in *UserGrantRemoveBulk, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjectUserGrants(ctx context.Context, in *ProjectUserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) { - out := new(UserGrantSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectUserGrants", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ProjectUserGrantByID(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) { - out := new(UserGrantView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectUserGrantByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateProjectUserGrant(ctx context.Context, in *UserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateProjectUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateProjectUserGrant(ctx context.Context, in *ProjectUserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateProjectUserGrant(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateProjectUserGrant(ctx context.Context, in *ProjectUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjectGrantUserGrants(ctx context.Context, in *ProjectGrantUserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) { - out := new(UserGrantSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantUserGrants", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ProjectGrantUserGrantByID(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) { - out := new(UserGrantView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantUserGrantByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrantUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrantUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrantUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateProjectGrantUserGrant(ctx context.Context, in *ProjectGrantUserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrantUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ManagementServiceServer is the server API for ManagementService service. -type ManagementServiceServer interface { - //READINESS - Healthz(context.Context, *empty.Empty) (*empty.Empty, error) - Ready(context.Context, *empty.Empty) (*empty.Empty, error) - Validate(context.Context, *empty.Empty) (*_struct.Struct, error) - // GetIam returns some needed settings of the iam (Global Organisation ID, Zitadel Project ID) - GetIam(context.Context, *empty.Empty) (*Iam, error) - GetUserByID(context.Context, *UserID) (*UserView, error) - // GetUserByEmailGlobal returns User, global search is overall organisations - GetUserByEmailGlobal(context.Context, *Email) (*UserView, error) - // Limit should always be set, there is a default limit set by the service - SearchUsers(context.Context, *UserSearchRequest) (*UserSearchResponse, error) - IsUserUnique(context.Context, *UniqueUserRequest) (*UniqueUserResponse, error) - CreateUser(context.Context, *CreateUserRequest) (*User, error) - DeactivateUser(context.Context, *UserID) (*User, error) - ReactivateUser(context.Context, *UserID) (*User, error) - LockUser(context.Context, *UserID) (*User, error) - UnlockUser(context.Context, *UserID) (*User, error) - DeleteUser(context.Context, *UserID) (*empty.Empty, error) - // UserChanges returns the event stream of the user object - UserChanges(context.Context, *ChangeRequest) (*Changes, error) - // ApplicationChanges returns the event stream of the application object - ApplicationChanges(context.Context, *ChangeRequest) (*Changes, error) - // OrgChanges returns the event stream of the org object - OrgChanges(context.Context, *ChangeRequest) (*Changes, error) - // ProjectChanges returns the event stream of the project object - ProjectChanges(context.Context, *ChangeRequest) (*Changes, error) - GetUserProfile(context.Context, *UserID) (*UserProfileView, error) - UpdateUserProfile(context.Context, *UpdateUserProfileRequest) (*UserProfile, error) - GetUserEmail(context.Context, *UserID) (*UserEmailView, error) - ChangeUserEmail(context.Context, *UpdateUserEmailRequest) (*UserEmail, error) - ResendEmailVerificationMail(context.Context, *UserID) (*empty.Empty, error) - GetUserPhone(context.Context, *UserID) (*UserPhoneView, error) - ChangeUserPhone(context.Context, *UpdateUserPhoneRequest) (*UserPhone, error) - RemoveUserPhone(context.Context, *UserID) (*empty.Empty, error) - ResendPhoneVerificationCode(context.Context, *UserID) (*empty.Empty, error) - GetUserAddress(context.Context, *UserID) (*UserAddressView, error) - UpdateUserAddress(context.Context, *UpdateUserAddressRequest) (*UserAddress, error) - GetUserMfas(context.Context, *UserID) (*MultiFactors, error) - // Sends an Notification (Email/SMS) with a password reset Link - SendSetPasswordNotification(context.Context, *SetPasswordNotificationRequest) (*empty.Empty, error) - // A Manager is only allowed to set an initial password, on the next login the user has to change his password - SetInitialPassword(context.Context, *PasswordRequest) (*empty.Empty, error) - // returns default policy if nothing other set on organisation - GetPasswordComplexityPolicy(context.Context, *empty.Empty) (*PasswordComplexityPolicy, error) - CreatePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyCreate) (*PasswordComplexityPolicy, error) - UpdatePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyUpdate) (*PasswordComplexityPolicy, error) - DeletePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyID) (*empty.Empty, error) - // returns default if nothing other set on organisation - GetPasswordAgePolicy(context.Context, *empty.Empty) (*PasswordAgePolicy, error) - CreatePasswordAgePolicy(context.Context, *PasswordAgePolicyCreate) (*PasswordAgePolicy, error) - UpdatePasswordAgePolicy(context.Context, *PasswordAgePolicyUpdate) (*PasswordAgePolicy, error) - DeletePasswordAgePolicy(context.Context, *PasswordAgePolicyID) (*empty.Empty, error) - // returns default if nothing other set on organisation - GetPasswordLockoutPolicy(context.Context, *empty.Empty) (*PasswordLockoutPolicy, error) - CreatePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyCreate) (*PasswordLockoutPolicy, error) - UpdatePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyUpdate) (*PasswordLockoutPolicy, error) - DeletePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyID) (*empty.Empty, error) - GetMyOrg(context.Context, *empty.Empty) (*OrgView, error) - // search a organisation by its domain overall organisations - GetOrgByDomainGlobal(context.Context, *Domain) (*OrgView, error) - DeactivateMyOrg(context.Context, *empty.Empty) (*Org, error) - ReactivateMyOrg(context.Context, *empty.Empty) (*Org, error) - SearchMyOrgDomains(context.Context, *OrgDomainSearchRequest) (*OrgDomainSearchResponse, error) - AddMyOrgDomain(context.Context, *AddOrgDomainRequest) (*OrgDomain, error) - RemoveMyOrgDomain(context.Context, *RemoveOrgDomainRequest) (*empty.Empty, error) - GetMyOrgIamPolicy(context.Context, *empty.Empty) (*OrgIamPolicy, error) - GetOrgMemberRoles(context.Context, *empty.Empty) (*OrgMemberRoles, error) - AddMyOrgMember(context.Context, *AddOrgMemberRequest) (*OrgMember, error) - ChangeMyOrgMember(context.Context, *ChangeOrgMemberRequest) (*OrgMember, error) - RemoveMyOrgMember(context.Context, *RemoveOrgMemberRequest) (*empty.Empty, error) - SearchMyOrgMembers(context.Context, *OrgMemberSearchRequest) (*OrgMemberSearchResponse, error) - SearchProjects(context.Context, *ProjectSearchRequest) (*ProjectSearchResponse, error) - ProjectByID(context.Context, *ProjectID) (*ProjectView, error) - CreateProject(context.Context, *ProjectCreateRequest) (*Project, error) - UpdateProject(context.Context, *ProjectUpdateRequest) (*Project, error) - DeactivateProject(context.Context, *ProjectID) (*Project, error) - ReactivateProject(context.Context, *ProjectID) (*Project, error) - // returns all projects my organisation got granted from another organisation - SearchGrantedProjects(context.Context, *GrantedProjectSearchRequest) (*ProjectGrantSearchResponse, error) - // returns a project my organisation got granted from another organisation - GetGrantedProjectByID(context.Context, *ProjectGrantID) (*ProjectGrantView, error) - GetProjectMemberRoles(context.Context, *empty.Empty) (*ProjectMemberRoles, error) - SearchProjectMembers(context.Context, *ProjectMemberSearchRequest) (*ProjectMemberSearchResponse, error) - AddProjectMember(context.Context, *ProjectMemberAdd) (*ProjectMember, error) - ChangeProjectMember(context.Context, *ProjectMemberChange) (*ProjectMember, error) - RemoveProjectMember(context.Context, *ProjectMemberRemove) (*empty.Empty, error) - SearchProjectRoles(context.Context, *ProjectRoleSearchRequest) (*ProjectRoleSearchResponse, error) - AddProjectRole(context.Context, *ProjectRoleAdd) (*ProjectRole, error) - // add a list of project roles in one request - BulkAddProjectRole(context.Context, *ProjectRoleAddBulk) (*empty.Empty, error) - ChangeProjectRole(context.Context, *ProjectRoleChange) (*ProjectRole, error) - // RemoveProjectRole removes role from UserGrants, ProjectGrants and from Project - RemoveProjectRole(context.Context, *ProjectRoleRemove) (*empty.Empty, error) - SearchApplications(context.Context, *ApplicationSearchRequest) (*ApplicationSearchResponse, error) - ApplicationByID(context.Context, *ApplicationID) (*ApplicationView, error) - CreateOIDCApplication(context.Context, *OIDCApplicationCreate) (*Application, error) - UpdateApplication(context.Context, *ApplicationUpdate) (*Application, error) - DeactivateApplication(context.Context, *ApplicationID) (*Application, error) - ReactivateApplication(context.Context, *ApplicationID) (*Application, error) - RemoveApplication(context.Context, *ApplicationID) (*empty.Empty, error) - UpdateApplicationOIDCConfig(context.Context, *OIDCConfigUpdate) (*OIDCConfig, error) - RegenerateOIDCClientSecret(context.Context, *ApplicationID) (*ClientSecret, error) - SearchProjectGrants(context.Context, *ProjectGrantSearchRequest) (*ProjectGrantSearchResponse, error) - ProjectGrantByID(context.Context, *ProjectGrantID) (*ProjectGrantView, error) - CreateProjectGrant(context.Context, *ProjectGrantCreate) (*ProjectGrant, error) - UpdateProjectGrant(context.Context, *ProjectGrantUpdate) (*ProjectGrant, error) - DeactivateProjectGrant(context.Context, *ProjectGrantID) (*ProjectGrant, error) - ReactivateProjectGrant(context.Context, *ProjectGrantID) (*ProjectGrant, error) - // RemoveProjectGrant removes project grant and all user grants for this project grant - RemoveProjectGrant(context.Context, *ProjectGrantID) (*empty.Empty, error) - GetProjectGrantMemberRoles(context.Context, *empty.Empty) (*ProjectGrantMemberRoles, error) - SearchProjectGrantMembers(context.Context, *ProjectGrantMemberSearchRequest) (*ProjectGrantMemberSearchResponse, error) - AddProjectGrantMember(context.Context, *ProjectGrantMemberAdd) (*ProjectGrantMember, error) - ChangeProjectGrantMember(context.Context, *ProjectGrantMemberChange) (*ProjectGrantMember, error) - RemoveProjectGrantMember(context.Context, *ProjectGrantMemberRemove) (*empty.Empty, error) - SearchUserGrants(context.Context, *UserGrantSearchRequest) (*UserGrantSearchResponse, error) - UserGrantByID(context.Context, *UserGrantID) (*UserGrantView, error) - CreateUserGrant(context.Context, *UserGrantCreate) (*UserGrant, error) - UpdateUserGrant(context.Context, *UserGrantUpdate) (*UserGrant, error) - DeactivateUserGrant(context.Context, *UserGrantID) (*UserGrant, error) - ReactivateUserGrant(context.Context, *UserGrantID) (*UserGrant, error) - RemoveUserGrant(context.Context, *UserGrantID) (*empty.Empty, error) - // add a list of user grants in one request - BulkCreateUserGrant(context.Context, *UserGrantCreateBulk) (*empty.Empty, error) - // update a list of user grants in one request - BulkUpdateUserGrant(context.Context, *UserGrantUpdateBulk) (*empty.Empty, error) - // remove a list of user grants in one request - BulkRemoveUserGrant(context.Context, *UserGrantRemoveBulk) (*empty.Empty, error) - // search user grants based on a project - // This request is required that the user authorizations of zitadel can be differentiated - SearchProjectUserGrants(context.Context, *ProjectUserGrantSearchRequest) (*UserGrantSearchResponse, error) - // get user grant based on a project - // This request is required that the user authorizations of zitadel can be differentiated - ProjectUserGrantByID(context.Context, *ProjectUserGrantID) (*UserGrantView, error) - // create user grant based on a project - // This request is required that the user authorizations of zitadel can be differentiated - CreateProjectUserGrant(context.Context, *UserGrantCreate) (*UserGrant, error) - // update user grant based on a project - // This request is required that the user authorizations of zitadel can be differentiated - UpdateProjectUserGrant(context.Context, *ProjectUserGrantUpdate) (*UserGrant, error) - // deactivate user grant based on a project - // This request is required that the user authorizations of zitadel can be differentiated - DeactivateProjectUserGrant(context.Context, *ProjectUserGrantID) (*UserGrant, error) - // reactivate user grant based on a project - // This request is required that the user authorizations of zitadel can be differentiated - ReactivateProjectUserGrant(context.Context, *ProjectUserGrantID) (*UserGrant, error) - // search user grants based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - SearchProjectGrantUserGrants(context.Context, *ProjectGrantUserGrantSearchRequest) (*UserGrantSearchResponse, error) - // get user grant based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - ProjectGrantUserGrantByID(context.Context, *ProjectGrantUserGrantID) (*UserGrantView, error) - // create user grant based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - CreateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantCreate) (*UserGrant, error) - // update user grant based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - UpdateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantUpdate) (*UserGrant, error) - // deactivate user grant based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - DeactivateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantID) (*UserGrant, error) - // reactivate user grant based on a projectgrant - // This request is required that the user authorizations of zitadel can be differentiated - ReactivateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantID) (*UserGrant, error) -} - -// UnimplementedManagementServiceServer can be embedded to have forward compatible implementations. -type UnimplementedManagementServiceServer struct { -} - -func (*UnimplementedManagementServiceServer) Healthz(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Healthz not implemented") -} -func (*UnimplementedManagementServiceServer) Ready(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ready not implemented") -} -func (*UnimplementedManagementServiceServer) Validate(context.Context, *empty.Empty) (*_struct.Struct, error) { - return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented") -} -func (*UnimplementedManagementServiceServer) GetIam(context.Context, *empty.Empty) (*Iam, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetIam not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserByID(context.Context, *UserID) (*UserView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserByID not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserByEmailGlobal(context.Context, *Email) (*UserView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserByEmailGlobal not implemented") -} -func (*UnimplementedManagementServiceServer) SearchUsers(context.Context, *UserSearchRequest) (*UserSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchUsers not implemented") -} -func (*UnimplementedManagementServiceServer) IsUserUnique(context.Context, *UniqueUserRequest) (*UniqueUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsUserUnique not implemented") -} -func (*UnimplementedManagementServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateUser(context.Context, *UserID) (*User, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateUser not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateUser(context.Context, *UserID) (*User, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateUser not implemented") -} -func (*UnimplementedManagementServiceServer) LockUser(context.Context, *UserID) (*User, error) { - return nil, status.Errorf(codes.Unimplemented, "method LockUser not implemented") -} -func (*UnimplementedManagementServiceServer) UnlockUser(context.Context, *UserID) (*User, error) { - return nil, status.Errorf(codes.Unimplemented, "method UnlockUser not implemented") -} -func (*UnimplementedManagementServiceServer) DeleteUser(context.Context, *UserID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteUser not implemented") -} -func (*UnimplementedManagementServiceServer) UserChanges(context.Context, *ChangeRequest) (*Changes, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserChanges not implemented") -} -func (*UnimplementedManagementServiceServer) ApplicationChanges(context.Context, *ChangeRequest) (*Changes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplicationChanges not implemented") -} -func (*UnimplementedManagementServiceServer) OrgChanges(context.Context, *ChangeRequest) (*Changes, error) { - return nil, status.Errorf(codes.Unimplemented, "method OrgChanges not implemented") -} -func (*UnimplementedManagementServiceServer) ProjectChanges(context.Context, *ChangeRequest) (*Changes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProjectChanges not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserProfile(context.Context, *UserID) (*UserProfileView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserProfile not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateUserProfile(context.Context, *UpdateUserProfileRequest) (*UserProfile, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserProfile not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserEmail(context.Context, *UserID) (*UserEmailView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserEmail not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeUserEmail(context.Context, *UpdateUserEmailRequest) (*UserEmail, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeUserEmail not implemented") -} -func (*UnimplementedManagementServiceServer) ResendEmailVerificationMail(context.Context, *UserID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResendEmailVerificationMail not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserPhone(context.Context, *UserID) (*UserPhoneView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserPhone not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeUserPhone(context.Context, *UpdateUserPhoneRequest) (*UserPhone, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeUserPhone not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveUserPhone(context.Context, *UserID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveUserPhone not implemented") -} -func (*UnimplementedManagementServiceServer) ResendPhoneVerificationCode(context.Context, *UserID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResendPhoneVerificationCode not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserAddress(context.Context, *UserID) (*UserAddressView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserAddress not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateUserAddress(context.Context, *UpdateUserAddressRequest) (*UserAddress, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserAddress not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserMfas(context.Context, *UserID) (*MultiFactors, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserMfas not implemented") -} -func (*UnimplementedManagementServiceServer) SendSetPasswordNotification(context.Context, *SetPasswordNotificationRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendSetPasswordNotification not implemented") -} -func (*UnimplementedManagementServiceServer) SetInitialPassword(context.Context, *PasswordRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetInitialPassword not implemented") -} -func (*UnimplementedManagementServiceServer) GetPasswordComplexityPolicy(context.Context, *empty.Empty) (*PasswordComplexityPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPasswordComplexityPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) CreatePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyCreate) (*PasswordComplexityPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordComplexityPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) UpdatePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyUpdate) (*PasswordComplexityPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePasswordComplexityPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) DeletePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeletePasswordComplexityPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetPasswordAgePolicy(context.Context, *empty.Empty) (*PasswordAgePolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPasswordAgePolicy not implemented") -} -func (*UnimplementedManagementServiceServer) CreatePasswordAgePolicy(context.Context, *PasswordAgePolicyCreate) (*PasswordAgePolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordAgePolicy not implemented") -} -func (*UnimplementedManagementServiceServer) UpdatePasswordAgePolicy(context.Context, *PasswordAgePolicyUpdate) (*PasswordAgePolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePasswordAgePolicy not implemented") -} -func (*UnimplementedManagementServiceServer) DeletePasswordAgePolicy(context.Context, *PasswordAgePolicyID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeletePasswordAgePolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetPasswordLockoutPolicy(context.Context, *empty.Empty) (*PasswordLockoutPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPasswordLockoutPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) CreatePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyCreate) (*PasswordLockoutPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordLockoutPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) UpdatePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyUpdate) (*PasswordLockoutPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePasswordLockoutPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) DeletePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeletePasswordLockoutPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetMyOrg(context.Context, *empty.Empty) (*OrgView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyOrg not implemented") -} -func (*UnimplementedManagementServiceServer) GetOrgByDomainGlobal(context.Context, *Domain) (*OrgView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrgByDomainGlobal not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateMyOrg(context.Context, *empty.Empty) (*Org, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateMyOrg not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateMyOrg(context.Context, *empty.Empty) (*Org, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateMyOrg not implemented") -} -func (*UnimplementedManagementServiceServer) SearchMyOrgDomains(context.Context, *OrgDomainSearchRequest) (*OrgDomainSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchMyOrgDomains not implemented") -} -func (*UnimplementedManagementServiceServer) AddMyOrgDomain(context.Context, *AddOrgDomainRequest) (*OrgDomain, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddMyOrgDomain not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveMyOrgDomain(context.Context, *RemoveOrgDomainRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMyOrgDomain not implemented") -} -func (*UnimplementedManagementServiceServer) GetMyOrgIamPolicy(context.Context, *empty.Empty) (*OrgIamPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyOrgIamPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetOrgMemberRoles(context.Context, *empty.Empty) (*OrgMemberRoles, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrgMemberRoles not implemented") -} -func (*UnimplementedManagementServiceServer) AddMyOrgMember(context.Context, *AddOrgMemberRequest) (*OrgMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddMyOrgMember not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeMyOrgMember(context.Context, *ChangeOrgMemberRequest) (*OrgMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeMyOrgMember not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveMyOrgMember(context.Context, *RemoveOrgMemberRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMyOrgMember not implemented") -} -func (*UnimplementedManagementServiceServer) SearchMyOrgMembers(context.Context, *OrgMemberSearchRequest) (*OrgMemberSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchMyOrgMembers not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjects(context.Context, *ProjectSearchRequest) (*ProjectSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjects not implemented") -} -func (*UnimplementedManagementServiceServer) ProjectByID(context.Context, *ProjectID) (*ProjectView, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProjectByID not implemented") -} -func (*UnimplementedManagementServiceServer) CreateProject(context.Context, *ProjectCreateRequest) (*Project, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateProject not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateProject(context.Context, *ProjectUpdateRequest) (*Project, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProject not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateProject(context.Context, *ProjectID) (*Project, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateProject not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateProject(context.Context, *ProjectID) (*Project, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateProject not implemented") -} -func (*UnimplementedManagementServiceServer) SearchGrantedProjects(context.Context, *GrantedProjectSearchRequest) (*ProjectGrantSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchGrantedProjects not implemented") -} -func (*UnimplementedManagementServiceServer) GetGrantedProjectByID(context.Context, *ProjectGrantID) (*ProjectGrantView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGrantedProjectByID not implemented") -} -func (*UnimplementedManagementServiceServer) GetProjectMemberRoles(context.Context, *empty.Empty) (*ProjectMemberRoles, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProjectMemberRoles not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjectMembers(context.Context, *ProjectMemberSearchRequest) (*ProjectMemberSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjectMembers not implemented") -} -func (*UnimplementedManagementServiceServer) AddProjectMember(context.Context, *ProjectMemberAdd) (*ProjectMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddProjectMember not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeProjectMember(context.Context, *ProjectMemberChange) (*ProjectMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeProjectMember not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveProjectMember(context.Context, *ProjectMemberRemove) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectMember not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjectRoles(context.Context, *ProjectRoleSearchRequest) (*ProjectRoleSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjectRoles not implemented") -} -func (*UnimplementedManagementServiceServer) AddProjectRole(context.Context, *ProjectRoleAdd) (*ProjectRole, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddProjectRole not implemented") -} -func (*UnimplementedManagementServiceServer) BulkAddProjectRole(context.Context, *ProjectRoleAddBulk) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method BulkAddProjectRole not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeProjectRole(context.Context, *ProjectRoleChange) (*ProjectRole, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeProjectRole not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveProjectRole(context.Context, *ProjectRoleRemove) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectRole not implemented") -} -func (*UnimplementedManagementServiceServer) SearchApplications(context.Context, *ApplicationSearchRequest) (*ApplicationSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchApplications not implemented") -} -func (*UnimplementedManagementServiceServer) ApplicationByID(context.Context, *ApplicationID) (*ApplicationView, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplicationByID not implemented") -} -func (*UnimplementedManagementServiceServer) CreateOIDCApplication(context.Context, *OIDCApplicationCreate) (*Application, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOIDCApplication not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateApplication(context.Context, *ApplicationUpdate) (*Application, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateApplication not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateApplication(context.Context, *ApplicationID) (*Application, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateApplication not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateApplication(context.Context, *ApplicationID) (*Application, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateApplication not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveApplication(context.Context, *ApplicationID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveApplication not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateApplicationOIDCConfig(context.Context, *OIDCConfigUpdate) (*OIDCConfig, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateApplicationOIDCConfig not implemented") -} -func (*UnimplementedManagementServiceServer) RegenerateOIDCClientSecret(context.Context, *ApplicationID) (*ClientSecret, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegenerateOIDCClientSecret not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjectGrants(context.Context, *ProjectGrantSearchRequest) (*ProjectGrantSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjectGrants not implemented") -} -func (*UnimplementedManagementServiceServer) ProjectGrantByID(context.Context, *ProjectGrantID) (*ProjectGrantView, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProjectGrantByID not implemented") -} -func (*UnimplementedManagementServiceServer) CreateProjectGrant(context.Context, *ProjectGrantCreate) (*ProjectGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateProjectGrant not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateProjectGrant(context.Context, *ProjectGrantUpdate) (*ProjectGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectGrant not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateProjectGrant(context.Context, *ProjectGrantID) (*ProjectGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateProjectGrant not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateProjectGrant(context.Context, *ProjectGrantID) (*ProjectGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateProjectGrant not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveProjectGrant(context.Context, *ProjectGrantID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectGrant not implemented") -} -func (*UnimplementedManagementServiceServer) GetProjectGrantMemberRoles(context.Context, *empty.Empty) (*ProjectGrantMemberRoles, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProjectGrantMemberRoles not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjectGrantMembers(context.Context, *ProjectGrantMemberSearchRequest) (*ProjectGrantMemberSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjectGrantMembers not implemented") -} -func (*UnimplementedManagementServiceServer) AddProjectGrantMember(context.Context, *ProjectGrantMemberAdd) (*ProjectGrantMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddProjectGrantMember not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeProjectGrantMember(context.Context, *ProjectGrantMemberChange) (*ProjectGrantMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeProjectGrantMember not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveProjectGrantMember(context.Context, *ProjectGrantMemberRemove) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectGrantMember not implemented") -} -func (*UnimplementedManagementServiceServer) SearchUserGrants(context.Context, *UserGrantSearchRequest) (*UserGrantSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchUserGrants not implemented") -} -func (*UnimplementedManagementServiceServer) UserGrantByID(context.Context, *UserGrantID) (*UserGrantView, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserGrantByID not implemented") -} -func (*UnimplementedManagementServiceServer) CreateUserGrant(context.Context, *UserGrantCreate) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateUserGrant(context.Context, *UserGrantUpdate) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateUserGrant(context.Context, *UserGrantID) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateUserGrant(context.Context, *UserGrantID) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveUserGrant(context.Context, *UserGrantID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) BulkCreateUserGrant(context.Context, *UserGrantCreateBulk) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method BulkCreateUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) BulkUpdateUserGrant(context.Context, *UserGrantUpdateBulk) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method BulkUpdateUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) BulkRemoveUserGrant(context.Context, *UserGrantRemoveBulk) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method BulkRemoveUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjectUserGrants(context.Context, *ProjectUserGrantSearchRequest) (*UserGrantSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjectUserGrants not implemented") -} -func (*UnimplementedManagementServiceServer) ProjectUserGrantByID(context.Context, *ProjectUserGrantID) (*UserGrantView, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProjectUserGrantByID not implemented") -} -func (*UnimplementedManagementServiceServer) CreateProjectUserGrant(context.Context, *UserGrantCreate) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateProjectUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateProjectUserGrant(context.Context, *ProjectUserGrantUpdate) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateProjectUserGrant(context.Context, *ProjectUserGrantID) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateProjectUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateProjectUserGrant(context.Context, *ProjectUserGrantID) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateProjectUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjectGrantUserGrants(context.Context, *ProjectGrantUserGrantSearchRequest) (*UserGrantSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjectGrantUserGrants not implemented") -} -func (*UnimplementedManagementServiceServer) ProjectGrantUserGrantByID(context.Context, *ProjectGrantUserGrantID) (*UserGrantView, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProjectGrantUserGrantByID not implemented") -} -func (*UnimplementedManagementServiceServer) CreateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantCreate) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateProjectGrantUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantUpdate) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectGrantUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantID) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateProjectGrantUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateProjectGrantUserGrant(context.Context, *ProjectGrantUserGrantID) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateProjectGrantUserGrant not implemented") -} - -func RegisterManagementServiceServer(s *grpc.Server, srv ManagementServiceServer) { - s.RegisterService(&_ManagementService_serviceDesc, srv) -} - -func _ManagementService_Healthz_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).Healthz(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/Healthz", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).Healthz(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_Ready_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).Ready(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/Ready", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).Ready(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_Validate_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).Validate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/Validate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).Validate(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetIam_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetIam(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetIam", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetIam(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetUserByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserByID(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserByEmailGlobal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Email) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetUserByEmailGlobal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserByEmailGlobal", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserByEmailGlobal(ctx, req.(*Email)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchUsers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchUsers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchUsers(ctx, req.(*UserSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_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.(ManagementServiceServer).IsUserUnique(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/IsUserUnique", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).IsUserUnique(ctx, req.(*UniqueUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateUser(ctx, req.(*CreateUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateUser_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.(ManagementServiceServer).DeactivateUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateUser(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateUser_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.(ManagementServiceServer).ReactivateUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateUser(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_LockUser_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.(ManagementServiceServer).LockUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/LockUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).LockUser(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UnlockUser_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.(ManagementServiceServer).UnlockUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UnlockUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UnlockUser(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeleteUser_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.(ManagementServiceServer).DeleteUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeleteUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeleteUser(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UserChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UserChanges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UserChanges", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UserChanges(ctx, req.(*ChangeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ApplicationChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ApplicationChanges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ApplicationChanges(ctx, req.(*ChangeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_OrgChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).OrgChanges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/OrgChanges", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).OrgChanges(ctx, req.(*ChangeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ProjectChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ProjectChanges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectChanges", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ProjectChanges(ctx, req.(*ChangeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserProfile_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.(ManagementServiceServer).GetUserProfile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserProfile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserProfile(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserProfileRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateUserProfile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateUserProfile(ctx, req.(*UpdateUserProfileRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserEmail_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.(ManagementServiceServer).GetUserEmail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserEmail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserEmail(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeUserEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserEmailRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeUserEmail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeUserEmail(ctx, req.(*UpdateUserEmailRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_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.(ManagementServiceServer).ResendEmailVerificationMail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ResendEmailVerificationMail(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserPhone_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.(ManagementServiceServer).GetUserPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserPhone(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeUserPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserPhoneRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeUserPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeUserPhone(ctx, req.(*UpdateUserPhoneRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveUserPhone_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.(ManagementServiceServer).RemoveUserPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveUserPhone(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ResendPhoneVerificationCode_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.(ManagementServiceServer).ResendPhoneVerificationCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ResendPhoneVerificationCode(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserAddress_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.(ManagementServiceServer).GetUserAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserAddress(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateUserAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserAddressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateUserAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateUserAddress(ctx, req.(*UpdateUserAddressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserMfas_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.(ManagementServiceServer).GetUserMfas(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserMfas", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserMfas(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SendSetPasswordNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetPasswordNotificationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SendSetPasswordNotification(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SendSetPasswordNotification(ctx, req.(*SetPasswordNotificationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SetInitialPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SetInitialPassword(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SetInitialPassword(ctx, req.(*PasswordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetPasswordComplexityPolicy_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetPasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetPasswordComplexityPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreatePasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordComplexityPolicyCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreatePasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreatePasswordComplexityPolicy(ctx, req.(*PasswordComplexityPolicyCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdatePasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordComplexityPolicyUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdatePasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdatePasswordComplexityPolicy(ctx, req.(*PasswordComplexityPolicyUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeletePasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordComplexityPolicyID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeletePasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeletePasswordComplexityPolicy(ctx, req.(*PasswordComplexityPolicyID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetPasswordAgePolicy_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetPasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetPasswordAgePolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreatePasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordAgePolicyCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreatePasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreatePasswordAgePolicy(ctx, req.(*PasswordAgePolicyCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdatePasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordAgePolicyUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdatePasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdatePasswordAgePolicy(ctx, req.(*PasswordAgePolicyUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeletePasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordAgePolicyID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeletePasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeletePasswordAgePolicy(ctx, req.(*PasswordAgePolicyID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetPasswordLockoutPolicy_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetPasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetPasswordLockoutPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreatePasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordLockoutPolicyCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreatePasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreatePasswordLockoutPolicy(ctx, req.(*PasswordLockoutPolicyCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdatePasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordLockoutPolicyUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdatePasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdatePasswordLockoutPolicy(ctx, req.(*PasswordLockoutPolicyUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeletePasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordLockoutPolicyID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeletePasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeletePasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeletePasswordLockoutPolicy(ctx, req.(*PasswordLockoutPolicyID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetMyOrg_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetMyOrg(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetMyOrg", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetMyOrg(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetOrgByDomainGlobal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Domain) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetOrgByDomainGlobal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetOrgByDomainGlobal(ctx, req.(*Domain)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateMyOrg_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateMyOrg(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateMyOrg(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateMyOrg_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateMyOrg(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateMyOrg(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchMyOrgDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgDomainSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchMyOrgDomains(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchMyOrgDomains(ctx, req.(*OrgDomainSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddMyOrgDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddOrgDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddMyOrgDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddMyOrgDomain(ctx, req.(*AddOrgDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveMyOrgDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveOrgDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveMyOrgDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveMyOrgDomain(ctx, req.(*RemoveOrgDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetMyOrgIamPolicy_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetMyOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetMyOrgIamPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetOrgMemberRoles_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetOrgMemberRoles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetOrgMemberRoles(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddMyOrgMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddOrgMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddMyOrgMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddMyOrgMember(ctx, req.(*AddOrgMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeMyOrgMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeOrgMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeMyOrgMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeMyOrgMember(ctx, req.(*ChangeOrgMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveMyOrgMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveOrgMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveMyOrgMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveMyOrgMember(ctx, req.(*RemoveOrgMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchMyOrgMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgMemberSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchMyOrgMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchMyOrgMembers(ctx, req.(*OrgMemberSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjects(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjects", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjects(ctx, req.(*ProjectSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ProjectByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ProjectByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ProjectByID(ctx, req.(*ProjectID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateProject(ctx, req.(*ProjectCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateProject(ctx, req.(*ProjectUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateProject(ctx, req.(*ProjectID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateProject(ctx, req.(*ProjectID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchGrantedProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GrantedProjectSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchGrantedProjects(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchGrantedProjects(ctx, req.(*GrantedProjectSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetGrantedProjectByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetGrantedProjectByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetGrantedProjectByID(ctx, req.(*ProjectGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetProjectMemberRoles_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetProjectMemberRoles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetProjectMemberRoles(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjectMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectMemberSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjectMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjectMembers(ctx, req.(*ProjectMemberSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddProjectMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectMemberAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddProjectMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddProjectMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddProjectMember(ctx, req.(*ProjectMemberAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeProjectMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectMemberChange) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeProjectMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeProjectMember(ctx, req.(*ProjectMemberChange)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveProjectMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectMemberRemove) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveProjectMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveProjectMember(ctx, req.(*ProjectMemberRemove)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjectRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectRoleSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjectRoles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjectRoles(ctx, req.(*ProjectRoleSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectRoleAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddProjectRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddProjectRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddProjectRole(ctx, req.(*ProjectRoleAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_BulkAddProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectRoleAddBulk) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).BulkAddProjectRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).BulkAddProjectRole(ctx, req.(*ProjectRoleAddBulk)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectRoleChange) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeProjectRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeProjectRole(ctx, req.(*ProjectRoleChange)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectRoleRemove) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveProjectRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveProjectRole(ctx, req.(*ProjectRoleRemove)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_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.(ManagementServiceServer).SearchApplications(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchApplications", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchApplications(ctx, req.(*ApplicationSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ApplicationByID_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.(ManagementServiceServer).ApplicationByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ApplicationByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ApplicationByID(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateOIDCApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OIDCApplicationCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateOIDCApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateOIDCApplication(ctx, req.(*OIDCApplicationCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateApplication(ctx, req.(*ApplicationUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateApplication_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.(ManagementServiceServer).DeactivateApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateApplication(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateApplication_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.(ManagementServiceServer).ReactivateApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateApplication(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveApplication_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.(ManagementServiceServer).RemoveApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveApplication(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateApplicationOIDCConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OIDCConfigUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateApplicationOIDCConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateApplicationOIDCConfig(ctx, req.(*OIDCConfigUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RegenerateOIDCClientSecret_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.(ManagementServiceServer).RegenerateOIDCClientSecret(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RegenerateOIDCClientSecret(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjectGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjectGrants(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjectGrants(ctx, req.(*ProjectGrantSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ProjectGrantByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ProjectGrantByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ProjectGrantByID(ctx, req.(*ProjectGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateProjectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateProjectGrant(ctx, req.(*ProjectGrantCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateProjectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateProjectGrant(ctx, req.(*ProjectGrantUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateProjectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateProjectGrant(ctx, req.(*ProjectGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateProjectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateProjectGrant(ctx, req.(*ProjectGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveProjectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveProjectGrant(ctx, req.(*ProjectGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetProjectGrantMemberRoles_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 { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetProjectGrantMemberRoles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetProjectGrantMemberRoles(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjectGrantMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantMemberSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjectGrantMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjectGrantMembers(ctx, req.(*ProjectGrantMemberSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddProjectGrantMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantMemberAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddProjectGrantMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddProjectGrantMember(ctx, req.(*ProjectGrantMemberAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeProjectGrantMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantMemberChange) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeProjectGrantMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeProjectGrantMember(ctx, req.(*ProjectGrantMemberChange)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveProjectGrantMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantMemberRemove) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveProjectGrantMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveProjectGrantMember(ctx, req.(*ProjectGrantMemberRemove)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchUserGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchUserGrants(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchUserGrants(ctx, req.(*UserGrantSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UserGrantByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UserGrantByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UserGrantByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UserGrantByID(ctx, req.(*UserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateUserGrant(ctx, req.(*UserGrantCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateUserGrant(ctx, req.(*UserGrantUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateUserGrant(ctx, req.(*UserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateUserGrant(ctx, req.(*UserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveUserGrant(ctx, req.(*UserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_BulkCreateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantCreateBulk) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).BulkCreateUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/BulkCreateUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).BulkCreateUserGrant(ctx, req.(*UserGrantCreateBulk)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_BulkUpdateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantUpdateBulk) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).BulkUpdateUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/BulkUpdateUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).BulkUpdateUserGrant(ctx, req.(*UserGrantUpdateBulk)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_BulkRemoveUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantRemoveBulk) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).BulkRemoveUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).BulkRemoveUserGrant(ctx, req.(*UserGrantRemoveBulk)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjectUserGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectUserGrantSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjectUserGrants(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectUserGrants", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjectUserGrants(ctx, req.(*ProjectUserGrantSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ProjectUserGrantByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectUserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ProjectUserGrantByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectUserGrantByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ProjectUserGrantByID(ctx, req.(*ProjectUserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateProjectUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateProjectUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateProjectUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateProjectUserGrant(ctx, req.(*UserGrantCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateProjectUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectUserGrantUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateProjectUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateProjectUserGrant(ctx, req.(*ProjectUserGrantUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateProjectUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectUserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateProjectUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateProjectUserGrant(ctx, req.(*ProjectUserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateProjectUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectUserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateProjectUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateProjectUserGrant(ctx, req.(*ProjectUserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjectGrantUserGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantUserGrantSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjectGrantUserGrants(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantUserGrants", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjectGrantUserGrants(ctx, req.(*ProjectGrantUserGrantSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ProjectGrantUserGrantByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantUserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ProjectGrantUserGrantByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantUserGrantByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ProjectGrantUserGrantByID(ctx, req.(*ProjectGrantUserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateProjectGrantUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantUserGrantCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateProjectGrantUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrantUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateProjectGrantUserGrant(ctx, req.(*ProjectGrantUserGrantCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateProjectGrantUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantUserGrantUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateProjectGrantUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrantUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateProjectGrantUserGrant(ctx, req.(*ProjectGrantUserGrantUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateProjectGrantUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantUserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateProjectGrantUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrantUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateProjectGrantUserGrant(ctx, req.(*ProjectGrantUserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateProjectGrantUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantUserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateProjectGrantUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrantUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateProjectGrantUserGrant(ctx, req.(*ProjectGrantUserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -var _ManagementService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "caos.zitadel.management.api.v1.ManagementService", - HandlerType: (*ManagementServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Healthz", - Handler: _ManagementService_Healthz_Handler, - }, - { - MethodName: "Ready", - Handler: _ManagementService_Ready_Handler, - }, - { - MethodName: "Validate", - Handler: _ManagementService_Validate_Handler, - }, - { - MethodName: "GetIam", - Handler: _ManagementService_GetIam_Handler, - }, - { - MethodName: "GetUserByID", - Handler: _ManagementService_GetUserByID_Handler, - }, - { - MethodName: "GetUserByEmailGlobal", - Handler: _ManagementService_GetUserByEmailGlobal_Handler, - }, - { - MethodName: "SearchUsers", - Handler: _ManagementService_SearchUsers_Handler, - }, - { - MethodName: "IsUserUnique", - Handler: _ManagementService_IsUserUnique_Handler, - }, - { - MethodName: "CreateUser", - Handler: _ManagementService_CreateUser_Handler, - }, - { - MethodName: "DeactivateUser", - Handler: _ManagementService_DeactivateUser_Handler, - }, - { - MethodName: "ReactivateUser", - Handler: _ManagementService_ReactivateUser_Handler, - }, - { - MethodName: "LockUser", - Handler: _ManagementService_LockUser_Handler, - }, - { - MethodName: "UnlockUser", - Handler: _ManagementService_UnlockUser_Handler, - }, - { - MethodName: "DeleteUser", - Handler: _ManagementService_DeleteUser_Handler, - }, - { - MethodName: "UserChanges", - Handler: _ManagementService_UserChanges_Handler, - }, - { - MethodName: "ApplicationChanges", - Handler: _ManagementService_ApplicationChanges_Handler, - }, - { - MethodName: "OrgChanges", - Handler: _ManagementService_OrgChanges_Handler, - }, - { - MethodName: "ProjectChanges", - Handler: _ManagementService_ProjectChanges_Handler, - }, - { - MethodName: "GetUserProfile", - Handler: _ManagementService_GetUserProfile_Handler, - }, - { - MethodName: "UpdateUserProfile", - Handler: _ManagementService_UpdateUserProfile_Handler, - }, - { - MethodName: "GetUserEmail", - Handler: _ManagementService_GetUserEmail_Handler, - }, - { - MethodName: "ChangeUserEmail", - Handler: _ManagementService_ChangeUserEmail_Handler, - }, - { - MethodName: "ResendEmailVerificationMail", - Handler: _ManagementService_ResendEmailVerificationMail_Handler, - }, - { - MethodName: "GetUserPhone", - Handler: _ManagementService_GetUserPhone_Handler, - }, - { - MethodName: "ChangeUserPhone", - Handler: _ManagementService_ChangeUserPhone_Handler, - }, - { - MethodName: "RemoveUserPhone", - Handler: _ManagementService_RemoveUserPhone_Handler, - }, - { - MethodName: "ResendPhoneVerificationCode", - Handler: _ManagementService_ResendPhoneVerificationCode_Handler, - }, - { - MethodName: "GetUserAddress", - Handler: _ManagementService_GetUserAddress_Handler, - }, - { - MethodName: "UpdateUserAddress", - Handler: _ManagementService_UpdateUserAddress_Handler, - }, - { - MethodName: "GetUserMfas", - Handler: _ManagementService_GetUserMfas_Handler, - }, - { - MethodName: "SendSetPasswordNotification", - Handler: _ManagementService_SendSetPasswordNotification_Handler, - }, - { - MethodName: "SetInitialPassword", - Handler: _ManagementService_SetInitialPassword_Handler, - }, - { - MethodName: "GetPasswordComplexityPolicy", - Handler: _ManagementService_GetPasswordComplexityPolicy_Handler, - }, - { - MethodName: "CreatePasswordComplexityPolicy", - Handler: _ManagementService_CreatePasswordComplexityPolicy_Handler, - }, - { - MethodName: "UpdatePasswordComplexityPolicy", - Handler: _ManagementService_UpdatePasswordComplexityPolicy_Handler, - }, - { - MethodName: "DeletePasswordComplexityPolicy", - Handler: _ManagementService_DeletePasswordComplexityPolicy_Handler, - }, - { - MethodName: "GetPasswordAgePolicy", - Handler: _ManagementService_GetPasswordAgePolicy_Handler, - }, - { - MethodName: "CreatePasswordAgePolicy", - Handler: _ManagementService_CreatePasswordAgePolicy_Handler, - }, - { - MethodName: "UpdatePasswordAgePolicy", - Handler: _ManagementService_UpdatePasswordAgePolicy_Handler, - }, - { - MethodName: "DeletePasswordAgePolicy", - Handler: _ManagementService_DeletePasswordAgePolicy_Handler, - }, - { - MethodName: "GetPasswordLockoutPolicy", - Handler: _ManagementService_GetPasswordLockoutPolicy_Handler, - }, - { - MethodName: "CreatePasswordLockoutPolicy", - Handler: _ManagementService_CreatePasswordLockoutPolicy_Handler, - }, - { - MethodName: "UpdatePasswordLockoutPolicy", - Handler: _ManagementService_UpdatePasswordLockoutPolicy_Handler, - }, - { - MethodName: "DeletePasswordLockoutPolicy", - Handler: _ManagementService_DeletePasswordLockoutPolicy_Handler, - }, - { - MethodName: "GetMyOrg", - Handler: _ManagementService_GetMyOrg_Handler, - }, - { - MethodName: "GetOrgByDomainGlobal", - Handler: _ManagementService_GetOrgByDomainGlobal_Handler, - }, - { - MethodName: "DeactivateMyOrg", - Handler: _ManagementService_DeactivateMyOrg_Handler, - }, - { - MethodName: "ReactivateMyOrg", - Handler: _ManagementService_ReactivateMyOrg_Handler, - }, - { - MethodName: "SearchMyOrgDomains", - Handler: _ManagementService_SearchMyOrgDomains_Handler, - }, - { - MethodName: "AddMyOrgDomain", - Handler: _ManagementService_AddMyOrgDomain_Handler, - }, - { - MethodName: "RemoveMyOrgDomain", - Handler: _ManagementService_RemoveMyOrgDomain_Handler, - }, - { - MethodName: "GetMyOrgIamPolicy", - Handler: _ManagementService_GetMyOrgIamPolicy_Handler, - }, - { - MethodName: "GetOrgMemberRoles", - Handler: _ManagementService_GetOrgMemberRoles_Handler, - }, - { - MethodName: "AddMyOrgMember", - Handler: _ManagementService_AddMyOrgMember_Handler, - }, - { - MethodName: "ChangeMyOrgMember", - Handler: _ManagementService_ChangeMyOrgMember_Handler, - }, - { - MethodName: "RemoveMyOrgMember", - Handler: _ManagementService_RemoveMyOrgMember_Handler, - }, - { - MethodName: "SearchMyOrgMembers", - Handler: _ManagementService_SearchMyOrgMembers_Handler, - }, - { - MethodName: "SearchProjects", - Handler: _ManagementService_SearchProjects_Handler, - }, - { - MethodName: "ProjectByID", - Handler: _ManagementService_ProjectByID_Handler, - }, - { - MethodName: "CreateProject", - Handler: _ManagementService_CreateProject_Handler, - }, - { - MethodName: "UpdateProject", - Handler: _ManagementService_UpdateProject_Handler, - }, - { - MethodName: "DeactivateProject", - Handler: _ManagementService_DeactivateProject_Handler, - }, - { - MethodName: "ReactivateProject", - Handler: _ManagementService_ReactivateProject_Handler, - }, - { - MethodName: "SearchGrantedProjects", - Handler: _ManagementService_SearchGrantedProjects_Handler, - }, - { - MethodName: "GetGrantedProjectByID", - Handler: _ManagementService_GetGrantedProjectByID_Handler, - }, - { - MethodName: "GetProjectMemberRoles", - Handler: _ManagementService_GetProjectMemberRoles_Handler, - }, - { - MethodName: "SearchProjectMembers", - Handler: _ManagementService_SearchProjectMembers_Handler, - }, - { - MethodName: "AddProjectMember", - Handler: _ManagementService_AddProjectMember_Handler, - }, - { - MethodName: "ChangeProjectMember", - Handler: _ManagementService_ChangeProjectMember_Handler, - }, - { - MethodName: "RemoveProjectMember", - Handler: _ManagementService_RemoveProjectMember_Handler, - }, - { - MethodName: "SearchProjectRoles", - Handler: _ManagementService_SearchProjectRoles_Handler, - }, - { - MethodName: "AddProjectRole", - Handler: _ManagementService_AddProjectRole_Handler, - }, - { - MethodName: "BulkAddProjectRole", - Handler: _ManagementService_BulkAddProjectRole_Handler, - }, - { - MethodName: "ChangeProjectRole", - Handler: _ManagementService_ChangeProjectRole_Handler, - }, - { - MethodName: "RemoveProjectRole", - Handler: _ManagementService_RemoveProjectRole_Handler, - }, - { - MethodName: "SearchApplications", - Handler: _ManagementService_SearchApplications_Handler, - }, - { - MethodName: "ApplicationByID", - Handler: _ManagementService_ApplicationByID_Handler, - }, - { - MethodName: "CreateOIDCApplication", - Handler: _ManagementService_CreateOIDCApplication_Handler, - }, - { - MethodName: "UpdateApplication", - Handler: _ManagementService_UpdateApplication_Handler, - }, - { - MethodName: "DeactivateApplication", - Handler: _ManagementService_DeactivateApplication_Handler, - }, - { - MethodName: "ReactivateApplication", - Handler: _ManagementService_ReactivateApplication_Handler, - }, - { - MethodName: "RemoveApplication", - Handler: _ManagementService_RemoveApplication_Handler, - }, - { - MethodName: "UpdateApplicationOIDCConfig", - Handler: _ManagementService_UpdateApplicationOIDCConfig_Handler, - }, - { - MethodName: "RegenerateOIDCClientSecret", - Handler: _ManagementService_RegenerateOIDCClientSecret_Handler, - }, - { - MethodName: "SearchProjectGrants", - Handler: _ManagementService_SearchProjectGrants_Handler, - }, - { - MethodName: "ProjectGrantByID", - Handler: _ManagementService_ProjectGrantByID_Handler, - }, - { - MethodName: "CreateProjectGrant", - Handler: _ManagementService_CreateProjectGrant_Handler, - }, - { - MethodName: "UpdateProjectGrant", - Handler: _ManagementService_UpdateProjectGrant_Handler, - }, - { - MethodName: "DeactivateProjectGrant", - Handler: _ManagementService_DeactivateProjectGrant_Handler, - }, - { - MethodName: "ReactivateProjectGrant", - Handler: _ManagementService_ReactivateProjectGrant_Handler, - }, - { - MethodName: "RemoveProjectGrant", - Handler: _ManagementService_RemoveProjectGrant_Handler, - }, - { - MethodName: "GetProjectGrantMemberRoles", - Handler: _ManagementService_GetProjectGrantMemberRoles_Handler, - }, - { - MethodName: "SearchProjectGrantMembers", - Handler: _ManagementService_SearchProjectGrantMembers_Handler, - }, - { - MethodName: "AddProjectGrantMember", - Handler: _ManagementService_AddProjectGrantMember_Handler, - }, - { - MethodName: "ChangeProjectGrantMember", - Handler: _ManagementService_ChangeProjectGrantMember_Handler, - }, - { - MethodName: "RemoveProjectGrantMember", - Handler: _ManagementService_RemoveProjectGrantMember_Handler, - }, - { - MethodName: "SearchUserGrants", - Handler: _ManagementService_SearchUserGrants_Handler, - }, - { - MethodName: "UserGrantByID", - Handler: _ManagementService_UserGrantByID_Handler, - }, - { - MethodName: "CreateUserGrant", - Handler: _ManagementService_CreateUserGrant_Handler, - }, - { - MethodName: "UpdateUserGrant", - Handler: _ManagementService_UpdateUserGrant_Handler, - }, - { - MethodName: "DeactivateUserGrant", - Handler: _ManagementService_DeactivateUserGrant_Handler, - }, - { - MethodName: "ReactivateUserGrant", - Handler: _ManagementService_ReactivateUserGrant_Handler, - }, - { - MethodName: "RemoveUserGrant", - Handler: _ManagementService_RemoveUserGrant_Handler, - }, - { - MethodName: "BulkCreateUserGrant", - Handler: _ManagementService_BulkCreateUserGrant_Handler, - }, - { - MethodName: "BulkUpdateUserGrant", - Handler: _ManagementService_BulkUpdateUserGrant_Handler, - }, - { - MethodName: "BulkRemoveUserGrant", - Handler: _ManagementService_BulkRemoveUserGrant_Handler, - }, - { - MethodName: "SearchProjectUserGrants", - Handler: _ManagementService_SearchProjectUserGrants_Handler, - }, - { - MethodName: "ProjectUserGrantByID", - Handler: _ManagementService_ProjectUserGrantByID_Handler, - }, - { - MethodName: "CreateProjectUserGrant", - Handler: _ManagementService_CreateProjectUserGrant_Handler, - }, - { - MethodName: "UpdateProjectUserGrant", - Handler: _ManagementService_UpdateProjectUserGrant_Handler, - }, - { - MethodName: "DeactivateProjectUserGrant", - Handler: _ManagementService_DeactivateProjectUserGrant_Handler, - }, - { - MethodName: "ReactivateProjectUserGrant", - Handler: _ManagementService_ReactivateProjectUserGrant_Handler, - }, - { - MethodName: "SearchProjectGrantUserGrants", - Handler: _ManagementService_SearchProjectGrantUserGrants_Handler, - }, - { - MethodName: "ProjectGrantUserGrantByID", - Handler: _ManagementService_ProjectGrantUserGrantByID_Handler, - }, - { - MethodName: "CreateProjectGrantUserGrant", - Handler: _ManagementService_CreateProjectGrantUserGrant_Handler, - }, - { - MethodName: "UpdateProjectGrantUserGrant", - Handler: _ManagementService_UpdateProjectGrantUserGrant_Handler, - }, - { - MethodName: "DeactivateProjectGrantUserGrant", - Handler: _ManagementService_DeactivateProjectGrantUserGrant_Handler, - }, - { - MethodName: "ReactivateProjectGrantUserGrant", - Handler: _ManagementService_ReactivateProjectGrantUserGrant_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "management.proto", -} diff --git a/pkg/management/api/grpc/search_converter.go b/pkg/management/api/grpc/search_converter.go deleted file mode 100644 index 20e56dfecd..0000000000 --- a/pkg/management/api/grpc/search_converter.go +++ /dev/null @@ -1,28 +0,0 @@ -package grpc - -import "github.com/caos/zitadel/internal/model" - -func searchMethodToModel(method SearchMethod) model.SearchMethod { - switch method { - case SearchMethod_SEARCHMETHOD_EQUALS: - return model.SearchMethodEquals - case SearchMethod_SEARCHMETHOD_CONTAINS: - return model.SearchMethodContains - case SearchMethod_SEARCHMETHOD_STARTS_WITH: - return model.SearchMethodStartsWith - case SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE: - return model.SearchMethodEqualsIgnoreCase - case SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE: - return model.SearchMethodContainsIgnoreCase - case SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE: - return model.SearchMethodStartsWithIgnoreCase - case SearchMethod_SEARCHMETHOD_NOT_EQUALS: - return model.SearchMethodNotEquals - case SearchMethod_SEARCHMETHOD_IS_ONE_OF: - return model.SearchMethodIsOneOf - case SearchMethod_SEARCHMETHOD_LIST_CONTAINS: - return model.SearchMethodListContains - default: - return model.SearchMethodEquals - } -} diff --git a/pkg/management/api/grpc/server.go b/pkg/management/api/grpc/server.go deleted file mode 100644 index e15bd70672..0000000000 --- a/pkg/management/api/grpc/server.go +++ /dev/null @@ -1,62 +0,0 @@ -package grpc - -import ( - "github.com/caos/zitadel/internal/api/auth" - grpc_util "github.com/caos/zitadel/internal/api/grpc" - "github.com/caos/zitadel/internal/api/grpc/server/middleware" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" - "github.com/caos/zitadel/internal/config/systemdefaults" - mgmt_auth "github.com/caos/zitadel/internal/management/auth" - "github.com/caos/zitadel/internal/management/repository" - grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" - "google.golang.org/grpc" -) - -var _ ManagementServiceServer = (*Server)(nil) - -type Server struct { - port string - project repository.ProjectRepository - policy repository.PolicyRepository - org repository.OrgRepository - user repository.UserRepository - usergrant repository.UserGrantRepository - iam repository.IamRepository - verifier *mgmt_auth.TokenVerifier - authZ auth.Config - systemDefaults systemdefaults.SystemDefaults -} - -func StartServer(conf grpc_util.ServerConfig, authZRepo *authz_repo.EsRepository, authZ auth.Config, sd systemdefaults.SystemDefaults, repo repository.Repository) *Server { - return &Server{ - port: conf.Port, - project: repo, - policy: repo, - org: repo, - user: repo, - usergrant: repo, - iam: repo, - authZ: authZ, - verifier: mgmt_auth.Start(authZRepo), - systemDefaults: sd, - } -} - -func (s *Server) GRPCPort() string { - return s.port -} - -func (s *Server) GRPCServer(defaults systemdefaults.SystemDefaults) (*grpc.Server, error) { - gs := grpc.NewServer( - middleware.TracingStatsServer("/Healthz", "/Ready", "/Validate"), - grpc.UnaryInterceptor( - grpc_middleware.ChainUnaryServer( - middleware.ErrorHandler(defaults.DefaultLanguage), - middleware.TranslationHandler(defaults.DefaultLanguage), - ManagementService_Authorization_Interceptor(s.verifier, &s.authZ), - ), - ), - ) - RegisterManagementServiceServer(gs, s) - return gs, nil -} diff --git a/pkg/management/management.go b/pkg/management/management.go deleted file mode 100644 index 9858ebb94b..0000000000 --- a/pkg/management/management.go +++ /dev/null @@ -1,28 +0,0 @@ -package management - -import ( - "context" - - "github.com/caos/logging" - "github.com/caos/zitadel/internal/api/auth" - authz_repo "github.com/caos/zitadel/internal/authz/repository/eventsourcing" - sd "github.com/caos/zitadel/internal/config/systemdefaults" - "github.com/caos/zitadel/internal/management/repository/eventsourcing" - "github.com/caos/zitadel/pkg/management/api" -) - -type Config struct { - Repository eventsourcing.Config - API api.Config -} - -func Start(ctx context.Context, config Config, authZRepo *authz_repo.EsRepository, authZ auth.Config, systemDefaults sd.SystemDefaults) { - roles := make([]string, len(authZ.RolePermissionMappings)) - for i, role := range authZ.RolePermissionMappings { - roles[i] = role.Role - } - repo, err := eventsourcing.Start(config.Repository, systemDefaults, roles) - logging.Log("MAIN-9uBxp").OnError(err).Panic("unable to start app") - - api.Start(ctx, config.API, authZRepo, authZ, systemDefaults, repo) -} diff --git a/pkg/message/generate.go b/pkg/message/generate.go deleted file mode 100644 index 84677c76f8..0000000000 --- a/pkg/message/generate.go +++ /dev/null @@ -1,3 +0,0 @@ -package message - -//go:generate protoc -I$GOPATH/src -I. --go_out=plugins=grpc:$GOPATH/src --grpc-gateway_out=logtostderr=true,allow_delete_body=true:$GOPATH/src ./message.proto