geniebox-shared-lib 2.5.6 → 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/index.d.ts +1 -1
- package/dist/index.js +18 -5
- package/dist/user.interface.d.ts +0 -23
- package/dist/user.interface.js +1 -197
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ 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, UserOAuthIdentity, FindOAuthIdentityRequest, CreateOAuthIdentityRequest, UserServiceService as UserService, } from "./user.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
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";
|
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,10 @@ 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; } });
|
|
62
75
|
Object.defineProperty(exports, "UserOAuthIdentity", { enumerable: true, get: function () { return user_interface_1.UserOAuthIdentity; } });
|
|
63
76
|
Object.defineProperty(exports, "FindOAuthIdentityRequest", { enumerable: true, get: function () { return user_interface_1.FindOAuthIdentityRequest; } });
|
|
64
77
|
Object.defineProperty(exports, "CreateOAuthIdentityRequest", { enumerable: true, get: function () { return user_interface_1.CreateOAuthIdentityRequest; } });
|
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;
|
|
@@ -206,8 +187,6 @@ export interface UserSettingsResponse {
|
|
|
206
187
|
theme: string;
|
|
207
188
|
language: string;
|
|
208
189
|
notifications?: UserNotificationSettings | undefined;
|
|
209
|
-
privacy?: UserPrivacySettings | undefined;
|
|
210
|
-
appearance?: UserAppearanceSettings | undefined;
|
|
211
190
|
createdAt: string;
|
|
212
191
|
updatedAt: string;
|
|
213
192
|
}
|
|
@@ -218,8 +197,6 @@ export declare const UserNotificationSettings: MessageFns<UserNotificationSettin
|
|
|
218
197
|
export declare const UserEmailNotifications: MessageFns<UserEmailNotifications>;
|
|
219
198
|
export declare const UserPushNotifications: MessageFns<UserPushNotifications>;
|
|
220
199
|
export declare const UserInAppNotifications: MessageFns<UserInAppNotifications>;
|
|
221
|
-
export declare const UserPrivacySettings: MessageFns<UserPrivacySettings>;
|
|
222
|
-
export declare const UserAppearanceSettings: MessageFns<UserAppearanceSettings>;
|
|
223
200
|
export declare const UserAuthentication: MessageFns<UserAuthentication>;
|
|
224
201
|
export declare const User: MessageFns<User>;
|
|
225
202
|
export declare const CreateUserPersonal: MessageFns<CreateUserPersonal>;
|
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.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.
|
|
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;
|
|
@@ -2023,12 +1847,6 @@ exports.UserSettingsResponse = {
|
|
|
2023
1847
|
if (message.notifications !== undefined) {
|
|
2024
1848
|
exports.UserNotificationSettings.encode(message.notifications, writer.uint32(42).fork()).join();
|
|
2025
1849
|
}
|
|
2026
|
-
if (message.privacy !== undefined) {
|
|
2027
|
-
exports.UserPrivacySettings.encode(message.privacy, writer.uint32(50).fork()).join();
|
|
2028
|
-
}
|
|
2029
|
-
if (message.appearance !== undefined) {
|
|
2030
|
-
exports.UserAppearanceSettings.encode(message.appearance, writer.uint32(58).fork()).join();
|
|
2031
|
-
}
|
|
2032
1850
|
if (message.createdAt !== "") {
|
|
2033
1851
|
writer.uint32(66).string(message.createdAt);
|
|
2034
1852
|
}
|
|
@@ -2079,20 +1897,6 @@ exports.UserSettingsResponse = {
|
|
|
2079
1897
|
message.notifications = exports.UserNotificationSettings.decode(reader, reader.uint32());
|
|
2080
1898
|
continue;
|
|
2081
1899
|
}
|
|
2082
|
-
case 6: {
|
|
2083
|
-
if (tag !== 50) {
|
|
2084
|
-
break;
|
|
2085
|
-
}
|
|
2086
|
-
message.privacy = exports.UserPrivacySettings.decode(reader, reader.uint32());
|
|
2087
|
-
continue;
|
|
2088
|
-
}
|
|
2089
|
-
case 7: {
|
|
2090
|
-
if (tag !== 58) {
|
|
2091
|
-
break;
|
|
2092
|
-
}
|
|
2093
|
-
message.appearance = exports.UserAppearanceSettings.decode(reader, reader.uint32());
|
|
2094
|
-
continue;
|
|
2095
|
-
}
|
|
2096
1900
|
case 8: {
|
|
2097
1901
|
if (tag !== 66) {
|
|
2098
1902
|
break;
|