geniebox-shared-lib 1.0.50 → 1.0.51
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.
|
@@ -8,9 +8,7 @@ export interface AIResponse {
|
|
|
8
8
|
export interface AIRequest {
|
|
9
9
|
provider: string;
|
|
10
10
|
method: string;
|
|
11
|
-
payload
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
} | undefined;
|
|
11
|
+
payload: string;
|
|
14
12
|
}
|
|
15
13
|
export declare const AI_PACKAGE_NAME = "ai";
|
|
16
14
|
export declare const AIResponse: MessageFns<AIResponse>;
|
package/dist/ai/ai.interface.js
CHANGED
|
@@ -10,8 +10,6 @@ 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
|
-
const protobufjs_1 = require("protobufjs");
|
|
14
|
-
const struct_interface_1 = require("./google/protobuf/struct.interface");
|
|
15
13
|
exports.protobufPackage = "ai";
|
|
16
14
|
exports.AI_PACKAGE_NAME = "ai";
|
|
17
15
|
function createBaseAIResponse() {
|
|
@@ -48,7 +46,7 @@ exports.AIResponse = {
|
|
|
48
46
|
},
|
|
49
47
|
};
|
|
50
48
|
function createBaseAIRequest() {
|
|
51
|
-
return { provider: "", method: "" };
|
|
49
|
+
return { provider: "", method: "", payload: "" };
|
|
52
50
|
}
|
|
53
51
|
exports.AIRequest = {
|
|
54
52
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -58,8 +56,8 @@ exports.AIRequest = {
|
|
|
58
56
|
if (message.method !== "") {
|
|
59
57
|
writer.uint32(18).string(message.method);
|
|
60
58
|
}
|
|
61
|
-
if (message.payload !==
|
|
62
|
-
|
|
59
|
+
if (message.payload !== "") {
|
|
60
|
+
writer.uint32(26).string(message.payload);
|
|
63
61
|
}
|
|
64
62
|
return writer;
|
|
65
63
|
},
|
|
@@ -88,7 +86,7 @@ exports.AIRequest = {
|
|
|
88
86
|
if (tag !== 26) {
|
|
89
87
|
break;
|
|
90
88
|
}
|
|
91
|
-
message.payload =
|
|
89
|
+
message.payload = reader.string();
|
|
92
90
|
continue;
|
|
93
91
|
}
|
|
94
92
|
}
|
|
@@ -100,7 +98,6 @@ exports.AIRequest = {
|
|
|
100
98
|
return message;
|
|
101
99
|
},
|
|
102
100
|
};
|
|
103
|
-
protobufjs_1.wrappers[".google.protobuf.Struct"] = { fromObject: struct_interface_1.Struct.wrap, toObject: struct_interface_1.Struct.unwrap };
|
|
104
101
|
function AIServiceControllerMethods() {
|
|
105
102
|
return function (constructor) {
|
|
106
103
|
const grpcMethods = ["call"];
|