geniebox-shared-lib 1.0.55 → 1.0.57
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 +17 -0
- package/dist/auth/auth.interface.js +54 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/package.json +1 -1
|
@@ -65,6 +65,10 @@ export interface RefreshTokenResponse {
|
|
|
65
65
|
export interface ConfirmEmailRequest {
|
|
66
66
|
token: string;
|
|
67
67
|
}
|
|
68
|
+
export interface ConfirmEmailByCodeRequest {
|
|
69
|
+
userId: string;
|
|
70
|
+
code: string;
|
|
71
|
+
}
|
|
68
72
|
export interface ConfirmEmailResponse {
|
|
69
73
|
userId: string;
|
|
70
74
|
emailVerified: boolean;
|
|
@@ -92,6 +96,7 @@ export declare const ResetPasswordRequest: MessageFns<ResetPasswordRequest>;
|
|
|
92
96
|
export declare const RefreshRequest: MessageFns<RefreshRequest>;
|
|
93
97
|
export declare const RefreshTokenResponse: MessageFns<RefreshTokenResponse>;
|
|
94
98
|
export declare const ConfirmEmailRequest: MessageFns<ConfirmEmailRequest>;
|
|
99
|
+
export declare const ConfirmEmailByCodeRequest: MessageFns<ConfirmEmailByCodeRequest>;
|
|
95
100
|
export declare const ConfirmEmailResponse: MessageFns<ConfirmEmailResponse>;
|
|
96
101
|
export declare const CheckEmailVerifiedRequest: MessageFns<CheckEmailVerifiedRequest>;
|
|
97
102
|
export declare const CheckEmailVerifiedResponse: MessageFns<CheckEmailVerifiedResponse>;
|
|
@@ -105,6 +110,7 @@ export interface AuthServiceClient {
|
|
|
105
110
|
recover(request: RecoverRequest, metadata?: Metadata): Observable<Empty>;
|
|
106
111
|
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): Observable<Empty>;
|
|
107
112
|
confirmEmail(request: ConfirmEmailRequest, metadata?: Metadata): Observable<ConfirmEmailResponse>;
|
|
113
|
+
confirmEmailByCode(request: ConfirmEmailByCodeRequest, metadata?: Metadata): Observable<ConfirmEmailResponse>;
|
|
108
114
|
checkEmailVerified(request: CheckEmailVerifiedRequest, metadata?: Metadata): Observable<CheckEmailVerifiedResponse>;
|
|
109
115
|
}
|
|
110
116
|
export interface AuthServiceController {
|
|
@@ -116,6 +122,7 @@ export interface AuthServiceController {
|
|
|
116
122
|
recover(request: RecoverRequest, metadata?: Metadata): void;
|
|
117
123
|
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): void;
|
|
118
124
|
confirmEmail(request: ConfirmEmailRequest, metadata?: Metadata): Promise<ConfirmEmailResponse> | Observable<ConfirmEmailResponse> | ConfirmEmailResponse;
|
|
125
|
+
confirmEmailByCode(request: ConfirmEmailByCodeRequest, metadata?: Metadata): Promise<ConfirmEmailResponse> | Observable<ConfirmEmailResponse> | ConfirmEmailResponse;
|
|
119
126
|
checkEmailVerified(request: CheckEmailVerifiedRequest, metadata?: Metadata): Promise<CheckEmailVerifiedResponse> | Observable<CheckEmailVerifiedResponse> | CheckEmailVerifiedResponse;
|
|
120
127
|
}
|
|
121
128
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
@@ -194,6 +201,15 @@ export declare const AuthServiceService: {
|
|
|
194
201
|
readonly responseSerialize: (value: ConfirmEmailResponse) => Buffer;
|
|
195
202
|
readonly responseDeserialize: (value: Buffer) => ConfirmEmailResponse;
|
|
196
203
|
};
|
|
204
|
+
readonly confirmEmailByCode: {
|
|
205
|
+
readonly path: "/auth.AuthService/confirmEmailByCode";
|
|
206
|
+
readonly requestStream: false;
|
|
207
|
+
readonly responseStream: false;
|
|
208
|
+
readonly requestSerialize: (value: ConfirmEmailByCodeRequest) => Buffer;
|
|
209
|
+
readonly requestDeserialize: (value: Buffer) => ConfirmEmailByCodeRequest;
|
|
210
|
+
readonly responseSerialize: (value: ConfirmEmailResponse) => Buffer;
|
|
211
|
+
readonly responseDeserialize: (value: Buffer) => ConfirmEmailResponse;
|
|
212
|
+
};
|
|
197
213
|
readonly checkEmailVerified: {
|
|
198
214
|
readonly path: "/auth.AuthService/checkEmailVerified";
|
|
199
215
|
readonly requestStream: false;
|
|
@@ -213,6 +229,7 @@ export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
|
213
229
|
recover: handleUnaryCall<RecoverRequest, Empty>;
|
|
214
230
|
resetPassword: handleUnaryCall<ResetPasswordRequest, Empty>;
|
|
215
231
|
confirmEmail: handleUnaryCall<ConfirmEmailRequest, ConfirmEmailResponse>;
|
|
232
|
+
confirmEmailByCode: handleUnaryCall<ConfirmEmailByCodeRequest, ConfirmEmailResponse>;
|
|
216
233
|
checkEmailVerified: handleUnaryCall<CheckEmailVerifiedRequest, CheckEmailVerifiedResponse>;
|
|
217
234
|
}
|
|
218
235
|
export interface MessageFns<T> {
|
|
@@ -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.RegisterResponse = 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.ConfirmEmailByCodeRequest = 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");
|
|
@@ -669,6 +669,49 @@ exports.ConfirmEmailRequest = {
|
|
|
669
669
|
return message;
|
|
670
670
|
},
|
|
671
671
|
};
|
|
672
|
+
function createBaseConfirmEmailByCodeRequest() {
|
|
673
|
+
return { userId: "", code: "" };
|
|
674
|
+
}
|
|
675
|
+
exports.ConfirmEmailByCodeRequest = {
|
|
676
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
677
|
+
if (message.userId !== "") {
|
|
678
|
+
writer.uint32(10).string(message.userId);
|
|
679
|
+
}
|
|
680
|
+
if (message.code !== "") {
|
|
681
|
+
writer.uint32(18).string(message.code);
|
|
682
|
+
}
|
|
683
|
+
return writer;
|
|
684
|
+
},
|
|
685
|
+
decode(input, length) {
|
|
686
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
687
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
688
|
+
const message = createBaseConfirmEmailByCodeRequest();
|
|
689
|
+
while (reader.pos < end) {
|
|
690
|
+
const tag = reader.uint32();
|
|
691
|
+
switch (tag >>> 3) {
|
|
692
|
+
case 1: {
|
|
693
|
+
if (tag !== 10) {
|
|
694
|
+
break;
|
|
695
|
+
}
|
|
696
|
+
message.userId = reader.string();
|
|
697
|
+
continue;
|
|
698
|
+
}
|
|
699
|
+
case 2: {
|
|
700
|
+
if (tag !== 18) {
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
message.code = reader.string();
|
|
704
|
+
continue;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
reader.skip(tag & 7);
|
|
711
|
+
}
|
|
712
|
+
return message;
|
|
713
|
+
},
|
|
714
|
+
};
|
|
672
715
|
function createBaseConfirmEmailResponse() {
|
|
673
716
|
return { userId: "", emailVerified: false };
|
|
674
717
|
}
|
|
@@ -832,6 +875,7 @@ function AuthServiceControllerMethods() {
|
|
|
832
875
|
"recover",
|
|
833
876
|
"resetPassword",
|
|
834
877
|
"confirmEmail",
|
|
878
|
+
"confirmEmailByCode",
|
|
835
879
|
"checkEmailVerified",
|
|
836
880
|
];
|
|
837
881
|
for (const method of grpcMethods) {
|
|
@@ -919,6 +963,15 @@ exports.AuthServiceService = {
|
|
|
919
963
|
responseSerialize: (value) => Buffer.from(exports.ConfirmEmailResponse.encode(value).finish()),
|
|
920
964
|
responseDeserialize: (value) => exports.ConfirmEmailResponse.decode(value),
|
|
921
965
|
},
|
|
966
|
+
confirmEmailByCode: {
|
|
967
|
+
path: "/auth.AuthService/confirmEmailByCode",
|
|
968
|
+
requestStream: false,
|
|
969
|
+
responseStream: false,
|
|
970
|
+
requestSerialize: (value) => Buffer.from(exports.ConfirmEmailByCodeRequest.encode(value).finish()),
|
|
971
|
+
requestDeserialize: (value) => exports.ConfirmEmailByCodeRequest.decode(value),
|
|
972
|
+
responseSerialize: (value) => Buffer.from(exports.ConfirmEmailResponse.encode(value).finish()),
|
|
973
|
+
responseDeserialize: (value) => exports.ConfirmEmailResponse.decode(value),
|
|
974
|
+
},
|
|
922
975
|
checkEmailVerified: {
|
|
923
976
|
path: "/auth.AuthService/checkEmailVerified",
|
|
924
977
|
requestStream: false,
|
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, RegisterResponse, 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, ConfirmEmailByCodeRequest, 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 = exports.DeleteResponse = void 0;
|
|
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.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailByCodeRequest = 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 = 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");
|
|
@@ -50,6 +50,7 @@ Object.defineProperty(exports, "RefreshTokenResponse", { enumerable: true, get:
|
|
|
50
50
|
Object.defineProperty(exports, "RecoverRequest", { enumerable: true, get: function () { return auth_interface_1.RecoverRequest; } });
|
|
51
51
|
Object.defineProperty(exports, "ResetPasswordRequest", { enumerable: true, get: function () { return auth_interface_1.ResetPasswordRequest; } });
|
|
52
52
|
Object.defineProperty(exports, "ConfirmEmailRequest", { enumerable: true, get: function () { return auth_interface_1.ConfirmEmailRequest; } });
|
|
53
|
+
Object.defineProperty(exports, "ConfirmEmailByCodeRequest", { enumerable: true, get: function () { return auth_interface_1.ConfirmEmailByCodeRequest; } });
|
|
53
54
|
Object.defineProperty(exports, "ConfirmEmailResponse", { enumerable: true, get: function () { return auth_interface_1.ConfirmEmailResponse; } });
|
|
54
55
|
Object.defineProperty(exports, "CheckEmailVerifiedRequest", { enumerable: true, get: function () { return auth_interface_1.CheckEmailVerifiedRequest; } });
|
|
55
56
|
Object.defineProperty(exports, "CheckEmailVerifiedResponse", { enumerable: true, get: function () { return auth_interface_1.CheckEmailVerifiedResponse; } });
|