@miradorlabs/web-grpc 2.55.0 → 2.57.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": "2.55.0",
3
+ "version": "2.57.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",
@@ -940,6 +940,8 @@ export interface AIPrincipal {
940
940
  name: string;
941
941
  sourceSystem: string;
942
942
  alias: string;
943
+ /** Linked account user id (a seat) the frontend aggregates around; empty when unset. */
944
+ accountUserId: string;
943
945
  }
944
946
 
945
947
  export interface UpdatePrincipalRequest {
@@ -948,7 +950,15 @@ export interface UpdatePrincipalRequest {
948
950
  kind: AIPrincipalKind;
949
951
  id: string;
950
952
  sourceSystem: string;
951
- alias: string;
953
+ /**
954
+ * Presence semantics: a field set (even to empty) is written, empty clears it; a field
955
+ * left absent is untouched. At least one of alias / account_user_id must be present.
956
+ */
957
+ alias?:
958
+ | string
959
+ | undefined;
960
+ /** Linked account user id (a seat). Must be a UUID when non-empty; empty clears it. */
961
+ accountUserId?: string | undefined;
952
962
  }
953
963
 
954
964
  export interface UpdatePrincipalResponse {
@@ -5580,7 +5590,7 @@ export const ListPrincipalsResponse: MessageFns<ListPrincipalsResponse> = {
5580
5590
  };
5581
5591
 
5582
5592
  function createBaseAIPrincipal(): AIPrincipal {
5583
- return { kind: 0, id: "", name: "", sourceSystem: "", alias: "" };
5593
+ return { kind: 0, id: "", name: "", sourceSystem: "", alias: "", accountUserId: "" };
5584
5594
  }
5585
5595
 
5586
5596
  export const AIPrincipal: MessageFns<AIPrincipal> = {
@@ -5600,6 +5610,9 @@ export const AIPrincipal: MessageFns<AIPrincipal> = {
5600
5610
  if (message.alias !== "") {
5601
5611
  writer.uint32(42).string(message.alias);
5602
5612
  }
5613
+ if (message.accountUserId !== "") {
5614
+ writer.uint32(50).string(message.accountUserId);
5615
+ }
5603
5616
  return writer;
5604
5617
  },
5605
5618
 
@@ -5656,6 +5669,14 @@ export const AIPrincipal: MessageFns<AIPrincipal> = {
5656
5669
  message.alias = reader.string();
5657
5670
  continue;
5658
5671
  }
5672
+ case 6: {
5673
+ if (tag !== 50) {
5674
+ break;
5675
+ }
5676
+
5677
+ message.accountUserId = reader.string();
5678
+ continue;
5679
+ }
5659
5680
  }
5660
5681
  if ((tag & 7) === 4 || tag === 0) {
5661
5682
  break;
@@ -5679,6 +5700,11 @@ export const AIPrincipal: MessageFns<AIPrincipal> = {
5679
5700
  ? globalThis.String(object.source_system)
5680
5701
  : "",
5681
5702
  alias: isSet(object.alias) ? globalThis.String(object.alias) : "",
5703
+ accountUserId: isSet(object.accountUserId)
5704
+ ? globalThis.String(object.accountUserId)
5705
+ : isSet(object.account_user_id)
5706
+ ? globalThis.String(object.account_user_id)
5707
+ : "",
5682
5708
  };
5683
5709
  },
5684
5710
 
@@ -5699,6 +5725,9 @@ export const AIPrincipal: MessageFns<AIPrincipal> = {
5699
5725
  if (message.alias !== "") {
5700
5726
  obj.alias = message.alias;
5701
5727
  }
5728
+ if (message.accountUserId !== "") {
5729
+ obj.accountUserId = message.accountUserId;
5730
+ }
5702
5731
  return obj;
5703
5732
  },
5704
5733
 
@@ -5712,12 +5741,21 @@ export const AIPrincipal: MessageFns<AIPrincipal> = {
5712
5741
  message.name = object.name ?? "";
5713
5742
  message.sourceSystem = object.sourceSystem ?? "";
5714
5743
  message.alias = object.alias ?? "";
5744
+ message.accountUserId = object.accountUserId ?? "";
5715
5745
  return message;
5716
5746
  },
5717
5747
  };
5718
5748
 
5719
5749
  function createBaseUpdatePrincipalRequest(): UpdatePrincipalRequest {
5720
- return { organizationId: "", projectId: "", kind: 0, id: "", sourceSystem: "", alias: "" };
5750
+ return {
5751
+ organizationId: "",
5752
+ projectId: "",
5753
+ kind: 0,
5754
+ id: "",
5755
+ sourceSystem: "",
5756
+ alias: undefined,
5757
+ accountUserId: undefined,
5758
+ };
5721
5759
  }
5722
5760
 
5723
5761
  export const UpdatePrincipalRequest: MessageFns<UpdatePrincipalRequest> = {
@@ -5737,9 +5775,12 @@ export const UpdatePrincipalRequest: MessageFns<UpdatePrincipalRequest> = {
5737
5775
  if (message.sourceSystem !== "") {
5738
5776
  writer.uint32(42).string(message.sourceSystem);
5739
5777
  }
5740
- if (message.alias !== "") {
5778
+ if (message.alias !== undefined) {
5741
5779
  writer.uint32(50).string(message.alias);
5742
5780
  }
5781
+ if (message.accountUserId !== undefined) {
5782
+ writer.uint32(58).string(message.accountUserId);
5783
+ }
5743
5784
  return writer;
5744
5785
  },
5745
5786
 
@@ -5804,6 +5845,14 @@ export const UpdatePrincipalRequest: MessageFns<UpdatePrincipalRequest> = {
5804
5845
  message.alias = reader.string();
5805
5846
  continue;
5806
5847
  }
5848
+ case 7: {
5849
+ if (tag !== 58) {
5850
+ break;
5851
+ }
5852
+
5853
+ message.accountUserId = reader.string();
5854
+ continue;
5855
+ }
5807
5856
  }
5808
5857
  if ((tag & 7) === 4 || tag === 0) {
5809
5858
  break;
@@ -5835,7 +5884,12 @@ export const UpdatePrincipalRequest: MessageFns<UpdatePrincipalRequest> = {
5835
5884
  : isSet(object.source_system)
5836
5885
  ? globalThis.String(object.source_system)
5837
5886
  : "",
5838
- alias: isSet(object.alias) ? globalThis.String(object.alias) : "",
5887
+ alias: isSet(object.alias) ? globalThis.String(object.alias) : undefined,
5888
+ accountUserId: isSet(object.accountUserId)
5889
+ ? globalThis.String(object.accountUserId)
5890
+ : isSet(object.account_user_id)
5891
+ ? globalThis.String(object.account_user_id)
5892
+ : undefined,
5839
5893
  };
5840
5894
  },
5841
5895
 
@@ -5856,9 +5910,12 @@ export const UpdatePrincipalRequest: MessageFns<UpdatePrincipalRequest> = {
5856
5910
  if (message.sourceSystem !== "") {
5857
5911
  obj.sourceSystem = message.sourceSystem;
5858
5912
  }
5859
- if (message.alias !== "") {
5913
+ if (message.alias !== undefined) {
5860
5914
  obj.alias = message.alias;
5861
5915
  }
5916
+ if (message.accountUserId !== undefined) {
5917
+ obj.accountUserId = message.accountUserId;
5918
+ }
5862
5919
  return obj;
5863
5920
  },
5864
5921
 
@@ -5872,7 +5929,8 @@ export const UpdatePrincipalRequest: MessageFns<UpdatePrincipalRequest> = {
5872
5929
  message.kind = object.kind ?? 0;
5873
5930
  message.id = object.id ?? "";
5874
5931
  message.sourceSystem = object.sourceSystem ?? "";
5875
- message.alias = object.alias ?? "";
5932
+ message.alias = object.alias ?? undefined;
5933
+ message.accountUserId = object.accountUserId ?? undefined;
5876
5934
  return message;
5877
5935
  },
5878
5936
  };
@@ -9665,7 +9665,8 @@ kind: jspb.Message.getFieldWithDefault(msg, 1, 0),
9665
9665
  id: jspb.Message.getFieldWithDefault(msg, 2, ""),
9666
9666
  name: jspb.Message.getFieldWithDefault(msg, 3, ""),
9667
9667
  sourceSystem: jspb.Message.getFieldWithDefault(msg, 4, ""),
9668
- alias: jspb.Message.getFieldWithDefault(msg, 5, "")
9668
+ alias: jspb.Message.getFieldWithDefault(msg, 5, ""),
9669
+ accountUserId: jspb.Message.getFieldWithDefault(msg, 6, "")
9669
9670
  };
9670
9671
 
9671
9672
  if (includeInstance) {
@@ -9722,6 +9723,10 @@ proto.gateway.web.v1.AIPrincipal.deserializeBinaryFromReader = function(msg, rea
9722
9723
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
9723
9724
  msg.setAlias(value);
9724
9725
  break;
9726
+ case 6:
9727
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9728
+ msg.setAccountUserId(value);
9729
+ break;
9725
9730
  default:
9726
9731
  reader.skipField();
9727
9732
  break;
@@ -9786,6 +9791,13 @@ proto.gateway.web.v1.AIPrincipal.serializeBinaryToWriter = function(message, wri
9786
9791
  f
9787
9792
  );
9788
9793
  }
9794
+ f = message.getAccountUserId();
9795
+ if (f.length > 0) {
9796
+ writer.writeString(
9797
+ 6,
9798
+ f
9799
+ );
9800
+ }
9789
9801
  };
9790
9802
 
9791
9803
 
@@ -9879,6 +9891,24 @@ proto.gateway.web.v1.AIPrincipal.prototype.setAlias = function(value) {
9879
9891
  };
9880
9892
 
9881
9893
 
9894
+ /**
9895
+ * optional string account_user_id = 6;
9896
+ * @return {string}
9897
+ */
9898
+ proto.gateway.web.v1.AIPrincipal.prototype.getAccountUserId = function() {
9899
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
9900
+ };
9901
+
9902
+
9903
+ /**
9904
+ * @param {string} value
9905
+ * @return {!proto.gateway.web.v1.AIPrincipal} returns this
9906
+ */
9907
+ proto.gateway.web.v1.AIPrincipal.prototype.setAccountUserId = function(value) {
9908
+ return jspb.Message.setProto3StringField(this, 6, value);
9909
+ };
9910
+
9911
+
9882
9912
 
9883
9913
 
9884
9914
 
@@ -9916,7 +9946,8 @@ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
9916
9946
  kind: jspb.Message.getFieldWithDefault(msg, 3, 0),
9917
9947
  id: jspb.Message.getFieldWithDefault(msg, 4, ""),
9918
9948
  sourceSystem: jspb.Message.getFieldWithDefault(msg, 5, ""),
9919
- alias: jspb.Message.getFieldWithDefault(msg, 6, "")
9949
+ alias: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
9950
+ accountUserId: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f
9920
9951
  };
