weave-typescript 0.27.0 → 0.28.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,917 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.6
5
+ // protoc unknown
6
+ // source: weaveapi/ingestion/v1/service.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.IngestionServiceDefinition = exports.IngestionServiceClientImpl = exports.IngestionServiceServiceName = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ const operators_1 = require("rxjs/operators");
12
+ const ingestion_pb_1 = require("./ingestion.pb");
13
+ exports.protobufPackage = "weaveapi.ingestion.v1";
14
+ exports.IngestionServiceServiceName = "weaveapi.ingestion.v1.IngestionService";
15
+ class IngestionServiceClientImpl {
16
+ constructor(rpc, opts) {
17
+ this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.IngestionServiceServiceName;
18
+ this.rpc = rpc;
19
+ this.UploadFile = this.UploadFile.bind(this);
20
+ this.StreamPipeline = this.StreamPipeline.bind(this);
21
+ this.GetIngestionRun = this.GetIngestionRun.bind(this);
22
+ this.ListIngestionHistory = this.ListIngestionHistory.bind(this);
23
+ this.RetryIngestion = this.RetryIngestion.bind(this);
24
+ this.GetThread = this.GetThread.bind(this);
25
+ this.EditThread = this.EditThread.bind(this);
26
+ this.ApproveThread = this.ApproveThread.bind(this);
27
+ this.RejectThread = this.RejectThread.bind(this);
28
+ this.BulkApproveThreads = this.BulkApproveThreads.bind(this);
29
+ this.BulkRejectThreads = this.BulkRejectThreads.bind(this);
30
+ }
31
+ UploadFile(request) {
32
+ const data = ingestion_pb_1.UploadFileRequest.encode(request).finish();
33
+ const promise = this.rpc.request(this.service, "UploadFile", data);
34
+ return promise.then((data) => ingestion_pb_1.UploadFileResponse.decode(new wire_1.BinaryReader(data)));
35
+ }
36
+ StreamPipeline(request) {
37
+ const data = ingestion_pb_1.StreamPipelineRequest.encode(request).finish();
38
+ const result = this.rpc.serverStreamingRequest(this.service, "StreamPipeline", data);
39
+ return result.pipe((0, operators_1.map)((data) => ingestion_pb_1.StreamPipelineResponse.decode(new wire_1.BinaryReader(data))));
40
+ }
41
+ GetIngestionRun(request) {
42
+ const data = ingestion_pb_1.GetIngestionRunRequest.encode(request).finish();
43
+ const promise = this.rpc.request(this.service, "GetIngestionRun", data);
44
+ return promise.then((data) => ingestion_pb_1.GetIngestionRunResponse.decode(new wire_1.BinaryReader(data)));
45
+ }
46
+ ListIngestionHistory(request) {
47
+ const data = ingestion_pb_1.ListIngestionHistoryRequest.encode(request).finish();
48
+ const promise = this.rpc.request(this.service, "ListIngestionHistory", data);
49
+ return promise.then((data) => ingestion_pb_1.ListIngestionHistoryResponse.decode(new wire_1.BinaryReader(data)));
50
+ }
51
+ RetryIngestion(request) {
52
+ const data = ingestion_pb_1.RetryIngestionRequest.encode(request).finish();
53
+ const promise = this.rpc.request(this.service, "RetryIngestion", data);
54
+ return promise.then((data) => ingestion_pb_1.RetryIngestionResponse.decode(new wire_1.BinaryReader(data)));
55
+ }
56
+ GetThread(request) {
57
+ const data = ingestion_pb_1.GetThreadRequest.encode(request).finish();
58
+ const promise = this.rpc.request(this.service, "GetThread", data);
59
+ return promise.then((data) => ingestion_pb_1.GetThreadResponse.decode(new wire_1.BinaryReader(data)));
60
+ }
61
+ EditThread(request) {
62
+ const data = ingestion_pb_1.EditThreadRequest.encode(request).finish();
63
+ const promise = this.rpc.request(this.service, "EditThread", data);
64
+ return promise.then((data) => ingestion_pb_1.EditThreadResponse.decode(new wire_1.BinaryReader(data)));
65
+ }
66
+ ApproveThread(request) {
67
+ const data = ingestion_pb_1.ApproveThreadRequest.encode(request).finish();
68
+ const promise = this.rpc.request(this.service, "ApproveThread", data);
69
+ return promise.then((data) => ingestion_pb_1.ApproveThreadResponse.decode(new wire_1.BinaryReader(data)));
70
+ }
71
+ RejectThread(request) {
72
+ const data = ingestion_pb_1.RejectThreadRequest.encode(request).finish();
73
+ const promise = this.rpc.request(this.service, "RejectThread", data);
74
+ return promise.then((data) => ingestion_pb_1.RejectThreadResponse.decode(new wire_1.BinaryReader(data)));
75
+ }
76
+ BulkApproveThreads(request) {
77
+ const data = ingestion_pb_1.BulkApproveThreadsRequest.encode(request).finish();
78
+ const promise = this.rpc.request(this.service, "BulkApproveThreads", data);
79
+ return promise.then((data) => ingestion_pb_1.BulkApproveThreadsResponse.decode(new wire_1.BinaryReader(data)));
80
+ }
81
+ BulkRejectThreads(request) {
82
+ const data = ingestion_pb_1.BulkRejectThreadsRequest.encode(request).finish();
83
+ const promise = this.rpc.request(this.service, "BulkRejectThreads", data);
84
+ return promise.then((data) => ingestion_pb_1.BulkRejectThreadsResponse.decode(new wire_1.BinaryReader(data)));
85
+ }
86
+ }
87
+ exports.IngestionServiceClientImpl = IngestionServiceClientImpl;
88
+ exports.IngestionServiceDefinition = {
89
+ name: "IngestionService",
90
+ fullName: "weaveapi.ingestion.v1.IngestionService",
91
+ methods: {
92
+ uploadFile: {
93
+ name: "UploadFile",
94
+ requestType: ingestion_pb_1.UploadFileRequest,
95
+ requestStream: false,
96
+ responseType: ingestion_pb_1.UploadFileResponse,
97
+ responseStream: false,
98
+ options: {
99
+ _unknownFields: {
100
+ 578365826: [
101
+ new Uint8Array([
102
+ 48,
103
+ 58,
104
+ 1,
105
+ 42,
106
+ 34,
107
+ 43,
108
+ 47,
109
+ 118,
110
+ 49,
111
+ 47,
112
+ 111,
113
+ 114,
114
+ 103,
115
+ 47,
116
+ 123,
117
+ 111,
118
+ 114,
119
+ 103,
120
+ 97,
121
+ 110,
122
+ 105,
123
+ 122,
124
+ 97,
125
+ 116,
126
+ 105,
127
+ 111,
128
+ 110,
129
+ 95,
130
+ 105,
131
+ 100,
132
+ 125,
133
+ 47,
134
+ 105,
135
+ 110,
136
+ 103,
137
+ 101,
138
+ 115,
139
+ 116,
140
+ 105,
141
+ 111,
142
+ 110,
143
+ 47,
144
+ 117,
145
+ 112,
146
+ 108,
147
+ 111,
148
+ 97,
149
+ 100,
150
+ 115,
151
+ ]),
152
+ ],
153
+ },
154
+ },
155
+ },
156
+ streamPipeline: {
157
+ name: "StreamPipeline",
158
+ requestType: ingestion_pb_1.StreamPipelineRequest,
159
+ requestStream: false,
160
+ responseType: ingestion_pb_1.StreamPipelineResponse,
161
+ responseStream: true,
162
+ options: {
163
+ _unknownFields: {
164
+ 578365826: [
165
+ new Uint8Array([
166
+ 63,
167
+ 18,
168
+ 61,
169
+ 47,
170
+ 118,
171
+ 49,
172
+ 47,
173
+ 111,
174
+ 114,
175
+ 103,
176
+ 47,
177
+ 123,
178
+ 111,
179
+ 114,
180
+ 103,
181
+ 97,
182
+ 110,
183
+ 105,
184
+ 122,
185
+ 97,
186
+ 116,
187
+ 105,
188
+ 111,
189
+ 110,
190
+ 95,
191
+ 105,
192
+ 100,
193
+ 125,
194
+ 47,
195
+ 105,
196
+ 110,
197
+ 103,
198
+ 101,
199
+ 115,
200
+ 116,
201
+ 105,
202
+ 111,
203
+ 110,
204
+ 47,
205
+ 115,
206
+ 116,
207
+ 114,
208
+ 101,
209
+ 97,
210
+ 109,
211
+ 47,
212
+ 123,
213
+ 105,
214
+ 110,
215
+ 103,
216
+ 101,
217
+ 115,
218
+ 116,
219
+ 105,
220
+ 111,
221
+ 110,
222
+ 95,
223
+ 114,
224
+ 117,
225
+ 110,
226
+ 95,
227
+ 105,
228
+ 100,
229
+ 125,
230
+ ]),
231
+ ],
232
+ },
233
+ },
234
+ },
235
+ getIngestionRun: {
236
+ name: "GetIngestionRun",
237
+ requestType: ingestion_pb_1.GetIngestionRunRequest,
238
+ requestStream: false,
239
+ responseType: ingestion_pb_1.GetIngestionRunResponse,
240
+ responseStream: false,
241
+ options: {
242
+ _unknownFields: {
243
+ 578365826: [
244
+ new Uint8Array([
245
+ 56,
246
+ 18,
247
+ 54,
248
+ 47,
249
+ 118,
250
+ 49,
251
+ 47,
252
+ 111,
253
+ 114,
254
+ 103,
255
+ 47,
256
+ 123,
257
+ 111,
258
+ 114,
259
+ 103,
260
+ 97,
261
+ 110,
262
+ 105,
263
+ 122,
264
+ 97,
265
+ 116,
266
+ 105,
267
+ 111,
268
+ 110,
269
+ 95,
270
+ 105,
271
+ 100,
272
+ 125,
273
+ 47,
274
+ 105,
275
+ 110,
276
+ 103,
277
+ 101,
278
+ 115,
279
+ 116,
280
+ 105,
281
+ 111,
282
+ 110,
283
+ 47,
284
+ 123,
285
+ 105,
286
+ 110,
287
+ 103,
288
+ 101,
289
+ 115,
290
+ 116,
291
+ 105,
292
+ 111,
293
+ 110,
294
+ 95,
295
+ 114,
296
+ 117,
297
+ 110,
298
+ 95,
299
+ 105,
300
+ 100,
301
+ 125,
302
+ ]),
303
+ ],
304
+ },
305
+ },
306
+ },
307
+ listIngestionHistory: {
308
+ name: "ListIngestionHistory",
309
+ requestType: ingestion_pb_1.ListIngestionHistoryRequest,
310
+ requestStream: false,
311
+ responseType: ingestion_pb_1.ListIngestionHistoryResponse,
312
+ responseStream: false,
313
+ options: {
314
+ _unknownFields: {
315
+ 578365826: [
316
+ new Uint8Array([
317
+ 45,
318
+ 18,
319
+ 43,
320
+ 47,
321
+ 118,
322
+ 49,
323
+ 47,
324
+ 111,
325
+ 114,
326
+ 103,
327
+ 47,
328
+ 123,
329
+ 111,
330
+ 114,
331
+ 103,
332
+ 97,
333
+ 110,
334
+ 105,
335
+ 122,
336
+ 97,
337
+ 116,
338
+ 105,
339
+ 111,
340
+ 110,
341
+ 95,
342
+ 105,
343
+ 100,
344
+ 125,
345
+ 47,
346
+ 105,
347
+ 110,
348
+ 103,
349
+ 101,
350
+ 115,
351
+ 116,
352
+ 105,
353
+ 111,
354
+ 110,
355
+ 47,
356
+ 104,
357
+ 105,
358
+ 115,
359
+ 116,
360
+ 111,
361
+ 114,
362
+ 121,
363
+ ]),
364
+ ],
365
+ },
366
+ },
367
+ },
368
+ retryIngestion: {
369
+ name: "RetryIngestion",
370
+ requestType: ingestion_pb_1.RetryIngestionRequest,
371
+ requestStream: false,
372
+ responseType: ingestion_pb_1.RetryIngestionResponse,
373
+ responseStream: false,
374
+ options: {
375
+ _unknownFields: {
376
+ 578365826: [
377
+ new Uint8Array([
378
+ 65,
379
+ 58,
380
+ 1,
381
+ 42,
382
+ 34,
383
+ 60,
384
+ 47,
385
+ 118,
386
+ 49,
387
+ 47,
388
+ 111,
389
+ 114,
390
+ 103,
391
+ 47,
392
+ 123,
393
+ 111,
394
+ 114,
395
+ 103,
396
+ 97,
397
+ 110,
398
+ 105,
399
+ 122,
400
+ 97,
401
+ 116,
402
+ 105,
403
+ 111,
404
+ 110,
405
+ 95,
406
+ 105,
407
+ 100,
408
+ 125,
409
+ 47,
410
+ 105,
411
+ 110,
412
+ 103,
413
+ 101,
414
+ 115,
415
+ 116,
416
+ 105,
417
+ 111,
418
+ 110,
419
+ 47,
420
+ 123,
421
+ 105,
422
+ 110,
423
+ 103,
424
+ 101,
425
+ 115,
426
+ 116,
427
+ 105,
428
+ 111,
429
+ 110,
430
+ 95,
431
+ 114,
432
+ 117,
433
+ 110,
434
+ 95,
435
+ 105,
436
+ 100,
437
+ 125,
438
+ 47,
439
+ 114,
440
+ 101,
441
+ 116,
442
+ 114,
443
+ 121,
444
+ ]),
445
+ ],
446
+ },
447
+ },
448
+ },
449
+ getThread: {
450
+ name: "GetThread",
451
+ requestType: ingestion_pb_1.GetThreadRequest,
452
+ requestStream: false,
453
+ responseType: ingestion_pb_1.GetThreadResponse,
454
+ responseStream: false,
455
+ options: {
456
+ _unknownFields: {
457
+ 578365826: [
458
+ new Uint8Array([
459
+ 47,
460
+ 18,
461
+ 45,
462
+ 47,
463
+ 118,
464
+ 49,
465
+ 47,
466
+ 111,
467
+ 114,
468
+ 103,
469
+ 47,
470
+ 123,
471
+ 111,
472
+ 114,
473
+ 103,
474
+ 97,
475
+ 110,
476
+ 105,
477
+ 122,
478
+ 97,
479
+ 116,
480
+ 105,
481
+ 111,
482
+ 110,
483
+ 95,
484
+ 105,
485
+ 100,
486
+ 125,
487
+ 47,
488
+ 116,
489
+ 104,
490
+ 114,
491
+ 101,
492
+ 97,
493
+ 100,
494
+ 115,
495
+ 47,
496
+ 123,
497
+ 116,
498
+ 104,
499
+ 114,
500
+ 101,
501
+ 97,
502
+ 100,
503
+ 95,
504
+ 105,
505
+ 100,
506
+ 125,
507
+ ]),
508
+ ],
509
+ },
510
+ },
511
+ },
512
+ editThread: {
513
+ name: "EditThread",
514
+ requestType: ingestion_pb_1.EditThreadRequest,
515
+ requestStream: false,
516
+ responseType: ingestion_pb_1.EditThreadResponse,
517
+ responseStream: false,
518
+ options: {
519
+ _unknownFields: {
520
+ 578365826: [
521
+ new Uint8Array([
522
+ 50,
523
+ 58,
524
+ 1,
525
+ 42,
526
+ 50,
527
+ 45,
528
+ 47,
529
+ 118,
530
+ 49,
531
+ 47,
532
+ 111,
533
+ 114,
534
+ 103,
535
+ 47,
536
+ 123,
537
+ 111,
538
+ 114,
539
+ 103,
540
+ 97,
541
+ 110,
542
+ 105,
543
+ 122,
544
+ 97,
545
+ 116,
546
+ 105,
547
+ 111,
548
+ 110,
549
+ 95,
550
+ 105,
551
+ 100,
552
+ 125,
553
+ 47,
554
+ 116,
555
+ 104,
556
+ 114,
557
+ 101,
558
+ 97,
559
+ 100,
560
+ 115,
561
+ 47,
562
+ 123,
563
+ 116,
564
+ 104,
565
+ 114,
566
+ 101,
567
+ 97,
568
+ 100,
569
+ 95,
570
+ 105,
571
+ 100,
572
+ 125,
573
+ ]),
574
+ ],
575
+ },
576
+ },
577
+ },
578
+ approveThread: {
579
+ name: "ApproveThread",
580
+ requestType: ingestion_pb_1.ApproveThreadRequest,
581
+ requestStream: false,
582
+ responseType: ingestion_pb_1.ApproveThreadResponse,
583
+ responseStream: false,
584
+ options: {
585
+ _unknownFields: {
586
+ 578365826: [
587
+ new Uint8Array([
588
+ 58,
589
+ 58,
590
+ 1,
591
+ 42,
592
+ 34,
593
+ 53,
594
+ 47,
595
+ 118,
596
+ 49,
597
+ 47,
598
+ 111,
599
+ 114,
600
+ 103,
601
+ 47,
602
+ 123,
603
+ 111,
604
+ 114,
605
+ 103,
606
+ 97,
607
+ 110,
608
+ 105,
609
+ 122,
610
+ 97,
611
+ 116,
612
+ 105,
613
+ 111,
614
+ 110,
615
+ 95,
616
+ 105,
617
+ 100,
618
+ 125,
619
+ 47,
620
+ 116,
621
+ 104,
622
+ 114,
623
+ 101,
624
+ 97,
625
+ 100,
626
+ 115,
627
+ 47,
628
+ 123,
629
+ 116,
630
+ 104,
631
+ 114,
632
+ 101,
633
+ 97,
634
+ 100,
635
+ 95,
636
+ 105,
637
+ 100,
638
+ 125,
639
+ 47,
640
+ 97,
641
+ 112,
642
+ 112,
643
+ 114,
644
+ 111,
645
+ 118,
646
+ 101,
647
+ ]),
648
+ ],
649
+ },
650
+ },
651
+ },
652
+ rejectThread: {
653
+ name: "RejectThread",
654
+ requestType: ingestion_pb_1.RejectThreadRequest,
655
+ requestStream: false,
656
+ responseType: ingestion_pb_1.RejectThreadResponse,
657
+ responseStream: false,
658
+ options: {
659
+ _unknownFields: {
660
+ 578365826: [
661
+ new Uint8Array([
662
+ 57,
663
+ 58,
664
+ 1,
665
+ 42,
666
+ 34,
667
+ 52,
668
+ 47,
669
+ 118,
670
+ 49,
671
+ 47,
672
+ 111,
673
+ 114,
674
+ 103,
675
+ 47,
676
+ 123,
677
+ 111,
678
+ 114,
679
+ 103,
680
+ 97,
681
+ 110,
682
+ 105,
683
+ 122,
684
+ 97,
685
+ 116,
686
+ 105,
687
+ 111,
688
+ 110,
689
+ 95,
690
+ 105,
691
+ 100,
692
+ 125,
693
+ 47,
694
+ 116,
695
+ 104,
696
+ 114,
697
+ 101,
698
+ 97,
699
+ 100,
700
+ 115,
701
+ 47,
702
+ 123,
703
+ 116,
704
+ 104,
705
+ 114,
706
+ 101,
707
+ 97,
708
+ 100,
709
+ 95,
710
+ 105,
711
+ 100,
712
+ 125,
713
+ 47,
714
+ 114,
715
+ 101,
716
+ 106,
717
+ 101,
718
+ 99,
719
+ 116,
720
+ ]),
721
+ ],
722
+ },
723
+ },
724
+ },
725
+ bulkApproveThreads: {
726
+ name: "BulkApproveThreads",
727
+ requestType: ingestion_pb_1.BulkApproveThreadsRequest,
728
+ requestStream: false,
729
+ responseType: ingestion_pb_1.BulkApproveThreadsResponse,
730
+ responseStream: false,
731
+ options: {
732
+ _unknownFields: {
733
+ 578365826: [
734
+ new Uint8Array([
735
+ 80,
736
+ 58,
737
+ 1,
738
+ 42,
739
+ 34,
740
+ 75,
741
+ 47,
742
+ 118,
743
+ 49,
744
+ 47,
745
+ 111,
746
+ 114,
747
+ 103,
748
+ 47,
749
+ 123,
750
+ 111,
751
+ 114,
752
+ 103,
753
+ 97,
754
+ 110,
755
+ 105,
756
+ 122,
757
+ 97,
758
+ 116,
759
+ 105,
760
+ 111,
761
+ 110,
762
+ 95,
763
+ 105,
764
+ 100,
765
+ 125,
766
+ 47,
767
+ 105,
768
+ 110,
769
+ 103,
770
+ 101,
771
+ 115,
772
+ 116,
773
+ 105,
774
+ 111,
775
+ 110,
776
+ 47,
777
+ 123,
778
+ 105,
779
+ 110,
780
+ 103,
781
+ 101,
782
+ 115,
783
+ 116,
784
+ 105,
785
+ 111,
786
+ 110,
787
+ 95,
788
+ 114,
789
+ 117,
790
+ 110,
791
+ 95,
792
+ 105,
793
+ 100,
794
+ 125,
795
+ 47,
796
+ 116,
797
+ 104,
798
+ 114,
799
+ 101,
800
+ 97,
801
+ 100,
802
+ 115,
803
+ 47,
804
+ 98,
805
+ 117,
806
+ 108,
807
+ 107,
808
+ 45,
809
+ 97,
810
+ 112,
811
+ 112,
812
+ 114,
813
+ 111,
814
+ 118,
815
+ 101,
816
+ ]),
817
+ ],
818
+ },
819
+ },
820
+ },
821
+ bulkRejectThreads: {
822
+ name: "BulkRejectThreads",
823
+ requestType: ingestion_pb_1.BulkRejectThreadsRequest,
824
+ requestStream: false,
825
+ responseType: ingestion_pb_1.BulkRejectThreadsResponse,
826
+ responseStream: false,
827
+ options: {
828
+ _unknownFields: {
829
+ 578365826: [
830
+ new Uint8Array([
831
+ 79,
832
+ 58,
833
+ 1,
834
+ 42,
835
+ 34,
836
+ 74,
837
+ 47,
838
+ 118,
839
+ 49,
840
+ 47,
841
+ 111,
842
+ 114,
843
+ 103,
844
+ 47,
845
+ 123,
846
+ 111,
847
+ 114,
848
+ 103,
849
+ 97,
850
+ 110,
851
+ 105,
852
+ 122,
853
+ 97,
854
+ 116,
855
+ 105,
856
+ 111,
857
+ 110,
858
+ 95,
859
+ 105,
860
+ 100,
861
+ 125,
862
+ 47,
863
+ 105,
864
+ 110,
865
+ 103,
866
+ 101,
867
+ 115,
868
+ 116,
869
+ 105,
870
+ 111,
871
+ 110,
872
+ 47,
873
+ 123,
874
+ 105,
875
+ 110,
876
+ 103,
877
+ 101,
878
+ 115,
879
+ 116,
880
+ 105,
881
+ 111,
882
+ 110,
883
+ 95,
884
+ 114,
885
+ 117,
886
+ 110,
887
+ 95,
888
+ 105,
889
+ 100,
890
+ 125,
891
+ 47,
892
+ 116,
893
+ 104,
894
+ 114,
895
+ 101,
896
+ 97,
897
+ 100,
898
+ 115,
899
+ 47,
900
+ 98,
901
+ 117,
902
+ 108,
903
+ 107,
904
+ 45,
905
+ 114,
906
+ 101,
907
+ 106,
908
+ 101,
909
+ 99,
910
+ 116,
911
+ ]),
912
+ ],
913
+ },
914
+ },
915
+ },
916
+ },
917
+ };