geniebox-shared-lib 1.0.55 → 1.0.56
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 +16 -0
- package/dist/auth/auth.interface.js +44 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/package.json +1 -1
|
@@ -65,6 +65,9 @@ export interface RefreshTokenResponse {
|
|
|
65
65
|
export interface ConfirmEmailRequest {
|
|
66
66
|
token: string;
|
|
67
67
|
}
|
|
68
|
+
export interface ConfirmEmailByCodeRequest {
|
|
69
|
+
token: string;
|
|
70
|
+
}
|
|
68
71
|
export interface ConfirmEmailResponse {
|
|
69
72
|
userId: string;
|
|
70
73
|
emailVerified: boolean;
|
|
@@ -92,6 +95,7 @@ export declare const ResetPasswordRequest: MessageFns<ResetPasswordRequest>;
|
|
|
92
95
|
export declare const RefreshRequest: MessageFns<RefreshRequest>;
|
|
93
96
|
export declare const RefreshTokenResponse: MessageFns<RefreshTokenResponse>;
|
|
94
97
|
export declare const ConfirmEmailRequest: MessageFns<ConfirmEmailRequest>;
|
|
98
|
+
export declare const ConfirmEmailByCodeRequest: MessageFns<ConfirmEmailByCodeRequest>;
|
|
95
99
|
export declare const ConfirmEmailResponse: MessageFns<ConfirmEmailResponse>;
|
|
96
100
|
export declare const CheckEmailVerifiedRequest: MessageFns<CheckEmailVerifiedRequest>;
|
|
97
101
|
export declare const CheckEmailVerifiedResponse: MessageFns<CheckEmailVerifiedResponse>;
|
|
@@ -105,6 +109,7 @@ export interface AuthServiceClient {
|
|
|
105
109
|
recover(request: RecoverRequest, metadata?: Metadata): Observable<Empty>;
|
|
106
110
|
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): Observable<Empty>;
|
|
107
111
|
confirmEmail(request: ConfirmEmailRequest, metadata?: Metadata): Observable<ConfirmEmailResponse>;
|
|
112
|
+
confirmEmailByCode(request: ConfirmEmailByCodeRequest, metadata?: Metadata): Observable<ConfirmEmailResponse>;
|
|
108
113
|
checkEmailVerified(request: CheckEmailVerifiedRequest, metadata?: Metadata): Observable<CheckEmailVerifiedResponse>;
|
|
109
114
|
}
|
|
110
115
|
export interface AuthServiceController {
|
|
@@ -116,6 +121,7 @@ export interface AuthServiceController {
|
|
|
116
121
|
recover(request: RecoverRequest, metadata?: Metadata): void;
|
|
117
122
|
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): void;
|
|
118
123
|
confirmEmail(request: ConfirmEmailRequest, metadata?: Metadata): Promise<ConfirmEmailResponse> | Observable<ConfirmEmailResponse> | ConfirmEmailResponse;
|
|
124
|
+
confirmEmailByCode(request: ConfirmEmailByCodeRequest, metadata?: Metadata): Promise<ConfirmEmailResponse> | Observable<ConfirmEmailResponse> | ConfirmEmailResponse;
|
|
119
125
|
checkEmailVerified(request: CheckEmailVerifiedRequest, metadata?: Metadata): Promise<CheckEmailVerifiedResponse> | Observable<CheckEmailVerifiedResponse> | CheckEmailVerifiedResponse;
|
|
120
126
|
}
|
|
121
127
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
@@ -194,6 +200,15 @@ export declare const AuthServiceService: {
|
|
|
194
200
|
readonly responseSerialize: (value: ConfirmEmailResponse) => Buffer;
|
|
195
201
|
readonly responseDeserialize: (value: Buffer) => ConfirmEmailResponse;
|
|
196
202
|
};
|
|
203
|
+
readonly confirmEmailByCode: {
|
|
204
|
+
readonly path: "/auth.AuthService/confirmEmailByCode";
|
|
205
|
+
readonly requestStream: false;
|
|
206
|
+
readonly responseStream: false;
|
|
207
|
+
readonly requestSerialize: (value: ConfirmEmailByCodeRequest) => Buffer;
|
|
208
|
+
readonly requestDeserialize: (value: Buffer) => ConfirmEmailByCodeRequest;
|
|
209
|
+
readonly responseSerialize: (value: ConfirmEmailResponse) => Buffer;
|
|
210
|
+
readonly responseDeserialize: (value: Buffer) => ConfirmEmailResponse;
|
|
211
|
+
};
|
|
197
212
|
readonly checkEmailVerified: {
|
|
198
213
|
readonly path: "/auth.AuthService/checkEmailVerified";
|
|
199
214
|
readonly requestStream: false;
|
|
@@ -213,6 +228,7 @@ export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
|
213
228
|
recover: handleUnaryCall<RecoverRequest, Empty>;
|
|
214
229
|
resetPassword: handleUnaryCall<ResetPasswordRequest, Empty>;
|
|
215
230
|
confirmEmail: handleUnaryCall<ConfirmEmailRequest, ConfirmEmailResponse>;
|
|
231
|
+
confirmEmailByCode: handleUnaryCall<ConfirmEmailByCodeRequest, ConfirmEmailResponse>;
|
|
216
232
|
checkEmailVerified: handleUnaryCall<CheckEmailVerifiedRequest, CheckEmailVerifiedResponse>;
|
|
217
233
|
}
|
|
218
234
|
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,39 @@ exports.ConfirmEmailRequest = {
|
|
|
669
669
|
return message;
|
|
670
670
|
},
|
|
671
671
|
};
|
|
672
|
+
function createBaseConfirmEmailByCodeRequest() {
|
|
673
|
+
return { token: "" };
|
|
674
|
+
}
|
|
675
|
+
exports.ConfirmEmailByCodeRequest = {
|
|
676
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
677
|
+
if (message.token !== "") {
|
|
678
|
+
writer.uint32(10).string(message.token);
|
|
679
|
+
}
|
|
680
|
+
return writer;
|
|
681
|
+
},
|
|
682
|
+
decode(input, length) {
|
|
683
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
684
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
685
|
+
const message = createBaseConfirmEmailByCodeRequest();
|
|
686
|
+
while (reader.pos < end) {
|
|
687
|
+
const tag = reader.uint32();
|
|
688
|
+
switch (tag >>> 3) {
|
|
689
|
+
case 1: {
|
|
690
|
+
if (tag !== 10) {
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
message.token = reader.string();
|
|
694
|
+
continue;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
698
|
+
break;
|
|
699
|
+
}
|
|
700
|
+
reader.skip(tag & 7);
|
|
701
|
+
}
|
|
702
|
+
return message;
|
|
703
|
+
},
|
|
704
|
+
};
|
|
672
705
|
function createBaseConfirmEmailResponse() {
|
|
673
706
|
return { userId: "", emailVerified: false };
|
|
674
707
|
}
|
|
@@ -832,6 +865,7 @@ function AuthServiceControllerMethods() {
|
|
|
832
865
|
"recover",
|
|
833
866
|
"resetPassword",
|
|
834
867
|
"confirmEmail",
|
|
868
|
+
"confirmEmailByCode",
|
|
835
869
|
"checkEmailVerified",
|
|
836
870
|
];
|
|
837
871
|
for (const method of grpcMethods) {
|
|
@@ -919,6 +953,15 @@ exports.AuthServiceService = {
|
|
|
919
953
|
responseSerialize: (value) => Buffer.from(exports.ConfirmEmailResponse.encode(value).finish()),
|
|
920
954
|
responseDeserialize: (value) => exports.ConfirmEmailResponse.decode(value),
|
|
921
955
|
},
|
|
956
|
+
confirmEmailByCode: {
|
|
957
|
+
path: "/auth.AuthService/confirmEmailByCode",
|
|
958
|
+
requestStream: false,
|
|
959
|
+
responseStream: false,
|
|
960
|
+
requestSerialize: (value) => Buffer.from(exports.ConfirmEmailByCodeRequest.encode(value).finish()),
|
|
961
|
+
requestDeserialize: (value) => exports.ConfirmEmailByCodeRequest.decode(value),
|
|
962
|
+
responseSerialize: (value) => Buffer.from(exports.ConfirmEmailResponse.encode(value).finish()),
|
|
963
|
+
responseDeserialize: (value) => exports.ConfirmEmailResponse.decode(value),
|
|
964
|
+
},
|
|
922
965
|
checkEmailVerified: {
|
|
923
966
|
path: "/auth.AuthService/checkEmailVerified",
|
|
924
967
|
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; } });
|