|
| 1 | +/** |
| 2 | + * Copyright (c) 2023 Gitpod GmbH. All rights reserved. |
| 3 | + * Licensed under the GNU Affero General Public License (AGPL). |
| 4 | + * See License.AGPL.txt in the project root for license information. |
| 5 | + */ |
| 6 | + |
| 7 | +import { ServiceImpl, ConnectError, Code } from "@bufbuild/connect"; |
| 8 | +import { UserService as UserServiceInterface } from "@gitpod/public-api/lib/gitpod/experimental/v1/user_connectweb"; |
| 9 | +import { |
| 10 | + GetAuthenticatedUserRequest, |
| 11 | + ListSSHKeysRequest, |
| 12 | + CreateSSHKeyRequest, |
| 13 | + GetSSHKeyRequest, |
| 14 | + DeleteSSHKeyRequest, |
| 15 | + GetGitTokenRequest, |
| 16 | + BlockUserRequest, |
| 17 | + GetAuthenticatedUserResponse, |
| 18 | + ListSSHKeysResponse, |
| 19 | + CreateSSHKeyResponse, |
| 20 | + GetSSHKeyResponse, |
| 21 | + DeleteSSHKeyResponse, |
| 22 | + GetGitTokenResponse, |
| 23 | + BlockUserResponse, |
| 24 | +} from "@gitpod/public-api/lib/gitpod/experimental/v1/user_pb"; |
| 25 | + |
| 26 | +export class UserService implements ServiceImpl<typeof UserServiceInterface> { |
| 27 | + getAuthenticatedUser(req: GetAuthenticatedUserRequest): Promise<GetAuthenticatedUserResponse> { |
| 28 | + throw new ConnectError("unimplemented", Code.Unimplemented); |
| 29 | + } |
| 30 | + |
| 31 | + listSSHKeysGetAuthenticatedUserRequest(req: ListSSHKeysRequest): Promise<ListSSHKeysResponse> { |
| 32 | + throw new ConnectError("unimplemented", Code.Unimplemented); |
| 33 | + } |
| 34 | + |
| 35 | + createSSHKeyGetAuthenticatedUserRequest(req: CreateSSHKeyRequest): Promise<CreateSSHKeyResponse> { |
| 36 | + throw new ConnectError("unimplemented", Code.Unimplemented); |
| 37 | + } |
| 38 | + |
| 39 | + getSSHKeyGetAuthenticatedUserRequest(req: GetSSHKeyRequest): Promise<GetSSHKeyResponse> { |
| 40 | + throw new ConnectError("unimplemented", Code.Unimplemented); |
| 41 | + } |
| 42 | + |
| 43 | + deleteSSHKeyGetAuthenticatedUserRequest(req: DeleteSSHKeyRequest): Promise<DeleteSSHKeyResponse> { |
| 44 | + throw new ConnectError("unimplemented", Code.Unimplemented); |
| 45 | + } |
| 46 | + |
| 47 | + getGitTokenGetAuthenticatedUserRequest(req: GetGitTokenRequest): Promise<GetGitTokenResponse> { |
| 48 | + throw new ConnectError("unimplemented", Code.Unimplemented); |
| 49 | + } |
| 50 | + |
| 51 | + blockUserGetAuthenticatedUserRequest(req: BlockUserRequest): Promise<BlockUserResponse> { |
| 52 | + throw new ConnectError("unimplemented", Code.Unimplemented); |
| 53 | + } |
| 54 | +} |
0 commit comments