geniebox-shared-lib 2.1.2 → 2.2.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,1609 @@
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: endpoint.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.EndpointServiceService = exports.ENDPOINT_SERVICE_NAME = exports.DeleteEndpointResponse = exports.ListEndpointsResponse = exports.GetEndpointByIdResponse = exports.UpdateEndpointResponse = exports.CreateEndpointResponse = exports.ValidateEndpointResponse = exports.PricingResponse = exports.ModelsResponse = exports.ProvidersResponse = exports.DeleteEndpointRequest = exports.ListEndpointsRequest = exports.GetEndpointByIdRequest = exports.UpdateEndpointRequest = exports.CreateEndpointRequest = exports.ValidateEndpointRequest = exports.PricingRequest = exports.ModelsRequest = exports.ProvidersRequest = exports.EndpointRequest = exports.EndpointConfig = exports.Pricing = exports.Model = exports.Provider = exports.ENDPOINT_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.EndpointServiceControllerMethods = EndpointServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const wire_1 = require("@bufbuild/protobuf/wire");
12
+ const microservices_1 = require("@nestjs/microservices");
13
+ exports.protobufPackage = "endpoint";
14
+ exports.ENDPOINT_PACKAGE_NAME = "endpoint";
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
+ };
27
+ }
28
+ exports.Provider = {
29
+ encode(message, writer = new wire_1.BinaryWriter()) {
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);
56
+ }
57
+ return writer;
58
+ },
59
+ decode(input, length) {
60
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
61
+ const end = length === undefined ? reader.len : reader.pos + length;
62
+ const message = createBaseProvider();
63
+ while (reader.pos < end) {
64
+ const tag = reader.uint32();
65
+ switch (tag >>> 3) {
66
+ case 1: {
67
+ if (tag !== 10) {
68
+ break;
69
+ }
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();
127
+ continue;
128
+ }
129
+ }
130
+ if ((tag & 7) === 4 || tag === 0) {
131
+ break;
132
+ }
133
+ reader.skip(tag & 7);
134
+ }
135
+ return message;
136
+ },
137
+ };
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
+ };
154
+ }
155
+ exports.Model = {
156
+ encode(message, writer = new wire_1.BinaryWriter()) {
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);
174
+ }
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);
195
+ }
196
+ return writer;
197
+ },
198
+ decode(input, length) {
199
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
200
+ const end = length === undefined ? reader.len : reader.pos + length;
201
+ const message = createBaseModel();
202
+ while (reader.pos < end) {
203
+ const tag = reader.uint32();
204
+ switch (tag >>> 3) {
205
+ case 1: {
206
+ if (tag !== 10) {
207
+ break;
208
+ }
209
+ message.id = reader.string();
210
+ continue;
211
+ }
212
+ case 2: {
213
+ if (tag !== 18) {
214
+ break;
215
+ }
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();
294
+ continue;
295
+ }
296
+ }
297
+ if ((tag & 7) === 4 || tag === 0) {
298
+ break;
299
+ }
300
+ reader.skip(tag & 7);
301
+ }
302
+ return message;
303
+ },
304
+ };
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
+ };
318
+ }
319
+ exports.Pricing = {
320
+ encode(message, writer = new wire_1.BinaryWriter()) {
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);
344
+ }
345
+ if (message.createdAt !== "") {
346
+ writer.uint32(74).string(message.createdAt);
347
+ }
348
+ if (message.updatedAt !== "") {
349
+ writer.uint32(82).string(message.updatedAt);
350
+ }
351
+ return writer;
352
+ },
353
+ decode(input, length) {
354
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
355
+ const end = length === undefined ? reader.len : reader.pos + length;
356
+ const message = createBasePricing();
357
+ while (reader.pos < end) {
358
+ const tag = reader.uint32();
359
+ switch (tag >>> 3) {
360
+ case 1: {
361
+ if (tag !== 10) {
362
+ break;
363
+ }
364
+ message.id = reader.string();
365
+ continue;
366
+ }
367
+ case 2: {
368
+ if (tag !== 18) {
369
+ break;
370
+ }
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();
428
+ continue;
429
+ }
430
+ }
431
+ if ((tag & 7) === 4 || tag === 0) {
432
+ break;
433
+ }
434
+ reader.skip(tag & 7);
435
+ }
436
+ return message;
437
+ },
438
+ };
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
+ createdAt: "",
451
+ updatedAt: "",
452
+ };
453
+ }
454
+ exports.EndpointConfig = {
455
+ encode(message, writer = new wire_1.BinaryWriter()) {
456
+ if (message.id !== "") {
457
+ writer.uint32(10).string(message.id);
458
+ }
459
+ if (message.path !== "") {
460
+ writer.uint32(18).string(message.path);
461
+ }
462
+ if (message.providerId !== "") {
463
+ writer.uint32(26).string(message.providerId);
464
+ }
465
+ if (message.providerName !== "") {
466
+ writer.uint32(34).string(message.providerName);
467
+ }
468
+ if (message.queueName !== "") {
469
+ writer.uint32(42).string(message.queueName);
470
+ }
471
+ for (const v of message.methods) {
472
+ writer.uint32(50).string(v);
473
+ }
474
+ if (message.description !== "") {
475
+ writer.uint32(58).string(message.description);
476
+ }
477
+ if (message.isActive !== false) {
478
+ writer.uint32(64).bool(message.isActive);
479
+ }
480
+ if (message.metadata !== "") {
481
+ writer.uint32(74).string(message.metadata);
482
+ }
483
+ if (message.createdAt !== "") {
484
+ writer.uint32(82).string(message.createdAt);
485
+ }
486
+ if (message.updatedAt !== "") {
487
+ writer.uint32(90).string(message.updatedAt);
488
+ }
489
+ return writer;
490
+ },
491
+ decode(input, length) {
492
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
493
+ const end = length === undefined ? reader.len : reader.pos + length;
494
+ const message = createBaseEndpointConfig();
495
+ while (reader.pos < end) {
496
+ const tag = reader.uint32();
497
+ switch (tag >>> 3) {
498
+ case 1: {
499
+ if (tag !== 10) {
500
+ break;
501
+ }
502
+ message.id = reader.string();
503
+ continue;
504
+ }
505
+ case 2: {
506
+ if (tag !== 18) {
507
+ break;
508
+ }
509
+ message.path = reader.string();
510
+ continue;
511
+ }
512
+ case 3: {
513
+ if (tag !== 26) {
514
+ break;
515
+ }
516
+ message.providerId = reader.string();
517
+ continue;
518
+ }
519
+ case 4: {
520
+ if (tag !== 34) {
521
+ break;
522
+ }
523
+ message.providerName = reader.string();
524
+ continue;
525
+ }
526
+ case 5: {
527
+ if (tag !== 42) {
528
+ break;
529
+ }
530
+ message.queueName = reader.string();
531
+ continue;
532
+ }
533
+ case 6: {
534
+ if (tag !== 50) {
535
+ break;
536
+ }
537
+ message.methods.push(reader.string());
538
+ continue;
539
+ }
540
+ case 7: {
541
+ if (tag !== 58) {
542
+ break;
543
+ }
544
+ message.description = reader.string();
545
+ continue;
546
+ }
547
+ case 8: {
548
+ if (tag !== 64) {
549
+ break;
550
+ }
551
+ message.isActive = reader.bool();
552
+ continue;
553
+ }
554
+ case 9: {
555
+ if (tag !== 74) {
556
+ break;
557
+ }
558
+ message.metadata = reader.string();
559
+ continue;
560
+ }
561
+ case 10: {
562
+ if (tag !== 82) {
563
+ break;
564
+ }
565
+ message.createdAt = reader.string();
566
+ continue;
567
+ }
568
+ case 11: {
569
+ if (tag !== 90) {
570
+ break;
571
+ }
572
+ message.updatedAt = reader.string();
573
+ continue;
574
+ }
575
+ }
576
+ if ((tag & 7) === 4 || tag === 0) {
577
+ break;
578
+ }
579
+ reader.skip(tag & 7);
580
+ }
581
+ return message;
582
+ },
583
+ };
584
+ function createBaseEndpointRequest() {
585
+ return { path: "" };
586
+ }
587
+ exports.EndpointRequest = {
588
+ encode(message, writer = new wire_1.BinaryWriter()) {
589
+ if (message.path !== "") {
590
+ writer.uint32(10).string(message.path);
591
+ }
592
+ return writer;
593
+ },
594
+ decode(input, length) {
595
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
596
+ const end = length === undefined ? reader.len : reader.pos + length;
597
+ const message = createBaseEndpointRequest();
598
+ while (reader.pos < end) {
599
+ const tag = reader.uint32();
600
+ switch (tag >>> 3) {
601
+ case 1: {
602
+ if (tag !== 10) {
603
+ break;
604
+ }
605
+ message.path = reader.string();
606
+ continue;
607
+ }
608
+ }
609
+ if ((tag & 7) === 4 || tag === 0) {
610
+ break;
611
+ }
612
+ reader.skip(tag & 7);
613
+ }
614
+ return message;
615
+ },
616
+ };
617
+ function createBaseProvidersRequest() {
618
+ return { activeOnly: false };
619
+ }
620
+ exports.ProvidersRequest = {
621
+ encode(message, writer = new wire_1.BinaryWriter()) {
622
+ if (message.activeOnly !== false) {
623
+ writer.uint32(8).bool(message.activeOnly);
624
+ }
625
+ return writer;
626
+ },
627
+ decode(input, length) {
628
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
629
+ const end = length === undefined ? reader.len : reader.pos + length;
630
+ const message = createBaseProvidersRequest();
631
+ while (reader.pos < end) {
632
+ const tag = reader.uint32();
633
+ switch (tag >>> 3) {
634
+ case 1: {
635
+ if (tag !== 8) {
636
+ break;
637
+ }
638
+ message.activeOnly = reader.bool();
639
+ continue;
640
+ }
641
+ }
642
+ if ((tag & 7) === 4 || tag === 0) {
643
+ break;
644
+ }
645
+ reader.skip(tag & 7);
646
+ }
647
+ return message;
648
+ },
649
+ };
650
+ function createBaseModelsRequest() {
651
+ return { providerId: "", activeOnly: false };
652
+ }
653
+ exports.ModelsRequest = {
654
+ encode(message, writer = new wire_1.BinaryWriter()) {
655
+ if (message.providerId !== "") {
656
+ writer.uint32(10).string(message.providerId);
657
+ }
658
+ if (message.activeOnly !== false) {
659
+ writer.uint32(16).bool(message.activeOnly);
660
+ }
661
+ return writer;
662
+ },
663
+ decode(input, length) {
664
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
665
+ const end = length === undefined ? reader.len : reader.pos + length;
666
+ const message = createBaseModelsRequest();
667
+ while (reader.pos < end) {
668
+ const tag = reader.uint32();
669
+ switch (tag >>> 3) {
670
+ case 1: {
671
+ if (tag !== 10) {
672
+ break;
673
+ }
674
+ message.providerId = reader.string();
675
+ continue;
676
+ }
677
+ case 2: {
678
+ if (tag !== 16) {
679
+ break;
680
+ }
681
+ message.activeOnly = reader.bool();
682
+ continue;
683
+ }
684
+ }
685
+ if ((tag & 7) === 4 || tag === 0) {
686
+ break;
687
+ }
688
+ reader.skip(tag & 7);
689
+ }
690
+ return message;
691
+ },
692
+ };
693
+ function createBasePricingRequest() {
694
+ return { modelId: "", currency: "" };
695
+ }
696
+ exports.PricingRequest = {
697
+ encode(message, writer = new wire_1.BinaryWriter()) {
698
+ if (message.modelId !== "") {
699
+ writer.uint32(10).string(message.modelId);
700
+ }
701
+ if (message.currency !== "") {
702
+ writer.uint32(18).string(message.currency);
703
+ }
704
+ return writer;
705
+ },
706
+ decode(input, length) {
707
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
708
+ const end = length === undefined ? reader.len : reader.pos + length;
709
+ const message = createBasePricingRequest();
710
+ while (reader.pos < end) {
711
+ const tag = reader.uint32();
712
+ switch (tag >>> 3) {
713
+ case 1: {
714
+ if (tag !== 10) {
715
+ break;
716
+ }
717
+ message.modelId = reader.string();
718
+ continue;
719
+ }
720
+ case 2: {
721
+ if (tag !== 18) {
722
+ break;
723
+ }
724
+ message.currency = reader.string();
725
+ continue;
726
+ }
727
+ }
728
+ if ((tag & 7) === 4 || tag === 0) {
729
+ break;
730
+ }
731
+ reader.skip(tag & 7);
732
+ }
733
+ return message;
734
+ },
735
+ };
736
+ function createBaseValidateEndpointRequest() {
737
+ return { path: "", method: "" };
738
+ }
739
+ exports.ValidateEndpointRequest = {
740
+ encode(message, writer = new wire_1.BinaryWriter()) {
741
+ if (message.path !== "") {
742
+ writer.uint32(10).string(message.path);
743
+ }
744
+ if (message.method !== "") {
745
+ writer.uint32(18).string(message.method);
746
+ }
747
+ return writer;
748
+ },
749
+ decode(input, length) {
750
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
751
+ const end = length === undefined ? reader.len : reader.pos + length;
752
+ const message = createBaseValidateEndpointRequest();
753
+ while (reader.pos < end) {
754
+ const tag = reader.uint32();
755
+ switch (tag >>> 3) {
756
+ case 1: {
757
+ if (tag !== 10) {
758
+ break;
759
+ }
760
+ message.path = reader.string();
761
+ continue;
762
+ }
763
+ case 2: {
764
+ if (tag !== 18) {
765
+ break;
766
+ }
767
+ message.method = reader.string();
768
+ continue;
769
+ }
770
+ }
771
+ if ((tag & 7) === 4 || tag === 0) {
772
+ break;
773
+ }
774
+ reader.skip(tag & 7);
775
+ }
776
+ return message;
777
+ },
778
+ };
779
+ function createBaseCreateEndpointRequest() {
780
+ return { path: "", providerId: "", queueName: "", methods: [], description: "", isActive: false, metadata: "" };
781
+ }
782
+ exports.CreateEndpointRequest = {
783
+ encode(message, writer = new wire_1.BinaryWriter()) {
784
+ if (message.path !== "") {
785
+ writer.uint32(10).string(message.path);
786
+ }
787
+ if (message.providerId !== "") {
788
+ writer.uint32(18).string(message.providerId);
789
+ }
790
+ if (message.queueName !== "") {
791
+ writer.uint32(26).string(message.queueName);
792
+ }
793
+ for (const v of message.methods) {
794
+ writer.uint32(34).string(v);
795
+ }
796
+ if (message.description !== "") {
797
+ writer.uint32(42).string(message.description);
798
+ }
799
+ if (message.isActive !== false) {
800
+ writer.uint32(48).bool(message.isActive);
801
+ }
802
+ if (message.metadata !== "") {
803
+ writer.uint32(58).string(message.metadata);
804
+ }
805
+ return writer;
806
+ },
807
+ decode(input, length) {
808
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
809
+ const end = length === undefined ? reader.len : reader.pos + length;
810
+ const message = createBaseCreateEndpointRequest();
811
+ while (reader.pos < end) {
812
+ const tag = reader.uint32();
813
+ switch (tag >>> 3) {
814
+ case 1: {
815
+ if (tag !== 10) {
816
+ break;
817
+ }
818
+ message.path = reader.string();
819
+ continue;
820
+ }
821
+ case 2: {
822
+ if (tag !== 18) {
823
+ break;
824
+ }
825
+ message.providerId = reader.string();
826
+ continue;
827
+ }
828
+ case 3: {
829
+ if (tag !== 26) {
830
+ break;
831
+ }
832
+ message.queueName = reader.string();
833
+ continue;
834
+ }
835
+ case 4: {
836
+ if (tag !== 34) {
837
+ break;
838
+ }
839
+ message.methods.push(reader.string());
840
+ continue;
841
+ }
842
+ case 5: {
843
+ if (tag !== 42) {
844
+ break;
845
+ }
846
+ message.description = reader.string();
847
+ continue;
848
+ }
849
+ case 6: {
850
+ if (tag !== 48) {
851
+ break;
852
+ }
853
+ message.isActive = reader.bool();
854
+ continue;
855
+ }
856
+ case 7: {
857
+ if (tag !== 58) {
858
+ break;
859
+ }
860
+ message.metadata = reader.string();
861
+ continue;
862
+ }
863
+ }
864
+ if ((tag & 7) === 4 || tag === 0) {
865
+ break;
866
+ }
867
+ reader.skip(tag & 7);
868
+ }
869
+ return message;
870
+ },
871
+ };
872
+ function createBaseUpdateEndpointRequest() {
873
+ return {
874
+ id: "",
875
+ path: "",
876
+ providerId: "",
877
+ queueName: "",
878
+ methods: [],
879
+ description: "",
880
+ isActive: false,
881
+ metadata: "",
882
+ };
883
+ }
884
+ exports.UpdateEndpointRequest = {
885
+ encode(message, writer = new wire_1.BinaryWriter()) {
886
+ if (message.id !== "") {
887
+ writer.uint32(10).string(message.id);
888
+ }
889
+ if (message.path !== "") {
890
+ writer.uint32(18).string(message.path);
891
+ }
892
+ if (message.providerId !== "") {
893
+ writer.uint32(26).string(message.providerId);
894
+ }
895
+ if (message.queueName !== "") {
896
+ writer.uint32(34).string(message.queueName);
897
+ }
898
+ for (const v of message.methods) {
899
+ writer.uint32(42).string(v);
900
+ }
901
+ if (message.description !== "") {
902
+ writer.uint32(50).string(message.description);
903
+ }
904
+ if (message.isActive !== false) {
905
+ writer.uint32(56).bool(message.isActive);
906
+ }
907
+ if (message.metadata !== "") {
908
+ writer.uint32(66).string(message.metadata);
909
+ }
910
+ return writer;
911
+ },
912
+ decode(input, length) {
913
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
914
+ const end = length === undefined ? reader.len : reader.pos + length;
915
+ const message = createBaseUpdateEndpointRequest();
916
+ while (reader.pos < end) {
917
+ const tag = reader.uint32();
918
+ switch (tag >>> 3) {
919
+ case 1: {
920
+ if (tag !== 10) {
921
+ break;
922
+ }
923
+ message.id = reader.string();
924
+ continue;
925
+ }
926
+ case 2: {
927
+ if (tag !== 18) {
928
+ break;
929
+ }
930
+ message.path = reader.string();
931
+ continue;
932
+ }
933
+ case 3: {
934
+ if (tag !== 26) {
935
+ break;
936
+ }
937
+ message.providerId = reader.string();
938
+ continue;
939
+ }
940
+ case 4: {
941
+ if (tag !== 34) {
942
+ break;
943
+ }
944
+ message.queueName = reader.string();
945
+ continue;
946
+ }
947
+ case 5: {
948
+ if (tag !== 42) {
949
+ break;
950
+ }
951
+ message.methods.push(reader.string());
952
+ continue;
953
+ }
954
+ case 6: {
955
+ if (tag !== 50) {
956
+ break;
957
+ }
958
+ message.description = reader.string();
959
+ continue;
960
+ }
961
+ case 7: {
962
+ if (tag !== 56) {
963
+ break;
964
+ }
965
+ message.isActive = reader.bool();
966
+ continue;
967
+ }
968
+ case 8: {
969
+ if (tag !== 66) {
970
+ break;
971
+ }
972
+ message.metadata = reader.string();
973
+ continue;
974
+ }
975
+ }
976
+ if ((tag & 7) === 4 || tag === 0) {
977
+ break;
978
+ }
979
+ reader.skip(tag & 7);
980
+ }
981
+ return message;
982
+ },
983
+ };
984
+ function createBaseGetEndpointByIdRequest() {
985
+ return { id: "" };
986
+ }
987
+ exports.GetEndpointByIdRequest = {
988
+ encode(message, writer = new wire_1.BinaryWriter()) {
989
+ if (message.id !== "") {
990
+ writer.uint32(10).string(message.id);
991
+ }
992
+ return writer;
993
+ },
994
+ decode(input, length) {
995
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
996
+ const end = length === undefined ? reader.len : reader.pos + length;
997
+ const message = createBaseGetEndpointByIdRequest();
998
+ while (reader.pos < end) {
999
+ const tag = reader.uint32();
1000
+ switch (tag >>> 3) {
1001
+ case 1: {
1002
+ if (tag !== 10) {
1003
+ break;
1004
+ }
1005
+ message.id = reader.string();
1006
+ continue;
1007
+ }
1008
+ }
1009
+ if ((tag & 7) === 4 || tag === 0) {
1010
+ break;
1011
+ }
1012
+ reader.skip(tag & 7);
1013
+ }
1014
+ return message;
1015
+ },
1016
+ };
1017
+ function createBaseListEndpointsRequest() {
1018
+ return { activeOnly: false, providerId: "" };
1019
+ }
1020
+ exports.ListEndpointsRequest = {
1021
+ encode(message, writer = new wire_1.BinaryWriter()) {
1022
+ if (message.activeOnly !== false) {
1023
+ writer.uint32(8).bool(message.activeOnly);
1024
+ }
1025
+ if (message.providerId !== "") {
1026
+ writer.uint32(18).string(message.providerId);
1027
+ }
1028
+ return writer;
1029
+ },
1030
+ decode(input, length) {
1031
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1032
+ const end = length === undefined ? reader.len : reader.pos + length;
1033
+ const message = createBaseListEndpointsRequest();
1034
+ while (reader.pos < end) {
1035
+ const tag = reader.uint32();
1036
+ switch (tag >>> 3) {
1037
+ case 1: {
1038
+ if (tag !== 8) {
1039
+ break;
1040
+ }
1041
+ message.activeOnly = reader.bool();
1042
+ continue;
1043
+ }
1044
+ case 2: {
1045
+ if (tag !== 18) {
1046
+ break;
1047
+ }
1048
+ message.providerId = reader.string();
1049
+ continue;
1050
+ }
1051
+ }
1052
+ if ((tag & 7) === 4 || tag === 0) {
1053
+ break;
1054
+ }
1055
+ reader.skip(tag & 7);
1056
+ }
1057
+ return message;
1058
+ },
1059
+ };
1060
+ function createBaseDeleteEndpointRequest() {
1061
+ return { id: "", hardDelete: false };
1062
+ }
1063
+ exports.DeleteEndpointRequest = {
1064
+ encode(message, writer = new wire_1.BinaryWriter()) {
1065
+ if (message.id !== "") {
1066
+ writer.uint32(10).string(message.id);
1067
+ }
1068
+ if (message.hardDelete !== false) {
1069
+ writer.uint32(16).bool(message.hardDelete);
1070
+ }
1071
+ return writer;
1072
+ },
1073
+ decode(input, length) {
1074
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1075
+ const end = length === undefined ? reader.len : reader.pos + length;
1076
+ const message = createBaseDeleteEndpointRequest();
1077
+ while (reader.pos < end) {
1078
+ const tag = reader.uint32();
1079
+ switch (tag >>> 3) {
1080
+ case 1: {
1081
+ if (tag !== 10) {
1082
+ break;
1083
+ }
1084
+ message.id = reader.string();
1085
+ continue;
1086
+ }
1087
+ case 2: {
1088
+ if (tag !== 16) {
1089
+ break;
1090
+ }
1091
+ message.hardDelete = reader.bool();
1092
+ continue;
1093
+ }
1094
+ }
1095
+ if ((tag & 7) === 4 || tag === 0) {
1096
+ break;
1097
+ }
1098
+ reader.skip(tag & 7);
1099
+ }
1100
+ return message;
1101
+ },
1102
+ };
1103
+ function createBaseProvidersResponse() {
1104
+ return { providers: [] };
1105
+ }
1106
+ exports.ProvidersResponse = {
1107
+ encode(message, writer = new wire_1.BinaryWriter()) {
1108
+ for (const v of message.providers) {
1109
+ exports.Provider.encode(v, writer.uint32(10).fork()).join();
1110
+ }
1111
+ return writer;
1112
+ },
1113
+ decode(input, length) {
1114
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1115
+ const end = length === undefined ? reader.len : reader.pos + length;
1116
+ const message = createBaseProvidersResponse();
1117
+ while (reader.pos < end) {
1118
+ const tag = reader.uint32();
1119
+ switch (tag >>> 3) {
1120
+ case 1: {
1121
+ if (tag !== 10) {
1122
+ break;
1123
+ }
1124
+ message.providers.push(exports.Provider.decode(reader, reader.uint32()));
1125
+ continue;
1126
+ }
1127
+ }
1128
+ if ((tag & 7) === 4 || tag === 0) {
1129
+ break;
1130
+ }
1131
+ reader.skip(tag & 7);
1132
+ }
1133
+ return message;
1134
+ },
1135
+ };
1136
+ function createBaseModelsResponse() {
1137
+ return { models: [] };
1138
+ }
1139
+ exports.ModelsResponse = {
1140
+ encode(message, writer = new wire_1.BinaryWriter()) {
1141
+ for (const v of message.models) {
1142
+ exports.Model.encode(v, writer.uint32(10).fork()).join();
1143
+ }
1144
+ return writer;
1145
+ },
1146
+ decode(input, length) {
1147
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1148
+ const end = length === undefined ? reader.len : reader.pos + length;
1149
+ const message = createBaseModelsResponse();
1150
+ while (reader.pos < end) {
1151
+ const tag = reader.uint32();
1152
+ switch (tag >>> 3) {
1153
+ case 1: {
1154
+ if (tag !== 10) {
1155
+ break;
1156
+ }
1157
+ message.models.push(exports.Model.decode(reader, reader.uint32()));
1158
+ continue;
1159
+ }
1160
+ }
1161
+ if ((tag & 7) === 4 || tag === 0) {
1162
+ break;
1163
+ }
1164
+ reader.skip(tag & 7);
1165
+ }
1166
+ return message;
1167
+ },
1168
+ };
1169
+ function createBasePricingResponse() {
1170
+ return { pricing: [] };
1171
+ }
1172
+ exports.PricingResponse = {
1173
+ encode(message, writer = new wire_1.BinaryWriter()) {
1174
+ for (const v of message.pricing) {
1175
+ exports.Pricing.encode(v, writer.uint32(10).fork()).join();
1176
+ }
1177
+ return writer;
1178
+ },
1179
+ decode(input, length) {
1180
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1181
+ const end = length === undefined ? reader.len : reader.pos + length;
1182
+ const message = createBasePricingResponse();
1183
+ while (reader.pos < end) {
1184
+ const tag = reader.uint32();
1185
+ switch (tag >>> 3) {
1186
+ case 1: {
1187
+ if (tag !== 10) {
1188
+ break;
1189
+ }
1190
+ message.pricing.push(exports.Pricing.decode(reader, reader.uint32()));
1191
+ continue;
1192
+ }
1193
+ }
1194
+ if ((tag & 7) === 4 || tag === 0) {
1195
+ break;
1196
+ }
1197
+ reader.skip(tag & 7);
1198
+ }
1199
+ return message;
1200
+ },
1201
+ };
1202
+ function createBaseValidateEndpointResponse() {
1203
+ return { isValid: false, error: "" };
1204
+ }
1205
+ exports.ValidateEndpointResponse = {
1206
+ encode(message, writer = new wire_1.BinaryWriter()) {
1207
+ if (message.isValid !== false) {
1208
+ writer.uint32(8).bool(message.isValid);
1209
+ }
1210
+ if (message.error !== "") {
1211
+ writer.uint32(18).string(message.error);
1212
+ }
1213
+ if (message.config !== undefined) {
1214
+ exports.EndpointConfig.encode(message.config, writer.uint32(26).fork()).join();
1215
+ }
1216
+ return writer;
1217
+ },
1218
+ decode(input, length) {
1219
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1220
+ const end = length === undefined ? reader.len : reader.pos + length;
1221
+ const message = createBaseValidateEndpointResponse();
1222
+ while (reader.pos < end) {
1223
+ const tag = reader.uint32();
1224
+ switch (tag >>> 3) {
1225
+ case 1: {
1226
+ if (tag !== 8) {
1227
+ break;
1228
+ }
1229
+ message.isValid = reader.bool();
1230
+ continue;
1231
+ }
1232
+ case 2: {
1233
+ if (tag !== 18) {
1234
+ break;
1235
+ }
1236
+ message.error = reader.string();
1237
+ continue;
1238
+ }
1239
+ case 3: {
1240
+ if (tag !== 26) {
1241
+ break;
1242
+ }
1243
+ message.config = exports.EndpointConfig.decode(reader, reader.uint32());
1244
+ continue;
1245
+ }
1246
+ }
1247
+ if ((tag & 7) === 4 || tag === 0) {
1248
+ break;
1249
+ }
1250
+ reader.skip(tag & 7);
1251
+ }
1252
+ return message;
1253
+ },
1254
+ };
1255
+ function createBaseCreateEndpointResponse() {
1256
+ return { success: false, error: "" };
1257
+ }
1258
+ exports.CreateEndpointResponse = {
1259
+ encode(message, writer = new wire_1.BinaryWriter()) {
1260
+ if (message.endpoint !== undefined) {
1261
+ exports.EndpointConfig.encode(message.endpoint, writer.uint32(10).fork()).join();
1262
+ }
1263
+ if (message.success !== false) {
1264
+ writer.uint32(16).bool(message.success);
1265
+ }
1266
+ if (message.error !== "") {
1267
+ writer.uint32(26).string(message.error);
1268
+ }
1269
+ return writer;
1270
+ },
1271
+ decode(input, length) {
1272
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1273
+ const end = length === undefined ? reader.len : reader.pos + length;
1274
+ const message = createBaseCreateEndpointResponse();
1275
+ while (reader.pos < end) {
1276
+ const tag = reader.uint32();
1277
+ switch (tag >>> 3) {
1278
+ case 1: {
1279
+ if (tag !== 10) {
1280
+ break;
1281
+ }
1282
+ message.endpoint = exports.EndpointConfig.decode(reader, reader.uint32());
1283
+ continue;
1284
+ }
1285
+ case 2: {
1286
+ if (tag !== 16) {
1287
+ break;
1288
+ }
1289
+ message.success = reader.bool();
1290
+ continue;
1291
+ }
1292
+ case 3: {
1293
+ if (tag !== 26) {
1294
+ break;
1295
+ }
1296
+ message.error = reader.string();
1297
+ continue;
1298
+ }
1299
+ }
1300
+ if ((tag & 7) === 4 || tag === 0) {
1301
+ break;
1302
+ }
1303
+ reader.skip(tag & 7);
1304
+ }
1305
+ return message;
1306
+ },
1307
+ };
1308
+ function createBaseUpdateEndpointResponse() {
1309
+ return { success: false, error: "" };
1310
+ }
1311
+ exports.UpdateEndpointResponse = {
1312
+ encode(message, writer = new wire_1.BinaryWriter()) {
1313
+ if (message.endpoint !== undefined) {
1314
+ exports.EndpointConfig.encode(message.endpoint, writer.uint32(10).fork()).join();
1315
+ }
1316
+ if (message.success !== false) {
1317
+ writer.uint32(16).bool(message.success);
1318
+ }
1319
+ if (message.error !== "") {
1320
+ writer.uint32(26).string(message.error);
1321
+ }
1322
+ return writer;
1323
+ },
1324
+ decode(input, length) {
1325
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1326
+ const end = length === undefined ? reader.len : reader.pos + length;
1327
+ const message = createBaseUpdateEndpointResponse();
1328
+ while (reader.pos < end) {
1329
+ const tag = reader.uint32();
1330
+ switch (tag >>> 3) {
1331
+ case 1: {
1332
+ if (tag !== 10) {
1333
+ break;
1334
+ }
1335
+ message.endpoint = exports.EndpointConfig.decode(reader, reader.uint32());
1336
+ continue;
1337
+ }
1338
+ case 2: {
1339
+ if (tag !== 16) {
1340
+ break;
1341
+ }
1342
+ message.success = reader.bool();
1343
+ continue;
1344
+ }
1345
+ case 3: {
1346
+ if (tag !== 26) {
1347
+ break;
1348
+ }
1349
+ message.error = reader.string();
1350
+ continue;
1351
+ }
1352
+ }
1353
+ if ((tag & 7) === 4 || tag === 0) {
1354
+ break;
1355
+ }
1356
+ reader.skip(tag & 7);
1357
+ }
1358
+ return message;
1359
+ },
1360
+ };
1361
+ function createBaseGetEndpointByIdResponse() {
1362
+ return { found: false };
1363
+ }
1364
+ exports.GetEndpointByIdResponse = {
1365
+ encode(message, writer = new wire_1.BinaryWriter()) {
1366
+ if (message.endpoint !== undefined) {
1367
+ exports.EndpointConfig.encode(message.endpoint, writer.uint32(10).fork()).join();
1368
+ }
1369
+ if (message.found !== false) {
1370
+ writer.uint32(16).bool(message.found);
1371
+ }
1372
+ return writer;
1373
+ },
1374
+ decode(input, length) {
1375
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1376
+ const end = length === undefined ? reader.len : reader.pos + length;
1377
+ const message = createBaseGetEndpointByIdResponse();
1378
+ while (reader.pos < end) {
1379
+ const tag = reader.uint32();
1380
+ switch (tag >>> 3) {
1381
+ case 1: {
1382
+ if (tag !== 10) {
1383
+ break;
1384
+ }
1385
+ message.endpoint = exports.EndpointConfig.decode(reader, reader.uint32());
1386
+ continue;
1387
+ }
1388
+ case 2: {
1389
+ if (tag !== 16) {
1390
+ break;
1391
+ }
1392
+ message.found = reader.bool();
1393
+ continue;
1394
+ }
1395
+ }
1396
+ if ((tag & 7) === 4 || tag === 0) {
1397
+ break;
1398
+ }
1399
+ reader.skip(tag & 7);
1400
+ }
1401
+ return message;
1402
+ },
1403
+ };
1404
+ function createBaseListEndpointsResponse() {
1405
+ return { endpoints: [], total: 0 };
1406
+ }
1407
+ exports.ListEndpointsResponse = {
1408
+ encode(message, writer = new wire_1.BinaryWriter()) {
1409
+ for (const v of message.endpoints) {
1410
+ exports.EndpointConfig.encode(v, writer.uint32(10).fork()).join();
1411
+ }
1412
+ if (message.total !== 0) {
1413
+ writer.uint32(16).int32(message.total);
1414
+ }
1415
+ return writer;
1416
+ },
1417
+ decode(input, length) {
1418
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1419
+ const end = length === undefined ? reader.len : reader.pos + length;
1420
+ const message = createBaseListEndpointsResponse();
1421
+ while (reader.pos < end) {
1422
+ const tag = reader.uint32();
1423
+ switch (tag >>> 3) {
1424
+ case 1: {
1425
+ if (tag !== 10) {
1426
+ break;
1427
+ }
1428
+ message.endpoints.push(exports.EndpointConfig.decode(reader, reader.uint32()));
1429
+ continue;
1430
+ }
1431
+ case 2: {
1432
+ if (tag !== 16) {
1433
+ break;
1434
+ }
1435
+ message.total = reader.int32();
1436
+ continue;
1437
+ }
1438
+ }
1439
+ if ((tag & 7) === 4 || tag === 0) {
1440
+ break;
1441
+ }
1442
+ reader.skip(tag & 7);
1443
+ }
1444
+ return message;
1445
+ },
1446
+ };
1447
+ function createBaseDeleteEndpointResponse() {
1448
+ return { success: false, error: "" };
1449
+ }
1450
+ exports.DeleteEndpointResponse = {
1451
+ encode(message, writer = new wire_1.BinaryWriter()) {
1452
+ if (message.success !== false) {
1453
+ writer.uint32(8).bool(message.success);
1454
+ }
1455
+ if (message.error !== "") {
1456
+ writer.uint32(18).string(message.error);
1457
+ }
1458
+ return writer;
1459
+ },
1460
+ decode(input, length) {
1461
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1462
+ const end = length === undefined ? reader.len : reader.pos + length;
1463
+ const message = createBaseDeleteEndpointResponse();
1464
+ while (reader.pos < end) {
1465
+ const tag = reader.uint32();
1466
+ switch (tag >>> 3) {
1467
+ case 1: {
1468
+ if (tag !== 8) {
1469
+ break;
1470
+ }
1471
+ message.success = reader.bool();
1472
+ continue;
1473
+ }
1474
+ case 2: {
1475
+ if (tag !== 18) {
1476
+ break;
1477
+ }
1478
+ message.error = reader.string();
1479
+ continue;
1480
+ }
1481
+ }
1482
+ if ((tag & 7) === 4 || tag === 0) {
1483
+ break;
1484
+ }
1485
+ reader.skip(tag & 7);
1486
+ }
1487
+ return message;
1488
+ },
1489
+ };
1490
+ function EndpointServiceControllerMethods() {
1491
+ return function (constructor) {
1492
+ const grpcMethods = [
1493
+ "getEndpointConfig",
1494
+ "getProviders",
1495
+ "getModels",
1496
+ "getPricing",
1497
+ "validateEndpoint",
1498
+ "createEndpoint",
1499
+ "updateEndpoint",
1500
+ "getEndpointById",
1501
+ "listEndpoints",
1502
+ "deleteEndpoint",
1503
+ ];
1504
+ for (const method of grpcMethods) {
1505
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
1506
+ (0, microservices_1.GrpcMethod)("EndpointService", method)(constructor.prototype[method], method, descriptor);
1507
+ }
1508
+ const grpcStreamMethods = [];
1509
+ for (const method of grpcStreamMethods) {
1510
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
1511
+ (0, microservices_1.GrpcStreamMethod)("EndpointService", method)(constructor.prototype[method], method, descriptor);
1512
+ }
1513
+ };
1514
+ }
1515
+ exports.ENDPOINT_SERVICE_NAME = "EndpointService";
1516
+ exports.EndpointServiceService = {
1517
+ /** Existing methods */
1518
+ getEndpointConfig: {
1519
+ path: "/endpoint.EndpointService/GetEndpointConfig",
1520
+ requestStream: false,
1521
+ responseStream: false,
1522
+ requestSerialize: (value) => Buffer.from(exports.EndpointRequest.encode(value).finish()),
1523
+ requestDeserialize: (value) => exports.EndpointRequest.decode(value),
1524
+ responseSerialize: (value) => Buffer.from(exports.EndpointConfig.encode(value).finish()),
1525
+ responseDeserialize: (value) => exports.EndpointConfig.decode(value),
1526
+ },
1527
+ getProviders: {
1528
+ path: "/endpoint.EndpointService/GetProviders",
1529
+ requestStream: false,
1530
+ responseStream: false,
1531
+ requestSerialize: (value) => Buffer.from(exports.ProvidersRequest.encode(value).finish()),
1532
+ requestDeserialize: (value) => exports.ProvidersRequest.decode(value),
1533
+ responseSerialize: (value) => Buffer.from(exports.ProvidersResponse.encode(value).finish()),
1534
+ responseDeserialize: (value) => exports.ProvidersResponse.decode(value),
1535
+ },
1536
+ getModels: {
1537
+ path: "/endpoint.EndpointService/GetModels",
1538
+ requestStream: false,
1539
+ responseStream: false,
1540
+ requestSerialize: (value) => Buffer.from(exports.ModelsRequest.encode(value).finish()),
1541
+ requestDeserialize: (value) => exports.ModelsRequest.decode(value),
1542
+ responseSerialize: (value) => Buffer.from(exports.ModelsResponse.encode(value).finish()),
1543
+ responseDeserialize: (value) => exports.ModelsResponse.decode(value),
1544
+ },
1545
+ getPricing: {
1546
+ path: "/endpoint.EndpointService/GetPricing",
1547
+ requestStream: false,
1548
+ responseStream: false,
1549
+ requestSerialize: (value) => Buffer.from(exports.PricingRequest.encode(value).finish()),
1550
+ requestDeserialize: (value) => exports.PricingRequest.decode(value),
1551
+ responseSerialize: (value) => Buffer.from(exports.PricingResponse.encode(value).finish()),
1552
+ responseDeserialize: (value) => exports.PricingResponse.decode(value),
1553
+ },
1554
+ validateEndpoint: {
1555
+ path: "/endpoint.EndpointService/ValidateEndpoint",
1556
+ requestStream: false,
1557
+ responseStream: false,
1558
+ requestSerialize: (value) => Buffer.from(exports.ValidateEndpointRequest.encode(value).finish()),
1559
+ requestDeserialize: (value) => exports.ValidateEndpointRequest.decode(value),
1560
+ responseSerialize: (value) => Buffer.from(exports.ValidateEndpointResponse.encode(value).finish()),
1561
+ responseDeserialize: (value) => exports.ValidateEndpointResponse.decode(value),
1562
+ },
1563
+ /** CRUD methods for endpoints */
1564
+ createEndpoint: {
1565
+ path: "/endpoint.EndpointService/CreateEndpoint",
1566
+ requestStream: false,
1567
+ responseStream: false,
1568
+ requestSerialize: (value) => Buffer.from(exports.CreateEndpointRequest.encode(value).finish()),
1569
+ requestDeserialize: (value) => exports.CreateEndpointRequest.decode(value),
1570
+ responseSerialize: (value) => Buffer.from(exports.CreateEndpointResponse.encode(value).finish()),
1571
+ responseDeserialize: (value) => exports.CreateEndpointResponse.decode(value),
1572
+ },
1573
+ updateEndpoint: {
1574
+ path: "/endpoint.EndpointService/UpdateEndpoint",
1575
+ requestStream: false,
1576
+ responseStream: false,
1577
+ requestSerialize: (value) => Buffer.from(exports.UpdateEndpointRequest.encode(value).finish()),
1578
+ requestDeserialize: (value) => exports.UpdateEndpointRequest.decode(value),
1579
+ responseSerialize: (value) => Buffer.from(exports.UpdateEndpointResponse.encode(value).finish()),
1580
+ responseDeserialize: (value) => exports.UpdateEndpointResponse.decode(value),
1581
+ },
1582
+ getEndpointById: {
1583
+ path: "/endpoint.EndpointService/GetEndpointById",
1584
+ requestStream: false,
1585
+ responseStream: false,
1586
+ requestSerialize: (value) => Buffer.from(exports.GetEndpointByIdRequest.encode(value).finish()),
1587
+ requestDeserialize: (value) => exports.GetEndpointByIdRequest.decode(value),
1588
+ responseSerialize: (value) => Buffer.from(exports.GetEndpointByIdResponse.encode(value).finish()),
1589
+ responseDeserialize: (value) => exports.GetEndpointByIdResponse.decode(value),
1590
+ },
1591
+ listEndpoints: {
1592
+ path: "/endpoint.EndpointService/ListEndpoints",
1593
+ requestStream: false,
1594
+ responseStream: false,
1595
+ requestSerialize: (value) => Buffer.from(exports.ListEndpointsRequest.encode(value).finish()),
1596
+ requestDeserialize: (value) => exports.ListEndpointsRequest.decode(value),
1597
+ responseSerialize: (value) => Buffer.from(exports.ListEndpointsResponse.encode(value).finish()),
1598
+ responseDeserialize: (value) => exports.ListEndpointsResponse.decode(value),
1599
+ },
1600
+ deleteEndpoint: {
1601
+ path: "/endpoint.EndpointService/DeleteEndpoint",
1602
+ requestStream: false,
1603
+ responseStream: false,
1604
+ requestSerialize: (value) => Buffer.from(exports.DeleteEndpointRequest.encode(value).finish()),
1605
+ requestDeserialize: (value) => exports.DeleteEndpointRequest.decode(value),
1606
+ responseSerialize: (value) => Buffer.from(exports.DeleteEndpointResponse.encode(value).finish()),
1607
+ responseDeserialize: (value) => exports.DeleteEndpointResponse.decode(value),
1608
+ },
1609
+ };