@milaboratories/pl-client 3.15.0 → 3.16.1
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/dist/core/capabilities.cjs.map +1 -1
- package/dist/core/capabilities.d.ts +1 -1
- package/dist/core/capabilities.d.ts.map +1 -1
- package/dist/core/capabilities.js.map +1 -1
- package/dist/core/ll_client.cjs +35 -18
- package/dist/core/ll_client.cjs.map +1 -1
- package/dist/core/ll_client.d.ts +12 -5
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_client.js +35 -18
- package/dist/core/ll_client.js.map +1 -1
- package/dist/core/transaction.cjs +2 -1
- package/dist/core/transaction.cjs.map +1 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/transaction.js +2 -1
- package/dist/core/transaction.js.map +1 -1
- package/dist/core/unauth_client.cjs +79 -32
- package/dist/core/unauth_client.cjs.map +1 -1
- package/dist/core/unauth_client.d.ts +49 -14
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/core/unauth_client.js +79 -32
- package/dist/core/unauth_client.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +150 -18
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +127 -9
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js +150 -18
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -1
- package/dist/proto-rest/plapi.d.ts +8 -2
- package/dist/proto-rest/plapi.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/core/capabilities.ts +4 -0
- package/src/core/ll_client.ts +25 -13
- package/src/core/transaction.ts +2 -0
- package/src/core/unauth_client.test.ts +69 -1
- package/src/core/unauth_client.ts +108 -34
- package/src/core/unauth_client_branch.test.ts +416 -5
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.ts +225 -15
- package/src/proto-rest/plapi.ts +8 -2
|
@@ -2241,10 +2241,16 @@ var TxAPI_Open_Response$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
2241
2241
|
name: "tx",
|
|
2242
2242
|
kind: "message",
|
|
2243
2243
|
T: () => require_api_types.Tx
|
|
2244
|
+
}, {
|
|
2245
|
+
no: 2,
|
|
2246
|
+
name: "next_since_token",
|
|
2247
|
+
kind: "scalar",
|
|
2248
|
+
T: 12
|
|
2244
2249
|
}]);
|
|
2245
2250
|
}
|
|
2246
2251
|
create(value) {
|
|
2247
2252
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
2253
|
+
message.nextSinceToken = /* @__PURE__ */ new Uint8Array(0);
|
|
2248
2254
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
2249
2255
|
return message;
|
|
2250
2256
|
}
|
|
@@ -2256,6 +2262,9 @@ var TxAPI_Open_Response$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
2256
2262
|
case 1:
|
|
2257
2263
|
message.tx = require_api_types.Tx.internalBinaryRead(reader, reader.uint32(), options, message.tx);
|
|
2258
2264
|
break;
|
|
2265
|
+
case 2:
|
|
2266
|
+
message.nextSinceToken = reader.bytes();
|
|
2267
|
+
break;
|
|
2259
2268
|
default:
|
|
2260
2269
|
let u = options.readUnknownField;
|
|
2261
2270
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -2267,6 +2276,7 @@ var TxAPI_Open_Response$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
2267
2276
|
}
|
|
2268
2277
|
internalBinaryWrite(message, writer, options) {
|
|
2269
2278
|
if (message.tx) require_api_types.Tx.internalBinaryWrite(message.tx, writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
2279
|
+
if (message.nextSinceToken.length) writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.nextSinceToken);
|
|
2270
2280
|
let u = options.writeUnknownFields;
|
|
2271
2281
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2272
2282
|
return writer;
|
|
@@ -5605,6 +5615,12 @@ var ResourceAPI_Tree_Request$Type = class extends _protobuf_ts_runtime.MessageTy
|
|
|
5605
5615
|
name: "show_soft_deletes",
|
|
5606
5616
|
kind: "scalar",
|
|
5607
5617
|
T: 8
|
|
5618
|
+
},
|
|
5619
|
+
{
|
|
5620
|
+
no: 10,
|
|
5621
|
+
name: "changed_since_token",
|
|
5622
|
+
kind: "scalar",
|
|
5623
|
+
T: 12
|
|
5608
5624
|
}
|
|
5609
5625
|
]);
|
|
5610
5626
|
}
|
|
@@ -5615,6 +5631,7 @@ var ResourceAPI_Tree_Request$Type = class extends _protobuf_ts_runtime.MessageTy
|
|
|
5615
5631
|
message.includeKv = false;
|
|
5616
5632
|
message.seeds = [];
|
|
5617
5633
|
message.showSoftDeletes = false;
|
|
5634
|
+
message.changedSinceToken = /* @__PURE__ */ new Uint8Array(0);
|
|
5618
5635
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
5619
5636
|
return message;
|
|
5620
5637
|
}
|
|
@@ -5647,6 +5664,9 @@ var ResourceAPI_Tree_Request$Type = class extends _protobuf_ts_runtime.MessageTy
|
|
|
5647
5664
|
case 9:
|
|
5648
5665
|
message.showSoftDeletes = reader.bool();
|
|
5649
5666
|
break;
|
|
5667
|
+
case 10:
|
|
5668
|
+
message.changedSinceToken = reader.bytes();
|
|
5669
|
+
break;
|
|
5650
5670
|
default:
|
|
5651
5671
|
let u = options.readUnknownField;
|
|
5652
5672
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -5665,6 +5685,7 @@ var ResourceAPI_Tree_Request$Type = class extends _protobuf_ts_runtime.MessageTy
|
|
|
5665
5685
|
if (message.traverseStopRules) ResourceAPI_Tree_Filter.internalBinaryWrite(message.traverseStopRules, writer.tag(7, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
5666
5686
|
for (let i = 0; i < message.seeds.length; i++) ResourceAPI_Tree_SeedResource.internalBinaryWrite(message.seeds[i], writer.tag(8, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
5667
5687
|
if (message.showSoftDeletes !== false) writer.tag(9, _protobuf_ts_runtime.WireType.Varint).bool(message.showSoftDeletes);
|
|
5688
|
+
if (message.changedSinceToken.length) writer.tag(10, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.changedSinceToken);
|
|
5668
5689
|
let u = options.writeUnknownFields;
|
|
5669
5690
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
5670
5691
|
return writer;
|
|
@@ -5958,6 +5979,12 @@ var ResourceAPI_Tree_Response$Type = class extends _protobuf_ts_runtime.MessageT
|
|
|
5958
5979
|
name: "resource_signature",
|
|
5959
5980
|
kind: "scalar",
|
|
5960
5981
|
T: 12
|
|
5982
|
+
},
|
|
5983
|
+
{
|
|
5984
|
+
no: 6,
|
|
5985
|
+
name: "resource_unchanged",
|
|
5986
|
+
kind: "scalar",
|
|
5987
|
+
T: 8
|
|
5961
5988
|
}
|
|
5962
5989
|
]);
|
|
5963
5990
|
}
|
|
@@ -5967,6 +5994,7 @@ var ResourceAPI_Tree_Response$Type = class extends _protobuf_ts_runtime.MessageT
|
|
|
5967
5994
|
message.traverseWasStopped = false;
|
|
5968
5995
|
message.resourceId = 0n;
|
|
5969
5996
|
message.resourceSignature = /* @__PURE__ */ new Uint8Array(0);
|
|
5997
|
+
message.resourceUnchanged = false;
|
|
5970
5998
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
5971
5999
|
return message;
|
|
5972
6000
|
}
|
|
@@ -5990,6 +6018,9 @@ var ResourceAPI_Tree_Response$Type = class extends _protobuf_ts_runtime.MessageT
|
|
|
5990
6018
|
case 5:
|
|
5991
6019
|
message.resourceSignature = reader.bytes();
|
|
5992
6020
|
break;
|
|
6021
|
+
case 6:
|
|
6022
|
+
message.resourceUnchanged = reader.bool();
|
|
6023
|
+
break;
|
|
5993
6024
|
default:
|
|
5994
6025
|
let u = options.readUnknownField;
|
|
5995
6026
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -6005,6 +6036,7 @@ var ResourceAPI_Tree_Response$Type = class extends _protobuf_ts_runtime.MessageT
|
|
|
6005
6036
|
if (message.traverseWasStopped !== false) writer.tag(3, _protobuf_ts_runtime.WireType.Varint).bool(message.traverseWasStopped);
|
|
6006
6037
|
if (message.resourceId !== 0n) writer.tag(4, _protobuf_ts_runtime.WireType.Varint).uint64(message.resourceId);
|
|
6007
6038
|
if (message.resourceSignature.length) writer.tag(5, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
6039
|
+
if (message.resourceUnchanged !== false) writer.tag(6, _protobuf_ts_runtime.WireType.Varint).bool(message.resourceUnchanged);
|
|
6008
6040
|
let u = options.writeUnknownFields;
|
|
6009
6041
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6010
6042
|
return writer;
|
|
@@ -13139,6 +13171,12 @@ var AuthAPI_ListMethods_MethodInfo$Type = class extends _protobuf_ts_runtime.Mes
|
|
|
13139
13171
|
kind: "scalar",
|
|
13140
13172
|
T: 9
|
|
13141
13173
|
},
|
|
13174
|
+
{
|
|
13175
|
+
no: 9,
|
|
13176
|
+
name: "title",
|
|
13177
|
+
kind: "scalar",
|
|
13178
|
+
T: 9
|
|
13179
|
+
},
|
|
13142
13180
|
{
|
|
13143
13181
|
no: 4,
|
|
13144
13182
|
name: "basic",
|
|
@@ -13166,6 +13204,7 @@ var AuthAPI_ListMethods_MethodInfo$Type = class extends _protobuf_ts_runtime.Mes
|
|
|
13166
13204
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
13167
13205
|
message.id = "";
|
|
13168
13206
|
message.description = "";
|
|
13207
|
+
message.title = "";
|
|
13169
13208
|
message.method = { oneofKind: void 0 };
|
|
13170
13209
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13171
13210
|
return message;
|
|
@@ -13181,6 +13220,9 @@ var AuthAPI_ListMethods_MethodInfo$Type = class extends _protobuf_ts_runtime.Mes
|
|
|
13181
13220
|
case 7:
|
|
13182
13221
|
message.description = reader.string();
|
|
13183
13222
|
break;
|
|
13223
|
+
case 9:
|
|
13224
|
+
message.title = reader.string();
|
|
13225
|
+
break;
|
|
13184
13226
|
case 4:
|
|
13185
13227
|
message.method = {
|
|
13186
13228
|
oneofKind: "basic",
|
|
@@ -13214,6 +13256,7 @@ var AuthAPI_ListMethods_MethodInfo$Type = class extends _protobuf_ts_runtime.Mes
|
|
|
13214
13256
|
if (message.id !== "") writer.tag(6, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.id);
|
|
13215
13257
|
if (message.description !== "") writer.tag(7, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.description);
|
|
13216
13258
|
if (message.method.oneofKind === "sso") AuthAPI_ListMethods_SSOAuthMethod.internalBinaryWrite(message.method.sso, writer.tag(8, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13259
|
+
if (message.title !== "") writer.tag(9, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.title);
|
|
13217
13260
|
let u = options.writeUnknownFields;
|
|
13218
13261
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13219
13262
|
return writer;
|
|
@@ -13255,7 +13298,13 @@ var AuthAPI_BeginSSOLogin$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
13255
13298
|
new AuthAPI_BeginSSOLogin$Type();
|
|
13256
13299
|
var AuthAPI_BeginSSOLogin_Request$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13257
13300
|
constructor() {
|
|
13258
|
-
super("MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Request", [
|
|
13301
|
+
super("MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Request", [{
|
|
13302
|
+
no: 1,
|
|
13303
|
+
name: "idp",
|
|
13304
|
+
kind: "scalar",
|
|
13305
|
+
opt: true,
|
|
13306
|
+
T: 9
|
|
13307
|
+
}]);
|
|
13259
13308
|
}
|
|
13260
13309
|
create(value) {
|
|
13261
13310
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
@@ -13267,6 +13316,9 @@ var AuthAPI_BeginSSOLogin_Request$Type = class extends _protobuf_ts_runtime.Mess
|
|
|
13267
13316
|
while (reader.pos < end) {
|
|
13268
13317
|
let [fieldNo, wireType] = reader.tag();
|
|
13269
13318
|
switch (fieldNo) {
|
|
13319
|
+
case 1:
|
|
13320
|
+
message.idp = reader.string();
|
|
13321
|
+
break;
|
|
13270
13322
|
default:
|
|
13271
13323
|
let u = options.readUnknownField;
|
|
13272
13324
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -13277,6 +13329,7 @@ var AuthAPI_BeginSSOLogin_Request$Type = class extends _protobuf_ts_runtime.Mess
|
|
|
13277
13329
|
return message;
|
|
13278
13330
|
}
|
|
13279
13331
|
internalBinaryWrite(message, writer, options) {
|
|
13332
|
+
if (message.idp !== void 0) writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.idp);
|
|
13280
13333
|
let u = options.writeUnknownFields;
|
|
13281
13334
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13282
13335
|
return writer;
|
|
@@ -13588,17 +13641,27 @@ var AuthAPI_Login$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
13588
13641
|
new AuthAPI_Login$Type();
|
|
13589
13642
|
var AuthAPI_Login_BasicCredentials$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13590
13643
|
constructor() {
|
|
13591
|
-
super("MiLaboratories.PL.API.AuthAPI.Login.BasicCredentials", [
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
|
|
13597
|
-
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13644
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.BasicCredentials", [
|
|
13645
|
+
{
|
|
13646
|
+
no: 1,
|
|
13647
|
+
name: "login",
|
|
13648
|
+
kind: "scalar",
|
|
13649
|
+
T: 9
|
|
13650
|
+
},
|
|
13651
|
+
{
|
|
13652
|
+
no: 2,
|
|
13653
|
+
name: "password",
|
|
13654
|
+
kind: "scalar",
|
|
13655
|
+
T: 9
|
|
13656
|
+
},
|
|
13657
|
+
{
|
|
13658
|
+
no: 3,
|
|
13659
|
+
name: "idp",
|
|
13660
|
+
kind: "scalar",
|
|
13661
|
+
opt: true,
|
|
13662
|
+
T: 9
|
|
13663
|
+
}
|
|
13664
|
+
]);
|
|
13602
13665
|
}
|
|
13603
13666
|
create(value) {
|
|
13604
13667
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
@@ -13618,6 +13681,9 @@ var AuthAPI_Login_BasicCredentials$Type = class extends _protobuf_ts_runtime.Mes
|
|
|
13618
13681
|
case 2:
|
|
13619
13682
|
message.password = reader.string();
|
|
13620
13683
|
break;
|
|
13684
|
+
case 3:
|
|
13685
|
+
message.idp = reader.string();
|
|
13686
|
+
break;
|
|
13621
13687
|
default:
|
|
13622
13688
|
let u = options.readUnknownField;
|
|
13623
13689
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -13630,6 +13696,7 @@ var AuthAPI_Login_BasicCredentials$Type = class extends _protobuf_ts_runtime.Mes
|
|
|
13630
13696
|
internalBinaryWrite(message, writer, options) {
|
|
13631
13697
|
if (message.login !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.login);
|
|
13632
13698
|
if (message.password !== "") writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.password);
|
|
13699
|
+
if (message.idp !== void 0) writer.tag(3, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.idp);
|
|
13633
13700
|
let u = options.writeUnknownFields;
|
|
13634
13701
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13635
13702
|
return writer;
|
|
@@ -13689,6 +13756,12 @@ var AuthAPI_Login_SSOCredentials$Type = class extends _protobuf_ts_runtime.Messa
|
|
|
13689
13756
|
name: "token_response",
|
|
13690
13757
|
kind: "scalar",
|
|
13691
13758
|
T: 12
|
|
13759
|
+
}, {
|
|
13760
|
+
no: 2,
|
|
13761
|
+
name: "idp",
|
|
13762
|
+
kind: "scalar",
|
|
13763
|
+
opt: true,
|
|
13764
|
+
T: 9
|
|
13692
13765
|
}]);
|
|
13693
13766
|
}
|
|
13694
13767
|
create(value) {
|
|
@@ -13705,6 +13778,9 @@ var AuthAPI_Login_SSOCredentials$Type = class extends _protobuf_ts_runtime.Messa
|
|
|
13705
13778
|
case 1:
|
|
13706
13779
|
message.tokenResponse = reader.bytes();
|
|
13707
13780
|
break;
|
|
13781
|
+
case 2:
|
|
13782
|
+
message.idp = reader.string();
|
|
13783
|
+
break;
|
|
13708
13784
|
default:
|
|
13709
13785
|
let u = options.readUnknownField;
|
|
13710
13786
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -13716,6 +13792,7 @@ var AuthAPI_Login_SSOCredentials$Type = class extends _protobuf_ts_runtime.Messa
|
|
|
13716
13792
|
}
|
|
13717
13793
|
internalBinaryWrite(message, writer, options) {
|
|
13718
13794
|
if (message.tokenResponse.length) writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.tokenResponse);
|
|
13795
|
+
if (message.idp !== void 0) writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.idp);
|
|
13719
13796
|
let u = options.writeUnknownFields;
|
|
13720
13797
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13721
13798
|
return writer;
|
|
@@ -15339,16 +15416,43 @@ var AuthAPI_ListUserResources_SharedResource$Type = class extends _protobuf_ts_r
|
|
|
15339
15416
|
const AuthAPI_ListUserResources_SharedResource = new AuthAPI_ListUserResources_SharedResource$Type();
|
|
15340
15417
|
var AuthAPI_User$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
15341
15418
|
constructor() {
|
|
15342
|
-
super("MiLaboratories.PL.API.AuthAPI.User", [
|
|
15343
|
-
|
|
15344
|
-
|
|
15345
|
-
|
|
15346
|
-
|
|
15347
|
-
|
|
15419
|
+
super("MiLaboratories.PL.API.AuthAPI.User", [
|
|
15420
|
+
{
|
|
15421
|
+
no: 1,
|
|
15422
|
+
name: "login",
|
|
15423
|
+
kind: "scalar",
|
|
15424
|
+
T: 9
|
|
15425
|
+
},
|
|
15426
|
+
{
|
|
15427
|
+
no: 2,
|
|
15428
|
+
name: "display_name",
|
|
15429
|
+
kind: "scalar",
|
|
15430
|
+
T: 9
|
|
15431
|
+
},
|
|
15432
|
+
{
|
|
15433
|
+
no: 3,
|
|
15434
|
+
name: "email",
|
|
15435
|
+
kind: "scalar",
|
|
15436
|
+
T: 9
|
|
15437
|
+
},
|
|
15438
|
+
{
|
|
15439
|
+
no: 4,
|
|
15440
|
+
name: "attributes",
|
|
15441
|
+
kind: "map",
|
|
15442
|
+
K: 9,
|
|
15443
|
+
V: {
|
|
15444
|
+
kind: "scalar",
|
|
15445
|
+
T: 9
|
|
15446
|
+
}
|
|
15447
|
+
}
|
|
15448
|
+
]);
|
|
15348
15449
|
}
|
|
15349
15450
|
create(value) {
|
|
15350
15451
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
15351
15452
|
message.login = "";
|
|
15453
|
+
message.displayName = "";
|
|
15454
|
+
message.email = "";
|
|
15455
|
+
message.attributes = {};
|
|
15352
15456
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
15353
15457
|
return message;
|
|
15354
15458
|
}
|
|
@@ -15360,6 +15464,15 @@ var AuthAPI_User$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
15360
15464
|
case 1:
|
|
15361
15465
|
message.login = reader.string();
|
|
15362
15466
|
break;
|
|
15467
|
+
case 2:
|
|
15468
|
+
message.displayName = reader.string();
|
|
15469
|
+
break;
|
|
15470
|
+
case 3:
|
|
15471
|
+
message.email = reader.string();
|
|
15472
|
+
break;
|
|
15473
|
+
case 4:
|
|
15474
|
+
this.binaryReadMap4(message.attributes, reader, options);
|
|
15475
|
+
break;
|
|
15363
15476
|
default:
|
|
15364
15477
|
let u = options.readUnknownField;
|
|
15365
15478
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -15369,8 +15482,27 @@ var AuthAPI_User$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
15369
15482
|
}
|
|
15370
15483
|
return message;
|
|
15371
15484
|
}
|
|
15485
|
+
binaryReadMap4(map, reader, options) {
|
|
15486
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
15487
|
+
while (reader.pos < end) {
|
|
15488
|
+
let [fieldNo, wireType] = reader.tag();
|
|
15489
|
+
switch (fieldNo) {
|
|
15490
|
+
case 1:
|
|
15491
|
+
key = reader.string();
|
|
15492
|
+
break;
|
|
15493
|
+
case 2:
|
|
15494
|
+
val = reader.string();
|
|
15495
|
+
break;
|
|
15496
|
+
default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.AuthAPI.User.attributes");
|
|
15497
|
+
}
|
|
15498
|
+
}
|
|
15499
|
+
map[key ?? ""] = val ?? "";
|
|
15500
|
+
}
|
|
15372
15501
|
internalBinaryWrite(message, writer, options) {
|
|
15373
15502
|
if (message.login !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.login);
|
|
15503
|
+
if (message.displayName !== "") writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.displayName);
|
|
15504
|
+
if (message.email !== "") writer.tag(3, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.email);
|
|
15505
|
+
for (let k of globalThis.Object.keys(message.attributes)) writer.tag(4, _protobuf_ts_runtime.WireType.LengthDelimited).fork().tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(k).tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.attributes[k]).join();
|
|
15374
15506
|
let u = options.writeUnknownFields;
|
|
15375
15507
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
15376
15508
|
return writer;
|