@miradorlabs/web-grpc 2.5.0 → 2.7.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 +1 -1
- package/proto/gateway/web/v1/log_gateway.ts +64 -0
- package/proto/gateway/web/v1/log_gateway_pb.js +112 -1
- package/proto/gateway/web/v1/metric_gateway.ts +174 -2
- package/proto/gateway/web/v1/metric_gateway_pb.js +251 -3
- package/proto/gateway/web/v1/trace_gateway.ts +218 -0
- package/proto/gateway/web/v1/trace_gateway_pb.js +400 -5
|
@@ -38,6 +38,8 @@ goog.exportSymbol('proto.gateway.web.v1.DashboardDataEnvelope.EventCase', null,
|
|
|
38
38
|
goog.exportSymbol('proto.gateway.web.v1.DashboardSummary', null, global);
|
|
39
39
|
goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardRequest', null, global);
|
|
40
40
|
goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardResponse', null, global);
|
|
41
|
+
goog.exportSymbol('proto.gateway.web.v1.ExponentialHistogramAggregation', null, global);
|
|
42
|
+
goog.exportSymbol('proto.gateway.web.v1.ExponentialHistogramQuerySpec', null, global);
|
|
41
43
|
goog.exportSymbol('proto.gateway.web.v1.GaugeAggregation', null, global);
|
|
42
44
|
goog.exportSymbol('proto.gateway.web.v1.GaugeQuerySpec', null, global);
|
|
43
45
|
goog.exportSymbol('proto.gateway.web.v1.GetDashboardRequest', null, global);
|
|
@@ -351,6 +353,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
351
353
|
*/
|
|
352
354
|
proto.gateway.web.v1.HistogramQuerySpec.displayName = 'proto.gateway.web.v1.HistogramQuerySpec';
|
|
353
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* Generated by JsPbCodeGenerator.
|
|
358
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
359
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
360
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
361
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
362
|
+
* valid.
|
|
363
|
+
* @extends {jspb.Message}
|
|
364
|
+
* @constructor
|
|
365
|
+
*/
|
|
366
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec = function(opt_data) {
|
|
367
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
368
|
+
};
|
|
369
|
+
goog.inherits(proto.gateway.web.v1.ExponentialHistogramQuerySpec, jspb.Message);
|
|
370
|
+
if (goog.DEBUG && !COMPILED) {
|
|
371
|
+
/**
|
|
372
|
+
* @public
|
|
373
|
+
* @override
|
|
374
|
+
*/
|
|
375
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.displayName = 'proto.gateway.web.v1.ExponentialHistogramQuerySpec';
|
|
376
|
+
}
|
|
354
377
|
/**
|
|
355
378
|
* Generated by JsPbCodeGenerator.
|
|
356
379
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2686,7 +2709,7 @@ proto.gateway.web.v1.MetricQuery.repeatedFields_ = [5,6];
|
|
|
2686
2709
|
* @private {!Array<!Array<number>>}
|
|
2687
2710
|
* @const
|
|
2688
2711
|
*/
|
|
2689
|
-
proto.gateway.web.v1.MetricQuery.oneofGroups_ = [[2,3,4]];
|
|
2712
|
+
proto.gateway.web.v1.MetricQuery.oneofGroups_ = [[2,3,4,8]];
|
|
2690
2713
|
|
|
2691
2714
|
/**
|
|
2692
2715
|
* @enum {number}
|
|
@@ -2695,7 +2718,8 @@ proto.gateway.web.v1.MetricQuery.KindCase = {
|
|
|
2695
2718
|
KIND_NOT_SET: 0,
|
|
2696
2719
|
GAUGE: 2,
|
|
2697
2720
|
SUM: 3,
|
|
2698
|
-
HISTOGRAM: 4
|
|
2721
|
+
HISTOGRAM: 4,
|
|
2722
|
+
EXPONENTIAL_HISTOGRAM: 8
|
|
2699
2723
|
};
|
|
2700
2724
|
|
|
2701
2725
|
/**
|
|
@@ -2740,6 +2764,7 @@ metricName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
2740
2764
|
gauge: (f = msg.getGauge()) && proto.gateway.web.v1.GaugeQuerySpec.toObject(includeInstance, f),
|
|
2741
2765
|
sum: (f = msg.getSum()) && proto.gateway.web.v1.SumQuerySpec.toObject(includeInstance, f),
|
|
2742
2766
|
histogram: (f = msg.getHistogram()) && proto.gateway.web.v1.HistogramQuerySpec.toObject(includeInstance, f),
|
|
2767
|
+
exponentialHistogram: (f = msg.getExponentialHistogram()) && proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject(includeInstance, f),
|
|
2743
2768
|
filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
|
|
2744
2769
|
proto.gateway.web.v1.AttributeFilter.toObject, includeInstance),
|
|
2745
2770
|
groupByList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
@@ -2799,6 +2824,11 @@ proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader = function(msg, rea
|
|
|
2799
2824
|
reader.readMessage(value,proto.gateway.web.v1.HistogramQuerySpec.deserializeBinaryFromReader);
|
|
2800
2825
|
msg.setHistogram(value);
|
|
2801
2826
|
break;
|
|
2827
|
+
case 8:
|
|
2828
|
+
var value = new proto.gateway.web.v1.ExponentialHistogramQuerySpec;
|
|
2829
|
+
reader.readMessage(value,proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader);
|
|
2830
|
+
msg.setExponentialHistogram(value);
|
|
2831
|
+
break;
|
|
2802
2832
|
case 5:
|
|
2803
2833
|
var value = new proto.gateway.web.v1.AttributeFilter;
|
|
2804
2834
|
reader.readMessage(value,proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader);
|
|
@@ -2872,6 +2902,14 @@ proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter = function(message, wri
|
|
|
2872
2902
|
proto.gateway.web.v1.HistogramQuerySpec.serializeBinaryToWriter
|
|
2873
2903
|
);
|
|
2874
2904
|
}
|
|
2905
|
+
f = message.getExponentialHistogram();
|
|
2906
|
+
if (f != null) {
|
|
2907
|
+
writer.writeMessage(
|
|
2908
|
+
8,
|
|
2909
|
+
f,
|
|
2910
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter
|
|
2911
|
+
);
|
|
2912
|
+
}
|
|
2875
2913
|
f = message.getFiltersList();
|
|
2876
2914
|
if (f.length > 0) {
|
|
2877
2915
|
writer.writeRepeatedMessage(
|
|
@@ -3026,6 +3064,43 @@ proto.gateway.web.v1.MetricQuery.prototype.hasHistogram = function() {
|
|
|
3026
3064
|
};
|
|
3027
3065
|
|
|
3028
3066
|
|
|
3067
|
+
/**
|
|
3068
|
+
* optional ExponentialHistogramQuerySpec exponential_histogram = 8;
|
|
3069
|
+
* @return {?proto.gateway.web.v1.ExponentialHistogramQuerySpec}
|
|
3070
|
+
*/
|
|
3071
|
+
proto.gateway.web.v1.MetricQuery.prototype.getExponentialHistogram = function() {
|
|
3072
|
+
return /** @type{?proto.gateway.web.v1.ExponentialHistogramQuerySpec} */ (
|
|
3073
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.ExponentialHistogramQuerySpec, 8));
|
|
3074
|
+
};
|
|
3075
|
+
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* @param {?proto.gateway.web.v1.ExponentialHistogramQuerySpec|undefined} value
|
|
3079
|
+
* @return {!proto.gateway.web.v1.MetricQuery} returns this
|
|
3080
|
+
*/
|
|
3081
|
+
proto.gateway.web.v1.MetricQuery.prototype.setExponentialHistogram = function(value) {
|
|
3082
|
+
return jspb.Message.setOneofWrapperField(this, 8, proto.gateway.web.v1.MetricQuery.oneofGroups_[0], value);
|
|
3083
|
+
};
|
|
3084
|
+
|
|
3085
|
+
|
|
3086
|
+
/**
|
|
3087
|
+
* Clears the message field making it undefined.
|
|
3088
|
+
* @return {!proto.gateway.web.v1.MetricQuery} returns this
|
|
3089
|
+
*/
|
|
3090
|
+
proto.gateway.web.v1.MetricQuery.prototype.clearExponentialHistogram = function() {
|
|
3091
|
+
return this.setExponentialHistogram(undefined);
|
|
3092
|
+
};
|
|
3093
|
+
|
|
3094
|
+
|
|
3095
|
+
/**
|
|
3096
|
+
* Returns whether this field is set.
|
|
3097
|
+
* @return {boolean}
|
|
3098
|
+
*/
|
|
3099
|
+
proto.gateway.web.v1.MetricQuery.prototype.hasExponentialHistogram = function() {
|
|
3100
|
+
return jspb.Message.getField(this, 8) != null;
|
|
3101
|
+
};
|
|
3102
|
+
|
|
3103
|
+
|
|
3029
3104
|
/**
|
|
3030
3105
|
* repeated AttributeFilter filters = 5;
|
|
3031
3106
|
* @return {!Array<!proto.gateway.web.v1.AttributeFilter>}
|
|
@@ -3540,6 +3615,166 @@ proto.gateway.web.v1.HistogramQuerySpec.prototype.setQuantile = function(value)
|
|
|
3540
3615
|
|
|
3541
3616
|
|
|
3542
3617
|
|
|
3618
|
+
|
|
3619
|
+
|
|
3620
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3621
|
+
/**
|
|
3622
|
+
* Creates an object representation of this proto.
|
|
3623
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3624
|
+
* Optional fields that are not set will be set to undefined.
|
|
3625
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3626
|
+
* For the list of reserved names please see:
|
|
3627
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3628
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3629
|
+
* JSPB instance for transitional soy proto support:
|
|
3630
|
+
* http://goto/soy-param-migration
|
|
3631
|
+
* @return {!Object}
|
|
3632
|
+
*/
|
|
3633
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.toObject = function(opt_includeInstance) {
|
|
3634
|
+
return proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject(opt_includeInstance, this);
|
|
3635
|
+
};
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* Static version of the {@see toObject} method.
|
|
3640
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3641
|
+
* the JSPB instance for transitional soy proto support:
|
|
3642
|
+
* http://goto/soy-param-migration
|
|
3643
|
+
* @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} msg The msg instance to transform.
|
|
3644
|
+
* @return {!Object}
|
|
3645
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3646
|
+
*/
|
|
3647
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject = function(includeInstance, msg) {
|
|
3648
|
+
var f, obj = {
|
|
3649
|
+
aggregation: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3650
|
+
quantile: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
3651
|
+
};
|
|
3652
|
+
|
|
3653
|
+
if (includeInstance) {
|
|
3654
|
+
obj.$jspbMessageInstance = msg;
|
|
3655
|
+
}
|
|
3656
|
+
return obj;
|
|
3657
|
+
};
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
|
|
3661
|
+
/**
|
|
3662
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3663
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3664
|
+
* @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec}
|
|
3665
|
+
*/
|
|
3666
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinary = function(bytes) {
|
|
3667
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3668
|
+
var msg = new proto.gateway.web.v1.ExponentialHistogramQuerySpec;
|
|
3669
|
+
return proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader(msg, reader);
|
|
3670
|
+
};
|
|
3671
|
+
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3675
|
+
* given reader into the given message object.
|
|
3676
|
+
* @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} msg The message object to deserialize into.
|
|
3677
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3678
|
+
* @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec}
|
|
3679
|
+
*/
|
|
3680
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader = function(msg, reader) {
|
|
3681
|
+
while (reader.nextField()) {
|
|
3682
|
+
if (reader.isEndGroup()) {
|
|
3683
|
+
break;
|
|
3684
|
+
}
|
|
3685
|
+
var field = reader.getFieldNumber();
|
|
3686
|
+
switch (field) {
|
|
3687
|
+
case 1:
|
|
3688
|
+
var value = /** @type {!proto.gateway.web.v1.ExponentialHistogramAggregation} */ (reader.readEnum());
|
|
3689
|
+
msg.setAggregation(value);
|
|
3690
|
+
break;
|
|
3691
|
+
case 2:
|
|
3692
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
3693
|
+
msg.setQuantile(value);
|
|
3694
|
+
break;
|
|
3695
|
+
default:
|
|
3696
|
+
reader.skipField();
|
|
3697
|
+
break;
|
|
3698
|
+
}
|
|
3699
|
+
}
|
|
3700
|
+
return msg;
|
|
3701
|
+
};
|
|
3702
|
+
|
|
3703
|
+
|
|
3704
|
+
/**
|
|
3705
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3706
|
+
* @return {!Uint8Array}
|
|
3707
|
+
*/
|
|
3708
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.serializeBinary = function() {
|
|
3709
|
+
var writer = new jspb.BinaryWriter();
|
|
3710
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter(this, writer);
|
|
3711
|
+
return writer.getResultBuffer();
|
|
3712
|
+
};
|
|
3713
|
+
|
|
3714
|
+
|
|
3715
|
+
/**
|
|
3716
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3717
|
+
* format), writing to the given BinaryWriter.
|
|
3718
|
+
* @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} message
|
|
3719
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3720
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3721
|
+
*/
|
|
3722
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter = function(message, writer) {
|
|
3723
|
+
var f = undefined;
|
|
3724
|
+
f = message.getAggregation();
|
|
3725
|
+
if (f !== 0.0) {
|
|
3726
|
+
writer.writeEnum(
|
|
3727
|
+
1,
|
|
3728
|
+
f
|
|
3729
|
+
);
|
|
3730
|
+
}
|
|
3731
|
+
f = message.getQuantile();
|
|
3732
|
+
if (f !== 0.0) {
|
|
3733
|
+
writer.writeDouble(
|
|
3734
|
+
2,
|
|
3735
|
+
f
|
|
3736
|
+
);
|
|
3737
|
+
}
|
|
3738
|
+
};
|
|
3739
|
+
|
|
3740
|
+
|
|
3741
|
+
/**
|
|
3742
|
+
* optional ExponentialHistogramAggregation aggregation = 1;
|
|
3743
|
+
* @return {!proto.gateway.web.v1.ExponentialHistogramAggregation}
|
|
3744
|
+
*/
|
|
3745
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.getAggregation = function() {
|
|
3746
|
+
return /** @type {!proto.gateway.web.v1.ExponentialHistogramAggregation} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3747
|
+
};
|
|
3748
|
+
|
|
3749
|
+
|
|
3750
|
+
/**
|
|
3751
|
+
* @param {!proto.gateway.web.v1.ExponentialHistogramAggregation} value
|
|
3752
|
+
* @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} returns this
|
|
3753
|
+
*/
|
|
3754
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.setAggregation = function(value) {
|
|
3755
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
3756
|
+
};
|
|
3757
|
+
|
|
3758
|
+
|
|
3759
|
+
/**
|
|
3760
|
+
* optional double quantile = 2;
|
|
3761
|
+
* @return {number}
|
|
3762
|
+
*/
|
|
3763
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.getQuantile = function() {
|
|
3764
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
3765
|
+
};
|
|
3766
|
+
|
|
3767
|
+
|
|
3768
|
+
/**
|
|
3769
|
+
* @param {number} value
|
|
3770
|
+
* @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} returns this
|
|
3771
|
+
*/
|
|
3772
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.setQuantile = function(value) {
|
|
3773
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
3774
|
+
};
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
|
|
3543
3778
|
/**
|
|
3544
3779
|
* List of repeated fields within this message type.
|
|
3545
3780
|
* @private {!Array<number>}
|
|
@@ -9740,7 +9975,8 @@ proto.gateway.web.v1.MetricKind = {
|
|
|
9740
9975
|
METRIC_KIND_UNSPECIFIED: 0,
|
|
9741
9976
|
METRIC_KIND_GAUGE: 1,
|
|
9742
9977
|
METRIC_KIND_SUM: 2,
|
|
9743
|
-
METRIC_KIND_HISTOGRAM: 3
|
|
9978
|
+
METRIC_KIND_HISTOGRAM: 3,
|
|
9979
|
+
METRIC_KIND_EXPONENTIAL_HISTOGRAM: 4
|
|
9744
9980
|
};
|
|
9745
9981
|
|
|
9746
9982
|
/**
|
|
@@ -9779,6 +10015,18 @@ proto.gateway.web.v1.HistogramAggregation = {
|
|
|
9779
10015
|
HISTOGRAM_AGGREGATION_COUNT: 5
|
|
9780
10016
|
};
|
|
9781
10017
|
|
|
10018
|
+
/**
|
|
10019
|
+
* @enum {number}
|
|
10020
|
+
*/
|
|
10021
|
+
proto.gateway.web.v1.ExponentialHistogramAggregation = {
|
|
10022
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_UNSPECIFIED: 0,
|
|
10023
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_QUANTILE: 1,
|
|
10024
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_AVG: 2,
|
|
10025
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_MIN: 3,
|
|
10026
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_MAX: 4,
|
|
10027
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_COUNT: 5
|
|
10028
|
+
};
|
|
10029
|
+
|
|
9782
10030
|
/**
|
|
9783
10031
|
* @enum {number}
|
|
9784
10032
|
*/
|
|
@@ -212,6 +212,7 @@ export enum TraceEventType {
|
|
|
212
212
|
TRACE_EVENT_TYPE_STRIPE_FUNDS_AVAILABLE = 60,
|
|
213
213
|
TRACE_EVENT_TYPE_STRIPE_PAYOUT_PAID = 61,
|
|
214
214
|
TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED = 62,
|
|
215
|
+
TRACE_EVENT_TYPE_SAFE_TX_SUPERSEDED = 63,
|
|
215
216
|
UNRECOGNIZED = -1,
|
|
216
217
|
}
|
|
217
218
|
|
|
@@ -370,6 +371,9 @@ export function traceEventTypeFromJSON(object: any): TraceEventType {
|
|
|
370
371
|
case 62:
|
|
371
372
|
case "TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED":
|
|
372
373
|
return TraceEventType.TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED;
|
|
374
|
+
case 63:
|
|
375
|
+
case "TRACE_EVENT_TYPE_SAFE_TX_SUPERSEDED":
|
|
376
|
+
return TraceEventType.TRACE_EVENT_TYPE_SAFE_TX_SUPERSEDED;
|
|
373
377
|
case -1:
|
|
374
378
|
case "UNRECOGNIZED":
|
|
375
379
|
default:
|
|
@@ -481,6 +485,8 @@ export function traceEventTypeToJSON(object: TraceEventType): string {
|
|
|
481
485
|
return "TRACE_EVENT_TYPE_STRIPE_PAYOUT_PAID";
|
|
482
486
|
case TraceEventType.TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED:
|
|
483
487
|
return "TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED";
|
|
488
|
+
case TraceEventType.TRACE_EVENT_TYPE_SAFE_TX_SUPERSEDED:
|
|
489
|
+
return "TRACE_EVENT_TYPE_SAFE_TX_SUPERSEDED";
|
|
484
490
|
case TraceEventType.UNRECOGNIZED:
|
|
485
491
|
default:
|
|
486
492
|
return "UNRECOGNIZED";
|
|
@@ -1814,6 +1820,7 @@ export interface TraceEventEnvelope {
|
|
|
1814
1820
|
stripeFundsAvailable?: StripeFundsAvailable | undefined;
|
|
1815
1821
|
stripePayoutPaid?: StripePayoutPaid | undefined;
|
|
1816
1822
|
stripeTrackingFinished?: StripeTrackingFinished | undefined;
|
|
1823
|
+
safeTxSuperseded?: SafeTxSuperseded | undefined;
|
|
1817
1824
|
}
|
|
1818
1825
|
|
|
1819
1826
|
/** SpanStarted is emitted when a span opens. */
|
|
@@ -2301,6 +2308,19 @@ export interface SafeTxNotFound {
|
|
|
2301
2308
|
message?: string | undefined;
|
|
2302
2309
|
}
|
|
2303
2310
|
|
|
2311
|
+
/**
|
|
2312
|
+
* SafeTxSuperseded is emitted when a Safe proposal is permanently non-executable
|
|
2313
|
+
* because the Safe on-chain nonce advanced past the proposal nonce.
|
|
2314
|
+
*/
|
|
2315
|
+
export interface SafeTxSuperseded {
|
|
2316
|
+
pluginCorrelationId: string;
|
|
2317
|
+
safeTxHash: string;
|
|
2318
|
+
chainDetails: ChainDetails | undefined;
|
|
2319
|
+
message?: string | undefined;
|
|
2320
|
+
proposalNonce: number;
|
|
2321
|
+
onChainNonce: number;
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2304
2324
|
/** TraceDeleted is emitted when a trace is deleted */
|
|
2305
2325
|
export interface TraceDeleted {
|
|
2306
2326
|
}
|
|
@@ -2325,6 +2345,7 @@ export enum SafeTxTrackingFinished_SafeTxHintStatus {
|
|
|
2325
2345
|
SAFE_TX_HINT_STATUS_TIMEOUT = 2,
|
|
2326
2346
|
SAFE_TX_HINT_STATUS_NOT_FOUND = 3,
|
|
2327
2347
|
SAFE_TX_HINT_STATUS_FAILED = 4,
|
|
2348
|
+
SAFE_TX_HINT_STATUS_SUPERSEDED = 5,
|
|
2328
2349
|
UNRECOGNIZED = -1,
|
|
2329
2350
|
}
|
|
2330
2351
|
|
|
@@ -2345,6 +2366,9 @@ export function safeTxTrackingFinished_SafeTxHintStatusFromJSON(object: any): Sa
|
|
|
2345
2366
|
case 4:
|
|
2346
2367
|
case "SAFE_TX_HINT_STATUS_FAILED":
|
|
2347
2368
|
return SafeTxTrackingFinished_SafeTxHintStatus.SAFE_TX_HINT_STATUS_FAILED;
|
|
2369
|
+
case 5:
|
|
2370
|
+
case "SAFE_TX_HINT_STATUS_SUPERSEDED":
|
|
2371
|
+
return SafeTxTrackingFinished_SafeTxHintStatus.SAFE_TX_HINT_STATUS_SUPERSEDED;
|
|
2348
2372
|
case -1:
|
|
2349
2373
|
case "UNRECOGNIZED":
|
|
2350
2374
|
default:
|
|
@@ -2364,6 +2388,8 @@ export function safeTxTrackingFinished_SafeTxHintStatusToJSON(object: SafeTxTrac
|
|
|
2364
2388
|
return "SAFE_TX_HINT_STATUS_NOT_FOUND";
|
|
2365
2389
|
case SafeTxTrackingFinished_SafeTxHintStatus.SAFE_TX_HINT_STATUS_FAILED:
|
|
2366
2390
|
return "SAFE_TX_HINT_STATUS_FAILED";
|
|
2391
|
+
case SafeTxTrackingFinished_SafeTxHintStatus.SAFE_TX_HINT_STATUS_SUPERSEDED:
|
|
2392
|
+
return "SAFE_TX_HINT_STATUS_SUPERSEDED";
|
|
2367
2393
|
case SafeTxTrackingFinished_SafeTxHintStatus.UNRECOGNIZED:
|
|
2368
2394
|
default:
|
|
2369
2395
|
return "UNRECOGNIZED";
|
|
@@ -6782,6 +6808,7 @@ function createBaseTraceEventEnvelope(): TraceEventEnvelope {
|
|
|
6782
6808
|
stripeFundsAvailable: undefined,
|
|
6783
6809
|
stripePayoutPaid: undefined,
|
|
6784
6810
|
stripeTrackingFinished: undefined,
|
|
6811
|
+
safeTxSuperseded: undefined,
|
|
6785
6812
|
};
|
|
6786
6813
|
}
|
|
6787
6814
|
|
|
@@ -6973,6 +7000,9 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
6973
7000
|
if (message.stripeTrackingFinished !== undefined) {
|
|
6974
7001
|
StripeTrackingFinished.encode(message.stripeTrackingFinished, writer.uint32(578).fork()).join();
|
|
6975
7002
|
}
|
|
7003
|
+
if (message.safeTxSuperseded !== undefined) {
|
|
7004
|
+
SafeTxSuperseded.encode(message.safeTxSuperseded, writer.uint32(586).fork()).join();
|
|
7005
|
+
}
|
|
6976
7006
|
return writer;
|
|
6977
7007
|
},
|
|
6978
7008
|
|
|
@@ -7479,6 +7509,14 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7479
7509
|
message.stripeTrackingFinished = StripeTrackingFinished.decode(reader, reader.uint32());
|
|
7480
7510
|
continue;
|
|
7481
7511
|
}
|
|
7512
|
+
case 73: {
|
|
7513
|
+
if (tag !== 586) {
|
|
7514
|
+
break;
|
|
7515
|
+
}
|
|
7516
|
+
|
|
7517
|
+
message.safeTxSuperseded = SafeTxSuperseded.decode(reader, reader.uint32());
|
|
7518
|
+
continue;
|
|
7519
|
+
}
|
|
7482
7520
|
}
|
|
7483
7521
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7484
7522
|
break;
|
|
@@ -7784,6 +7822,11 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7784
7822
|
: isSet(object.stripe_tracking_finished)
|
|
7785
7823
|
? StripeTrackingFinished.fromJSON(object.stripe_tracking_finished)
|
|
7786
7824
|
: undefined,
|
|
7825
|
+
safeTxSuperseded: isSet(object.safeTxSuperseded)
|
|
7826
|
+
? SafeTxSuperseded.fromJSON(object.safeTxSuperseded)
|
|
7827
|
+
: isSet(object.safe_tx_superseded)
|
|
7828
|
+
? SafeTxSuperseded.fromJSON(object.safe_tx_superseded)
|
|
7829
|
+
: undefined,
|
|
7787
7830
|
};
|
|
7788
7831
|
},
|
|
7789
7832
|
|
|
@@ -7975,6 +8018,9 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7975
8018
|
if (message.stripeTrackingFinished !== undefined) {
|
|
7976
8019
|
obj.stripeTrackingFinished = StripeTrackingFinished.toJSON(message.stripeTrackingFinished);
|
|
7977
8020
|
}
|
|
8021
|
+
if (message.safeTxSuperseded !== undefined) {
|
|
8022
|
+
obj.safeTxSuperseded = SafeTxSuperseded.toJSON(message.safeTxSuperseded);
|
|
8023
|
+
}
|
|
7978
8024
|
return obj;
|
|
7979
8025
|
},
|
|
7980
8026
|
|
|
@@ -8154,6 +8200,9 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
8154
8200
|
(object.stripeTrackingFinished !== undefined && object.stripeTrackingFinished !== null)
|
|
8155
8201
|
? StripeTrackingFinished.fromPartial(object.stripeTrackingFinished)
|
|
8156
8202
|
: undefined;
|
|
8203
|
+
message.safeTxSuperseded = (object.safeTxSuperseded !== undefined && object.safeTxSuperseded !== null)
|
|
8204
|
+
? SafeTxSuperseded.fromPartial(object.safeTxSuperseded)
|
|
8205
|
+
: undefined;
|
|
8157
8206
|
return message;
|
|
8158
8207
|
},
|
|
8159
8208
|
};
|
|
@@ -13776,6 +13825,175 @@ export const SafeTxNotFound: MessageFns<SafeTxNotFound> = {
|
|
|
13776
13825
|
},
|
|
13777
13826
|
};
|
|
13778
13827
|
|
|
13828
|
+
function createBaseSafeTxSuperseded(): SafeTxSuperseded {
|
|
13829
|
+
return {
|
|
13830
|
+
pluginCorrelationId: "",
|
|
13831
|
+
safeTxHash: "",
|
|
13832
|
+
chainDetails: undefined,
|
|
13833
|
+
message: undefined,
|
|
13834
|
+
proposalNonce: 0,
|
|
13835
|
+
onChainNonce: 0,
|
|
13836
|
+
};
|
|
13837
|
+
}
|
|
13838
|
+
|
|
13839
|
+
export const SafeTxSuperseded: MessageFns<SafeTxSuperseded> = {
|
|
13840
|
+
encode(message: SafeTxSuperseded, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
13841
|
+
if (message.pluginCorrelationId !== "") {
|
|
13842
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
13843
|
+
}
|
|
13844
|
+
if (message.safeTxHash !== "") {
|
|
13845
|
+
writer.uint32(18).string(message.safeTxHash);
|
|
13846
|
+
}
|
|
13847
|
+
if (message.chainDetails !== undefined) {
|
|
13848
|
+
ChainDetails.encode(message.chainDetails, writer.uint32(26).fork()).join();
|
|
13849
|
+
}
|
|
13850
|
+
if (message.message !== undefined) {
|
|
13851
|
+
writer.uint32(34).string(message.message);
|
|
13852
|
+
}
|
|
13853
|
+
if (message.proposalNonce !== 0) {
|
|
13854
|
+
writer.uint32(40).int32(message.proposalNonce);
|
|
13855
|
+
}
|
|
13856
|
+
if (message.onChainNonce !== 0) {
|
|
13857
|
+
writer.uint32(48).uint64(message.onChainNonce);
|
|
13858
|
+
}
|
|
13859
|
+
return writer;
|
|
13860
|
+
},
|
|
13861
|
+
|
|
13862
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SafeTxSuperseded {
|
|
13863
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13864
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13865
|
+
const message = createBaseSafeTxSuperseded();
|
|
13866
|
+
while (reader.pos < end) {
|
|
13867
|
+
const tag = reader.uint32();
|
|
13868
|
+
switch (tag >>> 3) {
|
|
13869
|
+
case 1: {
|
|
13870
|
+
if (tag !== 10) {
|
|
13871
|
+
break;
|
|
13872
|
+
}
|
|
13873
|
+
|
|
13874
|
+
message.pluginCorrelationId = reader.string();
|
|
13875
|
+
continue;
|
|
13876
|
+
}
|
|
13877
|
+
case 2: {
|
|
13878
|
+
if (tag !== 18) {
|
|
13879
|
+
break;
|
|
13880
|
+
}
|
|
13881
|
+
|
|
13882
|
+
message.safeTxHash = reader.string();
|
|
13883
|
+
continue;
|
|
13884
|
+
}
|
|
13885
|
+
case 3: {
|
|
13886
|
+
if (tag !== 26) {
|
|
13887
|
+
break;
|
|
13888
|
+
}
|
|
13889
|
+
|
|
13890
|
+
message.chainDetails = ChainDetails.decode(reader, reader.uint32());
|
|
13891
|
+
continue;
|
|
13892
|
+
}
|
|
13893
|
+
case 4: {
|
|
13894
|
+
if (tag !== 34) {
|
|
13895
|
+
break;
|
|
13896
|
+
}
|
|
13897
|
+
|
|
13898
|
+
message.message = reader.string();
|
|
13899
|
+
continue;
|
|
13900
|
+
}
|
|
13901
|
+
case 5: {
|
|
13902
|
+
if (tag !== 40) {
|
|
13903
|
+
break;
|
|
13904
|
+
}
|
|
13905
|
+
|
|
13906
|
+
message.proposalNonce = reader.int32();
|
|
13907
|
+
continue;
|
|
13908
|
+
}
|
|
13909
|
+
case 6: {
|
|
13910
|
+
if (tag !== 48) {
|
|
13911
|
+
break;
|
|
13912
|
+
}
|
|
13913
|
+
|
|
13914
|
+
message.onChainNonce = longToNumber(reader.uint64());
|
|
13915
|
+
continue;
|
|
13916
|
+
}
|
|
13917
|
+
}
|
|
13918
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13919
|
+
break;
|
|
13920
|
+
}
|
|
13921
|
+
reader.skip(tag & 7);
|
|
13922
|
+
}
|
|
13923
|
+
return message;
|
|
13924
|
+
},
|
|
13925
|
+
|
|
13926
|
+
fromJSON(object: any): SafeTxSuperseded {
|
|
13927
|
+
return {
|
|
13928
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
13929
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
13930
|
+
: isSet(object.plugin_correlation_id)
|
|
13931
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
13932
|
+
: "",
|
|
13933
|
+
safeTxHash: isSet(object.safeTxHash)
|
|
13934
|
+
? globalThis.String(object.safeTxHash)
|
|
13935
|
+
: isSet(object.safe_tx_hash)
|
|
13936
|
+
? globalThis.String(object.safe_tx_hash)
|
|
13937
|
+
: "",
|
|
13938
|
+
chainDetails: isSet(object.chainDetails)
|
|
13939
|
+
? ChainDetails.fromJSON(object.chainDetails)
|
|
13940
|
+
: isSet(object.chain_details)
|
|
13941
|
+
? ChainDetails.fromJSON(object.chain_details)
|
|
13942
|
+
: undefined,
|
|
13943
|
+
message: isSet(object.message) ? globalThis.String(object.message) : undefined,
|
|
13944
|
+
proposalNonce: isSet(object.proposalNonce)
|
|
13945
|
+
? globalThis.Number(object.proposalNonce)
|
|
13946
|
+
: isSet(object.proposal_nonce)
|
|
13947
|
+
? globalThis.Number(object.proposal_nonce)
|
|
13948
|
+
: 0,
|
|
13949
|
+
onChainNonce: isSet(object.onChainNonce)
|
|
13950
|
+
? globalThis.Number(object.onChainNonce)
|
|
13951
|
+
: isSet(object.on_chain_nonce)
|
|
13952
|
+
? globalThis.Number(object.on_chain_nonce)
|
|
13953
|
+
: 0,
|
|
13954
|
+
};
|
|
13955
|
+
},
|
|
13956
|
+
|
|
13957
|
+
toJSON(message: SafeTxSuperseded): unknown {
|
|
13958
|
+
const obj: any = {};
|
|
13959
|
+
if (message.pluginCorrelationId !== "") {
|
|
13960
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
13961
|
+
}
|
|
13962
|
+
if (message.safeTxHash !== "") {
|
|
13963
|
+
obj.safeTxHash = message.safeTxHash;
|
|
13964
|
+
}
|
|
13965
|
+
if (message.chainDetails !== undefined) {
|
|
13966
|
+
obj.chainDetails = ChainDetails.toJSON(message.chainDetails);
|
|
13967
|
+
}
|
|
13968
|
+
if (message.message !== undefined) {
|
|
13969
|
+
obj.message = message.message;
|
|
13970
|
+
}
|
|
13971
|
+
if (message.proposalNonce !== 0) {
|
|
13972
|
+
obj.proposalNonce = Math.round(message.proposalNonce);
|
|
13973
|
+
}
|
|
13974
|
+
if (message.onChainNonce !== 0) {
|
|
13975
|
+
obj.onChainNonce = Math.round(message.onChainNonce);
|
|
13976
|
+
}
|
|
13977
|
+
return obj;
|
|
13978
|
+
},
|
|
13979
|
+
|
|
13980
|
+
create<I extends Exact<DeepPartial<SafeTxSuperseded>, I>>(base?: I): SafeTxSuperseded {
|
|
13981
|
+
return SafeTxSuperseded.fromPartial(base ?? ({} as any));
|
|
13982
|
+
},
|
|
13983
|
+
fromPartial<I extends Exact<DeepPartial<SafeTxSuperseded>, I>>(object: I): SafeTxSuperseded {
|
|
13984
|
+
const message = createBaseSafeTxSuperseded();
|
|
13985
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
13986
|
+
message.safeTxHash = object.safeTxHash ?? "";
|
|
13987
|
+
message.chainDetails = (object.chainDetails !== undefined && object.chainDetails !== null)
|
|
13988
|
+
? ChainDetails.fromPartial(object.chainDetails)
|
|
13989
|
+
: undefined;
|
|
13990
|
+
message.message = object.message ?? undefined;
|
|
13991
|
+
message.proposalNonce = object.proposalNonce ?? 0;
|
|
13992
|
+
message.onChainNonce = object.onChainNonce ?? 0;
|
|
13993
|
+
return message;
|
|
13994
|
+
},
|
|
13995
|
+
};
|
|
13996
|
+
|
|
13779
13997
|
function createBaseTraceDeleted(): TraceDeleted {
|
|
13780
13998
|
return {};
|
|
13781
13999
|
}
|