@miradorlabs/web-grpc 3.12.0 → 3.14.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.
Files changed (55) hide show
  1. package/google/api/field_behavior.ts +145 -0
  2. package/google/api/field_behavior_grpc_pb.js +1 -0
  3. package/google/api/field_behavior_pb.js +62 -0
  4. package/google/protobuf/descriptor.ts +5211 -0
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value_pb.js +2 -0
  7. package/proto/gateway/web/v1/account_gateway.ts +4 -4
  8. package/proto/gateway/web/v1/account_gateway_grpc_pb.js +1 -0
  9. package/proto/gateway/web/v1/account_gateway_pb.js +2 -0
  10. package/proto/gateway/web/v1/admin_gateway.ts +5 -8
  11. package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +1 -0
  12. package/proto/gateway/web/v1/admin_gateway_pb.js +2 -0
  13. package/proto/gateway/web/v1/ai_gateway.ts +390 -50
  14. package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +1 -0
  15. package/proto/gateway/web/v1/ai_gateway_pb.js +749 -38
  16. package/proto/gateway/web/v1/beta_gateway_grpc_pb.js +1 -0
  17. package/proto/gateway/web/v1/beta_gateway_pb.js +2 -0
  18. package/proto/gateway/web/v1/chain_gateway_grpc_pb.js +1 -0
  19. package/proto/gateway/web/v1/chain_gateway_pb.js +2 -0
  20. package/proto/gateway/web/v1/derived_metric_gateway_grpc_pb.js +1 -0
  21. package/proto/gateway/web/v1/derived_metric_gateway_pb.js +2 -0
  22. package/proto/gateway/web/v1/github_connector.ts +2 -0
  23. package/proto/gateway/web/v1/github_connector_grpc_pb.js +1 -0
  24. package/proto/gateway/web/v1/github_connector_pb.js +2 -0
  25. package/proto/gateway/web/v1/integration_gateway.ts +89 -14
  26. package/proto/gateway/web/v1/integration_gateway_grpc_pb.js +1 -0
  27. package/proto/gateway/web/v1/integration_gateway_pb.js +188 -13
  28. package/proto/gateway/web/v1/log_gateway.ts +13 -9
  29. package/proto/gateway/web/v1/log_gateway_grpc_pb.js +1 -0
  30. package/proto/gateway/web/v1/log_gateway_pb.js +8 -6
  31. package/proto/gateway/web/v1/market_gateway_grpc_pb.js +1 -0
  32. package/proto/gateway/web/v1/market_gateway_pb.js +2 -0
  33. package/proto/gateway/web/v1/metric_gateway_grpc_pb.js +1 -0
  34. package/proto/gateway/web/v1/metric_gateway_pb.js +2 -0
  35. package/proto/gateway/web/v1/oauth_gateway_grpc_pb.js +1 -0
  36. package/proto/gateway/web/v1/oauth_gateway_pb.js +2 -0
  37. package/proto/gateway/web/v1/plan_gateway_grpc_pb.js +1 -0
  38. package/proto/gateway/web/v1/plan_gateway_pb.js +2 -0
  39. package/proto/gateway/web/v1/policy_gateway.ts +2 -5
  40. package/proto/gateway/web/v1/policy_gateway_grpc_pb.js +1 -0
  41. package/proto/gateway/web/v1/policy_gateway_pb.js +2 -0
  42. package/proto/gateway/web/v1/reference_gateway.ts +120 -41
  43. package/proto/gateway/web/v1/reference_gateway_grpc_pb.js +1 -0
  44. package/proto/gateway/web/v1/reference_gateway_pb.js +229 -54
  45. package/proto/gateway/web/v1/rule_gateway.ts +28 -68
  46. package/proto/gateway/web/v1/rule_gateway_grpc_pb.js +1 -0
  47. package/proto/gateway/web/v1/rule_gateway_pb.js +20 -204
  48. package/proto/gateway/web/v1/slo_gateway_grpc_pb.js +1 -0
  49. package/proto/gateway/web/v1/slo_gateway_pb.js +2 -0
  50. package/proto/gateway/web/v1/trace_gateway.ts +158 -307
  51. package/proto/gateway/web/v1/trace_gateway_grpc_pb.js +1 -0
  52. package/proto/gateway/web/v1/trace_gateway_pb.js +168 -511
  53. package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -3
  54. package/proto/gateway/web/v1/trace_measure_gateway_grpc_pb.js +1 -0
  55. package/proto/gateway/web/v1/trace_measure_gateway_pb.js +2 -0
