geniebox-shared-lib 2.0.1 → 2.0.2
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.interface.d.ts +17 -0
- package/dist/auth.interface.js +54 -1
- package/package.json +1 -1
package/dist/auth.interface.d.ts
CHANGED
|
@@ -81,6 +81,10 @@ export interface GetByIdRequest {
|
|
|
81
81
|
export interface ResendConfirmationCodeRequest {
|
|
82
82
|
userId: string;
|
|
83
83
|
}
|
|
84
|
+
export interface VerifyResetCodeRequest {
|
|
85
|
+
email: string;
|
|
86
|
+
code: string;
|
|
87
|
+
}
|
|
84
88
|
export declare const AUTH_PACKAGE_NAME = "auth";
|
|
85
89
|
export declare const RegisterCredentials: MessageFns<RegisterCredentials>;
|
|
86
90
|
export declare const LoginCredentials: MessageFns<LoginCredentials>;
|
|
@@ -99,6 +103,7 @@ export declare const CheckEmailVerifiedRequest: MessageFns<CheckEmailVerifiedReq
|
|
|
99
103
|
export declare const CheckEmailVerifiedResponse: MessageFns<CheckEmailVerifiedResponse>;
|
|
100
104
|
export declare const GetByIdRequest: MessageFns<GetByIdRequest>;
|
|
101
105
|
export declare const ResendConfirmationCodeRequest: MessageFns<ResendConfirmationCodeRequest>;
|
|
106
|
+
export declare const VerifyResetCodeRequest: MessageFns<VerifyResetCodeRequest>;
|
|
102
107
|
export interface AuthServiceClient {
|
|
103
108
|
profile(request: GetByIdRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
104
109
|
login(request: LoginCredentials, metadata?: Metadata): Observable<AuthResponse>;
|
|
@@ -106,6 +111,7 @@ export interface AuthServiceClient {
|
|
|
106
111
|
refresh(request: RefreshRequest, metadata?: Metadata): Observable<AuthResponse>;
|
|
107
112
|
logout(request: LogoutRequest, metadata?: Metadata): Observable<Empty>;
|
|
108
113
|
recover(request: RecoverRequest, metadata?: Metadata): Observable<Empty>;
|
|
114
|
+
verifyResetCode(request: VerifyResetCodeRequest, metadata?: Metadata): Observable<Empty>;
|
|
109
115
|
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): Observable<Empty>;
|
|
110
116
|
confirmEmail(request: ConfirmEmailRequest, metadata?: Metadata): Observable<ConfirmEmailResponse>;
|
|
111
117
|
confirmEmailByCode(request: ConfirmEmailByCodeRequest, metadata?: Metadata): Observable<AuthResponse>;
|
|
@@ -119,6 +125,7 @@ export interface AuthServiceController {
|
|
|
119
125
|
refresh(request: RefreshRequest, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
120
126
|
logout(request: LogoutRequest, metadata?: Metadata): void;
|
|
121
127
|
recover(request: RecoverRequest, metadata?: Metadata): void;
|
|
128
|
+
verifyResetCode(request: VerifyResetCodeRequest, metadata?: Metadata): void;
|
|
122
129
|
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): void;
|
|
123
130
|
confirmEmail(request: ConfirmEmailRequest, metadata?: Metadata): Promise<ConfirmEmailResponse> | Observable<ConfirmEmailResponse> | ConfirmEmailResponse;
|
|
124
131
|
confirmEmailByCode(request: ConfirmEmailByCodeRequest, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
@@ -183,6 +190,15 @@ export declare const AuthServiceService: {
|
|
|
183
190
|
readonly responseSerialize: (value: Empty) => Buffer;
|
|
184
191
|
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
185
192
|
};
|
|
193
|
+
readonly verifyResetCode: {
|
|
194
|
+
readonly path: "/auth.AuthService/verifyResetCode";
|
|
195
|
+
readonly requestStream: false;
|
|
196
|
+
readonly responseStream: false;
|
|
197
|
+
readonly requestSerialize: (value: VerifyResetCodeRequest) => Buffer;
|
|
198
|
+
readonly requestDeserialize: (value: Buffer) => VerifyResetCodeRequest;
|
|
199
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
200
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
201
|
+
};
|
|
186
202
|
readonly resetPassword: {
|
|
187
203
|
readonly path: "/auth.AuthService/resetPassword";
|
|
188
204
|
readonly requestStream: false;
|
|
@@ -236,6 +252,7 @@ export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
|
236
252
|
refresh: handleUnaryCall<RefreshRequest, AuthResponse>;
|
|
237
253
|
logout: handleUnaryCall<LogoutRequest, Empty>;
|
|
238
254
|
recover: handleUnaryCall<RecoverRequest, Empty>;
|
|
255
|
+
verifyResetCode: handleUnaryCall<VerifyResetCodeRequest, Empty>;
|
|
239
256
|
resetPassword: handleUnaryCall<ResetPasswordRequest, Empty>;
|
|
240
257
|
confirmEmail: handleUnaryCall<ConfirmEmailRequest, ConfirmEmailResponse>;
|
|
241
258
|
confirmEmailByCode: handleUnaryCall<ConfirmEmailByCodeRequest, AuthResponse>;
|
package/dist/auth.interface.js
CHANGED
|
@@ -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.AuthResponse = exports.Tokens = exports.LoginCredentials = exports.RegisterCredentials = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
8
|
+
exports.AuthServiceService = exports.AUTH_SERVICE_NAME = exports.VerifyResetCodeRequest = 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");
|
|
@@ -844,6 +844,49 @@ exports.ResendConfirmationCodeRequest = {
|
|
|
844
844
|
return message;
|
|
845
845
|
},
|
|
846
846
|
};
|
|
847
|
+
function createBaseVerifyResetCodeRequest() {
|
|
848
|
+
return { email: "", code: "" };
|
|
849
|
+
}
|
|
850
|
+
exports.VerifyResetCodeRequest = {
|
|
851
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
852
|
+
if (message.email !== "") {
|
|
853
|
+
writer.uint32(10).string(message.email);
|
|
854
|
+
}
|
|
855
|
+
if (message.code !== "") {
|
|
856
|
+
writer.uint32(18).string(message.code);
|
|
857
|
+
}
|
|
858
|
+
return writer;
|
|
859
|
+
},
|
|
860
|
+
decode(input, length) {
|
|
861
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
862
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
863
|
+
const message = createBaseVerifyResetCodeRequest();
|
|
864
|
+
while (reader.pos < end) {
|
|
865
|
+
const tag = reader.uint32();
|
|
866
|
+
switch (tag >>> 3) {
|
|
867
|
+
case 1: {
|
|
868
|
+
if (tag !== 10) {
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
message.email = reader.string();
|
|
872
|
+
continue;
|
|
873
|
+
}
|
|
874
|
+
case 2: {
|
|
875
|
+
if (tag !== 18) {
|
|
876
|
+
break;
|
|
877
|
+
}
|
|
878
|
+
message.code = reader.string();
|
|
879
|
+
continue;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
883
|
+
break;
|
|
884
|
+
}
|
|
885
|
+
reader.skip(tag & 7);
|
|
886
|
+
}
|
|
887
|
+
return message;
|
|
888
|
+
},
|
|
889
|
+
};
|
|
847
890
|
function AuthServiceControllerMethods() {
|
|
848
891
|
return function (constructor) {
|
|
849
892
|
const grpcMethods = [
|
|
@@ -853,6 +896,7 @@ function AuthServiceControllerMethods() {
|
|
|
853
896
|
"refresh",
|
|
854
897
|
"logout",
|
|
855
898
|
"recover",
|
|
899
|
+
"verifyResetCode",
|
|
856
900
|
"resetPassword",
|
|
857
901
|
"confirmEmail",
|
|
858
902
|
"confirmEmailByCode",
|
|
@@ -926,6 +970,15 @@ exports.AuthServiceService = {
|
|
|
926
970
|
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
927
971
|
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
928
972
|
},
|
|
973
|
+
verifyResetCode: {
|
|
974
|
+
path: "/auth.AuthService/verifyResetCode",
|
|
975
|
+
requestStream: false,
|
|
976
|
+
responseStream: false,
|
|
977
|
+
requestSerialize: (value) => Buffer.from(exports.VerifyResetCodeRequest.encode(value).finish()),
|
|
978
|
+
requestDeserialize: (value) => exports.VerifyResetCodeRequest.decode(value),
|
|
979
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
980
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
981
|
+
},
|
|
929
982
|
resetPassword: {
|
|
930
983
|
path: "/auth.AuthService/resetPassword",
|
|
931
984
|
requestStream: false,
|