geniebox-shared-lib 2.5.5 → 2.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.interface.d.ts +22 -0
- package/dist/auth.interface.js +112 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +22 -5
- package/dist/user.interface.d.ts +46 -23
- package/dist/user.interface.js +220 -197
- package/package.json +1 -1
package/dist/auth.interface.d.ts
CHANGED
|
@@ -68,6 +68,15 @@ export interface VerifyResetCodeRequest {
|
|
|
68
68
|
email: string;
|
|
69
69
|
code: string;
|
|
70
70
|
}
|
|
71
|
+
export interface LoginWithOAuthRequest {
|
|
72
|
+
provider: string;
|
|
73
|
+
providerUserId: string;
|
|
74
|
+
email: string;
|
|
75
|
+
emailVerified: boolean;
|
|
76
|
+
firstName: string;
|
|
77
|
+
lastName: string;
|
|
78
|
+
photoUrl: string;
|
|
79
|
+
}
|
|
71
80
|
export interface AuthResponse {
|
|
72
81
|
userId: string;
|
|
73
82
|
sessionId: string;
|
|
@@ -100,6 +109,7 @@ export declare const CheckEmailVerifiedRequest: MessageFns<CheckEmailVerifiedReq
|
|
|
100
109
|
export declare const GetByIdRequest: MessageFns<GetByIdRequest>;
|
|
101
110
|
export declare const ResendConfirmationCodeRequest: MessageFns<ResendConfirmationCodeRequest>;
|
|
102
111
|
export declare const VerifyResetCodeRequest: MessageFns<VerifyResetCodeRequest>;
|
|
112
|
+
export declare const LoginWithOAuthRequest: MessageFns<LoginWithOAuthRequest>;
|
|
103
113
|
export declare const AuthResponse: MessageFns<AuthResponse>;
|
|
104
114
|
export declare const RefreshTokenResponse: MessageFns<RefreshTokenResponse>;
|
|
105
115
|
export declare const ConfirmEmailResponse: MessageFns<ConfirmEmailResponse>;
|
|
@@ -107,6 +117,7 @@ export declare const CheckEmailVerifiedResponse: MessageFns<CheckEmailVerifiedRe
|
|
|
107
117
|
export interface AuthServiceClient {
|
|
108
118
|
profile(request: GetByIdRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
109
119
|
login(request: LoginCredentials, metadata?: Metadata): Observable<AuthResponse>;
|
|
120
|
+
loginWithOAuth(request: LoginWithOAuthRequest, metadata?: Metadata): Observable<AuthResponse>;
|
|
110
121
|
register(request: RegisterCredentials, metadata?: Metadata): Observable<AuthResponse>;
|
|
111
122
|
refresh(request: RefreshRequest, metadata?: Metadata): Observable<AuthResponse>;
|
|
112
123
|
logout(request: LogoutRequest, metadata?: Metadata): Observable<Empty>;
|
|
@@ -121,6 +132,7 @@ export interface AuthServiceClient {
|
|
|
121
132
|
export interface AuthServiceController {
|
|
122
133
|
profile(request: GetByIdRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
123
134
|
login(request: LoginCredentials, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
135
|
+
loginWithOAuth(request: LoginWithOAuthRequest, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
124
136
|
register(request: RegisterCredentials, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
125
137
|
refresh(request: RefreshRequest, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
126
138
|
logout(request: LogoutRequest, metadata?: Metadata): void;
|
|
@@ -154,6 +166,15 @@ export declare const AuthServiceService: {
|
|
|
154
166
|
readonly responseSerialize: (value: AuthResponse) => Buffer;
|
|
155
167
|
readonly responseDeserialize: (value: Buffer) => AuthResponse;
|
|
156
168
|
};
|
|
169
|
+
readonly loginWithOAuth: {
|
|
170
|
+
readonly path: "/auth.AuthService/loginWithOAuth";
|
|
171
|
+
readonly requestStream: false;
|
|
172
|
+
readonly responseStream: false;
|
|
173
|
+
readonly requestSerialize: (value: LoginWithOAuthRequest) => Buffer;
|
|
174
|
+
readonly requestDeserialize: (value: Buffer) => LoginWithOAuthRequest;
|
|
175
|
+
readonly responseSerialize: (value: AuthResponse) => Buffer;
|
|
176
|
+
readonly responseDeserialize: (value: Buffer) => AuthResponse;
|
|
177
|
+
};
|
|
157
178
|
readonly register: {
|
|
158
179
|
readonly path: "/auth.AuthService/register";
|
|
159
180
|
readonly requestStream: false;
|
|
@@ -248,6 +269,7 @@ export declare const AuthServiceService: {
|
|
|
248
269
|
export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
249
270
|
profile: handleUnaryCall<GetByIdRequest, UserResponse>;
|
|
250
271
|
login: handleUnaryCall<LoginCredentials, AuthResponse>;
|
|
272
|
+
loginWithOAuth: handleUnaryCall<LoginWithOAuthRequest, AuthResponse>;
|
|
251
273
|
register: handleUnaryCall<RegisterCredentials, AuthResponse>;
|
|
252
274
|
refresh: handleUnaryCall<RefreshRequest, AuthResponse>;
|
|
253
275
|
logout: handleUnaryCall<LogoutRequest, Empty>;
|
package/dist/auth.interface.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v5.28.2
|
|
6
6
|
// source: auth.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AuthServiceService = exports.AUTH_SERVICE_NAME = exports.CheckEmailVerifiedResponse = exports.ConfirmEmailResponse = exports.RefreshTokenResponse = exports.AuthResponse = exports.VerifyResetCodeRequest = exports.ResendConfirmationCodeRequest = exports.GetByIdRequest = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.RefreshRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.LogoutRequest = exports.LoginCredentials = exports.RegisterCredentials = exports.UserResponse = exports.Tokens = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
8
|
+
exports.AuthServiceService = exports.AUTH_SERVICE_NAME = exports.CheckEmailVerifiedResponse = exports.ConfirmEmailResponse = exports.RefreshTokenResponse = exports.AuthResponse = exports.LoginWithOAuthRequest = exports.VerifyResetCodeRequest = exports.ResendConfirmationCodeRequest = exports.GetByIdRequest = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.RefreshRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.LogoutRequest = exports.LoginCredentials = exports.RegisterCredentials = exports.UserResponse = exports.Tokens = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
@@ -705,6 +705,107 @@ exports.VerifyResetCodeRequest = {
|
|
|
705
705
|
return message;
|
|
706
706
|
},
|
|
707
707
|
};
|
|
708
|
+
function createBaseLoginWithOAuthRequest() {
|
|
709
|
+
return {
|
|
710
|
+
provider: "",
|
|
711
|
+
providerUserId: "",
|
|
712
|
+
email: "",
|
|
713
|
+
emailVerified: false,
|
|
714
|
+
firstName: "",
|
|
715
|
+
lastName: "",
|
|
716
|
+
photoUrl: "",
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
exports.LoginWithOAuthRequest = {
|
|
720
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
721
|
+
if (message.provider !== "") {
|
|
722
|
+
writer.uint32(10).string(message.provider);
|
|
723
|
+
}
|
|
724
|
+
if (message.providerUserId !== "") {
|
|
725
|
+
writer.uint32(18).string(message.providerUserId);
|
|
726
|
+
}
|
|
727
|
+
if (message.email !== "") {
|
|
728
|
+
writer.uint32(26).string(message.email);
|
|
729
|
+
}
|
|
730
|
+
if (message.emailVerified !== false) {
|
|
731
|
+
writer.uint32(32).bool(message.emailVerified);
|
|
732
|
+
}
|
|
733
|
+
if (message.firstName !== "") {
|
|
734
|
+
writer.uint32(42).string(message.firstName);
|
|
735
|
+
}
|
|
736
|
+
if (message.lastName !== "") {
|
|
737
|
+
writer.uint32(50).string(message.lastName);
|
|
738
|
+
}
|
|
739
|
+
if (message.photoUrl !== "") {
|
|
740
|
+
writer.uint32(58).string(message.photoUrl);
|
|
741
|
+
}
|
|
742
|
+
return writer;
|
|
743
|
+
},
|
|
744
|
+
decode(input, length) {
|
|
745
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
746
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
747
|
+
const message = createBaseLoginWithOAuthRequest();
|
|
748
|
+
while (reader.pos < end) {
|
|
749
|
+
const tag = reader.uint32();
|
|
750
|
+
switch (tag >>> 3) {
|
|
751
|
+
case 1: {
|
|
752
|
+
if (tag !== 10) {
|
|
753
|
+
break;
|
|
754
|
+
}
|
|
755
|
+
message.provider = reader.string();
|
|
756
|
+
continue;
|
|
757
|
+
}
|
|
758
|
+
case 2: {
|
|
759
|
+
if (tag !== 18) {
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
762
|
+
message.providerUserId = reader.string();
|
|
763
|
+
continue;
|
|
764
|
+
}
|
|
765
|
+
case 3: {
|
|
766
|
+
if (tag !== 26) {
|
|
767
|
+
break;
|
|
768
|
+
}
|
|
769
|
+
message.email = reader.string();
|
|
770
|
+
continue;
|
|
771
|
+
}
|
|
772
|
+
case 4: {
|
|
773
|
+
if (tag !== 32) {
|
|
774
|
+
break;
|
|
775
|
+
}
|
|
776
|
+
message.emailVerified = reader.bool();
|
|
777
|
+
continue;
|
|
778
|
+
}
|
|
779
|
+
case 5: {
|
|
780
|
+
if (tag !== 42) {
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
message.firstName = reader.string();
|
|
784
|
+
continue;
|
|
785
|
+
}
|
|
786
|
+
case 6: {
|
|
787
|
+
if (tag !== 50) {
|
|
788
|
+
break;
|
|
789
|
+
}
|
|
790
|
+
message.lastName = reader.string();
|
|
791
|
+
continue;
|
|
792
|
+
}
|
|
793
|
+
case 7: {
|
|
794
|
+
if (tag !== 58) {
|
|
795
|
+
break;
|
|
796
|
+
}
|
|
797
|
+
message.photoUrl = reader.string();
|
|
798
|
+
continue;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
802
|
+
break;
|
|
803
|
+
}
|
|
804
|
+
reader.skip(tag & 7);
|
|
805
|
+
}
|
|
806
|
+
return message;
|
|
807
|
+
},
|
|
808
|
+
};
|
|
708
809
|
function createBaseAuthResponse() {
|
|
709
810
|
return { userId: "", sessionId: "" };
|
|
710
811
|
}
|
|
@@ -892,6 +993,7 @@ function AuthServiceControllerMethods() {
|
|
|
892
993
|
const grpcMethods = [
|
|
893
994
|
"profile",
|
|
894
995
|
"login",
|
|
996
|
+
"loginWithOAuth",
|
|
895
997
|
"register",
|
|
896
998
|
"refresh",
|
|
897
999
|
"logout",
|
|
@@ -934,6 +1036,15 @@ exports.AuthServiceService = {
|
|
|
934
1036
|
responseSerialize: (value) => Buffer.from(exports.AuthResponse.encode(value).finish()),
|
|
935
1037
|
responseDeserialize: (value) => exports.AuthResponse.decode(value),
|
|
936
1038
|
},
|
|
1039
|
+
loginWithOAuth: {
|
|
1040
|
+
path: "/auth.AuthService/loginWithOAuth",
|
|
1041
|
+
requestStream: false,
|
|
1042
|
+
responseStream: false,
|
|
1043
|
+
requestSerialize: (value) => Buffer.from(exports.LoginWithOAuthRequest.encode(value).finish()),
|
|
1044
|
+
requestDeserialize: (value) => exports.LoginWithOAuthRequest.decode(value),
|
|
1045
|
+
responseSerialize: (value) => Buffer.from(exports.AuthResponse.encode(value).finish()),
|
|
1046
|
+
responseDeserialize: (value) => exports.AuthResponse.decode(value),
|
|
1047
|
+
},
|
|
937
1048
|
register: {
|
|
938
1049
|
path: "/auth.AuthService/register",
|
|
939
1050
|
requestStream: false,
|
package/dist/index.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ export { WorkflowClient } from "./workflow.client";
|
|
|
15
15
|
export { LibraryClient } from "./library.client";
|
|
16
16
|
export { ChatClient } from "./chat.client";
|
|
17
17
|
export { GenerationClient } from "./generation.client";
|
|
18
|
-
export { MessageFns as UserMessageFns, protobufPackage as UserProtobufPackage, User, CreateUserRequest, CreateUserPersonal, UpdateUserRequest, FindOneRequest, UserResponse, UsersResponse, FindByEmailRequest, FindByPhoneRequest, UpdateUserPersonal, UpdatePasswordRequest, UpdateEmailVerificationRequest, ResetPasswordData, GetEmailVerificationStatusRequest, EmailVerificationStatusResponse, UserServiceService as UserService, } from "./user.interface";
|
|
19
|
-
export { MessageFns as AuthMessageFns, protobufPackage as AuthProtobufPackage, LoginCredentials, RegisterCredentials, LogoutRequest, RefreshRequest, AuthResponse, RefreshTokenResponse, RecoverRequest, ResetPasswordRequest, ConfirmEmailRequest, ConfirmEmailByCodeRequest, ConfirmEmailResponse, CheckEmailVerifiedRequest, CheckEmailVerifiedResponse, ResendConfirmationCodeRequest, VerifyResetCodeRequest, } from "./auth.interface";
|
|
18
|
+
export { MessageFns as UserMessageFns, protobufPackage as UserProtobufPackage, User, UserPersonal, UserSettings, UserNotificationSettings, UserEmailNotifications, UserPushNotifications, UserInAppNotifications, UserAuthentication, CreateUserRequest, CreateUserPersonal, CreateUserAuthentication, UpdateUserRequest, FindOneRequest, UserResponse, UsersResponse, FindByEmailRequest, FindByPhoneRequest, UpdateUserPersonal, UpdatePasswordRequest, UpdateEmailVerificationRequest, ResetPasswordData, GetEmailVerificationStatusRequest, EmailVerificationStatusResponse, GetUserSettingsRequest, UpdateUserSettingsRequest, CreateUserSettingsRequest, UserSettingsResponse, UserOAuthIdentity, FindOAuthIdentityRequest, CreateOAuthIdentityRequest, UserServiceService as UserService, } from "./user.interface";
|
|
19
|
+
export { MessageFns as AuthMessageFns, protobufPackage as AuthProtobufPackage, LoginCredentials, RegisterCredentials, LogoutRequest, RefreshRequest, AuthResponse, RefreshTokenResponse, RecoverRequest, ResetPasswordRequest, ConfirmEmailRequest, ConfirmEmailByCodeRequest, ConfirmEmailResponse, CheckEmailVerifiedRequest, CheckEmailVerifiedResponse, ResendConfirmationCodeRequest, VerifyResetCodeRequest, LoginWithOAuthRequest, } from "./auth.interface";
|
|
20
20
|
export { MessageFns as EndpointMessageFns, protobufPackage as EndpointProtobufPackage, ENDPOINT_PACKAGE_NAME, ENDPOINT_SERVICE_NAME, Provider as EndpointProvider, Model as EndpointModel, Pricing as EndpointPricing, EndpointConfig, EndpointRequest, ProvidersRequest, ProvidersResponse, ModelsRequest, ModelsResponse, PricingRequest, PricingResponse, ValidateEndpointRequest, ValidateEndpointResponse, CreateEndpointRequest, UpdateEndpointRequest, GetEndpointByIdRequest, ListEndpointsRequest, DeleteEndpointRequest, CreateEndpointResponse, UpdateEndpointResponse, GetEndpointByIdResponse, ListEndpointsResponse, DeleteEndpointResponse, EndpointServiceClient, EndpointServiceController, EndpointServiceService as EndpointService, } from "./endpoint.interface";
|
|
21
21
|
export { MessageFns as OpenAIMessageFns, protobufPackage as OpenAIProtobufPackage, CreateRequest as OpenAICreateRequest, CreateResponse as OpenAICreateResponse, OpenAIServiceService as OpenAIService, } from "./openai.interface";
|
|
22
22
|
export { UploadRequest, UploadResponse, DownloadRequest, DownloadResponse, DeleteRequest, DeleteResponse, StorageServiceService as StorageService, protobufPackage as FileProtobufPackage, } from "./storage.interface";
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
3
|
+
exports.AuthProtobufPackage = exports.UserService = exports.CreateOAuthIdentityRequest = exports.FindOAuthIdentityRequest = exports.UserOAuthIdentity = exports.UserSettingsResponse = exports.CreateUserSettingsRequest = exports.UpdateUserSettingsRequest = exports.GetUserSettingsRequest = exports.EmailVerificationStatusResponse = exports.GetEmailVerificationStatusRequest = exports.ResetPasswordData = exports.UpdateEmailVerificationRequest = exports.UpdatePasswordRequest = exports.UpdateUserPersonal = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.UsersResponse = exports.UserResponse = exports.FindOneRequest = exports.UpdateUserRequest = exports.CreateUserAuthentication = exports.CreateUserPersonal = exports.CreateUserRequest = exports.UserAuthentication = exports.UserInAppNotifications = exports.UserPushNotifications = exports.UserEmailNotifications = exports.UserNotificationSettings = exports.UserSettings = exports.UserPersonal = exports.User = exports.UserProtobufPackage = exports.GenerationClient = exports.ChatClient = exports.LibraryClient = exports.WorkflowClient = exports.MCPClient = exports.AgentClient = exports.BillingClient = exports.ResponseClient = exports.RequestClient = exports.KeyClient = exports.EventClient = exports.StorageClient = exports.OpenAIClient = exports.EndpointClient = exports.AuthClient = exports.UsersClient = exports.SharedModule = void 0;
|
|
4
|
+
exports.DownloadRequest = exports.UploadResponse = exports.UploadRequest = exports.OpenAIService = exports.OpenAICreateResponse = exports.OpenAICreateRequest = exports.OpenAIProtobufPackage = exports.EndpointService = exports.DeleteEndpointResponse = exports.ListEndpointsResponse = exports.GetEndpointByIdResponse = exports.UpdateEndpointResponse = exports.CreateEndpointResponse = exports.DeleteEndpointRequest = exports.ListEndpointsRequest = exports.GetEndpointByIdRequest = exports.UpdateEndpointRequest = exports.CreateEndpointRequest = exports.ValidateEndpointResponse = exports.ValidateEndpointRequest = exports.PricingResponse = exports.PricingRequest = exports.ModelsResponse = exports.ModelsRequest = exports.ProvidersResponse = exports.ProvidersRequest = exports.EndpointRequest = exports.EndpointConfig = exports.EndpointPricing = exports.EndpointModel = exports.EndpointProvider = exports.ENDPOINT_SERVICE_NAME = exports.ENDPOINT_PACKAGE_NAME = exports.EndpointProtobufPackage = exports.LoginWithOAuthRequest = exports.VerifyResetCodeRequest = exports.ResendConfirmationCodeRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.RefreshTokenResponse = exports.AuthResponse = exports.RefreshRequest = exports.LogoutRequest = exports.RegisterCredentials = exports.LoginCredentials = void 0;
|
|
5
|
+
exports.Payment = exports.UsageStats = exports.Usage = exports.Transaction = exports.Balance = exports.BillingProtobufPackage = exports.ResponseService = exports.StreamUpdate = exports.StreamUpdatesRequest = exports.ProcessResponseResponse = exports.ProcessResponseRequest = exports.ResponseProtobufPackage = exports.RequestService = exports.StreamChunk = exports.RequestLog = exports.StreamRequestRequest = exports.CancelRequestResponse = exports.CancelRequestRequest = exports.RequestResultResponse = exports.GetRequestResultRequest = exports.RequestStatusResponse = exports.GetRequestStatusRequest = exports.CreateRequestResponse = exports.CreateRequestRequest = exports.RequestProtobufPackage = exports.KeyService = exports.GetSystemKeyRequest = exports.ValidateKeyResponse = exports.ValidateKeyRequest = exports.GetKeysByUserRequest = exports.KeysResponse = exports.KeyResponse = exports.GetKeyByIdRequest = exports.RemoveKeyRequest = exports.UpdateKeyRequest = exports.CreateKeyRequest = exports.Key = exports.KeysProtobufPackage = exports.EventService = exports.EmitResponse = exports.BroadcastRequest = exports.EmitToUserRequest = exports.EventMessage = exports.SubscribeRequest = exports.EventProtobufPackage = exports.FileProtobufPackage = exports.StorageService = exports.DeleteResponse = exports.DeleteRequest = exports.DownloadResponse = void 0;
|
|
6
|
+
exports.UpdateNodeRequest = exports.CreateNodeRequest = exports.DeleteWorkflowRequest = exports.ListWorkflowsRequest = exports.GetWorkflowRequest = exports.UpdateWorkflowRequest = exports.CreateWorkflowRequest = exports.FullWorkflow = exports.WorkflowEdge = exports.WorkflowNode = exports.Workflow = exports.WorkflowProtobufPackage = exports.AgentService = exports.AgentsResponse = exports.DeleteAgentRequest = exports.ListAgentsRequest = exports.GetAgentRequest = exports.UpdateAgentRequest = exports.CreateAgentRequest = exports.Agent = exports.AgentProtobufPackage = exports.BillingService = exports.ProcessWebhookResponse = exports.ProcessWebhookRequest = exports.GetPaymentsByUserResponse = exports.GetPaymentsByUserRequest = exports.GetPaymentResponse = exports.GetPaymentRequest = exports.CreatePaymentResponse = exports.CreatePaymentRequest = exports.GetUsageByUserResponse = exports.GetUsageByUserRequest = exports.GetUsageByKeyResponse = exports.GetUsageByKeyRequest = exports.GetUsageStatsResponse = exports.GetUsageStatsRequest = exports.RecordUsageResponse = exports.RecordUsageRequest = exports.GetTransactionResponse = exports.GetTransactionRequest = exports.GetTransactionsResponse = exports.GetTransactionsRequest = exports.CreateTransactionResponse = exports.CreateTransactionRequest = exports.DepositResponse = exports.DepositRequest = exports.ChargeResponse = exports.ChargeRequest = exports.GetBalanceResponse = exports.GetBalanceRequest = void 0;
|
|
7
|
+
exports.AddMessageRequest = exports.DeleteChatRequest = exports.ListChatsRequest = exports.GetChatRequest = exports.UpdateChatRequest = exports.CreateChatRequest = exports.ChatMessage = exports.Chat = exports.ChatProtobufPackage = exports.LibraryService = exports.ArchiveItemsResponse = exports.ListArchiveItemsRequest = exports.ArchivesResponse = exports.BookmarksResponse = exports.RemoveItemFromArchiveRequest = exports.AddItemToArchiveRequest = exports.ListArchivesRequest = exports.DeleteArchiveRequest = exports.UpdateArchiveRequest = exports.CreateArchiveRequest = exports.ListBookmarksRequest = exports.DeleteBookmarkRequest = exports.CreateBookmarkRequest = exports.ArchiveItem = exports.Archive = exports.Bookmark = exports.LibraryProtobufPackage = exports.McpService = exports.McpServersResponse = exports.McpToolCustomizationsResponse = exports.McpServerCustomizationsResponse = exports.ListToolCustomizationsRequest = exports.ListServerCustomizationsRequest = exports.SetToolCustomizationRequest = exports.SetServerCustomizationRequest = exports.DeleteMcpServerRequest = exports.ListMcpServersRequest = exports.GetMcpServerRequest = exports.UpdateMcpServerRequest = exports.CreateMcpServerRequest = exports.McpOAuthSession = exports.McpToolCustomization = exports.McpServerCustomization = exports.McpServer = exports.McpProtobufPackage = exports.WorkflowService = exports.WorkflowsResponse = exports.DeleteEdgeRequest = exports.CreateEdgeRequest = exports.DeleteNodeRequest = void 0;
|
|
8
|
+
exports.GenerationService = exports.CancelRunRequest = exports.SubmitToolResultRequest = exports.StartChatRunResponse = exports.StartChatRunRequest = exports.GenerationProtobufPackage = exports.ChatService = exports.MessagesResponse = exports.ChatsResponse = exports.GetMessagesRequest = void 0;
|
|
8
9
|
var shared_module_1 = require("./shared.module");
|
|
9
10
|
Object.defineProperty(exports, "SharedModule", { enumerable: true, get: function () { return shared_module_1.SharedModule; } });
|
|
10
11
|
var user_client_1 = require("./user.client");
|
|
@@ -45,8 +46,16 @@ Object.defineProperty(exports, "GenerationClient", { enumerable: true, get: func
|
|
|
45
46
|
var user_interface_1 = require("./user.interface");
|
|
46
47
|
Object.defineProperty(exports, "UserProtobufPackage", { enumerable: true, get: function () { return user_interface_1.protobufPackage; } });
|
|
47
48
|
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_interface_1.User; } });
|
|
49
|
+
Object.defineProperty(exports, "UserPersonal", { enumerable: true, get: function () { return user_interface_1.UserPersonal; } });
|
|
50
|
+
Object.defineProperty(exports, "UserSettings", { enumerable: true, get: function () { return user_interface_1.UserSettings; } });
|
|
51
|
+
Object.defineProperty(exports, "UserNotificationSettings", { enumerable: true, get: function () { return user_interface_1.UserNotificationSettings; } });
|
|
52
|
+
Object.defineProperty(exports, "UserEmailNotifications", { enumerable: true, get: function () { return user_interface_1.UserEmailNotifications; } });
|
|
53
|
+
Object.defineProperty(exports, "UserPushNotifications", { enumerable: true, get: function () { return user_interface_1.UserPushNotifications; } });
|
|
54
|
+
Object.defineProperty(exports, "UserInAppNotifications", { enumerable: true, get: function () { return user_interface_1.UserInAppNotifications; } });
|
|
55
|
+
Object.defineProperty(exports, "UserAuthentication", { enumerable: true, get: function () { return user_interface_1.UserAuthentication; } });
|
|
48
56
|
Object.defineProperty(exports, "CreateUserRequest", { enumerable: true, get: function () { return user_interface_1.CreateUserRequest; } });
|
|
49
57
|
Object.defineProperty(exports, "CreateUserPersonal", { enumerable: true, get: function () { return user_interface_1.CreateUserPersonal; } });
|
|
58
|
+
Object.defineProperty(exports, "CreateUserAuthentication", { enumerable: true, get: function () { return user_interface_1.CreateUserAuthentication; } });
|
|
50
59
|
Object.defineProperty(exports, "UpdateUserRequest", { enumerable: true, get: function () { return user_interface_1.UpdateUserRequest; } });
|
|
51
60
|
Object.defineProperty(exports, "FindOneRequest", { enumerable: true, get: function () { return user_interface_1.FindOneRequest; } });
|
|
52
61
|
Object.defineProperty(exports, "UserResponse", { enumerable: true, get: function () { return user_interface_1.UserResponse; } });
|
|
@@ -59,6 +68,13 @@ Object.defineProperty(exports, "UpdateEmailVerificationRequest", { enumerable: t
|
|
|
59
68
|
Object.defineProperty(exports, "ResetPasswordData", { enumerable: true, get: function () { return user_interface_1.ResetPasswordData; } });
|
|
60
69
|
Object.defineProperty(exports, "GetEmailVerificationStatusRequest", { enumerable: true, get: function () { return user_interface_1.GetEmailVerificationStatusRequest; } });
|
|
61
70
|
Object.defineProperty(exports, "EmailVerificationStatusResponse", { enumerable: true, get: function () { return user_interface_1.EmailVerificationStatusResponse; } });
|
|
71
|
+
Object.defineProperty(exports, "GetUserSettingsRequest", { enumerable: true, get: function () { return user_interface_1.GetUserSettingsRequest; } });
|
|
72
|
+
Object.defineProperty(exports, "UpdateUserSettingsRequest", { enumerable: true, get: function () { return user_interface_1.UpdateUserSettingsRequest; } });
|
|
73
|
+
Object.defineProperty(exports, "CreateUserSettingsRequest", { enumerable: true, get: function () { return user_interface_1.CreateUserSettingsRequest; } });
|
|
74
|
+
Object.defineProperty(exports, "UserSettingsResponse", { enumerable: true, get: function () { return user_interface_1.UserSettingsResponse; } });
|
|
75
|
+
Object.defineProperty(exports, "UserOAuthIdentity", { enumerable: true, get: function () { return user_interface_1.UserOAuthIdentity; } });
|
|
76
|
+
Object.defineProperty(exports, "FindOAuthIdentityRequest", { enumerable: true, get: function () { return user_interface_1.FindOAuthIdentityRequest; } });
|
|
77
|
+
Object.defineProperty(exports, "CreateOAuthIdentityRequest", { enumerable: true, get: function () { return user_interface_1.CreateOAuthIdentityRequest; } });
|
|
62
78
|
Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return user_interface_1.UserServiceService; } });
|
|
63
79
|
// ============================
|
|
64
80
|
// Auth exports
|
|
@@ -80,6 +96,7 @@ Object.defineProperty(exports, "CheckEmailVerifiedRequest", { enumerable: true,
|
|
|
80
96
|
Object.defineProperty(exports, "CheckEmailVerifiedResponse", { enumerable: true, get: function () { return auth_interface_1.CheckEmailVerifiedResponse; } });
|
|
81
97
|
Object.defineProperty(exports, "ResendConfirmationCodeRequest", { enumerable: true, get: function () { return auth_interface_1.ResendConfirmationCodeRequest; } });
|
|
82
98
|
Object.defineProperty(exports, "VerifyResetCodeRequest", { enumerable: true, get: function () { return auth_interface_1.VerifyResetCodeRequest; } });
|
|
99
|
+
Object.defineProperty(exports, "LoginWithOAuthRequest", { enumerable: true, get: function () { return auth_interface_1.LoginWithOAuthRequest; } });
|
|
83
100
|
// ============================
|
|
84
101
|
// Endpoint exports
|
|
85
102
|
// ============================
|
package/dist/user.interface.d.ts
CHANGED
|
@@ -26,8 +26,6 @@ export interface UserSettings {
|
|
|
26
26
|
/** "ru" | "en" */
|
|
27
27
|
language: string;
|
|
28
28
|
notifications?: UserNotificationSettings | undefined;
|
|
29
|
-
privacy?: UserPrivacySettings | undefined;
|
|
30
|
-
appearance?: UserAppearanceSettings | undefined;
|
|
31
29
|
createdAt: string;
|
|
32
30
|
updatedAt: string;
|
|
33
31
|
}
|
|
@@ -54,19 +52,6 @@ export interface UserInAppNotifications {
|
|
|
54
52
|
security: boolean;
|
|
55
53
|
updates: boolean;
|
|
56
54
|
}
|
|
57
|
-
export interface UserPrivacySettings {
|
|
58
|
-
/** "public" | "private" | "friends" */
|
|
59
|
-
profileVisibility: string;
|
|
60
|
-
showEmail: boolean;
|
|
61
|
-
showPhone: boolean;
|
|
62
|
-
allowAnalytics: boolean;
|
|
63
|
-
}
|
|
64
|
-
export interface UserAppearanceSettings {
|
|
65
|
-
/** "small" | "medium" | "large" */
|
|
66
|
-
fontSize: string;
|
|
67
|
-
compactMode: boolean;
|
|
68
|
-
showAnimations: boolean;
|
|
69
|
-
}
|
|
70
55
|
export interface UserAuthentication {
|
|
71
56
|
uuid: string;
|
|
72
57
|
userId: string;
|
|
@@ -148,8 +133,6 @@ export interface UpdateUserSettingsRequest {
|
|
|
148
133
|
theme?: string | undefined;
|
|
149
134
|
language?: string | undefined;
|
|
150
135
|
notifications?: UserNotificationSettings | undefined;
|
|
151
|
-
privacy?: UserPrivacySettings | undefined;
|
|
152
|
-
appearance?: UserAppearanceSettings | undefined;
|
|
153
136
|
}
|
|
154
137
|
export interface CreateUserSettingsRequest {
|
|
155
138
|
userId: string;
|
|
@@ -158,8 +141,6 @@ export interface CreateUserSettingsRequest {
|
|
|
158
141
|
/** default: "ru" */
|
|
159
142
|
language: string;
|
|
160
143
|
notifications?: UserNotificationSettings | undefined;
|
|
161
|
-
privacy?: UserPrivacySettings | undefined;
|
|
162
|
-
appearance?: UserAppearanceSettings | undefined;
|
|
163
144
|
}
|
|
164
145
|
export interface UserResponse {
|
|
165
146
|
uuid: string;
|
|
@@ -180,6 +161,25 @@ export interface EmailVerificationStatusResponse {
|
|
|
180
161
|
userId: string;
|
|
181
162
|
emailVerified: boolean;
|
|
182
163
|
}
|
|
164
|
+
export interface UserOAuthIdentity {
|
|
165
|
+
uuid: string;
|
|
166
|
+
userId: string;
|
|
167
|
+
provider: string;
|
|
168
|
+
providerUserId: string;
|
|
169
|
+
email: string;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
updatedAt: string;
|
|
172
|
+
}
|
|
173
|
+
export interface FindOAuthIdentityRequest {
|
|
174
|
+
provider: string;
|
|
175
|
+
providerUserId: string;
|
|
176
|
+
}
|
|
177
|
+
export interface CreateOAuthIdentityRequest {
|
|
178
|
+
userId: string;
|
|
179
|
+
provider: string;
|
|
180
|
+
providerUserId: string;
|
|
181
|
+
email: string;
|
|
182
|
+
}
|
|
183
183
|
/** Settings responses */
|
|
184
184
|
export interface UserSettingsResponse {
|
|
185
185
|
uuid: string;
|
|
@@ -187,8 +187,6 @@ export interface UserSettingsResponse {
|
|
|
187
187
|
theme: string;
|
|
188
188
|
language: string;
|
|
189
189
|
notifications?: UserNotificationSettings | undefined;
|
|
190
|
-
privacy?: UserPrivacySettings | undefined;
|
|
191
|
-
appearance?: UserAppearanceSettings | undefined;
|
|
192
190
|
createdAt: string;
|
|
193
191
|
updatedAt: string;
|
|
194
192
|
}
|
|
@@ -199,8 +197,6 @@ export declare const UserNotificationSettings: MessageFns<UserNotificationSettin
|
|
|
199
197
|
export declare const UserEmailNotifications: MessageFns<UserEmailNotifications>;
|
|
200
198
|
export declare const UserPushNotifications: MessageFns<UserPushNotifications>;
|
|
201
199
|
export declare const UserInAppNotifications: MessageFns<UserInAppNotifications>;
|
|
202
|
-
export declare const UserPrivacySettings: MessageFns<UserPrivacySettings>;
|
|
203
|
-
export declare const UserAppearanceSettings: MessageFns<UserAppearanceSettings>;
|
|
204
200
|
export declare const UserAuthentication: MessageFns<UserAuthentication>;
|
|
205
201
|
export declare const User: MessageFns<User>;
|
|
206
202
|
export declare const CreateUserPersonal: MessageFns<CreateUserPersonal>;
|
|
@@ -222,12 +218,17 @@ export declare const CreateUserSettingsRequest: MessageFns<CreateUserSettingsReq
|
|
|
222
218
|
export declare const UserResponse: MessageFns<UserResponse>;
|
|
223
219
|
export declare const UsersResponse: MessageFns<UsersResponse>;
|
|
224
220
|
export declare const EmailVerificationStatusResponse: MessageFns<EmailVerificationStatusResponse>;
|
|
221
|
+
export declare const UserOAuthIdentity: MessageFns<UserOAuthIdentity>;
|
|
222
|
+
export declare const FindOAuthIdentityRequest: MessageFns<FindOAuthIdentityRequest>;
|
|
223
|
+
export declare const CreateOAuthIdentityRequest: MessageFns<CreateOAuthIdentityRequest>;
|
|
225
224
|
export declare const UserSettingsResponse: MessageFns<UserSettingsResponse>;
|
|
226
225
|
export interface UserServiceClient {
|
|
227
226
|
create(request: CreateUserRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
228
227
|
findOne(request: FindOneRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
229
228
|
findByEmail(request: FindByEmailRequest, metadata?: Metadata): Observable<User>;
|
|
230
229
|
findByPhone(request: FindByPhoneRequest, metadata?: Metadata): Observable<User>;
|
|
230
|
+
findOAuthIdentity(request: FindOAuthIdentityRequest, metadata?: Metadata): Observable<UserOAuthIdentity>;
|
|
231
|
+
createOAuthIdentity(request: CreateOAuthIdentityRequest, metadata?: Metadata): Observable<UserOAuthIdentity>;
|
|
231
232
|
findAll(request: Empty, metadata?: Metadata): Observable<UsersResponse>;
|
|
232
233
|
update(request: UpdateUserRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
233
234
|
updatePersonal(request: UpdateUserPersonal, metadata?: Metadata): Observable<UserResponse>;
|
|
@@ -246,6 +247,8 @@ export interface UserServiceController {
|
|
|
246
247
|
findOne(request: FindOneRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
247
248
|
findByEmail(request: FindByEmailRequest, metadata?: Metadata): Promise<User> | Observable<User> | User;
|
|
248
249
|
findByPhone(request: FindByPhoneRequest, metadata?: Metadata): Promise<User> | Observable<User> | User;
|
|
250
|
+
findOAuthIdentity(request: FindOAuthIdentityRequest, metadata?: Metadata): Promise<UserOAuthIdentity> | Observable<UserOAuthIdentity> | UserOAuthIdentity;
|
|
251
|
+
createOAuthIdentity(request: CreateOAuthIdentityRequest, metadata?: Metadata): Promise<UserOAuthIdentity> | Observable<UserOAuthIdentity> | UserOAuthIdentity;
|
|
249
252
|
findAll(request: Empty, metadata?: Metadata): Promise<UsersResponse> | Observable<UsersResponse> | UsersResponse;
|
|
250
253
|
update(request: UpdateUserRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
251
254
|
updatePersonal(request: UpdateUserPersonal, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
@@ -299,6 +302,24 @@ export declare const UserServiceService: {
|
|
|
299
302
|
readonly responseSerialize: (value: User) => Buffer;
|
|
300
303
|
readonly responseDeserialize: (value: Buffer) => User;
|
|
301
304
|
};
|
|
305
|
+
readonly findOAuthIdentity: {
|
|
306
|
+
readonly path: "/user.UserService/findOAuthIdentity";
|
|
307
|
+
readonly requestStream: false;
|
|
308
|
+
readonly responseStream: false;
|
|
309
|
+
readonly requestSerialize: (value: FindOAuthIdentityRequest) => Buffer;
|
|
310
|
+
readonly requestDeserialize: (value: Buffer) => FindOAuthIdentityRequest;
|
|
311
|
+
readonly responseSerialize: (value: UserOAuthIdentity) => Buffer;
|
|
312
|
+
readonly responseDeserialize: (value: Buffer) => UserOAuthIdentity;
|
|
313
|
+
};
|
|
314
|
+
readonly createOAuthIdentity: {
|
|
315
|
+
readonly path: "/user.UserService/createOAuthIdentity";
|
|
316
|
+
readonly requestStream: false;
|
|
317
|
+
readonly responseStream: false;
|
|
318
|
+
readonly requestSerialize: (value: CreateOAuthIdentityRequest) => Buffer;
|
|
319
|
+
readonly requestDeserialize: (value: Buffer) => CreateOAuthIdentityRequest;
|
|
320
|
+
readonly responseSerialize: (value: UserOAuthIdentity) => Buffer;
|
|
321
|
+
readonly responseDeserialize: (value: Buffer) => UserOAuthIdentity;
|
|
322
|
+
};
|
|
302
323
|
readonly findAll: {
|
|
303
324
|
readonly path: "/user.UserService/findAll";
|
|
304
325
|
readonly requestStream: false;
|
|
@@ -405,6 +426,8 @@ export interface UserServiceServer extends UntypedServiceImplementation {
|
|
|
405
426
|
findOne: handleUnaryCall<FindOneRequest, UserResponse>;
|
|
406
427
|
findByEmail: handleUnaryCall<FindByEmailRequest, User>;
|
|
407
428
|
findByPhone: handleUnaryCall<FindByPhoneRequest, User>;
|
|
429
|
+
findOAuthIdentity: handleUnaryCall<FindOAuthIdentityRequest, UserOAuthIdentity>;
|
|
430
|
+
createOAuthIdentity: handleUnaryCall<CreateOAuthIdentityRequest, UserOAuthIdentity>;
|
|
408
431
|
findAll: handleUnaryCall<Empty, UsersResponse>;
|
|
409
432
|
update: handleUnaryCall<UpdateUserRequest, UserResponse>;
|
|
410
433
|
updatePersonal: handleUnaryCall<UpdateUserPersonal, UserResponse>;
|
package/dist/user.interface.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v5.28.2
|
|
6
6
|
// source: user.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.UserServiceService = exports.USER_SERVICE_NAME = exports.UserSettingsResponse = exports.EmailVerificationStatusResponse = exports.UsersResponse = exports.UserResponse = exports.CreateUserSettingsRequest = exports.UpdateUserSettingsRequest = exports.GetUserSettingsRequest = exports.GetEmailVerificationStatusRequest = exports.UpdateEmailVerificationRequest = exports.RemoveUserRequest = exports.ResetPasswordData = exports.UpdatePasswordRequest = exports.UpdateUserPersonal = exports.UpdateUserRequest = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.FindOneRequest = exports.CreateUserRequest = exports.CreateUserAuthentication = exports.CreateUserPersonal = exports.User = exports.UserAuthentication = exports.
|
|
8
|
+
exports.UserServiceService = exports.USER_SERVICE_NAME = exports.UserSettingsResponse = exports.CreateOAuthIdentityRequest = exports.FindOAuthIdentityRequest = exports.UserOAuthIdentity = exports.EmailVerificationStatusResponse = exports.UsersResponse = exports.UserResponse = exports.CreateUserSettingsRequest = exports.UpdateUserSettingsRequest = exports.GetUserSettingsRequest = exports.GetEmailVerificationStatusRequest = exports.UpdateEmailVerificationRequest = exports.RemoveUserRequest = exports.ResetPasswordData = exports.UpdatePasswordRequest = exports.UpdateUserPersonal = exports.UpdateUserRequest = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.FindOneRequest = exports.CreateUserRequest = exports.CreateUserAuthentication = exports.CreateUserPersonal = exports.User = exports.UserAuthentication = exports.UserInAppNotifications = exports.UserPushNotifications = exports.UserEmailNotifications = exports.UserNotificationSettings = exports.UserSettings = exports.UserPersonal = exports.USER_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.UserServiceControllerMethods = UserServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
@@ -189,12 +189,6 @@ exports.UserSettings = {
|
|
|
189
189
|
if (message.notifications !== undefined) {
|
|
190
190
|
exports.UserNotificationSettings.encode(message.notifications, writer.uint32(42).fork()).join();
|
|
191
191
|
}
|
|
192
|
-
if (message.privacy !== undefined) {
|
|
193
|
-
exports.UserPrivacySettings.encode(message.privacy, writer.uint32(50).fork()).join();
|
|
194
|
-
}
|
|
195
|
-
if (message.appearance !== undefined) {
|
|
196
|
-
exports.UserAppearanceSettings.encode(message.appearance, writer.uint32(58).fork()).join();
|
|
197
|
-
}
|
|
198
192
|
if (message.createdAt !== "") {
|
|
199
193
|
writer.uint32(66).string(message.createdAt);
|
|
200
194
|
}
|
|
@@ -245,20 +239,6 @@ exports.UserSettings = {
|
|
|
245
239
|
message.notifications = exports.UserNotificationSettings.decode(reader, reader.uint32());
|
|
246
240
|
continue;
|
|
247
241
|
}
|
|
248
|
-
case 6: {
|
|
249
|
-
if (tag !== 50) {
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
message.privacy = exports.UserPrivacySettings.decode(reader, reader.uint32());
|
|
253
|
-
continue;
|
|
254
|
-
}
|
|
255
|
-
case 7: {
|
|
256
|
-
if (tag !== 58) {
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
message.appearance = exports.UserAppearanceSettings.decode(reader, reader.uint32());
|
|
260
|
-
continue;
|
|
261
|
-
}
|
|
262
242
|
case 8: {
|
|
263
243
|
if (tag !== 66) {
|
|
264
244
|
break;
|
|
@@ -524,122 +504,6 @@ exports.UserInAppNotifications = {
|
|
|
524
504
|
return message;
|
|
525
505
|
},
|
|
526
506
|
};
|
|
527
|
-
function createBaseUserPrivacySettings() {
|
|
528
|
-
return { profileVisibility: "", showEmail: false, showPhone: false, allowAnalytics: false };
|
|
529
|
-
}
|
|
530
|
-
exports.UserPrivacySettings = {
|
|
531
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
532
|
-
if (message.profileVisibility !== "") {
|
|
533
|
-
writer.uint32(10).string(message.profileVisibility);
|
|
534
|
-
}
|
|
535
|
-
if (message.showEmail !== false) {
|
|
536
|
-
writer.uint32(16).bool(message.showEmail);
|
|
537
|
-
}
|
|
538
|
-
if (message.showPhone !== false) {
|
|
539
|
-
writer.uint32(24).bool(message.showPhone);
|
|
540
|
-
}
|
|
541
|
-
if (message.allowAnalytics !== false) {
|
|
542
|
-
writer.uint32(32).bool(message.allowAnalytics);
|
|
543
|
-
}
|
|
544
|
-
return writer;
|
|
545
|
-
},
|
|
546
|
-
decode(input, length) {
|
|
547
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
548
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
549
|
-
const message = createBaseUserPrivacySettings();
|
|
550
|
-
while (reader.pos < end) {
|
|
551
|
-
const tag = reader.uint32();
|
|
552
|
-
switch (tag >>> 3) {
|
|
553
|
-
case 1: {
|
|
554
|
-
if (tag !== 10) {
|
|
555
|
-
break;
|
|
556
|
-
}
|
|
557
|
-
message.profileVisibility = reader.string();
|
|
558
|
-
continue;
|
|
559
|
-
}
|
|
560
|
-
case 2: {
|
|
561
|
-
if (tag !== 16) {
|
|
562
|
-
break;
|
|
563
|
-
}
|
|
564
|
-
message.showEmail = reader.bool();
|
|
565
|
-
continue;
|
|
566
|
-
}
|
|
567
|
-
case 3: {
|
|
568
|
-
if (tag !== 24) {
|
|
569
|
-
break;
|
|
570
|
-
}
|
|
571
|
-
message.showPhone = reader.bool();
|
|
572
|
-
continue;
|
|
573
|
-
}
|
|
574
|
-
case 4: {
|
|
575
|
-
if (tag !== 32) {
|
|
576
|
-
break;
|
|
577
|
-
}
|
|
578
|
-
message.allowAnalytics = reader.bool();
|
|
579
|
-
continue;
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
583
|
-
break;
|
|
584
|
-
}
|
|
585
|
-
reader.skip(tag & 7);
|
|
586
|
-
}
|
|
587
|
-
return message;
|
|
588
|
-
},
|
|
589
|
-
};
|
|
590
|
-
function createBaseUserAppearanceSettings() {
|
|
591
|
-
return { fontSize: "", compactMode: false, showAnimations: false };
|
|
592
|
-
}
|
|
593
|
-
exports.UserAppearanceSettings = {
|
|
594
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
595
|
-
if (message.fontSize !== "") {
|
|
596
|
-
writer.uint32(10).string(message.fontSize);
|
|
597
|
-
}
|
|
598
|
-
if (message.compactMode !== false) {
|
|
599
|
-
writer.uint32(16).bool(message.compactMode);
|
|
600
|
-
}
|
|
601
|
-
if (message.showAnimations !== false) {
|
|
602
|
-
writer.uint32(24).bool(message.showAnimations);
|
|
603
|
-
}
|
|
604
|
-
return writer;
|
|
605
|
-
},
|
|
606
|
-
decode(input, length) {
|
|
607
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
608
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
609
|
-
const message = createBaseUserAppearanceSettings();
|
|
610
|
-
while (reader.pos < end) {
|
|
611
|
-
const tag = reader.uint32();
|
|
612
|
-
switch (tag >>> 3) {
|
|
613
|
-
case 1: {
|
|
614
|
-
if (tag !== 10) {
|
|
615
|
-
break;
|
|
616
|
-
}
|
|
617
|
-
message.fontSize = reader.string();
|
|
618
|
-
continue;
|
|
619
|
-
}
|
|
620
|
-
case 2: {
|
|
621
|
-
if (tag !== 16) {
|
|
622
|
-
break;
|
|
623
|
-
}
|
|
624
|
-
message.compactMode = reader.bool();
|
|
625
|
-
continue;
|
|
626
|
-
}
|
|
627
|
-
case 3: {
|
|
628
|
-
if (tag !== 24) {
|
|
629
|
-
break;
|
|
630
|
-
}
|
|
631
|
-
message.showAnimations = reader.bool();
|
|
632
|
-
continue;
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
636
|
-
break;
|
|
637
|
-
}
|
|
638
|
-
reader.skip(tag & 7);
|
|
639
|
-
}
|
|
640
|
-
return message;
|
|
641
|
-
},
|
|
642
|
-
};
|
|
643
507
|
function createBaseUserAuthentication() {
|
|
644
508
|
return { uuid: "", userId: "", passwordHash: "" };
|
|
645
509
|
}
|
|
@@ -1445,12 +1309,6 @@ exports.UpdateUserSettingsRequest = {
|
|
|
1445
1309
|
if (message.notifications !== undefined) {
|
|
1446
1310
|
exports.UserNotificationSettings.encode(message.notifications, writer.uint32(34).fork()).join();
|
|
1447
1311
|
}
|
|
1448
|
-
if (message.privacy !== undefined) {
|
|
1449
|
-
exports.UserPrivacySettings.encode(message.privacy, writer.uint32(42).fork()).join();
|
|
1450
|
-
}
|
|
1451
|
-
if (message.appearance !== undefined) {
|
|
1452
|
-
exports.UserAppearanceSettings.encode(message.appearance, writer.uint32(50).fork()).join();
|
|
1453
|
-
}
|
|
1454
1312
|
return writer;
|
|
1455
1313
|
},
|
|
1456
1314
|
decode(input, length) {
|
|
@@ -1488,20 +1346,6 @@ exports.UpdateUserSettingsRequest = {
|
|
|
1488
1346
|
message.notifications = exports.UserNotificationSettings.decode(reader, reader.uint32());
|
|
1489
1347
|
continue;
|
|
1490
1348
|
}
|
|
1491
|
-
case 5: {
|
|
1492
|
-
if (tag !== 42) {
|
|
1493
|
-
break;
|
|
1494
|
-
}
|
|
1495
|
-
message.privacy = exports.UserPrivacySettings.decode(reader, reader.uint32());
|
|
1496
|
-
continue;
|
|
1497
|
-
}
|
|
1498
|
-
case 6: {
|
|
1499
|
-
if (tag !== 50) {
|
|
1500
|
-
break;
|
|
1501
|
-
}
|
|
1502
|
-
message.appearance = exports.UserAppearanceSettings.decode(reader, reader.uint32());
|
|
1503
|
-
continue;
|
|
1504
|
-
}
|
|
1505
1349
|
}
|
|
1506
1350
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1507
1351
|
break;
|
|
@@ -1528,12 +1372,6 @@ exports.CreateUserSettingsRequest = {
|
|
|
1528
1372
|
if (message.notifications !== undefined) {
|
|
1529
1373
|
exports.UserNotificationSettings.encode(message.notifications, writer.uint32(34).fork()).join();
|
|
1530
1374
|
}
|
|
1531
|
-
if (message.privacy !== undefined) {
|
|
1532
|
-
exports.UserPrivacySettings.encode(message.privacy, writer.uint32(42).fork()).join();
|
|
1533
|
-
}
|
|
1534
|
-
if (message.appearance !== undefined) {
|
|
1535
|
-
exports.UserAppearanceSettings.encode(message.appearance, writer.uint32(50).fork()).join();
|
|
1536
|
-
}
|
|
1537
1375
|
return writer;
|
|
1538
1376
|
},
|
|
1539
1377
|
decode(input, length) {
|
|
@@ -1571,20 +1409,6 @@ exports.CreateUserSettingsRequest = {
|
|
|
1571
1409
|
message.notifications = exports.UserNotificationSettings.decode(reader, reader.uint32());
|
|
1572
1410
|
continue;
|
|
1573
1411
|
}
|
|
1574
|
-
case 5: {
|
|
1575
|
-
if (tag !== 42) {
|
|
1576
|
-
break;
|
|
1577
|
-
}
|
|
1578
|
-
message.privacy = exports.UserPrivacySettings.decode(reader, reader.uint32());
|
|
1579
|
-
continue;
|
|
1580
|
-
}
|
|
1581
|
-
case 6: {
|
|
1582
|
-
if (tag !== 50) {
|
|
1583
|
-
break;
|
|
1584
|
-
}
|
|
1585
|
-
message.appearance = exports.UserAppearanceSettings.decode(reader, reader.uint32());
|
|
1586
|
-
continue;
|
|
1587
|
-
}
|
|
1588
1412
|
}
|
|
1589
1413
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1590
1414
|
break;
|
|
@@ -1804,6 +1628,205 @@ exports.EmailVerificationStatusResponse = {
|
|
|
1804
1628
|
return message;
|
|
1805
1629
|
},
|
|
1806
1630
|
};
|
|
1631
|
+
function createBaseUserOAuthIdentity() {
|
|
1632
|
+
return { uuid: "", userId: "", provider: "", providerUserId: "", email: "", createdAt: "", updatedAt: "" };
|
|
1633
|
+
}
|
|
1634
|
+
exports.UserOAuthIdentity = {
|
|
1635
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1636
|
+
if (message.uuid !== "") {
|
|
1637
|
+
writer.uint32(10).string(message.uuid);
|
|
1638
|
+
}
|
|
1639
|
+
if (message.userId !== "") {
|
|
1640
|
+
writer.uint32(18).string(message.userId);
|
|
1641
|
+
}
|
|
1642
|
+
if (message.provider !== "") {
|
|
1643
|
+
writer.uint32(26).string(message.provider);
|
|
1644
|
+
}
|
|
1645
|
+
if (message.providerUserId !== "") {
|
|
1646
|
+
writer.uint32(34).string(message.providerUserId);
|
|
1647
|
+
}
|
|
1648
|
+
if (message.email !== "") {
|
|
1649
|
+
writer.uint32(42).string(message.email);
|
|
1650
|
+
}
|
|
1651
|
+
if (message.createdAt !== "") {
|
|
1652
|
+
writer.uint32(50).string(message.createdAt);
|
|
1653
|
+
}
|
|
1654
|
+
if (message.updatedAt !== "") {
|
|
1655
|
+
writer.uint32(58).string(message.updatedAt);
|
|
1656
|
+
}
|
|
1657
|
+
return writer;
|
|
1658
|
+
},
|
|
1659
|
+
decode(input, length) {
|
|
1660
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1661
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1662
|
+
const message = createBaseUserOAuthIdentity();
|
|
1663
|
+
while (reader.pos < end) {
|
|
1664
|
+
const tag = reader.uint32();
|
|
1665
|
+
switch (tag >>> 3) {
|
|
1666
|
+
case 1: {
|
|
1667
|
+
if (tag !== 10) {
|
|
1668
|
+
break;
|
|
1669
|
+
}
|
|
1670
|
+
message.uuid = reader.string();
|
|
1671
|
+
continue;
|
|
1672
|
+
}
|
|
1673
|
+
case 2: {
|
|
1674
|
+
if (tag !== 18) {
|
|
1675
|
+
break;
|
|
1676
|
+
}
|
|
1677
|
+
message.userId = reader.string();
|
|
1678
|
+
continue;
|
|
1679
|
+
}
|
|
1680
|
+
case 3: {
|
|
1681
|
+
if (tag !== 26) {
|
|
1682
|
+
break;
|
|
1683
|
+
}
|
|
1684
|
+
message.provider = reader.string();
|
|
1685
|
+
continue;
|
|
1686
|
+
}
|
|
1687
|
+
case 4: {
|
|
1688
|
+
if (tag !== 34) {
|
|
1689
|
+
break;
|
|
1690
|
+
}
|
|
1691
|
+
message.providerUserId = reader.string();
|
|
1692
|
+
continue;
|
|
1693
|
+
}
|
|
1694
|
+
case 5: {
|
|
1695
|
+
if (tag !== 42) {
|
|
1696
|
+
break;
|
|
1697
|
+
}
|
|
1698
|
+
message.email = reader.string();
|
|
1699
|
+
continue;
|
|
1700
|
+
}
|
|
1701
|
+
case 6: {
|
|
1702
|
+
if (tag !== 50) {
|
|
1703
|
+
break;
|
|
1704
|
+
}
|
|
1705
|
+
message.createdAt = reader.string();
|
|
1706
|
+
continue;
|
|
1707
|
+
}
|
|
1708
|
+
case 7: {
|
|
1709
|
+
if (tag !== 58) {
|
|
1710
|
+
break;
|
|
1711
|
+
}
|
|
1712
|
+
message.updatedAt = reader.string();
|
|
1713
|
+
continue;
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1717
|
+
break;
|
|
1718
|
+
}
|
|
1719
|
+
reader.skip(tag & 7);
|
|
1720
|
+
}
|
|
1721
|
+
return message;
|
|
1722
|
+
},
|
|
1723
|
+
};
|
|
1724
|
+
function createBaseFindOAuthIdentityRequest() {
|
|
1725
|
+
return { provider: "", providerUserId: "" };
|
|
1726
|
+
}
|
|
1727
|
+
exports.FindOAuthIdentityRequest = {
|
|
1728
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1729
|
+
if (message.provider !== "") {
|
|
1730
|
+
writer.uint32(10).string(message.provider);
|
|
1731
|
+
}
|
|
1732
|
+
if (message.providerUserId !== "") {
|
|
1733
|
+
writer.uint32(18).string(message.providerUserId);
|
|
1734
|
+
}
|
|
1735
|
+
return writer;
|
|
1736
|
+
},
|
|
1737
|
+
decode(input, length) {
|
|
1738
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1739
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1740
|
+
const message = createBaseFindOAuthIdentityRequest();
|
|
1741
|
+
while (reader.pos < end) {
|
|
1742
|
+
const tag = reader.uint32();
|
|
1743
|
+
switch (tag >>> 3) {
|
|
1744
|
+
case 1: {
|
|
1745
|
+
if (tag !== 10) {
|
|
1746
|
+
break;
|
|
1747
|
+
}
|
|
1748
|
+
message.provider = reader.string();
|
|
1749
|
+
continue;
|
|
1750
|
+
}
|
|
1751
|
+
case 2: {
|
|
1752
|
+
if (tag !== 18) {
|
|
1753
|
+
break;
|
|
1754
|
+
}
|
|
1755
|
+
message.providerUserId = reader.string();
|
|
1756
|
+
continue;
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1760
|
+
break;
|
|
1761
|
+
}
|
|
1762
|
+
reader.skip(tag & 7);
|
|
1763
|
+
}
|
|
1764
|
+
return message;
|
|
1765
|
+
},
|
|
1766
|
+
};
|
|
1767
|
+
function createBaseCreateOAuthIdentityRequest() {
|
|
1768
|
+
return { userId: "", provider: "", providerUserId: "", email: "" };
|
|
1769
|
+
}
|
|
1770
|
+
exports.CreateOAuthIdentityRequest = {
|
|
1771
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1772
|
+
if (message.userId !== "") {
|
|
1773
|
+
writer.uint32(10).string(message.userId);
|
|
1774
|
+
}
|
|
1775
|
+
if (message.provider !== "") {
|
|
1776
|
+
writer.uint32(18).string(message.provider);
|
|
1777
|
+
}
|
|
1778
|
+
if (message.providerUserId !== "") {
|
|
1779
|
+
writer.uint32(26).string(message.providerUserId);
|
|
1780
|
+
}
|
|
1781
|
+
if (message.email !== "") {
|
|
1782
|
+
writer.uint32(34).string(message.email);
|
|
1783
|
+
}
|
|
1784
|
+
return writer;
|
|
1785
|
+
},
|
|
1786
|
+
decode(input, length) {
|
|
1787
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1788
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1789
|
+
const message = createBaseCreateOAuthIdentityRequest();
|
|
1790
|
+
while (reader.pos < end) {
|
|
1791
|
+
const tag = reader.uint32();
|
|
1792
|
+
switch (tag >>> 3) {
|
|
1793
|
+
case 1: {
|
|
1794
|
+
if (tag !== 10) {
|
|
1795
|
+
break;
|
|
1796
|
+
}
|
|
1797
|
+
message.userId = reader.string();
|
|
1798
|
+
continue;
|
|
1799
|
+
}
|
|
1800
|
+
case 2: {
|
|
1801
|
+
if (tag !== 18) {
|
|
1802
|
+
break;
|
|
1803
|
+
}
|
|
1804
|
+
message.provider = reader.string();
|
|
1805
|
+
continue;
|
|
1806
|
+
}
|
|
1807
|
+
case 3: {
|
|
1808
|
+
if (tag !== 26) {
|
|
1809
|
+
break;
|
|
1810
|
+
}
|
|
1811
|
+
message.providerUserId = reader.string();
|
|
1812
|
+
continue;
|
|
1813
|
+
}
|
|
1814
|
+
case 4: {
|
|
1815
|
+
if (tag !== 34) {
|
|
1816
|
+
break;
|
|
1817
|
+
}
|
|
1818
|
+
message.email = reader.string();
|
|
1819
|
+
continue;
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1823
|
+
break;
|
|
1824
|
+
}
|
|
1825
|
+
reader.skip(tag & 7);
|
|
1826
|
+
}
|
|
1827
|
+
return message;
|
|
1828
|
+
},
|
|
1829
|
+
};
|
|
1807
1830
|
function createBaseUserSettingsResponse() {
|
|
1808
1831
|
return { uuid: "", userId: "", theme: "", language: "", createdAt: "", updatedAt: "" };
|
|
1809
1832
|
}
|
|
@@ -1824,12 +1847,6 @@ exports.UserSettingsResponse = {
|
|
|
1824
1847
|
if (message.notifications !== undefined) {
|
|
1825
1848
|
exports.UserNotificationSettings.encode(message.notifications, writer.uint32(42).fork()).join();
|
|
1826
1849
|
}
|
|
1827
|
-
if (message.privacy !== undefined) {
|
|
1828
|
-
exports.UserPrivacySettings.encode(message.privacy, writer.uint32(50).fork()).join();
|
|
1829
|
-
}
|
|
1830
|
-
if (message.appearance !== undefined) {
|
|
1831
|
-
exports.UserAppearanceSettings.encode(message.appearance, writer.uint32(58).fork()).join();
|
|
1832
|
-
}
|
|
1833
1850
|
if (message.createdAt !== "") {
|
|
1834
1851
|
writer.uint32(66).string(message.createdAt);
|
|
1835
1852
|
}
|
|
@@ -1880,20 +1897,6 @@ exports.UserSettingsResponse = {
|
|
|
1880
1897
|
message.notifications = exports.UserNotificationSettings.decode(reader, reader.uint32());
|
|
1881
1898
|
continue;
|
|
1882
1899
|
}
|
|
1883
|
-
case 6: {
|
|
1884
|
-
if (tag !== 50) {
|
|
1885
|
-
break;
|
|
1886
|
-
}
|
|
1887
|
-
message.privacy = exports.UserPrivacySettings.decode(reader, reader.uint32());
|
|
1888
|
-
continue;
|
|
1889
|
-
}
|
|
1890
|
-
case 7: {
|
|
1891
|
-
if (tag !== 58) {
|
|
1892
|
-
break;
|
|
1893
|
-
}
|
|
1894
|
-
message.appearance = exports.UserAppearanceSettings.decode(reader, reader.uint32());
|
|
1895
|
-
continue;
|
|
1896
|
-
}
|
|
1897
1900
|
case 8: {
|
|
1898
1901
|
if (tag !== 66) {
|
|
1899
1902
|
break;
|
|
@@ -1924,6 +1927,8 @@ function UserServiceControllerMethods() {
|
|
|
1924
1927
|
"findOne",
|
|
1925
1928
|
"findByEmail",
|
|
1926
1929
|
"findByPhone",
|
|
1930
|
+
"findOAuthIdentity",
|
|
1931
|
+
"createOAuthIdentity",
|
|
1927
1932
|
"findAll",
|
|
1928
1933
|
"update",
|
|
1929
1934
|
"updatePersonal",
|
|
@@ -1985,6 +1990,24 @@ exports.UserServiceService = {
|
|
|
1985
1990
|
responseSerialize: (value) => Buffer.from(exports.User.encode(value).finish()),
|
|
1986
1991
|
responseDeserialize: (value) => exports.User.decode(value),
|
|
1987
1992
|
},
|
|
1993
|
+
findOAuthIdentity: {
|
|
1994
|
+
path: "/user.UserService/findOAuthIdentity",
|
|
1995
|
+
requestStream: false,
|
|
1996
|
+
responseStream: false,
|
|
1997
|
+
requestSerialize: (value) => Buffer.from(exports.FindOAuthIdentityRequest.encode(value).finish()),
|
|
1998
|
+
requestDeserialize: (value) => exports.FindOAuthIdentityRequest.decode(value),
|
|
1999
|
+
responseSerialize: (value) => Buffer.from(exports.UserOAuthIdentity.encode(value).finish()),
|
|
2000
|
+
responseDeserialize: (value) => exports.UserOAuthIdentity.decode(value),
|
|
2001
|
+
},
|
|
2002
|
+
createOAuthIdentity: {
|
|
2003
|
+
path: "/user.UserService/createOAuthIdentity",
|
|
2004
|
+
requestStream: false,
|
|
2005
|
+
responseStream: false,
|
|
2006
|
+
requestSerialize: (value) => Buffer.from(exports.CreateOAuthIdentityRequest.encode(value).finish()),
|
|
2007
|
+
requestDeserialize: (value) => exports.CreateOAuthIdentityRequest.decode(value),
|
|
2008
|
+
responseSerialize: (value) => Buffer.from(exports.UserOAuthIdentity.encode(value).finish()),
|
|
2009
|
+
responseDeserialize: (value) => exports.UserOAuthIdentity.decode(value),
|
|
2010
|
+
},
|
|
1988
2011
|
findAll: {
|
|
1989
2012
|
path: "/user.UserService/findAll",
|
|
1990
2013
|
requestStream: false,
|