geniebox-shared-lib 1.0.59 → 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 +9 -5
- package/dist/auth/auth.interface.js +36 -3
- 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,7 +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>;
|
|
114
|
-
resendConfirmationCode(request:
|
|
118
|
+
resendConfirmationCode(request: ResendConfirmationCodeRequest, metadata?: Metadata): Observable<Empty>;
|
|
115
119
|
checkEmailVerified(request: CheckEmailVerifiedRequest, metadata?: Metadata): Observable<CheckEmailVerifiedResponse>;
|
|
116
120
|
}
|
|
117
121
|
export interface AuthServiceController {
|
|
@@ -124,7 +128,7 @@ export interface AuthServiceController {
|
|
|
124
128
|
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): void;
|
|
125
129
|
confirmEmail(request: ConfirmEmailRequest, metadata?: Metadata): Promise<ConfirmEmailResponse> | Observable<ConfirmEmailResponse> | ConfirmEmailResponse;
|
|
126
130
|
confirmEmailByCode(request: ConfirmEmailByCodeRequest, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
|
|
127
|
-
resendConfirmationCode(request:
|
|
131
|
+
resendConfirmationCode(request: ResendConfirmationCodeRequest, metadata?: Metadata): void;
|
|
128
132
|
checkEmailVerified(request: CheckEmailVerifiedRequest, metadata?: Metadata): Promise<CheckEmailVerifiedResponse> | Observable<CheckEmailVerifiedResponse> | CheckEmailVerifiedResponse;
|
|
129
133
|
}
|
|
130
134
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
@@ -216,8 +220,8 @@ export declare const AuthServiceService: {
|
|
|
216
220
|
readonly path: "/auth.AuthService/resendConfirmationCode";
|
|
217
221
|
readonly requestStream: false;
|
|
218
222
|
readonly responseStream: false;
|
|
219
|
-
readonly requestSerialize: (value:
|
|
220
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
223
|
+
readonly requestSerialize: (value: ResendConfirmationCodeRequest) => Buffer;
|
|
224
|
+
readonly requestDeserialize: (value: Buffer) => ResendConfirmationCodeRequest;
|
|
221
225
|
readonly responseSerialize: (value: Empty) => Buffer;
|
|
222
226
|
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
223
227
|
};
|
|
@@ -241,7 +245,7 @@ export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
|
241
245
|
resetPassword: handleUnaryCall<ResetPasswordRequest, Empty>;
|
|
242
246
|
confirmEmail: handleUnaryCall<ConfirmEmailRequest, ConfirmEmailResponse>;
|
|
243
247
|
confirmEmailByCode: handleUnaryCall<ConfirmEmailByCodeRequest, AuthResponse>;
|
|
244
|
-
resendConfirmationCode: handleUnaryCall<
|
|
248
|
+
resendConfirmationCode: handleUnaryCall<ResendConfirmationCodeRequest, Empty>;
|
|
245
249
|
checkEmailVerified: handleUnaryCall<CheckEmailVerifiedRequest, CheckEmailVerifiedResponse>;
|
|
246
250
|
}
|
|
247
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 = [
|
|
@@ -977,8 +1010,8 @@ exports.AuthServiceService = {
|
|
|
977
1010
|
path: "/auth.AuthService/resendConfirmationCode",
|
|
978
1011
|
requestStream: false,
|
|
979
1012
|
responseStream: false,
|
|
980
|
-
requestSerialize: (value) => Buffer.from(exports.
|
|
981
|
-
requestDeserialize: (value) => exports.
|
|
1013
|
+
requestSerialize: (value) => Buffer.from(exports.ResendConfirmationCodeRequest.encode(value).finish()),
|
|
1014
|
+
requestDeserialize: (value) => exports.ResendConfirmationCodeRequest.decode(value),
|
|
982
1015
|
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
983
1016
|
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
984
1017
|
},
|
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
|
// ============================
|