geniebox-shared-lib 1.0.58 → 1.0.60
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
|
@@ -83,6 +83,9 @@ export interface CheckEmailVerifiedResponse {
|
|
|
83
83
|
export interface GetByIdRequest {
|
|
84
84
|
uuid: string;
|
|
85
85
|
}
|
|
86
|
+
export interface ResendConfirmationCodeRequest {
|
|
87
|
+
userId: string;
|
|
88
|
+
}
|
|
86
89
|
export declare const AUTH_PACKAGE_NAME = "auth";
|
|
87
90
|
export declare const RegisterCredentials: MessageFns<RegisterCredentials>;
|
|
88
91
|
export declare const LoginCredentials: MessageFns<LoginCredentials>;
|
|
@@ -101,6 +104,7 @@ export declare const ConfirmEmailResponse: MessageFns<ConfirmEmailResponse>;
|
|
|
101
104
|
export declare const CheckEmailVerifiedRequest: MessageFns<CheckEmailVerifiedRequest>;
|
|
102
105
|
export declare const CheckEmailVerifiedResponse: MessageFns<CheckEmailVerifiedResponse>;
|
|
103
106
|
export declare const GetByIdRequest: MessageFns<GetByIdRequest>;
|
|
107
|
+
export declare const ResendConfirmationCodeRequest: MessageFns<ResendConfirmationCodeRequest>;
|
|
104
108
|
export interface AuthServiceClient {
|
|
105
109
|
profile(request: GetByIdRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
106
110
|
login(request: LoginCredentials, metadata?: Metadata): Observable<AuthResponse>;
|
|
@@ -111,6 +115,7 @@ export interface AuthServiceClient {
|
|
|
111
115
|
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): Observable<Empty>;
|
|
112
116
|
confirmEmail(request: ConfirmEmailRequest, metadata?: Metadata): Observable<ConfirmEmailResponse>;
|
|
113
117
|
confirmEmailByCode(request: ConfirmEmailByCodeRequest, metadata?: Metadata): Observable<AuthResponse>;
|
|
118
|
+
resendConfirmationCode(request: ResendConfirmationCodeRequest, metadata?: Metadata): Observable<Empty>;
|
|
114
119
|
checkEmailVerified(request: CheckEmailVerifiedRequest, metadata?: Metadata): Observable<CheckEmailVerifiedResponse>;
|
|
115
120
|
}
|
|
116
121
|
export interface AuthServiceController {
|
|
@@ -123,6 +128,7 @@ export interface AuthServiceController {
|
|
|
123
128
|
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): void;
|
|
124
129
|
confirmEmail(request: ConfirmEmailRequest, metadata?: Metadata): Promise<ConfirmEmailResponse> | Observable<ConfirmEmailResponse> | ConfirmEmailResponse;
|
|
125
130
|
confirmEmailByCode(request: ConfirmEmailByCodeRequest, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
131
|
+
resendConfirmationCode(request: ResendConfirmationCodeRequest, metadata?: Metadata): void;
|
|
126
132
|
checkEmailVerified(request: CheckEmailVerifiedRequest, metadata?: Metadata): Promise<CheckEmailVerifiedResponse> | Observable<CheckEmailVerifiedResponse> | CheckEmailVerifiedResponse;
|
|
127
133
|
}
|
|
128
134
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
@@ -210,6 +216,15 @@ export declare const AuthServiceService: {
|
|
|
210
216
|
readonly responseSerialize: (value: AuthResponse) => Buffer;
|
|
211
217
|
readonly responseDeserialize: (value: Buffer) => AuthResponse;
|
|
212
218
|
};
|
|
219
|
+
readonly resendConfirmationCode: {
|
|
220
|
+
readonly path: "/auth.AuthService/resendConfirmationCode";
|
|
221
|
+
readonly requestStream: false;
|
|
222
|
+
readonly responseStream: false;
|
|
223
|
+
readonly requestSerialize: (value: ResendConfirmationCodeRequest) => Buffer;
|
|
224
|
+
readonly requestDeserialize: (value: Buffer) => ResendConfirmationCodeRequest;
|
|
225
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
226
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
227
|
+
};
|
|
213
228
|
readonly checkEmailVerified: {
|
|
214
229
|
readonly path: "/auth.AuthService/checkEmailVerified";
|
|
215
230
|
readonly requestStream: false;
|
|
@@ -230,6 +245,7 @@ export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
|
230
245
|
resetPassword: handleUnaryCall<ResetPasswordRequest, Empty>;
|
|
231
246
|
confirmEmail: handleUnaryCall<ConfirmEmailRequest, ConfirmEmailResponse>;
|
|
232
247
|
confirmEmailByCode: handleUnaryCall<ConfirmEmailByCodeRequest, AuthResponse>;
|
|
248
|
+
resendConfirmationCode: handleUnaryCall<ResendConfirmationCodeRequest, Empty>;
|
|
233
249
|
checkEmailVerified: handleUnaryCall<CheckEmailVerifiedRequest, CheckEmailVerifiedResponse>;
|
|
234
250
|
}
|
|
235
251
|
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.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;
|
|
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.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");
|
|
@@ -864,6 +864,39 @@ exports.GetByIdRequest = {
|
|
|
864
864
|
return message;
|
|
865
865
|
},
|
|
866
866
|
};
|
|
867
|
+
function createBaseResendConfirmationCodeRequest() {
|
|
868
|
+
return { userId: "" };
|
|
869
|
+
}
|
|
870
|
+
exports.ResendConfirmationCodeRequest = {
|
|
871
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
872
|
+
if (message.userId !== "") {
|
|
873
|
+
writer.uint32(10).string(message.userId);
|
|
874
|
+
}
|
|
875
|
+
return writer;
|
|
876
|
+
},
|
|
877
|
+
decode(input, length) {
|
|
878
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
879
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
880
|
+
const message = createBaseResendConfirmationCodeRequest();
|
|
881
|
+
while (reader.pos < end) {
|
|
882
|
+
const tag = reader.uint32();
|
|
883
|
+
switch (tag >>> 3) {
|
|
884
|
+
case 1: {
|
|
885
|
+
if (tag !== 10) {
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
message.userId = reader.string();
|
|
889
|
+
continue;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
893
|
+
break;
|
|
894
|
+
}
|
|
895
|
+
reader.skip(tag & 7);
|
|
896
|
+
}
|
|
897
|
+
return message;
|
|
898
|
+
},
|
|
899
|
+
};
|
|
867
900
|
function AuthServiceControllerMethods() {
|
|
868
901
|
return function (constructor) {
|
|
869
902
|
const grpcMethods = [
|
|
@@ -876,6 +909,7 @@ function AuthServiceControllerMethods() {
|
|
|
876
909
|
"resetPassword",
|
|
877
910
|
"confirmEmail",
|
|
878
911
|
"confirmEmailByCode",
|
|
912
|
+
"resendConfirmationCode",
|
|
879
913
|
"checkEmailVerified",
|
|
880
914
|
];
|
|
881
915
|
for (const method of grpcMethods) {
|
|
@@ -972,6 +1006,15 @@ exports.AuthServiceService = {
|
|
|
972
1006
|
responseSerialize: (value) => Buffer.from(exports.AuthResponse.encode(value).finish()),
|
|
973
1007
|
responseDeserialize: (value) => exports.AuthResponse.decode(value),
|
|
974
1008
|
},
|
|
1009
|
+
resendConfirmationCode: {
|
|
1010
|
+
path: "/auth.AuthService/resendConfirmationCode",
|
|
1011
|
+
requestStream: false,
|
|
1012
|
+
responseStream: false,
|
|
1013
|
+
requestSerialize: (value) => Buffer.from(exports.ResendConfirmationCodeRequest.encode(value).finish()),
|
|
1014
|
+
requestDeserialize: (value) => exports.ResendConfirmationCodeRequest.decode(value),
|
|
1015
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
1016
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
1017
|
+
},
|
|
975
1018
|
checkEmailVerified: {
|
|
976
1019
|
path: "/auth.AuthService/checkEmailVerified",
|
|
977
1020
|
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, ConfirmEmailByCodeRequest, 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, 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.
|
|
4
|
-
exports.FileProtobufPackage = exports.FileService = exports.DeleteResponse = exports.DeleteRequest = void 0;
|
|
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.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 = exports.DownloadResponse = 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");
|
|
@@ -54,6 +54,7 @@ Object.defineProperty(exports, "ConfirmEmailByCodeRequest", { enumerable: true,
|
|
|
54
54
|
Object.defineProperty(exports, "ConfirmEmailResponse", { enumerable: true, get: function () { return auth_interface_1.ConfirmEmailResponse; } });
|
|
55
55
|
Object.defineProperty(exports, "CheckEmailVerifiedRequest", { enumerable: true, get: function () { return auth_interface_1.CheckEmailVerifiedRequest; } });
|
|
56
56
|
Object.defineProperty(exports, "CheckEmailVerifiedResponse", { enumerable: true, get: function () { return auth_interface_1.CheckEmailVerifiedResponse; } });
|
|
57
|
+
Object.defineProperty(exports, "ResendConfirmationCodeRequest", { enumerable: true, get: function () { return auth_interface_1.ResendConfirmationCodeRequest; } });
|
|
57
58
|
// ============================
|
|
58
59
|
// AI exports
|
|
59
60
|
// ============================
|