geniebox-shared-lib 2.0.3 → 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.
@@ -0,0 +1,685 @@
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: request.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.RequestServiceService = exports.REQUEST_SERVICE_NAME = exports.CancelRequestResponse = exports.RequestResultResponse = exports.RequestStatusResponse = exports.CreateRequestResponse = exports.StreamRequestRequest = exports.CancelRequestRequest = exports.GetRequestResultRequest = exports.GetRequestStatusRequest = exports.CreateRequestRequest = exports.StreamChunk = exports.RequestLog = exports.REQUEST_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.RequestServiceControllerMethods = RequestServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const wire_1 = require("@bufbuild/protobuf/wire");
12
+ const microservices_1 = require("@nestjs/microservices");
13
+ exports.protobufPackage = "request";
14
+ exports.REQUEST_PACKAGE_NAME = "request";
15
+ function createBaseRequestLog() {
16
+ return { message: "", level: "", timestamp: "" };
17
+ }
18
+ exports.RequestLog = {
19
+ encode(message, writer = new wire_1.BinaryWriter()) {
20
+ if (message.message !== "") {
21
+ writer.uint32(10).string(message.message);
22
+ }
23
+ if (message.level !== "") {
24
+ writer.uint32(18).string(message.level);
25
+ }
26
+ if (message.timestamp !== "") {
27
+ writer.uint32(26).string(message.timestamp);
28
+ }
29
+ return writer;
30
+ },
31
+ decode(input, length) {
32
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
33
+ const end = length === undefined ? reader.len : reader.pos + length;
34
+ const message = createBaseRequestLog();
35
+ while (reader.pos < end) {
36
+ const tag = reader.uint32();
37
+ switch (tag >>> 3) {
38
+ case 1: {
39
+ if (tag !== 10) {
40
+ break;
41
+ }
42
+ message.message = reader.string();
43
+ continue;
44
+ }
45
+ case 2: {
46
+ if (tag !== 18) {
47
+ break;
48
+ }
49
+ message.level = reader.string();
50
+ continue;
51
+ }
52
+ case 3: {
53
+ if (tag !== 26) {
54
+ break;
55
+ }
56
+ message.timestamp = reader.string();
57
+ continue;
58
+ }
59
+ }
60
+ if ((tag & 7) === 4 || tag === 0) {
61
+ break;
62
+ }
63
+ reader.skip(tag & 7);
64
+ }
65
+ return message;
66
+ },
67
+ };
68
+ function createBaseStreamChunk() {
69
+ return { requestId: "", type: "", data: "", chunk: 0, timestamp: "" };
70
+ }
71
+ exports.StreamChunk = {
72
+ encode(message, writer = new wire_1.BinaryWriter()) {
73
+ if (message.requestId !== "") {
74
+ writer.uint32(10).string(message.requestId);
75
+ }
76
+ if (message.type !== "") {
77
+ writer.uint32(18).string(message.type);
78
+ }
79
+ if (message.data !== "") {
80
+ writer.uint32(26).string(message.data);
81
+ }
82
+ if (message.chunk !== 0) {
83
+ writer.uint32(32).int32(message.chunk);
84
+ }
85
+ if (message.timestamp !== "") {
86
+ writer.uint32(42).string(message.timestamp);
87
+ }
88
+ return writer;
89
+ },
90
+ decode(input, length) {
91
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
92
+ const end = length === undefined ? reader.len : reader.pos + length;
93
+ const message = createBaseStreamChunk();
94
+ while (reader.pos < end) {
95
+ const tag = reader.uint32();
96
+ switch (tag >>> 3) {
97
+ case 1: {
98
+ if (tag !== 10) {
99
+ break;
100
+ }
101
+ message.requestId = reader.string();
102
+ continue;
103
+ }
104
+ case 2: {
105
+ if (tag !== 18) {
106
+ break;
107
+ }
108
+ message.type = reader.string();
109
+ continue;
110
+ }
111
+ case 3: {
112
+ if (tag !== 26) {
113
+ break;
114
+ }
115
+ message.data = reader.string();
116
+ continue;
117
+ }
118
+ case 4: {
119
+ if (tag !== 32) {
120
+ break;
121
+ }
122
+ message.chunk = reader.int32();
123
+ continue;
124
+ }
125
+ case 5: {
126
+ if (tag !== 42) {
127
+ break;
128
+ }
129
+ message.timestamp = reader.string();
130
+ continue;
131
+ }
132
+ }
133
+ if ((tag & 7) === 4 || tag === 0) {
134
+ break;
135
+ }
136
+ reader.skip(tag & 7);
137
+ }
138
+ return message;
139
+ },
140
+ };
141
+ function createBaseCreateRequestRequest() {
142
+ return { path: "", payload: "", userId: "", priority: "", webhookUrl: "", hint: "" };
143
+ }
144
+ exports.CreateRequestRequest = {
145
+ encode(message, writer = new wire_1.BinaryWriter()) {
146
+ if (message.path !== "") {
147
+ writer.uint32(10).string(message.path);
148
+ }
149
+ if (message.payload !== "") {
150
+ writer.uint32(18).string(message.payload);
151
+ }
152
+ if (message.userId !== "") {
153
+ writer.uint32(26).string(message.userId);
154
+ }
155
+ if (message.priority !== "") {
156
+ writer.uint32(34).string(message.priority);
157
+ }
158
+ if (message.webhookUrl !== "") {
159
+ writer.uint32(42).string(message.webhookUrl);
160
+ }
161
+ if (message.hint !== "") {
162
+ writer.uint32(50).string(message.hint);
163
+ }
164
+ return writer;
165
+ },
166
+ decode(input, length) {
167
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
168
+ const end = length === undefined ? reader.len : reader.pos + length;
169
+ const message = createBaseCreateRequestRequest();
170
+ while (reader.pos < end) {
171
+ const tag = reader.uint32();
172
+ switch (tag >>> 3) {
173
+ case 1: {
174
+ if (tag !== 10) {
175
+ break;
176
+ }
177
+ message.path = reader.string();
178
+ continue;
179
+ }
180
+ case 2: {
181
+ if (tag !== 18) {
182
+ break;
183
+ }
184
+ message.payload = reader.string();
185
+ continue;
186
+ }
187
+ case 3: {
188
+ if (tag !== 26) {
189
+ break;
190
+ }
191
+ message.userId = reader.string();
192
+ continue;
193
+ }
194
+ case 4: {
195
+ if (tag !== 34) {
196
+ break;
197
+ }
198
+ message.priority = reader.string();
199
+ continue;
200
+ }
201
+ case 5: {
202
+ if (tag !== 42) {
203
+ break;
204
+ }
205
+ message.webhookUrl = reader.string();
206
+ continue;
207
+ }
208
+ case 6: {
209
+ if (tag !== 50) {
210
+ break;
211
+ }
212
+ message.hint = reader.string();
213
+ continue;
214
+ }
215
+ }
216
+ if ((tag & 7) === 4 || tag === 0) {
217
+ break;
218
+ }
219
+ reader.skip(tag & 7);
220
+ }
221
+ return message;
222
+ },
223
+ };
224
+ function createBaseGetRequestStatusRequest() {
225
+ return { requestId: "", includeLogs: false };
226
+ }
227
+ exports.GetRequestStatusRequest = {
228
+ encode(message, writer = new wire_1.BinaryWriter()) {
229
+ if (message.requestId !== "") {
230
+ writer.uint32(10).string(message.requestId);
231
+ }
232
+ if (message.includeLogs !== false) {
233
+ writer.uint32(16).bool(message.includeLogs);
234
+ }
235
+ return writer;
236
+ },
237
+ decode(input, length) {
238
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
239
+ const end = length === undefined ? reader.len : reader.pos + length;
240
+ const message = createBaseGetRequestStatusRequest();
241
+ while (reader.pos < end) {
242
+ const tag = reader.uint32();
243
+ switch (tag >>> 3) {
244
+ case 1: {
245
+ if (tag !== 10) {
246
+ break;
247
+ }
248
+ message.requestId = reader.string();
249
+ continue;
250
+ }
251
+ case 2: {
252
+ if (tag !== 16) {
253
+ break;
254
+ }
255
+ message.includeLogs = reader.bool();
256
+ continue;
257
+ }
258
+ }
259
+ if ((tag & 7) === 4 || tag === 0) {
260
+ break;
261
+ }
262
+ reader.skip(tag & 7);
263
+ }
264
+ return message;
265
+ },
266
+ };
267
+ function createBaseGetRequestResultRequest() {
268
+ return { requestId: "" };
269
+ }
270
+ exports.GetRequestResultRequest = {
271
+ encode(message, writer = new wire_1.BinaryWriter()) {
272
+ if (message.requestId !== "") {
273
+ writer.uint32(10).string(message.requestId);
274
+ }
275
+ return writer;
276
+ },
277
+ decode(input, length) {
278
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
279
+ const end = length === undefined ? reader.len : reader.pos + length;
280
+ const message = createBaseGetRequestResultRequest();
281
+ while (reader.pos < end) {
282
+ const tag = reader.uint32();
283
+ switch (tag >>> 3) {
284
+ case 1: {
285
+ if (tag !== 10) {
286
+ break;
287
+ }
288
+ message.requestId = reader.string();
289
+ continue;
290
+ }
291
+ }
292
+ if ((tag & 7) === 4 || tag === 0) {
293
+ break;
294
+ }
295
+ reader.skip(tag & 7);
296
+ }
297
+ return message;
298
+ },
299
+ };
300
+ function createBaseCancelRequestRequest() {
301
+ return { requestId: "" };
302
+ }
303
+ exports.CancelRequestRequest = {
304
+ encode(message, writer = new wire_1.BinaryWriter()) {
305
+ if (message.requestId !== "") {
306
+ writer.uint32(10).string(message.requestId);
307
+ }
308
+ return writer;
309
+ },
310
+ decode(input, length) {
311
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
312
+ const end = length === undefined ? reader.len : reader.pos + length;
313
+ const message = createBaseCancelRequestRequest();
314
+ while (reader.pos < end) {
315
+ const tag = reader.uint32();
316
+ switch (tag >>> 3) {
317
+ case 1: {
318
+ if (tag !== 10) {
319
+ break;
320
+ }
321
+ message.requestId = reader.string();
322
+ continue;
323
+ }
324
+ }
325
+ if ((tag & 7) === 4 || tag === 0) {
326
+ break;
327
+ }
328
+ reader.skip(tag & 7);
329
+ }
330
+ return message;
331
+ },
332
+ };
333
+ function createBaseStreamRequestRequest() {
334
+ return { requestId: "" };
335
+ }
336
+ exports.StreamRequestRequest = {
337
+ encode(message, writer = new wire_1.BinaryWriter()) {
338
+ if (message.requestId !== "") {
339
+ writer.uint32(10).string(message.requestId);
340
+ }
341
+ return writer;
342
+ },
343
+ decode(input, length) {
344
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
345
+ const end = length === undefined ? reader.len : reader.pos + length;
346
+ const message = createBaseStreamRequestRequest();
347
+ while (reader.pos < end) {
348
+ const tag = reader.uint32();
349
+ switch (tag >>> 3) {
350
+ case 1: {
351
+ if (tag !== 10) {
352
+ break;
353
+ }
354
+ message.requestId = reader.string();
355
+ continue;
356
+ }
357
+ }
358
+ if ((tag & 7) === 4 || tag === 0) {
359
+ break;
360
+ }
361
+ reader.skip(tag & 7);
362
+ }
363
+ return message;
364
+ },
365
+ };
366
+ function createBaseCreateRequestResponse() {
367
+ return { requestId: "", status: "", error: "" };
368
+ }
369
+ exports.CreateRequestResponse = {
370
+ encode(message, writer = new wire_1.BinaryWriter()) {
371
+ if (message.requestId !== "") {
372
+ writer.uint32(10).string(message.requestId);
373
+ }
374
+ if (message.status !== "") {
375
+ writer.uint32(18).string(message.status);
376
+ }
377
+ if (message.error !== "") {
378
+ writer.uint32(26).string(message.error);
379
+ }
380
+ return writer;
381
+ },
382
+ decode(input, length) {
383
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
384
+ const end = length === undefined ? reader.len : reader.pos + length;
385
+ const message = createBaseCreateRequestResponse();
386
+ while (reader.pos < end) {
387
+ const tag = reader.uint32();
388
+ switch (tag >>> 3) {
389
+ case 1: {
390
+ if (tag !== 10) {
391
+ break;
392
+ }
393
+ message.requestId = reader.string();
394
+ continue;
395
+ }
396
+ case 2: {
397
+ if (tag !== 18) {
398
+ break;
399
+ }
400
+ message.status = reader.string();
401
+ continue;
402
+ }
403
+ case 3: {
404
+ if (tag !== 26) {
405
+ break;
406
+ }
407
+ message.error = reader.string();
408
+ continue;
409
+ }
410
+ }
411
+ if ((tag & 7) === 4 || tag === 0) {
412
+ break;
413
+ }
414
+ reader.skip(tag & 7);
415
+ }
416
+ return message;
417
+ },
418
+ };
419
+ function createBaseRequestStatusResponse() {
420
+ return { requestId: "", status: "", logs: [], startedAt: "", completedAt: "" };
421
+ }
422
+ exports.RequestStatusResponse = {
423
+ encode(message, writer = new wire_1.BinaryWriter()) {
424
+ if (message.requestId !== "") {
425
+ writer.uint32(10).string(message.requestId);
426
+ }
427
+ if (message.status !== "") {
428
+ writer.uint32(18).string(message.status);
429
+ }
430
+ for (const v of message.logs) {
431
+ exports.RequestLog.encode(v, writer.uint32(26).fork()).join();
432
+ }
433
+ if (message.startedAt !== "") {
434
+ writer.uint32(34).string(message.startedAt);
435
+ }
436
+ if (message.completedAt !== "") {
437
+ writer.uint32(42).string(message.completedAt);
438
+ }
439
+ return writer;
440
+ },
441
+ decode(input, length) {
442
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
443
+ const end = length === undefined ? reader.len : reader.pos + length;
444
+ const message = createBaseRequestStatusResponse();
445
+ while (reader.pos < end) {
446
+ const tag = reader.uint32();
447
+ switch (tag >>> 3) {
448
+ case 1: {
449
+ if (tag !== 10) {
450
+ break;
451
+ }
452
+ message.requestId = reader.string();
453
+ continue;
454
+ }
455
+ case 2: {
456
+ if (tag !== 18) {
457
+ break;
458
+ }
459
+ message.status = reader.string();
460
+ continue;
461
+ }
462
+ case 3: {
463
+ if (tag !== 26) {
464
+ break;
465
+ }
466
+ message.logs.push(exports.RequestLog.decode(reader, reader.uint32()));
467
+ continue;
468
+ }
469
+ case 4: {
470
+ if (tag !== 34) {
471
+ break;
472
+ }
473
+ message.startedAt = reader.string();
474
+ continue;
475
+ }
476
+ case 5: {
477
+ if (tag !== 42) {
478
+ break;
479
+ }
480
+ message.completedAt = reader.string();
481
+ continue;
482
+ }
483
+ }
484
+ if ((tag & 7) === 4 || tag === 0) {
485
+ break;
486
+ }
487
+ reader.skip(tag & 7);
488
+ }
489
+ return message;
490
+ },
491
+ };
492
+ function createBaseRequestResultResponse() {
493
+ return { requestId: "", result: "", error: "", tokensInput: 0, tokensOutput: 0, cost: 0 };
494
+ }
495
+ exports.RequestResultResponse = {
496
+ encode(message, writer = new wire_1.BinaryWriter()) {
497
+ if (message.requestId !== "") {
498
+ writer.uint32(10).string(message.requestId);
499
+ }
500
+ if (message.result !== "") {
501
+ writer.uint32(18).string(message.result);
502
+ }
503
+ if (message.error !== "") {
504
+ writer.uint32(26).string(message.error);
505
+ }
506
+ if (message.tokensInput !== 0) {
507
+ writer.uint32(32).int32(message.tokensInput);
508
+ }
509
+ if (message.tokensOutput !== 0) {
510
+ writer.uint32(40).int32(message.tokensOutput);
511
+ }
512
+ if (message.cost !== 0) {
513
+ writer.uint32(49).double(message.cost);
514
+ }
515
+ return writer;
516
+ },
517
+ decode(input, length) {
518
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
519
+ const end = length === undefined ? reader.len : reader.pos + length;
520
+ const message = createBaseRequestResultResponse();
521
+ while (reader.pos < end) {
522
+ const tag = reader.uint32();
523
+ switch (tag >>> 3) {
524
+ case 1: {
525
+ if (tag !== 10) {
526
+ break;
527
+ }
528
+ message.requestId = reader.string();
529
+ continue;
530
+ }
531
+ case 2: {
532
+ if (tag !== 18) {
533
+ break;
534
+ }
535
+ message.result = reader.string();
536
+ continue;
537
+ }
538
+ case 3: {
539
+ if (tag !== 26) {
540
+ break;
541
+ }
542
+ message.error = reader.string();
543
+ continue;
544
+ }
545
+ case 4: {
546
+ if (tag !== 32) {
547
+ break;
548
+ }
549
+ message.tokensInput = reader.int32();
550
+ continue;
551
+ }
552
+ case 5: {
553
+ if (tag !== 40) {
554
+ break;
555
+ }
556
+ message.tokensOutput = reader.int32();
557
+ continue;
558
+ }
559
+ case 6: {
560
+ if (tag !== 49) {
561
+ break;
562
+ }
563
+ message.cost = reader.double();
564
+ continue;
565
+ }
566
+ }
567
+ if ((tag & 7) === 4 || tag === 0) {
568
+ break;
569
+ }
570
+ reader.skip(tag & 7);
571
+ }
572
+ return message;
573
+ },
574
+ };
575
+ function createBaseCancelRequestResponse() {
576
+ return { requestId: "", cancelled: false };
577
+ }
578
+ exports.CancelRequestResponse = {
579
+ encode(message, writer = new wire_1.BinaryWriter()) {
580
+ if (message.requestId !== "") {
581
+ writer.uint32(10).string(message.requestId);
582
+ }
583
+ if (message.cancelled !== false) {
584
+ writer.uint32(16).bool(message.cancelled);
585
+ }
586
+ return writer;
587
+ },
588
+ decode(input, length) {
589
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
590
+ const end = length === undefined ? reader.len : reader.pos + length;
591
+ const message = createBaseCancelRequestResponse();
592
+ while (reader.pos < end) {
593
+ const tag = reader.uint32();
594
+ switch (tag >>> 3) {
595
+ case 1: {
596
+ if (tag !== 10) {
597
+ break;
598
+ }
599
+ message.requestId = reader.string();
600
+ continue;
601
+ }
602
+ case 2: {
603
+ if (tag !== 16) {
604
+ break;
605
+ }
606
+ message.cancelled = reader.bool();
607
+ continue;
608
+ }
609
+ }
610
+ if ((tag & 7) === 4 || tag === 0) {
611
+ break;
612
+ }
613
+ reader.skip(tag & 7);
614
+ }
615
+ return message;
616
+ },
617
+ };
618
+ function RequestServiceControllerMethods() {
619
+ return function (constructor) {
620
+ const grpcMethods = [
621
+ "createRequest",
622
+ "getRequestStatus",
623
+ "getRequestResult",
624
+ "cancelRequest",
625
+ "streamRequest",
626
+ ];
627
+ for (const method of grpcMethods) {
628
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
629
+ (0, microservices_1.GrpcMethod)("RequestService", method)(constructor.prototype[method], method, descriptor);
630
+ }
631
+ const grpcStreamMethods = [];
632
+ for (const method of grpcStreamMethods) {
633
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
634
+ (0, microservices_1.GrpcStreamMethod)("RequestService", method)(constructor.prototype[method], method, descriptor);
635
+ }
636
+ };
637
+ }
638
+ exports.REQUEST_SERVICE_NAME = "RequestService";
639
+ exports.RequestServiceService = {
640
+ createRequest: {
641
+ path: "/request.RequestService/CreateRequest",
642
+ requestStream: false,
643
+ responseStream: false,
644
+ requestSerialize: (value) => Buffer.from(exports.CreateRequestRequest.encode(value).finish()),
645
+ requestDeserialize: (value) => exports.CreateRequestRequest.decode(value),
646
+ responseSerialize: (value) => Buffer.from(exports.CreateRequestResponse.encode(value).finish()),
647
+ responseDeserialize: (value) => exports.CreateRequestResponse.decode(value),
648
+ },
649
+ getRequestStatus: {
650
+ path: "/request.RequestService/GetRequestStatus",
651
+ requestStream: false,
652
+ responseStream: false,
653
+ requestSerialize: (value) => Buffer.from(exports.GetRequestStatusRequest.encode(value).finish()),
654
+ requestDeserialize: (value) => exports.GetRequestStatusRequest.decode(value),
655
+ responseSerialize: (value) => Buffer.from(exports.RequestStatusResponse.encode(value).finish()),
656
+ responseDeserialize: (value) => exports.RequestStatusResponse.decode(value),
657
+ },
658
+ getRequestResult: {
659
+ path: "/request.RequestService/GetRequestResult",
660
+ requestStream: false,
661
+ responseStream: false,
662
+ requestSerialize: (value) => Buffer.from(exports.GetRequestResultRequest.encode(value).finish()),
663
+ requestDeserialize: (value) => exports.GetRequestResultRequest.decode(value),
664
+ responseSerialize: (value) => Buffer.from(exports.RequestResultResponse.encode(value).finish()),
665
+ responseDeserialize: (value) => exports.RequestResultResponse.decode(value),
666
+ },
667
+ cancelRequest: {
668
+ path: "/request.RequestService/CancelRequest",
669
+ requestStream: false,
670
+ responseStream: false,
671
+ requestSerialize: (value) => Buffer.from(exports.CancelRequestRequest.encode(value).finish()),
672
+ requestDeserialize: (value) => exports.CancelRequestRequest.decode(value),
673
+ responseSerialize: (value) => Buffer.from(exports.CancelRequestResponse.encode(value).finish()),
674
+ responseDeserialize: (value) => exports.CancelRequestResponse.decode(value),
675
+ },
676
+ streamRequest: {
677
+ path: "/request.RequestService/StreamRequest",
678
+ requestStream: false,
679
+ responseStream: true,
680
+ requestSerialize: (value) => Buffer.from(exports.StreamRequestRequest.encode(value).finish()),
681
+ requestDeserialize: (value) => exports.StreamRequestRequest.decode(value),
682
+ responseSerialize: (value) => Buffer.from(exports.StreamChunk.encode(value).finish()),
683
+ responseDeserialize: (value) => exports.StreamChunk.decode(value),
684
+ },
685
+ };
@@ -0,0 +1,12 @@
1
+ import { OnModuleInit } from "@nestjs/common";
2
+ import { ClientGrpc } from "@nestjs/microservices";
3
+ import { ResponseServiceClient } from "./response.interface";
4
+ export declare class ResponseClient implements OnModuleInit {
5
+ private readonly client;
6
+ private readonly logger;
7
+ private responseClient?;
8
+ constructor(client: ClientGrpc);
9
+ onModuleInit(): void;
10
+ get service(): ResponseServiceClient;
11
+ isReady(): boolean;
12
+ }