@miradorlabs/web-grpc 3.0.0 → 3.1.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
|
@@ -844,6 +844,10 @@ export interface AISessionSummary {
|
|
|
844
844
|
accountIds: string[];
|
|
845
845
|
/** Who reported the session: 'harness' or 'gateway'. */
|
|
846
846
|
observer: string;
|
|
847
|
+
/** The apps the session ran in ('claude-code', 'codex-exec', ...); a session can be resumed in another app. */
|
|
848
|
+
clients: string[];
|
|
849
|
+
/** The versions those apps reported, verbatim. */
|
|
850
|
+
clientVersions: string[];
|
|
847
851
|
}
|
|
848
852
|
|
|
849
853
|
export interface StreamSessionsRequest {
|
|
@@ -2373,6 +2377,8 @@ function createBaseAISessionSummary(): AISessionSummary {
|
|
|
2373
2377
|
costSources: [],
|
|
2374
2378
|
accountIds: [],
|
|
2375
2379
|
observer: "",
|
|
2380
|
+
clients: [],
|
|
2381
|
+
clientVersions: [],
|
|
2376
2382
|
};
|
|
2377
2383
|
}
|
|
2378
2384
|
|
|
@@ -2468,6 +2474,12 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
2468
2474
|
if (message.observer !== "") {
|
|
2469
2475
|
writer.uint32(242).string(message.observer);
|
|
2470
2476
|
}
|
|
2477
|
+
for (const v of message.clients) {
|
|
2478
|
+
writer.uint32(250).string(v!);
|
|
2479
|
+
}
|
|
2480
|
+
for (const v of message.clientVersions) {
|
|
2481
|
+
writer.uint32(258).string(v!);
|
|
2482
|
+
}
|
|
2471
2483
|
return writer;
|
|
2472
2484
|
},
|
|
2473
2485
|
|
|
@@ -2724,6 +2736,22 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
2724
2736
|
message.observer = reader.string();
|
|
2725
2737
|
continue;
|
|
2726
2738
|
}
|
|
2739
|
+
case 31: {
|
|
2740
|
+
if (tag !== 250) {
|
|
2741
|
+
break;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
message.clients.push(reader.string());
|
|
2745
|
+
continue;
|
|
2746
|
+
}
|
|
2747
|
+
case 32: {
|
|
2748
|
+
if (tag !== 258) {
|
|
2749
|
+
break;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
message.clientVersions.push(reader.string());
|
|
2753
|
+
continue;
|
|
2754
|
+
}
|
|
2727
2755
|
}
|
|
2728
2756
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2729
2757
|
break;
|
|
@@ -2860,6 +2888,14 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
2860
2888
|
? object.account_ids.map((e: any) => globalThis.String(e))
|
|
2861
2889
|
: [],
|
|
2862
2890
|
observer: isSet(object.observer) ? globalThis.String(object.observer) : "",
|
|
2891
|
+
clients: globalThis.Array.isArray(object?.clients)
|
|
2892
|
+
? object.clients.map((e: any) => globalThis.String(e))
|
|
2893
|
+
: [],
|
|
2894
|
+
clientVersions: globalThis.Array.isArray(object?.clientVersions)
|
|
2895
|
+
? object.clientVersions.map((e: any) => globalThis.String(e))
|
|
2896
|
+
: globalThis.Array.isArray(object?.client_versions)
|
|
2897
|
+
? object.client_versions.map((e: any) => globalThis.String(e))
|
|
2898
|
+
: [],
|
|
2863
2899
|
};
|
|
2864
2900
|
},
|
|
2865
2901
|
|
|
@@ -2955,6 +2991,12 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
2955
2991
|
if (message.observer !== "") {
|
|
2956
2992
|
obj.observer = message.observer;
|
|
2957
2993
|
}
|
|
2994
|
+
if (message.clients?.length) {
|
|
2995
|
+
obj.clients = message.clients;
|
|
2996
|
+
}
|
|
2997
|
+
if (message.clientVersions?.length) {
|
|
2998
|
+
obj.clientVersions = message.clientVersions;
|
|
2999
|
+
}
|
|
2958
3000
|
return obj;
|
|
2959
3001
|
},
|
|
2960
3002
|
|
|
@@ -2995,6 +3037,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
2995
3037
|
message.costSources = object.costSources?.map((e) => e) || [];
|
|
2996
3038
|
message.accountIds = object.accountIds?.map((e) => e) || [];
|
|
2997
3039
|
message.observer = object.observer ?? "";
|
|
3040
|
+
message.clients = object.clients?.map((e) => e) || [];
|
|
3041
|
+
message.clientVersions = object.clientVersions?.map((e) => e) || [];
|
|
2998
3042
|
return message;
|
|
2999
3043
|
},
|
|
3000
3044
|
};
|
|
@@ -3083,7 +3083,7 @@ proto.gateway.web.v1.SessionPagination.prototype.setTotalPages = function(value)
|
|
|
3083
3083
|
* @private {!Array<number>}
|
|
3084
3084
|
* @const
|
|
3085
3085
|
*/
|
|
3086
|
-
proto.gateway.web.v1.AISessionSummary.repeatedFields_ = [13,14,20,21,26,27,28,29];
|
|
3086
|
+
proto.gateway.web.v1.AISessionSummary.repeatedFields_ = [13,14,20,21,26,27,28,29,31,32];
|
|
3087
3087
|
|
|
3088
3088
|
|
|
3089
3089
|
|
|
@@ -3145,7 +3145,9 @@ effortsList: (f = jspb.Message.getRepeatedField(msg, 26)) == null ? undefined :
|
|
|
3145
3145
|
billingPartiesList: (f = jspb.Message.getRepeatedField(msg, 27)) == null ? undefined : f,
|
|
3146
3146
|
costSourcesList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f,
|
|
3147
3147
|
accountIdsList: (f = jspb.Message.getRepeatedField(msg, 29)) == null ? undefined : f,
|
|
3148
|
-
observer: jspb.Message.getFieldWithDefault(msg, 30, "")
|
|
3148
|
+
observer: jspb.Message.getFieldWithDefault(msg, 30, ""),
|
|
3149
|
+
clientsList: (f = jspb.Message.getRepeatedField(msg, 31)) == null ? undefined : f,
|
|
3150
|
+
clientVersionsList: (f = jspb.Message.getRepeatedField(msg, 32)) == null ? undefined : f
|
|
3149
3151
|
};
|
|
3150
3152
|
|
|
3151
3153
|
if (includeInstance) {
|
|
@@ -3305,6 +3307,14 @@ proto.gateway.web.v1.AISessionSummary.deserializeBinaryFromReader = function(msg
|
|
|
3305
3307
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3306
3308
|
msg.setObserver(value);
|
|
3307
3309
|
break;
|
|
3310
|
+
case 31:
|
|
3311
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3312
|
+
msg.addClients(value);
|
|
3313
|
+
break;
|
|
3314
|
+
case 32:
|
|
3315
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3316
|
+
msg.addClientVersions(value);
|
|
3317
|
+
break;
|
|
3308
3318
|
default:
|
|
3309
3319
|
reader.skipField();
|
|
3310
3320
|
break;
|
|
@@ -3547,6 +3557,20 @@ proto.gateway.web.v1.AISessionSummary.serializeBinaryToWriter = function(message
|
|
|
3547
3557
|
f
|
|
3548
3558
|
);
|
|
3549
3559
|
}
|
|
3560
|
+
f = message.getClientsList();
|
|
3561
|
+
if (f.length > 0) {
|
|
3562
|
+
writer.writeRepeatedString(
|
|
3563
|
+
31,
|
|
3564
|
+
f
|
|
3565
|
+
);
|
|
3566
|
+
}
|
|
3567
|
+
f = message.getClientVersionsList();
|
|
3568
|
+
if (f.length > 0) {
|
|
3569
|
+
writer.writeRepeatedString(
|
|
3570
|
+
32,
|
|
3571
|
+
f
|
|
3572
|
+
);
|
|
3573
|
+
}
|
|
3550
3574
|
};
|
|
3551
3575
|
|
|
3552
3576
|
|
|
@@ -4299,6 +4323,80 @@ proto.gateway.web.v1.AISessionSummary.prototype.setObserver = function(value) {
|
|
|
4299
4323
|
};
|
|
4300
4324
|
|
|
4301
4325
|
|
|
4326
|
+
/**
|
|
4327
|
+
* repeated string clients = 31;
|
|
4328
|
+
* @return {!Array<string>}
|
|
4329
|
+
*/
|
|
4330
|
+
proto.gateway.web.v1.AISessionSummary.prototype.getClientsList = function() {
|
|
4331
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 31));
|
|
4332
|
+
};
|
|
4333
|
+
|
|
4334
|
+
|
|
4335
|
+
/**
|
|
4336
|
+
* @param {!Array<string>} value
|
|
4337
|
+
* @return {!proto.gateway.web.v1.AISessionSummary} returns this
|
|
4338
|
+
*/
|
|
4339
|
+
proto.gateway.web.v1.AISessionSummary.prototype.setClientsList = function(value) {
|
|
4340
|
+
return jspb.Message.setField(this, 31, value || []);
|
|
4341
|
+
};
|
|
4342
|
+
|
|
4343
|
+
|
|
4344
|
+
/**
|
|
4345
|
+
* @param {string} value
|
|
4346
|
+
* @param {number=} opt_index
|
|
4347
|
+
* @return {!proto.gateway.web.v1.AISessionSummary} returns this
|
|
4348
|
+
*/
|
|
4349
|
+
proto.gateway.web.v1.AISessionSummary.prototype.addClients = function(value, opt_index) {
|
|
4350
|
+
return jspb.Message.addToRepeatedField(this, 31, value, opt_index);
|
|
4351
|
+
};
|
|
4352
|
+
|
|
4353
|
+
|
|
4354
|
+
/**
|
|
4355
|
+
* Clears the list making it empty but non-null.
|
|
4356
|
+
* @return {!proto.gateway.web.v1.AISessionSummary} returns this
|
|
4357
|
+
*/
|
|
4358
|
+
proto.gateway.web.v1.AISessionSummary.prototype.clearClientsList = function() {
|
|
4359
|
+
return this.setClientsList([]);
|
|
4360
|
+
};
|
|
4361
|
+
|
|
4362
|
+
|
|
4363
|
+
/**
|
|
4364
|
+
* repeated string client_versions = 32;
|
|
4365
|
+
* @return {!Array<string>}
|
|
4366
|
+
*/
|
|
4367
|
+
proto.gateway.web.v1.AISessionSummary.prototype.getClientVersionsList = function() {
|
|
4368
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 32));
|
|
4369
|
+
};
|
|
4370
|
+
|
|
4371
|
+
|
|
4372
|
+
/**
|
|
4373
|
+
* @param {!Array<string>} value
|
|
4374
|
+
* @return {!proto.gateway.web.v1.AISessionSummary} returns this
|
|
4375
|
+
*/
|
|
4376
|
+
proto.gateway.web.v1.AISessionSummary.prototype.setClientVersionsList = function(value) {
|
|
4377
|
+
return jspb.Message.setField(this, 32, value || []);
|
|
4378
|
+
};
|
|
4379
|
+
|
|
4380
|
+
|
|
4381
|
+
/**
|
|
4382
|
+
* @param {string} value
|
|
4383
|
+
* @param {number=} opt_index
|
|
4384
|
+
* @return {!proto.gateway.web.v1.AISessionSummary} returns this
|
|
4385
|
+
*/
|
|
4386
|
+
proto.gateway.web.v1.AISessionSummary.prototype.addClientVersions = function(value, opt_index) {
|
|
4387
|
+
return jspb.Message.addToRepeatedField(this, 32, value, opt_index);
|
|
4388
|
+
};
|
|
4389
|
+
|
|
4390
|
+
|
|
4391
|
+
/**
|
|
4392
|
+
* Clears the list making it empty but non-null.
|
|
4393
|
+
* @return {!proto.gateway.web.v1.AISessionSummary} returns this
|
|
4394
|
+
*/
|
|
4395
|
+
proto.gateway.web.v1.AISessionSummary.prototype.clearClientVersionsList = function() {
|
|
4396
|
+
return this.setClientVersionsList([]);
|
|
4397
|
+
};
|
|
4398
|
+
|
|
4399
|
+
|
|
4302
4400
|
|
|
4303
4401
|
|
|
4304
4402
|
|
|
@@ -173,7 +173,10 @@ export interface UpdateAIReferenceNameRequest {
|
|
|
173
173
|
projectId: string;
|
|
174
174
|
/** Required, except that "" is a valid effort name. */
|
|
175
175
|
name: string;
|
|
176
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* Required, with a letter or digit. Stored as its lowercase slug ("GPT 6 Sol" -> "gpt-6-sol"), like every
|
|
178
|
+
* display name the registry holds.
|
|
179
|
+
*/
|
|
177
180
|
displayName: string;
|
|
178
181
|
}
|
|
179
182
|
|