@miradorlabs/web-grpc 3.36.1 → 3.37.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
|
@@ -1991,6 +1991,11 @@ export interface ModelActivityPrincipal {
|
|
|
1991
1991
|
inputTokens: number;
|
|
1992
1992
|
outputTokens: number;
|
|
1993
1993
|
costUsd: number;
|
|
1994
|
+
/**
|
|
1995
|
+
* Subscription-facility slice of cost_usd, by each call's funding mode, so net = cost_usd − this per principal;
|
|
1996
|
+
* absent (an older backend) means unavailable.
|
|
1997
|
+
*/
|
|
1998
|
+
subscriptionCostUsd?: number | undefined;
|
|
1994
1999
|
}
|
|
1995
2000
|
|
|
1996
2001
|
export interface SessionUsageTrendRequest {
|
|
@@ -16501,7 +16506,17 @@ export const ModelActivity: MessageFns<ModelActivity> = {
|
|
|
16501
16506
|
};
|
|
16502
16507
|
|
|
16503
16508
|
function createBaseModelActivityPrincipal(): ModelActivityPrincipal {
|
|
16504
|
-
return {
|
|
16509
|
+
return {
|
|
16510
|
+
kind: 0,
|
|
16511
|
+
id: "",
|
|
16512
|
+
sourceSystem: "",
|
|
16513
|
+
modelCalls: 0,
|
|
16514
|
+
sessions: 0,
|
|
16515
|
+
inputTokens: 0,
|
|
16516
|
+
outputTokens: 0,
|
|
16517
|
+
costUsd: 0,
|
|
16518
|
+
subscriptionCostUsd: undefined,
|
|
16519
|
+
};
|
|
16505
16520
|
}
|
|
16506
16521
|
|
|
16507
16522
|
export const ModelActivityPrincipal: MessageFns<ModelActivityPrincipal> = {
|
|
@@ -16530,6 +16545,9 @@ export const ModelActivityPrincipal: MessageFns<ModelActivityPrincipal> = {
|
|
|
16530
16545
|
if (message.costUsd !== 0) {
|
|
16531
16546
|
writer.uint32(65).double(message.costUsd);
|
|
16532
16547
|
}
|
|
16548
|
+
if (message.subscriptionCostUsd !== undefined) {
|
|
16549
|
+
writer.uint32(73).double(message.subscriptionCostUsd);
|
|
16550
|
+
}
|
|
16533
16551
|
return writer;
|
|
16534
16552
|
},
|
|
16535
16553
|
|
|
@@ -16610,6 +16628,14 @@ export const ModelActivityPrincipal: MessageFns<ModelActivityPrincipal> = {
|
|
|
16610
16628
|
message.costUsd = reader.double();
|
|
16611
16629
|
continue;
|
|
16612
16630
|
}
|
|
16631
|
+
case 9: {
|
|
16632
|
+
if (tag !== 73) {
|
|
16633
|
+
break;
|
|
16634
|
+
}
|
|
16635
|
+
|
|
16636
|
+
message.subscriptionCostUsd = reader.double();
|
|
16637
|
+
continue;
|
|
16638
|
+
}
|
|
16613
16639
|
}
|
|
16614
16640
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16615
16641
|
break;
|
|
@@ -16652,6 +16678,11 @@ export const ModelActivityPrincipal: MessageFns<ModelActivityPrincipal> = {
|
|
|
16652
16678
|
: isSet(object.cost_usd)
|
|
16653
16679
|
? globalThis.Number(object.cost_usd)
|
|
16654
16680
|
: 0,
|
|
16681
|
+
subscriptionCostUsd: isSet(object.subscriptionCostUsd)
|
|
16682
|
+
? globalThis.Number(object.subscriptionCostUsd)
|
|
16683
|
+
: isSet(object.subscription_cost_usd)
|
|
16684
|
+
? globalThis.Number(object.subscription_cost_usd)
|
|
16685
|
+
: undefined,
|
|
16655
16686
|
};
|
|
16656
16687
|
},
|
|
16657
16688
|
|
|
@@ -16681,6 +16712,9 @@ export const ModelActivityPrincipal: MessageFns<ModelActivityPrincipal> = {
|
|
|
16681
16712
|
if (message.costUsd !== 0) {
|
|
16682
16713
|
obj.costUsd = floatToJson(message.costUsd);
|
|
16683
16714
|
}
|
|
16715
|
+
if (message.subscriptionCostUsd !== undefined) {
|
|
16716
|
+
obj.subscriptionCostUsd = floatToJson(message.subscriptionCostUsd);
|
|
16717
|
+
}
|
|
16684
16718
|
return obj;
|
|
16685
16719
|
},
|
|
16686
16720
|
|
|
@@ -16697,6 +16731,7 @@ export const ModelActivityPrincipal: MessageFns<ModelActivityPrincipal> = {
|
|
|
16697
16731
|
message.inputTokens = object.inputTokens ?? 0;
|
|
16698
16732
|
message.outputTokens = object.outputTokens ?? 0;
|
|
16699
16733
|
message.costUsd = object.costUsd ?? 0;
|
|
16734
|
+
message.subscriptionCostUsd = object.subscriptionCostUsd ?? undefined;
|
|
16700
16735
|
return message;
|
|
16701
16736
|
},
|
|
16702
16737
|
};
|
|
@@ -29455,7 +29455,8 @@ modelCalls: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
|
29455
29455
|
sessions: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
29456
29456
|
inputTokens: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
29457
29457
|
outputTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
29458
|
-
costUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
|
|
29458
|
+
costUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
|
|
29459
|
+
subscriptionCostUsd: (f = jspb.Message.getOptionalFloatingPointField(msg, 9)) == null ? undefined : f
|
|
29459
29460
|
};
|
|
29460
29461
|
|
|
29461
29462
|
if (includeInstance) {
|
|
@@ -29524,6 +29525,10 @@ proto.gateway.web.v1.ModelActivityPrincipal.deserializeBinaryFromReader = functi
|
|
|
29524
29525
|
var value = /** @type {number} */ (reader.readDouble());
|
|
29525
29526
|
msg.setCostUsd(value);
|
|
29526
29527
|
break;
|
|
29528
|
+
case 9:
|
|
29529
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
29530
|
+
msg.setSubscriptionCostUsd(value);
|
|
29531
|
+
break;
|
|
29527
29532
|
default:
|
|
29528
29533
|
reader.skipField();
|
|
29529
29534
|
break;
|
|
@@ -29609,6 +29614,13 @@ proto.gateway.web.v1.ModelActivityPrincipal.serializeBinaryToWriter = function(m
|
|
|
29609
29614
|
f
|
|
29610
29615
|
);
|
|
29611
29616
|
}
|
|
29617
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
|
29618
|
+
if (f != null) {
|
|
29619
|
+
writer.writeDouble(
|
|
29620
|
+
9,
|
|
29621
|
+
f
|
|
29622
|
+
);
|
|
29623
|
+
}
|
|
29612
29624
|
};
|
|
29613
29625
|
|
|
29614
29626
|
|
|
@@ -29756,6 +29768,42 @@ proto.gateway.web.v1.ModelActivityPrincipal.prototype.setCostUsd = function(valu
|
|
|
29756
29768
|
};
|
|
29757
29769
|
|
|
29758
29770
|
|
|
29771
|
+
/**
|
|
29772
|
+
* optional double subscription_cost_usd = 9;
|
|
29773
|
+
* @return {number}
|
|
29774
|
+
*/
|
|
29775
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.getSubscriptionCostUsd = function() {
|
|
29776
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
|
|
29777
|
+
};
|
|
29778
|
+
|
|
29779
|
+
|
|
29780
|
+
/**
|
|
29781
|
+
* @param {number} value
|
|
29782
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal} returns this
|
|
29783
|
+
*/
|
|
29784
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.setSubscriptionCostUsd = function(value) {
|
|
29785
|
+
return jspb.Message.setField(this, 9, value);
|
|
29786
|
+
};
|
|
29787
|
+
|
|
29788
|
+
|
|
29789
|
+
/**
|
|
29790
|
+
* Clears the field making it undefined.
|
|
29791
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal} returns this
|
|
29792
|
+
*/
|
|
29793
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.clearSubscriptionCostUsd = function() {
|
|
29794
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
29795
|
+
};
|
|
29796
|
+
|
|
29797
|
+
|
|
29798
|
+
/**
|
|
29799
|
+
* Returns whether this field is set.
|
|
29800
|
+
* @return {boolean}
|
|
29801
|
+
*/
|
|
29802
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.hasSubscriptionCostUsd = function() {
|
|
29803
|
+
return jspb.Message.getField(this, 9) != null;
|
|
29804
|
+
};
|
|
29805
|
+
|
|
29806
|
+
|
|
29759
29807
|
|
|
29760
29808
|
/**
|
|
29761
29809
|
* List of repeated fields within this message type.
|