geniebox-shared-lib 2.0.2 → 2.1.0
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/dist/ai.interface.d.ts +143 -90
- package/dist/ai.interface.js +604 -160
- package/dist/auth.interface.d.ts +37 -37
- package/dist/auth.interface.js +266 -266
- package/dist/index.d.ts +7 -3
- package/dist/index.js +49 -14
- package/dist/key.client.js +1 -1
- package/dist/request.client.d.ts +12 -0
- package/dist/request.client.js +42 -0
- package/dist/request.interface.d.ts +163 -0
- package/dist/request.interface.js +685 -0
- package/dist/response.client.d.ts +12 -0
- package/dist/response.client.js +42 -0
- package/dist/response.interface.d.ts +75 -0
- package/dist/response.interface.js +261 -0
- package/dist/shared.module.d.ts +8 -0
- package/dist/shared.module.js +62 -0
- package/dist/storage.interface.d.ts +7 -7
- package/dist/storage.interface.js +31 -31
- package/dist/user.interface.d.ts +138 -19
- package/dist/user.interface.js +801 -20
- package/package.json +1 -1
package/dist/ai.interface.js
CHANGED
|
@@ -5,27 +5,61 @@
|
|
|
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.
|
|
8
|
+
exports.AIServiceService = exports.AI_SERVICE_NAME = exports.ValidateEndpointResponse = exports.PricingResponse = exports.ModelsResponse = exports.ProvidersResponse = exports.ValidateEndpointRequest = exports.PricingRequest = exports.ModelsRequest = exports.ProvidersRequest = exports.EndpointRequest = exports.EndpointConfig = exports.Pricing = exports.Model = exports.Provider = 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
|
|
16
|
-
return {
|
|
15
|
+
function createBaseProvider() {
|
|
16
|
+
return {
|
|
17
|
+
id: "",
|
|
18
|
+
name: "",
|
|
19
|
+
displayName: "",
|
|
20
|
+
description: "",
|
|
21
|
+
baseUrl: "",
|
|
22
|
+
isActive: false,
|
|
23
|
+
metadata: "",
|
|
24
|
+
createdAt: "",
|
|
25
|
+
updatedAt: "",
|
|
26
|
+
};
|
|
17
27
|
}
|
|
18
|
-
exports.
|
|
28
|
+
exports.Provider = {
|
|
19
29
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
30
|
+
if (message.id !== "") {
|
|
31
|
+
writer.uint32(10).string(message.id);
|
|
32
|
+
}
|
|
33
|
+
if (message.name !== "") {
|
|
34
|
+
writer.uint32(18).string(message.name);
|
|
35
|
+
}
|
|
36
|
+
if (message.displayName !== "") {
|
|
37
|
+
writer.uint32(26).string(message.displayName);
|
|
38
|
+
}
|
|
39
|
+
if (message.description !== "") {
|
|
40
|
+
writer.uint32(34).string(message.description);
|
|
41
|
+
}
|
|
42
|
+
if (message.baseUrl !== "") {
|
|
43
|
+
writer.uint32(42).string(message.baseUrl);
|
|
44
|
+
}
|
|
45
|
+
if (message.isActive !== false) {
|
|
46
|
+
writer.uint32(48).bool(message.isActive);
|
|
47
|
+
}
|
|
48
|
+
if (message.metadata !== "") {
|
|
49
|
+
writer.uint32(58).string(message.metadata);
|
|
50
|
+
}
|
|
51
|
+
if (message.createdAt !== "") {
|
|
52
|
+
writer.uint32(66).string(message.createdAt);
|
|
53
|
+
}
|
|
54
|
+
if (message.updatedAt !== "") {
|
|
55
|
+
writer.uint32(74).string(message.updatedAt);
|
|
22
56
|
}
|
|
23
57
|
return writer;
|
|
24
58
|
},
|
|
25
59
|
decode(input, length) {
|
|
26
60
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
27
61
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message =
|
|
62
|
+
const message = createBaseProvider();
|
|
29
63
|
while (reader.pos < end) {
|
|
30
64
|
const tag = reader.uint32();
|
|
31
65
|
switch (tag >>> 3) {
|
|
@@ -33,7 +67,63 @@ exports.AICallResponse = {
|
|
|
33
67
|
if (tag !== 10) {
|
|
34
68
|
break;
|
|
35
69
|
}
|
|
36
|
-
message.
|
|
70
|
+
message.id = reader.string();
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
case 2: {
|
|
74
|
+
if (tag !== 18) {
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
message.name = reader.string();
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
case 3: {
|
|
81
|
+
if (tag !== 26) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
message.displayName = reader.string();
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
case 4: {
|
|
88
|
+
if (tag !== 34) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.description = reader.string();
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
case 5: {
|
|
95
|
+
if (tag !== 42) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
message.baseUrl = reader.string();
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
case 6: {
|
|
102
|
+
if (tag !== 48) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.isActive = reader.bool();
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
case 7: {
|
|
109
|
+
if (tag !== 58) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
message.metadata = reader.string();
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
case 8: {
|
|
116
|
+
if (tag !== 66) {
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
message.createdAt = reader.string();
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
case 9: {
|
|
123
|
+
if (tag !== 74) {
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
message.updatedAt = reader.string();
|
|
37
127
|
continue;
|
|
38
128
|
}
|
|
39
129
|
}
|
|
@@ -45,23 +135,70 @@ exports.AICallResponse = {
|
|
|
45
135
|
return message;
|
|
46
136
|
},
|
|
47
137
|
};
|
|
48
|
-
function
|
|
49
|
-
return {
|
|
138
|
+
function createBaseModel() {
|
|
139
|
+
return {
|
|
140
|
+
id: "",
|
|
141
|
+
providerId: "",
|
|
142
|
+
providerName: "",
|
|
143
|
+
name: "",
|
|
144
|
+
displayName: "",
|
|
145
|
+
description: "",
|
|
146
|
+
contextWindow: 0,
|
|
147
|
+
maxTokens: 0,
|
|
148
|
+
supportStreaming: false,
|
|
149
|
+
isActive: false,
|
|
150
|
+
metadata: "",
|
|
151
|
+
createdAt: "",
|
|
152
|
+
updatedAt: "",
|
|
153
|
+
};
|
|
50
154
|
}
|
|
51
|
-
exports.
|
|
155
|
+
exports.Model = {
|
|
52
156
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
53
|
-
if (message.
|
|
54
|
-
writer.uint32(10).string(message.
|
|
157
|
+
if (message.id !== "") {
|
|
158
|
+
writer.uint32(10).string(message.id);
|
|
159
|
+
}
|
|
160
|
+
if (message.providerId !== "") {
|
|
161
|
+
writer.uint32(18).string(message.providerId);
|
|
162
|
+
}
|
|
163
|
+
if (message.providerName !== "") {
|
|
164
|
+
writer.uint32(26).string(message.providerName);
|
|
165
|
+
}
|
|
166
|
+
if (message.name !== "") {
|
|
167
|
+
writer.uint32(34).string(message.name);
|
|
168
|
+
}
|
|
169
|
+
if (message.displayName !== "") {
|
|
170
|
+
writer.uint32(42).string(message.displayName);
|
|
171
|
+
}
|
|
172
|
+
if (message.description !== "") {
|
|
173
|
+
writer.uint32(50).string(message.description);
|
|
55
174
|
}
|
|
56
|
-
if (message.
|
|
57
|
-
writer.uint32(
|
|
175
|
+
if (message.contextWindow !== 0) {
|
|
176
|
+
writer.uint32(56).int32(message.contextWindow);
|
|
177
|
+
}
|
|
178
|
+
if (message.maxTokens !== 0) {
|
|
179
|
+
writer.uint32(64).int32(message.maxTokens);
|
|
180
|
+
}
|
|
181
|
+
if (message.supportStreaming !== false) {
|
|
182
|
+
writer.uint32(72).bool(message.supportStreaming);
|
|
183
|
+
}
|
|
184
|
+
if (message.isActive !== false) {
|
|
185
|
+
writer.uint32(80).bool(message.isActive);
|
|
186
|
+
}
|
|
187
|
+
if (message.metadata !== "") {
|
|
188
|
+
writer.uint32(90).string(message.metadata);
|
|
189
|
+
}
|
|
190
|
+
if (message.createdAt !== "") {
|
|
191
|
+
writer.uint32(98).string(message.createdAt);
|
|
192
|
+
}
|
|
193
|
+
if (message.updatedAt !== "") {
|
|
194
|
+
writer.uint32(106).string(message.updatedAt);
|
|
58
195
|
}
|
|
59
196
|
return writer;
|
|
60
197
|
},
|
|
61
198
|
decode(input, length) {
|
|
62
199
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
63
200
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
64
|
-
const message =
|
|
201
|
+
const message = createBaseModel();
|
|
65
202
|
while (reader.pos < end) {
|
|
66
203
|
const tag = reader.uint32();
|
|
67
204
|
switch (tag >>> 3) {
|
|
@@ -69,14 +206,91 @@ exports.AIStatusResponse = {
|
|
|
69
206
|
if (tag !== 10) {
|
|
70
207
|
break;
|
|
71
208
|
}
|
|
72
|
-
message.
|
|
209
|
+
message.id = reader.string();
|
|
73
210
|
continue;
|
|
74
211
|
}
|
|
75
212
|
case 2: {
|
|
76
213
|
if (tag !== 18) {
|
|
77
214
|
break;
|
|
78
215
|
}
|
|
79
|
-
message.
|
|
216
|
+
message.providerId = reader.string();
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
case 3: {
|
|
220
|
+
if (tag !== 26) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
message.providerName = reader.string();
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
case 4: {
|
|
227
|
+
if (tag !== 34) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
message.name = reader.string();
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
case 5: {
|
|
234
|
+
if (tag !== 42) {
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
message.displayName = reader.string();
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
case 6: {
|
|
241
|
+
if (tag !== 50) {
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
message.description = reader.string();
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
case 7: {
|
|
248
|
+
if (tag !== 56) {
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
message.contextWindow = reader.int32();
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
case 8: {
|
|
255
|
+
if (tag !== 64) {
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
message.maxTokens = reader.int32();
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
case 9: {
|
|
262
|
+
if (tag !== 72) {
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
message.supportStreaming = reader.bool();
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
case 10: {
|
|
269
|
+
if (tag !== 80) {
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
message.isActive = reader.bool();
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
case 11: {
|
|
276
|
+
if (tag !== 90) {
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
message.metadata = reader.string();
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
case 12: {
|
|
283
|
+
if (tag !== 98) {
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
message.createdAt = reader.string();
|
|
287
|
+
continue;
|
|
288
|
+
}
|
|
289
|
+
case 13: {
|
|
290
|
+
if (tag !== 106) {
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
message.updatedAt = reader.string();
|
|
80
294
|
continue;
|
|
81
295
|
}
|
|
82
296
|
}
|
|
@@ -88,23 +302,58 @@ exports.AIStatusResponse = {
|
|
|
88
302
|
return message;
|
|
89
303
|
},
|
|
90
304
|
};
|
|
91
|
-
function
|
|
92
|
-
return {
|
|
305
|
+
function createBasePricing() {
|
|
306
|
+
return {
|
|
307
|
+
id: "",
|
|
308
|
+
modelId: "",
|
|
309
|
+
modelName: "",
|
|
310
|
+
inputTokenPrice: 0,
|
|
311
|
+
outputTokenPrice: 0,
|
|
312
|
+
currency: "",
|
|
313
|
+
effectiveFrom: "",
|
|
314
|
+
effectiveTo: "",
|
|
315
|
+
createdAt: "",
|
|
316
|
+
updatedAt: "",
|
|
317
|
+
};
|
|
93
318
|
}
|
|
94
|
-
exports.
|
|
319
|
+
exports.Pricing = {
|
|
95
320
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
96
|
-
if (message.
|
|
97
|
-
writer.uint32(10).string(message.
|
|
321
|
+
if (message.id !== "") {
|
|
322
|
+
writer.uint32(10).string(message.id);
|
|
323
|
+
}
|
|
324
|
+
if (message.modelId !== "") {
|
|
325
|
+
writer.uint32(18).string(message.modelId);
|
|
326
|
+
}
|
|
327
|
+
if (message.modelName !== "") {
|
|
328
|
+
writer.uint32(26).string(message.modelName);
|
|
329
|
+
}
|
|
330
|
+
if (message.inputTokenPrice !== 0) {
|
|
331
|
+
writer.uint32(33).double(message.inputTokenPrice);
|
|
332
|
+
}
|
|
333
|
+
if (message.outputTokenPrice !== 0) {
|
|
334
|
+
writer.uint32(41).double(message.outputTokenPrice);
|
|
335
|
+
}
|
|
336
|
+
if (message.currency !== "") {
|
|
337
|
+
writer.uint32(50).string(message.currency);
|
|
338
|
+
}
|
|
339
|
+
if (message.effectiveFrom !== "") {
|
|
340
|
+
writer.uint32(58).string(message.effectiveFrom);
|
|
341
|
+
}
|
|
342
|
+
if (message.effectiveTo !== "") {
|
|
343
|
+
writer.uint32(66).string(message.effectiveTo);
|
|
98
344
|
}
|
|
99
|
-
if (message.
|
|
100
|
-
writer.uint32(
|
|
345
|
+
if (message.createdAt !== "") {
|
|
346
|
+
writer.uint32(74).string(message.createdAt);
|
|
347
|
+
}
|
|
348
|
+
if (message.updatedAt !== "") {
|
|
349
|
+
writer.uint32(82).string(message.updatedAt);
|
|
101
350
|
}
|
|
102
351
|
return writer;
|
|
103
352
|
},
|
|
104
353
|
decode(input, length) {
|
|
105
354
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
106
355
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
107
|
-
const message =
|
|
356
|
+
const message = createBasePricing();
|
|
108
357
|
while (reader.pos < end) {
|
|
109
358
|
const tag = reader.uint32();
|
|
110
359
|
switch (tag >>> 3) {
|
|
@@ -112,14 +361,70 @@ exports.AIResultResponse = {
|
|
|
112
361
|
if (tag !== 10) {
|
|
113
362
|
break;
|
|
114
363
|
}
|
|
115
|
-
message.
|
|
364
|
+
message.id = reader.string();
|
|
116
365
|
continue;
|
|
117
366
|
}
|
|
118
367
|
case 2: {
|
|
119
368
|
if (tag !== 18) {
|
|
120
369
|
break;
|
|
121
370
|
}
|
|
122
|
-
message.
|
|
371
|
+
message.modelId = reader.string();
|
|
372
|
+
continue;
|
|
373
|
+
}
|
|
374
|
+
case 3: {
|
|
375
|
+
if (tag !== 26) {
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
message.modelName = reader.string();
|
|
379
|
+
continue;
|
|
380
|
+
}
|
|
381
|
+
case 4: {
|
|
382
|
+
if (tag !== 33) {
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
message.inputTokenPrice = reader.double();
|
|
386
|
+
continue;
|
|
387
|
+
}
|
|
388
|
+
case 5: {
|
|
389
|
+
if (tag !== 41) {
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
message.outputTokenPrice = reader.double();
|
|
393
|
+
continue;
|
|
394
|
+
}
|
|
395
|
+
case 6: {
|
|
396
|
+
if (tag !== 50) {
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
message.currency = reader.string();
|
|
400
|
+
continue;
|
|
401
|
+
}
|
|
402
|
+
case 7: {
|
|
403
|
+
if (tag !== 58) {
|
|
404
|
+
break;
|
|
405
|
+
}
|
|
406
|
+
message.effectiveFrom = reader.string();
|
|
407
|
+
continue;
|
|
408
|
+
}
|
|
409
|
+
case 8: {
|
|
410
|
+
if (tag !== 66) {
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
message.effectiveTo = reader.string();
|
|
414
|
+
continue;
|
|
415
|
+
}
|
|
416
|
+
case 9: {
|
|
417
|
+
if (tag !== 74) {
|
|
418
|
+
break;
|
|
419
|
+
}
|
|
420
|
+
message.createdAt = reader.string();
|
|
421
|
+
continue;
|
|
422
|
+
}
|
|
423
|
+
case 10: {
|
|
424
|
+
if (tag !== 82) {
|
|
425
|
+
break;
|
|
426
|
+
}
|
|
427
|
+
message.updatedAt = reader.string();
|
|
123
428
|
continue;
|
|
124
429
|
}
|
|
125
430
|
}
|
|
@@ -131,23 +436,54 @@ exports.AIResultResponse = {
|
|
|
131
436
|
return message;
|
|
132
437
|
},
|
|
133
438
|
};
|
|
134
|
-
function
|
|
135
|
-
return {
|
|
439
|
+
function createBaseEndpointConfig() {
|
|
440
|
+
return {
|
|
441
|
+
id: "",
|
|
442
|
+
path: "",
|
|
443
|
+
providerId: "",
|
|
444
|
+
providerName: "",
|
|
445
|
+
queueName: "",
|
|
446
|
+
methods: [],
|
|
447
|
+
description: "",
|
|
448
|
+
isActive: false,
|
|
449
|
+
metadata: "",
|
|
450
|
+
};
|
|
136
451
|
}
|
|
137
|
-
exports.
|
|
452
|
+
exports.EndpointConfig = {
|
|
138
453
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
139
|
-
if (message.
|
|
140
|
-
writer.uint32(10).string(message.
|
|
454
|
+
if (message.id !== "") {
|
|
455
|
+
writer.uint32(10).string(message.id);
|
|
456
|
+
}
|
|
457
|
+
if (message.path !== "") {
|
|
458
|
+
writer.uint32(18).string(message.path);
|
|
459
|
+
}
|
|
460
|
+
if (message.providerId !== "") {
|
|
461
|
+
writer.uint32(26).string(message.providerId);
|
|
462
|
+
}
|
|
463
|
+
if (message.providerName !== "") {
|
|
464
|
+
writer.uint32(34).string(message.providerName);
|
|
465
|
+
}
|
|
466
|
+
if (message.queueName !== "") {
|
|
467
|
+
writer.uint32(42).string(message.queueName);
|
|
468
|
+
}
|
|
469
|
+
for (const v of message.methods) {
|
|
470
|
+
writer.uint32(50).string(v);
|
|
471
|
+
}
|
|
472
|
+
if (message.description !== "") {
|
|
473
|
+
writer.uint32(58).string(message.description);
|
|
141
474
|
}
|
|
142
|
-
if (message.
|
|
143
|
-
writer.uint32(
|
|
475
|
+
if (message.isActive !== false) {
|
|
476
|
+
writer.uint32(64).bool(message.isActive);
|
|
477
|
+
}
|
|
478
|
+
if (message.metadata !== "") {
|
|
479
|
+
writer.uint32(74).string(message.metadata);
|
|
144
480
|
}
|
|
145
481
|
return writer;
|
|
146
482
|
},
|
|
147
483
|
decode(input, length) {
|
|
148
484
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
149
485
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
150
|
-
const message =
|
|
486
|
+
const message = createBaseEndpointConfig();
|
|
151
487
|
while (reader.pos < end) {
|
|
152
488
|
const tag = reader.uint32();
|
|
153
489
|
switch (tag >>> 3) {
|
|
@@ -155,14 +491,63 @@ exports.AICancelResponse = {
|
|
|
155
491
|
if (tag !== 10) {
|
|
156
492
|
break;
|
|
157
493
|
}
|
|
158
|
-
message.
|
|
494
|
+
message.id = reader.string();
|
|
159
495
|
continue;
|
|
160
496
|
}
|
|
161
497
|
case 2: {
|
|
162
|
-
if (tag !==
|
|
498
|
+
if (tag !== 18) {
|
|
499
|
+
break;
|
|
500
|
+
}
|
|
501
|
+
message.path = reader.string();
|
|
502
|
+
continue;
|
|
503
|
+
}
|
|
504
|
+
case 3: {
|
|
505
|
+
if (tag !== 26) {
|
|
163
506
|
break;
|
|
164
507
|
}
|
|
165
|
-
message.
|
|
508
|
+
message.providerId = reader.string();
|
|
509
|
+
continue;
|
|
510
|
+
}
|
|
511
|
+
case 4: {
|
|
512
|
+
if (tag !== 34) {
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
message.providerName = reader.string();
|
|
516
|
+
continue;
|
|
517
|
+
}
|
|
518
|
+
case 5: {
|
|
519
|
+
if (tag !== 42) {
|
|
520
|
+
break;
|
|
521
|
+
}
|
|
522
|
+
message.queueName = reader.string();
|
|
523
|
+
continue;
|
|
524
|
+
}
|
|
525
|
+
case 6: {
|
|
526
|
+
if (tag !== 50) {
|
|
527
|
+
break;
|
|
528
|
+
}
|
|
529
|
+
message.methods.push(reader.string());
|
|
530
|
+
continue;
|
|
531
|
+
}
|
|
532
|
+
case 7: {
|
|
533
|
+
if (tag !== 58) {
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
message.description = reader.string();
|
|
537
|
+
continue;
|
|
538
|
+
}
|
|
539
|
+
case 8: {
|
|
540
|
+
if (tag !== 64) {
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
message.isActive = reader.bool();
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
case 9: {
|
|
547
|
+
if (tag !== 74) {
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
message.metadata = reader.string();
|
|
166
551
|
continue;
|
|
167
552
|
}
|
|
168
553
|
}
|
|
@@ -174,23 +559,20 @@ exports.AICancelResponse = {
|
|
|
174
559
|
return message;
|
|
175
560
|
},
|
|
176
561
|
};
|
|
177
|
-
function
|
|
178
|
-
return {
|
|
562
|
+
function createBaseEndpointRequest() {
|
|
563
|
+
return { path: "" };
|
|
179
564
|
}
|
|
180
|
-
exports.
|
|
565
|
+
exports.EndpointRequest = {
|
|
181
566
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
182
|
-
if (message.
|
|
183
|
-
writer.uint32(10).string(message.
|
|
184
|
-
}
|
|
185
|
-
if (message.payload !== "") {
|
|
186
|
-
writer.uint32(18).string(message.payload);
|
|
567
|
+
if (message.path !== "") {
|
|
568
|
+
writer.uint32(10).string(message.path);
|
|
187
569
|
}
|
|
188
570
|
return writer;
|
|
189
571
|
},
|
|
190
572
|
decode(input, length) {
|
|
191
573
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
192
574
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
193
|
-
const message =
|
|
575
|
+
const message = createBaseEndpointRequest();
|
|
194
576
|
while (reader.pos < end) {
|
|
195
577
|
const tag = reader.uint32();
|
|
196
578
|
switch (tag >>> 3) {
|
|
@@ -198,14 +580,40 @@ exports.AICallRequest = {
|
|
|
198
580
|
if (tag !== 10) {
|
|
199
581
|
break;
|
|
200
582
|
}
|
|
201
|
-
message.
|
|
583
|
+
message.path = reader.string();
|
|
202
584
|
continue;
|
|
203
585
|
}
|
|
204
|
-
|
|
205
|
-
|
|
586
|
+
}
|
|
587
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
reader.skip(tag & 7);
|
|
591
|
+
}
|
|
592
|
+
return message;
|
|
593
|
+
},
|
|
594
|
+
};
|
|
595
|
+
function createBaseProvidersRequest() {
|
|
596
|
+
return { activeOnly: false };
|
|
597
|
+
}
|
|
598
|
+
exports.ProvidersRequest = {
|
|
599
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
600
|
+
if (message.activeOnly !== false) {
|
|
601
|
+
writer.uint32(8).bool(message.activeOnly);
|
|
602
|
+
}
|
|
603
|
+
return writer;
|
|
604
|
+
},
|
|
605
|
+
decode(input, length) {
|
|
606
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
607
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
608
|
+
const message = createBaseProvidersRequest();
|
|
609
|
+
while (reader.pos < end) {
|
|
610
|
+
const tag = reader.uint32();
|
|
611
|
+
switch (tag >>> 3) {
|
|
612
|
+
case 1: {
|
|
613
|
+
if (tag !== 8) {
|
|
206
614
|
break;
|
|
207
615
|
}
|
|
208
|
-
message.
|
|
616
|
+
message.activeOnly = reader.bool();
|
|
209
617
|
continue;
|
|
210
618
|
}
|
|
211
619
|
}
|
|
@@ -217,23 +625,23 @@ exports.AICallRequest = {
|
|
|
217
625
|
return message;
|
|
218
626
|
},
|
|
219
627
|
};
|
|
220
|
-
function
|
|
221
|
-
return {
|
|
628
|
+
function createBaseModelsRequest() {
|
|
629
|
+
return { providerId: "", activeOnly: false };
|
|
222
630
|
}
|
|
223
|
-
exports.
|
|
631
|
+
exports.ModelsRequest = {
|
|
224
632
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
225
|
-
if (message.
|
|
226
|
-
writer.uint32(10).string(message.
|
|
633
|
+
if (message.providerId !== "") {
|
|
634
|
+
writer.uint32(10).string(message.providerId);
|
|
227
635
|
}
|
|
228
|
-
if (message.
|
|
229
|
-
writer.uint32(
|
|
636
|
+
if (message.activeOnly !== false) {
|
|
637
|
+
writer.uint32(16).bool(message.activeOnly);
|
|
230
638
|
}
|
|
231
639
|
return writer;
|
|
232
640
|
},
|
|
233
641
|
decode(input, length) {
|
|
234
642
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
235
643
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
236
|
-
const message =
|
|
644
|
+
const message = createBaseModelsRequest();
|
|
237
645
|
while (reader.pos < end) {
|
|
238
646
|
const tag = reader.uint32();
|
|
239
647
|
switch (tag >>> 3) {
|
|
@@ -241,14 +649,14 @@ exports.AIStatusRequest = {
|
|
|
241
649
|
if (tag !== 10) {
|
|
242
650
|
break;
|
|
243
651
|
}
|
|
244
|
-
message.
|
|
652
|
+
message.providerId = reader.string();
|
|
245
653
|
continue;
|
|
246
654
|
}
|
|
247
655
|
case 2: {
|
|
248
|
-
if (tag !==
|
|
656
|
+
if (tag !== 16) {
|
|
249
657
|
break;
|
|
250
658
|
}
|
|
251
|
-
message.
|
|
659
|
+
message.activeOnly = reader.bool();
|
|
252
660
|
continue;
|
|
253
661
|
}
|
|
254
662
|
}
|
|
@@ -260,23 +668,23 @@ exports.AIStatusRequest = {
|
|
|
260
668
|
return message;
|
|
261
669
|
},
|
|
262
670
|
};
|
|
263
|
-
function
|
|
264
|
-
return {
|
|
671
|
+
function createBasePricingRequest() {
|
|
672
|
+
return { modelId: "", currency: "" };
|
|
265
673
|
}
|
|
266
|
-
exports.
|
|
674
|
+
exports.PricingRequest = {
|
|
267
675
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
268
|
-
if (message.
|
|
269
|
-
writer.uint32(10).string(message.
|
|
676
|
+
if (message.modelId !== "") {
|
|
677
|
+
writer.uint32(10).string(message.modelId);
|
|
270
678
|
}
|
|
271
|
-
if (message.
|
|
272
|
-
writer.uint32(18).string(message.
|
|
679
|
+
if (message.currency !== "") {
|
|
680
|
+
writer.uint32(18).string(message.currency);
|
|
273
681
|
}
|
|
274
682
|
return writer;
|
|
275
683
|
},
|
|
276
684
|
decode(input, length) {
|
|
277
685
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
278
686
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
279
|
-
const message =
|
|
687
|
+
const message = createBasePricingRequest();
|
|
280
688
|
while (reader.pos < end) {
|
|
281
689
|
const tag = reader.uint32();
|
|
282
690
|
switch (tag >>> 3) {
|
|
@@ -284,14 +692,14 @@ exports.AIResultRequest = {
|
|
|
284
692
|
if (tag !== 10) {
|
|
285
693
|
break;
|
|
286
694
|
}
|
|
287
|
-
message.
|
|
695
|
+
message.modelId = reader.string();
|
|
288
696
|
continue;
|
|
289
697
|
}
|
|
290
698
|
case 2: {
|
|
291
699
|
if (tag !== 18) {
|
|
292
700
|
break;
|
|
293
701
|
}
|
|
294
|
-
message.
|
|
702
|
+
message.currency = reader.string();
|
|
295
703
|
continue;
|
|
296
704
|
}
|
|
297
705
|
}
|
|
@@ -303,23 +711,23 @@ exports.AIResultRequest = {
|
|
|
303
711
|
return message;
|
|
304
712
|
},
|
|
305
713
|
};
|
|
306
|
-
function
|
|
307
|
-
return {
|
|
714
|
+
function createBaseValidateEndpointRequest() {
|
|
715
|
+
return { path: "", method: "" };
|
|
308
716
|
}
|
|
309
|
-
exports.
|
|
717
|
+
exports.ValidateEndpointRequest = {
|
|
310
718
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
311
|
-
if (message.
|
|
312
|
-
writer.uint32(10).string(message.
|
|
719
|
+
if (message.path !== "") {
|
|
720
|
+
writer.uint32(10).string(message.path);
|
|
313
721
|
}
|
|
314
|
-
if (message.
|
|
315
|
-
writer.uint32(18).string(message.
|
|
722
|
+
if (message.method !== "") {
|
|
723
|
+
writer.uint32(18).string(message.method);
|
|
316
724
|
}
|
|
317
725
|
return writer;
|
|
318
726
|
},
|
|
319
727
|
decode(input, length) {
|
|
320
728
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
321
729
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
322
|
-
const message =
|
|
730
|
+
const message = createBaseValidateEndpointRequest();
|
|
323
731
|
while (reader.pos < end) {
|
|
324
732
|
const tag = reader.uint32();
|
|
325
733
|
switch (tag >>> 3) {
|
|
@@ -327,14 +735,14 @@ exports.AICancelRequest = {
|
|
|
327
735
|
if (tag !== 10) {
|
|
328
736
|
break;
|
|
329
737
|
}
|
|
330
|
-
message.
|
|
738
|
+
message.path = reader.string();
|
|
331
739
|
continue;
|
|
332
740
|
}
|
|
333
741
|
case 2: {
|
|
334
742
|
if (tag !== 18) {
|
|
335
743
|
break;
|
|
336
744
|
}
|
|
337
|
-
message.
|
|
745
|
+
message.method = reader.string();
|
|
338
746
|
continue;
|
|
339
747
|
}
|
|
340
748
|
}
|
|
@@ -346,23 +754,20 @@ exports.AICancelRequest = {
|
|
|
346
754
|
return message;
|
|
347
755
|
},
|
|
348
756
|
};
|
|
349
|
-
function
|
|
350
|
-
return {
|
|
757
|
+
function createBaseProvidersResponse() {
|
|
758
|
+
return { providers: [] };
|
|
351
759
|
}
|
|
352
|
-
exports.
|
|
760
|
+
exports.ProvidersResponse = {
|
|
353
761
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
354
|
-
|
|
355
|
-
writer.uint32(10).
|
|
356
|
-
}
|
|
357
|
-
if (message.payload !== "") {
|
|
358
|
-
writer.uint32(18).string(message.payload);
|
|
762
|
+
for (const v of message.providers) {
|
|
763
|
+
exports.Provider.encode(v, writer.uint32(10).fork()).join();
|
|
359
764
|
}
|
|
360
765
|
return writer;
|
|
361
766
|
},
|
|
362
767
|
decode(input, length) {
|
|
363
768
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
364
769
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
365
|
-
const message =
|
|
770
|
+
const message = createBaseProvidersResponse();
|
|
366
771
|
while (reader.pos < end) {
|
|
367
772
|
const tag = reader.uint32();
|
|
368
773
|
switch (tag >>> 3) {
|
|
@@ -370,14 +775,40 @@ exports.AIStreamRequest = {
|
|
|
370
775
|
if (tag !== 10) {
|
|
371
776
|
break;
|
|
372
777
|
}
|
|
373
|
-
message.
|
|
778
|
+
message.providers.push(exports.Provider.decode(reader, reader.uint32()));
|
|
374
779
|
continue;
|
|
375
780
|
}
|
|
376
|
-
|
|
377
|
-
|
|
781
|
+
}
|
|
782
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
783
|
+
break;
|
|
784
|
+
}
|
|
785
|
+
reader.skip(tag & 7);
|
|
786
|
+
}
|
|
787
|
+
return message;
|
|
788
|
+
},
|
|
789
|
+
};
|
|
790
|
+
function createBaseModelsResponse() {
|
|
791
|
+
return { models: [] };
|
|
792
|
+
}
|
|
793
|
+
exports.ModelsResponse = {
|
|
794
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
795
|
+
for (const v of message.models) {
|
|
796
|
+
exports.Model.encode(v, writer.uint32(10).fork()).join();
|
|
797
|
+
}
|
|
798
|
+
return writer;
|
|
799
|
+
},
|
|
800
|
+
decode(input, length) {
|
|
801
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
802
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
803
|
+
const message = createBaseModelsResponse();
|
|
804
|
+
while (reader.pos < end) {
|
|
805
|
+
const tag = reader.uint32();
|
|
806
|
+
switch (tag >>> 3) {
|
|
807
|
+
case 1: {
|
|
808
|
+
if (tag !== 10) {
|
|
378
809
|
break;
|
|
379
810
|
}
|
|
380
|
-
message.
|
|
811
|
+
message.models.push(exports.Model.decode(reader, reader.uint32()));
|
|
381
812
|
continue;
|
|
382
813
|
}
|
|
383
814
|
}
|
|
@@ -389,68 +820,81 @@ exports.AIStreamRequest = {
|
|
|
389
820
|
return message;
|
|
390
821
|
},
|
|
391
822
|
};
|
|
392
|
-
function
|
|
393
|
-
return {
|
|
823
|
+
function createBasePricingResponse() {
|
|
824
|
+
return { pricing: [] };
|
|
394
825
|
}
|
|
395
|
-
exports.
|
|
826
|
+
exports.PricingResponse = {
|
|
396
827
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
397
|
-
|
|
398
|
-
writer.uint32(10).
|
|
828
|
+
for (const v of message.pricing) {
|
|
829
|
+
exports.Pricing.encode(v, writer.uint32(10).fork()).join();
|
|
399
830
|
}
|
|
400
|
-
|
|
401
|
-
|
|
831
|
+
return writer;
|
|
832
|
+
},
|
|
833
|
+
decode(input, length) {
|
|
834
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
835
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
836
|
+
const message = createBasePricingResponse();
|
|
837
|
+
while (reader.pos < end) {
|
|
838
|
+
const tag = reader.uint32();
|
|
839
|
+
switch (tag >>> 3) {
|
|
840
|
+
case 1: {
|
|
841
|
+
if (tag !== 10) {
|
|
842
|
+
break;
|
|
843
|
+
}
|
|
844
|
+
message.pricing.push(exports.Pricing.decode(reader, reader.uint32()));
|
|
845
|
+
continue;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
849
|
+
break;
|
|
850
|
+
}
|
|
851
|
+
reader.skip(tag & 7);
|
|
402
852
|
}
|
|
403
|
-
|
|
404
|
-
|
|
853
|
+
return message;
|
|
854
|
+
},
|
|
855
|
+
};
|
|
856
|
+
function createBaseValidateEndpointResponse() {
|
|
857
|
+
return { isValid: false, error: "" };
|
|
858
|
+
}
|
|
859
|
+
exports.ValidateEndpointResponse = {
|
|
860
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
861
|
+
if (message.isValid !== false) {
|
|
862
|
+
writer.uint32(8).bool(message.isValid);
|
|
405
863
|
}
|
|
406
|
-
if (message.
|
|
407
|
-
writer.uint32(
|
|
864
|
+
if (message.error !== "") {
|
|
865
|
+
writer.uint32(18).string(message.error);
|
|
408
866
|
}
|
|
409
|
-
if (message.
|
|
410
|
-
writer.uint32(
|
|
867
|
+
if (message.config !== undefined) {
|
|
868
|
+
exports.EndpointConfig.encode(message.config, writer.uint32(26).fork()).join();
|
|
411
869
|
}
|
|
412
870
|
return writer;
|
|
413
871
|
},
|
|
414
872
|
decode(input, length) {
|
|
415
873
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
416
874
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
417
|
-
const message =
|
|
875
|
+
const message = createBaseValidateEndpointResponse();
|
|
418
876
|
while (reader.pos < end) {
|
|
419
877
|
const tag = reader.uint32();
|
|
420
878
|
switch (tag >>> 3) {
|
|
421
879
|
case 1: {
|
|
422
|
-
if (tag !==
|
|
880
|
+
if (tag !== 8) {
|
|
423
881
|
break;
|
|
424
882
|
}
|
|
425
|
-
message.
|
|
883
|
+
message.isValid = reader.bool();
|
|
426
884
|
continue;
|
|
427
885
|
}
|
|
428
886
|
case 2: {
|
|
429
887
|
if (tag !== 18) {
|
|
430
888
|
break;
|
|
431
889
|
}
|
|
432
|
-
message.
|
|
890
|
+
message.error = reader.string();
|
|
433
891
|
continue;
|
|
434
892
|
}
|
|
435
893
|
case 3: {
|
|
436
894
|
if (tag !== 26) {
|
|
437
895
|
break;
|
|
438
896
|
}
|
|
439
|
-
message.
|
|
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();
|
|
897
|
+
message.config = exports.EndpointConfig.decode(reader, reader.uint32());
|
|
454
898
|
continue;
|
|
455
899
|
}
|
|
456
900
|
}
|
|
@@ -464,7 +908,7 @@ exports.AIStreamResponse = {
|
|
|
464
908
|
};
|
|
465
909
|
function AIServiceControllerMethods() {
|
|
466
910
|
return function (constructor) {
|
|
467
|
-
const grpcMethods = ["
|
|
911
|
+
const grpcMethods = ["getEndpointConfig", "getProviders", "getModels", "getPricing", "validateEndpoint"];
|
|
468
912
|
for (const method of grpcMethods) {
|
|
469
913
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
470
914
|
(0, microservices_1.GrpcMethod)("AIService", method)(constructor.prototype[method], method, descriptor);
|
|
@@ -478,49 +922,49 @@ function AIServiceControllerMethods() {
|
|
|
478
922
|
}
|
|
479
923
|
exports.AI_SERVICE_NAME = "AIService";
|
|
480
924
|
exports.AIServiceService = {
|
|
481
|
-
|
|
482
|
-
path: "/ai.AIService/
|
|
925
|
+
getEndpointConfig: {
|
|
926
|
+
path: "/ai.AIService/GetEndpointConfig",
|
|
483
927
|
requestStream: false,
|
|
484
928
|
responseStream: false,
|
|
485
|
-
requestSerialize: (value) => Buffer.from(exports.
|
|
486
|
-
requestDeserialize: (value) => exports.
|
|
487
|
-
responseSerialize: (value) => Buffer.from(exports.
|
|
488
|
-
responseDeserialize: (value) => exports.
|
|
929
|
+
requestSerialize: (value) => Buffer.from(exports.EndpointRequest.encode(value).finish()),
|
|
930
|
+
requestDeserialize: (value) => exports.EndpointRequest.decode(value),
|
|
931
|
+
responseSerialize: (value) => Buffer.from(exports.EndpointConfig.encode(value).finish()),
|
|
932
|
+
responseDeserialize: (value) => exports.EndpointConfig.decode(value),
|
|
489
933
|
},
|
|
490
|
-
|
|
491
|
-
path: "/ai.AIService/
|
|
934
|
+
getProviders: {
|
|
935
|
+
path: "/ai.AIService/GetProviders",
|
|
492
936
|
requestStream: false,
|
|
493
937
|
responseStream: false,
|
|
494
|
-
requestSerialize: (value) => Buffer.from(exports.
|
|
495
|
-
requestDeserialize: (value) => exports.
|
|
496
|
-
responseSerialize: (value) => Buffer.from(exports.
|
|
497
|
-
responseDeserialize: (value) => exports.
|
|
938
|
+
requestSerialize: (value) => Buffer.from(exports.ProvidersRequest.encode(value).finish()),
|
|
939
|
+
requestDeserialize: (value) => exports.ProvidersRequest.decode(value),
|
|
940
|
+
responseSerialize: (value) => Buffer.from(exports.ProvidersResponse.encode(value).finish()),
|
|
941
|
+
responseDeserialize: (value) => exports.ProvidersResponse.decode(value),
|
|
498
942
|
},
|
|
499
|
-
|
|
500
|
-
path: "/ai.AIService/
|
|
943
|
+
getModels: {
|
|
944
|
+
path: "/ai.AIService/GetModels",
|
|
501
945
|
requestStream: false,
|
|
502
946
|
responseStream: false,
|
|
503
|
-
requestSerialize: (value) => Buffer.from(exports.
|
|
504
|
-
requestDeserialize: (value) => exports.
|
|
505
|
-
responseSerialize: (value) => Buffer.from(exports.
|
|
506
|
-
responseDeserialize: (value) => exports.
|
|
947
|
+
requestSerialize: (value) => Buffer.from(exports.ModelsRequest.encode(value).finish()),
|
|
948
|
+
requestDeserialize: (value) => exports.ModelsRequest.decode(value),
|
|
949
|
+
responseSerialize: (value) => Buffer.from(exports.ModelsResponse.encode(value).finish()),
|
|
950
|
+
responseDeserialize: (value) => exports.ModelsResponse.decode(value),
|
|
507
951
|
},
|
|
508
|
-
|
|
509
|
-
path: "/ai.AIService/
|
|
952
|
+
getPricing: {
|
|
953
|
+
path: "/ai.AIService/GetPricing",
|
|
510
954
|
requestStream: false,
|
|
511
955
|
responseStream: false,
|
|
512
|
-
requestSerialize: (value) => Buffer.from(exports.
|
|
513
|
-
requestDeserialize: (value) => exports.
|
|
514
|
-
responseSerialize: (value) => Buffer.from(exports.
|
|
515
|
-
responseDeserialize: (value) => exports.
|
|
956
|
+
requestSerialize: (value) => Buffer.from(exports.PricingRequest.encode(value).finish()),
|
|
957
|
+
requestDeserialize: (value) => exports.PricingRequest.decode(value),
|
|
958
|
+
responseSerialize: (value) => Buffer.from(exports.PricingResponse.encode(value).finish()),
|
|
959
|
+
responseDeserialize: (value) => exports.PricingResponse.decode(value),
|
|
516
960
|
},
|
|
517
|
-
|
|
518
|
-
path: "/ai.AIService/
|
|
961
|
+
validateEndpoint: {
|
|
962
|
+
path: "/ai.AIService/ValidateEndpoint",
|
|
519
963
|
requestStream: false,
|
|
520
|
-
responseStream:
|
|
521
|
-
requestSerialize: (value) => Buffer.from(exports.
|
|
522
|
-
requestDeserialize: (value) => exports.
|
|
523
|
-
responseSerialize: (value) => Buffer.from(exports.
|
|
524
|
-
responseDeserialize: (value) => exports.
|
|
964
|
+
responseStream: false,
|
|
965
|
+
requestSerialize: (value) => Buffer.from(exports.ValidateEndpointRequest.encode(value).finish()),
|
|
966
|
+
requestDeserialize: (value) => exports.ValidateEndpointRequest.decode(value),
|
|
967
|
+
responseSerialize: (value) => Buffer.from(exports.ValidateEndpointResponse.encode(value).finish()),
|
|
968
|
+
responseDeserialize: (value) => exports.ValidateEndpointResponse.decode(value),
|
|
525
969
|
},
|
|
526
970
|
};
|