4 Commits

Author SHA1 Message Date
603b8a390b Update protobuf definitions: dd1905ce
By allanger

Commit link: dd1905cef4

Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/56
2026-05-07 20:25:10 +00:00
b919b373fb Update protobuf definitions: cfbe2271
By allanger

Commit link: cfbe2271fe

Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/55
2026-05-07 17:18:23 +00:00
211823a542 Update protobuf definitions: e1e2515c
By allanger

Commit link: e1e2515c97

Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/54
2026-05-05 20:09:36 +00:00
a06b132427 Update protobuf definitions: 0401be27
By allanger

Commit link: 0401be278d

Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/52
2026-04-30 15:24:46 +00:00
2 changed files with 148 additions and 128 deletions

View File

@@ -1,7 +1,7 @@
/// This file has messages for describing environments /// Protobuf definitions for the accounts service.
// @generated by protoc-gen-es v2.12.0 with parameter "target=ts" // @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated from file accounts/v1/accounts_v1.proto (package accounts, syntax proto3) // @generated from file accounts/v1/accounts_v1.proto (package accounts.v1, syntax proto3)
/* eslint-disable */ /* eslint-disable */
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
@@ -14,51 +14,12 @@ import type { Message } from "@bufbuild/protobuf";
* Describes the file accounts/v1/accounts_v1.proto. * Describes the file accounts/v1/accounts_v1.proto.
*/ */
export const file_accounts_v1_accounts_v1: GenFile = /*@__PURE__*/ export const file_accounts_v1_accounts_v1: GenFile = /*@__PURE__*/
fileDesc("Ch1hY2NvdW50cy92MS9hY2NvdW50c192MS5wcm90bxIIYWNjb3VudHMiIQoNRW1haWxWZXJpZmllZBIQCgh2ZXJpZmllZBgBIAEoCCIXCglBY2NvdW50SWQSCgoCaWQYASABKAkiIwoPQWNjb3VudFBhc3N3b3JkEhAKCHBhc3N3b3JkGAEgASgJIioKC0F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kiABJKCgxSZWZyZXNoVG9rZW4SIC5hY2NvdW50cy52MS5SZWZyZXNoVG9rZW5SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAydQoTQWNjb3VudHNBdXRoU2VydmljZRJeCg9Jc0VtYWlsVmVyaWZpZWQSIy5hY2NvdW50cy52MS5Jc0VtYWlsVmVyaWZpZWRSZXF1ZXN0GiQuYWNjb3VudHMudjEuSXNFbWFpbFZlcmlmaWVkUmVzcG9uc2UiAEJJWkdnaXRlYS5iYWRob3VzZXBsYW50cy5uZXQvc29mdHBsYXllci9zb2Z0cGxheWVyLWdvLXByb3RvL3BrZy9hY2NvdW50cy92MWIGcHJvdG8z", [file_google_protobuf_empty]);
/** /**
* @generated from message accounts.EmailVerified * @generated from message accounts.v1.AccountPassword
*/ */
export type EmailVerified = Message<"accounts.EmailVerified"> & { export type AccountPassword = Message<"accounts.v1.AccountPassword"> & {
/**
* @generated from field: bool verified = 1;
*/
verified: boolean;
};
/**
* Describes the message accounts.EmailVerified.
* Use `create(EmailVerifiedSchema)` to create a new message.
*/
export const EmailVerifiedSchema: GenMessage<EmailVerified> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 0);
/**
* *
* Represents a environment UUID only
*
* @generated from message accounts.AccountId
*/
export type AccountId = Message<"accounts.AccountId"> & {
/**
* Contour ID: UUID
*
* @generated from field: string id = 1;
*/
id: string;
};
/**
* Describes the message accounts.AccountId.
* Use `create(AccountIdSchema)` to create a new message.
*/
export const AccountIdSchema: GenMessage<AccountId> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 1);
/**
* @generated from message accounts.AccountPassword
*/
export type AccountPassword = Message<"accounts.AccountPassword"> & {
/** /**
* @generated from field: string password = 1; * @generated from field: string password = 1;
*/ */
@@ -66,16 +27,16 @@ export type AccountPassword = Message<"accounts.AccountPassword"> & {
}; };
/** /**
* Describes the message accounts.AccountPassword. * Describes the message accounts.v1.AccountPassword.
* Use `create(AccountPasswordSchema)` to create a new message. * Use `create(AccountPasswordSchema)` to create a new message.
*/ */
export const AccountPasswordSchema: GenMessage<AccountPassword> = /*@__PURE__*/ export const AccountPasswordSchema: GenMessage<AccountPassword> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 2); messageDesc(file_accounts_v1_accounts_v1, 0);
/** /**
* @generated from message accounts.AccountData * @generated from message accounts.v1.AccountData
*/ */
export type AccountData = Message<"accounts.AccountData"> & { export type AccountData = Message<"accounts.v1.AccountData"> & {
/** /**
* Account name * Account name
* *
@@ -92,45 +53,84 @@ export type AccountData = Message<"accounts.AccountData"> & {
}; };
/** /**
* Describes the message accounts.AccountData. * Describes the message accounts.v1.AccountData.
* Use `create(AccountDataSchema)` to create a new message. * Use `create(AccountDataSchema)` to create a new message.
*/ */
export const AccountDataSchema: GenMessage<AccountData> = /*@__PURE__*/ export const AccountDataSchema: GenMessage<AccountData> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 3); messageDesc(file_accounts_v1_accounts_v1, 1);
/** /**
* @generated from message accounts.AccountWithPassword * @generated from message accounts.v1.SignUpRequest
*/ */
export type AccountWithPassword = Message<"accounts.AccountWithPassword"> & { export type SignUpRequest = Message<"accounts.v1.SignUpRequest"> & {
/** /**
* @generated from field: accounts.AccountData data = 1; * @generated from field: string email = 1;
*/ */
data?: AccountData | undefined; email: string;
/** /**
* @generated from field: accounts.AccountPassword password = 2; * @generated from field: string password = 2;
*/ */
password?: AccountPassword | undefined; password: string;
}; };
/** /**
* Describes the message accounts.AccountWithPassword. * Describes the message accounts.v1.SignUpRequest.
* Use `create(AccountWithPasswordSchema)` to create a new message. * Use `create(SignUpRequestSchema)` to create a new message.
*/ */
export const AccountWithPasswordSchema: GenMessage<AccountWithPassword> = /*@__PURE__*/ export const SignUpRequestSchema: GenMessage<SignUpRequest> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 2);
/**
* @generated from message accounts.v1.SignInRequest
*/
export type SignInRequest = Message<"accounts.v1.SignInRequest"> & {
/**
* @generated from field: string email = 1;
*/
email: string;
/**
* @generated from field: string password = 2;
*/
password: string;
};
/**
* Describes the message accounts.v1.SignInRequest.
* Use `create(SignInRequestSchema)` to create a new message.
*/
export const SignInRequestSchema: GenMessage<SignInRequest> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 3);
/**
* @generated from message accounts.v1.ResetPasswordRequest
*/
export type ResetPasswordRequest = Message<"accounts.v1.ResetPasswordRequest"> & {
/**
* @generated from field: accounts.v1.AccountData data = 1;
*/
data?: AccountData | undefined;
};
/**
* Describes the message accounts.v1.ResetPasswordRequest.
* Use `create(ResetPasswordRequestSchema)` to create a new message.
*/
export const ResetPasswordRequestSchema: GenMessage<ResetPasswordRequest> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 4); messageDesc(file_accounts_v1_accounts_v1, 4);
/** /**
* @generated from message accounts.AccountWithPasswordAndCode * @generated from message accounts.v1.NewPasswordRequest
*/ */
export type AccountWithPasswordAndCode = Message<"accounts.AccountWithPasswordAndCode"> & { export type NewPasswordRequest = Message<"accounts.v1.NewPasswordRequest"> & {
/** /**
* @generated from field: accounts.AccountData data = 1; * @generated from field: accounts.v1.AccountData data = 1;
*/ */
data?: AccountData | undefined; data?: AccountData | undefined;
/** /**
* @generated from field: accounts.AccountPassword password = 2; * @generated from field: accounts.v1.AccountPassword password = 2;
*/ */
password?: AccountPassword | undefined; password?: AccountPassword | undefined;
@@ -141,108 +141,121 @@ export type AccountWithPasswordAndCode = Message<"accounts.AccountWithPasswordAn
}; };
/** /**
* Describes the message accounts.AccountWithPasswordAndCode. * Describes the message accounts.v1.NewPasswordRequest.
* Use `create(AccountWithPasswordAndCodeSchema)` to create a new message. * Use `create(NewPasswordRequestSchema)` to create a new message.
*/ */
export const AccountWithPasswordAndCodeSchema: GenMessage<AccountWithPasswordAndCode> = /*@__PURE__*/ export const NewPasswordRequestSchema: GenMessage<NewPasswordRequest> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 5); messageDesc(file_accounts_v1_accounts_v1, 5);
/** /**
* @generated from message accounts.AccountFull * @generated from message accounts.v1.IsEmailVerifiedRequest
*/ */
export type AccountFull = Message<"accounts.AccountFull"> & { export type IsEmailVerifiedRequest = Message<"accounts.v1.IsEmailVerifiedRequest"> & {
/** /**
* @generated from field: accounts.AccountId id = 1; * @generated from field: accounts.v1.AccountData data = 1;
*/
id?: AccountId | undefined;
/**
* @generated from field: accounts.AccountData data = 2;
*/ */
data?: AccountData | undefined; data?: AccountData | undefined;
}; };
/** /**
* Describes the message accounts.AccountFull. * Describes the message accounts.v1.IsEmailVerifiedRequest.
* Use `create(AccountFullSchema)` to create a new message. * Use `create(IsEmailVerifiedRequestSchema)` to create a new message.
*/ */
export const AccountFullSchema: GenMessage<AccountFull> = /*@__PURE__*/ export const IsEmailVerifiedRequestSchema: GenMessage<IsEmailVerifiedRequest> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 6); messageDesc(file_accounts_v1_accounts_v1, 6);
/** /**
* @generated from message accounts.AccountFullWithToken * @generated from message accounts.v1.IsEmailVerifiedResponse
*/ */
export type AccountFullWithToken = Message<"accounts.AccountFullWithToken"> & { export type IsEmailVerifiedResponse = Message<"accounts.v1.IsEmailVerifiedResponse"> & {
/** /**
* @generated from field: accounts.AccountId id = 1; * @generated from field: bool verified = 1;
*/ */
id?: AccountId | undefined; verified: boolean;
/**
* @generated from field: accounts.AccountData data = 2;
*/
data?: AccountData | undefined;
/**
* @generated from field: string token = 3;
*/
token: string;
}; };
/** /**
* Describes the message accounts.AccountFullWithToken. * Describes the message accounts.v1.IsEmailVerifiedResponse.
* Use `create(AccountFullWithTokenSchema)` to create a new message. * Use `create(IsEmailVerifiedResponseSchema)` to create a new message.
*/ */
export const AccountFullWithTokenSchema: GenMessage<AccountFullWithToken> = /*@__PURE__*/ export const IsEmailVerifiedResponseSchema: GenMessage<IsEmailVerifiedResponse> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 7); messageDesc(file_accounts_v1_accounts_v1, 7);
/** /**
* * * @generated from message accounts.v1.RefreshTokenRequest
* Service for handling environments
*
* @generated from service accounts.Accounts
*/ */
export const Accounts: GenService<{ export type RefreshTokenRequest = Message<"accounts.v1.RefreshTokenRequest"> & {
/** /**
* @generated from rpc accounts.Accounts.SignUp * @generated from field: string session_id = 1;
*/ */
signUp: { sessionId: string;
methodKind: "unary"; };
input: typeof AccountWithPasswordSchema;
output: typeof AccountFullWithTokenSchema; /**
}, * Describes the message accounts.v1.RefreshTokenRequest.
* Use `create(RefreshTokenRequestSchema)` to create a new message.
*/
export const RefreshTokenRequestSchema: GenMessage<RefreshTokenRequest> = /*@__PURE__*/
messageDesc(file_accounts_v1_accounts_v1, 8);
/**
* *
* Service for handling accounts that do not require authentication
*
* @generated from service accounts.v1.AccountsNoAuthService
*/
export const AccountsNoAuthService: GenService<{
/** /**
* @generated from rpc accounts.Accounts.SignIn * Sing in into an existing account
*
* @generated from rpc accounts.v1.AccountsNoAuthService.SignIn
*/ */
signIn: { signIn: {
methodKind: "unary"; methodKind: "unary";
input: typeof AccountWithPasswordSchema; input: typeof SignInRequestSchema;
output: typeof AccountFullWithTokenSchema;
},
/**
* @generated from rpc accounts.Accounts.ResetPassword
*/
resetPassword: {
methodKind: "unary";
input: typeof AccountDataSchema;
output: typeof EmptySchema; output: typeof EmptySchema;
}, },
/** /**
* @generated from rpc accounts.Accounts.NewPassword * Create a new account
*
* @generated from rpc accounts.v1.AccountsNoAuthService.SignUp
*/ */
newPassword: { signUp: {
methodKind: "unary"; methodKind: "unary";
input: typeof AccountWithPasswordAndCodeSchema; input: typeof SignUpRequestSchema;
output: typeof EmptySchema; output: typeof EmptySchema;
}, },
/** /**
* @generated from rpc accounts.Accounts.IsEmailVerified * RefreshToken doesn't use regular auth methods
*
* @generated from rpc accounts.v1.AccountsNoAuthService.RefreshToken
*/ */
isEmailVerified: { refreshToken: {
methodKind: "unary"; methodKind: "unary";
input: typeof AccountDataSchema; input: typeof RefreshTokenRequestSchema;
output: typeof EmailVerifiedSchema; output: typeof EmptySchema;
}, },
}> = /*@__PURE__*/ }> = /*@__PURE__*/
serviceDesc(file_accounts_v1_accounts_v1, 0); serviceDesc(file_accounts_v1_accounts_v1, 0);
/**
* *
* Service for handling accounts that do require authentication
* Tokens should be sent via metadata, so the service is able to authenticate a user for a request
*
* @generated from service accounts.v1.AccountsAuthService
*/
export const AccountsAuthService: GenService<{
/**
* Is email for the current account verified
*
* @generated from rpc accounts.v1.AccountsAuthService.IsEmailVerified
*/
isEmailVerified: {
methodKind: "unary";
input: typeof IsEmailVerifiedRequestSchema;
output: typeof IsEmailVerifiedResponseSchema;
},
}> = /*@__PURE__*/
serviceDesc(file_accounts_v1_accounts_v1, 1);

View File

@@ -10,7 +10,7 @@ import type { Message } from "@bufbuild/protobuf";
* Describes the file test/v1/test_v1.proto. * Describes the file test/v1/test_v1.proto.
*/ */
export const file_test_v1_test_v1: GenFile = /*@__PURE__*/ export const file_test_v1_test_v1: GenFile = /*@__PURE__*/
fileDesc("ChV0ZXN0L3YxL3Rlc3RfdjEucHJvdG8SB3Rlc3QudjEiDQoLUGluZ1JlcXVlc3QiDgoMUGluZ1Jlc3BvbnNlIg0KC1BvbmdSZXF1ZXN0Ig4KDFBvbmdSZXNwb25zZTJ7CgtUZXN0U2VydmljZRI1CgRQaW5nEhQudGVzdC52MS5QaW5nUmVxdWVzdBoVLnRlc3QudjEuUGluZ1Jlc3BvbnNlIgASNQoEUG9uZxIULnRlc3QudjEuUG9uZ1JlcXVlc3QaFS50ZXN0LnYxLlBvbmdSZXNwb25zZSIAQkVaQ2dpdGVhLmJhZGhvdXNlcGxhbnRzLm5ldC9zb2Z0cGxheWVyL3NvZnRwbGF5ZXItZ28tcHJvdG8vcGtnL3Rlc3QvdjFiBnByb3RvMw"); fileDesc("ChV0ZXN0L3YxL3Rlc3RfdjEucHJvdG8SB3Rlc3QudjEiDQoLUGluZ1JlcXVlc3QiDgoMUGluZ1Jlc3BvbnNlIg0KC1BvbmdSZXF1ZXN0Ig4KDFBvbmdSZXNwb25zZTJKChFUZXN0Tm9BdXRoU2VydmljZRI1CgRQaW5nEhQudGVzdC52MS5QaW5nUmVxdWVzdBoVLnRlc3QudjEuUGluZ1Jlc3BvbnNlIgAySAoPVGVzdEF1dGhTZXJ2aWNlEjUKBFBvbmcSFC50ZXN0LnYxLlBvbmdSZXF1ZXN0GhUudGVzdC52MS5Qb25nUmVzcG9uc2UiAEJFWkNnaXRlYS5iYWRob3VzZXBsYW50cy5uZXQvc29mdHBsYXllci9zb2Z0cGxheWVyLWdvLXByb3RvL3BrZy90ZXN0L3YxYgZwcm90bzM");
/** /**
* @generated from message test.v1.PingRequest * @generated from message test.v1.PingRequest
@@ -68,19 +68,26 @@ export const PongResponseSchema: GenMessage<PongResponse> = /*@__PURE__*/
* * * *
* Service for handling environments * Service for handling environments
* *
* @generated from service test.v1.TestService * @generated from service test.v1.TestNoAuthService
*/ */
export const TestService: GenService<{ export const TestNoAuthService: GenService<{
/** /**
* @generated from rpc test.v1.TestService.Ping * @generated from rpc test.v1.TestNoAuthService.Ping
*/ */
ping: { ping: {
methodKind: "unary"; methodKind: "unary";
input: typeof PingRequestSchema; input: typeof PingRequestSchema;
output: typeof PingResponseSchema; output: typeof PingResponseSchema;
}, },
}> = /*@__PURE__*/
serviceDesc(file_test_v1_test_v1, 0);
/**
* @generated from service test.v1.TestAuthService
*/
export const TestAuthService: GenService<{
/** /**
* @generated from rpc test.v1.TestService.Pong * @generated from rpc test.v1.TestAuthService.Pong
*/ */
pong: { pong: {
methodKind: "unary"; methodKind: "unary";
@@ -88,5 +95,5 @@ export const TestService: GenService<{
output: typeof PongResponseSchema; output: typeof PongResponseSchema;
}, },
}> = /*@__PURE__*/ }> = /*@__PURE__*/
serviceDesc(file_test_v1_test_v1, 0); serviceDesc(file_test_v1_test_v1, 1);