geniebox-shared-lib 1.0.54 → 1.0.55
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 +12 -5
- package/dist/auth/auth.interface.js +66 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/package.json +1 -1
|
@@ -28,6 +28,12 @@ export interface AuthResponse {
|
|
|
28
28
|
sessionId: string;
|
|
29
29
|
tokens?: Tokens | undefined;
|
|
30
30
|
}
|
|
31
|
+
export interface RegisterResponse {
|
|
32
|
+
userId: string;
|
|
33
|
+
sessionId: string;
|
|
34
|
+
tokens?: Tokens | undefined;
|
|
35
|
+
emailVerification: boolean;
|
|
36
|
+
}
|
|
31
37
|
export interface UserResponse {
|
|
32
38
|
uuid: string;
|
|
33
39
|
firstName: string;
|
|
@@ -78,6 +84,7 @@ export declare const RegisterCredentials: MessageFns<RegisterCredentials>;
|
|
|
78
84
|
export declare const LoginCredentials: MessageFns<LoginCredentials>;
|
|
79
85
|
export declare const Tokens: MessageFns<Tokens>;
|
|
80
86
|
export declare const AuthResponse: MessageFns<AuthResponse>;
|
|
87
|
+
export declare const RegisterResponse: MessageFns<RegisterResponse>;
|
|
81
88
|
export declare const UserResponse: MessageFns<UserResponse>;
|
|
82
89
|
export declare const LogoutRequest: MessageFns<LogoutRequest>;
|
|
83
90
|
export declare const RecoverRequest: MessageFns<RecoverRequest>;
|
|
@@ -92,7 +99,7 @@ export declare const GetByIdRequest: MessageFns<GetByIdRequest>;
|
|
|
92
99
|
export interface AuthServiceClient {
|
|
93
100
|
profile(request: GetByIdRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
94
101
|
login(request: LoginCredentials, metadata?: Metadata): Observable<AuthResponse>;
|
|
95
|
-
register(request: RegisterCredentials, metadata?: Metadata): Observable<
|
|
102
|
+
register(request: RegisterCredentials, metadata?: Metadata): Observable<RegisterResponse>;
|
|
96
103
|
refresh(request: RefreshRequest, metadata?: Metadata): Observable<AuthResponse>;
|
|
97
104
|
logout(request: LogoutRequest, metadata?: Metadata): Observable<Empty>;
|
|
98
105
|
recover(request: RecoverRequest, metadata?: Metadata): Observable<Empty>;
|
|
@@ -103,7 +110,7 @@ export interface AuthServiceClient {
|
|
|
103
110
|
export interface AuthServiceController {
|
|
104
111
|
profile(request: GetByIdRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
105
112
|
login(request: LoginCredentials, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
106
|
-
register(request: RegisterCredentials, metadata?: Metadata): Promise<
|
|
113
|
+
register(request: RegisterCredentials, metadata?: Metadata): Promise<RegisterResponse> | Observable<RegisterResponse> | RegisterResponse;
|
|
107
114
|
refresh(request: RefreshRequest, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
108
115
|
logout(request: LogoutRequest, metadata?: Metadata): void;
|
|
109
116
|
recover(request: RecoverRequest, metadata?: Metadata): void;
|
|
@@ -139,8 +146,8 @@ export declare const AuthServiceService: {
|
|
|
139
146
|
readonly responseStream: false;
|
|
140
147
|
readonly requestSerialize: (value: RegisterCredentials) => Buffer;
|
|
141
148
|
readonly requestDeserialize: (value: Buffer) => RegisterCredentials;
|
|
142
|
-
readonly responseSerialize: (value:
|
|
143
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
149
|
+
readonly responseSerialize: (value: RegisterResponse) => Buffer;
|
|
150
|
+
readonly responseDeserialize: (value: Buffer) => RegisterResponse;
|
|
144
151
|
};
|
|
145
152
|
readonly refresh: {
|
|
146
153
|
readonly path: "/auth.AuthService/refresh";
|
|
@@ -200,7 +207,7 @@ export declare const AuthServiceService: {
|
|
|
200
207
|
export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
201
208
|
profile: handleUnaryCall<GetByIdRequest, UserResponse>;
|
|
202
209
|
login: handleUnaryCall<LoginCredentials, AuthResponse>;
|
|
203
|
-
register: handleUnaryCall<RegisterCredentials,
|
|
210
|
+
register: handleUnaryCall<RegisterCredentials, RegisterResponse>;
|
|
204
211
|
refresh: handleUnaryCall<RefreshRequest, AuthResponse>;
|
|
205
212
|
logout: handleUnaryCall<LogoutRequest, Empty>;
|
|
206
213
|
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.GetByIdRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = 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;
|
|
8
|
+
exports.AuthServiceService = exports.AUTH_SERVICE_NAME = exports.GetByIdRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailRequest = exports.RefreshTokenResponse = exports.RefreshRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.LogoutRequest = exports.UserResponse = exports.RegisterResponse = 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");
|
|
@@ -275,6 +275,69 @@ exports.AuthResponse = {
|
|
|
275
275
|
return message;
|
|
276
276
|
},
|
|
277
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);
|
|
294
|
+
}
|
|
295
|
+
return writer;
|
|
296
|
+
},
|
|
297
|
+
decode(input, length) {
|
|
298
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
299
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
300
|
+
const message = createBaseRegisterResponse();
|
|
301
|
+
while (reader.pos < end) {
|
|
302
|
+
const tag = reader.uint32();
|
|
303
|
+
switch (tag >>> 3) {
|
|
304
|
+
case 1: {
|
|
305
|
+
if (tag !== 10) {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
message.userId = reader.string();
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
case 2: {
|
|
312
|
+
if (tag !== 18) {
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
message.sessionId = reader.string();
|
|
316
|
+
continue;
|
|
317
|
+
}
|
|
318
|
+
case 3: {
|
|
319
|
+
if (tag !== 26) {
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
message.tokens = exports.Tokens.decode(reader, reader.uint32());
|
|
323
|
+
continue;
|
|
324
|
+
}
|
|
325
|
+
case 4: {
|
|
326
|
+
if (tag !== 32) {
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
message.emailVerification = reader.bool();
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
336
|
+
reader.skip(tag & 7);
|
|
337
|
+
}
|
|
338
|
+
return message;
|
|
339
|
+
},
|
|
340
|
+
};
|
|
278
341
|
function createBaseUserResponse() {
|
|
279
342
|
return { uuid: "", firstName: "", lastName: "", email: "", phoneNumber: "", photoUrl: "", birthday: "", gender: "" };
|
|
280
343
|
}
|
|
@@ -808,8 +871,8 @@ exports.AuthServiceService = {
|
|
|
808
871
|
responseStream: false,
|
|
809
872
|
requestSerialize: (value) => Buffer.from(exports.RegisterCredentials.encode(value).finish()),
|
|
810
873
|
requestDeserialize: (value) => exports.RegisterCredentials.decode(value),
|
|
811
|
-
responseSerialize: (value) => Buffer.from(exports.
|
|
812
|
-
responseDeserialize: (value) => exports.
|
|
874
|
+
responseSerialize: (value) => Buffer.from(exports.RegisterResponse.encode(value).finish()),
|
|
875
|
+
responseDeserialize: (value) => exports.RegisterResponse.decode(value),
|
|
813
876
|
},
|
|
814
877
|
refresh: {
|
|
815
878
|
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, RefreshTokenResponse, RecoverRequest, ResetPasswordRequest, ConfirmEmailRequest, ConfirmEmailResponse, CheckEmailVerifiedRequest, CheckEmailVerifiedResponse, } from "./auth/auth.interface";
|
|
8
|
+
export { MessageFns as AuthMessageFns, protobufPackage as AuthProtobufPackage, LoginCredentials, RegisterCredentials, LogoutRequest, RefreshRequest, AuthResponse, RegisterResponse, RefreshTokenResponse, RecoverRequest, ResetPasswordRequest, ConfirmEmailRequest, ConfirmEmailResponse, CheckEmailVerifiedRequest, CheckEmailVerifiedResponse, } 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.
|
|
4
|
-
exports.FileProtobufPackage = exports.FileService = void 0;
|
|
3
|
+
exports.DeleteRequest = 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.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.RefreshTokenResponse = exports.RegisterResponse = 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 = 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,6 +45,7 @@ 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; } });
|
|
48
49
|
Object.defineProperty(exports, "RefreshTokenResponse", { enumerable: true, get: function () { return auth_interface_1.RefreshTokenResponse; } });
|
|
49
50
|
Object.defineProperty(exports, "RecoverRequest", { enumerable: true, get: function () { return auth_interface_1.RecoverRequest; } });
|
|
50
51
|
Object.defineProperty(exports, "ResetPasswordRequest", { enumerable: true, get: function () { return auth_interface_1.ResetPasswordRequest; } });
|