@miradorlabs/web-grpc 4.16.0 → 4.17.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.16.0",
3
+ "version": "4.17.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",
@@ -5032,6 +5032,11 @@ export interface AIProjectInsight {
5032
5032
  | undefined;
5033
5033
  /** The events the card cites, in the model's order; each names a session of the project. */
5034
5034
  citations: AIProjectInsightCitation[];
5035
+ /**
5036
+ * Absent when this card has no catalog suggestion. The model chose it from its run's shortlist of public skills no
5037
+ * session of the project used in the window; its metadata is public reference text, not instructions.
5038
+ */
5039
+ skillSuggestion: AISkillSuggestion | undefined;
5035
5040
  }
5036
5041
 
5037
5042
  /**
@@ -33919,6 +33924,7 @@ function createBaseAIProjectInsight(): AIProjectInsight {
33919
33924
  personCount: 0,
33920
33925
  spendUsd: undefined,
33921
33926
  citations: [],
33927
+ skillSuggestion: undefined,
33922
33928
  };
33923
33929
  }
33924
33930
 
@@ -33960,6 +33966,9 @@ export const AIProjectInsight: MessageFns<AIProjectInsight> = {
33960
33966
  for (const v of message.citations) {
33961
33967
  AIProjectInsightCitation.encode(v!, writer.uint32(98).fork()).join();
33962
33968
  }
33969
+ if (message.skillSuggestion !== undefined) {
33970
+ AISkillSuggestion.encode(message.skillSuggestion, writer.uint32(106).fork()).join();
33971
+ }
33963
33972
  return writer;
33964
33973
  },
33965
33974
 
@@ -34072,6 +34081,14 @@ export const AIProjectInsight: MessageFns<AIProjectInsight> = {
34072
34081
  message.citations.push(AIProjectInsightCitation.decode(reader, reader.uint32()));
34073
34082
  continue;
34074
34083
  }
34084
+ case 13: {
34085
+ if (tag !== 106) {
34086
+ break;
34087
+ }
34088
+
34089
+ message.skillSuggestion = AISkillSuggestion.decode(reader, reader.uint32());
34090
+ continue;
34091
+ }
34075
34092
  }
34076
34093
  if ((tag & 7) === 4 || tag === 0) {
34077
34094
  break;
@@ -34112,6 +34129,11 @@ export const AIProjectInsight: MessageFns<AIProjectInsight> = {
34112
34129
  citations: globalThis.Array.isArray(object?.citations)
34113
34130
  ? object.citations.map((e: any) => AIProjectInsightCitation.fromJSON(e))
34114
34131
  : [],
34132
+ skillSuggestion: isSet(object.skillSuggestion)
34133
+ ? AISkillSuggestion.fromJSON(object.skillSuggestion)
34134
+ : isSet(object.skill_suggestion)
34135
+ ? AISkillSuggestion.fromJSON(object.skill_suggestion)
34136
+ : undefined,
34115
34137
  };
34116
34138
  },
34117
34139
 
@@ -34153,6 +34175,9 @@ export const AIProjectInsight: MessageFns<AIProjectInsight> = {
34153
34175
  if (message.citations?.length) {
34154
34176
  obj.citations = message.citations.map((e) => AIProjectInsightCitation.toJSON(e));
34155
34177
  }
34178
+ if (message.skillSuggestion !== undefined) {
34179
+ obj.skillSuggestion = AISkillSuggestion.toJSON(message.skillSuggestion);
34180
+ }
34156
34181
  return obj;
34157
34182
  },
34158
34183
 
@@ -34173,6 +34198,9 @@ export const AIProjectInsight: MessageFns<AIProjectInsight> = {
34173
34198
  message.personCount = object.personCount ?? 0;
34174
34199
  message.spendUsd = object.spendUsd ?? undefined;
34175
34200
  message.citations = object.citations?.map((e) => AIProjectInsightCitation.fromPartial(e)) || [];
34201
+ message.skillSuggestion = (object.skillSuggestion !== undefined && object.skillSuggestion !== null)
34202
+ ? AISkillSuggestion.fromPartial(object.skillSuggestion)
34203
+ : undefined;
34176
34204
  return message;
34177
34205
  },
34178
34206
  };
@@ -59326,7 +59326,8 @@ sessionCount: jspb.Message.getFieldWithDefault(msg, 9, 0),
59326
59326
  personCount: jspb.Message.getFieldWithDefault(msg, 10, 0),
59327
59327
  spendUsd: (f = jspb.Message.getField(msg, 11)) == null ? undefined : f,
59328
59328
  citationsList: jspb.Message.toObjectList(msg.getCitationsList(),
59329
- proto.gateway.web.v1.AIProjectInsightCitation.toObject, includeInstance)
59329
+ proto.gateway.web.v1.AIProjectInsightCitation.toObject, includeInstance),
59330
+ skillSuggestion: (f = msg.getSkillSuggestion()) && proto.gateway.web.v1.AISkillSuggestion.toObject(includeInstance, f)
59330
59331
  };
59331
59332
 
59332
59333
  if (includeInstance) {
@@ -59412,6 +59413,11 @@ proto.gateway.web.v1.AIProjectInsight.deserializeBinaryFromReader = function(msg
59412
59413
  reader.readMessage(value,proto.gateway.web.v1.AIProjectInsightCitation.deserializeBinaryFromReader);
59413
59414
  msg.addCitations(value);
59414
59415
  break;
59416
+ case 13:
59417
+ var value = new proto.gateway.web.v1.AISkillSuggestion;
59418
+ reader.readMessage(value,proto.gateway.web.v1.AISkillSuggestion.deserializeBinaryFromReader);
59419
+ msg.setSkillSuggestion(value);
59420
+ break;
59415
59421
  default:
59416
59422
  reader.skipField();
59417
59423
  break;
@@ -59526,6 +59532,14 @@ proto.gateway.web.v1.AIProjectInsight.serializeBinaryToWriter = function(message
59526
59532
  proto.gateway.web.v1.AIProjectInsightCitation.serializeBinaryToWriter
59527
59533
  );
59528
59534
  }
59535
+ f = message.getSkillSuggestion();
59536
+ if (f != null) {
59537
+ writer.writeMessage(
59538
+ 13,
59539
+ f,
59540
+ proto.gateway.web.v1.AISkillSuggestion.serializeBinaryToWriter
59541
+ );
59542
+ }
59529
59543
  };
59530
59544
 
59531
59545
 
@@ -59783,6 +59797,43 @@ proto.gateway.web.v1.AIProjectInsight.prototype.clearCitationsList = function()
59783
59797
  };
59784
59798
 
59785
59799
 
59800
+ /**
59801
+ * optional AISkillSuggestion skill_suggestion = 13;
59802
+ * @return {?proto.gateway.web.v1.AISkillSuggestion}
59803
+ */
59804
+ proto.gateway.web.v1.AIProjectInsight.prototype.getSkillSuggestion = function() {
59805
+ return /** @type{?proto.gateway.web.v1.AISkillSuggestion} */ (
59806
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AISkillSuggestion, 13));
59807
+ };
59808
+
59809
+
59810
+ /**
59811
+ * @param {?proto.gateway.web.v1.AISkillSuggestion|undefined} value
59812
+ * @return {!proto.gateway.web.v1.AIProjectInsight} returns this
59813
+ */
59814
+ proto.gateway.web.v1.AIProjectInsight.prototype.setSkillSuggestion = function(value) {
59815
+ return jspb.Message.setWrapperField(this, 13, value);
59816
+ };
59817
+
59818
+
59819
+ /**
59820
+ * Clears the message field making it undefined.
59821
+ * @return {!proto.gateway.web.v1.AIProjectInsight} returns this
59822
+ */
59823
+ proto.gateway.web.v1.AIProjectInsight.prototype.clearSkillSuggestion = function() {
59824
+ return this.setSkillSuggestion(undefined);
59825
+ };
59826
+
59827
+
59828
+ /**
59829
+ * Returns whether this field is set.
59830
+ * @return {boolean}
59831
+ */
59832
+ proto.gateway.web.v1.AIProjectInsight.prototype.hasSkillSuggestion = function() {
59833
+ return jspb.Message.getField(this, 13) != null;
59834
+ };
59835
+
59836
+
59786
59837
 
59787
59838
 
59788
59839