@miradorlabs/web-grpc 2.68.0 → 2.71.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/ai_gateway.ts +0 -493
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +0 -35
- package/proto/gateway/web/v1/ai_gateway_pb.js +0 -867
- package/proto/gateway/web/v1/metric_gateway.ts +389 -0
- package/proto/gateway/web/v1/metric_gateway_grpc_pb.js +39 -0
- package/proto/gateway/web/v1/metric_gateway_pb.js +786 -0
package/package.json
CHANGED
|
@@ -1613,34 +1613,6 @@ export interface AIFileRow {
|
|
|
1613
1613
|
subscriptionUnlandedCostUsd: number;
|
|
1614
1614
|
}
|
|
1615
1615
|
|
|
1616
|
-
export interface BurnMapRequest {
|
|
1617
|
-
organizationId: string;
|
|
1618
|
-
projectId: string;
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
export interface BurnMapResponse {
|
|
1622
|
-
status: ResponseStatus | undefined;
|
|
1623
|
-
nodes: BurnMapNode[];
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
/**
|
|
1627
|
-
* BurnMapNode is one (repository, directory) tile, pre-aggregated. Net = notional − subscription on either
|
|
1628
|
-
* axis; the client derives landed = total − unlanded and picks the tile metric.
|
|
1629
|
-
*/
|
|
1630
|
-
export interface BurnMapNode {
|
|
1631
|
-
repositoryKey: string;
|
|
1632
|
-
directory: string;
|
|
1633
|
-
files: number;
|
|
1634
|
-
landedFiles: number;
|
|
1635
|
-
discardedFiles: number;
|
|
1636
|
-
edits: number;
|
|
1637
|
-
distinctSessions: number;
|
|
1638
|
-
unlandedCostUsd: number;
|
|
1639
|
-
subscriptionUnlandedCostUsd: number;
|
|
1640
|
-
totalCostUsd: number;
|
|
1641
|
-
subscriptionTotalCostUsd: number;
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
1616
|
export interface FilesSummaryRequest {
|
|
1645
1617
|
organizationId: string;
|
|
1646
1618
|
projectId: string;
|
|
@@ -13920,459 +13892,6 @@ export const AIFileRow: MessageFns<AIFileRow> = {
|
|
|
13920
13892
|
},
|
|
13921
13893
|
};
|
|
13922
13894
|
|
|
13923
|
-
function createBaseBurnMapRequest(): BurnMapRequest {
|
|
13924
|
-
return { organizationId: "", projectId: "" };
|
|
13925
|
-
}
|
|
13926
|
-
|
|
13927
|
-
export const BurnMapRequest: MessageFns<BurnMapRequest> = {
|
|
13928
|
-
encode(message: BurnMapRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
13929
|
-
if (message.organizationId !== "") {
|
|
13930
|
-
writer.uint32(10).string(message.organizationId);
|
|
13931
|
-
}
|
|
13932
|
-
if (message.projectId !== "") {
|
|
13933
|
-
writer.uint32(18).string(message.projectId);
|
|
13934
|
-
}
|
|
13935
|
-
return writer;
|
|
13936
|
-
},
|
|
13937
|
-
|
|
13938
|
-
decode(input: BinaryReader | Uint8Array, length?: number): BurnMapRequest {
|
|
13939
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13940
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
13941
|
-
if (previousRecursionDepth >= 100) {
|
|
13942
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
13943
|
-
}
|
|
13944
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
13945
|
-
try {
|
|
13946
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13947
|
-
const message = createBaseBurnMapRequest();
|
|
13948
|
-
while (reader.pos < end) {
|
|
13949
|
-
const tag = reader.uint32();
|
|
13950
|
-
switch (tag >>> 3) {
|
|
13951
|
-
case 1: {
|
|
13952
|
-
if (tag !== 10) {
|
|
13953
|
-
break;
|
|
13954
|
-
}
|
|
13955
|
-
|
|
13956
|
-
message.organizationId = reader.string();
|
|
13957
|
-
continue;
|
|
13958
|
-
}
|
|
13959
|
-
case 2: {
|
|
13960
|
-
if (tag !== 18) {
|
|
13961
|
-
break;
|
|
13962
|
-
}
|
|
13963
|
-
|
|
13964
|
-
message.projectId = reader.string();
|
|
13965
|
-
continue;
|
|
13966
|
-
}
|
|
13967
|
-
}
|
|
13968
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
13969
|
-
break;
|
|
13970
|
-
}
|
|
13971
|
-
reader.skip(tag & 7);
|
|
13972
|
-
}
|
|
13973
|
-
return message;
|
|
13974
|
-
} finally {
|
|
13975
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
13976
|
-
}
|
|
13977
|
-
},
|
|
13978
|
-
|
|
13979
|
-
fromJSON(object: any): BurnMapRequest {
|
|
13980
|
-
return {
|
|
13981
|
-
organizationId: isSet(object.organizationId)
|
|
13982
|
-
? globalThis.String(object.organizationId)
|
|
13983
|
-
: isSet(object.organization_id)
|
|
13984
|
-
? globalThis.String(object.organization_id)
|
|
13985
|
-
: "",
|
|
13986
|
-
projectId: isSet(object.projectId)
|
|
13987
|
-
? globalThis.String(object.projectId)
|
|
13988
|
-
: isSet(object.project_id)
|
|
13989
|
-
? globalThis.String(object.project_id)
|
|
13990
|
-
: "",
|
|
13991
|
-
};
|
|
13992
|
-
},
|
|
13993
|
-
|
|
13994
|
-
toJSON(message: BurnMapRequest): unknown {
|
|
13995
|
-
const obj: any = {};
|
|
13996
|
-
if (message.organizationId !== "") {
|
|
13997
|
-
obj.organizationId = message.organizationId;
|
|
13998
|
-
}
|
|
13999
|
-
if (message.projectId !== "") {
|
|
14000
|
-
obj.projectId = message.projectId;
|
|
14001
|
-
}
|
|
14002
|
-
return obj;
|
|
14003
|
-
},
|
|
14004
|
-
|
|
14005
|
-
create<I extends Exact<DeepPartial<BurnMapRequest>, I>>(base?: I): BurnMapRequest {
|
|
14006
|
-
return BurnMapRequest.fromPartial(base ?? ({} as any));
|
|
14007
|
-
},
|
|
14008
|
-
fromPartial<I extends Exact<DeepPartial<BurnMapRequest>, I>>(object: I): BurnMapRequest {
|
|
14009
|
-
const message = createBaseBurnMapRequest();
|
|
14010
|
-
message.organizationId = object.organizationId ?? "";
|
|
14011
|
-
message.projectId = object.projectId ?? "";
|
|
14012
|
-
return message;
|
|
14013
|
-
},
|
|
14014
|
-
};
|
|
14015
|
-
|
|
14016
|
-
function createBaseBurnMapResponse(): BurnMapResponse {
|
|
14017
|
-
return { status: undefined, nodes: [] };
|
|
14018
|
-
}
|
|
14019
|
-
|
|
14020
|
-
export const BurnMapResponse: MessageFns<BurnMapResponse> = {
|
|
14021
|
-
encode(message: BurnMapResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
14022
|
-
if (message.status !== undefined) {
|
|
14023
|
-
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
14024
|
-
}
|
|
14025
|
-
for (const v of message.nodes) {
|
|
14026
|
-
BurnMapNode.encode(v!, writer.uint32(18).fork()).join();
|
|
14027
|
-
}
|
|
14028
|
-
return writer;
|
|
14029
|
-
},
|
|
14030
|
-
|
|
14031
|
-
decode(input: BinaryReader | Uint8Array, length?: number): BurnMapResponse {
|
|
14032
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
14033
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
14034
|
-
if (previousRecursionDepth >= 100) {
|
|
14035
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
14036
|
-
}
|
|
14037
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
14038
|
-
try {
|
|
14039
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14040
|
-
const message = createBaseBurnMapResponse();
|
|
14041
|
-
while (reader.pos < end) {
|
|
14042
|
-
const tag = reader.uint32();
|
|
14043
|
-
switch (tag >>> 3) {
|
|
14044
|
-
case 1: {
|
|
14045
|
-
if (tag !== 10) {
|
|
14046
|
-
break;
|
|
14047
|
-
}
|
|
14048
|
-
|
|
14049
|
-
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
14050
|
-
continue;
|
|
14051
|
-
}
|
|
14052
|
-
case 2: {
|
|
14053
|
-
if (tag !== 18) {
|
|
14054
|
-
break;
|
|
14055
|
-
}
|
|
14056
|
-
|
|
14057
|
-
message.nodes.push(BurnMapNode.decode(reader, reader.uint32()));
|
|
14058
|
-
continue;
|
|
14059
|
-
}
|
|
14060
|
-
}
|
|
14061
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
14062
|
-
break;
|
|
14063
|
-
}
|
|
14064
|
-
reader.skip(tag & 7);
|
|
14065
|
-
}
|
|
14066
|
-
return message;
|
|
14067
|
-
} finally {
|
|
14068
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
14069
|
-
}
|
|
14070
|
-
},
|
|
14071
|
-
|
|
14072
|
-
fromJSON(object: any): BurnMapResponse {
|
|
14073
|
-
return {
|
|
14074
|
-
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
14075
|
-
nodes: globalThis.Array.isArray(object?.nodes) ? object.nodes.map((e: any) => BurnMapNode.fromJSON(e)) : [],
|
|
14076
|
-
};
|
|
14077
|
-
},
|
|
14078
|
-
|
|
14079
|
-
toJSON(message: BurnMapResponse): unknown {
|
|
14080
|
-
const obj: any = {};
|
|
14081
|
-
if (message.status !== undefined) {
|
|
14082
|
-
obj.status = ResponseStatus.toJSON(message.status);
|
|
14083
|
-
}
|
|
14084
|
-
if (message.nodes?.length) {
|
|
14085
|
-
obj.nodes = message.nodes.map((e) => BurnMapNode.toJSON(e));
|
|
14086
|
-
}
|
|
14087
|
-
return obj;
|
|
14088
|
-
},
|
|
14089
|
-
|
|
14090
|
-
create<I extends Exact<DeepPartial<BurnMapResponse>, I>>(base?: I): BurnMapResponse {
|
|
14091
|
-
return BurnMapResponse.fromPartial(base ?? ({} as any));
|
|
14092
|
-
},
|
|
14093
|
-
fromPartial<I extends Exact<DeepPartial<BurnMapResponse>, I>>(object: I): BurnMapResponse {
|
|
14094
|
-
const message = createBaseBurnMapResponse();
|
|
14095
|
-
message.status = (object.status !== undefined && object.status !== null)
|
|
14096
|
-
? ResponseStatus.fromPartial(object.status)
|
|
14097
|
-
: undefined;
|
|
14098
|
-
message.nodes = object.nodes?.map((e) => BurnMapNode.fromPartial(e)) || [];
|
|
14099
|
-
return message;
|
|
14100
|
-
},
|
|
14101
|
-
};
|
|
14102
|
-
|
|
14103
|
-
function createBaseBurnMapNode(): BurnMapNode {
|
|
14104
|
-
return {
|
|
14105
|
-
repositoryKey: "",
|
|
14106
|
-
directory: "",
|
|
14107
|
-
files: 0,
|
|
14108
|
-
landedFiles: 0,
|
|
14109
|
-
discardedFiles: 0,
|
|
14110
|
-
edits: 0,
|
|
14111
|
-
distinctSessions: 0,
|
|
14112
|
-
unlandedCostUsd: 0,
|
|
14113
|
-
subscriptionUnlandedCostUsd: 0,
|
|
14114
|
-
totalCostUsd: 0,
|
|
14115
|
-
subscriptionTotalCostUsd: 0,
|
|
14116
|
-
};
|
|
14117
|
-
}
|
|
14118
|
-
|
|
14119
|
-
export const BurnMapNode: MessageFns<BurnMapNode> = {
|
|
14120
|
-
encode(message: BurnMapNode, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
14121
|
-
if (message.repositoryKey !== "") {
|
|
14122
|
-
writer.uint32(10).string(message.repositoryKey);
|
|
14123
|
-
}
|
|
14124
|
-
if (message.directory !== "") {
|
|
14125
|
-
writer.uint32(18).string(message.directory);
|
|
14126
|
-
}
|
|
14127
|
-
if (message.files !== 0) {
|
|
14128
|
-
writer.uint32(24).uint64(message.files);
|
|
14129
|
-
}
|
|
14130
|
-
if (message.landedFiles !== 0) {
|
|
14131
|
-
writer.uint32(32).uint64(message.landedFiles);
|
|
14132
|
-
}
|
|
14133
|
-
if (message.discardedFiles !== 0) {
|
|
14134
|
-
writer.uint32(40).uint64(message.discardedFiles);
|
|
14135
|
-
}
|
|
14136
|
-
if (message.edits !== 0) {
|
|
14137
|
-
writer.uint32(48).uint64(message.edits);
|
|
14138
|
-
}
|
|
14139
|
-
if (message.distinctSessions !== 0) {
|
|
14140
|
-
writer.uint32(56).uint64(message.distinctSessions);
|
|
14141
|
-
}
|
|
14142
|
-
if (message.unlandedCostUsd !== 0) {
|
|
14143
|
-
writer.uint32(65).double(message.unlandedCostUsd);
|
|
14144
|
-
}
|
|
14145
|
-
if (message.subscriptionUnlandedCostUsd !== 0) {
|
|
14146
|
-
writer.uint32(73).double(message.subscriptionUnlandedCostUsd);
|
|
14147
|
-
}
|
|
14148
|
-
if (message.totalCostUsd !== 0) {
|
|
14149
|
-
writer.uint32(81).double(message.totalCostUsd);
|
|
14150
|
-
}
|
|
14151
|
-
if (message.subscriptionTotalCostUsd !== 0) {
|
|
14152
|
-
writer.uint32(89).double(message.subscriptionTotalCostUsd);
|
|
14153
|
-
}
|
|
14154
|
-
return writer;
|
|
14155
|
-
},
|
|
14156
|
-
|
|
14157
|
-
decode(input: BinaryReader | Uint8Array, length?: number): BurnMapNode {
|
|
14158
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
14159
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
14160
|
-
if (previousRecursionDepth >= 100) {
|
|
14161
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
14162
|
-
}
|
|
14163
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
14164
|
-
try {
|
|
14165
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14166
|
-
const message = createBaseBurnMapNode();
|
|
14167
|
-
while (reader.pos < end) {
|
|
14168
|
-
const tag = reader.uint32();
|
|
14169
|
-
switch (tag >>> 3) {
|
|
14170
|
-
case 1: {
|
|
14171
|
-
if (tag !== 10) {
|
|
14172
|
-
break;
|
|
14173
|
-
}
|
|
14174
|
-
|
|
14175
|
-
message.repositoryKey = reader.string();
|
|
14176
|
-
continue;
|
|
14177
|
-
}
|
|
14178
|
-
case 2: {
|
|
14179
|
-
if (tag !== 18) {
|
|
14180
|
-
break;
|
|
14181
|
-
}
|
|
14182
|
-
|
|
14183
|
-
message.directory = reader.string();
|
|
14184
|
-
continue;
|
|
14185
|
-
}
|
|
14186
|
-
case 3: {
|
|
14187
|
-
if (tag !== 24) {
|
|
14188
|
-
break;
|
|
14189
|
-
}
|
|
14190
|
-
|
|
14191
|
-
message.files = longToNumber(reader.uint64());
|
|
14192
|
-
continue;
|
|
14193
|
-
}
|
|
14194
|
-
case 4: {
|
|
14195
|
-
if (tag !== 32) {
|
|
14196
|
-
break;
|
|
14197
|
-
}
|
|
14198
|
-
|
|
14199
|
-
message.landedFiles = longToNumber(reader.uint64());
|
|
14200
|
-
continue;
|
|
14201
|
-
}
|
|
14202
|
-
case 5: {
|
|
14203
|
-
if (tag !== 40) {
|
|
14204
|
-
break;
|
|
14205
|
-
}
|
|
14206
|
-
|
|
14207
|
-
message.discardedFiles = longToNumber(reader.uint64());
|
|
14208
|
-
continue;
|
|
14209
|
-
}
|
|
14210
|
-
case 6: {
|
|
14211
|
-
if (tag !== 48) {
|
|
14212
|
-
break;
|
|
14213
|
-
}
|
|
14214
|
-
|
|
14215
|
-
message.edits = longToNumber(reader.uint64());
|
|
14216
|
-
continue;
|
|
14217
|
-
}
|
|
14218
|
-
case 7: {
|
|
14219
|
-
if (tag !== 56) {
|
|
14220
|
-
break;
|
|
14221
|
-
}
|
|
14222
|
-
|
|
14223
|
-
message.distinctSessions = longToNumber(reader.uint64());
|
|
14224
|
-
continue;
|
|
14225
|
-
}
|
|
14226
|
-
case 8: {
|
|
14227
|
-
if (tag !== 65) {
|
|
14228
|
-
break;
|
|
14229
|
-
}
|
|
14230
|
-
|
|
14231
|
-
message.unlandedCostUsd = reader.double();
|
|
14232
|
-
continue;
|
|
14233
|
-
}
|
|
14234
|
-
case 9: {
|
|
14235
|
-
if (tag !== 73) {
|
|
14236
|
-
break;
|
|
14237
|
-
}
|
|
14238
|
-
|
|
14239
|
-
message.subscriptionUnlandedCostUsd = reader.double();
|
|
14240
|
-
continue;
|
|
14241
|
-
}
|
|
14242
|
-
case 10: {
|
|
14243
|
-
if (tag !== 81) {
|
|
14244
|
-
break;
|
|
14245
|
-
}
|
|
14246
|
-
|
|
14247
|
-
message.totalCostUsd = reader.double();
|
|
14248
|
-
continue;
|
|
14249
|
-
}
|
|
14250
|
-
case 11: {
|
|
14251
|
-
if (tag !== 89) {
|
|
14252
|
-
break;
|
|
14253
|
-
}
|
|
14254
|
-
|
|
14255
|
-
message.subscriptionTotalCostUsd = reader.double();
|
|
14256
|
-
continue;
|
|
14257
|
-
}
|
|
14258
|
-
}
|
|
14259
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
14260
|
-
break;
|
|
14261
|
-
}
|
|
14262
|
-
reader.skip(tag & 7);
|
|
14263
|
-
}
|
|
14264
|
-
return message;
|
|
14265
|
-
} finally {
|
|
14266
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
14267
|
-
}
|
|
14268
|
-
},
|
|
14269
|
-
|
|
14270
|
-
fromJSON(object: any): BurnMapNode {
|
|
14271
|
-
return {
|
|
14272
|
-
repositoryKey: isSet(object.repositoryKey)
|
|
14273
|
-
? globalThis.String(object.repositoryKey)
|
|
14274
|
-
: isSet(object.repository_key)
|
|
14275
|
-
? globalThis.String(object.repository_key)
|
|
14276
|
-
: "",
|
|
14277
|
-
directory: isSet(object.directory) ? globalThis.String(object.directory) : "",
|
|
14278
|
-
files: isSet(object.files) ? globalThis.Number(object.files) : 0,
|
|
14279
|
-
landedFiles: isSet(object.landedFiles)
|
|
14280
|
-
? globalThis.Number(object.landedFiles)
|
|
14281
|
-
: isSet(object.landed_files)
|
|
14282
|
-
? globalThis.Number(object.landed_files)
|
|
14283
|
-
: 0,
|
|
14284
|
-
discardedFiles: isSet(object.discardedFiles)
|
|
14285
|
-
? globalThis.Number(object.discardedFiles)
|
|
14286
|
-
: isSet(object.discarded_files)
|
|
14287
|
-
? globalThis.Number(object.discarded_files)
|
|
14288
|
-
: 0,
|
|
14289
|
-
edits: isSet(object.edits) ? globalThis.Number(object.edits) : 0,
|
|
14290
|
-
distinctSessions: isSet(object.distinctSessions)
|
|
14291
|
-
? globalThis.Number(object.distinctSessions)
|
|
14292
|
-
: isSet(object.distinct_sessions)
|
|
14293
|
-
? globalThis.Number(object.distinct_sessions)
|
|
14294
|
-
: 0,
|
|
14295
|
-
unlandedCostUsd: isSet(object.unlandedCostUsd)
|
|
14296
|
-
? globalThis.Number(object.unlandedCostUsd)
|
|
14297
|
-
: isSet(object.unlanded_cost_usd)
|
|
14298
|
-
? globalThis.Number(object.unlanded_cost_usd)
|
|
14299
|
-
: 0,
|
|
14300
|
-
subscriptionUnlandedCostUsd: isSet(object.subscriptionUnlandedCostUsd)
|
|
14301
|
-
? globalThis.Number(object.subscriptionUnlandedCostUsd)
|
|
14302
|
-
: isSet(object.subscription_unlanded_cost_usd)
|
|
14303
|
-
? globalThis.Number(object.subscription_unlanded_cost_usd)
|
|
14304
|
-
: 0,
|
|
14305
|
-
totalCostUsd: isSet(object.totalCostUsd)
|
|
14306
|
-
? globalThis.Number(object.totalCostUsd)
|
|
14307
|
-
: isSet(object.total_cost_usd)
|
|
14308
|
-
? globalThis.Number(object.total_cost_usd)
|
|
14309
|
-
: 0,
|
|
14310
|
-
subscriptionTotalCostUsd: isSet(object.subscriptionTotalCostUsd)
|
|
14311
|
-
? globalThis.Number(object.subscriptionTotalCostUsd)
|
|
14312
|
-
: isSet(object.subscription_total_cost_usd)
|
|
14313
|
-
? globalThis.Number(object.subscription_total_cost_usd)
|
|
14314
|
-
: 0,
|
|
14315
|
-
};
|
|
14316
|
-
},
|
|
14317
|
-
|
|
14318
|
-
toJSON(message: BurnMapNode): unknown {
|
|
14319
|
-
const obj: any = {};
|
|
14320
|
-
if (message.repositoryKey !== "") {
|
|
14321
|
-
obj.repositoryKey = message.repositoryKey;
|
|
14322
|
-
}
|
|
14323
|
-
if (message.directory !== "") {
|
|
14324
|
-
obj.directory = message.directory;
|
|
14325
|
-
}
|
|
14326
|
-
if (message.files !== 0) {
|
|
14327
|
-
obj.files = Math.round(message.files);
|
|
14328
|
-
}
|
|
14329
|
-
if (message.landedFiles !== 0) {
|
|
14330
|
-
obj.landedFiles = Math.round(message.landedFiles);
|
|
14331
|
-
}
|
|
14332
|
-
if (message.discardedFiles !== 0) {
|
|
14333
|
-
obj.discardedFiles = Math.round(message.discardedFiles);
|
|
14334
|
-
}
|
|
14335
|
-
if (message.edits !== 0) {
|
|
14336
|
-
obj.edits = Math.round(message.edits);
|
|
14337
|
-
}
|
|
14338
|
-
if (message.distinctSessions !== 0) {
|
|
14339
|
-
obj.distinctSessions = Math.round(message.distinctSessions);
|
|
14340
|
-
}
|
|
14341
|
-
if (message.unlandedCostUsd !== 0) {
|
|
14342
|
-
obj.unlandedCostUsd = message.unlandedCostUsd;
|
|
14343
|
-
}
|
|
14344
|
-
if (message.subscriptionUnlandedCostUsd !== 0) {
|
|
14345
|
-
obj.subscriptionUnlandedCostUsd = message.subscriptionUnlandedCostUsd;
|
|
14346
|
-
}
|
|
14347
|
-
if (message.totalCostUsd !== 0) {
|
|
14348
|
-
obj.totalCostUsd = message.totalCostUsd;
|
|
14349
|
-
}
|
|
14350
|
-
if (message.subscriptionTotalCostUsd !== 0) {
|
|
14351
|
-
obj.subscriptionTotalCostUsd = message.subscriptionTotalCostUsd;
|
|
14352
|
-
}
|
|
14353
|
-
return obj;
|
|
14354
|
-
},
|
|
14355
|
-
|
|
14356
|
-
create<I extends Exact<DeepPartial<BurnMapNode>, I>>(base?: I): BurnMapNode {
|
|
14357
|
-
return BurnMapNode.fromPartial(base ?? ({} as any));
|
|
14358
|
-
},
|
|
14359
|
-
fromPartial<I extends Exact<DeepPartial<BurnMapNode>, I>>(object: I): BurnMapNode {
|
|
14360
|
-
const message = createBaseBurnMapNode();
|
|
14361
|
-
message.repositoryKey = object.repositoryKey ?? "";
|
|
14362
|
-
message.directory = object.directory ?? "";
|
|
14363
|
-
message.files = object.files ?? 0;
|
|
14364
|
-
message.landedFiles = object.landedFiles ?? 0;
|
|
14365
|
-
message.discardedFiles = object.discardedFiles ?? 0;
|
|
14366
|
-
message.edits = object.edits ?? 0;
|
|
14367
|
-
message.distinctSessions = object.distinctSessions ?? 0;
|
|
14368
|
-
message.unlandedCostUsd = object.unlandedCostUsd ?? 0;
|
|
14369
|
-
message.subscriptionUnlandedCostUsd = object.subscriptionUnlandedCostUsd ?? 0;
|
|
14370
|
-
message.totalCostUsd = object.totalCostUsd ?? 0;
|
|
14371
|
-
message.subscriptionTotalCostUsd = object.subscriptionTotalCostUsd ?? 0;
|
|
14372
|
-
return message;
|
|
14373
|
-
},
|
|
14374
|
-
};
|
|
14375
|
-
|
|
14376
13895
|
function createBaseFilesSummaryRequest(): FilesSummaryRequest {
|
|
14377
13896
|
return { organizationId: "", projectId: "", filter: undefined, abandonedHorizon: undefined, groupBy: 0 };
|
|
14378
13897
|
}
|
|
@@ -17109,11 +16628,6 @@ export interface AIGatewayService {
|
|
|
17109
16628
|
* unverified, a complete snapshot re-derived each tick.
|
|
17110
16629
|
*/
|
|
17111
16630
|
StreamFilesSummary(request: FilesSummaryRequest, metadata?: Metadata): Observable<FilesSummary>;
|
|
17112
|
-
/**
|
|
17113
|
-
* GetBurnMap returns the burn-map treemap pre-aggregated by (repository, directory) so the client no
|
|
17114
|
-
* longer pulls every file row to group in the browser. Squarify geometry stays client-side.
|
|
17115
|
-
*/
|
|
17116
|
-
GetBurnMap(request: BurnMapRequest, metadata?: Metadata): Promise<BurnMapResponse>;
|
|
17117
16631
|
/** Latest observed list price per (source, provider, model) from the global catalog. */
|
|
17118
16632
|
ListModelPrices(request: ListModelPricesRequest, metadata?: Metadata): Promise<ListModelPricesResponse>;
|
|
17119
16633
|
/**
|
|
@@ -17164,7 +16678,6 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
17164
16678
|
this.StreamProjectOverview = this.StreamProjectOverview.bind(this);
|
|
17165
16679
|
this.ListFiles = this.ListFiles.bind(this);
|
|
17166
16680
|
this.StreamFilesSummary = this.StreamFilesSummary.bind(this);
|
|
17167
|
-
this.GetBurnMap = this.GetBurnMap.bind(this);
|
|
17168
16681
|
this.ListModelPrices = this.ListModelPrices.bind(this);
|
|
17169
16682
|
this.ListModelPriceHistory = this.ListModelPriceHistory.bind(this);
|
|
17170
16683
|
this.ListResourceRankings = this.ListResourceRankings.bind(this);
|
|
@@ -17290,12 +16803,6 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
17290
16803
|
return result.pipe(map((data) => FilesSummary.decode(new BinaryReader(data))));
|
|
17291
16804
|
}
|
|
17292
16805
|
|
|
17293
|
-
GetBurnMap(request: BurnMapRequest, metadata?: Metadata): Promise<BurnMapResponse> {
|
|
17294
|
-
const data = BurnMapRequest.encode(request).finish();
|
|
17295
|
-
const promise = this.rpc.request(this.service, "GetBurnMap", data, metadata);
|
|
17296
|
-
return promise.then((data) => BurnMapResponse.decode(new BinaryReader(data)));
|
|
17297
|
-
}
|
|
17298
|
-
|
|
17299
16806
|
ListModelPrices(request: ListModelPricesRequest, metadata?: Metadata): Promise<ListModelPricesResponse> {
|
|
17300
16807
|
const data = ListModelPricesRequest.encode(request).finish();
|
|
17301
16808
|
const promise = this.rpc.request(this.service, "ListModelPrices", data, metadata);
|
|
@@ -52,28 +52,6 @@ function deserialize_gateway_web_v1_ActivityRhythmRequest(buffer_arg) {
|
|
|
52
52
|
return proto_gateway_web_v1_ai_gateway_pb.ActivityRhythmRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
function serialize_gateway_web_v1_BurnMapRequest(arg) {
|
|
56
|
-
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.BurnMapRequest)) {
|
|
57
|
-
throw new Error('Expected argument of type gateway.web.v1.BurnMapRequest');
|
|
58
|
-
}
|
|
59
|
-
return Buffer.from(arg.serializeBinary());
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function deserialize_gateway_web_v1_BurnMapRequest(buffer_arg) {
|
|
63
|
-
return proto_gateway_web_v1_ai_gateway_pb.BurnMapRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function serialize_gateway_web_v1_BurnMapResponse(arg) {
|
|
67
|
-
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.BurnMapResponse)) {
|
|
68
|
-
throw new Error('Expected argument of type gateway.web.v1.BurnMapResponse');
|
|
69
|
-
}
|
|
70
|
-
return Buffer.from(arg.serializeBinary());
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function deserialize_gateway_web_v1_BurnMapResponse(buffer_arg) {
|
|
74
|
-
return proto_gateway_web_v1_ai_gateway_pb.BurnMapResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
55
|
function serialize_gateway_web_v1_BurnRate(arg) {
|
|
78
56
|
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.BurnRate)) {
|
|
79
57
|
throw new Error('Expected argument of type gateway.web.v1.BurnRate');
|
|
@@ -778,19 +756,6 @@ streamFilesSummary: {
|
|
|
778
756
|
responseSerialize: serialize_gateway_web_v1_FilesSummary,
|
|
779
757
|
responseDeserialize: deserialize_gateway_web_v1_FilesSummary,
|
|
780
758
|
},
|
|
781
|
-
// GetBurnMap returns the burn-map treemap pre-aggregated by (repository, directory) so the client no
|
|
782
|
-
// longer pulls every file row to group in the browser. Squarify geometry stays client-side.
|
|
783
|
-
getBurnMap: {
|
|
784
|
-
path: '/gateway.web.v1.AIGatewayService/GetBurnMap',
|
|
785
|
-
requestStream: false,
|
|
786
|
-
responseStream: false,
|
|
787
|
-
requestType: proto_gateway_web_v1_ai_gateway_pb.BurnMapRequest,
|
|
788
|
-
responseType: proto_gateway_web_v1_ai_gateway_pb.BurnMapResponse,
|
|
789
|
-
requestSerialize: serialize_gateway_web_v1_BurnMapRequest,
|
|
790
|
-
requestDeserialize: deserialize_gateway_web_v1_BurnMapRequest,
|
|
791
|
-
responseSerialize: serialize_gateway_web_v1_BurnMapResponse,
|
|
792
|
-
responseDeserialize: deserialize_gateway_web_v1_BurnMapResponse,
|
|
793
|
-
},
|
|
794
759
|
// Latest observed list price per (source, provider, model) from the global catalog.
|
|
795
760
|
listModelPrices: {
|
|
796
761
|
path: '/gateway.web.v1.AIGatewayService/ListModelPrices',
|