geniebox-shared-lib 1.0.47 → 1.0.49

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.
@@ -3,9 +3,7 @@ import type { handleUnaryCall, Metadata, UntypedServiceImplementation } from "@g
3
3
  import { Observable } from "rxjs";
4
4
  export declare const protobufPackage = "ai";
5
5
  export interface AIResponse {
6
- output?: {
7
- [key: string]: any;
8
- } | undefined;
6
+ taskId: string;
9
7
  }
10
8
  export interface AIRequest {
11
9
  provider: string;
@@ -28,7 +26,7 @@ export declare const AI_SERVICE_NAME = "AIService";
28
26
  export type AIServiceService = typeof AIServiceService;
29
27
  export declare const AIServiceService: {
30
28
  readonly call: {
31
- readonly path: "/ai.AIService/Call";
29
+ readonly path: "/ai.AIService/call";
32
30
  readonly requestStream: false;
33
31
  readonly responseStream: false;
34
32
  readonly requestSerialize: (value: AIRequest) => Buffer;
@@ -15,12 +15,12 @@ const struct_interface_1 = require("./google/protobuf/struct.interface");
15
15
  exports.protobufPackage = "ai";
16
16
  exports.AI_PACKAGE_NAME = "ai";
17
17
  function createBaseAIResponse() {
18
- return {};
18
+ return { taskId: "" };
19
19
  }
20
20
  exports.AIResponse = {
21
21
  encode(message, writer = new wire_1.BinaryWriter()) {
22
- if (message.output !== undefined) {
23
- struct_interface_1.Struct.encode(struct_interface_1.Struct.wrap(message.output), writer.uint32(10).fork()).join();
22
+ if (message.taskId !== "") {
23
+ writer.uint32(10).string(message.taskId);
24
24
  }
25
25
  return writer;
26
26
  },
@@ -35,7 +35,7 @@ exports.AIResponse = {
35
35
  if (tag !== 10) {
36
36
  break;
37
37
  }
38
- message.output = struct_interface_1.Struct.unwrap(struct_interface_1.Struct.decode(reader, reader.uint32()));
38
+ message.taskId = reader.string();
39
39
  continue;
40
40
  }
41
41
  }
@@ -118,7 +118,7 @@ function AIServiceControllerMethods() {
118
118
  exports.AI_SERVICE_NAME = "AIService";
119
119
  exports.AIServiceService = {
120
120
  call: {
121
- path: "/ai.AIService/Call",
121
+ path: "/ai.AIService/call",
122
122
  requestStream: false,
123
123
  responseStream: false,
124
124
  requestSerialize: (value) => Buffer.from(exports.AIRequest.encode(value).finish()),
@@ -3,17 +3,14 @@ import type { handleUnaryCall, Metadata, UntypedServiceImplementation } from "@g
3
3
  import { Observable } from "rxjs";
4
4
  export declare const protobufPackage = "openai";
5
5
  export interface CreateRequest {
6
- /** Параметры для OpenAI (model, input, reasoning и т.п.) */
7
6
  body?: {
8
7
  [key: string]: any;
9
8
  } | undefined;
10
- /** Дополнительные опции (timeout, headers и т.п.) */
11
9
  options?: {
12
10
  [key: string]: any;
13
11
  } | undefined;
14
12
  }
15
13
  export interface CreateResponse {
16
- /** Сырой JSON-ответ от OpenAI */
17
14
  data?: {
18
15
  [key: string]: any;
19
16
  } | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geniebox-shared-lib",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "Shared NestJS library with gRPC clients",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",