@miradorlabs/web-grpc 4.28.0 → 4.29.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "4.28.0",
3
+ "version": "4.29.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -3259,13 +3259,19 @@ export interface AISkillSuggestion {
3259
3259
 
3260
3260
  /**
3261
3261
  * AISkillMetadata is public reference text, not instructions. Summary is pinned to the suggested revision;
3262
- * name, HTTPS skills.sh source_url and availability are current catalog metadata. Withdrawn skills remain readable.
3262
+ * name, HTTPS skills.sh source_url, availability and install_count are current catalog metadata. Withdrawn skills
3263
+ * remain readable.
3263
3264
  */
3264
3265
  export interface AISkillMetadata {
3265
3266
  name: string;
3266
3267
  summary: string;
3267
3268
  sourceUrl: string;
3268
3269
  available: boolean;
3270
+ /**
3271
+ * skills.sh's self-reported installs as of the catalog's latest check, for display only: current, not pinned to
3272
+ * the suggested revision. 0 when skills.sh reported none.
3273
+ */
3274
+ installCount: number;
3269
3275
  }
3270
3276
 
3271
3277
  /**
@@ -23821,7 +23827,7 @@ export const AISkillSuggestion: MessageFns<AISkillSuggestion> = {
23821
23827
  };
23822
23828
 
23823
23829
  function createBaseAISkillMetadata(): AISkillMetadata {
23824
- return { name: "", summary: "", sourceUrl: "", available: false };
23830
+ return { name: "", summary: "", sourceUrl: "", available: false, installCount: 0 };
23825
23831
  }
23826
23832
 
23827
23833
  export const AISkillMetadata: MessageFns<AISkillMetadata> = {
@@ -23838,6 +23844,9 @@ export const AISkillMetadata: MessageFns<AISkillMetadata> = {
23838
23844
  if (message.available !== false) {
23839
23845
  writer.uint32(32).bool(message.available);
23840
23846
  }
23847
+ if (message.installCount !== 0) {
23848
+ writer.uint32(40).int64(message.installCount);
23849
+ }
23841
23850
  return writer;
23842
23851
  },
23843
23852
 
@@ -23886,6 +23895,14 @@ export const AISkillMetadata: MessageFns<AISkillMetadata> = {
23886
23895
  message.available = reader.bool();
23887
23896
  continue;
23888
23897
  }
23898
+ case 5: {
23899
+ if (tag !== 40) {
23900
+ break;
23901
+ }
23902
+
23903
+ message.installCount = longToNumber(reader.int64());
23904
+ continue;
23905
+ }
23889
23906
  }
23890
23907
  if ((tag & 7) === 4 || tag === 0) {
23891
23908
  break;
@@ -23908,6 +23925,11 @@ export const AISkillMetadata: MessageFns<AISkillMetadata> = {
23908
23925
  ? globalThis.String(object.source_url)
23909
23926
  : "",
23910
23927
  available: isSet(object.available) ? globalThis.Boolean(object.available) : false,
23928
+ installCount: isSet(object.installCount)
23929
+ ? globalThis.Number(object.installCount)
23930
+ : isSet(object.install_count)
23931
+ ? globalThis.Number(object.install_count)
23932
+ : 0,
23911
23933
  };
23912
23934
  },
23913
23935
 
@@ -23925,6 +23947,9 @@ export const AISkillMetadata: MessageFns<AISkillMetadata> = {
23925
23947
  if (message.available !== false) {
23926
23948
  obj.available = message.available;
23927
23949
  }
23950
+ if (message.installCount !== 0) {
23951
+ obj.installCount = Math.round(message.installCount);
23952
+ }
23928
23953
  return obj;
23929
23954
  },
23930
23955
 
@@ -23937,6 +23962,7 @@ export const AISkillMetadata: MessageFns<AISkillMetadata> = {
23937
23962
  message.summary = object.summary ?? "";
23938
23963
  message.sourceUrl = object.sourceUrl ?? "";
23939
23964
  message.available = object.available ?? false;
23965
+ message.installCount = object.installCount ?? 0;
23940
23966
  return message;
23941
23967
  },
23942
23968
  };
@@ -42091,7 +42091,8 @@ proto.gateway.web.v1.AISkillMetadata.toObject = function(includeInstance, msg) {
42091
42091
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
42092
42092
  summary: jspb.Message.getFieldWithDefault(msg, 2, ""),
42093
42093
  sourceUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
42094
- available: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
42094
+ available: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
42095
+ installCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
42095
42096
  };
42096
42097
 
42097
42098
  if (includeInstance) {
@@ -42144,6 +42145,10 @@ proto.gateway.web.v1.AISkillMetadata.deserializeBinaryFromReader = function(msg,
42144
42145
  var value = /** @type {boolean} */ (reader.readBool());
42145
42146
  msg.setAvailable(value);
42146
42147
  break;
42148
+ case 5:
42149
+ var value = /** @type {number} */ (reader.readInt64());
42150
+ msg.setInstallCount(value);
42151
+ break;
42147
42152
  default:
42148
42153
  reader.skipField();
42149
42154
  break;
@@ -42201,6 +42206,13 @@ proto.gateway.web.v1.AISkillMetadata.serializeBinaryToWriter = function(message,
42201
42206
  f
42202
42207
  );
42203
42208
  }
42209
+ f = message.getInstallCount();
42210
+ if (f !== 0) {
42211
+ writer.writeInt64(
42212
+ 5,
42213
+ f
42214
+ );
42215
+ }
42204
42216
  };
42205
42217
 
42206
42218
 
@@ -42276,6 +42288,24 @@ proto.gateway.web.v1.AISkillMetadata.prototype.setAvailable = function(value) {
42276
42288
  };
42277
42289
 
42278
42290
 
42291
+ /**
42292
+ * optional int64 install_count = 5;
42293
+ * @return {number}
42294
+ */
42295
+ proto.gateway.web.v1.AISkillMetadata.prototype.getInstallCount = function() {
42296
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
42297
+ };
42298
+
42299
+
42300
+ /**
42301
+ * @param {number} value
42302
+ * @return {!proto.gateway.web.v1.AISkillMetadata} returns this
42303
+ */
42304
+ proto.gateway.web.v1.AISkillMetadata.prototype.setInstallCount = function(value) {
42305
+ return jspb.Message.setProto3IntField(this, 5, value);
42306
+ };
42307
+
42308
+
42279
42309
 
42280
42310
 
42281
42311