@superblocksteam/sabs-types-js 0.717.0 → 0.718.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": "@superblocksteam/sabs-types-js",
3
- "version": "v0.717.0",
3
+ "version": "v0.718.0",
4
4
  "description": "Superblocks Application Build System Types for JavaScript",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,6 +25,10 @@ export class ScanRequest extends jspb.Message {
25
25
  setPolicyGate(value?: PolicyGateContext): ScanRequest;
26
26
  getArtifactReadToken(): string;
27
27
  setArtifactReadToken(value: string): ScanRequest;
28
+ clearSemgrepRulesetsList(): void;
29
+ getSemgrepRulesetsList(): Array<string>;
30
+ setSemgrepRulesetsList(value: Array<string>): ScanRequest;
31
+ addSemgrepRulesets(value: string, index?: number): string;
28
32
 
29
33
  serializeBinary(): Uint8Array;
30
34
  toObject(includeInstance?: boolean): ScanRequest.AsObject;
@@ -43,6 +47,7 @@ export namespace ScanRequest {
43
47
  scanKey: string,
44
48
  policyGate?: PolicyGateContext.AsObject,
45
49
  artifactReadToken: string,
50
+ semgrepRulesetsList: Array<string>,
46
51
  }
47
52
  }
48
53
 
@@ -45,7 +45,7 @@ goog.exportSymbol('proto.scan.v1.ScanTerminateResponse', null, global);
45
45
  * @constructor
46
46
  */
47
47
  proto.scan.v1.ScanRequest = function(opt_data) {
48
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
48
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.scan.v1.ScanRequest.repeatedFields_, null);
49
49
  };
50
50
  goog.inherits(proto.scan.v1.ScanRequest, jspb.Message);
51
51
  if (goog.DEBUG && !COMPILED) {
@@ -287,6 +287,13 @@ if (goog.DEBUG && !COMPILED) {
287
287
  proto.scan.v1.ScanTerminateResponse.displayName = 'proto.scan.v1.ScanTerminateResponse';
288
288
  }
289
289
 
290
+ /**
291
+ * List of repeated fields within this message type.
292
+ * @private {!Array<number>}
293
+ * @const
294
+ */
295
+ proto.scan.v1.ScanRequest.repeatedFields_ = [6];
296
+
290
297
 
291
298
 
292
299
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -322,7 +329,8 @@ directoryHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
322
329
  applicationMetadata: (f = msg.getApplicationMetadata()) && proto.scan.v1.ScanApplicationMetadata.toObject(includeInstance, f),
323
330
  scanKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
324
331
  policyGate: (f = msg.getPolicyGate()) && proto.scan.v1.PolicyGateContext.toObject(includeInstance, f),
325
- artifactReadToken: jspb.Message.getFieldWithDefault(msg, 5, "")
332
+ artifactReadToken: jspb.Message.getFieldWithDefault(msg, 5, ""),
333
+ semgrepRulesetsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
326
334
  };
327
335
 
328
336
  if (includeInstance) {
@@ -381,6 +389,10 @@ proto.scan.v1.ScanRequest.deserializeBinaryFromReader = function(msg, reader) {
381
389
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
382
390
  msg.setArtifactReadToken(value);
383
391
  break;
392
+ case 6:
393
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
394
+ msg.addSemgrepRulesets(value);
395
+ break;
384
396
  default:
385
397
  reader.skipField();
386
398
  break;
@@ -447,6 +459,13 @@ proto.scan.v1.ScanRequest.serializeBinaryToWriter = function(message, writer) {
447
459
  f
448
460
  );
449
461
  }
462
+ f = message.getSemgrepRulesetsList();
463
+ if (f.length > 0) {
464
+ writer.writeRepeatedString(
465
+ 6,
466
+ f
467
+ );
468
+ }
450
469
  };
451
470
 
452
471
 
@@ -578,6 +597,43 @@ proto.scan.v1.ScanRequest.prototype.setArtifactReadToken = function(value) {
578
597
  };
579
598
 
580
599
 
600
+ /**
601
+ * repeated string semgrep_rulesets = 6;
602
+ * @return {!Array<string>}
603
+ */
604
+ proto.scan.v1.ScanRequest.prototype.getSemgrepRulesetsList = function() {
605
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
606
+ };
607
+
608
+
609
+ /**
610
+ * @param {!Array<string>} value
611
+ * @return {!proto.scan.v1.ScanRequest} returns this
612
+ */
613
+ proto.scan.v1.ScanRequest.prototype.setSemgrepRulesetsList = function(value) {
614
+ return jspb.Message.setField(this, 6, value || []);
615
+ };
616
+
617
+
618
+ /**
619
+ * @param {string} value
620
+ * @param {number=} opt_index
621
+ * @return {!proto.scan.v1.ScanRequest} returns this
622
+ */
623
+ proto.scan.v1.ScanRequest.prototype.addSemgrepRulesets = function(value, opt_index) {
624
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
625
+ };
626
+
627
+
628
+ /**
629
+ * Clears the list making it empty but non-null.
630
+ * @return {!proto.scan.v1.ScanRequest} returns this
631
+ */
632
+ proto.scan.v1.ScanRequest.prototype.clearSemgrepRulesetsList = function() {
633
+ return this.setSemgrepRulesetsList([]);
634
+ };
635
+
636
+
581
637
 
582
638
 
583
639