weave-typescript 0.28.0 → 0.29.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.
@@ -20,9 +20,17 @@ class IngestionServiceClientImpl {
20
20
  this.StreamPipeline = this.StreamPipeline.bind(this);
21
21
  this.GetIngestionRun = this.GetIngestionRun.bind(this);
22
22
  this.ListIngestionHistory = this.ListIngestionHistory.bind(this);
23
+ this.ListDocuments = this.ListDocuments.bind(this);
24
+ this.GetDocumentDetail = this.GetDocumentDetail.bind(this);
25
+ this.GetDocumentSource = this.GetDocumentSource.bind(this);
26
+ this.UpdateDocumentTags = this.UpdateDocumentTags.bind(this);
27
+ this.DeleteDocument = this.DeleteDocument.bind(this);
23
28
  this.RetryIngestion = this.RetryIngestion.bind(this);
24
29
  this.GetThread = this.GetThread.bind(this);
25
30
  this.EditThread = this.EditThread.bind(this);
31
+ this.CreateDocumentThread = this.CreateDocumentThread.bind(this);
32
+ this.UpdateDocumentThread = this.UpdateDocumentThread.bind(this);
33
+ this.DeleteDocumentThread = this.DeleteDocumentThread.bind(this);
26
34
  this.ApproveThread = this.ApproveThread.bind(this);
27
35
  this.RejectThread = this.RejectThread.bind(this);
28
36
  this.BulkApproveThreads = this.BulkApproveThreads.bind(this);
@@ -48,6 +56,31 @@ class IngestionServiceClientImpl {
48
56
  const promise = this.rpc.request(this.service, "ListIngestionHistory", data);
49
57
  return promise.then((data) => ingestion_pb_1.ListIngestionHistoryResponse.decode(new wire_1.BinaryReader(data)));
50
58
  }
59
+ ListDocuments(request) {
60
+ const data = ingestion_pb_1.ListDocumentsRequest.encode(request).finish();
61
+ const promise = this.rpc.request(this.service, "ListDocuments", data);
62
+ return promise.then((data) => ingestion_pb_1.ListDocumentsResponse.decode(new wire_1.BinaryReader(data)));
63
+ }
64
+ GetDocumentDetail(request) {
65
+ const data = ingestion_pb_1.GetDocumentDetailRequest.encode(request).finish();
66
+ const promise = this.rpc.request(this.service, "GetDocumentDetail", data);
67
+ return promise.then((data) => ingestion_pb_1.GetDocumentDetailResponse.decode(new wire_1.BinaryReader(data)));
68
+ }
69
+ GetDocumentSource(request) {
70
+ const data = ingestion_pb_1.GetDocumentSourceRequest.encode(request).finish();
71
+ const promise = this.rpc.request(this.service, "GetDocumentSource", data);
72
+ return promise.then((data) => ingestion_pb_1.GetDocumentSourceResponse.decode(new wire_1.BinaryReader(data)));
73
+ }
74
+ UpdateDocumentTags(request) {
75
+ const data = ingestion_pb_1.UpdateDocumentTagsRequest.encode(request).finish();
76
+ const promise = this.rpc.request(this.service, "UpdateDocumentTags", data);
77
+ return promise.then((data) => ingestion_pb_1.UpdateDocumentTagsResponse.decode(new wire_1.BinaryReader(data)));
78
+ }
79
+ DeleteDocument(request) {
80
+ const data = ingestion_pb_1.DeleteDocumentRequest.encode(request).finish();
81
+ const promise = this.rpc.request(this.service, "DeleteDocument", data);
82
+ return promise.then((data) => ingestion_pb_1.DeleteDocumentResponse.decode(new wire_1.BinaryReader(data)));
83
+ }
51
84
  RetryIngestion(request) {
52
85
  const data = ingestion_pb_1.RetryIngestionRequest.encode(request).finish();
53
86
  const promise = this.rpc.request(this.service, "RetryIngestion", data);
@@ -63,6 +96,21 @@ class IngestionServiceClientImpl {
63
96
  const promise = this.rpc.request(this.service, "EditThread", data);
64
97
  return promise.then((data) => ingestion_pb_1.EditThreadResponse.decode(new wire_1.BinaryReader(data)));
65
98
  }
99
+ CreateDocumentThread(request) {
100
+ const data = ingestion_pb_1.CreateDocumentThreadRequest.encode(request).finish();
101
+ const promise = this.rpc.request(this.service, "CreateDocumentThread", data);
102
+ return promise.then((data) => ingestion_pb_1.CreateDocumentThreadResponse.decode(new wire_1.BinaryReader(data)));
103
+ }
104
+ UpdateDocumentThread(request) {
105
+ const data = ingestion_pb_1.UpdateDocumentThreadRequest.encode(request).finish();
106
+ const promise = this.rpc.request(this.service, "UpdateDocumentThread", data);
107
+ return promise.then((data) => ingestion_pb_1.UpdateDocumentThreadResponse.decode(new wire_1.BinaryReader(data)));
108
+ }
109
+ DeleteDocumentThread(request) {
110
+ const data = ingestion_pb_1.DeleteDocumentThreadRequest.encode(request).finish();
111
+ const promise = this.rpc.request(this.service, "DeleteDocumentThread", data);
112
+ return promise.then((data) => ingestion_pb_1.DeleteDocumentThreadResponse.decode(new wire_1.BinaryReader(data)));
113
+ }
66
114
  ApproveThread(request) {
67
115
  const data = ingestion_pb_1.ApproveThreadRequest.encode(request).finish();
68
116
  const promise = this.rpc.request(this.service, "ApproveThread", data);
@@ -365,22 +413,19 @@ exports.IngestionServiceDefinition = {
365
413
  },
366
414
  },
367
415
  },
368
- retryIngestion: {
369
- name: "RetryIngestion",
370
- requestType: ingestion_pb_1.RetryIngestionRequest,
416
+ listDocuments: {
417
+ name: "ListDocuments",
418
+ requestType: ingestion_pb_1.ListDocumentsRequest,
371
419
  requestStream: false,
372
- responseType: ingestion_pb_1.RetryIngestionResponse,
420
+ responseType: ingestion_pb_1.ListDocumentsResponse,
373
421
  responseStream: false,
374
422
  options: {
375
423
  _unknownFields: {
376
424
  578365826: [
377
425
  new Uint8Array([
378
- 65,
379
- 58,
380
- 1,
381
- 42,
382
- 34,
383
- 60,
426
+ 37,
427
+ 18,
428
+ 35,
384
429
  47,
385
430
  118,
386
431
  49,
@@ -407,58 +452,177 @@ exports.IngestionServiceDefinition = {
407
452
  100,
408
453
  125,
409
454
  47,
410
- 105,
411
- 110,
412
- 103,
455
+ 100,
456
+ 111,
457
+ 99,
458
+ 117,
459
+ 109,
413
460
  101,
461
+ 110,
462
+ 116,
414
463
  115,
464
+ ]),
465
+ ],
466
+ },
467
+ },
468
+ },
469
+ getDocumentDetail: {
470
+ name: "GetDocumentDetail",
471
+ requestType: ingestion_pb_1.GetDocumentDetailRequest,
472
+ requestStream: false,
473
+ responseType: ingestion_pb_1.GetDocumentDetailResponse,
474
+ responseStream: false,
475
+ options: {
476
+ _unknownFields: {
477
+ 578365826: [
478
+ new Uint8Array([
479
+ 51,
480
+ 18,
481
+ 49,
482
+ 47,
483
+ 118,
484
+ 49,
485
+ 47,
486
+ 111,
487
+ 114,
488
+ 103,
489
+ 47,
490
+ 123,
491
+ 111,
492
+ 114,
493
+ 103,
494
+ 97,
495
+ 110,
496
+ 105,
497
+ 122,
498
+ 97,
415
499
  116,
416
500
  105,
417
501
  111,
418
502
  110,
503
+ 95,
504
+ 105,
505
+ 100,
506
+ 125,
507
+ 47,
508
+ 100,
509
+ 111,
510
+ 99,
511
+ 117,
512
+ 109,
513
+ 101,
514
+ 110,
515
+ 116,
516
+ 115,
419
517
  47,
420
518
  123,
421
- 105,
519
+ 100,
520
+ 111,
521
+ 99,
522
+ 117,
523
+ 109,
524
+ 101,
422
525
  110,
526
+ 116,
527
+ 95,
528
+ 105,
529
+ 100,
530
+ 125,
531
+ ]),
532
+ ],
533
+ },
534
+ },
535
+ },
536
+ getDocumentSource: {
537
+ name: "GetDocumentSource",
538
+ requestType: ingestion_pb_1.GetDocumentSourceRequest,
539
+ requestStream: false,
540
+ responseType: ingestion_pb_1.GetDocumentSourceResponse,
541
+ responseStream: false,
542
+ options: {
543
+ _unknownFields: {
544
+ 578365826: [
545
+ new Uint8Array([
546
+ 58,
547
+ 18,
548
+ 56,
549
+ 47,
550
+ 118,
551
+ 49,
552
+ 47,
553
+ 111,
554
+ 114,
423
555
  103,
424
- 101,
425
- 115,
556
+ 47,
557
+ 123,
558
+ 111,
559
+ 114,
560
+ 103,
561
+ 97,
562
+ 110,
563
+ 105,
564
+ 122,
565
+ 97,
426
566
  116,
427
567
  105,
428
568
  111,
429
569
  110,
430
570
  95,
431
- 114,
571
+ 105,
572
+ 100,
573
+ 125,
574
+ 47,
575
+ 100,
576
+ 111,
577
+ 99,
578
+ 117,
579
+ 109,
580
+ 101,
581
+ 110,
582
+ 116,
583
+ 115,
584
+ 47,
585
+ 123,
586
+ 100,
587
+ 111,
588
+ 99,
432
589
  117,
590
+ 109,
591
+ 101,
433
592
  110,
593
+ 116,
434
594
  95,
435
595
  105,
436
596
  100,
437
597
  125,
438
598
  47,
599
+ 115,
600
+ 111,
601
+ 117,
439
602
  114,
603
+ 99,
440
604
  101,
441
- 116,
442
- 114,
443
- 121,
444
605
  ]),
445
606
  ],
446
607
  },
447
608
  },
448
609
  },
449
- getThread: {
450
- name: "GetThread",
451
- requestType: ingestion_pb_1.GetThreadRequest,
610
+ updateDocumentTags: {
611
+ name: "UpdateDocumentTags",
612
+ requestType: ingestion_pb_1.UpdateDocumentTagsRequest,
452
613
  requestStream: false,
453
- responseType: ingestion_pb_1.GetThreadResponse,
614
+ responseType: ingestion_pb_1.UpdateDocumentTagsResponse,
454
615
  responseStream: false,
455
616
  options: {
456
617
  _unknownFields: {
457
618
  578365826: [
458
619
  new Uint8Array([
459
- 47,
460
- 18,
461
- 45,
620
+ 59,
621
+ 58,
622
+ 1,
623
+ 42,
624
+ 50,
625
+ 54,
462
626
  47,
463
627
  118,
464
628
  49,
@@ -485,21 +649,97 @@ exports.IngestionServiceDefinition = {
485
649
  100,
486
650
  125,
487
651
  47,
652
+ 100,
653
+ 111,
654
+ 99,
655
+ 117,
656
+ 109,
657
+ 101,
658
+ 110,
488
659
  116,
489
- 104,
490
- 114,
660
+ 115,
661
+ 47,
662
+ 123,
663
+ 100,
664
+ 111,
665
+ 99,
666
+ 117,
667
+ 109,
491
668
  101,
492
- 97,
669
+ 110,
670
+ 116,
671
+ 95,
672
+ 105,
493
673
  100,
674
+ 125,
675
+ 47,
676
+ 116,
677
+ 97,
678
+ 103,
494
679
  115,
680
+ ]),
681
+ ],
682
+ },
683
+ },
684
+ },
685
+ deleteDocument: {
686
+ name: "DeleteDocument",
687
+ requestType: ingestion_pb_1.DeleteDocumentRequest,
688
+ requestStream: false,
689
+ responseType: ingestion_pb_1.DeleteDocumentResponse,
690
+ responseStream: false,
691
+ options: {
692
+ _unknownFields: {
693
+ 578365826: [
694
+ new Uint8Array([
695
+ 51,
696
+ 42,
697
+ 49,
698
+ 47,
699
+ 118,
700
+ 49,
701
+ 47,
702
+ 111,
703
+ 114,
704
+ 103,
495
705
  47,
496
706
  123,
497
- 116,
498
- 104,
707
+ 111,
499
708
  114,
500
- 101,
709
+ 103,
710
+ 97,
711
+ 110,
712
+ 105,
713
+ 122,
501
714
  97,
715
+ 116,
716
+ 105,
717
+ 111,
718
+ 110,
719
+ 95,
720
+ 105,
721
+ 100,
722
+ 125,
723
+ 47,
724
+ 100,
725
+ 111,
726
+ 99,
727
+ 117,
728
+ 109,
729
+ 101,
730
+ 110,
731
+ 116,
732
+ 115,
733
+ 47,
734
+ 123,
502
735
  100,
736
+ 111,
737
+ 99,
738
+ 117,
739
+ 109,
740
+ 101,
741
+ 110,
742
+ 116,
503
743
  95,
504
744
  105,
505
745
  100,
@@ -509,22 +749,22 @@ exports.IngestionServiceDefinition = {
509
749
  },
510
750
  },
511
751
  },
512
- editThread: {
513
- name: "EditThread",
514
- requestType: ingestion_pb_1.EditThreadRequest,
752
+ retryIngestion: {
753
+ name: "RetryIngestion",
754
+ requestType: ingestion_pb_1.RetryIngestionRequest,
515
755
  requestStream: false,
516
- responseType: ingestion_pb_1.EditThreadResponse,
756
+ responseType: ingestion_pb_1.RetryIngestionResponse,
517
757
  responseStream: false,
518
758
  options: {
519
759
  _unknownFields: {
520
760
  578365826: [
521
761
  new Uint8Array([
522
- 50,
762
+ 65,
523
763
  58,
524
764
  1,
525
765
  42,
526
- 50,
527
- 45,
766
+ 34,
767
+ 60,
528
768
  47,
529
769
  118,
530
770
  49,
@@ -551,6 +791,405 @@ exports.IngestionServiceDefinition = {
551
791
  100,
552
792
  125,
553
793
  47,
794
+ 105,
795
+ 110,
796
+ 103,
797
+ 101,
798
+ 115,
799
+ 116,
800
+ 105,
801
+ 111,
802
+ 110,
803
+ 47,
804
+ 123,
805
+ 105,
806
+ 110,
807
+ 103,
808
+ 101,
809
+ 115,
810
+ 116,
811
+ 105,
812
+ 111,
813
+ 110,
814
+ 95,
815
+ 114,
816
+ 117,
817
+ 110,
818
+ 95,
819
+ 105,
820
+ 100,
821
+ 125,
822
+ 47,
823
+ 114,
824
+ 101,
825
+ 116,
826
+ 114,
827
+ 121,
828
+ ]),
829
+ ],
830
+ },
831
+ },
832
+ },
833
+ getThread: {
834
+ name: "GetThread",
835
+ requestType: ingestion_pb_1.GetThreadRequest,
836
+ requestStream: false,
837
+ responseType: ingestion_pb_1.GetThreadResponse,
838
+ responseStream: false,
839
+ options: {
840
+ _unknownFields: {
841
+ 578365826: [
842
+ new Uint8Array([
843
+ 47,
844
+ 18,
845
+ 45,
846
+ 47,
847
+ 118,
848
+ 49,
849
+ 47,
850
+ 111,
851
+ 114,
852
+ 103,
853
+ 47,
854
+ 123,
855
+ 111,
856
+ 114,
857
+ 103,
858
+ 97,
859
+ 110,
860
+ 105,
861
+ 122,
862
+ 97,
863
+ 116,
864
+ 105,
865
+ 111,
866
+ 110,
867
+ 95,
868
+ 105,
869
+ 100,
870
+ 125,
871
+ 47,
872
+ 116,
873
+ 104,
874
+ 114,
875
+ 101,
876
+ 97,
877
+ 100,
878
+ 115,
879
+ 47,
880
+ 123,
881
+ 116,
882
+ 104,
883
+ 114,
884
+ 101,
885
+ 97,
886
+ 100,
887
+ 95,
888
+ 105,
889
+ 100,
890
+ 125,
891
+ ]),
892
+ ],
893
+ },
894
+ },
895
+ },
896
+ editThread: {
897
+ name: "EditThread",
898
+ requestType: ingestion_pb_1.EditThreadRequest,
899
+ requestStream: false,
900
+ responseType: ingestion_pb_1.EditThreadResponse,
901
+ responseStream: false,
902
+ options: {
903
+ _unknownFields: {
904
+ 578365826: [
905
+ new Uint8Array([
906
+ 50,
907
+ 58,
908
+ 1,
909
+ 42,
910
+ 50,
911
+ 45,
912
+ 47,
913
+ 118,
914
+ 49,
915
+ 47,
916
+ 111,
917
+ 114,
918
+ 103,
919
+ 47,
920
+ 123,
921
+ 111,
922
+ 114,
923
+ 103,
924
+ 97,
925
+ 110,
926
+ 105,
927
+ 122,
928
+ 97,
929
+ 116,
930
+ 105,
931
+ 111,
932
+ 110,
933
+ 95,
934
+ 105,
935
+ 100,
936
+ 125,
937
+ 47,
938
+ 116,
939
+ 104,
940
+ 114,
941
+ 101,
942
+ 97,
943
+ 100,
944
+ 115,
945
+ 47,
946
+ 123,
947
+ 116,
948
+ 104,
949
+ 114,
950
+ 101,
951
+ 97,
952
+ 100,
953
+ 95,
954
+ 105,
955
+ 100,
956
+ 125,
957
+ ]),
958
+ ],
959
+ },
960
+ },
961
+ },
962
+ createDocumentThread: {
963
+ name: "CreateDocumentThread",
964
+ requestType: ingestion_pb_1.CreateDocumentThreadRequest,
965
+ requestStream: false,
966
+ responseType: ingestion_pb_1.CreateDocumentThreadResponse,
967
+ responseStream: false,
968
+ options: {
969
+ _unknownFields: {
970
+ 578365826: [
971
+ new Uint8Array([
972
+ 62,
973
+ 58,
974
+ 1,
975
+ 42,
976
+ 34,
977
+ 57,
978
+ 47,
979
+ 118,
980
+ 49,
981
+ 47,
982
+ 111,
983
+ 114,
984
+ 103,
985
+ 47,
986
+ 123,
987
+ 111,
988
+ 114,
989
+ 103,
990
+ 97,
991
+ 110,
992
+ 105,
993
+ 122,
994
+ 97,
995
+ 116,
996
+ 105,
997
+ 111,
998
+ 110,
999
+ 95,
1000
+ 105,
1001
+ 100,
1002
+ 125,
1003
+ 47,
1004
+ 100,
1005
+ 111,
1006
+ 99,
1007
+ 117,
1008
+ 109,
1009
+ 101,
1010
+ 110,
1011
+ 116,
1012
+ 115,
1013
+ 47,
1014
+ 123,
1015
+ 100,
1016
+ 111,
1017
+ 99,
1018
+ 117,
1019
+ 109,
1020
+ 101,
1021
+ 110,
1022
+ 116,
1023
+ 95,
1024
+ 105,
1025
+ 100,
1026
+ 125,
1027
+ 47,
1028
+ 116,
1029
+ 104,
1030
+ 114,
1031
+ 101,
1032
+ 97,
1033
+ 100,
1034
+ 115,
1035
+ ]),
1036
+ ],
1037
+ },
1038
+ },
1039
+ },
1040
+ updateDocumentThread: {
1041
+ name: "UpdateDocumentThread",
1042
+ requestType: ingestion_pb_1.UpdateDocumentThreadRequest,
1043
+ requestStream: false,
1044
+ responseType: ingestion_pb_1.UpdateDocumentThreadResponse,
1045
+ responseStream: false,
1046
+ options: {
1047
+ _unknownFields: {
1048
+ 578365826: [
1049
+ new Uint8Array([
1050
+ 74,
1051
+ 58,
1052
+ 1,
1053
+ 42,
1054
+ 50,
1055
+ 69,
1056
+ 47,
1057
+ 118,
1058
+ 49,
1059
+ 47,
1060
+ 111,
1061
+ 114,
1062
+ 103,
1063
+ 47,
1064
+ 123,
1065
+ 111,
1066
+ 114,
1067
+ 103,
1068
+ 97,
1069
+ 110,
1070
+ 105,
1071
+ 122,
1072
+ 97,
1073
+ 116,
1074
+ 105,
1075
+ 111,
1076
+ 110,
1077
+ 95,
1078
+ 105,
1079
+ 100,
1080
+ 125,
1081
+ 47,
1082
+ 100,
1083
+ 111,
1084
+ 99,
1085
+ 117,
1086
+ 109,
1087
+ 101,
1088
+ 110,
1089
+ 116,
1090
+ 115,
1091
+ 47,
1092
+ 123,
1093
+ 100,
1094
+ 111,
1095
+ 99,
1096
+ 117,
1097
+ 109,
1098
+ 101,
1099
+ 110,
1100
+ 116,
1101
+ 95,
1102
+ 105,
1103
+ 100,
1104
+ 125,
1105
+ 47,
1106
+ 116,
1107
+ 104,
1108
+ 114,
1109
+ 101,
1110
+ 97,
1111
+ 100,
1112
+ 115,
1113
+ 47,
1114
+ 123,
1115
+ 116,
1116
+ 104,
1117
+ 114,
1118
+ 101,
1119
+ 97,
1120
+ 100,
1121
+ 95,
1122
+ 105,
1123
+ 100,
1124
+ 125,
1125
+ ]),
1126
+ ],
1127
+ },
1128
+ },
1129
+ },
1130
+ deleteDocumentThread: {
1131
+ name: "DeleteDocumentThread",
1132
+ requestType: ingestion_pb_1.DeleteDocumentThreadRequest,
1133
+ requestStream: false,
1134
+ responseType: ingestion_pb_1.DeleteDocumentThreadResponse,
1135
+ responseStream: false,
1136
+ options: {
1137
+ _unknownFields: {
1138
+ 578365826: [
1139
+ new Uint8Array([
1140
+ 71,
1141
+ 42,
1142
+ 69,
1143
+ 47,
1144
+ 118,
1145
+ 49,
1146
+ 47,
1147
+ 111,
1148
+ 114,
1149
+ 103,
1150
+ 47,
1151
+ 123,
1152
+ 111,
1153
+ 114,
1154
+ 103,
1155
+ 97,
1156
+ 110,
1157
+ 105,
1158
+ 122,
1159
+ 97,
1160
+ 116,
1161
+ 105,
1162
+ 111,
1163
+ 110,
1164
+ 95,
1165
+ 105,
1166
+ 100,
1167
+ 125,
1168
+ 47,
1169
+ 100,
1170
+ 111,
1171
+ 99,
1172
+ 117,
1173
+ 109,
1174
+ 101,
1175
+ 110,
1176
+ 116,
1177
+ 115,
1178
+ 47,
1179
+ 123,
1180
+ 100,
1181
+ 111,
1182
+ 99,
1183
+ 117,
1184
+ 109,
1185
+ 101,
1186
+ 110,
1187
+ 116,
1188
+ 95,
1189
+ 105,
1190
+ 100,
1191
+ 125,
1192
+ 47,
554
1193
  116,
555
1194
  104,
556
1195
  114,