@@ -15,11 +15,14 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var global = globalThis;
17
17
 
18
+ var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
19
+ goog.object.extend(proto, google_api_field_behavior_pb);
18
20
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
21
  goog.object.extend(proto, google_protobuf_timestamp_pb);
20
22
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
21
23
  goog.object.extend(proto, proto_gateway_common_v1_status_pb);
22
24
  goog.exportSymbol('proto.gateway.web.v1.AIPrincipal', null, global);
25
+ goog.exportSymbol('proto.gateway.web.v1.AIPrincipalFilter', null, global);
23
26
  goog.exportSymbol('proto.gateway.web.v1.AIPrincipalKind', null, global);
24
27
  goog.exportSymbol('proto.gateway.web.v1.AIReferenceName', null, global);
25
28
  goog.exportSymbol('proto.gateway.web.v1.AIReferenceNameOrigin', null, global);
@@ -57,6 +60,27 @@ if (goog.DEBUG && !COMPILED) {
57
60
  */
58
61
  proto.gateway.web.v1.ListPrincipalsRequest.displayName = 'proto.gateway.web.v1.ListPrincipalsRequest';
59
62
  }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.gateway.web.v1.AIPrincipalFilter = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
75
+ };
76
+ goog.inherits(proto.gateway.web.v1.AIPrincipalFilter, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.gateway.web.v1.AIPrincipalFilter.displayName = 'proto.gateway.web.v1.AIPrincipalFilter';
83
+ }
60
84
  /**
61
85
  * Generated by JsPbCodeGenerator.
62
86
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -364,10 +388,9 @@ proto.gateway.web.v1.ListPrincipalsRequest.toObject = function(includeInstance,
364
388
  var f, obj = {
365
389
  organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
366
390
  projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
367
- kind: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
368
- sourceSystem: jspb.Message.getFieldWithDefault(msg, 4, ""),
369
- pageSize: jspb.Message.getFieldWithDefault(msg, 5, 0),
370
- pageToken: jspb.Message.getFieldWithDefault(msg, 6, "")
391
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIPrincipalFilter.toObject(includeInstance, f),
392
+ pageSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
393
+ pageToken: jspb.Message.getFieldWithDefault(msg, 5, "")
371
394
  };
372
395
 
373
396
  if (includeInstance) {
@@ -413,18 +436,15 @@ proto.gateway.web.v1.ListPrincipalsRequest.deserializeBinaryFromReader = functio
413
436
  msg.setProjectId(value);
414
437
  break;
415
438
  case 3:
416
- var value = /** @type {!proto.gateway.web.v1.AIPrincipalKind} */ (reader.readEnum());
417
- msg.setKind(value);
439
+ var value = new proto.gateway.web.v1.AIPrincipalFilter;
440
+ reader.readMessage(value,proto.gateway.web.v1.AIPrincipalFilter.deserializeBinaryFromReader);
441
+ msg.setFilter(value);
418
442
  break;
419
443
  case 4:
420
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
421
- msg.setSourceSystem(value);
422
- break;
423
- case 5:
424
444
  var value = /** @type {number} */ (reader.readInt32());
425
445
  msg.setPageSize(value);
426
446
  break;
427
- case 6:
447
+ case 5:
428
448
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
429
449
  msg.setPageToken(value);
430
450
  break;
