geniebox-shared-lib 2.0.0 → 2.0.1
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/README.md +636 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/dist/user.interface.d.ts +23 -7
- package/dist/user.interface.js +49 -6
- package/package.json +1 -1
- package/dist/account/account.client.d.ts +0 -11
- package/dist/account/account.client.js +0 -41
- package/dist/account/account.interface.d.ts +0 -184
- package/dist/account/account.interface.js +0 -625
- package/dist/ai/ai.client.d.ts +0 -12
- package/dist/ai/ai.client.js +0 -42
- package/dist/ai/ai.interface.d.ts +0 -138
- package/dist/ai/ai.interface.js +0 -532
- package/dist/ai/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/ai/google/protobuf/empty.interface.js +0 -35
- package/dist/ai/google/protobuf/struct.interface.d.ts +0 -91
- package/dist/ai/google/protobuf/struct.interface.js +0 -300
- package/dist/auth/auth.client.d.ts +0 -11
- package/dist/auth/auth.client.js +0 -44
- package/dist/auth/auth.interface.d.ts +0 -248
- package/dist/auth/auth.interface.js +0 -974
- package/dist/auth/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/auth/google/protobuf/empty.interface.js +0 -35
- package/dist/event/event.client.d.ts +0 -13
- package/dist/event/event.client.js +0 -48
- package/dist/event/event.interface.d.ts +0 -42
- package/dist/event/event.interface.js +0 -126
- package/dist/file/file.client.d.ts +0 -12
- package/dist/file/file.client.js +0 -42
- package/dist/file/file.interface.d.ts +0 -90
- package/dist/file/file.interface.js +0 -332
- package/dist/file.interface.d.ts +0 -90
- package/dist/file.interface.js +0 -332
- package/dist/key/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/key/google/protobuf/empty.interface.js +0 -35
- package/dist/key/key.client.d.ts +0 -12
- package/dist/key/key.client.js +0 -42
- package/dist/key/key.interface.d.ts +0 -134
- package/dist/key/key.interface.js +0 -430
- package/dist/openai/google/protobuf/struct.interface.d.ts +0 -91
- package/dist/openai/google/protobuf/struct.interface.js +0 -300
- package/dist/openai/openai.client.d.ts +0 -12
- package/dist/openai/openai.client.js +0 -43
- package/dist/openai/openai.interface.d.ts +0 -41
- package/dist/openai/openai.interface.js +0 -116
- package/dist/user/account.interface.d.ts +0 -184
- package/dist/user/account.interface.js +0 -625
- package/dist/user/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/user/google/protobuf/empty.interface.js +0 -35
- package/dist/user/google/protobuf/timestamp.interface.d.ts +0 -114
- package/dist/user/google/protobuf/timestamp.interface.js +0 -65
- package/dist/user/user.client.d.ts +0 -12
- package/dist/user/user.client.js +0 -42
- package/dist/user/user.interface.d.ts +0 -289
- package/dist/user/user.interface.js +0 -1264
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import type { handleServerStreamingCall, handleUnaryCall, Metadata, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
export declare const protobufPackage = "ai";
|
|
5
|
-
export interface AICallResponse {
|
|
6
|
-
requestId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface AIStatusResponse {
|
|
9
|
-
requestId: string;
|
|
10
|
-
status: string;
|
|
11
|
-
logs?: Array<{
|
|
12
|
-
message: string;
|
|
13
|
-
level?: "info" | "warn" | "error";
|
|
14
|
-
timestamp?: string;
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
17
|
-
export interface AIResultResponse {
|
|
18
|
-
requestId: string;
|
|
19
|
-
result: string;
|
|
20
|
-
}
|
|
21
|
-
export interface AICancelResponse {
|
|
22
|
-
requestId: string;
|
|
23
|
-
cancelled: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface AICallRequest {
|
|
26
|
-
endpoint: string;
|
|
27
|
-
payload: string;
|
|
28
|
-
}
|
|
29
|
-
export interface AIStatusRequest {
|
|
30
|
-
endpoint: string;
|
|
31
|
-
uuid: string;
|
|
32
|
-
}
|
|
33
|
-
export interface AIResultRequest {
|
|
34
|
-
endpoint: string;
|
|
35
|
-
uuid: string;
|
|
36
|
-
}
|
|
37
|
-
export interface AICancelRequest {
|
|
38
|
-
endpoint: string;
|
|
39
|
-
uuid: string;
|
|
40
|
-
}
|
|
41
|
-
export interface AIStreamRequest {
|
|
42
|
-
endpoint: string;
|
|
43
|
-
payload: string;
|
|
44
|
-
}
|
|
45
|
-
export interface AIStreamResponse {
|
|
46
|
-
requestId: string;
|
|
47
|
-
/** "start", "data", "log", "done", "error" */
|
|
48
|
-
type: string;
|
|
49
|
-
data: string;
|
|
50
|
-
chunk: number;
|
|
51
|
-
timestamp: string;
|
|
52
|
-
}
|
|
53
|
-
export declare const AI_PACKAGE_NAME = "ai";
|
|
54
|
-
export declare const AICallResponse: MessageFns<AICallResponse>;
|
|
55
|
-
export declare const AIStatusResponse: MessageFns<AIStatusResponse>;
|
|
56
|
-
export declare const AIResultResponse: MessageFns<AIResultResponse>;
|
|
57
|
-
export declare const AICancelResponse: MessageFns<AICancelResponse>;
|
|
58
|
-
export declare const AICallRequest: MessageFns<AICallRequest>;
|
|
59
|
-
export declare const AIStatusRequest: MessageFns<AIStatusRequest>;
|
|
60
|
-
export declare const AIResultRequest: MessageFns<AIResultRequest>;
|
|
61
|
-
export declare const AICancelRequest: MessageFns<AICancelRequest>;
|
|
62
|
-
export declare const AIStreamRequest: MessageFns<AIStreamRequest>;
|
|
63
|
-
export declare const AIStreamResponse: MessageFns<AIStreamResponse>;
|
|
64
|
-
export interface AIServiceClient {
|
|
65
|
-
call(request: AICallRequest, metadata?: Metadata): Observable<AICallResponse>;
|
|
66
|
-
status(request: AIStatusRequest, metadata?: Metadata): Observable<AIStatusResponse>;
|
|
67
|
-
result(request: AIResultRequest, metadata?: Metadata): Observable<AIResultResponse>;
|
|
68
|
-
cancel(request: AICancelRequest, metadata?: Metadata): Observable<AICancelResponse>;
|
|
69
|
-
stream(request: AIStreamRequest, metadata?: Metadata): Observable<AIStreamResponse>;
|
|
70
|
-
}
|
|
71
|
-
export interface AIServiceController {
|
|
72
|
-
call(request: AICallRequest, metadata?: Metadata): Promise<AICallResponse> | Observable<AICallResponse> | AICallResponse;
|
|
73
|
-
status(request: AIStatusRequest, metadata?: Metadata): Promise<AIStatusResponse> | Observable<AIStatusResponse> | AIStatusResponse;
|
|
74
|
-
result(request: AIResultRequest, metadata?: Metadata): Promise<AIResultResponse> | Observable<AIResultResponse> | AIResultResponse;
|
|
75
|
-
cancel(request: AICancelRequest, metadata?: Metadata): Promise<AICancelResponse> | Observable<AICancelResponse> | AICancelResponse;
|
|
76
|
-
stream(request: AIStreamRequest, metadata?: Metadata): Observable<AIStreamResponse>;
|
|
77
|
-
}
|
|
78
|
-
export declare function AIServiceControllerMethods(): (constructor: Function) => void;
|
|
79
|
-
export declare const AI_SERVICE_NAME = "AIService";
|
|
80
|
-
export type AIServiceService = typeof AIServiceService;
|
|
81
|
-
export declare const AIServiceService: {
|
|
82
|
-
readonly call: {
|
|
83
|
-
readonly path: "/ai.AIService/call";
|
|
84
|
-
readonly requestStream: false;
|
|
85
|
-
readonly responseStream: false;
|
|
86
|
-
readonly requestSerialize: (value: AICallRequest) => Buffer;
|
|
87
|
-
readonly requestDeserialize: (value: Buffer) => AICallRequest;
|
|
88
|
-
readonly responseSerialize: (value: AICallResponse) => Buffer;
|
|
89
|
-
readonly responseDeserialize: (value: Buffer) => AICallResponse;
|
|
90
|
-
};
|
|
91
|
-
readonly status: {
|
|
92
|
-
readonly path: "/ai.AIService/status";
|
|
93
|
-
readonly requestStream: false;
|
|
94
|
-
readonly responseStream: false;
|
|
95
|
-
readonly requestSerialize: (value: AIStatusRequest) => Buffer;
|
|
96
|
-
readonly requestDeserialize: (value: Buffer) => AIStatusRequest;
|
|
97
|
-
readonly responseSerialize: (value: AIStatusResponse) => Buffer;
|
|
98
|
-
readonly responseDeserialize: (value: Buffer) => AIStatusResponse;
|
|
99
|
-
};
|
|
100
|
-
readonly result: {
|
|
101
|
-
readonly path: "/ai.AIService/result";
|
|
102
|
-
readonly requestStream: false;
|
|
103
|
-
readonly responseStream: false;
|
|
104
|
-
readonly requestSerialize: (value: AIResultRequest) => Buffer;
|
|
105
|
-
readonly requestDeserialize: (value: Buffer) => AIResultRequest;
|
|
106
|
-
readonly responseSerialize: (value: AIResultResponse) => Buffer;
|
|
107
|
-
readonly responseDeserialize: (value: Buffer) => AIResultResponse;
|
|
108
|
-
};
|
|
109
|
-
readonly cancel: {
|
|
110
|
-
readonly path: "/ai.AIService/cancel";
|
|
111
|
-
readonly requestStream: false;
|
|
112
|
-
readonly responseStream: false;
|
|
113
|
-
readonly requestSerialize: (value: AICancelRequest) => Buffer;
|
|
114
|
-
readonly requestDeserialize: (value: Buffer) => AICancelRequest;
|
|
115
|
-
readonly responseSerialize: (value: AICancelResponse) => Buffer;
|
|
116
|
-
readonly responseDeserialize: (value: Buffer) => AICancelResponse;
|
|
117
|
-
};
|
|
118
|
-
readonly stream: {
|
|
119
|
-
readonly path: "/ai.AIService/stream";
|
|
120
|
-
readonly requestStream: false;
|
|
121
|
-
readonly responseStream: true;
|
|
122
|
-
readonly requestSerialize: (value: AIStreamRequest) => Buffer;
|
|
123
|
-
readonly requestDeserialize: (value: Buffer) => AIStreamRequest;
|
|
124
|
-
readonly responseSerialize: (value: AIStreamResponse) => Buffer;
|
|
125
|
-
readonly responseDeserialize: (value: Buffer) => AIStreamResponse;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
export interface AIServiceServer extends UntypedServiceImplementation {
|
|
129
|
-
call: handleUnaryCall<AICallRequest, AICallResponse>;
|
|
130
|
-
status: handleUnaryCall<AIStatusRequest, AIStatusResponse>;
|
|
131
|
-
result: handleUnaryCall<AIResultRequest, AIResultResponse>;
|
|
132
|
-
cancel: handleUnaryCall<AICancelRequest, AICancelResponse>;
|
|
133
|
-
stream: handleServerStreamingCall<AIStreamRequest, AIStreamResponse>;
|
|
134
|
-
}
|
|
135
|
-
export interface MessageFns<T> {
|
|
136
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
137
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
138
|
-
}
|
package/dist/ai/ai.interface.js
DELETED
|
@@ -1,532 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.7
|
|
5
|
-
// protoc v5.28.2
|
|
6
|
-
// source: ai.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AIServiceService = exports.AI_SERVICE_NAME = exports.AIStreamResponse = exports.AIStreamRequest = 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
|
-
exports.AIServiceControllerMethods = AIServiceControllerMethods;
|
|
10
|
-
/* eslint-disable */
|
|
11
|
-
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
|
-
const microservices_1 = require("@nestjs/microservices");
|
|
13
|
-
exports.protobufPackage = "ai";
|
|
14
|
-
exports.AI_PACKAGE_NAME = "ai";
|
|
15
|
-
function createBaseAICallResponse() {
|
|
16
|
-
return { requestId: "" };
|
|
17
|
-
}
|
|
18
|
-
exports.AICallResponse = {
|
|
19
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
20
|
-
if (message.requestId !== "") {
|
|
21
|
-
writer.uint32(10).string(message.requestId);
|
|
22
|
-
}
|
|
23
|
-
return writer;
|
|
24
|
-
},
|
|
25
|
-
decode(input, length) {
|
|
26
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
27
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message = createBaseAICallResponse();
|
|
29
|
-
while (reader.pos < end) {
|
|
30
|
-
const tag = reader.uint32();
|
|
31
|
-
switch (tag >>> 3) {
|
|
32
|
-
case 1: {
|
|
33
|
-
if (tag !== 10) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
message.requestId = reader.string();
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
reader.skip(tag & 7);
|
|
44
|
-
}
|
|
45
|
-
return message;
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
function createBaseAIStatusResponse() {
|
|
49
|
-
return { requestId: "", status: "" };
|
|
50
|
-
}
|
|
51
|
-
exports.AIStatusResponse = {
|
|
52
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
53
|
-
if (message.requestId !== "") {
|
|
54
|
-
writer.uint32(10).string(message.requestId);
|
|
55
|
-
}
|
|
56
|
-
if (message.status !== "") {
|
|
57
|
-
writer.uint32(18).string(message.status);
|
|
58
|
-
}
|
|
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);
|
|
101
|
-
}
|
|
102
|
-
return writer;
|
|
103
|
-
},
|
|
104
|
-
decode(input, length) {
|
|
105
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
106
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
107
|
-
const message = createBaseAIResultResponse();
|
|
108
|
-
while (reader.pos < end) {
|
|
109
|
-
const tag = reader.uint32();
|
|
110
|
-
switch (tag >>> 3) {
|
|
111
|
-
case 1: {
|
|
112
|
-
if (tag !== 10) {
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
message.requestId = reader.string();
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
case 2: {
|
|
119
|
-
if (tag !== 18) {
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
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();
|
|
159
|
-
continue;
|
|
160
|
-
}
|
|
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) {
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
message.payload = reader.string();
|
|
209
|
-
continue;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
reader.skip(tag & 7);
|
|
216
|
-
}
|
|
217
|
-
return message;
|
|
218
|
-
},
|
|
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
|
-
};
|
|
349
|
-
function createBaseAIStreamRequest() {
|
|
350
|
-
return { endpoint: "", payload: "" };
|
|
351
|
-
}
|
|
352
|
-
exports.AIStreamRequest = {
|
|
353
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
354
|
-
if (message.endpoint !== "") {
|
|
355
|
-
writer.uint32(10).string(message.endpoint);
|
|
356
|
-
}
|
|
357
|
-
if (message.payload !== "") {
|
|
358
|
-
writer.uint32(18).string(message.payload);
|
|
359
|
-
}
|
|
360
|
-
return writer;
|
|
361
|
-
},
|
|
362
|
-
decode(input, length) {
|
|
363
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
364
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
365
|
-
const message = createBaseAIStreamRequest();
|
|
366
|
-
while (reader.pos < end) {
|
|
367
|
-
const tag = reader.uint32();
|
|
368
|
-
switch (tag >>> 3) {
|
|
369
|
-
case 1: {
|
|
370
|
-
if (tag !== 10) {
|
|
371
|
-
break;
|
|
372
|
-
}
|
|
373
|
-
message.endpoint = reader.string();
|
|
374
|
-
continue;
|
|
375
|
-
}
|
|
376
|
-
case 2: {
|
|
377
|
-
if (tag !== 18) {
|
|
378
|
-
break;
|
|
379
|
-
}
|
|
380
|
-
message.payload = reader.string();
|
|
381
|
-
continue;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
385
|
-
break;
|
|
386
|
-
}
|
|
387
|
-
reader.skip(tag & 7);
|
|
388
|
-
}
|
|
389
|
-
return message;
|
|
390
|
-
},
|
|
391
|
-
};
|
|
392
|
-
function createBaseAIStreamResponse() {
|
|
393
|
-
return { requestId: "", type: "", data: "", chunk: 0, timestamp: "" };
|
|
394
|
-
}
|
|
395
|
-
exports.AIStreamResponse = {
|
|
396
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
397
|
-
if (message.requestId !== "") {
|
|
398
|
-
writer.uint32(10).string(message.requestId);
|
|
399
|
-
}
|
|
400
|
-
if (message.type !== "") {
|
|
401
|
-
writer.uint32(18).string(message.type);
|
|
402
|
-
}
|
|
403
|
-
if (message.data !== "") {
|
|
404
|
-
writer.uint32(26).string(message.data);
|
|
405
|
-
}
|
|
406
|
-
if (message.chunk !== 0) {
|
|
407
|
-
writer.uint32(32).int32(message.chunk);
|
|
408
|
-
}
|
|
409
|
-
if (message.timestamp !== "") {
|
|
410
|
-
writer.uint32(42).string(message.timestamp);
|
|
411
|
-
}
|
|
412
|
-
return writer;
|
|
413
|
-
},
|
|
414
|
-
decode(input, length) {
|
|
415
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
416
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
417
|
-
const message = createBaseAIStreamResponse();
|
|
418
|
-
while (reader.pos < end) {
|
|
419
|
-
const tag = reader.uint32();
|
|
420
|
-
switch (tag >>> 3) {
|
|
421
|
-
case 1: {
|
|
422
|
-
if (tag !== 10) {
|
|
423
|
-
break;
|
|
424
|
-
}
|
|
425
|
-
message.requestId = reader.string();
|
|
426
|
-
continue;
|
|
427
|
-
}
|
|
428
|
-
case 2: {
|
|
429
|
-
if (tag !== 18) {
|
|
430
|
-
break;
|
|
431
|
-
}
|
|
432
|
-
message.type = reader.string();
|
|
433
|
-
continue;
|
|
434
|
-
}
|
|
435
|
-
case 3: {
|
|
436
|
-
if (tag !== 26) {
|
|
437
|
-
break;
|
|
438
|
-
}
|
|
439
|
-
message.data = reader.string();
|
|
440
|
-
continue;
|
|
441
|
-
}
|
|
442
|
-
case 4: {
|
|
443
|
-
if (tag !== 32) {
|
|
444
|
-
break;
|
|
445
|
-
}
|
|
446
|
-
message.chunk = reader.int32();
|
|
447
|
-
continue;
|
|
448
|
-
}
|
|
449
|
-
case 5: {
|
|
450
|
-
if (tag !== 42) {
|
|
451
|
-
break;
|
|
452
|
-
}
|
|
453
|
-
message.timestamp = reader.string();
|
|
454
|
-
continue;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
458
|
-
break;
|
|
459
|
-
}
|
|
460
|
-
reader.skip(tag & 7);
|
|
461
|
-
}
|
|
462
|
-
return message;
|
|
463
|
-
},
|
|
464
|
-
};
|
|
465
|
-
function AIServiceControllerMethods() {
|
|
466
|
-
return function (constructor) {
|
|
467
|
-
const grpcMethods = [
|
|
468
|
-
"call",
|
|
469
|
-
"status",
|
|
470
|
-
"result",
|
|
471
|
-
"cancel",
|
|
472
|
-
"stream",
|
|
473
|
-
];
|
|
474
|
-
for (const method of grpcMethods) {
|
|
475
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
476
|
-
(0, microservices_1.GrpcMethod)("AIService", method)(constructor.prototype[method], method, descriptor);
|
|
477
|
-
}
|
|
478
|
-
const grpcStreamMethods = [];
|
|
479
|
-
for (const method of grpcStreamMethods) {
|
|
480
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
481
|
-
(0, microservices_1.GrpcStreamMethod)("AIService", method)(constructor.prototype[method], method, descriptor);
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
}
|
|
485
|
-
exports.AI_SERVICE_NAME = "AIService";
|
|
486
|
-
exports.AIServiceService = {
|
|
487
|
-
call: {
|
|
488
|
-
path: "/ai.AIService/call",
|
|
489
|
-
requestStream: false,
|
|
490
|
-
responseStream: false,
|
|
491
|
-
requestSerialize: (value) => Buffer.from(exports.AICallRequest.encode(value).finish()),
|
|
492
|
-
requestDeserialize: (value) => exports.AICallRequest.decode(value),
|
|
493
|
-
responseSerialize: (value) => Buffer.from(exports.AICallResponse.encode(value).finish()),
|
|
494
|
-
responseDeserialize: (value) => exports.AICallResponse.decode(value),
|
|
495
|
-
},
|
|
496
|
-
status: {
|
|
497
|
-
path: "/ai.AIService/status",
|
|
498
|
-
requestStream: false,
|
|
499
|
-
responseStream: false,
|
|
500
|
-
requestSerialize: (value) => Buffer.from(exports.AIStatusRequest.encode(value).finish()),
|
|
501
|
-
requestDeserialize: (value) => exports.AIStatusRequest.decode(value),
|
|
502
|
-
responseSerialize: (value) => Buffer.from(exports.AIStatusResponse.encode(value).finish()),
|
|
503
|
-
responseDeserialize: (value) => exports.AIStatusResponse.decode(value),
|
|
504
|
-
},
|
|
505
|
-
result: {
|
|
506
|
-
path: "/ai.AIService/result",
|
|
507
|
-
requestStream: false,
|
|
508
|
-
responseStream: false,
|
|
509
|
-
requestSerialize: (value) => Buffer.from(exports.AIResultRequest.encode(value).finish()),
|
|
510
|
-
requestDeserialize: (value) => exports.AIResultRequest.decode(value),
|
|
511
|
-
responseSerialize: (value) => Buffer.from(exports.AIResultResponse.encode(value).finish()),
|
|
512
|
-
responseDeserialize: (value) => exports.AIResultResponse.decode(value),
|
|
513
|
-
},
|
|
514
|
-
cancel: {
|
|
515
|
-
path: "/ai.AIService/cancel",
|
|
516
|
-
requestStream: false,
|
|
517
|
-
responseStream: false,
|
|
518
|
-
requestSerialize: (value) => Buffer.from(exports.AICancelRequest.encode(value).finish()),
|
|
519
|
-
requestDeserialize: (value) => exports.AICancelRequest.decode(value),
|
|
520
|
-
responseSerialize: (value) => Buffer.from(exports.AICancelResponse.encode(value).finish()),
|
|
521
|
-
responseDeserialize: (value) => exports.AICancelResponse.decode(value),
|
|
522
|
-
},
|
|
523
|
-
stream: {
|
|
524
|
-
path: "/ai.AIService/stream",
|
|
525
|
-
requestStream: false,
|
|
526
|
-
responseStream: true,
|
|
527
|
-
requestSerialize: (value) => Buffer.from(exports.AIStreamRequest.encode(value).finish()),
|
|
528
|
-
requestDeserialize: (value) => exports.AIStreamRequest.decode(value),
|
|
529
|
-
responseSerialize: (value) => Buffer.from(exports.AIStreamResponse.encode(value).finish()),
|
|
530
|
-
responseDeserialize: (value) => exports.AIStreamResponse.decode(value),
|
|
531
|
-
},
|
|
532
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "google.protobuf";
|
|
3
|
-
/**
|
|
4
|
-
* A generic empty message that you can re-use to avoid defining duplicated
|
|
5
|
-
* empty messages in your APIs. A typical example is to use it as the request
|
|
6
|
-
* or the response type of an API method. For instance:
|
|
7
|
-
*
|
|
8
|
-
* service Foo {
|
|
9
|
-
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
10
|
-
* }
|
|
11
|
-
*/
|
|
12
|
-
export interface Empty {
|
|
13
|
-
}
|
|
14
|
-
export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
15
|
-
export declare const Empty: MessageFns<Empty>;
|
|
16
|
-
export interface MessageFns<T> {
|
|
17
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
18
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
19
|
-
}
|