@miradorlabs/web-grpc 3.3.0 → 3.4.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/admin_gateway.ts +818 -107
- package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +103 -103
- package/proto/gateway/web/v1/admin_gateway_pb.js +1624 -0
- package/proto/gateway/web/v1/ai_gateway.ts +182 -61
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +2 -2
- package/proto/gateway/web/v1/ai_gateway_pb.js +216 -47
- package/proto/gateway/web/v1/reference_gateway.ts +681 -223
- package/proto/gateway/web/v1/reference_gateway_grpc_pb.js +105 -39
- package/proto/gateway/web/v1/reference_gateway_pb.js +1196 -320
- package/proto/gateway/web/v1/model_gateway.ts +0 -728
- package/proto/gateway/web/v1/model_gateway_grpc_pb.js +0 -85
- package/proto/gateway/web/v1/model_gateway_pb.js +0 -1261
|
@@ -878,7 +878,7 @@ export interface AISessionSummary {
|
|
|
878
878
|
/** The efforts the session's model calls ran at; "" when a call reported none. */
|
|
879
879
|
efforts: string[];
|
|
880
880
|
/** Who billed the session's model calls (stored names; map them through ReferenceGatewayService). */
|
|
881
|
-
|
|
881
|
+
billers: string[];
|
|
882
882
|
/** How the session's model-call costs were obtained: 'reported' by the source, 'estimated' by Mirador. */
|
|
883
883
|
costSources: string[];
|
|
884
884
|
/** The seats the session's model calls drew on (an account can change mid-session). */
|
|
@@ -1733,10 +1733,15 @@ export interface ListModelPricesRequest {
|
|
|
1733
1733
|
pageToken: string;
|
|
1734
1734
|
}
|
|
1735
1735
|
|
|
1736
|
+
/**
|
|
1737
|
+
* AIModelPriceFilter selects prices by stored name, matched exactly (any-of within a field, AND across
|
|
1738
|
+
* fields). Filter on a display name by sending every stored name the reference registry maps onto it.
|
|
1739
|
+
*/
|
|
1736
1740
|
export interface AIModelPriceFilter {
|
|
1737
1741
|
source: string[];
|
|
1738
|
-
|
|
1739
|
-
|
|
1742
|
+
biller: string[];
|
|
1743
|
+
modelRaw: string[];
|
|
1744
|
+
providerRaw: string[];
|
|
1740
1745
|
}
|
|
1741
1746
|
|
|
1742
1747
|
export interface ListModelPricesResponse {
|
|
@@ -1749,7 +1754,7 @@ export interface ListModelPricesResponse {
|
|
|
1749
1754
|
export interface ListModelPriceHistoryRequest {
|
|
1750
1755
|
organizationId: string;
|
|
1751
1756
|
projectId: string;
|
|
1752
|
-
/**
|
|
1757
|
+
/** model_raw is required; source, biller and provider_raw narrow it further. */
|
|
1753
1758
|
filter:
|
|
1754
1759
|
| AIModelPriceFilter
|
|
1755
1760
|
| undefined;
|
|
@@ -1766,15 +1771,29 @@ export interface ListModelPriceHistoryResponse {
|
|
|
1766
1771
|
truncated: boolean;
|
|
1767
1772
|
}
|
|
1768
1773
|
|
|
1774
|
+
/**
|
|
1775
|
+
* AIModelPrice is one catalog listing's latest list price, under stored names the caller maps through
|
|
1776
|
+
* the reference registry (ListAIModels / ListAIProviders / ListAIBillers).
|
|
1777
|
+
*/
|
|
1769
1778
|
export interface AIModelPrice {
|
|
1770
1779
|
source: string;
|
|
1771
|
-
|
|
1772
|
-
|
|
1780
|
+
/** The platform that bills for the model (openrouter, anthropic, amazon-bedrock). */
|
|
1781
|
+
biller: string;
|
|
1782
|
+
/** The model as an AI call names it (claude-sonnet-4.5, not anthropic/claude-sonnet-4.5). */
|
|
1783
|
+
modelRaw: string;
|
|
1773
1784
|
scrapedAt: Date | undefined;
|
|
1774
1785
|
inputUsdPerMtok: number;
|
|
1775
1786
|
outputUsdPerMtok: number;
|
|
1776
1787
|
cacheReadUsdPerMtok: number;
|
|
1777
1788
|
cacheWriteUsdPerMtok: number;
|
|
1789
|
+
/** The model vendor the listing names ("anthropic"), "" when it names none. */
|
|
1790
|
+
providerRaw: string;
|
|
1791
|
+
/** The effort the listing prices, "" when the catalog states none (every source today). */
|
|
1792
|
+
effortRaw: string;
|
|
1793
|
+
/** The catalog's exact model id: tells apart two listings of one model at one biller. */
|
|
1794
|
+
listingId: string;
|
|
1795
|
+
/** Normalized geography the price applies to (global, us, eu, ...), "" unscoped. */
|
|
1796
|
+
region: string;
|
|
1778
1797
|
}
|
|
1779
1798
|
|
|
1780
1799
|
export interface AITokenUsage {
|
|
@@ -1828,11 +1847,11 @@ export interface EntitlementsSnapshot {
|
|
|
1828
1847
|
* SeatEntitlement mirrors telemetry.api.v1.SeatEntitlement: one entitlement owner's latest observed
|
|
1829
1848
|
* funding state. Seat-scoped ((source_system, account_id)); principal_id/name best-effort. Seat-scoped:
|
|
1830
1849
|
* windows are one seat's usage bars, never a team-pool sum. credits_balance_raw is verbatim, not USD.
|
|
1831
|
-
* A seat is an entitlement owner (
|
|
1850
|
+
* A seat is an entitlement owner (biller, account_id), linked to a person through its principal and
|
|
1832
1851
|
* the org member an admin linked that principal to. Mirrors telemetry.api.v1.SeatEntitlement.
|
|
1833
1852
|
*/
|
|
1834
1853
|
export interface SeatEntitlement {
|
|
1835
|
-
|
|
1854
|
+
biller: string;
|
|
1836
1855
|
accountId: string;
|
|
1837
1856
|
principalId: string;
|
|
1838
1857
|
principalName: string;
|
|
@@ -2473,7 +2492,7 @@ function createBaseAISessionSummary(): AISessionSummary {
|
|
|
2473
2492
|
sessionVersion: 0,
|
|
2474
2493
|
subagents: 0,
|
|
2475
2494
|
efforts: [],
|
|
2476
|
-
|
|
2495
|
+
billers: [],
|
|
2477
2496
|
costSources: [],
|
|
2478
2497
|
accountIds: [],
|
|
2479
2498
|
observer: "",
|
|
@@ -2562,7 +2581,7 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
2562
2581
|
for (const v of message.efforts) {
|
|
2563
2582
|
writer.uint32(210).string(v!);
|
|
2564
2583
|
}
|
|
2565
|
-
for (const v of message.
|
|
2584
|
+
for (const v of message.billers) {
|
|
2566
2585
|
writer.uint32(218).string(v!);
|
|
2567
2586
|
}
|
|
2568
2587
|
for (const v of message.costSources) {
|
|
@@ -2809,7 +2828,7 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
2809
2828
|
break;
|
|
2810
2829
|
}
|
|
2811
2830
|
|
|
2812
|
-
message.
|
|
2831
|
+
message.billers.push(reader.string());
|
|
2813
2832
|
continue;
|
|
2814
2833
|
}
|
|
2815
2834
|
case 28: {
|
|
@@ -2972,10 +2991,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
2972
2991
|
efforts: globalThis.Array.isArray(object?.efforts)
|
|
2973
2992
|
? object.efforts.map((e: any) => globalThis.String(e))
|
|
2974
2993
|
: [],
|
|
2975
|
-
|
|
2976
|
-
? object.
|
|
2977
|
-
: globalThis.Array.isArray(object?.billing_parties)
|
|
2978
|
-
? object.billing_parties.map((e: any) => globalThis.String(e))
|
|
2994
|
+
billers: globalThis.Array.isArray(object?.billers)
|
|
2995
|
+
? object.billers.map((e: any) => globalThis.String(e))
|
|
2979
2996
|
: [],
|
|
2980
2997
|
costSources: globalThis.Array.isArray(object?.costSources)
|
|
2981
2998
|
? object.costSources.map((e: any) => globalThis.String(e))
|
|
@@ -3079,8 +3096,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
3079
3096
|
if (message.efforts?.length) {
|
|
3080
3097
|
obj.efforts = message.efforts;
|
|
3081
3098
|
}
|
|
3082
|
-
if (message.
|
|
3083
|
-
obj.
|
|
3099
|
+
if (message.billers?.length) {
|
|
3100
|
+
obj.billers = message.billers;
|
|
3084
3101
|
}
|
|
3085
3102
|
if (message.costSources?.length) {
|
|
3086
3103
|
obj.costSources = message.costSources;
|
|
@@ -3133,7 +3150,7 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
3133
3150
|
message.sessionVersion = object.sessionVersion ?? 0;
|
|
3134
3151
|
message.subagents = object.subagents ?? 0;
|
|
3135
3152
|
message.efforts = object.efforts?.map((e) => e) || [];
|
|
3136
|
-
message.
|
|
3153
|
+
message.billers = object.billers?.map((e) => e) || [];
|
|
3137
3154
|
message.costSources = object.costSources?.map((e) => e) || [];
|
|
3138
3155
|
message.accountIds = object.accountIds?.map((e) => e) || [];
|
|
3139
3156
|
message.observer = object.observer ?? "";
|
|
@@ -15551,7 +15568,7 @@ export const ListModelPricesRequest: MessageFns<ListModelPricesRequest> = {
|
|
|
15551
15568
|
};
|
|
15552
15569
|
|
|
15553
15570
|
function createBaseAIModelPriceFilter(): AIModelPriceFilter {
|
|
15554
|
-
return { source: [],
|
|
15571
|
+
return { source: [], biller: [], modelRaw: [], providerRaw: [] };
|
|
15555
15572
|
}
|
|
15556
15573
|
|
|
15557
15574
|
export const AIModelPriceFilter: MessageFns<AIModelPriceFilter> = {
|
|
@@ -15559,12 +15576,15 @@ export const AIModelPriceFilter: MessageFns<AIModelPriceFilter> = {
|
|
|
15559
15576
|
for (const v of message.source) {
|
|
15560
15577
|
writer.uint32(10).string(v!);
|
|
15561
15578
|
}
|
|
15562
|
-
for (const v of message.
|
|
15579
|
+
for (const v of message.biller) {
|
|
15563
15580
|
writer.uint32(18).string(v!);
|
|
15564
15581
|
}
|
|
15565
|
-
for (const v of message.
|
|
15582
|
+
for (const v of message.modelRaw) {
|
|
15566
15583
|
writer.uint32(26).string(v!);
|
|
15567
15584
|
}
|
|
15585
|
+
for (const v of message.providerRaw) {
|
|
15586
|
+
writer.uint32(34).string(v!);
|
|
15587
|
+
}
|
|
15568
15588
|
return writer;
|
|
15569
15589
|
},
|
|
15570
15590
|
|
|
@@ -15594,7 +15614,7 @@ export const AIModelPriceFilter: MessageFns<AIModelPriceFilter> = {
|
|
|
15594
15614
|
break;
|
|
15595
15615
|
}
|
|
15596
15616
|
|
|
15597
|
-
message.
|
|
15617
|
+
message.biller.push(reader.string());
|
|
15598
15618
|
continue;
|
|
15599
15619
|
}
|
|
15600
15620
|
case 3: {
|
|
@@ -15602,7 +15622,15 @@ export const AIModelPriceFilter: MessageFns<AIModelPriceFilter> = {
|
|
|
15602
15622
|
break;
|
|
15603
15623
|
}
|
|
15604
15624
|
|
|
15605
|
-
message.
|
|
15625
|
+
message.modelRaw.push(reader.string());
|
|
15626
|
+
continue;
|
|
15627
|
+
}
|
|
15628
|
+
case 4: {
|
|
15629
|
+
if (tag !== 34) {
|
|
15630
|
+
break;
|
|
15631
|
+
}
|
|
15632
|
+
|
|
15633
|
+
message.providerRaw.push(reader.string());
|
|
15606
15634
|
continue;
|
|
15607
15635
|
}
|
|
15608
15636
|
}
|
|
@@ -15620,8 +15648,17 @@ export const AIModelPriceFilter: MessageFns<AIModelPriceFilter> = {
|
|
|
15620
15648
|
fromJSON(object: any): AIModelPriceFilter {
|
|
15621
15649
|
return {
|
|
15622
15650
|
source: globalThis.Array.isArray(object?.source) ? object.source.map((e: any) => globalThis.String(e)) : [],
|
|
15623
|
-
|
|
15624
|
-
|
|
15651
|
+
biller: globalThis.Array.isArray(object?.biller) ? object.biller.map((e: any) => globalThis.String(e)) : [],
|
|
15652
|
+
modelRaw: globalThis.Array.isArray(object?.modelRaw)
|
|
15653
|
+
? object.modelRaw.map((e: any) => globalThis.String(e))
|
|
15654
|
+
: globalThis.Array.isArray(object?.model_raw)
|
|
15655
|
+
? object.model_raw.map((e: any) => globalThis.String(e))
|
|
15656
|
+
: [],
|
|
15657
|
+
providerRaw: globalThis.Array.isArray(object?.providerRaw)
|
|
15658
|
+
? object.providerRaw.map((e: any) => globalThis.String(e))
|
|
15659
|
+
: globalThis.Array.isArray(object?.provider_raw)
|
|
15660
|
+
? object.provider_raw.map((e: any) => globalThis.String(e))
|
|
15661
|
+
: [],
|
|
15625
15662
|
};
|
|
15626
15663
|
},
|
|
15627
15664
|
|
|
@@ -15630,11 +15667,14 @@ export const AIModelPriceFilter: MessageFns<AIModelPriceFilter> = {
|
|
|
15630
15667
|
if (message.source?.length) {
|
|
15631
15668
|
obj.source = message.source;
|
|
15632
15669
|
}
|
|
15633
|
-
if (message.
|
|
15634
|
-
obj.
|
|
15670
|
+
if (message.biller?.length) {
|
|
15671
|
+
obj.biller = message.biller;
|
|
15635
15672
|
}
|
|
15636
|
-
if (message.
|
|
15637
|
-
obj.
|
|
15673
|
+
if (message.modelRaw?.length) {
|
|
15674
|
+
obj.modelRaw = message.modelRaw;
|
|
15675
|
+
}
|
|
15676
|
+
if (message.providerRaw?.length) {
|
|
15677
|
+
obj.providerRaw = message.providerRaw;
|
|
15638
15678
|
}
|
|
15639
15679
|
return obj;
|
|
15640
15680
|
},
|
|
@@ -15645,8 +15685,9 @@ export const AIModelPriceFilter: MessageFns<AIModelPriceFilter> = {
|
|
|
15645
15685
|
fromPartial<I extends Exact<DeepPartial<AIModelPriceFilter>, I>>(object: I): AIModelPriceFilter {
|
|
15646
15686
|
const message = createBaseAIModelPriceFilter();
|
|
15647
15687
|
message.source = object.source?.map((e) => e) || [];
|
|
15648
|
-
message.
|
|
15649
|
-
message.
|
|
15688
|
+
message.biller = object.biller?.map((e) => e) || [];
|
|
15689
|
+
message.modelRaw = object.modelRaw?.map((e) => e) || [];
|
|
15690
|
+
message.providerRaw = object.providerRaw?.map((e) => e) || [];
|
|
15650
15691
|
return message;
|
|
15651
15692
|
},
|
|
15652
15693
|
};
|
|
@@ -16064,13 +16105,17 @@ export const ListModelPriceHistoryResponse: MessageFns<ListModelPriceHistoryResp
|
|
|
16064
16105
|
function createBaseAIModelPrice(): AIModelPrice {
|
|
16065
16106
|
return {
|
|
16066
16107
|
source: "",
|
|
16067
|
-
|
|
16068
|
-
|
|
16108
|
+
biller: "",
|
|
16109
|
+
modelRaw: "",
|
|
16069
16110
|
scrapedAt: undefined,
|
|
16070
16111
|
inputUsdPerMtok: 0,
|
|
16071
16112
|
outputUsdPerMtok: 0,
|
|
16072
16113
|
cacheReadUsdPerMtok: 0,
|
|
16073
16114
|
cacheWriteUsdPerMtok: 0,
|
|
16115
|
+
providerRaw: "",
|
|
16116
|
+
effortRaw: "",
|
|
16117
|
+
listingId: "",
|
|
16118
|
+
region: "",
|
|
16074
16119
|
};
|
|
16075
16120
|
}
|
|
16076
16121
|
|
|
@@ -16079,11 +16124,11 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
16079
16124
|
if (message.source !== "") {
|
|
16080
16125
|
writer.uint32(10).string(message.source);
|
|
16081
16126
|
}
|
|
16082
|
-
if (message.
|
|
16083
|
-
writer.uint32(18).string(message.
|
|
16127
|
+
if (message.biller !== "") {
|
|
16128
|
+
writer.uint32(18).string(message.biller);
|
|
16084
16129
|
}
|
|
16085
|
-
if (message.
|
|
16086
|
-
writer.uint32(26).string(message.
|
|
16130
|
+
if (message.modelRaw !== "") {
|
|
16131
|
+
writer.uint32(26).string(message.modelRaw);
|
|
16087
16132
|
}
|
|
16088
16133
|
if (message.scrapedAt !== undefined) {
|
|
16089
16134
|
Timestamp.encode(toTimestamp(message.scrapedAt), writer.uint32(34).fork()).join();
|
|
@@ -16100,6 +16145,18 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
16100
16145
|
if (message.cacheWriteUsdPerMtok !== 0) {
|
|
16101
16146
|
writer.uint32(65).double(message.cacheWriteUsdPerMtok);
|
|
16102
16147
|
}
|
|
16148
|
+
if (message.providerRaw !== "") {
|
|
16149
|
+
writer.uint32(74).string(message.providerRaw);
|
|
16150
|
+
}
|
|
16151
|
+
if (message.effortRaw !== "") {
|
|
16152
|
+
writer.uint32(82).string(message.effortRaw);
|
|
16153
|
+
}
|
|
16154
|
+
if (message.listingId !== "") {
|
|
16155
|
+
writer.uint32(90).string(message.listingId);
|
|
16156
|
+
}
|
|
16157
|
+
if (message.region !== "") {
|
|
16158
|
+
writer.uint32(98).string(message.region);
|
|
16159
|
+
}
|
|
16103
16160
|
return writer;
|
|
16104
16161
|
},
|
|
16105
16162
|
|
|
@@ -16129,7 +16186,7 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
16129
16186
|
break;
|
|
16130
16187
|
}
|
|
16131
16188
|
|
|
16132
|
-
message.
|
|
16189
|
+
message.biller = reader.string();
|
|
16133
16190
|
continue;
|
|
16134
16191
|
}
|
|
16135
16192
|
case 3: {
|
|
@@ -16137,7 +16194,7 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
16137
16194
|
break;
|
|
16138
16195
|
}
|
|
16139
16196
|
|
|
16140
|
-
message.
|
|
16197
|
+
message.modelRaw = reader.string();
|
|
16141
16198
|
continue;
|
|
16142
16199
|
}
|
|
16143
16200
|
case 4: {
|
|
@@ -16180,6 +16237,38 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
16180
16237
|
message.cacheWriteUsdPerMtok = reader.double();
|
|
16181
16238
|
continue;
|
|
16182
16239
|
}
|
|
16240
|
+
case 9: {
|
|
16241
|
+
if (tag !== 74) {
|
|
16242
|
+
break;
|
|
16243
|
+
}
|
|
16244
|
+
|
|
16245
|
+
message.providerRaw = reader.string();
|
|
16246
|
+
continue;
|
|
16247
|
+
}
|
|
16248
|
+
case 10: {
|
|
16249
|
+
if (tag !== 82) {
|
|
16250
|
+
break;
|
|
16251
|
+
}
|
|
16252
|
+
|
|
16253
|
+
message.effortRaw = reader.string();
|
|
16254
|
+
continue;
|
|
16255
|
+
}
|
|
16256
|
+
case 11: {
|
|
16257
|
+
if (tag !== 90) {
|
|
16258
|
+
break;
|
|
16259
|
+
}
|
|
16260
|
+
|
|
16261
|
+
message.listingId = reader.string();
|
|
16262
|
+
continue;
|
|
16263
|
+
}
|
|
16264
|
+
case 12: {
|
|
16265
|
+
if (tag !== 98) {
|
|
16266
|
+
break;
|
|
16267
|
+
}
|
|
16268
|
+
|
|
16269
|
+
message.region = reader.string();
|
|
16270
|
+
continue;
|
|
16271
|
+
}
|
|
16183
16272
|
}
|
|
16184
16273
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16185
16274
|
break;
|
|
@@ -16195,8 +16284,12 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
16195
16284
|
fromJSON(object: any): AIModelPrice {
|
|
16196
16285
|
return {
|
|
16197
16286
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
16198
|
-
|
|
16199
|
-
|
|
16287
|
+
biller: isSet(object.biller) ? globalThis.String(object.biller) : "",
|
|
16288
|
+
modelRaw: isSet(object.modelRaw)
|
|
16289
|
+
? globalThis.String(object.modelRaw)
|
|
16290
|
+
: isSet(object.model_raw)
|
|
16291
|
+
? globalThis.String(object.model_raw)
|
|
16292
|
+
: "",
|
|
16200
16293
|
scrapedAt: isSet(object.scrapedAt)
|
|
16201
16294
|
? fromJsonTimestamp(object.scrapedAt)
|
|
16202
16295
|
: isSet(object.scraped_at)
|
|
@@ -16222,6 +16315,22 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
16222
16315
|
: isSet(object.cache_write_usd_per_mtok)
|
|
16223
16316
|
? globalThis.Number(object.cache_write_usd_per_mtok)
|
|
16224
16317
|
: 0,
|
|
16318
|
+
providerRaw: isSet(object.providerRaw)
|
|
16319
|
+
? globalThis.String(object.providerRaw)
|
|
16320
|
+
: isSet(object.provider_raw)
|
|
16321
|
+
? globalThis.String(object.provider_raw)
|
|
16322
|
+
: "",
|
|
16323
|
+
effortRaw: isSet(object.effortRaw)
|
|
16324
|
+
? globalThis.String(object.effortRaw)
|
|
16325
|
+
: isSet(object.effort_raw)
|
|
16326
|
+
? globalThis.String(object.effort_raw)
|
|
16327
|
+
: "",
|
|
16328
|
+
listingId: isSet(object.listingId)
|
|
16329
|
+
? globalThis.String(object.listingId)
|
|
16330
|
+
: isSet(object.listing_id)
|
|
16331
|
+
? globalThis.String(object.listing_id)
|
|
16332
|
+
: "",
|
|
16333
|
+
region: isSet(object.region) ? globalThis.String(object.region) : "",
|
|
16225
16334
|
};
|
|
16226
16335
|
},
|
|
16227
16336
|
|
|
@@ -16230,11 +16339,11 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
16230
16339
|
if (message.source !== "") {
|
|
16231
16340
|
obj.source = message.source;
|
|
16232
16341
|
}
|
|
16233
|
-
if (message.
|
|
16234
|
-
obj.
|
|
16342
|
+
if (message.biller !== "") {
|
|
16343
|
+
obj.biller = message.biller;
|
|
16235
16344
|
}
|
|
16236
|
-
if (message.
|
|
16237
|
-
obj.
|
|
16345
|
+
if (message.modelRaw !== "") {
|
|
16346
|
+
obj.modelRaw = message.modelRaw;
|
|
16238
16347
|
}
|
|
16239
16348
|
if (message.scrapedAt !== undefined) {
|
|
16240
16349
|
obj.scrapedAt = message.scrapedAt.toISOString();
|
|
@@ -16251,6 +16360,18 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
16251
16360
|
if (message.cacheWriteUsdPerMtok !== 0) {
|
|
16252
16361
|
obj.cacheWriteUsdPerMtok = message.cacheWriteUsdPerMtok;
|
|
16253
16362
|
}
|
|
16363
|
+
if (message.providerRaw !== "") {
|
|
16364
|
+
obj.providerRaw = message.providerRaw;
|
|
16365
|
+
}
|
|
16366
|
+
if (message.effortRaw !== "") {
|
|
16367
|
+
obj.effortRaw = message.effortRaw;
|
|
16368
|
+
}
|
|
16369
|
+
if (message.listingId !== "") {
|
|
16370
|
+
obj.listingId = message.listingId;
|
|
16371
|
+
}
|
|
16372
|
+
if (message.region !== "") {
|
|
16373
|
+
obj.region = message.region;
|
|
16374
|
+
}
|
|
16254
16375
|
return obj;
|
|
16255
16376
|
},
|
|
16256
16377
|
|
|
@@ -16260,13 +16381,17 @@ export const AIModelPrice: MessageFns<AIModelPrice> = {
|
|
|
16260
16381
|
fromPartial<I extends Exact<DeepPartial<AIModelPrice>, I>>(object: I): AIModelPrice {
|
|
16261
16382
|
const message = createBaseAIModelPrice();
|
|
16262
16383
|
message.source = object.source ?? "";
|
|
16263
|
-
message.
|
|
16264
|
-
message.
|
|
16384
|
+
message.biller = object.biller ?? "";
|
|
16385
|
+
message.modelRaw = object.modelRaw ?? "";
|
|
16265
16386
|
message.scrapedAt = object.scrapedAt ?? undefined;
|
|
16266
16387
|
message.inputUsdPerMtok = object.inputUsdPerMtok ?? 0;
|
|
16267
16388
|
message.outputUsdPerMtok = object.outputUsdPerMtok ?? 0;
|
|
16268
16389
|
message.cacheReadUsdPerMtok = object.cacheReadUsdPerMtok ?? 0;
|
|
16269
16390
|
message.cacheWriteUsdPerMtok = object.cacheWriteUsdPerMtok ?? 0;
|
|
16391
|
+
message.providerRaw = object.providerRaw ?? "";
|
|
16392
|
+
message.effortRaw = object.effortRaw ?? "";
|
|
16393
|
+
message.listingId = object.listingId ?? "";
|
|
16394
|
+
message.region = object.region ?? "";
|
|
16270
16395
|
return message;
|
|
16271
16396
|
},
|
|
16272
16397
|
};
|
|
@@ -16839,7 +16964,7 @@ export const EntitlementsSnapshot: MessageFns<EntitlementsSnapshot> = {
|
|
|
16839
16964
|
|
|
16840
16965
|
function createBaseSeatEntitlement(): SeatEntitlement {
|
|
16841
16966
|
return {
|
|
16842
|
-
|
|
16967
|
+
biller: "",
|
|
16843
16968
|
accountId: "",
|
|
16844
16969
|
principalId: "",
|
|
16845
16970
|
principalName: "",
|
|
@@ -16859,8 +16984,8 @@ function createBaseSeatEntitlement(): SeatEntitlement {
|
|
|
16859
16984
|
|
|
16860
16985
|
export const SeatEntitlement: MessageFns<SeatEntitlement> = {
|
|
16861
16986
|
encode(message: SeatEntitlement, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
16862
|
-
if (message.
|
|
16863
|
-
writer.uint32(10).string(message.
|
|
16987
|
+
if (message.biller !== "") {
|
|
16988
|
+
writer.uint32(10).string(message.biller);
|
|
16864
16989
|
}
|
|
16865
16990
|
if (message.accountId !== "") {
|
|
16866
16991
|
writer.uint32(18).string(message.accountId);
|
|
@@ -16925,7 +17050,7 @@ export const SeatEntitlement: MessageFns<SeatEntitlement> = {
|
|
|
16925
17050
|
break;
|
|
16926
17051
|
}
|
|
16927
17052
|
|
|
16928
|
-
message.
|
|
17053
|
+
message.biller = reader.string();
|
|
16929
17054
|
continue;
|
|
16930
17055
|
}
|
|
16931
17056
|
case 2: {
|
|
@@ -17054,11 +17179,7 @@ export const SeatEntitlement: MessageFns<SeatEntitlement> = {
|
|
|
17054
17179
|
|
|
17055
17180
|
fromJSON(object: any): SeatEntitlement {
|
|
17056
17181
|
return {
|
|
17057
|
-
|
|
17058
|
-
? globalThis.String(object.billingParty)
|
|
17059
|
-
: isSet(object.billing_party)
|
|
17060
|
-
? globalThis.String(object.billing_party)
|
|
17061
|
-
: "",
|
|
17182
|
+
biller: isSet(object.biller) ? globalThis.String(object.biller) : "",
|
|
17062
17183
|
accountId: isSet(object.accountId)
|
|
17063
17184
|
? globalThis.String(object.accountId)
|
|
17064
17185
|
: isSet(object.account_id)
|
|
@@ -17132,8 +17253,8 @@ export const SeatEntitlement: MessageFns<SeatEntitlement> = {
|
|
|
17132
17253
|
|
|
17133
17254
|
toJSON(message: SeatEntitlement): unknown {
|
|
17134
17255
|
const obj: any = {};
|
|
17135
|
-
if (message.
|
|
17136
|
-
obj.
|
|
17256
|
+
if (message.biller !== "") {
|
|
17257
|
+
obj.biller = message.biller;
|
|
17137
17258
|
}
|
|
17138
17259
|
if (message.accountId !== "") {
|
|
17139
17260
|
obj.accountId = message.accountId;
|
|
@@ -17185,7 +17306,7 @@ export const SeatEntitlement: MessageFns<SeatEntitlement> = {
|
|
|
17185
17306
|
},
|
|
17186
17307
|
fromPartial<I extends Exact<DeepPartial<SeatEntitlement>, I>>(object: I): SeatEntitlement {
|
|
17187
17308
|
const message = createBaseSeatEntitlement();
|
|
17188
|
-
message.
|
|
17309
|
+
message.biller = object.biller ?? "";
|
|
17189
17310
|
message.accountId = object.accountId ?? "";
|
|
17190
17311
|
message.principalId = object.principalId ?? "";
|
|
17191
17312
|
message.principalName = object.principalName ?? "";
|
|
@@ -17428,11 +17549,11 @@ export interface AIGatewayService {
|
|
|
17428
17549
|
* unverified, a complete snapshot re-derived each tick.
|
|
17429
17550
|
*/
|
|
17430
17551
|
StreamFilesSummary(request: FilesSummaryRequest, metadata?: Metadata): Observable<FilesSummary>;
|
|
17431
|
-
/** Latest observed list price per
|
|
17552
|
+
/** Latest observed list price per catalog listing from the global catalog, under stored names. */
|
|
17432
17553
|
ListModelPrices(request: ListModelPricesRequest, metadata?: Metadata): Promise<ListModelPricesResponse>;
|
|
17433
17554
|
/**
|
|
17434
17555
|
* Every stored observation for the filtered models over a time range, oldest first —
|
|
17435
|
-
* the rows ListModelPrices collapses. filter.
|
|
17556
|
+
* the rows ListModelPrices collapses. filter.model_raw is required.
|
|
17436
17557
|
*/
|
|
17437
17558
|
ListModelPriceHistory(
|
|
17438
17559
|
request: ListModelPriceHistoryRequest,
|
|
@@ -713,7 +713,7 @@ streamFilesSummary: {
|
|
|
713
713
|
responseSerialize: serialize_gateway_web_v1_FilesSummary,
|
|
714
714
|
responseDeserialize: deserialize_gateway_web_v1_FilesSummary,
|
|
715
715
|
},
|
|
716
|
-
// Latest observed list price per
|
|
716
|
+
// Latest observed list price per catalog listing from the global catalog, under stored names.
|
|
717
717
|
listModelPrices: {
|
|
718
718
|
path: '/gateway.web.v1.AIGatewayService/ListModelPrices',
|
|
719
719
|
requestStream: false,
|
|
@@ -726,7 +726,7 @@ listModelPrices: {
|
|
|
726
726
|
responseDeserialize: deserialize_gateway_web_v1_ListModelPricesResponse,
|
|
727
727
|
},
|
|
728
728
|
// Every stored observation for the filtered models over a time range, oldest first —
|
|
729
|
-
// the rows ListModelPrices collapses. filter.
|
|
729
|
+
// the rows ListModelPrices collapses. filter.model_raw is required.
|
|
730
730
|
listModelPriceHistory: {
|
|
731
731
|
path: '/gateway.web.v1.AIGatewayService/ListModelPriceHistory',
|
|
732
732
|
requestStream: false,
|