geniebox-shared-lib 1.0.70 → 1.0.72

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.
@@ -2,22 +2,57 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import type { handleUnaryCall, Metadata, UntypedServiceImplementation } from "@grpc/grpc-js";
3
3
  import { Observable } from "rxjs";
4
4
  export declare const protobufPackage = "ai";
5
- export interface AIResponse {
5
+ export interface AICallResponse {
6
6
  requestId: string;
7
7
  }
8
- export interface AIRequest {
9
- provider: string;
10
- method: string;
8
+ export interface AIStatusResponse {
9
+ requestId: string;
10
+ status: string;
11
+ }
12
+ export interface AIResultResponse {
13
+ requestId: string;
14
+ result: string;
15
+ }
16
+ export interface AICancelResponse {
17
+ requestId: string;
18
+ cancelled: boolean;
19
+ }
20
+ export interface AICallRequest {
21
+ endpoint: string;
11
22
  payload: string;
12
23
  }
24
+ export interface AIStatusRequest {
25
+ endpoint: string;
26
+ uuid: string;
27
+ }
28
+ export interface AIResultRequest {
29
+ endpoint: string;
30
+ uuid: string;
31
+ }
32
+ export interface AICancelRequest {
33
+ endpoint: string;
34
+ uuid: string;
35
+ }
13
36
  export declare const AI_PACKAGE_NAME = "ai";
14
- export declare const AIResponse: MessageFns<AIResponse>;
15
- export declare const AIRequest: MessageFns<AIRequest>;
37
+ export declare const AICallResponse: MessageFns<AICallResponse>;
38
+ export declare const AIStatusResponse: MessageFns<AIStatusResponse>;
39
+ export declare const AIResultResponse: MessageFns<AIResultResponse>;
40
+ export declare const AICancelResponse: MessageFns<AICancelResponse>;
41
+ export declare const AICallRequest: MessageFns<AICallRequest>;
42
+ export declare const AIStatusRequest: MessageFns<AIStatusRequest>;
43
+ export declare const AIResultRequest: MessageFns<AIResultRequest>;
44
+ export declare const AICancelRequest: MessageFns<AICancelRequest>;
16
45
  export interface AIServiceClient {
17
- call(request: AIRequest, metadata?: Metadata): Observable<AIResponse>;
46
+ call(request: AICallRequest, metadata?: Metadata): Observable<AICallResponse>;
47
+ status(request: AIStatusRequest, metadata?: Metadata): Observable<AIStatusResponse>;
48
+ result(request: AIResultRequest, metadata?: Metadata): Observable<AIResultResponse>;
49
+ cancel(request: AICancelRequest, metadata?: Metadata): Observable<AICancelResponse>;
18
50
  }
19
51
  export interface AIServiceController {
20
- call(request: AIRequest, metadata?: Metadata): Promise<AIResponse> | Observable<AIResponse> | AIResponse;
52
+ call(request: AICallRequest, metadata?: Metadata): Promise<AICallResponse> | Observable<AICallResponse> | AICallResponse;
53
+ status(request: AIStatusRequest, metadata?: Metadata): Promise<AIStatusResponse> | Observable<AIStatusResponse> | AIStatusResponse;
54
+ result(request: AIResultRequest, metadata?: Metadata): Promise<AIResultResponse> | Observable<AIResultResponse> | AIResultResponse;
55
+ cancel(request: AICancelRequest, metadata?: Metadata): Promise<AICancelResponse> | Observable<AICancelResponse> | AICancelResponse;
21
56
  }
22
57
  export declare function AIServiceControllerMethods(): (constructor: Function) => void;
23
58
  export declare const AI_SERVICE_NAME = "AIService";
@@ -27,14 +62,44 @@ export declare const AIServiceService: {
27
62
  readonly path: "/ai.AIService/call";
28
63
  readonly requestStream: false;
29
64
  readonly responseStream: false;
30
- readonly requestSerialize: (value: AIRequest) => Buffer;
31
- readonly requestDeserialize: (value: Buffer) => AIRequest;
32
- readonly responseSerialize: (value: AIResponse) => Buffer;
33
- readonly responseDeserialize: (value: Buffer) => AIResponse;
65
+ readonly requestSerialize: (value: AICallRequest) => Buffer;
66
+ readonly requestDeserialize: (value: Buffer) => AICallRequest;
67
+ readonly responseSerialize: (value: AICallResponse) => Buffer;
68
+ readonly responseDeserialize: (value: Buffer) => AICallResponse;
69
+ };
70
+ readonly status: {
71
+ readonly path: "/ai.AIService/status";
72
+ readonly requestStream: false;
73
+ readonly responseStream: false;
74
+ readonly requestSerialize: (value: AIStatusRequest) => Buffer;
75
+ readonly requestDeserialize: (value: Buffer) => AIStatusRequest;
76
+ readonly responseSerialize: (value: AIStatusResponse) => Buffer;
77
+ readonly responseDeserialize: (value: Buffer) => AIStatusResponse;
78
+ };
79
+ readonly result: {
80
+ readonly path: "/ai.AIService/result";
81
+ readonly requestStream: false;
82
+ readonly responseStream: false;
83
+ readonly requestSerialize: (value: AIResultRequest) => Buffer;
84
+ readonly requestDeserialize: (value: Buffer) => AIResultRequest;
85
+ readonly responseSerialize: (value: AIResultResponse) => Buffer;
86
+ readonly responseDeserialize: (value: Buffer) => AIResultResponse;
87
+ };
88
+ readonly cancel: {
89
+ readonly path: "/ai.AIService/cancel";
90
+ readonly requestStream: false;
91
+ readonly responseStream: false;
92
+ readonly requestSerialize: (value: AICancelRequest) => Buffer;
93
+ readonly requestDeserialize: (value: Buffer) => AICancelRequest;
94
+ readonly responseSerialize: (value: AICancelResponse) => Buffer;
95
+ readonly responseDeserialize: (value: Buffer) => AICancelResponse;
34
96
  };
35
97
  };
36
98
  export interface AIServiceServer extends UntypedServiceImplementation {
37
- call: handleUnaryCall<AIRequest, AIResponse>;
99
+ call: handleUnaryCall<AICallRequest, AICallResponse>;
100
+ status: handleUnaryCall<AIStatusRequest, AIStatusResponse>;
101
+ result: handleUnaryCall<AIResultRequest, AIResultResponse>;
102
+ cancel: handleUnaryCall<AICancelRequest, AICancelResponse>;
38
103
  }
39
104
  export interface MessageFns<T> {
40
105
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
@@ -5,17 +5,17 @@
5
5
  // protoc v5.28.2
6
6
  // source: ai.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.AIServiceService = exports.AI_SERVICE_NAME = exports.AIRequest = exports.AIResponse = exports.AI_PACKAGE_NAME = exports.protobufPackage = void 0;
8
+ exports.AIServiceService = exports.AI_SERVICE_NAME = exports.AICancelRequest = exports.AIResultRequest = exports.AIStatusRequest = exports.AICallRequest = exports.AICancelResponse = exports.AIResultResponse = exports.AIStatusResponse = exports.AICallResponse = exports.AI_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.AIServiceControllerMethods = AIServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const wire_1 = require("@bufbuild/protobuf/wire");
12
12
  const microservices_1 = require("@nestjs/microservices");
13
13
  exports.protobufPackage = "ai";
14
14
  exports.AI_PACKAGE_NAME = "ai";
15
- function createBaseAIResponse() {
15
+ function createBaseAICallResponse() {
16
16
  return { requestId: "" };
17
17
  }
18
- exports.AIResponse = {
18
+ exports.AICallResponse = {
19
19
  encode(message, writer = new wire_1.BinaryWriter()) {
20
20
  if (message.requestId !== "") {
21
21
  writer.uint32(10).string(message.requestId);
@@ -25,7 +25,7 @@ exports.AIResponse = {
25
25
  decode(input, length) {
26
26
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
27
27
  const end = length === undefined ? reader.len : reader.pos + length;
28
- const message = createBaseAIResponse();
28
+ const message = createBaseAICallResponse();
29
29
  while (reader.pos < end) {
30
30
  const tag = reader.uint32();
31
31
  switch (tag >>> 3) {
@@ -45,26 +45,66 @@ exports.AIResponse = {
45
45
  return message;
46
46
  },
47
47
  };
48
- function createBaseAIRequest() {
49
- return { provider: "", method: "", payload: "" };
48
+ function createBaseAIStatusResponse() {
49
+ return { requestId: "", status: "" };
50
50
  }
51
- exports.AIRequest = {
51
+ exports.AIStatusResponse = {
52
52
  encode(message, writer = new wire_1.BinaryWriter()) {
53
- if (message.provider !== "") {
54
- writer.uint32(10).string(message.provider);
53
+ if (message.requestId !== "") {
54
+ writer.uint32(10).string(message.requestId);
55
55
  }
56
- if (message.method !== "") {
57
- writer.uint32(18).string(message.method);
56
+ if (message.status !== "") {
57
+ writer.uint32(18).string(message.status);
58
58
  }
59
- if (message.payload !== "") {
60
- writer.uint32(26).string(message.payload);
59
+ return writer;
60
+ },
61
+ decode(input, length) {
62
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
63
+ const end = length === undefined ? reader.len : reader.pos + length;
64
+ const message = createBaseAIStatusResponse();
65
+ while (reader.pos < end) {
66
+ const tag = reader.uint32();
67
+ switch (tag >>> 3) {
68
+ case 1: {
69
+ if (tag !== 10) {
70
+ break;
71
+ }
72
+ message.requestId = reader.string();
73
+ continue;
74
+ }
75
+ case 2: {
76
+ if (tag !== 18) {
77
+ break;
78
+ }
79
+ message.status = reader.string();
80
+ continue;
81
+ }
82
+ }
83
+ if ((tag & 7) === 4 || tag === 0) {
84
+ break;
85
+ }
86
+ reader.skip(tag & 7);
87
+ }
88
+ return message;
89
+ },
90
+ };
91
+ function createBaseAIResultResponse() {
92
+ return { requestId: "", result: "" };
93
+ }
94
+ exports.AIResultResponse = {
95
+ encode(message, writer = new wire_1.BinaryWriter()) {
96
+ if (message.requestId !== "") {
97
+ writer.uint32(10).string(message.requestId);
98
+ }
99
+ if (message.result !== "") {
100
+ writer.uint32(18).string(message.result);
61
101
  }
62
102
  return writer;
63
103
  },
64
104
  decode(input, length) {
65
105
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
66
106
  const end = length === undefined ? reader.len : reader.pos + length;
67
- const message = createBaseAIRequest();
107
+ const message = createBaseAIResultResponse();
68
108
  while (reader.pos < end) {
69
109
  const tag = reader.uint32();
70
110
  switch (tag >>> 3) {
@@ -72,18 +112,97 @@ exports.AIRequest = {
72
112
  if (tag !== 10) {
73
113
  break;
74
114
  }
75
- message.provider = reader.string();
115
+ message.requestId = reader.string();
76
116
  continue;
77
117
  }
78
118
  case 2: {
79
119
  if (tag !== 18) {
80
120
  break;
81
121
  }
82
- message.method = reader.string();
122
+ message.result = reader.string();
123
+ continue;
124
+ }
125
+ }
126
+ if ((tag & 7) === 4 || tag === 0) {
127
+ break;
128
+ }
129
+ reader.skip(tag & 7);
130
+ }
131
+ return message;
132
+ },
133
+ };
134
+ function createBaseAICancelResponse() {
135
+ return { requestId: "", cancelled: false };
136
+ }
137
+ exports.AICancelResponse = {
138
+ encode(message, writer = new wire_1.BinaryWriter()) {
139
+ if (message.requestId !== "") {
140
+ writer.uint32(10).string(message.requestId);
141
+ }
142
+ if (message.cancelled !== false) {
143
+ writer.uint32(16).bool(message.cancelled);
144
+ }
145
+ return writer;
146
+ },
147
+ decode(input, length) {
148
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
149
+ const end = length === undefined ? reader.len : reader.pos + length;
150
+ const message = createBaseAICancelResponse();
151
+ while (reader.pos < end) {
152
+ const tag = reader.uint32();
153
+ switch (tag >>> 3) {
154
+ case 1: {
155
+ if (tag !== 10) {
156
+ break;
157
+ }
158
+ message.requestId = reader.string();
83
159
  continue;
84
160
  }
85
- case 3: {
86
- if (tag !== 26) {
161
+ case 2: {
162
+ if (tag !== 16) {
163
+ break;
164
+ }
165
+ message.cancelled = reader.bool();
166
+ continue;
167
+ }
168
+ }
169
+ if ((tag & 7) === 4 || tag === 0) {
170
+ break;
171
+ }
172
+ reader.skip(tag & 7);
173
+ }
174
+ return message;
175
+ },
176
+ };
177
+ function createBaseAICallRequest() {
178
+ return { endpoint: "", payload: "" };
179
+ }
180
+ exports.AICallRequest = {
181
+ encode(message, writer = new wire_1.BinaryWriter()) {
182
+ if (message.endpoint !== "") {
183
+ writer.uint32(10).string(message.endpoint);
184
+ }
185
+ if (message.payload !== "") {
186
+ writer.uint32(18).string(message.payload);
187
+ }
188
+ return writer;
189
+ },
190
+ decode(input, length) {
191
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
192
+ const end = length === undefined ? reader.len : reader.pos + length;
193
+ const message = createBaseAICallRequest();
194
+ while (reader.pos < end) {
195
+ const tag = reader.uint32();
196
+ switch (tag >>> 3) {
197
+ case 1: {
198
+ if (tag !== 10) {
199
+ break;
200
+ }
201
+ message.endpoint = reader.string();
202
+ continue;
203
+ }
204
+ case 2: {
205
+ if (tag !== 18) {
87
206
  break;
88
207
  }
89
208
  message.payload = reader.string();
@@ -98,9 +217,138 @@ exports.AIRequest = {
98
217
  return message;
99
218
  },
100
219
  };
220
+ function createBaseAIStatusRequest() {
221
+ return { endpoint: "", uuid: "" };
222
+ }
223
+ exports.AIStatusRequest = {
224
+ encode(message, writer = new wire_1.BinaryWriter()) {
225
+ if (message.endpoint !== "") {
226
+ writer.uint32(10).string(message.endpoint);
227
+ }
228
+ if (message.uuid !== "") {
229
+ writer.uint32(18).string(message.uuid);
230
+ }
231
+ return writer;
232
+ },
233
+ decode(input, length) {
234
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
235
+ const end = length === undefined ? reader.len : reader.pos + length;
236
+ const message = createBaseAIStatusRequest();
237
+ while (reader.pos < end) {
238
+ const tag = reader.uint32();
239
+ switch (tag >>> 3) {
240
+ case 1: {
241
+ if (tag !== 10) {
242
+ break;
243
+ }
244
+ message.endpoint = reader.string();
245
+ continue;
246
+ }
247
+ case 2: {
248
+ if (tag !== 18) {
249
+ break;
250
+ }
251
+ message.uuid = reader.string();
252
+ continue;
253
+ }
254
+ }
255
+ if ((tag & 7) === 4 || tag === 0) {
256
+ break;
257
+ }
258
+ reader.skip(tag & 7);
259
+ }
260
+ return message;
261
+ },
262
+ };
263
+ function createBaseAIResultRequest() {
264
+ return { endpoint: "", uuid: "" };
265
+ }
266
+ exports.AIResultRequest = {
267
+ encode(message, writer = new wire_1.BinaryWriter()) {
268
+ if (message.endpoint !== "") {
269
+ writer.uint32(10).string(message.endpoint);
270
+ }
271
+ if (message.uuid !== "") {
272
+ writer.uint32(18).string(message.uuid);
273
+ }
274
+ return writer;
275
+ },
276
+ decode(input, length) {
277
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
278
+ const end = length === undefined ? reader.len : reader.pos + length;
279
+ const message = createBaseAIResultRequest();
280
+ while (reader.pos < end) {
281
+ const tag = reader.uint32();
282
+ switch (tag >>> 3) {
283
+ case 1: {
284
+ if (tag !== 10) {
285
+ break;
286
+ }
287
+ message.endpoint = reader.string();
288
+ continue;
289
+ }
290
+ case 2: {
291
+ if (tag !== 18) {
292
+ break;
293
+ }
294
+ message.uuid = reader.string();
295
+ continue;
296
+ }
297
+ }
298
+ if ((tag & 7) === 4 || tag === 0) {
299
+ break;
300
+ }
301
+ reader.skip(tag & 7);
302
+ }
303
+ return message;
304
+ },
305
+ };
306
+ function createBaseAICancelRequest() {
307
+ return { endpoint: "", uuid: "" };
308
+ }
309
+ exports.AICancelRequest = {
310
+ encode(message, writer = new wire_1.BinaryWriter()) {
311
+ if (message.endpoint !== "") {
312
+ writer.uint32(10).string(message.endpoint);
313
+ }
314
+ if (message.uuid !== "") {
315
+ writer.uint32(18).string(message.uuid);
316
+ }
317
+ return writer;
318
+ },
319
+ decode(input, length) {
320
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
321
+ const end = length === undefined ? reader.len : reader.pos + length;
322
+ const message = createBaseAICancelRequest();
323
+ while (reader.pos < end) {
324
+ const tag = reader.uint32();
325
+ switch (tag >>> 3) {
326
+ case 1: {
327
+ if (tag !== 10) {
328
+ break;
329
+ }
330
+ message.endpoint = reader.string();
331
+ continue;
332
+ }
333
+ case 2: {
334
+ if (tag !== 18) {
335
+ break;
336
+ }
337
+ message.uuid = reader.string();
338
+ continue;
339
+ }
340
+ }
341
+ if ((tag & 7) === 4 || tag === 0) {
342
+ break;
343
+ }
344
+ reader.skip(tag & 7);
345
+ }
346
+ return message;
347
+ },
348
+ };
101
349
  function AIServiceControllerMethods() {
102
350
  return function (constructor) {
103
- const grpcMethods = ["call"];
351
+ const grpcMethods = ["call", "status", "result", "cancel"];
104
352
  for (const method of grpcMethods) {
105
353
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
106
354
  (0, microservices_1.GrpcMethod)("AIService", method)(constructor.prototype[method], method, descriptor);
@@ -118,9 +366,36 @@ exports.AIServiceService = {
118
366
  path: "/ai.AIService/call",
119
367
  requestStream: false,
120
368
  responseStream: false,
121
- requestSerialize: (value) => Buffer.from(exports.AIRequest.encode(value).finish()),
122
- requestDeserialize: (value) => exports.AIRequest.decode(value),
123
- responseSerialize: (value) => Buffer.from(exports.AIResponse.encode(value).finish()),
124
- responseDeserialize: (value) => exports.AIResponse.decode(value),
369
+ requestSerialize: (value) => Buffer.from(exports.AICallRequest.encode(value).finish()),
370
+ requestDeserialize: (value) => exports.AICallRequest.decode(value),
371
+ responseSerialize: (value) => Buffer.from(exports.AICallResponse.encode(value).finish()),
372
+ responseDeserialize: (value) => exports.AICallResponse.decode(value),
373
+ },
374
+ status: {
375
+ path: "/ai.AIService/status",
376
+ requestStream: false,
377
+ responseStream: false,
378
+ requestSerialize: (value) => Buffer.from(exports.AIStatusRequest.encode(value).finish()),
379
+ requestDeserialize: (value) => exports.AIStatusRequest.decode(value),
380
+ responseSerialize: (value) => Buffer.from(exports.AIStatusResponse.encode(value).finish()),
381
+ responseDeserialize: (value) => exports.AIStatusResponse.decode(value),
382
+ },
383
+ result: {
384
+ path: "/ai.AIService/result",
385
+ requestStream: false,
386
+ responseStream: false,
387
+ requestSerialize: (value) => Buffer.from(exports.AIResultRequest.encode(value).finish()),
388
+ requestDeserialize: (value) => exports.AIResultRequest.decode(value),
389
+ responseSerialize: (value) => Buffer.from(exports.AIResultResponse.encode(value).finish()),
390
+ responseDeserialize: (value) => exports.AIResultResponse.decode(value),
391
+ },
392
+ cancel: {
393
+ path: "/ai.AIService/cancel",
394
+ requestStream: false,
395
+ responseStream: false,
396
+ requestSerialize: (value) => Buffer.from(exports.AICancelRequest.encode(value).finish()),
397
+ requestDeserialize: (value) => exports.AICancelRequest.decode(value),
398
+ responseSerialize: (value) => Buffer.from(exports.AICancelResponse.encode(value).finish()),
399
+ responseDeserialize: (value) => exports.AICancelResponse.decode(value),
125
400
  },
126
401
  };
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { EventClient } from "./event/event.client";
8
8
  export { KeyClient } from "./key/key.client";
9
9
  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";
10
10
  export { MessageFns as AuthMessageFns, protobufPackage as AuthProtobufPackage, LoginCredentials, RegisterCredentials, LogoutRequest, RefreshRequest, AuthResponse, RefreshTokenResponse, RecoverRequest, ResetPasswordRequest, ConfirmEmailRequest, ConfirmEmailByCodeRequest, ConfirmEmailResponse, CheckEmailVerifiedRequest, CheckEmailVerifiedResponse, ResendConfirmationCodeRequest, } from "./auth/auth.interface";
11
- export { MessageFns as AIMessageFns, protobufPackage as AIProtobufPackage, AIRequest, AIResponse, AIServiceService as AIService, } from "./ai/ai.interface";
11
+ export { MessageFns as AIMessageFns, protobufPackage as AIProtobufPackage, AICallRequest, AICallResponse, AIStatusRequest, AIStatusResponse, AIResultRequest, AIResultResponse, AICancelRequest, AICancelResponse, AIServiceService as AIService, } from "./ai/ai.interface";
12
12
  export { MessageFns as OpenAIMessageFns, protobufPackage as OpenAIProtobufPackage, CreateRequest as OpenAICreateRequest, CreateResponse as OpenAICreateResponse, OpenAIServiceService as OpenAIService, } from "./openai/openai.interface";
13
13
  export { UploadRequest, UploadResponse, DownloadRequest, DownloadResponse, DeleteRequest, DeleteResponse, FileServiceService as FileService, protobufPackage as FileProtobufPackage, } from "./file/file.interface";
14
14
  export { MessageFns as EventMessageFns, protobufPackage as EventProtobufPackage, SubscribeRequest, EventMessage, EventServiceService as EventService, } from "./event/event.interface";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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.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.KeyClient = exports.EventClient = exports.FileClient = exports.OpenAIClient = exports.AIClient = exports.AuthClient = exports.UsersClient = exports.SharedModule = void 0;
4
- exports.KeyService = exports.GetKeysByUserRequest = exports.KeysResponse = exports.KeyResponse = exports.GetKeyByIdRequest = exports.RemoveKeyRequest = exports.UpdateKeyRequest = exports.CreateKeyRequest = exports.Key = exports.KeysProtobufPackage = exports.EventService = exports.EventMessage = exports.SubscribeRequest = exports.EventProtobufPackage = exports.FileProtobufPackage = exports.FileService = exports.DeleteResponse = exports.DeleteRequest = exports.DownloadResponse = exports.DownloadRequest = void 0;
3
+ exports.AIService = exports.AICancelResponse = exports.AICancelRequest = exports.AIResultResponse = exports.AIResultRequest = exports.AIStatusResponse = exports.AIStatusRequest = exports.AICallResponse = exports.AICallRequest = exports.AIProtobufPackage = exports.ResendConfirmationCodeRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.RefreshTokenResponse = 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.KeyClient = exports.EventClient = exports.FileClient = exports.OpenAIClient = exports.AIClient = exports.AuthClient = exports.UsersClient = exports.SharedModule = void 0;
4
+ exports.KeyService = exports.GetKeysByUserRequest = exports.KeysResponse = exports.KeyResponse = exports.GetKeyByIdRequest = exports.RemoveKeyRequest = exports.UpdateKeyRequest = exports.CreateKeyRequest = exports.Key = exports.KeysProtobufPackage = exports.EventService = exports.EventMessage = exports.SubscribeRequest = exports.EventProtobufPackage = exports.FileProtobufPackage = exports.FileService = exports.DeleteResponse = exports.DeleteRequest = exports.DownloadResponse = exports.DownloadRequest = exports.UploadResponse = exports.UploadRequest = exports.OpenAIService = exports.OpenAICreateResponse = exports.OpenAICreateRequest = exports.OpenAIProtobufPackage = 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");
@@ -63,8 +63,14 @@ Object.defineProperty(exports, "ResendConfirmationCodeRequest", { enumerable: tr
63
63
  // ============================
64
64
  var ai_interface_1 = require("./ai/ai.interface");
65
65
  Object.defineProperty(exports, "AIProtobufPackage", { enumerable: true, get: function () { return ai_interface_1.protobufPackage; } });
66
- Object.defineProperty(exports, "AIRequest", { enumerable: true, get: function () { return ai_interface_1.AIRequest; } });
67
- Object.defineProperty(exports, "AIResponse", { enumerable: true, get: function () { return ai_interface_1.AIResponse; } });
66
+ Object.defineProperty(exports, "AICallRequest", { enumerable: true, get: function () { return ai_interface_1.AICallRequest; } });
67
+ Object.defineProperty(exports, "AICallResponse", { enumerable: true, get: function () { return ai_interface_1.AICallResponse; } });
68
+ Object.defineProperty(exports, "AIStatusRequest", { enumerable: true, get: function () { return ai_interface_1.AIStatusRequest; } });
69
+ Object.defineProperty(exports, "AIStatusResponse", { enumerable: true, get: function () { return ai_interface_1.AIStatusResponse; } });
70
+ Object.defineProperty(exports, "AIResultRequest", { enumerable: true, get: function () { return ai_interface_1.AIResultRequest; } });
71
+ Object.defineProperty(exports, "AIResultResponse", { enumerable: true, get: function () { return ai_interface_1.AIResultResponse; } });
72
+ Object.defineProperty(exports, "AICancelRequest", { enumerable: true, get: function () { return ai_interface_1.AICancelRequest; } });
73
+ Object.defineProperty(exports, "AICancelResponse", { enumerable: true, get: function () { return ai_interface_1.AICancelResponse; } });
68
74
  Object.defineProperty(exports, "AIService", { enumerable: true, get: function () { return ai_interface_1.AIServiceService; } });
69
75
  // ============================
70
76
  // OpenAI exports
@@ -32,4 +32,5 @@ export interface SharedModuleOptions {
32
32
  export declare class SharedModule {
33
33
  private static readonly logger;
34
34
  static forRoot(options?: SharedModuleOptions): DynamicModule;
35
+ static forFeature(clients: any[]): DynamicModule;
35
36
  }
@@ -239,6 +239,13 @@ let SharedModule = SharedModule_1 = class SharedModule {
239
239
  exports: providers.map((p) => p.provide),
240
240
  };
241
241
  }
242
+ static forFeature(clients) {
243
+ return {
244
+ module: SharedModule_1,
245
+ providers: clients,
246
+ exports: clients,
247
+ };
248
+ }
242
249
  };
243
250
  exports.SharedModule = SharedModule;
244
251
  SharedModule.logger = new common_1.Logger("SharedModule");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geniebox-shared-lib",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "description": "Shared NestJS library with gRPC clients",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",