@milaboratories/pl-client 3.6.0 → 3.8.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/dist/core/capabilities.cjs +9 -0
- package/dist/core/capabilities.cjs.map +1 -0
- package/dist/core/capabilities.d.ts +24 -0
- package/dist/core/capabilities.d.ts.map +1 -0
- package/dist/core/capabilities.js +9 -0
- package/dist/core/capabilities.js.map +1 -0
- package/dist/core/client.cjs +7 -25
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.d.ts +2 -3
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +7 -25
- package/dist/core/client.js.map +1 -1
- package/dist/core/ll_client.cjs +153 -7
- package/dist/core/ll_client.cjs.map +1 -1
- package/dist/core/ll_client.d.ts +26 -0
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_client.js +153 -7
- package/dist/core/ll_client.js.map +1 -1
- package/dist/core/transaction.cjs +4 -2
- package/dist/core/transaction.cjs.map +1 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/transaction.js +4 -2
- package/dist/core/transaction.js.map +1 -1
- package/dist/core/unauth_client.cjs +33 -1
- package/dist/core/unauth_client.cjs.map +1 -1
- package/dist/core/unauth_client.d.ts +19 -0
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/core/unauth_client.js +33 -1
- package/dist/core/unauth_client.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs.map +1 -1
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +1101 -135
- 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.client.cjs +49 -10
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +61 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +49 -10
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +423 -15
- 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 +1101 -135
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts +8 -9
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto-grpc/google/rpc/code.cjs.map +1 -1
- package/dist/proto-grpc/google/rpc/code.js.map +1 -1
- package/dist/proto-rest/plapi.d.ts +250 -5
- package/dist/proto-rest/plapi.d.ts.map +1 -1
- package/dist/util/pl.cjs.map +1 -1
- package/dist/util/pl.js.map +1 -1
- package/package.json +5 -5
- package/src/core/capabilities.ts +26 -0
- package/src/core/client.ts +11 -29
- package/src/core/ll_client.test.ts +16 -3
- package/src/core/ll_client.ts +187 -8
- package/src/core/ll_transaction.test.ts +15 -9
- package/src/core/transaction.ts +2 -0
- package/src/core/unauth_client.ts +42 -3
- package/src/core/unauth_client_branch.test.ts +69 -0
- package/src/index.ts +1 -0
- package/src/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.ts +1 -1
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +85 -10
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.ts +1322 -104
- package/src/proto-grpc/google/api/http.ts +1 -1
- package/src/proto-grpc/google/protobuf/descriptor.ts +7 -240
- package/src/proto-grpc/google/protobuf/timestamp.ts +8 -9
- package/src/proto-grpc/google/protobuf/wrappers.ts +4 -38
- package/src/proto-grpc/google/rpc/code.ts +1 -1
- package/src/proto-grpc/google/rpc/error_details.ts +5 -5
- package/src/proto-grpc/google/rpc/http.ts +1 -1
- package/src/proto-grpc/google/rpc/status.ts +1 -1
- package/src/proto-rest/plapi.ts +266 -5
- package/src/util/pl.ts +5 -0
|
@@ -118,6 +118,16 @@ let ResourceAPI_Tree_Filter_Property = /* @__PURE__ */ function(ResourceAPI_Tree
|
|
|
118
118
|
return ResourceAPI_Tree_Filter_Property;
|
|
119
119
|
}({});
|
|
120
120
|
/**
|
|
121
|
+
* @generated from protobuf enum MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod.FlowType
|
|
122
|
+
*/
|
|
123
|
+
let AuthAPI_ListMethods_SSOAuthMethod_FlowType = /* @__PURE__ */ function(AuthAPI_ListMethods_SSOAuthMethod_FlowType) {
|
|
124
|
+
/**
|
|
125
|
+
* @generated from protobuf enum value: PUBLIC_PKCE = 0;
|
|
126
|
+
*/
|
|
127
|
+
AuthAPI_ListMethods_SSOAuthMethod_FlowType[AuthAPI_ListMethods_SSOAuthMethod_FlowType["PUBLIC_PKCE"] = 0] = "PUBLIC_PKCE";
|
|
128
|
+
return AuthAPI_ListMethods_SSOAuthMethod_FlowType;
|
|
129
|
+
}({});
|
|
130
|
+
/**
|
|
121
131
|
* GrantType distinguishes regular grants from system-level grants.
|
|
122
132
|
*
|
|
123
133
|
* @generated from protobuf enum MiLaboratories.PL.API.AuthAPI.GrantAccess.GrantType
|
|
@@ -4419,6 +4429,12 @@ var ResourceAPI_Get_Request$Type = class extends _protobuf_ts_runtime.MessageTyp
|
|
|
4419
4429
|
name: "load_fields",
|
|
4420
4430
|
kind: "scalar",
|
|
4421
4431
|
T: 8
|
|
4432
|
+
},
|
|
4433
|
+
{
|
|
4434
|
+
no: 4,
|
|
4435
|
+
name: "show_soft_deletes",
|
|
4436
|
+
kind: "scalar",
|
|
4437
|
+
T: 8
|
|
4422
4438
|
}
|
|
4423
4439
|
]);
|
|
4424
4440
|
}
|
|
@@ -4427,6 +4443,7 @@ var ResourceAPI_Get_Request$Type = class extends _protobuf_ts_runtime.MessageTyp
|
|
|
4427
4443
|
message.resourceId = 0n;
|
|
4428
4444
|
message.resourceSignature = new Uint8Array(0);
|
|
4429
4445
|
message.loadFields = false;
|
|
4446
|
+
message.showSoftDeletes = false;
|
|
4430
4447
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
4431
4448
|
return message;
|
|
4432
4449
|
}
|
|
@@ -4444,6 +4461,9 @@ var ResourceAPI_Get_Request$Type = class extends _protobuf_ts_runtime.MessageTyp
|
|
|
4444
4461
|
case 2:
|
|
4445
4462
|
message.loadFields = reader.bool();
|
|
4446
4463
|
break;
|
|
4464
|
+
case 4:
|
|
4465
|
+
message.showSoftDeletes = reader.bool();
|
|
4466
|
+
break;
|
|
4447
4467
|
default:
|
|
4448
4468
|
let u = options.readUnknownField;
|
|
4449
4469
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -4457,6 +4477,7 @@ var ResourceAPI_Get_Request$Type = class extends _protobuf_ts_runtime.MessageTyp
|
|
|
4457
4477
|
if (message.resourceId !== 0n) writer.tag(1, _protobuf_ts_runtime.WireType.Varint).uint64(message.resourceId);
|
|
4458
4478
|
if (message.loadFields !== false) writer.tag(2, _protobuf_ts_runtime.WireType.Varint).bool(message.loadFields);
|
|
4459
4479
|
if (message.resourceSignature.length) writer.tag(3, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
4480
|
+
if (message.showSoftDeletes !== false) writer.tag(4, _protobuf_ts_runtime.WireType.Varint).bool(message.showSoftDeletes);
|
|
4460
4481
|
let u = options.writeUnknownFields;
|
|
4461
4482
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4462
4483
|
return writer;
|
|
@@ -4601,6 +4622,12 @@ var ResourceAPI_List_ByType_Request$Type = class extends _protobuf_ts_runtime.Me
|
|
|
4601
4622
|
name: "load_fields",
|
|
4602
4623
|
kind: "scalar",
|
|
4603
4624
|
T: 8
|
|
4625
|
+
},
|
|
4626
|
+
{
|
|
4627
|
+
no: 7,
|
|
4628
|
+
name: "show_soft_deletes",
|
|
4629
|
+
kind: "scalar",
|
|
4630
|
+
T: 8
|
|
4604
4631
|
}
|
|
4605
4632
|
]);
|
|
4606
4633
|
}
|
|
@@ -4610,6 +4637,7 @@ var ResourceAPI_List_ByType_Request$Type = class extends _protobuf_ts_runtime.Me
|
|
|
4610
4637
|
message.after = 0n;
|
|
4611
4638
|
message.resolveDuplicates = false;
|
|
4612
4639
|
message.loadFields = false;
|
|
4640
|
+
message.showSoftDeletes = false;
|
|
4613
4641
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
4614
4642
|
return message;
|
|
4615
4643
|
}
|
|
@@ -4633,6 +4661,9 @@ var ResourceAPI_List_ByType_Request$Type = class extends _protobuf_ts_runtime.Me
|
|
|
4633
4661
|
case 5:
|
|
4634
4662
|
message.loadFields = reader.bool();
|
|
4635
4663
|
break;
|
|
4664
|
+
case 7:
|
|
4665
|
+
message.showSoftDeletes = reader.bool();
|
|
4666
|
+
break;
|
|
4636
4667
|
default:
|
|
4637
4668
|
let u = options.readUnknownField;
|
|
4638
4669
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -4648,6 +4679,7 @@ var ResourceAPI_List_ByType_Request$Type = class extends _protobuf_ts_runtime.Me
|
|
|
4648
4679
|
if (message.resolveDuplicates !== false) writer.tag(4, _protobuf_ts_runtime.WireType.Varint).bool(message.resolveDuplicates);
|
|
4649
4680
|
if (message.loadFields !== false) writer.tag(5, _protobuf_ts_runtime.WireType.Varint).bool(message.loadFields);
|
|
4650
4681
|
if (message.after !== 0n) writer.tag(6, _protobuf_ts_runtime.WireType.Varint).uint64(message.after);
|
|
4682
|
+
if (message.showSoftDeletes !== false) writer.tag(7, _protobuf_ts_runtime.WireType.Varint).bool(message.showSoftDeletes);
|
|
4651
4683
|
let u = options.writeUnknownFields;
|
|
4652
4684
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4653
4685
|
return writer;
|
|
@@ -5540,6 +5572,12 @@ var ResourceAPI_Tree_Request$Type = class extends _protobuf_ts_runtime.MessageTy
|
|
|
5540
5572
|
kind: "message",
|
|
5541
5573
|
repeat: 2,
|
|
5542
5574
|
T: () => ResourceAPI_Tree_SeedResource
|
|
5575
|
+
},
|
|
5576
|
+
{
|
|
5577
|
+
no: 9,
|
|
5578
|
+
name: "show_soft_deletes",
|
|
5579
|
+
kind: "scalar",
|
|
5580
|
+
T: 8
|
|
5543
5581
|
}
|
|
5544
5582
|
]);
|
|
5545
5583
|
}
|
|
@@ -5549,6 +5587,7 @@ var ResourceAPI_Tree_Request$Type = class extends _protobuf_ts_runtime.MessageTy
|
|
|
5549
5587
|
message.resourceSignature = new Uint8Array(0);
|
|
5550
5588
|
message.includeKv = false;
|
|
5551
5589
|
message.seeds = [];
|
|
5590
|
+
message.showSoftDeletes = false;
|
|
5552
5591
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
5553
5592
|
return message;
|
|
5554
5593
|
}
|
|
@@ -5578,6 +5617,9 @@ var ResourceAPI_Tree_Request$Type = class extends _protobuf_ts_runtime.MessageTy
|
|
|
5578
5617
|
case 8:
|
|
5579
5618
|
message.seeds.push(ResourceAPI_Tree_SeedResource.internalBinaryRead(reader, reader.uint32(), options));
|
|
5580
5619
|
break;
|
|
5620
|
+
case 9:
|
|
5621
|
+
message.showSoftDeletes = reader.bool();
|
|
5622
|
+
break;
|
|
5581
5623
|
default:
|
|
5582
5624
|
let u = options.readUnknownField;
|
|
5583
5625
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -5595,6 +5637,7 @@ var ResourceAPI_Tree_Request$Type = class extends _protobuf_ts_runtime.MessageTy
|
|
|
5595
5637
|
if (message.includeKv !== false) writer.tag(6, _protobuf_ts_runtime.WireType.Varint).bool(message.includeKv);
|
|
5596
5638
|
if (message.traverseStopRules) ResourceAPI_Tree_Filter.internalBinaryWrite(message.traverseStopRules, writer.tag(7, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
5597
5639
|
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();
|
|
5640
|
+
if (message.showSoftDeletes !== false) writer.tag(9, _protobuf_ts_runtime.WireType.Varint).bool(message.showSoftDeletes);
|
|
5598
5641
|
let u = options.writeUnknownFields;
|
|
5599
5642
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
5600
5643
|
return writer;
|
|
@@ -6977,6 +7020,12 @@ var FieldAPI_List_Request$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
6977
7020
|
name: "limit",
|
|
6978
7021
|
kind: "scalar",
|
|
6979
7022
|
T: 13
|
|
7023
|
+
},
|
|
7024
|
+
{
|
|
7025
|
+
no: 5,
|
|
7026
|
+
name: "show_soft_deletes",
|
|
7027
|
+
kind: "scalar",
|
|
7028
|
+
T: 8
|
|
6980
7029
|
}
|
|
6981
7030
|
]);
|
|
6982
7031
|
}
|
|
@@ -6986,6 +7035,7 @@ var FieldAPI_List_Request$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
6986
7035
|
message.resourceSignature = new Uint8Array(0);
|
|
6987
7036
|
message.startFrom = "";
|
|
6988
7037
|
message.limit = 0;
|
|
7038
|
+
message.showSoftDeletes = false;
|
|
6989
7039
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
6990
7040
|
return message;
|
|
6991
7041
|
}
|
|
@@ -7006,6 +7056,9 @@ var FieldAPI_List_Request$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
7006
7056
|
case 3:
|
|
7007
7057
|
message.limit = reader.uint32();
|
|
7008
7058
|
break;
|
|
7059
|
+
case 5:
|
|
7060
|
+
message.showSoftDeletes = reader.bool();
|
|
7061
|
+
break;
|
|
7009
7062
|
default:
|
|
7010
7063
|
let u = options.readUnknownField;
|
|
7011
7064
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -7020,6 +7073,7 @@ var FieldAPI_List_Request$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
7020
7073
|
if (message.startFrom !== "") writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.startFrom);
|
|
7021
7074
|
if (message.limit !== 0) writer.tag(3, _protobuf_ts_runtime.WireType.Varint).uint32(message.limit);
|
|
7022
7075
|
if (message.resourceSignature.length) writer.tag(4, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
7076
|
+
if (message.showSoftDeletes !== false) writer.tag(5, _protobuf_ts_runtime.WireType.Varint).bool(message.showSoftDeletes);
|
|
7023
7077
|
let u = options.writeUnknownFields;
|
|
7024
7078
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7025
7079
|
return writer;
|
|
@@ -12816,38 +12870,12 @@ var AuthAPI_ListMethods_Response$Type = class extends _protobuf_ts_runtime.Messa
|
|
|
12816
12870
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.Response
|
|
12817
12871
|
*/
|
|
12818
12872
|
const AuthAPI_ListMethods_Response = new AuthAPI_ListMethods_Response$Type();
|
|
12819
|
-
var
|
|
12873
|
+
var AuthAPI_ListMethods_BasicAuthMethod$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
12820
12874
|
constructor() {
|
|
12821
|
-
super("MiLaboratories.PL.API.AuthAPI.ListMethods.
|
|
12822
|
-
{
|
|
12823
|
-
no: 1,
|
|
12824
|
-
name: "type",
|
|
12825
|
-
kind: "scalar",
|
|
12826
|
-
T: 9
|
|
12827
|
-
},
|
|
12828
|
-
{
|
|
12829
|
-
no: 2,
|
|
12830
|
-
name: "name",
|
|
12831
|
-
kind: "scalar",
|
|
12832
|
-
T: 9
|
|
12833
|
-
},
|
|
12834
|
-
{
|
|
12835
|
-
no: 3,
|
|
12836
|
-
name: "info",
|
|
12837
|
-
kind: "map",
|
|
12838
|
-
K: 9,
|
|
12839
|
-
V: {
|
|
12840
|
-
kind: "scalar",
|
|
12841
|
-
T: 9
|
|
12842
|
-
}
|
|
12843
|
-
}
|
|
12844
|
-
]);
|
|
12875
|
+
super("MiLaboratories.PL.API.AuthAPI.ListMethods.BasicAuthMethod", []);
|
|
12845
12876
|
}
|
|
12846
12877
|
create(value) {
|
|
12847
12878
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12848
|
-
message.type = "";
|
|
12849
|
-
message.name = "";
|
|
12850
|
-
message.info = {};
|
|
12851
12879
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
12852
12880
|
return message;
|
|
12853
12881
|
}
|
|
@@ -12856,15 +12884,6 @@ var AuthAPI_ListMethods_MethodInfo$Type = class extends _protobuf_ts_runtime.Mes
|
|
|
12856
12884
|
while (reader.pos < end) {
|
|
12857
12885
|
let [fieldNo, wireType] = reader.tag();
|
|
12858
12886
|
switch (fieldNo) {
|
|
12859
|
-
case 1:
|
|
12860
|
-
message.type = reader.string();
|
|
12861
|
-
break;
|
|
12862
|
-
case 2:
|
|
12863
|
-
message.name = reader.string();
|
|
12864
|
-
break;
|
|
12865
|
-
case 3:
|
|
12866
|
-
this.binaryReadMap3(message.info, reader, options);
|
|
12867
|
-
break;
|
|
12868
12887
|
default:
|
|
12869
12888
|
let u = options.readUnknownField;
|
|
12870
12889
|
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -12874,38 +12893,19 @@ var AuthAPI_ListMethods_MethodInfo$Type = class extends _protobuf_ts_runtime.Mes
|
|
|
12874
12893
|
}
|
|
12875
12894
|
return message;
|
|
12876
12895
|
}
|
|
12877
|
-
binaryReadMap3(map, reader, options) {
|
|
12878
|
-
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
12879
|
-
while (reader.pos < end) {
|
|
12880
|
-
let [fieldNo, wireType] = reader.tag();
|
|
12881
|
-
switch (fieldNo) {
|
|
12882
|
-
case 1:
|
|
12883
|
-
key = reader.string();
|
|
12884
|
-
break;
|
|
12885
|
-
case 2:
|
|
12886
|
-
val = reader.string();
|
|
12887
|
-
break;
|
|
12888
|
-
default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.AuthAPI.ListMethods.MethodInfo.info");
|
|
12889
|
-
}
|
|
12890
|
-
}
|
|
12891
|
-
map[key ?? ""] = val ?? "";
|
|
12892
|
-
}
|
|
12893
12896
|
internalBinaryWrite(message, writer, options) {
|
|
12894
|
-
if (message.type !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.type);
|
|
12895
|
-
if (message.name !== "") writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.name);
|
|
12896
|
-
for (let k of globalThis.Object.keys(message.info)) writer.tag(3, _protobuf_ts_runtime.WireType.LengthDelimited).fork().tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(k).tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.info[k]).join();
|
|
12897
12897
|
let u = options.writeUnknownFields;
|
|
12898
12898
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12899
12899
|
return writer;
|
|
12900
12900
|
}
|
|
12901
12901
|
};
|
|
12902
12902
|
/**
|
|
12903
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.
|
|
12903
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.BasicAuthMethod
|
|
12904
12904
|
*/
|
|
12905
|
-
const
|
|
12906
|
-
var
|
|
12905
|
+
const AuthAPI_ListMethods_BasicAuthMethod = new AuthAPI_ListMethods_BasicAuthMethod$Type();
|
|
12906
|
+
var AuthAPI_ListMethods_TokenAuthMethod$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
12907
12907
|
constructor() {
|
|
12908
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
12908
|
+
super("MiLaboratories.PL.API.AuthAPI.ListMethods.TokenAuthMethod", []);
|
|
12909
12909
|
}
|
|
12910
12910
|
create(value) {
|
|
12911
12911
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
@@ -12932,28 +12932,88 @@ var AuthAPI_GetJWTToken$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
12932
12932
|
return writer;
|
|
12933
12933
|
}
|
|
12934
12934
|
};
|
|
12935
|
-
|
|
12936
|
-
|
|
12935
|
+
/**
|
|
12936
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.TokenAuthMethod
|
|
12937
|
+
*/
|
|
12938
|
+
const AuthAPI_ListMethods_TokenAuthMethod = new AuthAPI_ListMethods_TokenAuthMethod$Type();
|
|
12939
|
+
var AuthAPI_ListMethods_SSOAuthMethod$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
12937
12940
|
constructor() {
|
|
12938
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
|
|
12941
|
+
super("MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod", [
|
|
12942
|
+
{
|
|
12943
|
+
no: 1,
|
|
12944
|
+
name: "issuer",
|
|
12945
|
+
kind: "scalar",
|
|
12946
|
+
T: 9
|
|
12947
|
+
},
|
|
12948
|
+
{
|
|
12949
|
+
no: 2,
|
|
12950
|
+
name: "client_id",
|
|
12951
|
+
kind: "scalar",
|
|
12952
|
+
T: 9
|
|
12953
|
+
},
|
|
12954
|
+
{
|
|
12955
|
+
no: 3,
|
|
12956
|
+
name: "scopes",
|
|
12957
|
+
kind: "scalar",
|
|
12958
|
+
T: 9
|
|
12959
|
+
},
|
|
12960
|
+
{
|
|
12961
|
+
no: 4,
|
|
12962
|
+
name: "resource",
|
|
12963
|
+
kind: "scalar",
|
|
12964
|
+
T: 9
|
|
12965
|
+
},
|
|
12966
|
+
{
|
|
12967
|
+
no: 5,
|
|
12968
|
+
name: "prompt",
|
|
12969
|
+
kind: "scalar",
|
|
12970
|
+
T: 9
|
|
12971
|
+
},
|
|
12972
|
+
{
|
|
12973
|
+
no: 6,
|
|
12974
|
+
name: "redirect_ports",
|
|
12975
|
+
kind: "scalar",
|
|
12976
|
+
repeat: 1,
|
|
12977
|
+
T: 13
|
|
12978
|
+
},
|
|
12979
|
+
{
|
|
12980
|
+
no: 7,
|
|
12981
|
+
name: "subject_token_source",
|
|
12982
|
+
kind: "scalar",
|
|
12983
|
+
T: 9
|
|
12984
|
+
},
|
|
12985
|
+
{
|
|
12986
|
+
no: 8,
|
|
12987
|
+
name: "user_id_claim",
|
|
12988
|
+
kind: "scalar",
|
|
12989
|
+
T: 9
|
|
12990
|
+
},
|
|
12991
|
+
{
|
|
12992
|
+
no: 9,
|
|
12993
|
+
name: "groups_claim",
|
|
12994
|
+
kind: "scalar",
|
|
12995
|
+
T: 9
|
|
12996
|
+
},
|
|
12997
|
+
{
|
|
12998
|
+
no: 10,
|
|
12999
|
+
name: "flow_type",
|
|
13000
|
+
kind: "enum",
|
|
13001
|
+
T: () => ["MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod.FlowType", AuthAPI_ListMethods_SSOAuthMethod_FlowType]
|
|
13002
|
+
}
|
|
13003
|
+
]);
|
|
12954
13004
|
}
|
|
12955
13005
|
create(value) {
|
|
12956
13006
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
13007
|
+
message.issuer = "";
|
|
13008
|
+
message.clientId = "";
|
|
13009
|
+
message.scopes = "";
|
|
13010
|
+
message.resource = "";
|
|
13011
|
+
message.prompt = "";
|
|
13012
|
+
message.redirectPorts = [];
|
|
13013
|
+
message.subjectTokenSource = "";
|
|
13014
|
+
message.userIdClaim = "";
|
|
13015
|
+
message.groupsClaim = "";
|
|
13016
|
+
message.flowType = 0;
|
|
12957
13017
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
12958
13018
|
return message;
|
|
12959
13019
|
}
|
|
@@ -12963,10 +13023,35 @@ var AuthAPI_GetJWTToken_Request$Type = class extends _protobuf_ts_runtime.Messag
|
|
|
12963
13023
|
let [fieldNo, wireType] = reader.tag();
|
|
12964
13024
|
switch (fieldNo) {
|
|
12965
13025
|
case 1:
|
|
12966
|
-
message.
|
|
13026
|
+
message.issuer = reader.string();
|
|
12967
13027
|
break;
|
|
12968
13028
|
case 2:
|
|
12969
|
-
message.
|
|
13029
|
+
message.clientId = reader.string();
|
|
13030
|
+
break;
|
|
13031
|
+
case 3:
|
|
13032
|
+
message.scopes = reader.string();
|
|
13033
|
+
break;
|
|
13034
|
+
case 4:
|
|
13035
|
+
message.resource = reader.string();
|
|
13036
|
+
break;
|
|
13037
|
+
case 5:
|
|
13038
|
+
message.prompt = reader.string();
|
|
13039
|
+
break;
|
|
13040
|
+
case 6:
|
|
13041
|
+
if (wireType === _protobuf_ts_runtime.WireType.LengthDelimited) for (let e = reader.int32() + reader.pos; reader.pos < e;) message.redirectPorts.push(reader.uint32());
|
|
13042
|
+
else message.redirectPorts.push(reader.uint32());
|
|
13043
|
+
break;
|
|
13044
|
+
case 7:
|
|
13045
|
+
message.subjectTokenSource = reader.string();
|
|
13046
|
+
break;
|
|
13047
|
+
case 8:
|
|
13048
|
+
message.userIdClaim = reader.string();
|
|
13049
|
+
break;
|
|
13050
|
+
case 9:
|
|
13051
|
+
message.groupsClaim = reader.string();
|
|
13052
|
+
break;
|
|
13053
|
+
case 10:
|
|
13054
|
+
message.flowType = reader.int32();
|
|
12970
13055
|
break;
|
|
12971
13056
|
default:
|
|
12972
13057
|
let u = options.readUnknownField;
|
|
@@ -12978,49 +13063,72 @@ var AuthAPI_GetJWTToken_Request$Type = class extends _protobuf_ts_runtime.Messag
|
|
|
12978
13063
|
return message;
|
|
12979
13064
|
}
|
|
12980
13065
|
internalBinaryWrite(message, writer, options) {
|
|
12981
|
-
if (message.
|
|
12982
|
-
if (message.
|
|
13066
|
+
if (message.issuer !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.issuer);
|
|
13067
|
+
if (message.clientId !== "") writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.clientId);
|
|
13068
|
+
if (message.scopes !== "") writer.tag(3, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.scopes);
|
|
13069
|
+
if (message.resource !== "") writer.tag(4, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.resource);
|
|
13070
|
+
if (message.prompt !== "") writer.tag(5, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.prompt);
|
|
13071
|
+
if (message.redirectPorts.length) {
|
|
13072
|
+
writer.tag(6, _protobuf_ts_runtime.WireType.LengthDelimited).fork();
|
|
13073
|
+
for (let i = 0; i < message.redirectPorts.length; i++) writer.uint32(message.redirectPorts[i]);
|
|
13074
|
+
writer.join();
|
|
13075
|
+
}
|
|
13076
|
+
if (message.subjectTokenSource !== "") writer.tag(7, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.subjectTokenSource);
|
|
13077
|
+
if (message.userIdClaim !== "") writer.tag(8, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.userIdClaim);
|
|
13078
|
+
if (message.groupsClaim !== "") writer.tag(9, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.groupsClaim);
|
|
13079
|
+
if (message.flowType !== 0) writer.tag(10, _protobuf_ts_runtime.WireType.Varint).int32(message.flowType);
|
|
12983
13080
|
let u = options.writeUnknownFields;
|
|
12984
13081
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12985
13082
|
return writer;
|
|
12986
13083
|
}
|
|
12987
13084
|
};
|
|
12988
13085
|
/**
|
|
12989
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
13086
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod
|
|
12990
13087
|
*/
|
|
12991
|
-
const
|
|
12992
|
-
var
|
|
13088
|
+
const AuthAPI_ListMethods_SSOAuthMethod = new AuthAPI_ListMethods_SSOAuthMethod$Type();
|
|
13089
|
+
var AuthAPI_ListMethods_MethodInfo$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
12993
13090
|
constructor() {
|
|
12994
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
13091
|
+
super("MiLaboratories.PL.API.AuthAPI.ListMethods.MethodInfo", [
|
|
12995
13092
|
{
|
|
12996
|
-
no:
|
|
12997
|
-
name: "
|
|
13093
|
+
no: 6,
|
|
13094
|
+
name: "id",
|
|
12998
13095
|
kind: "scalar",
|
|
12999
13096
|
T: 9
|
|
13000
13097
|
},
|
|
13001
13098
|
{
|
|
13002
|
-
no:
|
|
13003
|
-
name: "
|
|
13099
|
+
no: 7,
|
|
13100
|
+
name: "description",
|
|
13004
13101
|
kind: "scalar",
|
|
13005
|
-
T:
|
|
13102
|
+
T: 9
|
|
13006
13103
|
},
|
|
13007
13104
|
{
|
|
13008
|
-
no:
|
|
13009
|
-
name: "
|
|
13010
|
-
kind: "
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13105
|
+
no: 4,
|
|
13106
|
+
name: "basic",
|
|
13107
|
+
kind: "message",
|
|
13108
|
+
oneof: "method",
|
|
13109
|
+
T: () => AuthAPI_ListMethods_BasicAuthMethod
|
|
13110
|
+
},
|
|
13111
|
+
{
|
|
13112
|
+
no: 5,
|
|
13113
|
+
name: "token",
|
|
13114
|
+
kind: "message",
|
|
13115
|
+
oneof: "method",
|
|
13116
|
+
T: () => AuthAPI_ListMethods_TokenAuthMethod
|
|
13117
|
+
},
|
|
13118
|
+
{
|
|
13119
|
+
no: 8,
|
|
13120
|
+
name: "sso",
|
|
13121
|
+
kind: "message",
|
|
13122
|
+
oneof: "method",
|
|
13123
|
+
T: () => AuthAPI_ListMethods_SSOAuthMethod
|
|
13016
13124
|
}
|
|
13017
13125
|
]);
|
|
13018
13126
|
}
|
|
13019
13127
|
create(value) {
|
|
13020
13128
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
13021
|
-
message.
|
|
13022
|
-
message.
|
|
13023
|
-
message.
|
|
13129
|
+
message.id = "";
|
|
13130
|
+
message.description = "";
|
|
13131
|
+
message.method = { oneofKind: void 0 };
|
|
13024
13132
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13025
13133
|
return message;
|
|
13026
13134
|
}
|
|
@@ -13029,14 +13137,29 @@ var AuthAPI_GetJWTToken_Response$Type = class extends _protobuf_ts_runtime.Messa
|
|
|
13029
13137
|
while (reader.pos < end) {
|
|
13030
13138
|
let [fieldNo, wireType] = reader.tag();
|
|
13031
13139
|
switch (fieldNo) {
|
|
13032
|
-
case
|
|
13033
|
-
message.
|
|
13140
|
+
case 6:
|
|
13141
|
+
message.id = reader.string();
|
|
13034
13142
|
break;
|
|
13035
|
-
case
|
|
13036
|
-
message.
|
|
13143
|
+
case 7:
|
|
13144
|
+
message.description = reader.string();
|
|
13037
13145
|
break;
|
|
13038
|
-
case
|
|
13039
|
-
message.
|
|
13146
|
+
case 4:
|
|
13147
|
+
message.method = {
|
|
13148
|
+
oneofKind: "basic",
|
|
13149
|
+
basic: AuthAPI_ListMethods_BasicAuthMethod.internalBinaryRead(reader, reader.uint32(), options, message.method.basic)
|
|
13150
|
+
};
|
|
13151
|
+
break;
|
|
13152
|
+
case 5:
|
|
13153
|
+
message.method = {
|
|
13154
|
+
oneofKind: "token",
|
|
13155
|
+
token: AuthAPI_ListMethods_TokenAuthMethod.internalBinaryRead(reader, reader.uint32(), options, message.method.token)
|
|
13156
|
+
};
|
|
13157
|
+
break;
|
|
13158
|
+
case 8:
|
|
13159
|
+
message.method = {
|
|
13160
|
+
oneofKind: "sso",
|
|
13161
|
+
sso: AuthAPI_ListMethods_SSOAuthMethod.internalBinaryRead(reader, reader.uint32(), options, message.method.sso)
|
|
13162
|
+
};
|
|
13040
13163
|
break;
|
|
13041
13164
|
default:
|
|
13042
13165
|
let u = options.readUnknownField;
|
|
@@ -13048,21 +13171,23 @@ var AuthAPI_GetJWTToken_Response$Type = class extends _protobuf_ts_runtime.Messa
|
|
|
13048
13171
|
return message;
|
|
13049
13172
|
}
|
|
13050
13173
|
internalBinaryWrite(message, writer, options) {
|
|
13051
|
-
if (message.
|
|
13052
|
-
if (message.
|
|
13053
|
-
if (message.
|
|
13174
|
+
if (message.method.oneofKind === "basic") AuthAPI_ListMethods_BasicAuthMethod.internalBinaryWrite(message.method.basic, writer.tag(4, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13175
|
+
if (message.method.oneofKind === "token") AuthAPI_ListMethods_TokenAuthMethod.internalBinaryWrite(message.method.token, writer.tag(5, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13176
|
+
if (message.id !== "") writer.tag(6, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.id);
|
|
13177
|
+
if (message.description !== "") writer.tag(7, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.description);
|
|
13178
|
+
if (message.method.oneofKind === "sso") AuthAPI_ListMethods_SSOAuthMethod.internalBinaryWrite(message.method.sso, writer.tag(8, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13054
13179
|
let u = options.writeUnknownFields;
|
|
13055
13180
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13056
13181
|
return writer;
|
|
13057
13182
|
}
|
|
13058
13183
|
};
|
|
13059
13184
|
/**
|
|
13060
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
13185
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.MethodInfo
|
|
13061
13186
|
*/
|
|
13062
|
-
const
|
|
13063
|
-
var
|
|
13187
|
+
const AuthAPI_ListMethods_MethodInfo = new AuthAPI_ListMethods_MethodInfo$Type();
|
|
13188
|
+
var AuthAPI_BeginSSOLogin$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13064
13189
|
constructor() {
|
|
13065
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
13190
|
+
super("MiLaboratories.PL.API.AuthAPI.BeginSSOLogin", []);
|
|
13066
13191
|
}
|
|
13067
13192
|
create(value) {
|
|
13068
13193
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
@@ -13089,10 +13214,10 @@ var AuthAPI_GetSessionInfo$Type = class extends _protobuf_ts_runtime.MessageType
|
|
|
13089
13214
|
return writer;
|
|
13090
13215
|
}
|
|
13091
13216
|
};
|
|
13092
|
-
new
|
|
13093
|
-
var
|
|
13217
|
+
new AuthAPI_BeginSSOLogin$Type();
|
|
13218
|
+
var AuthAPI_BeginSSOLogin_Request$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13094
13219
|
constructor() {
|
|
13095
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
13220
|
+
super("MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Request", []);
|
|
13096
13221
|
}
|
|
13097
13222
|
create(value) {
|
|
13098
13223
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
@@ -13120,31 +13245,26 @@ var AuthAPI_GetSessionInfo_Request$Type = class extends _protobuf_ts_runtime.Mes
|
|
|
13120
13245
|
}
|
|
13121
13246
|
};
|
|
13122
13247
|
/**
|
|
13123
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
13248
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Request
|
|
13124
13249
|
*/
|
|
13125
|
-
const
|
|
13126
|
-
var
|
|
13250
|
+
const AuthAPI_BeginSSOLogin_Request = new AuthAPI_BeginSSOLogin_Request$Type();
|
|
13251
|
+
var AuthAPI_BeginSSOLogin_PublicPKCE$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13127
13252
|
constructor() {
|
|
13128
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
13253
|
+
super("MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.PublicPKCE", [{
|
|
13129
13254
|
no: 1,
|
|
13130
|
-
name: "
|
|
13255
|
+
name: "nonce",
|
|
13131
13256
|
kind: "scalar",
|
|
13132
|
-
T:
|
|
13257
|
+
T: 9
|
|
13133
13258
|
}, {
|
|
13134
13259
|
no: 2,
|
|
13135
|
-
name: "
|
|
13136
|
-
kind: "
|
|
13137
|
-
T: () =>
|
|
13138
|
-
"MiLaboratories.PL.API.AuthAPI.Role",
|
|
13139
|
-
AuthAPI_Role,
|
|
13140
|
-
"ROLE_"
|
|
13141
|
-
]
|
|
13260
|
+
name: "expires_at",
|
|
13261
|
+
kind: "message",
|
|
13262
|
+
T: () => require_timestamp.Timestamp
|
|
13142
13263
|
}]);
|
|
13143
13264
|
}
|
|
13144
13265
|
create(value) {
|
|
13145
13266
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
13146
|
-
message.
|
|
13147
|
-
message.role = 0;
|
|
13267
|
+
message.nonce = "";
|
|
13148
13268
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13149
13269
|
return message;
|
|
13150
13270
|
}
|
|
@@ -13154,10 +13274,829 @@ var AuthAPI_GetSessionInfo_Response$Type = class extends _protobuf_ts_runtime.Me
|
|
|
13154
13274
|
let [fieldNo, wireType] = reader.tag();
|
|
13155
13275
|
switch (fieldNo) {
|
|
13156
13276
|
case 1:
|
|
13157
|
-
message.
|
|
13277
|
+
message.nonce = reader.string();
|
|
13158
13278
|
break;
|
|
13159
13279
|
case 2:
|
|
13160
|
-
message.
|
|
13280
|
+
message.expiresAt = require_timestamp.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
13281
|
+
break;
|
|
13282
|
+
default:
|
|
13283
|
+
let u = options.readUnknownField;
|
|
13284
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13285
|
+
let d = reader.skip(wireType);
|
|
13286
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13287
|
+
}
|
|
13288
|
+
}
|
|
13289
|
+
return message;
|
|
13290
|
+
}
|
|
13291
|
+
internalBinaryWrite(message, writer, options) {
|
|
13292
|
+
if (message.nonce !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.nonce);
|
|
13293
|
+
if (message.expiresAt) require_timestamp.Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13294
|
+
let u = options.writeUnknownFields;
|
|
13295
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13296
|
+
return writer;
|
|
13297
|
+
}
|
|
13298
|
+
};
|
|
13299
|
+
/**
|
|
13300
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.PublicPKCE
|
|
13301
|
+
*/
|
|
13302
|
+
const AuthAPI_BeginSSOLogin_PublicPKCE = new AuthAPI_BeginSSOLogin_PublicPKCE$Type();
|
|
13303
|
+
var AuthAPI_BeginSSOLogin_Response$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13304
|
+
constructor() {
|
|
13305
|
+
super("MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Response", [{
|
|
13306
|
+
no: 1,
|
|
13307
|
+
name: "public_pkce",
|
|
13308
|
+
kind: "message",
|
|
13309
|
+
oneof: "flow",
|
|
13310
|
+
T: () => AuthAPI_BeginSSOLogin_PublicPKCE
|
|
13311
|
+
}]);
|
|
13312
|
+
}
|
|
13313
|
+
create(value) {
|
|
13314
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13315
|
+
message.flow = { oneofKind: void 0 };
|
|
13316
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13317
|
+
return message;
|
|
13318
|
+
}
|
|
13319
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13320
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13321
|
+
while (reader.pos < end) {
|
|
13322
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13323
|
+
switch (fieldNo) {
|
|
13324
|
+
case 1:
|
|
13325
|
+
message.flow = {
|
|
13326
|
+
oneofKind: "publicPkce",
|
|
13327
|
+
publicPkce: AuthAPI_BeginSSOLogin_PublicPKCE.internalBinaryRead(reader, reader.uint32(), options, message.flow.publicPkce)
|
|
13328
|
+
};
|
|
13329
|
+
break;
|
|
13330
|
+
default:
|
|
13331
|
+
let u = options.readUnknownField;
|
|
13332
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13333
|
+
let d = reader.skip(wireType);
|
|
13334
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13335
|
+
}
|
|
13336
|
+
}
|
|
13337
|
+
return message;
|
|
13338
|
+
}
|
|
13339
|
+
internalBinaryWrite(message, writer, options) {
|
|
13340
|
+
if (message.flow.oneofKind === "publicPkce") AuthAPI_BeginSSOLogin_PublicPKCE.internalBinaryWrite(message.flow.publicPkce, writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13341
|
+
let u = options.writeUnknownFields;
|
|
13342
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13343
|
+
return writer;
|
|
13344
|
+
}
|
|
13345
|
+
};
|
|
13346
|
+
/**
|
|
13347
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Response
|
|
13348
|
+
*/
|
|
13349
|
+
const AuthAPI_BeginSSOLogin_Response = new AuthAPI_BeginSSOLogin_Response$Type();
|
|
13350
|
+
var AuthAPI_GetJWTToken$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13351
|
+
constructor() {
|
|
13352
|
+
super("MiLaboratories.PL.API.AuthAPI.GetJWTToken", []);
|
|
13353
|
+
}
|
|
13354
|
+
create(value) {
|
|
13355
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13356
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13357
|
+
return message;
|
|
13358
|
+
}
|
|
13359
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13360
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13361
|
+
while (reader.pos < end) {
|
|
13362
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13363
|
+
switch (fieldNo) {
|
|
13364
|
+
default:
|
|
13365
|
+
let u = options.readUnknownField;
|
|
13366
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13367
|
+
let d = reader.skip(wireType);
|
|
13368
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13369
|
+
}
|
|
13370
|
+
}
|
|
13371
|
+
return message;
|
|
13372
|
+
}
|
|
13373
|
+
internalBinaryWrite(message, writer, options) {
|
|
13374
|
+
let u = options.writeUnknownFields;
|
|
13375
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13376
|
+
return writer;
|
|
13377
|
+
}
|
|
13378
|
+
};
|
|
13379
|
+
new AuthAPI_GetJWTToken$Type();
|
|
13380
|
+
var AuthAPI_GetJWTToken_Request$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13381
|
+
constructor() {
|
|
13382
|
+
super("MiLaboratories.PL.API.AuthAPI.GetJWTToken.Request", [{
|
|
13383
|
+
no: 1,
|
|
13384
|
+
name: "expiration",
|
|
13385
|
+
kind: "message",
|
|
13386
|
+
T: () => require_duration.Duration
|
|
13387
|
+
}, {
|
|
13388
|
+
no: 2,
|
|
13389
|
+
name: "requested_role",
|
|
13390
|
+
kind: "enum",
|
|
13391
|
+
opt: true,
|
|
13392
|
+
T: () => [
|
|
13393
|
+
"MiLaboratories.PL.API.AuthAPI.Role",
|
|
13394
|
+
AuthAPI_Role,
|
|
13395
|
+
"ROLE_"
|
|
13396
|
+
]
|
|
13397
|
+
}]);
|
|
13398
|
+
}
|
|
13399
|
+
create(value) {
|
|
13400
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13401
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13402
|
+
return message;
|
|
13403
|
+
}
|
|
13404
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13405
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13406
|
+
while (reader.pos < end) {
|
|
13407
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13408
|
+
switch (fieldNo) {
|
|
13409
|
+
case 1:
|
|
13410
|
+
message.expiration = require_duration.Duration.internalBinaryRead(reader, reader.uint32(), options, message.expiration);
|
|
13411
|
+
break;
|
|
13412
|
+
case 2:
|
|
13413
|
+
message.requestedRole = reader.int32();
|
|
13414
|
+
break;
|
|
13415
|
+
default:
|
|
13416
|
+
let u = options.readUnknownField;
|
|
13417
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13418
|
+
let d = reader.skip(wireType);
|
|
13419
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13420
|
+
}
|
|
13421
|
+
}
|
|
13422
|
+
return message;
|
|
13423
|
+
}
|
|
13424
|
+
internalBinaryWrite(message, writer, options) {
|
|
13425
|
+
if (message.expiration) require_duration.Duration.internalBinaryWrite(message.expiration, writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13426
|
+
if (message.requestedRole !== void 0) writer.tag(2, _protobuf_ts_runtime.WireType.Varint).int32(message.requestedRole);
|
|
13427
|
+
let u = options.writeUnknownFields;
|
|
13428
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13429
|
+
return writer;
|
|
13430
|
+
}
|
|
13431
|
+
};
|
|
13432
|
+
/**
|
|
13433
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetJWTToken.Request
|
|
13434
|
+
*/
|
|
13435
|
+
const AuthAPI_GetJWTToken_Request = new AuthAPI_GetJWTToken_Request$Type();
|
|
13436
|
+
var AuthAPI_GetJWTToken_Response$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13437
|
+
constructor() {
|
|
13438
|
+
super("MiLaboratories.PL.API.AuthAPI.GetJWTToken.Response", [
|
|
13439
|
+
{
|
|
13440
|
+
no: 1,
|
|
13441
|
+
name: "token",
|
|
13442
|
+
kind: "scalar",
|
|
13443
|
+
T: 9
|
|
13444
|
+
},
|
|
13445
|
+
{
|
|
13446
|
+
no: 2,
|
|
13447
|
+
name: "session_id",
|
|
13448
|
+
kind: "scalar",
|
|
13449
|
+
T: 12
|
|
13450
|
+
},
|
|
13451
|
+
{
|
|
13452
|
+
no: 3,
|
|
13453
|
+
name: "role",
|
|
13454
|
+
kind: "enum",
|
|
13455
|
+
T: () => [
|
|
13456
|
+
"MiLaboratories.PL.API.AuthAPI.Role",
|
|
13457
|
+
AuthAPI_Role,
|
|
13458
|
+
"ROLE_"
|
|
13459
|
+
]
|
|
13460
|
+
}
|
|
13461
|
+
]);
|
|
13462
|
+
}
|
|
13463
|
+
create(value) {
|
|
13464
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13465
|
+
message.token = "";
|
|
13466
|
+
message.sessionId = new Uint8Array(0);
|
|
13467
|
+
message.role = 0;
|
|
13468
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13469
|
+
return message;
|
|
13470
|
+
}
|
|
13471
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13472
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13473
|
+
while (reader.pos < end) {
|
|
13474
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13475
|
+
switch (fieldNo) {
|
|
13476
|
+
case 1:
|
|
13477
|
+
message.token = reader.string();
|
|
13478
|
+
break;
|
|
13479
|
+
case 2:
|
|
13480
|
+
message.sessionId = reader.bytes();
|
|
13481
|
+
break;
|
|
13482
|
+
case 3:
|
|
13483
|
+
message.role = reader.int32();
|
|
13484
|
+
break;
|
|
13485
|
+
default:
|
|
13486
|
+
let u = options.readUnknownField;
|
|
13487
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13488
|
+
let d = reader.skip(wireType);
|
|
13489
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13490
|
+
}
|
|
13491
|
+
}
|
|
13492
|
+
return message;
|
|
13493
|
+
}
|
|
13494
|
+
internalBinaryWrite(message, writer, options) {
|
|
13495
|
+
if (message.token !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.token);
|
|
13496
|
+
if (message.sessionId.length) writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.sessionId);
|
|
13497
|
+
if (message.role !== 0) writer.tag(3, _protobuf_ts_runtime.WireType.Varint).int32(message.role);
|
|
13498
|
+
let u = options.writeUnknownFields;
|
|
13499
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13500
|
+
return writer;
|
|
13501
|
+
}
|
|
13502
|
+
};
|
|
13503
|
+
/**
|
|
13504
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetJWTToken.Response
|
|
13505
|
+
*/
|
|
13506
|
+
const AuthAPI_GetJWTToken_Response = new AuthAPI_GetJWTToken_Response$Type();
|
|
13507
|
+
var AuthAPI_Login$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13508
|
+
constructor() {
|
|
13509
|
+
super("MiLaboratories.PL.API.AuthAPI.Login", []);
|
|
13510
|
+
}
|
|
13511
|
+
create(value) {
|
|
13512
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13513
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13514
|
+
return message;
|
|
13515
|
+
}
|
|
13516
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13517
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13518
|
+
while (reader.pos < end) {
|
|
13519
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13520
|
+
switch (fieldNo) {
|
|
13521
|
+
default:
|
|
13522
|
+
let u = options.readUnknownField;
|
|
13523
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13524
|
+
let d = reader.skip(wireType);
|
|
13525
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13526
|
+
}
|
|
13527
|
+
}
|
|
13528
|
+
return message;
|
|
13529
|
+
}
|
|
13530
|
+
internalBinaryWrite(message, writer, options) {
|
|
13531
|
+
let u = options.writeUnknownFields;
|
|
13532
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13533
|
+
return writer;
|
|
13534
|
+
}
|
|
13535
|
+
};
|
|
13536
|
+
new AuthAPI_Login$Type();
|
|
13537
|
+
var AuthAPI_Login_BasicCredentials$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13538
|
+
constructor() {
|
|
13539
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.BasicCredentials", [{
|
|
13540
|
+
no: 1,
|
|
13541
|
+
name: "login",
|
|
13542
|
+
kind: "scalar",
|
|
13543
|
+
T: 9
|
|
13544
|
+
}, {
|
|
13545
|
+
no: 2,
|
|
13546
|
+
name: "password",
|
|
13547
|
+
kind: "scalar",
|
|
13548
|
+
T: 9
|
|
13549
|
+
}]);
|
|
13550
|
+
}
|
|
13551
|
+
create(value) {
|
|
13552
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13553
|
+
message.login = "";
|
|
13554
|
+
message.password = "";
|
|
13555
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13556
|
+
return message;
|
|
13557
|
+
}
|
|
13558
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13559
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13560
|
+
while (reader.pos < end) {
|
|
13561
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13562
|
+
switch (fieldNo) {
|
|
13563
|
+
case 1:
|
|
13564
|
+
message.login = reader.string();
|
|
13565
|
+
break;
|
|
13566
|
+
case 2:
|
|
13567
|
+
message.password = reader.string();
|
|
13568
|
+
break;
|
|
13569
|
+
default:
|
|
13570
|
+
let u = options.readUnknownField;
|
|
13571
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13572
|
+
let d = reader.skip(wireType);
|
|
13573
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13574
|
+
}
|
|
13575
|
+
}
|
|
13576
|
+
return message;
|
|
13577
|
+
}
|
|
13578
|
+
internalBinaryWrite(message, writer, options) {
|
|
13579
|
+
if (message.login !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.login);
|
|
13580
|
+
if (message.password !== "") writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.password);
|
|
13581
|
+
let u = options.writeUnknownFields;
|
|
13582
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13583
|
+
return writer;
|
|
13584
|
+
}
|
|
13585
|
+
};
|
|
13586
|
+
/**
|
|
13587
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login.BasicCredentials
|
|
13588
|
+
*/
|
|
13589
|
+
const AuthAPI_Login_BasicCredentials = new AuthAPI_Login_BasicCredentials$Type();
|
|
13590
|
+
var AuthAPI_Login_TokenCredentials$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13591
|
+
constructor() {
|
|
13592
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.TokenCredentials", [{
|
|
13593
|
+
no: 1,
|
|
13594
|
+
name: "token",
|
|
13595
|
+
kind: "scalar",
|
|
13596
|
+
T: 12
|
|
13597
|
+
}]);
|
|
13598
|
+
}
|
|
13599
|
+
create(value) {
|
|
13600
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13601
|
+
message.token = new Uint8Array(0);
|
|
13602
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13603
|
+
return message;
|
|
13604
|
+
}
|
|
13605
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13606
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13607
|
+
while (reader.pos < end) {
|
|
13608
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13609
|
+
switch (fieldNo) {
|
|
13610
|
+
case 1:
|
|
13611
|
+
message.token = reader.bytes();
|
|
13612
|
+
break;
|
|
13613
|
+
default:
|
|
13614
|
+
let u = options.readUnknownField;
|
|
13615
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13616
|
+
let d = reader.skip(wireType);
|
|
13617
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13618
|
+
}
|
|
13619
|
+
}
|
|
13620
|
+
return message;
|
|
13621
|
+
}
|
|
13622
|
+
internalBinaryWrite(message, writer, options) {
|
|
13623
|
+
if (message.token.length) writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.token);
|
|
13624
|
+
let u = options.writeUnknownFields;
|
|
13625
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13626
|
+
return writer;
|
|
13627
|
+
}
|
|
13628
|
+
};
|
|
13629
|
+
/**
|
|
13630
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login.TokenCredentials
|
|
13631
|
+
*/
|
|
13632
|
+
const AuthAPI_Login_TokenCredentials = new AuthAPI_Login_TokenCredentials$Type();
|
|
13633
|
+
var AuthAPI_Login_SSOCredentials$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13634
|
+
constructor() {
|
|
13635
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.SSOCredentials", [{
|
|
13636
|
+
no: 1,
|
|
13637
|
+
name: "token_response",
|
|
13638
|
+
kind: "scalar",
|
|
13639
|
+
T: 12
|
|
13640
|
+
}]);
|
|
13641
|
+
}
|
|
13642
|
+
create(value) {
|
|
13643
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13644
|
+
message.tokenResponse = new Uint8Array(0);
|
|
13645
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13646
|
+
return message;
|
|
13647
|
+
}
|
|
13648
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13649
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13650
|
+
while (reader.pos < end) {
|
|
13651
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13652
|
+
switch (fieldNo) {
|
|
13653
|
+
case 1:
|
|
13654
|
+
message.tokenResponse = reader.bytes();
|
|
13655
|
+
break;
|
|
13656
|
+
default:
|
|
13657
|
+
let u = options.readUnknownField;
|
|
13658
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13659
|
+
let d = reader.skip(wireType);
|
|
13660
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13661
|
+
}
|
|
13662
|
+
}
|
|
13663
|
+
return message;
|
|
13664
|
+
}
|
|
13665
|
+
internalBinaryWrite(message, writer, options) {
|
|
13666
|
+
if (message.tokenResponse.length) writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.tokenResponse);
|
|
13667
|
+
let u = options.writeUnknownFields;
|
|
13668
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13669
|
+
return writer;
|
|
13670
|
+
}
|
|
13671
|
+
};
|
|
13672
|
+
/**
|
|
13673
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login.SSOCredentials
|
|
13674
|
+
*/
|
|
13675
|
+
const AuthAPI_Login_SSOCredentials = new AuthAPI_Login_SSOCredentials$Type();
|
|
13676
|
+
var AuthAPI_Login_Request$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13677
|
+
constructor() {
|
|
13678
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.Request", [
|
|
13679
|
+
{
|
|
13680
|
+
no: 1,
|
|
13681
|
+
name: "basic",
|
|
13682
|
+
kind: "message",
|
|
13683
|
+
oneof: "credentials",
|
|
13684
|
+
T: () => AuthAPI_Login_BasicCredentials
|
|
13685
|
+
},
|
|
13686
|
+
{
|
|
13687
|
+
no: 2,
|
|
13688
|
+
name: "token",
|
|
13689
|
+
kind: "message",
|
|
13690
|
+
oneof: "credentials",
|
|
13691
|
+
T: () => AuthAPI_Login_TokenCredentials
|
|
13692
|
+
},
|
|
13693
|
+
{
|
|
13694
|
+
no: 5,
|
|
13695
|
+
name: "sso",
|
|
13696
|
+
kind: "message",
|
|
13697
|
+
oneof: "credentials",
|
|
13698
|
+
T: () => AuthAPI_Login_SSOCredentials
|
|
13699
|
+
},
|
|
13700
|
+
{
|
|
13701
|
+
no: 3,
|
|
13702
|
+
name: "expiration",
|
|
13703
|
+
kind: "message",
|
|
13704
|
+
T: () => require_duration.Duration
|
|
13705
|
+
},
|
|
13706
|
+
{
|
|
13707
|
+
no: 4,
|
|
13708
|
+
name: "requested_role",
|
|
13709
|
+
kind: "enum",
|
|
13710
|
+
opt: true,
|
|
13711
|
+
T: () => [
|
|
13712
|
+
"MiLaboratories.PL.API.AuthAPI.Role",
|
|
13713
|
+
AuthAPI_Role,
|
|
13714
|
+
"ROLE_"
|
|
13715
|
+
]
|
|
13716
|
+
}
|
|
13717
|
+
]);
|
|
13718
|
+
}
|
|
13719
|
+
create(value) {
|
|
13720
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13721
|
+
message.credentials = { oneofKind: void 0 };
|
|
13722
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13723
|
+
return message;
|
|
13724
|
+
}
|
|
13725
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13726
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13727
|
+
while (reader.pos < end) {
|
|
13728
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13729
|
+
switch (fieldNo) {
|
|
13730
|
+
case 1:
|
|
13731
|
+
message.credentials = {
|
|
13732
|
+
oneofKind: "basic",
|
|
13733
|
+
basic: AuthAPI_Login_BasicCredentials.internalBinaryRead(reader, reader.uint32(), options, message.credentials.basic)
|
|
13734
|
+
};
|
|
13735
|
+
break;
|
|
13736
|
+
case 2:
|
|
13737
|
+
message.credentials = {
|
|
13738
|
+
oneofKind: "token",
|
|
13739
|
+
token: AuthAPI_Login_TokenCredentials.internalBinaryRead(reader, reader.uint32(), options, message.credentials.token)
|
|
13740
|
+
};
|
|
13741
|
+
break;
|
|
13742
|
+
case 5:
|
|
13743
|
+
message.credentials = {
|
|
13744
|
+
oneofKind: "sso",
|
|
13745
|
+
sso: AuthAPI_Login_SSOCredentials.internalBinaryRead(reader, reader.uint32(), options, message.credentials.sso)
|
|
13746
|
+
};
|
|
13747
|
+
break;
|
|
13748
|
+
case 3:
|
|
13749
|
+
message.expiration = require_duration.Duration.internalBinaryRead(reader, reader.uint32(), options, message.expiration);
|
|
13750
|
+
break;
|
|
13751
|
+
case 4:
|
|
13752
|
+
message.requestedRole = reader.int32();
|
|
13753
|
+
break;
|
|
13754
|
+
default:
|
|
13755
|
+
let u = options.readUnknownField;
|
|
13756
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13757
|
+
let d = reader.skip(wireType);
|
|
13758
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13759
|
+
}
|
|
13760
|
+
}
|
|
13761
|
+
return message;
|
|
13762
|
+
}
|
|
13763
|
+
internalBinaryWrite(message, writer, options) {
|
|
13764
|
+
if (message.credentials.oneofKind === "basic") AuthAPI_Login_BasicCredentials.internalBinaryWrite(message.credentials.basic, writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13765
|
+
if (message.credentials.oneofKind === "token") AuthAPI_Login_TokenCredentials.internalBinaryWrite(message.credentials.token, writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13766
|
+
if (message.expiration) require_duration.Duration.internalBinaryWrite(message.expiration, writer.tag(3, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13767
|
+
if (message.requestedRole !== void 0) writer.tag(4, _protobuf_ts_runtime.WireType.Varint).int32(message.requestedRole);
|
|
13768
|
+
if (message.credentials.oneofKind === "sso") AuthAPI_Login_SSOCredentials.internalBinaryWrite(message.credentials.sso, writer.tag(5, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13769
|
+
let u = options.writeUnknownFields;
|
|
13770
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13771
|
+
return writer;
|
|
13772
|
+
}
|
|
13773
|
+
};
|
|
13774
|
+
/**
|
|
13775
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login.Request
|
|
13776
|
+
*/
|
|
13777
|
+
const AuthAPI_Login_Request = new AuthAPI_Login_Request$Type();
|
|
13778
|
+
var AuthAPI_Login_Response$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13779
|
+
constructor() {
|
|
13780
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.Response", [
|
|
13781
|
+
{
|
|
13782
|
+
no: 1,
|
|
13783
|
+
name: "token",
|
|
13784
|
+
kind: "scalar",
|
|
13785
|
+
T: 9
|
|
13786
|
+
},
|
|
13787
|
+
{
|
|
13788
|
+
no: 2,
|
|
13789
|
+
name: "session_id",
|
|
13790
|
+
kind: "scalar",
|
|
13791
|
+
T: 12
|
|
13792
|
+
},
|
|
13793
|
+
{
|
|
13794
|
+
no: 3,
|
|
13795
|
+
name: "role",
|
|
13796
|
+
kind: "enum",
|
|
13797
|
+
T: () => [
|
|
13798
|
+
"MiLaboratories.PL.API.AuthAPI.Role",
|
|
13799
|
+
AuthAPI_Role,
|
|
13800
|
+
"ROLE_"
|
|
13801
|
+
]
|
|
13802
|
+
}
|
|
13803
|
+
]);
|
|
13804
|
+
}
|
|
13805
|
+
create(value) {
|
|
13806
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13807
|
+
message.token = "";
|
|
13808
|
+
message.sessionId = new Uint8Array(0);
|
|
13809
|
+
message.role = 0;
|
|
13810
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13811
|
+
return message;
|
|
13812
|
+
}
|
|
13813
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13814
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13815
|
+
while (reader.pos < end) {
|
|
13816
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13817
|
+
switch (fieldNo) {
|
|
13818
|
+
case 1:
|
|
13819
|
+
message.token = reader.string();
|
|
13820
|
+
break;
|
|
13821
|
+
case 2:
|
|
13822
|
+
message.sessionId = reader.bytes();
|
|
13823
|
+
break;
|
|
13824
|
+
case 3:
|
|
13825
|
+
message.role = reader.int32();
|
|
13826
|
+
break;
|
|
13827
|
+
default:
|
|
13828
|
+
let u = options.readUnknownField;
|
|
13829
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13830
|
+
let d = reader.skip(wireType);
|
|
13831
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13832
|
+
}
|
|
13833
|
+
}
|
|
13834
|
+
return message;
|
|
13835
|
+
}
|
|
13836
|
+
internalBinaryWrite(message, writer, options) {
|
|
13837
|
+
if (message.token !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.token);
|
|
13838
|
+
if (message.sessionId.length) writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.sessionId);
|
|
13839
|
+
if (message.role !== 0) writer.tag(3, _protobuf_ts_runtime.WireType.Varint).int32(message.role);
|
|
13840
|
+
let u = options.writeUnknownFields;
|
|
13841
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13842
|
+
return writer;
|
|
13843
|
+
}
|
|
13844
|
+
};
|
|
13845
|
+
/**
|
|
13846
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login.Response
|
|
13847
|
+
*/
|
|
13848
|
+
const AuthAPI_Login_Response = new AuthAPI_Login_Response$Type();
|
|
13849
|
+
var AuthAPI_RefreshToken$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13850
|
+
constructor() {
|
|
13851
|
+
super("MiLaboratories.PL.API.AuthAPI.RefreshToken", []);
|
|
13852
|
+
}
|
|
13853
|
+
create(value) {
|
|
13854
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13855
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13856
|
+
return message;
|
|
13857
|
+
}
|
|
13858
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13859
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13860
|
+
while (reader.pos < end) {
|
|
13861
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13862
|
+
switch (fieldNo) {
|
|
13863
|
+
default:
|
|
13864
|
+
let u = options.readUnknownField;
|
|
13865
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13866
|
+
let d = reader.skip(wireType);
|
|
13867
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13868
|
+
}
|
|
13869
|
+
}
|
|
13870
|
+
return message;
|
|
13871
|
+
}
|
|
13872
|
+
internalBinaryWrite(message, writer, options) {
|
|
13873
|
+
let u = options.writeUnknownFields;
|
|
13874
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13875
|
+
return writer;
|
|
13876
|
+
}
|
|
13877
|
+
};
|
|
13878
|
+
new AuthAPI_RefreshToken$Type();
|
|
13879
|
+
var AuthAPI_RefreshToken_Request$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13880
|
+
constructor() {
|
|
13881
|
+
super("MiLaboratories.PL.API.AuthAPI.RefreshToken.Request", [{
|
|
13882
|
+
no: 1,
|
|
13883
|
+
name: "token",
|
|
13884
|
+
kind: "scalar",
|
|
13885
|
+
T: 9
|
|
13886
|
+
}, {
|
|
13887
|
+
no: 2,
|
|
13888
|
+
name: "expiration",
|
|
13889
|
+
kind: "message",
|
|
13890
|
+
T: () => require_duration.Duration
|
|
13891
|
+
}]);
|
|
13892
|
+
}
|
|
13893
|
+
create(value) {
|
|
13894
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13895
|
+
message.token = "";
|
|
13896
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13897
|
+
return message;
|
|
13898
|
+
}
|
|
13899
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13900
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13901
|
+
while (reader.pos < end) {
|
|
13902
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13903
|
+
switch (fieldNo) {
|
|
13904
|
+
case 1:
|
|
13905
|
+
message.token = reader.string();
|
|
13906
|
+
break;
|
|
13907
|
+
case 2:
|
|
13908
|
+
message.expiration = require_duration.Duration.internalBinaryRead(reader, reader.uint32(), options, message.expiration);
|
|
13909
|
+
break;
|
|
13910
|
+
default:
|
|
13911
|
+
let u = options.readUnknownField;
|
|
13912
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13913
|
+
let d = reader.skip(wireType);
|
|
13914
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13915
|
+
}
|
|
13916
|
+
}
|
|
13917
|
+
return message;
|
|
13918
|
+
}
|
|
13919
|
+
internalBinaryWrite(message, writer, options) {
|
|
13920
|
+
if (message.token !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.token);
|
|
13921
|
+
if (message.expiration) require_duration.Duration.internalBinaryWrite(message.expiration, writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13922
|
+
let u = options.writeUnknownFields;
|
|
13923
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13924
|
+
return writer;
|
|
13925
|
+
}
|
|
13926
|
+
};
|
|
13927
|
+
/**
|
|
13928
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.RefreshToken.Request
|
|
13929
|
+
*/
|
|
13930
|
+
const AuthAPI_RefreshToken_Request = new AuthAPI_RefreshToken_Request$Type();
|
|
13931
|
+
var AuthAPI_RefreshToken_Response$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
13932
|
+
constructor() {
|
|
13933
|
+
super("MiLaboratories.PL.API.AuthAPI.RefreshToken.Response", [
|
|
13934
|
+
{
|
|
13935
|
+
no: 1,
|
|
13936
|
+
name: "token",
|
|
13937
|
+
kind: "scalar",
|
|
13938
|
+
T: 9
|
|
13939
|
+
},
|
|
13940
|
+
{
|
|
13941
|
+
no: 2,
|
|
13942
|
+
name: "session_id",
|
|
13943
|
+
kind: "scalar",
|
|
13944
|
+
T: 12
|
|
13945
|
+
},
|
|
13946
|
+
{
|
|
13947
|
+
no: 3,
|
|
13948
|
+
name: "role",
|
|
13949
|
+
kind: "enum",
|
|
13950
|
+
T: () => [
|
|
13951
|
+
"MiLaboratories.PL.API.AuthAPI.Role",
|
|
13952
|
+
AuthAPI_Role,
|
|
13953
|
+
"ROLE_"
|
|
13954
|
+
]
|
|
13955
|
+
}
|
|
13956
|
+
]);
|
|
13957
|
+
}
|
|
13958
|
+
create(value) {
|
|
13959
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13960
|
+
message.token = "";
|
|
13961
|
+
message.sessionId = new Uint8Array(0);
|
|
13962
|
+
message.role = 0;
|
|
13963
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
13964
|
+
return message;
|
|
13965
|
+
}
|
|
13966
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13967
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13968
|
+
while (reader.pos < end) {
|
|
13969
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13970
|
+
switch (fieldNo) {
|
|
13971
|
+
case 1:
|
|
13972
|
+
message.token = reader.string();
|
|
13973
|
+
break;
|
|
13974
|
+
case 2:
|
|
13975
|
+
message.sessionId = reader.bytes();
|
|
13976
|
+
break;
|
|
13977
|
+
case 3:
|
|
13978
|
+
message.role = reader.int32();
|
|
13979
|
+
break;
|
|
13980
|
+
default:
|
|
13981
|
+
let u = options.readUnknownField;
|
|
13982
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13983
|
+
let d = reader.skip(wireType);
|
|
13984
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13985
|
+
}
|
|
13986
|
+
}
|
|
13987
|
+
return message;
|
|
13988
|
+
}
|
|
13989
|
+
internalBinaryWrite(message, writer, options) {
|
|
13990
|
+
if (message.token !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.token);
|
|
13991
|
+
if (message.sessionId.length) writer.tag(2, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.sessionId);
|
|
13992
|
+
if (message.role !== 0) writer.tag(3, _protobuf_ts_runtime.WireType.Varint).int32(message.role);
|
|
13993
|
+
let u = options.writeUnknownFields;
|
|
13994
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13995
|
+
return writer;
|
|
13996
|
+
}
|
|
13997
|
+
};
|
|
13998
|
+
/**
|
|
13999
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.RefreshToken.Response
|
|
14000
|
+
*/
|
|
14001
|
+
const AuthAPI_RefreshToken_Response = new AuthAPI_RefreshToken_Response$Type();
|
|
14002
|
+
var AuthAPI_GetSessionInfo$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
14003
|
+
constructor() {
|
|
14004
|
+
super("MiLaboratories.PL.API.AuthAPI.GetSessionInfo", []);
|
|
14005
|
+
}
|
|
14006
|
+
create(value) {
|
|
14007
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
14008
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
14009
|
+
return message;
|
|
14010
|
+
}
|
|
14011
|
+
internalBinaryRead(reader, length, options, target) {
|
|
14012
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
14013
|
+
while (reader.pos < end) {
|
|
14014
|
+
let [fieldNo, wireType] = reader.tag();
|
|
14015
|
+
switch (fieldNo) {
|
|
14016
|
+
default:
|
|
14017
|
+
let u = options.readUnknownField;
|
|
14018
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
14019
|
+
let d = reader.skip(wireType);
|
|
14020
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
14021
|
+
}
|
|
14022
|
+
}
|
|
14023
|
+
return message;
|
|
14024
|
+
}
|
|
14025
|
+
internalBinaryWrite(message, writer, options) {
|
|
14026
|
+
let u = options.writeUnknownFields;
|
|
14027
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
14028
|
+
return writer;
|
|
14029
|
+
}
|
|
14030
|
+
};
|
|
14031
|
+
new AuthAPI_GetSessionInfo$Type();
|
|
14032
|
+
var AuthAPI_GetSessionInfo_Request$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
14033
|
+
constructor() {
|
|
14034
|
+
super("MiLaboratories.PL.API.AuthAPI.GetSessionInfo.Request", []);
|
|
14035
|
+
}
|
|
14036
|
+
create(value) {
|
|
14037
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
14038
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
14039
|
+
return message;
|
|
14040
|
+
}
|
|
14041
|
+
internalBinaryRead(reader, length, options, target) {
|
|
14042
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
14043
|
+
while (reader.pos < end) {
|
|
14044
|
+
let [fieldNo, wireType] = reader.tag();
|
|
14045
|
+
switch (fieldNo) {
|
|
14046
|
+
default:
|
|
14047
|
+
let u = options.readUnknownField;
|
|
14048
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
14049
|
+
let d = reader.skip(wireType);
|
|
14050
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
14051
|
+
}
|
|
14052
|
+
}
|
|
14053
|
+
return message;
|
|
14054
|
+
}
|
|
14055
|
+
internalBinaryWrite(message, writer, options) {
|
|
14056
|
+
let u = options.writeUnknownFields;
|
|
14057
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
14058
|
+
return writer;
|
|
14059
|
+
}
|
|
14060
|
+
};
|
|
14061
|
+
/**
|
|
14062
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetSessionInfo.Request
|
|
14063
|
+
*/
|
|
14064
|
+
const AuthAPI_GetSessionInfo_Request = new AuthAPI_GetSessionInfo_Request$Type();
|
|
14065
|
+
var AuthAPI_GetSessionInfo_Response$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
14066
|
+
constructor() {
|
|
14067
|
+
super("MiLaboratories.PL.API.AuthAPI.GetSessionInfo.Response", [{
|
|
14068
|
+
no: 1,
|
|
14069
|
+
name: "session_id",
|
|
14070
|
+
kind: "scalar",
|
|
14071
|
+
T: 12
|
|
14072
|
+
}, {
|
|
14073
|
+
no: 2,
|
|
14074
|
+
name: "role",
|
|
14075
|
+
kind: "enum",
|
|
14076
|
+
T: () => [
|
|
14077
|
+
"MiLaboratories.PL.API.AuthAPI.Role",
|
|
14078
|
+
AuthAPI_Role,
|
|
14079
|
+
"ROLE_"
|
|
14080
|
+
]
|
|
14081
|
+
}]);
|
|
14082
|
+
}
|
|
14083
|
+
create(value) {
|
|
14084
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
14085
|
+
message.sessionId = new Uint8Array(0);
|
|
14086
|
+
message.role = 0;
|
|
14087
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
14088
|
+
return message;
|
|
14089
|
+
}
|
|
14090
|
+
internalBinaryRead(reader, length, options, target) {
|
|
14091
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
14092
|
+
while (reader.pos < end) {
|
|
14093
|
+
let [fieldNo, wireType] = reader.tag();
|
|
14094
|
+
switch (fieldNo) {
|
|
14095
|
+
case 1:
|
|
14096
|
+
message.sessionId = reader.bytes();
|
|
14097
|
+
break;
|
|
14098
|
+
case 2:
|
|
14099
|
+
message.role = reader.int32();
|
|
13161
14100
|
break;
|
|
13162
14101
|
default:
|
|
13163
14102
|
let u = options.readUnknownField;
|
|
@@ -15064,6 +16003,33 @@ const Platform = new _protobuf_ts_runtime_rpc.ServiceType("MiLaboratories.PL.API
|
|
|
15064
16003
|
I: AuthAPI_GetJWTToken_Request,
|
|
15065
16004
|
O: AuthAPI_GetJWTToken_Response
|
|
15066
16005
|
},
|
|
16006
|
+
{
|
|
16007
|
+
name: "Login",
|
|
16008
|
+
options: { "google.api.http": {
|
|
16009
|
+
post: "/v1/auth/login",
|
|
16010
|
+
body: "*"
|
|
16011
|
+
} },
|
|
16012
|
+
I: AuthAPI_Login_Request,
|
|
16013
|
+
O: AuthAPI_Login_Response
|
|
16014
|
+
},
|
|
16015
|
+
{
|
|
16016
|
+
name: "BeginSSOLogin",
|
|
16017
|
+
options: { "google.api.http": {
|
|
16018
|
+
post: "/v1/auth/sso/begin-login",
|
|
16019
|
+
body: "*"
|
|
16020
|
+
} },
|
|
16021
|
+
I: AuthAPI_BeginSSOLogin_Request,
|
|
16022
|
+
O: AuthAPI_BeginSSOLogin_Response
|
|
16023
|
+
},
|
|
16024
|
+
{
|
|
16025
|
+
name: "RefreshToken",
|
|
16026
|
+
options: { "google.api.http": {
|
|
16027
|
+
post: "/v1/auth/refresh",
|
|
16028
|
+
body: "*"
|
|
16029
|
+
} },
|
|
16030
|
+
I: AuthAPI_RefreshToken_Request,
|
|
16031
|
+
O: AuthAPI_RefreshToken_Response
|
|
16032
|
+
},
|
|
15067
16033
|
{
|
|
15068
16034
|
name: "GetSessionInfo",
|
|
15069
16035
|
options: { "google.api.http": {
|