geniebox-shared-lib 1.0.48 → 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;
@@ -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
  }
@@ -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.48",
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",