geniebox-shared-lib 1.0.61 → 1.0.64
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/auth.interface.d.ts +6 -12
- package/dist/auth/auth.interface.js +7 -60
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -3
- package/package.json +1 -1
|
@@ -27,12 +27,7 @@ export interface AuthResponse {
|
|
|
27
27
|
userId: string;
|
|
28
28
|
sessionId: string;
|
|
29
29
|
tokens?: Tokens | undefined;
|
|
30
|
-
|
|
31
|
-
export interface RegisterResponse {
|
|
32
|
-
userId: string;
|
|
33
|
-
sessionId: string;
|
|
34
|
-
tokens?: Tokens | undefined;
|
|
35
|
-
emailVerification: boolean;
|
|
30
|
+
verificationRequired?: boolean | undefined;
|
|
36
31
|
}
|
|
37
32
|
export interface UserResponse {
|
|
38
33
|
uuid: string;
|
|
@@ -91,7 +86,6 @@ export declare const RegisterCredentials: MessageFns<RegisterCredentials>;
|
|
|
91
86
|
export declare const LoginCredentials: MessageFns<LoginCredentials>;
|
|
92
87
|
export declare const Tokens: MessageFns<Tokens>;
|
|
93
88
|
export declare const AuthResponse: MessageFns<AuthResponse>;
|
|
94
|
-
export declare const RegisterResponse: MessageFns<RegisterResponse>;
|
|
95
89
|
export declare const UserResponse: MessageFns<UserResponse>;
|
|
96
90
|
export declare const LogoutRequest: MessageFns<LogoutRequest>;
|
|
97
91
|
export declare const RecoverRequest: MessageFns<RecoverRequest>;
|
|
@@ -108,7 +102,7 @@ export declare const ResendConfirmationCodeRequest: MessageFns<ResendConfirmatio
|
|
|
108
102
|
export interface AuthServiceClient {
|
|
109
103
|
profile(request: GetByIdRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
110
104
|
login(request: LoginCredentials, metadata?: Metadata): Observable<AuthResponse>;
|
|
111
|
-
register(request: RegisterCredentials, metadata?: Metadata): Observable<
|
|
105
|
+
register(request: RegisterCredentials, metadata?: Metadata): Observable<AuthResponse>;
|
|
112
106
|
refresh(request: RefreshRequest, metadata?: Metadata): Observable<AuthResponse>;
|
|
113
107
|
logout(request: LogoutRequest, metadata?: Metadata): Observable<Empty>;
|
|
114
108
|
recover(request: RecoverRequest, metadata?: Metadata): Observable<Empty>;
|
|
@@ -121,7 +115,7 @@ export interface AuthServiceClient {
|
|
|
121
115
|
export interface AuthServiceController {
|
|
122
116
|
profile(request: GetByIdRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
123
117
|
login(request: LoginCredentials, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
124
|
-
register(request: RegisterCredentials, metadata?: Metadata): Promise<
|
|
118
|
+
register(request: RegisterCredentials, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
125
119
|
refresh(request: RefreshRequest, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
126
120
|
logout(request: LogoutRequest, metadata?: Metadata): void;
|
|
127
121
|
recover(request: RecoverRequest, metadata?: Metadata): void;
|
|
@@ -159,8 +153,8 @@ export declare const AuthServiceService: {
|
|
|
159
153
|
readonly responseStream: false;
|
|
160
154
|
readonly requestSerialize: (value: RegisterCredentials) => Buffer;
|
|
161
155
|
readonly requestDeserialize: (value: Buffer) => RegisterCredentials;
|
|
162
|
-
readonly responseSerialize: (value:
|
|
163
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
156
|
+
readonly responseSerialize: (value: AuthResponse) => Buffer;
|
|
157
|
+
readonly responseDeserialize: (value: Buffer) => AuthResponse;
|
|
164
158
|
};
|
|
165
159
|
readonly refresh: {
|
|
166
160
|
readonly path: "/auth.AuthService/refresh";
|
|
@@ -238,7 +232,7 @@ export declare const AuthServiceService: {
|
|
|
238
232
|
export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
239
233
|
profile: handleUnaryCall<GetByIdRequest, UserResponse>;
|
|
240
234
|
login: handleUnaryCall<LoginCredentials, AuthResponse>;
|
|
241
|
-
register: handleUnaryCall<RegisterCredentials,
|
|
235
|
+
register: handleUnaryCall<RegisterCredentials, AuthResponse>;
|
|
242
236
|
refresh: handleUnaryCall<RefreshRequest, AuthResponse>;
|
|
243
237
|
logout: handleUnaryCall<LogoutRequest, Empty>;
|
|
244
238
|
recover: handleUnaryCall<RecoverRequest, Empty>;
|
|
@@ -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.ResendConfirmationCodeRequest = exports.GetByIdRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.RefreshTokenResponse = exports.RefreshRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.LogoutRequest = exports.UserResponse = exports.
|
|
8
|
+
exports.AuthServiceService = exports.AUTH_SERVICE_NAME = exports.ResendConfirmationCodeRequest = exports.GetByIdRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.RefreshTokenResponse = exports.RefreshRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.LogoutRequest = exports.UserResponse = exports.AuthResponse = exports.Tokens = exports.LoginCredentials = exports.RegisterCredentials = 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");
|
|
@@ -236,68 +236,15 @@ exports.AuthResponse = {
|
|
|
236
236
|
if (message.tokens !== undefined) {
|
|
237
237
|
exports.Tokens.encode(message.tokens, writer.uint32(26).fork()).join();
|
|
238
238
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
decode(input, length) {
|
|
242
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
243
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
244
|
-
const message = createBaseAuthResponse();
|
|
245
|
-
while (reader.pos < end) {
|
|
246
|
-
const tag = reader.uint32();
|
|
247
|
-
switch (tag >>> 3) {
|
|
248
|
-
case 1: {
|
|
249
|
-
if (tag !== 10) {
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
message.userId = reader.string();
|
|
253
|
-
continue;
|
|
254
|
-
}
|
|
255
|
-
case 2: {
|
|
256
|
-
if (tag !== 18) {
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
message.sessionId = reader.string();
|
|
260
|
-
continue;
|
|
261
|
-
}
|
|
262
|
-
case 3: {
|
|
263
|
-
if (tag !== 26) {
|
|
264
|
-
break;
|
|
265
|
-
}
|
|
266
|
-
message.tokens = exports.Tokens.decode(reader, reader.uint32());
|
|
267
|
-
continue;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
reader.skip(tag & 7);
|
|
274
|
-
}
|
|
275
|
-
return message;
|
|
276
|
-
},
|
|
277
|
-
};
|
|
278
|
-
function createBaseRegisterResponse() {
|
|
279
|
-
return { userId: "", sessionId: "", emailVerification: false };
|
|
280
|
-
}
|
|
281
|
-
exports.RegisterResponse = {
|
|
282
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
283
|
-
if (message.userId !== "") {
|
|
284
|
-
writer.uint32(10).string(message.userId);
|
|
285
|
-
}
|
|
286
|
-
if (message.sessionId !== "") {
|
|
287
|
-
writer.uint32(18).string(message.sessionId);
|
|
288
|
-
}
|
|
289
|
-
if (message.tokens !== undefined) {
|
|
290
|
-
exports.Tokens.encode(message.tokens, writer.uint32(26).fork()).join();
|
|
291
|
-
}
|
|
292
|
-
if (message.emailVerification !== false) {
|
|
293
|
-
writer.uint32(32).bool(message.emailVerification);
|
|
239
|
+
if (message.verificationRequired !== undefined) {
|
|
240
|
+
writer.uint32(32).bool(message.verificationRequired);
|
|
294
241
|
}
|
|
295
242
|
return writer;
|
|
296
243
|
},
|
|
297
244
|
decode(input, length) {
|
|
298
245
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
299
246
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
300
|
-
const message =
|
|
247
|
+
const message = createBaseAuthResponse();
|
|
301
248
|
while (reader.pos < end) {
|
|
302
249
|
const tag = reader.uint32();
|
|
303
250
|
switch (tag >>> 3) {
|
|
@@ -326,7 +273,7 @@ exports.RegisterResponse = {
|
|
|
326
273
|
if (tag !== 32) {
|
|
327
274
|
break;
|
|
328
275
|
}
|
|
329
|
-
message.
|
|
276
|
+
message.verificationRequired = reader.bool();
|
|
330
277
|
continue;
|
|
331
278
|
}
|
|
332
279
|
}
|
|
@@ -949,8 +896,8 @@ exports.AuthServiceService = {
|
|
|
949
896
|
responseStream: false,
|
|
950
897
|
requestSerialize: (value) => Buffer.from(exports.RegisterCredentials.encode(value).finish()),
|
|
951
898
|
requestDeserialize: (value) => exports.RegisterCredentials.decode(value),
|
|
952
|
-
responseSerialize: (value) => Buffer.from(exports.
|
|
953
|
-
responseDeserialize: (value) => exports.
|
|
899
|
+
responseSerialize: (value) => Buffer.from(exports.AuthResponse.encode(value).finish()),
|
|
900
|
+
responseDeserialize: (value) => exports.AuthResponse.decode(value),
|
|
954
901
|
},
|
|
955
902
|
refresh: {
|
|
956
903
|
path: "/auth.AuthService/refresh",
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { AIClient } from "./ai/ai.client";
|
|
|
5
5
|
export { OpenAIClient } from "./openai/openai.client";
|
|
6
6
|
export { FileClient } from "./file/file.client";
|
|
7
7
|
export { MessageFns as UserMessageFns, protobufPackage as UserProtobufPackage, User, CreateUserRequest, CreateUserPersonal, UpdateUserRequest, GetByIdRequest, UserResponse, UsersResponse, FindByEmailRequest, FindByPhoneRequest, UpdateUserPersonal, UpdatePasswordRequest, UpdateEmailVerificationRequest, ResetPasswordData, GetEmailVerificationStatusRequest, EmailVerificationStatusResponse, UserServiceService as UserService, } from "./user/user.interface";
|
|
8
|
-
export { MessageFns as AuthMessageFns, protobufPackage as AuthProtobufPackage, LoginCredentials, RegisterCredentials, LogoutRequest, RefreshRequest, AuthResponse,
|
|
8
|
+
export { MessageFns as AuthMessageFns, protobufPackage as AuthProtobufPackage, LoginCredentials, RegisterCredentials, LogoutRequest, RefreshRequest, AuthResponse, RefreshTokenResponse, RecoverRequest, ResetPasswordRequest, ConfirmEmailRequest, ConfirmEmailByCodeRequest, ConfirmEmailResponse, CheckEmailVerifiedRequest, CheckEmailVerifiedResponse, ResendConfirmationCodeRequest, } from "./auth/auth.interface";
|
|
9
9
|
export { MessageFns as AIMessageFns, protobufPackage as AIProtobufPackage, AIRequest, AIResponse, AIServiceService as AIService, } from "./ai/ai.interface";
|
|
10
10
|
export { MessageFns as OpenAIMessageFns, protobufPackage as OpenAIProtobufPackage, CreateRequest as OpenAICreateRequest, CreateResponse as OpenAICreateResponse, OpenAIServiceService as OpenAIService, } from "./openai/openai.interface";
|
|
11
11
|
export { UploadRequest, UploadResponse, DownloadRequest, DownloadResponse, DeleteRequest, DeleteResponse, FileServiceService as FileService, protobufPackage as FileProtobufPackage, } from "./file/file.interface";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DownloadRequest = exports.UploadResponse = exports.UploadRequest = exports.OpenAIService = exports.OpenAICreateResponse = exports.OpenAICreateRequest = exports.OpenAIProtobufPackage = exports.AIService = exports.AIResponse = exports.AIRequest = exports.AIProtobufPackage = exports.ResendConfirmationCodeRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.RefreshTokenResponse = exports.
|
|
4
|
-
exports.FileProtobufPackage = exports.FileService = exports.DeleteResponse = exports.DeleteRequest =
|
|
3
|
+
exports.DownloadResponse = exports.DownloadRequest = exports.UploadResponse = exports.UploadRequest = exports.OpenAIService = exports.OpenAICreateResponse = exports.OpenAICreateRequest = exports.OpenAIProtobufPackage = exports.AIService = exports.AIResponse = exports.AIRequest = exports.AIProtobufPackage = 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 = exports.AuthProtobufPackage = exports.UserService = exports.EmailVerificationStatusResponse = exports.GetEmailVerificationStatusRequest = exports.ResetPasswordData = exports.UpdateEmailVerificationRequest = exports.UpdatePasswordRequest = exports.UpdateUserPersonal = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.UsersResponse = exports.UserResponse = exports.GetByIdRequest = exports.UpdateUserRequest = exports.CreateUserPersonal = exports.CreateUserRequest = exports.User = exports.UserProtobufPackage = exports.FileClient = exports.OpenAIClient = exports.AIClient = exports.AuthClient = exports.UsersClient = exports.SharedModule = void 0;
|
|
4
|
+
exports.FileProtobufPackage = exports.FileService = exports.DeleteResponse = exports.DeleteRequest = void 0;
|
|
5
5
|
var shared_module_1 = require("./shared.module");
|
|
6
6
|
Object.defineProperty(exports, "SharedModule", { enumerable: true, get: function () { return shared_module_1.SharedModule; } });
|
|
7
7
|
var user_client_1 = require("./user/user.client");
|
|
@@ -45,7 +45,6 @@ Object.defineProperty(exports, "RegisterCredentials", { enumerable: true, get: f
|
|
|
45
45
|
Object.defineProperty(exports, "LogoutRequest", { enumerable: true, get: function () { return auth_interface_1.LogoutRequest; } });
|
|
46
46
|
Object.defineProperty(exports, "RefreshRequest", { enumerable: true, get: function () { return auth_interface_1.RefreshRequest; } });
|
|
47
47
|
Object.defineProperty(exports, "AuthResponse", { enumerable: true, get: function () { return auth_interface_1.AuthResponse; } });
|
|
48
|
-
Object.defineProperty(exports, "RegisterResponse", { enumerable: true, get: function () { return auth_interface_1.RegisterResponse; } });
|
|
49
48
|
Object.defineProperty(exports, "RefreshTokenResponse", { enumerable: true, get: function () { return auth_interface_1.RefreshTokenResponse; } });
|
|
50
49
|
Object.defineProperty(exports, "RecoverRequest", { enumerable: true, get: function () { return auth_interface_1.RecoverRequest; } });
|
|
51
50
|
Object.defineProperty(exports, "ResetPasswordRequest", { enumerable: true, get: function () { return auth_interface_1.ResetPasswordRequest; } });
|