@miradorlabs/web-grpc 3.15.0 → 3.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "3.15.0",
3
+ "version": "3.16.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -43,8 +43,6 @@ export interface TermaCapture {
43
43
  excludePrompts: boolean;
44
44
  /** tool inputs and results are redacted */
45
45
  excludeToolContent: boolean;
46
- /** file globs whose content is never sent */
47
- excludePaths: string[];
48
46
  }
49
47
 
50
48
  export interface GetProjectPolicyRequest {
@@ -375,7 +373,7 @@ export const TermaPerRepositoryCoverage: MessageFns<TermaPerRepositoryCoverage>
375
373
  };
376
374
 
377
375
  function createBaseTermaCapture(): TermaCapture {
378
- return { excludePrompts: false, excludeToolContent: false, excludePaths: [] };
376
+ return { excludePrompts: false, excludeToolContent: false };
379
377
  }
380
378
 
381
379
  export const TermaCapture: MessageFns<TermaCapture> = {
@@ -386,9 +384,6 @@ export const TermaCapture: MessageFns<TermaCapture> = {
386
384
  if (message.excludeToolContent !== false) {
387
385
  writer.uint32(16).bool(message.excludeToolContent);
388
386
  }
389
- for (const v of message.excludePaths) {
390
- writer.uint32(26).string(v!);
391
- }
392
387
  return writer;
393
388
  },
394
389
 
@@ -421,14 +416,6 @@ export const TermaCapture: MessageFns<TermaCapture> = {
421
416
  message.excludeToolContent = reader.bool();
422
417
  continue;
423
418
  }
424
- case 3: {
425
- if (tag !== 26) {
426
- break;
427
- }
428
-
429
- message.excludePaths.push(reader.string());
430
- continue;
431
- }
432
419
  }
433
420
  if ((tag & 7) === 4 || tag === 0) {
434
421
  break;
@@ -453,11 +440,6 @@ export const TermaCapture: MessageFns<TermaCapture> = {
453
440
  : isSet(object.exclude_tool_content)
454
441
  ? globalThis.Boolean(object.exclude_tool_content)
455
442
  : false,
456
- excludePaths: globalThis.Array.isArray(object?.excludePaths)
457
- ? object.excludePaths.map((e: any) => globalThis.String(e))
458
- : globalThis.Array.isArray(object?.exclude_paths)
459
- ? object.exclude_paths.map((e: any) => globalThis.String(e))
460
- : [],
461
443
  };
462
444
  },
463
445
 
@@ -469,9 +451,6 @@ export const TermaCapture: MessageFns<TermaCapture> = {
469
451
  if (message.excludeToolContent !== false) {
470
452
  obj.excludeToolContent = message.excludeToolContent;
471
453
  }
472
- if (message.excludePaths?.length) {
473
- obj.excludePaths = message.excludePaths;
474
- }
475
454
  return obj;
476
455
  },
477
456
 
@@ -482,7 +461,6 @@ export const TermaCapture: MessageFns<TermaCapture> = {
482
461
  const message = createBaseTermaCapture();
483
462
  message.excludePrompts = object.excludePrompts ?? false;
484
463
  message.excludeToolContent = object.excludeToolContent ?? false;
485
- message.excludePaths = object.excludePaths?.map((e) => e) || [];
486
464
  return message;
487
465
  },
488
466
  };
@@ -127,7 +127,7 @@ if (goog.DEBUG && !COMPILED) {
127
127
  * @constructor
128
128
  */
129
129
  proto.gateway.web.v1.TermaCapture = function(opt_data) {
130
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.TermaCapture.repeatedFields_, null);
130
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
131
  };
132
132
  goog.inherits(proto.gateway.web.v1.TermaCapture, jspb.Message);
133
133
  if (goog.DEBUG && !COMPILED) {
@@ -879,13 +879,6 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.serializeBinaryToWriter = functi
879
879
 
880
880
 
881
881
 
882
- /**
883
- * List of repeated fields within this message type.
884
- * @private {!Array<number>}
885
- * @const
886
- */
887
- proto.gateway.web.v1.TermaCapture.repeatedFields_ = [3];
888
-
889
882
 
890
883
 
891
884
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -918,8 +911,7 @@ proto.gateway.web.v1.TermaCapture.prototype.toObject = function(opt_includeInsta
918
911
  proto.gateway.web.v1.TermaCapture.toObject = function(includeInstance, msg) {
919
912
  var f, obj = {
920
913
  excludePrompts: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
921
- excludeToolContent: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
922
- excludePathsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
914
+ excludeToolContent: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
923
915
  };
924
916
 
925
917
  if (includeInstance) {
@@ -964,10 +956,6 @@ proto.gateway.web.v1.TermaCapture.deserializeBinaryFromReader = function(msg, re
964
956
  var value = /** @type {boolean} */ (reader.readBool());
965
957
  msg.setExcludeToolContent(value);
966
958
  break;
967
- case 3:
968
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
969
- msg.addExcludePaths(value);
970
- break;
971
959
  default:
972
960
  reader.skipField();
973
961
  break;
@@ -1011,13 +999,6 @@ proto.gateway.web.v1.TermaCapture.serializeBinaryToWriter = function(message, wr
1011
999
  f
1012
1000
  );
1013
1001
  }
1014
- f = message.getExcludePathsList();
1015
- if (f.length > 0) {
1016
- writer.writeRepeatedString(
1017
- 3,
1018
- f
1019
- );
1020
- }
1021
1002
  };
1022
1003
 
1023
1004
 
@@ -1057,43 +1038,6 @@ proto.gateway.web.v1.TermaCapture.prototype.setExcludeToolContent = function(val
1057
1038
  };
1058
1039
 
1059
1040
 
1060
- /**
1061
- * repeated string exclude_paths = 3;
1062
- * @return {!Array<string>}
1063
- */
1064
- proto.gateway.web.v1.TermaCapture.prototype.getExcludePathsList = function() {
1065
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1066
- };
1067
-
1068
-
1069
- /**
1070
- * @param {!Array<string>} value
1071
- * @return {!proto.gateway.web.v1.TermaCapture} returns this
1072
- */
1073
- proto.gateway.web.v1.TermaCapture.prototype.setExcludePathsList = function(value) {
1074
- return jspb.Message.setField(this, 3, value || []);
1075
- };
1076
-
1077
-
1078
- /**
1079
- * @param {string} value
1080
- * @param {number=} opt_index
1081
- * @return {!proto.gateway.web.v1.TermaCapture} returns this
1082
- */
1083
- proto.gateway.web.v1.TermaCapture.prototype.addExcludePaths = function(value, opt_index) {
1084
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1085
- };
1086
-
1087
-
1088
- /**
1089
- * Clears the list making it empty but non-null.
1090
- * @return {!proto.gateway.web.v1.TermaCapture} returns this
1091
- */
1092
- proto.gateway.web.v1.TermaCapture.prototype.clearExcludePathsList = function() {
1093
- return this.setExcludePathsList([]);
1094
- };
1095
-
1096
-
1097
1041
 
1098
1042
 
1099
1043