@@ -471,31 +491,25 @@ proto.gateway.web.v1.ListPrincipalsRequest.serializeBinaryToWriter = function(me
471
491
  f
472
492
  );
473
493
  }
474
- f = /** @type {!proto.gateway.web.v1.AIPrincipalKind} */ (jspb.Message.getField(message, 3));
494
+ f = message.getFilter();
475
495
  if (f != null) {
476
- writer.writeEnum(
496
+ writer.writeMessage(
477
497
  3,
478
- f
479
- );
480
- }
481
- f = message.getSourceSystem();
482
- if (f.length > 0) {
483
- writer.writeString(
484
- 4,
485
- f
498
+ f,
499
+ proto.gateway.web.v1.AIPrincipalFilter.serializeBinaryToWriter
486
500
  );
487
501
  }
488
502
  f = message.getPageSize();
489
503
  if (f !== 0) {
490
504
  writer.writeInt32(
491
- 5,
505
+ 4,
492
506
  f
493
507
  );
494
508
  }
495
509
  f = message.getPageToken();
496
510
  if (f.length > 0) {
497
511
  writer.writeString(
498
- 6,
512
+ 5,
499
513
  f
500
514
  );
501
515
  }
@@ -539,29 +553,30 @@ proto.gateway.web.v1.ListPrincipalsRequest.prototype.setProjectId = function(val
539
553
 
540
554
 
541
555
  /**
542
- * optional AIPrincipalKind kind = 3;
543
- * @return {!proto.gateway.web.v1.AIPrincipalKind}
556
+ * optional AIPrincipalFilter filter = 3;
557
+ * @return {?proto.gateway.web.v1.AIPrincipalFilter}
544
558
  */
545
- proto.gateway.web.v1.ListPrincipalsRequest.prototype.getKind = function() {
546
- return /** @type {!proto.gateway.web.v1.AIPrincipalKind} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
559
+ proto.gateway.web.v1.ListPrincipalsRequest.prototype.getFilter = function() {
560
+ return /** @type{?proto.gateway.web.v1.AIPrincipalFilter} */ (
561
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIPrincipalFilter, 3));
547
562
  };
548
563
 
549
564
 
550
565
  /**
551
- * @param {!proto.gateway.web.v1.AIPrincipalKind} value
566
+ * @param {?proto.gateway.web.v1.AIPrincipalFilter|undefined} value
552
567
  * @return {!proto.gateway.web.v1.ListPrincipalsRequest} returns this
553
- */
554
- proto.gateway.web.v1.ListPrincipalsRequest.prototype.setKind = function(value) {
555
- return jspb.Message.setField(this, 3, value);
568
+ */
569
+ proto.gateway.web.v1.ListPrincipalsRequest.prototype.setFilter = function(value) {
570
+ return jspb.Message.setWrapperField(this, 3, value);
556
571
  };
557
572
 
558
573
 
559
574
  /**
560
- * Clears the field making it undefined.
575
+ * Clears the message field making it undefined.
561
576
  * @return {!proto.gateway.web.v1.ListPrincipalsRequest} returns this
562
577
  */
563
- proto.gateway.web.v1.ListPrincipalsRequest.prototype.clearKind = function() {
564
- return jspb.Message.setField(this, 3, undefined);
578
+ proto.gateway.web.v1.ListPrincipalsRequest.prototype.clearFilter = function() {
579
+ return this.setFilter(undefined);
565
580
  };
566
581
 
567
582
 
@@ -569,17 +584,35 @@ proto.gateway.web.v1.ListPrincipalsRequest.prototype.clearKind = function() {
569
584
  * Returns whether this field is set.
570
585
  * @return {boolean}
571
586
  */
572
- proto.gateway.web.v1.ListPrincipalsRequest.prototype.hasKind = function() {
587
+ proto.gateway.web.v1.ListPrincipalsRequest.prototype.hasFilter = function() {
573
588
  return jspb.Message.getField(this, 3) != null;
574
589
  };
575
590
 
576
591
 
577
592
  /**
578
- * optional string source_system = 4;
593
+ * optional int32 page_size = 4;
594
+ * @return {number}
595
+ */
596
+ proto.gateway.web.v1.ListPrincipalsRequest.prototype.getPageSize = function() {
597
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
598
+ };
599
+
600
+
601
+ /**
602
+ * @param {number} value
603
+ * @return {!proto.gateway.web.v1.ListPrincipalsRequest} returns this
604
+ */
605
+ proto.gateway.web.v1.ListPrincipalsRequest.prototype.setPageSize = function(value) {
606
+ return jspb.Message.setProto3IntField(this, 4, value);
607
+ };
608
+
609
+
610
+ /**
611
+ * optional string page_token = 5;
579
612
  * @return {string}
580
613
  */
581
- proto.gateway.web.v1.ListPrincipalsRequest.prototype.getSourceSystem = function() {
582
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
614
+ proto.gateway.web.v1.ListPrincipalsRequest.prototype.getPageToken = function() {
615
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
583
616
  };
584
617
 
585
618
 
@@ -587,44 +620,186 @@ proto.gateway.web.v1.ListPrincipalsRequest.prototype.getSourceSystem = function(
587
620
  * @param {string} value
588
621
  * @return {!proto.gateway.web.v1.ListPrincipalsRequest} returns this
589
622
  */
590
- proto.gateway.web.v1.ListPrincipalsRequest.prototype.setSourceSystem = function(value) {
591
- return jspb.Message.setProto3StringField(this, 4, value);
623
+ proto.gateway.web.v1.ListPrincipalsRequest.prototype.setPageToken = function(value) {
624
+ return jspb.Message.setProto3StringField(this, 5, value);
592
625
  };
593
626
 
594
627
 
628
+
629
+
630
+
631
+ if (jspb.Message.GENERATE_TO_OBJECT) {
595
632
  /**
596
- * optional int32 page_size = 5;
597
- * @return {number}
633
+ * Creates an object representation of this proto.
634
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
635
+ * Optional fields that are not set will be set to undefined.
636
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
637
+ * For the list of reserved names please see:
638
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
639
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
640
+ * JSPB instance for transitional soy proto support:
641
+ * http://goto/soy-param-migration
642
+ * @return {!Object}
598
643
  */
599
- proto.gateway.web.v1.ListPrincipalsRequest.prototype.getPageSize = function() {
600
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
644
+ proto.gateway.web.v1.AIPrincipalFilter.prototype.toObject = function(opt_includeInstance) {
645
+ return proto.gateway.web.v1.AIPrincipalFilter.toObject(opt_includeInstance, this);
601
646
  };
602
647
 
603
648
 
604
649
  /**
605
- * @param {number} value
606
- * @return {!proto.gateway.web.v1.ListPrincipalsRequest} returns this
650
+ * Static version of the {@see toObject} method.
651
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
652
+ * the JSPB instance for transitional soy proto support:
653
+ * http://goto/soy-param-migration
654
+ * @param {!proto.gateway.web.v1.AIPrincipalFilter} msg The msg instance to transform.
655
+ * @return {!Object}
656
+ * @suppress {unusedLocalVariables} f is only used for nested messages
607
657
  */
608
- proto.gateway.web.v1.ListPrincipalsRequest.prototype.setPageSize = function(value) {
609
- return jspb.Message.setProto3IntField(this, 5, value);
658
+ proto.gateway.web.v1.AIPrincipalFilter.toObject = function(includeInstance, msg) {
659
+ var f, obj = {
660
+ kind: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
661
+ sourceSystem: jspb.Message.getFieldWithDefault(msg, 2, "")
662
+ };
663
+
664
+ if (includeInstance) {
665
+ obj.$jspbMessageInstance = msg;
666
+ }
667
+ return obj;
668
+ };
669
+ }
670
+
671
+
672
+ /**
673
+ * Deserializes binary data (in protobuf wire format).
674
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
675
+ * @return {!proto.gateway.web.v1.AIPrincipalFilter}
676
+ */
677
+ proto.gateway.web.v1.AIPrincipalFilter.deserializeBinary = function(bytes) {
678
+ var reader = new jspb.BinaryReader(bytes);
679
+ var msg = new proto.gateway.web.v1.AIPrincipalFilter;
680
+ return proto.gateway.web.v1.AIPrincipalFilter.deserializeBinaryFromReader(msg, reader);
681
+ };
682
+
683
+
684
+ /**
685
+ * Deserializes binary data (in protobuf wire format) from the
686
+ * given reader into the given message object.
687
+ * @param {!proto.gateway.web.v1.AIPrincipalFilter} msg The message object to deserialize into.
688
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
689
+ * @return {!proto.gateway.web.v1.AIPrincipalFilter}
690
+ */
691
+ proto.gateway.web.v1.AIPrincipalFilter.deserializeBinaryFromReader = function(msg, reader) {
692
+ while (reader.nextField()) {
693
+ if (reader.isEndGroup()) {
694
+ break;
695
+ }
696
+ var field = reader.getFieldNumber();
697
+ switch (field) {
698
+ case 1:
699
+ var value = /** @type {!proto.gateway.web.v1.AIPrincipalKind} */ (reader.readEnum());
700
+ msg.setKind(value);
701
+ break;
702
+ case 2:
703
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
704
+ msg.setSourceSystem(value);
705
+ break;
706
+ default:
707
+ reader.skipField();
708
+ break;
709
+ }
710
+ }
711
+ return msg;
712
+ };
713
+
714
+
715
+ /**
716
+ * Serializes the message to binary data (in protobuf wire format).
717
+ * @return {!Uint8Array}
718
+ */
719
+ proto.gateway.web.v1.AIPrincipalFilter.prototype.serializeBinary = function() {
720
+ var writer = new jspb.BinaryWriter();
721
+ proto.gateway.web.v1.AIPrincipalFilter.serializeBinaryToWriter(this, writer);
722
+ return writer.getResultBuffer();
723
+ };
724
+
725
+
726
+ /**
727
+ * Serializes the given message to binary data (in protobuf wire
728
+ * format), writing to the given BinaryWriter.
729
+ * @param {!proto.gateway.web.v1.AIPrincipalFilter} message
730
+ * @param {!jspb.BinaryWriter} writer
731
+ * @suppress {unusedLocalVariables} f is only used for nested messages
732
+ */
733
+ proto.gateway.web.v1.AIPrincipalFilter.serializeBinaryToWriter = function(message, writer) {
734
+ var f = undefined;
735
+ f = /** @type {!proto.gateway.web.v1.AIPrincipalKind} */ (jspb.Message.getField(message, 1));
736
+ if (f != null) {
737
+ writer.writeEnum(
738
+ 1,
739
+ f
740
+ );
741
+ }
742
+ f = message.getSourceSystem();
743
+ if (f.length > 0) {
744
+ writer.writeString(
745
+ 2,
746
+ f
747
+ );
748
+ }
749
+ };
750
+
751
+
752
+ /**
753
+ * optional AIPrincipalKind kind = 1;
754
+ * @return {!proto.gateway.web.v1.AIPrincipalKind}
755
+ */
756
+ proto.gateway.web.v1.AIPrincipalFilter.prototype.getKind = function() {
757
+ return /** @type {!proto.gateway.web.v1.AIPrincipalKind} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
758
+ };
759
+
760
+
761
+ /**
762
+ * @param {!proto.gateway.web.v1.AIPrincipalKind} value
763
+ * @return {!proto.gateway.web.v1.AIPrincipalFilter} returns this
764
+ */
765
+ proto.gateway.web.v1.AIPrincipalFilter.prototype.setKind = function(value) {
766
+ return jspb.Message.setField(this, 1, value);
767
+ };
768
+
769
+
770
+ /**
771
+ * Clears the field making it undefined.
772
+ * @return {!proto.gateway.web.v1.AIPrincipalFilter} returns this
773
+ */
774
+ proto.gateway.web.v1.AIPrincipalFilter.prototype.clearKind = function() {
775
+ return jspb.Message.setField(this, 1, undefined);
776
+ };
777
+
778
+
779
+ /**
780
+ * Returns whether this field is set.
781
+ * @return {boolean}
782
+ */
783
+ proto.gateway.web.v1.AIPrincipalFilter.prototype.hasKind = function() {
784
+ return jspb.Message.getField(this, 1) != null;
610
785
  };
611
786
 
612
787
 
613
788
  /**
614
- * optional string page_token = 6;
789
+ * optional string source_system = 2;
615
790
  * @return {string}
616
791
  */
617
- proto.gateway.web.v1.ListPrincipalsRequest.prototype.getPageToken = function() {
618
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
792
+ proto.gateway.web.v1.AIPrincipalFilter.prototype.getSourceSystem = function() {
793
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
619
794
  };
620
795
 
621
796
 
622
797
  /**
623
798
  * @param {string} value
624
- * @return {!proto.gateway.web.v1.ListPrincipalsRequest} returns this
799
+ * @return {!proto.gateway.web.v1.AIPrincipalFilter} returns this
625
800
  */
626
- proto.gateway.web.v1.ListPrincipalsRequest.prototype.setPageToken = function(value) {
627
- return jspb.Message.setProto3StringField(this, 6, value);
801
+ proto.gateway.web.v1.AIPrincipalFilter.prototype.setSourceSystem = function(value) {
802
+ return jspb.Message.setProto3StringField(this, 2, value);
628
803
  };
629
804
 
630
805
 
@@ -138,8 +138,8 @@ export interface GetTraceRuleResponse {
138
138
 
139
139
  export interface ListTraceRulesRequest {
140
140
  organizationId: string;
141
- organizationIdFilter?: string | undefined;
142
- projectIdFilter?: string | undefined;
141
+ /** One project's rules; empty lists every rule in the organization. */
142
+ projectId: string;
143
143
  }
144
144
 
145
145
  export interface ListTraceRulesResponse {
@@ -288,8 +288,8 @@ export interface GetMetricRuleResponse {
288
288
 
289
289
  export interface ListMetricRulesRequest {
290
290
  organizationId: string;
291
- organizationIdFilter?: string | undefined;
292
- projectIdFilter?: string | undefined;
291
+ /** One project's rules; empty lists every rule in the organization. */
292
+ projectId: string;
293
293
  }
294
294
 
295
295
  export interface ListMetricRulesResponse {
@@ -1056,7 +1056,7 @@ export const GetTraceRuleResponse: MessageFns<GetTraceRuleResponse> = {
1056
1056
  };
1057
1057
 
1058
1058
  function createBaseListTraceRulesRequest(): ListTraceRulesRequest {
1059
- return { organizationId: "", organizationIdFilter: undefined, projectIdFilter: undefined };
1059
+ return { organizationId: "", projectId: "" };
1060
1060
  }
1061
1061
 
1062
1062
  export const ListTraceRulesRequest: MessageFns<ListTraceRulesRequest> = {
@@ -1064,11 +1064,8 @@ export const ListTraceRulesRequest: MessageFns<ListTraceRulesRequest> = {
1064
1064
  if (message.organizationId !== "") {
1065
1065
  writer.uint32(10).string(message.organizationId);
1066
1066
  }
1067
- if (message.organizationIdFilter !== undefined) {
1068
- writer.uint32(18).string(message.organizationIdFilter);
1069
- }
1070
- if (message.projectIdFilter !== undefined) {
1071
- writer.uint32(26).string(message.projectIdFilter);
1067
+ if (message.projectId !== "") {
1068
+ writer.uint32(18).string(message.projectId);
1072
1069
  }
1073
1070
  return writer;
1074
1071
  },
@@ -1099,15 +1096,7 @@ export const ListTraceRulesRequest: MessageFns<ListTraceRulesRequest> = {
1099
1096
  break;
1100
1097
  }
1101
1098
 
1102
- message.organizationIdFilter = reader.string();
1103
- continue;
1104
- }
1105
- case 3: {
1106
- if (tag !== 26) {
1107
- break;
1108
- }
1109
-
1110
- message.projectIdFilter = reader.string();
1099
+ message.projectId = reader.string();
1111
1100
  continue;
1112
1101
  }
1113
1102
  }
@@ -1129,16 +1118,11 @@ export const ListTraceRulesRequest: MessageFns<ListTraceRulesRequest> = {
1129
1118
  : isSet(object.organization_id)
1130
1119
  ? globalThis.String(object.organization_id)
1131
1120
  : "",
1132
- organizationIdFilter: isSet(object.organizationIdFilter)
1133
- ? globalThis.String(object.organizationIdFilter)
1134
- : isSet(object.organization_id_filter)
1135
- ? globalThis.String(object.organization_id_filter)
1136
- : undefined,
1137
- projectIdFilter: isSet(object.projectIdFilter)
1138
- ? globalThis.String(object.projectIdFilter)
1139
- : isSet(object.project_id_filter)
1140
- ? globalThis.String(object.project_id_filter)
1141
- : undefined,
1121
+ projectId: isSet(object.projectId)
1122
+ ? globalThis.String(object.projectId)
1123
+ : isSet(object.project_id)
1124
+ ? globalThis.String(object.project_id)
1125
+ : "",
1142
1126
  };
1143
1127
  },
1144
1128
 
@@ -1147,11 +1131,8 @@ export const ListTraceRulesRequest: MessageFns<ListTraceRulesRequest> = {
1147
1131
  if (message.organizationId !== "") {
1148
1132
  obj.organizationId = message.organizationId;
1149
1133
  }
1150
- if (message.organizationIdFilter !== undefined) {
1151
- obj.organizationIdFilter = message.organizationIdFilter;
1152
- }
1153
- if (message.projectIdFilter !== undefined) {
1154
- obj.projectIdFilter = message.projectIdFilter;
1134
+ if (message.projectId !== "") {
1135
+ obj.projectId = message.projectId;
1155
1136
  }
1156
1137
  return obj;
1157
1138
  },
@@ -1162,8 +1143,7 @@ export const ListTraceRulesRequest: MessageFns<ListTraceRulesRequest> = {
1162
1143
  fromPartial<I extends Exact<DeepPartial<ListTraceRulesRequest>, I>>(object: I): ListTraceRulesRequest {
1163
1144
  const message = createBaseListTraceRulesRequest();
1164
1145
  message.organizationId = object.organizationId ?? "";
1165
- message.organizationIdFilter = object.organizationIdFilter ?? undefined;
1166
- message.projectIdFilter = object.projectIdFilter ?? undefined;
1146
+ message.projectId = object.projectId ?? "";
1167
1147
  return message;
1168
1148
  },
1169
1149
  };
@@ -3843,7 +3823,7 @@ export const GetMetricRuleResponse: MessageFns<GetMetricRuleResponse> = {
3843
3823
  };
3844
3824
 
3845
3825
  function createBaseListMetricRulesRequest(): ListMetricRulesRequest {
3846
- return { organizationId: "", organizationIdFilter: undefined, projectIdFilter: undefined };
3826
+ return { organizationId: "", projectId: "" };
3847
3827
  }
3848
3828
 
3849
3829
  export const ListMetricRulesRequest: MessageFns<ListMetricRulesRequest> = {
@@ -3851,11 +3831,8 @@ export const ListMetricRulesRequest: MessageFns<ListMetricRulesRequest> = {
3851
3831
  if (message.organizationId !== "") {
3852
3832
  writer.uint32(10).string(message.organizationId);
3853
3833
  }
3854
- if (message.organizationIdFilter !== undefined) {
3855
- writer.uint32(18).string(message.organizationIdFilter);
3856
- }
3857
- if (message.projectIdFilter !== undefined) {
3858
- writer.uint32(26).string(message.projectIdFilter);
3834
+ if (message.projectId !== "") {
3835
+ writer.uint32(18).string(message.projectId);
3859
3836
  }
3860
3837
  return writer;
3861
3838
  },
@@ -3886,15 +3863,7 @@ export const ListMetricRulesRequest: MessageFns<ListMetricRulesRequest> = {
3886
3863
  break;
3887
3864
  }
3888
3865
 
3889
- message.organizationIdFilter = reader.string();
3890
- continue;
3891
- }
3892
- case 3: {
3893
- if (tag !== 26) {
3894
- break;
3895
- }
3896
-
3897
- message.projectIdFilter = reader.string();
3866
+ message.projectId = reader.string();
3898
3867
  continue;
3899
3868
  }
3900
3869
  }
@@ -3916,16 +3885,11 @@ export const ListMetricRulesRequest: MessageFns<ListMetricRulesRequest> = {
3916
3885
  : isSet(object.organization_id)
3917
3886
  ? globalThis.String(object.organization_id)
3918
3887
  : "",
3919
- organizationIdFilter: isSet(object.organizationIdFilter)
3920
- ? globalThis.String(object.organizationIdFilter)
3921
- : isSet(object.organization_id_filter)
3922
- ? globalThis.String(object.organization_id_filter)
3923
- : undefined,
3924
- projectIdFilter: isSet(object.projectIdFilter)
3925
- ? globalThis.String(object.projectIdFilter)
3926
- : isSet(object.project_id_filter)
3927
- ? globalThis.String(object.project_id_filter)
3928
- : undefined,
3888
+ projectId: isSet(object.projectId)
3889
+ ? globalThis.String(object.projectId)
3890
+ : isSet(object.project_id)
3891
+ ? globalThis.String(object.project_id)
3892
+ : "",
3929
3893
  };
3930
3894
  },
3931
3895
 
@@ -3934,11 +3898,8 @@ export const ListMetricRulesRequest: MessageFns<ListMetricRulesRequest> = {
3934
3898
  if (message.organizationId !== "") {
3935
3899
  obj.organizationId = message.organizationId;
3936
3900
  }
3937
- if (message.organizationIdFilter !== undefined) {
3938
- obj.organizationIdFilter = message.organizationIdFilter;
3939
- }
3940
- if (message.projectIdFilter !== undefined) {
3941
- obj.projectIdFilter = message.projectIdFilter;
3901
+ if (message.projectId !== "") {
3902
+ obj.projectId = message.projectId;
3942
3903
  }
3943
3904
  return obj;
3944
3905
  },
@@ -3949,8 +3910,7 @@ export const ListMetricRulesRequest: MessageFns<ListMetricRulesRequest> = {
3949
3910
  fromPartial<I extends Exact<DeepPartial<ListMetricRulesRequest>, I>>(object: I): ListMetricRulesRequest {
3950
3911
  const message = createBaseListMetricRulesRequest();
3951
3912
  message.organizationId = object.organizationId ?? "";
3952
- message.organizationIdFilter = object.organizationIdFilter ?? undefined;
3953
- message.projectIdFilter = object.projectIdFilter ?? undefined;
3913
+ message.projectId = object.projectId ?? "";
3954
3914
  return message;
3955
3915
  },
3956
3916
  };
@@ -3,6 +3,7 @@
3
3
  'use strict';
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var proto_gateway_web_v1_rule_gateway_pb = require('../../../../proto/gateway/web/v1/rule_gateway_pb.js');
6
+ var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
6
7
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
7
8
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
8
9
  var proto_gateway_web_v1_common_pb = require('../../../../proto/gateway/web/v1/common_pb.js');