9921
9952
 
9922
9953
  if (includeInstance) {
@@ -9977,6 +10008,10 @@ proto.gateway.web.v1.UpdatePrincipalRequest.deserializeBinaryFromReader = functi
9977
10008
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
9978
10009
  msg.setAlias(value);
9979
10010
  break;
10011
+ case 7:
10012
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10013
+ msg.setAccountUserId(value);
10014
+ break;
9980
10015
  default:
9981
10016
  reader.skipField();
9982
10017
  break;
@@ -10041,13 +10076,20 @@ proto.gateway.web.v1.UpdatePrincipalRequest.serializeBinaryToWriter = function(m
10041
10076
  f
10042
10077
  );
10043
10078
  }
10044
- f = message.getAlias();
10045
- if (f.length > 0) {
10079
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
10080
+ if (f != null) {
10046
10081
  writer.writeString(
10047
10082
  6,
10048
10083
  f
10049
10084
  );
10050
10085
  }
10086
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
10087
+ if (f != null) {
10088
+ writer.writeString(
10089
+ 7,
10090
+ f
10091
+ );
10092
+ }
10051
10093
  };
10052
10094
 
10053
10095
 
@@ -10155,7 +10197,61 @@ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.getAlias = function() {
10155
10197
  * @return {!proto.gateway.web.v1.UpdatePrincipalRequest} returns this
10156
10198
  */
10157
10199
  proto.gateway.web.v1.UpdatePrincipalRequest.prototype.setAlias = function(value) {
10158
- return jspb.Message.setProto3StringField(this, 6, value);
10200
+ return jspb.Message.setField(this, 6, value);
10201
+ };
10202
+
10203
+
10204
+ /**
10205
+ * Clears the field making it undefined.
10206
+ * @return {!proto.gateway.web.v1.UpdatePrincipalRequest} returns this
10207
+ */
10208
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.clearAlias = function() {
10209
+ return jspb.Message.setField(this, 6, undefined);
10210
+ };
10211
+
10212
+
10213
+ /**
10214
+ * Returns whether this field is set.
10215
+ * @return {boolean}
10216
+ */
10217
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.hasAlias = function() {
10218
+ return jspb.Message.getField(this, 6) != null;
10219
+ };
10220
+
10221
+
10222
+ /**
10223
+ * optional string account_user_id = 7;
10224
+ * @return {string}
10225
+ */
10226
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.getAccountUserId = function() {
10227
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
10228
+ };
10229
+
10230
+
10231
+ /**
10232
+ * @param {string} value
10233
+ * @return {!proto.gateway.web.v1.UpdatePrincipalRequest} returns this
10234
+ */
10235
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.setAccountUserId = function(value) {
10236
+ return jspb.Message.setField(this, 7, value);
10237
+ };
10238
+
10239
+
10240
+ /**
10241
+ * Clears the field making it undefined.
10242
+ * @return {!proto.gateway.web.v1.UpdatePrincipalRequest} returns this
10243
+ */
10244
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.clearAccountUserId = function() {
10245
+ return jspb.Message.setField(this, 7, undefined);
10246
+ };
10247
+
10248
+
10249
+ /**
10250
+ * Returns whether this field is set.
10251
+ * @return {boolean}
10252
+ */
10253
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.hasAccountUserId = function() {
10254
+ return jspb.Message.getField(this, 7) != null;
10159
10255
  };
10160
10256
 
10161
10257