@milaboratories/pl-client 3.2.4 → 3.3.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/client.cjs +24 -56
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.d.ts +12 -8
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +26 -58
- package/dist/core/client.js.map +1 -1
- package/dist/core/errors.cjs +20 -0
- package/dist/core/errors.cjs.map +1 -1
- package/dist/core/errors.d.ts +6 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +19 -1
- package/dist/core/errors.js.map +1 -1
- package/dist/core/final.cjs +6 -5
- package/dist/core/final.cjs.map +1 -1
- package/dist/core/final.d.ts.map +1 -1
- package/dist/core/final.js +7 -6
- package/dist/core/final.js.map +1 -1
- package/dist/core/ll_client.cjs +18 -1
- package/dist/core/ll_client.cjs.map +1 -1
- package/dist/core/ll_client.d.ts +6 -2
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_client.js +19 -2
- package/dist/core/ll_client.js.map +1 -1
- package/dist/core/transaction.cjs +109 -75
- package/dist/core/transaction.cjs.map +1 -1
- package/dist/core/transaction.d.ts +30 -22
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/transaction.js +111 -76
- package/dist/core/transaction.js.map +1 -1
- package/dist/core/type_conversion.cjs +14 -6
- package/dist/core/type_conversion.cjs.map +1 -1
- package/dist/core/type_conversion.js +14 -6
- package/dist/core/type_conversion.js.map +1 -1
- package/dist/core/types.cjs +77 -17
- package/dist/core/types.cjs.map +1 -1
- package/dist/core/types.d.ts +49 -26
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +66 -14
- package/dist/core/types.js.map +1 -1
- package/dist/core/user_resources.cjs +181 -0
- package/dist/core/user_resources.cjs.map +1 -0
- package/dist/core/user_resources.d.ts +75 -0
- package/dist/core/user_resources.d.ts.map +1 -0
- package/dist/core/user_resources.js +180 -0
- package/dist/core/user_resources.js.map +1 -0
- package/dist/helpers/poll.cjs +4 -4
- package/dist/helpers/poll.cjs.map +1 -1
- package/dist/helpers/poll.d.ts +3 -3
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/helpers/poll.js +5 -5
- package/dist/helpers/poll.js.map +1 -1
- package/dist/helpers/tx_helpers.cjs +1 -1
- package/dist/helpers/tx_helpers.cjs.map +1 -1
- package/dist/helpers/tx_helpers.d.ts +3 -3
- package/dist/helpers/tx_helpers.d.ts.map +1 -1
- package/dist/helpers/tx_helpers.js +2 -2
- package/dist/helpers/tx_helpers.js.map +1 -1
- package/dist/index.cjs +16 -5
- package/dist/index.d.ts +5 -4
- package/dist/index.js +5 -4
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +724 -188
- 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 +34 -9
- 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 +37 -5
- 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 +34 -9
- 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 +326 -136
- 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 +724 -188
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +18 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +11 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +18 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +57 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +26 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +57 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -1
- package/dist/proto-rest/plapi.d.ts +421 -207
- package/dist/proto-rest/plapi.d.ts.map +1 -1
- package/dist/test/test_config.cjs +6 -3
- package/dist/test/test_config.cjs.map +1 -1
- package/dist/test/test_config.d.ts.map +1 -1
- package/dist/test/test_config.js +7 -4
- package/dist/test/test_config.js.map +1 -1
- package/package.json +5 -5
- package/src/core/client.ts +58 -103
- package/src/core/errors.ts +23 -0
- package/src/core/final.ts +16 -6
- package/src/core/ll_client.ts +39 -3
- package/src/core/ll_transaction.test.ts +41 -6
- package/src/core/transaction.ts +176 -86
- package/src/core/type_conversion.ts +24 -9
- package/src/core/types.ts +147 -41
- package/src/core/user_resources.ts +332 -0
- package/src/helpers/poll.ts +15 -8
- package/src/helpers/state_helpers.ts +2 -2
- package/src/helpers/tx_helpers.ts +5 -5
- package/src/index.ts +1 -0
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +61 -14
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.ts +1045 -379
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +33 -18
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +75 -6
- package/src/proto-grpc/google/protobuf/descriptor.ts +5 -2
- package/src/proto-rest/plapi.ts +447 -225
- package/src/test/test_config.ts +8 -5
|
@@ -11,6 +11,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
import { Color } from "./base_types";
|
|
14
15
|
import { Timestamp } from "../../../../../google/protobuf/timestamp";
|
|
15
16
|
import { Duration } from "../../../../../google/protobuf/duration";
|
|
16
17
|
import { ResourceAPIFeature } from "./api_types";
|
|
@@ -526,6 +527,18 @@ export interface TxAPI_ClientMessage {
|
|
|
526
527
|
* @generated from protobuf field: MiLaboratories.PL.API.TxAPI.SetDefaultColor.Request set_default_color = 400
|
|
527
528
|
*/
|
|
528
529
|
setDefaultColor: TxAPI_SetDefaultColor_Request; // set default color for resource creation
|
|
530
|
+
} | {
|
|
531
|
+
oneofKind: "grantAccess";
|
|
532
|
+
/**
|
|
533
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.GrantAccess.Request grant_access = 410
|
|
534
|
+
*/
|
|
535
|
+
grantAccess: AuthAPI_GrantAccess_Request; // grant access to a resource within transaction
|
|
536
|
+
} | {
|
|
537
|
+
oneofKind: "revokeAccess";
|
|
538
|
+
/**
|
|
539
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.RevokeAccess.Request revoke_access = 411
|
|
540
|
+
*/
|
|
541
|
+
revokeAccess: AuthAPI_RevokeAccess_Request; // revoke access to a resource within transaction
|
|
529
542
|
} | {
|
|
530
543
|
oneofKind: undefined;
|
|
531
544
|
};
|
|
@@ -903,6 +916,18 @@ export interface TxAPI_ServerMessage {
|
|
|
903
916
|
* @generated from protobuf field: MiLaboratories.PL.API.TxAPI.SetDefaultColor.Response set_default_color = 400
|
|
904
917
|
*/
|
|
905
918
|
setDefaultColor: TxAPI_SetDefaultColor_Response;
|
|
919
|
+
} | {
|
|
920
|
+
oneofKind: "grantAccess";
|
|
921
|
+
/**
|
|
922
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.GrantAccess.Response grant_access = 410
|
|
923
|
+
*/
|
|
924
|
+
grantAccess: AuthAPI_GrantAccess_Response;
|
|
925
|
+
} | {
|
|
926
|
+
oneofKind: "revokeAccess";
|
|
927
|
+
/**
|
|
928
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.RevokeAccess.Response revoke_access = 411
|
|
929
|
+
*/
|
|
930
|
+
revokeAccess: AuthAPI_RevokeAccess_Response;
|
|
906
931
|
} | {
|
|
907
932
|
oneofKind: undefined;
|
|
908
933
|
};
|
|
@@ -1067,9 +1092,9 @@ export interface TxAPI_SetDefaultColor {
|
|
|
1067
1092
|
*/
|
|
1068
1093
|
export interface TxAPI_SetDefaultColor_Request {
|
|
1069
1094
|
/**
|
|
1070
|
-
* @generated from protobuf field:
|
|
1095
|
+
* @generated from protobuf field: bytes color_proof = 1
|
|
1071
1096
|
*/
|
|
1072
|
-
colorProof
|
|
1097
|
+
colorProof: Uint8Array;
|
|
1073
1098
|
}
|
|
1074
1099
|
/**
|
|
1075
1100
|
* @generated from protobuf message MiLaboratories.PL.API.TxAPI.SetDefaultColor.Response
|
|
@@ -1103,9 +1128,9 @@ export interface ResourceAPI_CreateStruct_Request {
|
|
|
1103
1128
|
*/
|
|
1104
1129
|
data?: Uint8Array;
|
|
1105
1130
|
/**
|
|
1106
|
-
* @generated from protobuf field:
|
|
1131
|
+
* @generated from protobuf field: bytes color_proof = 5
|
|
1107
1132
|
*/
|
|
1108
|
-
colorProof
|
|
1133
|
+
colorProof: Uint8Array;
|
|
1109
1134
|
}
|
|
1110
1135
|
/**
|
|
1111
1136
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.CreateStruct.Response
|
|
@@ -1116,9 +1141,9 @@ export interface ResourceAPI_CreateStruct_Response {
|
|
|
1116
1141
|
*/
|
|
1117
1142
|
resourceId: bigint;
|
|
1118
1143
|
/**
|
|
1119
|
-
* @generated from protobuf field:
|
|
1144
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1120
1145
|
*/
|
|
1121
|
-
resourceSignature
|
|
1146
|
+
resourceSignature: Uint8Array;
|
|
1122
1147
|
}
|
|
1123
1148
|
/**
|
|
1124
1149
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.CreateEphemeral
|
|
@@ -1142,9 +1167,9 @@ export interface ResourceAPI_CreateEphemeral_Request {
|
|
|
1142
1167
|
*/
|
|
1143
1168
|
data?: Uint8Array;
|
|
1144
1169
|
/**
|
|
1145
|
-
* @generated from protobuf field:
|
|
1170
|
+
* @generated from protobuf field: bytes color_proof = 5
|
|
1146
1171
|
*/
|
|
1147
|
-
colorProof
|
|
1172
|
+
colorProof: Uint8Array;
|
|
1148
1173
|
}
|
|
1149
1174
|
/**
|
|
1150
1175
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.CreateEphemeral.Response
|
|
@@ -1155,9 +1180,9 @@ export interface ResourceAPI_CreateEphemeral_Response {
|
|
|
1155
1180
|
*/
|
|
1156
1181
|
resourceId: bigint;
|
|
1157
1182
|
/**
|
|
1158
|
-
* @generated from protobuf field:
|
|
1183
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1159
1184
|
*/
|
|
1160
|
-
resourceSignature
|
|
1185
|
+
resourceSignature: Uint8Array;
|
|
1161
1186
|
}
|
|
1162
1187
|
/**
|
|
1163
1188
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.CreateChild
|
|
@@ -1216,9 +1241,9 @@ export interface ResourceAPI_CreateValue_Request {
|
|
|
1216
1241
|
*/
|
|
1217
1242
|
errorIfExists: boolean;
|
|
1218
1243
|
/**
|
|
1219
|
-
* @generated from protobuf field:
|
|
1244
|
+
* @generated from protobuf field: bytes color_proof = 8
|
|
1220
1245
|
*/
|
|
1221
|
-
colorProof
|
|
1246
|
+
colorProof: Uint8Array;
|
|
1222
1247
|
}
|
|
1223
1248
|
/**
|
|
1224
1249
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.CreateValue.Response
|
|
@@ -1229,9 +1254,9 @@ export interface ResourceAPI_CreateValue_Response {
|
|
|
1229
1254
|
*/
|
|
1230
1255
|
resourceId: bigint;
|
|
1231
1256
|
/**
|
|
1232
|
-
* @generated from protobuf field:
|
|
1257
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1233
1258
|
*/
|
|
1234
|
-
resourceSignature
|
|
1259
|
+
resourceSignature: Uint8Array;
|
|
1235
1260
|
}
|
|
1236
1261
|
/**
|
|
1237
1262
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.GetValueID
|
|
@@ -1260,9 +1285,9 @@ export interface ResourceAPI_GetValueID_Response {
|
|
|
1260
1285
|
*/
|
|
1261
1286
|
resourceId: bigint;
|
|
1262
1287
|
/**
|
|
1263
|
-
* @generated from protobuf field:
|
|
1288
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1264
1289
|
*/
|
|
1265
|
-
resourceSignature
|
|
1290
|
+
resourceSignature: Uint8Array;
|
|
1266
1291
|
}
|
|
1267
1292
|
/**
|
|
1268
1293
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.CreateSingleton
|
|
@@ -1290,9 +1315,9 @@ export interface ResourceAPI_CreateSingleton_Request {
|
|
|
1290
1315
|
*/
|
|
1291
1316
|
errorIfExists: boolean;
|
|
1292
1317
|
/**
|
|
1293
|
-
* @generated from protobuf field:
|
|
1318
|
+
* @generated from protobuf field: bytes color_proof = 8
|
|
1294
1319
|
*/
|
|
1295
|
-
colorProof
|
|
1320
|
+
colorProof: Uint8Array;
|
|
1296
1321
|
}
|
|
1297
1322
|
/**
|
|
1298
1323
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.CreateSingleton.Response
|
|
@@ -1303,9 +1328,9 @@ export interface ResourceAPI_CreateSingleton_Response {
|
|
|
1303
1328
|
*/
|
|
1304
1329
|
resourceId: bigint;
|
|
1305
1330
|
/**
|
|
1306
|
-
* @generated from protobuf field:
|
|
1331
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1307
1332
|
*/
|
|
1308
|
-
resourceSignature
|
|
1333
|
+
resourceSignature: Uint8Array;
|
|
1309
1334
|
}
|
|
1310
1335
|
/**
|
|
1311
1336
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.GetSingleton
|
|
@@ -1352,9 +1377,9 @@ export interface ResourceAPI_LockInputs_Request {
|
|
|
1352
1377
|
*/
|
|
1353
1378
|
resourceId: bigint;
|
|
1354
1379
|
/**
|
|
1355
|
-
* @generated from protobuf field:
|
|
1380
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1356
1381
|
*/
|
|
1357
|
-
resourceSignature
|
|
1382
|
+
resourceSignature: Uint8Array;
|
|
1358
1383
|
}
|
|
1359
1384
|
/**
|
|
1360
1385
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.LockInputs.Response
|
|
@@ -1375,9 +1400,9 @@ export interface ResourceAPI_LockOutputs_Request {
|
|
|
1375
1400
|
*/
|
|
1376
1401
|
resourceId: bigint;
|
|
1377
1402
|
/**
|
|
1378
|
-
* @generated from protobuf field:
|
|
1403
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1379
1404
|
*/
|
|
1380
|
-
resourceSignature
|
|
1405
|
+
resourceSignature: Uint8Array;
|
|
1381
1406
|
}
|
|
1382
1407
|
/**
|
|
1383
1408
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.LockOutputs.Response
|
|
@@ -1398,9 +1423,9 @@ export interface ResourceAPI_Exists_Request {
|
|
|
1398
1423
|
*/
|
|
1399
1424
|
resourceId: bigint;
|
|
1400
1425
|
/**
|
|
1401
|
-
* @generated from protobuf field:
|
|
1426
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1402
1427
|
*/
|
|
1403
|
-
resourceSignature
|
|
1428
|
+
resourceSignature: Uint8Array;
|
|
1404
1429
|
}
|
|
1405
1430
|
/**
|
|
1406
1431
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.Exists.Response
|
|
@@ -1425,17 +1450,17 @@ export interface ResourceAPI_SetError_Request {
|
|
|
1425
1450
|
*/
|
|
1426
1451
|
resourceId: bigint;
|
|
1427
1452
|
/**
|
|
1428
|
-
* @generated from protobuf field:
|
|
1453
|
+
* @generated from protobuf field: bytes resource_signature = 3
|
|
1429
1454
|
*/
|
|
1430
|
-
resourceSignature
|
|
1455
|
+
resourceSignature: Uint8Array;
|
|
1431
1456
|
/**
|
|
1432
1457
|
* @generated from protobuf field: uint64 error_resource_id = 2
|
|
1433
1458
|
*/
|
|
1434
1459
|
errorResourceId: bigint;
|
|
1435
1460
|
/**
|
|
1436
|
-
* @generated from protobuf field:
|
|
1461
|
+
* @generated from protobuf field: bytes error_resource_signature = 4
|
|
1437
1462
|
*/
|
|
1438
|
-
errorResourceSignature
|
|
1463
|
+
errorResourceSignature: Uint8Array;
|
|
1439
1464
|
}
|
|
1440
1465
|
/**
|
|
1441
1466
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.SetError.Response
|
|
@@ -1456,9 +1481,9 @@ export interface ResourceAPI_Get_Request {
|
|
|
1456
1481
|
*/
|
|
1457
1482
|
resourceId: bigint;
|
|
1458
1483
|
/**
|
|
1459
|
-
* @generated from protobuf field:
|
|
1484
|
+
* @generated from protobuf field: bytes resource_signature = 3
|
|
1460
1485
|
*/
|
|
1461
|
-
resourceSignature
|
|
1486
|
+
resourceSignature: Uint8Array;
|
|
1462
1487
|
/**
|
|
1463
1488
|
* @generated from protobuf field: bool load_fields = 2
|
|
1464
1489
|
*/
|
|
@@ -1557,9 +1582,9 @@ export interface ResourceAPI_CreateRoot_Response {
|
|
|
1557
1582
|
*/
|
|
1558
1583
|
resourceId: bigint;
|
|
1559
1584
|
/**
|
|
1560
|
-
* @generated from protobuf field:
|
|
1585
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1561
1586
|
*/
|
|
1562
|
-
resourceSignature
|
|
1587
|
+
resourceSignature: Uint8Array;
|
|
1563
1588
|
}
|
|
1564
1589
|
// FIXME: add CreateResource method to API
|
|
1565
1590
|
|
|
@@ -1579,9 +1604,9 @@ export interface ResourceAPI_Remove_Request {
|
|
|
1579
1604
|
*/
|
|
1580
1605
|
resourceId: bigint;
|
|
1581
1606
|
/**
|
|
1582
|
-
* @generated from protobuf field:
|
|
1607
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1583
1608
|
*/
|
|
1584
|
-
resourceSignature
|
|
1609
|
+
resourceSignature: Uint8Array;
|
|
1585
1610
|
}
|
|
1586
1611
|
/**
|
|
1587
1612
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.Remove.Response
|
|
@@ -1607,9 +1632,9 @@ export interface ResourceAPI_Name_Set_Request {
|
|
|
1607
1632
|
*/
|
|
1608
1633
|
resourceId: bigint;
|
|
1609
1634
|
/**
|
|
1610
|
-
* @generated from protobuf field:
|
|
1635
|
+
* @generated from protobuf field: bytes resource_signature = 3
|
|
1611
1636
|
*/
|
|
1612
|
-
resourceSignature
|
|
1637
|
+
resourceSignature: Uint8Array;
|
|
1613
1638
|
/**
|
|
1614
1639
|
* @generated from protobuf field: string name = 2
|
|
1615
1640
|
*/
|
|
@@ -1643,9 +1668,9 @@ export interface ResourceAPI_Name_Get_Response {
|
|
|
1643
1668
|
*/
|
|
1644
1669
|
resourceId: bigint;
|
|
1645
1670
|
/**
|
|
1646
|
-
* @generated from protobuf field:
|
|
1671
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1647
1672
|
*/
|
|
1648
|
-
resourceSignature
|
|
1673
|
+
resourceSignature: Uint8Array;
|
|
1649
1674
|
}
|
|
1650
1675
|
/**
|
|
1651
1676
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.Name.Exists
|
|
@@ -1703,9 +1728,9 @@ export interface ResourceAPI_Tree_Request {
|
|
|
1703
1728
|
*/
|
|
1704
1729
|
resourceId: bigint;
|
|
1705
1730
|
/**
|
|
1706
|
-
* @generated from protobuf field:
|
|
1731
|
+
* @generated from protobuf field: bytes resource_signature = 3
|
|
1707
1732
|
*/
|
|
1708
|
-
resourceSignature
|
|
1733
|
+
resourceSignature: Uint8Array;
|
|
1709
1734
|
/**
|
|
1710
1735
|
* Limit the maximum depth the tree is traversed.
|
|
1711
1736
|
* The resource <resource_id> is considered at depth = 0, the values of its fields
|
|
@@ -1743,9 +1768,9 @@ export interface ResourceAPI_TreeSize_Request {
|
|
|
1743
1768
|
*/
|
|
1744
1769
|
resourceId: bigint;
|
|
1745
1770
|
/**
|
|
1746
|
-
* @generated from protobuf field:
|
|
1771
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
1747
1772
|
*/
|
|
1748
|
-
resourceSignature
|
|
1773
|
+
resourceSignature: Uint8Array;
|
|
1749
1774
|
}
|
|
1750
1775
|
/**
|
|
1751
1776
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.TreeSize.Response
|
|
@@ -1861,9 +1886,9 @@ export interface FieldAPI_SetError_Request {
|
|
|
1861
1886
|
*/
|
|
1862
1887
|
errorResourceId: bigint;
|
|
1863
1888
|
/**
|
|
1864
|
-
* @generated from protobuf field:
|
|
1889
|
+
* @generated from protobuf field: bytes error_resource_signature = 3
|
|
1865
1890
|
*/
|
|
1866
|
-
errorResourceSignature
|
|
1891
|
+
errorResourceSignature: Uint8Array;
|
|
1867
1892
|
}
|
|
1868
1893
|
/**
|
|
1869
1894
|
* @generated from protobuf message MiLaboratories.PL.API.FieldAPI.SetError.Response
|
|
@@ -1945,9 +1970,9 @@ export interface FieldAPI_List_Request {
|
|
|
1945
1970
|
*/
|
|
1946
1971
|
resourceId: bigint;
|
|
1947
1972
|
/**
|
|
1948
|
-
* @generated from protobuf field:
|
|
1973
|
+
* @generated from protobuf field: bytes resource_signature = 4
|
|
1949
1974
|
*/
|
|
1950
|
-
resourceSignature
|
|
1975
|
+
resourceSignature: Uint8Array;
|
|
1951
1976
|
/**
|
|
1952
1977
|
* Start the listing from given position, returning first field with
|
|
1953
1978
|
* name >= start_from.
|
|
@@ -2560,9 +2585,9 @@ export interface ResourceKVAPI_List_Request {
|
|
|
2560
2585
|
*/
|
|
2561
2586
|
resourceId: bigint;
|
|
2562
2587
|
/**
|
|
2563
|
-
* @generated from protobuf field:
|
|
2588
|
+
* @generated from protobuf field: bytes resource_signature = 4
|
|
2564
2589
|
*/
|
|
2565
|
-
resourceSignature
|
|
2590
|
+
resourceSignature: Uint8Array;
|
|
2566
2591
|
/**
|
|
2567
2592
|
* Start the listing from given position, returning first item with
|
|
2568
2593
|
* key >= start_from.
|
|
@@ -2628,9 +2653,9 @@ export interface ResourceKVAPI_Set_Request {
|
|
|
2628
2653
|
*/
|
|
2629
2654
|
resourceId: bigint;
|
|
2630
2655
|
/**
|
|
2631
|
-
* @generated from protobuf field:
|
|
2656
|
+
* @generated from protobuf field: bytes resource_signature = 4
|
|
2632
2657
|
*/
|
|
2633
|
-
resourceSignature
|
|
2658
|
+
resourceSignature: Uint8Array;
|
|
2634
2659
|
/**
|
|
2635
2660
|
* @generated from protobuf field: string key = 2
|
|
2636
2661
|
*/
|
|
@@ -2659,9 +2684,9 @@ export interface ResourceKVAPI_Get_Request {
|
|
|
2659
2684
|
*/
|
|
2660
2685
|
resourceId: bigint;
|
|
2661
2686
|
/**
|
|
2662
|
-
* @generated from protobuf field:
|
|
2687
|
+
* @generated from protobuf field: bytes resource_signature = 3
|
|
2663
2688
|
*/
|
|
2664
|
-
resourceSignature
|
|
2689
|
+
resourceSignature: Uint8Array;
|
|
2665
2690
|
/**
|
|
2666
2691
|
* @generated from protobuf field: string key = 2
|
|
2667
2692
|
*/
|
|
@@ -2690,9 +2715,9 @@ export interface ResourceKVAPI_GetIfExists_Request {
|
|
|
2690
2715
|
*/
|
|
2691
2716
|
resourceId: bigint;
|
|
2692
2717
|
/**
|
|
2693
|
-
* @generated from protobuf field:
|
|
2718
|
+
* @generated from protobuf field: bytes resource_signature = 3
|
|
2694
2719
|
*/
|
|
2695
|
-
resourceSignature
|
|
2720
|
+
resourceSignature: Uint8Array;
|
|
2696
2721
|
/**
|
|
2697
2722
|
* @generated from protobuf field: string key = 2
|
|
2698
2723
|
*/
|
|
@@ -2725,9 +2750,9 @@ export interface ResourceKVAPI_Delete_Request {
|
|
|
2725
2750
|
*/
|
|
2726
2751
|
resourceId: bigint;
|
|
2727
2752
|
/**
|
|
2728
|
-
* @generated from protobuf field:
|
|
2753
|
+
* @generated from protobuf field: bytes resource_signature = 3
|
|
2729
2754
|
*/
|
|
2730
|
-
resourceSignature
|
|
2755
|
+
resourceSignature: Uint8Array;
|
|
2731
2756
|
/**
|
|
2732
2757
|
* @generated from protobuf field: string key = 2
|
|
2733
2758
|
*/
|
|
@@ -2752,9 +2777,9 @@ export interface ResourceKVAPI_SetFlag_Request {
|
|
|
2752
2777
|
*/
|
|
2753
2778
|
resourceId: bigint;
|
|
2754
2779
|
/**
|
|
2755
|
-
* @generated from protobuf field:
|
|
2780
|
+
* @generated from protobuf field: bytes resource_signature = 4
|
|
2756
2781
|
*/
|
|
2757
|
-
resourceSignature
|
|
2782
|
+
resourceSignature: Uint8Array;
|
|
2758
2783
|
/**
|
|
2759
2784
|
* @generated from protobuf field: string key = 2
|
|
2760
2785
|
*/
|
|
@@ -2783,9 +2808,9 @@ export interface ResourceKVAPI_GetFlag_Request {
|
|
|
2783
2808
|
*/
|
|
2784
2809
|
resourceId: bigint;
|
|
2785
2810
|
/**
|
|
2786
|
-
* @generated from protobuf field:
|
|
2811
|
+
* @generated from protobuf field: bytes resource_signature = 3
|
|
2787
2812
|
*/
|
|
2788
|
-
resourceSignature
|
|
2813
|
+
resourceSignature: Uint8Array;
|
|
2789
2814
|
/**
|
|
2790
2815
|
* @generated from protobuf field: string key = 2
|
|
2791
2816
|
*/
|
|
@@ -3103,9 +3128,9 @@ export interface LocksAPI_Lease_Create_Request {
|
|
|
3103
3128
|
*/
|
|
3104
3129
|
resourceId: bigint;
|
|
3105
3130
|
/**
|
|
3106
|
-
* @generated from protobuf field:
|
|
3131
|
+
* @generated from protobuf field: bytes resource_signature = 5
|
|
3107
3132
|
*/
|
|
3108
|
-
resourceSignature
|
|
3133
|
+
resourceSignature: Uint8Array;
|
|
3109
3134
|
/**
|
|
3110
3135
|
* @generated from protobuf field: google.protobuf.Duration timeout = 3
|
|
3111
3136
|
*/
|
|
@@ -3138,9 +3163,9 @@ export interface LocksAPI_Lease_Update_Request {
|
|
|
3138
3163
|
*/
|
|
3139
3164
|
resourceId: bigint;
|
|
3140
3165
|
/**
|
|
3141
|
-
* @generated from protobuf field:
|
|
3166
|
+
* @generated from protobuf field: bytes resource_signature = 5
|
|
3142
3167
|
*/
|
|
3143
|
-
resourceSignature
|
|
3168
|
+
resourceSignature: Uint8Array;
|
|
3144
3169
|
/**
|
|
3145
3170
|
* @generated from protobuf field: bytes lease_id = 2
|
|
3146
3171
|
*/
|
|
@@ -3173,9 +3198,9 @@ export interface LocksAPI_Lease_Release_Request {
|
|
|
3173
3198
|
*/
|
|
3174
3199
|
resourceId: bigint;
|
|
3175
3200
|
/**
|
|
3176
|
-
* @generated from protobuf field:
|
|
3201
|
+
* @generated from protobuf field: bytes resource_signature = 3
|
|
3177
3202
|
*/
|
|
3178
|
-
resourceSignature
|
|
3203
|
+
resourceSignature: Uint8Array;
|
|
3179
3204
|
/**
|
|
3180
3205
|
* @generated from protobuf field: bytes lease_id = 2
|
|
3181
3206
|
*/
|
|
@@ -3243,9 +3268,9 @@ export interface AuthAPI_GetJWTToken_Request {
|
|
|
3243
3268
|
*/
|
|
3244
3269
|
expiration?: Duration;
|
|
3245
3270
|
/**
|
|
3246
|
-
* @generated from protobuf field: optional MiLaboratories.PL.API.AuthAPI.
|
|
3271
|
+
* @generated from protobuf field: optional MiLaboratories.PL.API.AuthAPI.Role requested_role = 2
|
|
3247
3272
|
*/
|
|
3248
|
-
requestedRole?:
|
|
3273
|
+
requestedRole?: AuthAPI_Role;
|
|
3249
3274
|
}
|
|
3250
3275
|
/**
|
|
3251
3276
|
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GetJWTToken.Response
|
|
@@ -3256,32 +3281,38 @@ export interface AuthAPI_GetJWTToken_Response {
|
|
|
3256
3281
|
*/
|
|
3257
3282
|
token: string;
|
|
3258
3283
|
/**
|
|
3284
|
+
* Session info fields
|
|
3285
|
+
*
|
|
3259
3286
|
* @generated from protobuf field: bytes session_id = 2
|
|
3260
3287
|
*/
|
|
3261
3288
|
sessionId: Uint8Array;
|
|
3289
|
+
/**
|
|
3290
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.Role role = 3
|
|
3291
|
+
*/
|
|
3292
|
+
role: AuthAPI_Role;
|
|
3262
3293
|
}
|
|
3263
3294
|
/**
|
|
3264
|
-
* @generated from protobuf
|
|
3295
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GetSessionInfo
|
|
3265
3296
|
*/
|
|
3266
|
-
export
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3297
|
+
export interface AuthAPI_GetSessionInfo {
|
|
3298
|
+
}
|
|
3299
|
+
/**
|
|
3300
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GetSessionInfo.Request
|
|
3301
|
+
*/
|
|
3302
|
+
export interface AuthAPI_GetSessionInfo_Request {
|
|
3303
|
+
}
|
|
3304
|
+
/**
|
|
3305
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GetSessionInfo.Response
|
|
3306
|
+
*/
|
|
3307
|
+
export interface AuthAPI_GetSessionInfo_Response {
|
|
3277
3308
|
/**
|
|
3278
|
-
* @generated from protobuf
|
|
3309
|
+
* @generated from protobuf field: bytes session_id = 1
|
|
3279
3310
|
*/
|
|
3280
|
-
|
|
3311
|
+
sessionId: Uint8Array;
|
|
3281
3312
|
/**
|
|
3282
|
-
* @generated from protobuf
|
|
3313
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.Role role = 2
|
|
3283
3314
|
*/
|
|
3284
|
-
|
|
3315
|
+
role: AuthAPI_Role;
|
|
3285
3316
|
}
|
|
3286
3317
|
/**
|
|
3287
3318
|
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GrantAccess
|
|
@@ -3297,9 +3328,9 @@ export interface AuthAPI_GrantAccess_Request {
|
|
|
3297
3328
|
*/
|
|
3298
3329
|
resourceId: bigint;
|
|
3299
3330
|
/**
|
|
3300
|
-
* @generated from protobuf field:
|
|
3331
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
3301
3332
|
*/
|
|
3302
|
-
resourceSignature
|
|
3333
|
+
resourceSignature: Uint8Array;
|
|
3303
3334
|
/**
|
|
3304
3335
|
* @generated from protobuf field: string target_user = 3
|
|
3305
3336
|
*/
|
|
@@ -3308,6 +3339,10 @@ export interface AuthAPI_GrantAccess_Request {
|
|
|
3308
3339
|
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.Grant.Permissions permissions = 4
|
|
3309
3340
|
*/
|
|
3310
3341
|
permissions?: AuthAPI_Grant_Permissions; // access level to grant
|
|
3342
|
+
/**
|
|
3343
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.GrantAccess.GrantType grant_type = 5
|
|
3344
|
+
*/
|
|
3345
|
+
grantType: AuthAPI_GrantAccess_GrantType; // default: GENERAL
|
|
3311
3346
|
}
|
|
3312
3347
|
/**
|
|
3313
3348
|
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GrantAccess.Response
|
|
@@ -3315,31 +3350,50 @@ export interface AuthAPI_GrantAccess_Request {
|
|
|
3315
3350
|
export interface AuthAPI_GrantAccess_Response {
|
|
3316
3351
|
}
|
|
3317
3352
|
/**
|
|
3318
|
-
*
|
|
3353
|
+
* GrantType distinguishes regular grants from system-level grants.
|
|
3354
|
+
*
|
|
3355
|
+
* @generated from protobuf enum MiLaboratories.PL.API.AuthAPI.GrantAccess.GrantType
|
|
3356
|
+
*/
|
|
3357
|
+
export enum AuthAPI_GrantAccess_GrantType {
|
|
3358
|
+
/**
|
|
3359
|
+
* regular user-to-user grant (default)
|
|
3360
|
+
*
|
|
3361
|
+
* @generated from protobuf enum value: GENERAL = 0;
|
|
3362
|
+
*/
|
|
3363
|
+
GENERAL = 0,
|
|
3364
|
+
/**
|
|
3365
|
+
* make resource publically-accessible, showing it in ListUserResources for all users. Requires controller role.
|
|
3366
|
+
*
|
|
3367
|
+
* @generated from protobuf enum value: MAKE_RESOURCE_PUBLIC = 1;
|
|
3368
|
+
*/
|
|
3369
|
+
MAKE_RESOURCE_PUBLIC = 1
|
|
3370
|
+
}
|
|
3371
|
+
/**
|
|
3372
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.RevokeAccess
|
|
3319
3373
|
*/
|
|
3320
|
-
export interface
|
|
3374
|
+
export interface AuthAPI_RevokeAccess {
|
|
3321
3375
|
}
|
|
3322
3376
|
/**
|
|
3323
|
-
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
3377
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.RevokeAccess.Request
|
|
3324
3378
|
*/
|
|
3325
|
-
export interface
|
|
3379
|
+
export interface AuthAPI_RevokeAccess_Request {
|
|
3326
3380
|
/**
|
|
3327
3381
|
* @generated from protobuf field: uint64 resource_id = 1
|
|
3328
3382
|
*/
|
|
3329
3383
|
resourceId: bigint;
|
|
3330
3384
|
/**
|
|
3331
|
-
* @generated from protobuf field:
|
|
3385
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
3332
3386
|
*/
|
|
3333
|
-
resourceSignature
|
|
3387
|
+
resourceSignature: Uint8Array;
|
|
3334
3388
|
/**
|
|
3335
3389
|
* @generated from protobuf field: string target_user = 3
|
|
3336
3390
|
*/
|
|
3337
3391
|
targetUser: string; // user login whose grant to revoke
|
|
3338
3392
|
}
|
|
3339
3393
|
/**
|
|
3340
|
-
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
3394
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.RevokeAccess.Response
|
|
3341
3395
|
*/
|
|
3342
|
-
export interface
|
|
3396
|
+
export interface AuthAPI_RevokeAccess_Response {
|
|
3343
3397
|
}
|
|
3344
3398
|
/**
|
|
3345
3399
|
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.ListGrants
|
|
@@ -3355,9 +3409,9 @@ export interface AuthAPI_ListGrants_Request {
|
|
|
3355
3409
|
*/
|
|
3356
3410
|
resourceId: bigint;
|
|
3357
3411
|
/**
|
|
3358
|
-
* @generated from protobuf field:
|
|
3412
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
3359
3413
|
*/
|
|
3360
|
-
resourceSignature
|
|
3414
|
+
resourceSignature: Uint8Array;
|
|
3361
3415
|
}
|
|
3362
3416
|
/**
|
|
3363
3417
|
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.ListGrants.Response
|
|
@@ -3404,6 +3458,81 @@ export interface AuthAPI_Grant_Permissions {
|
|
|
3404
3458
|
*/
|
|
3405
3459
|
writable: boolean; // write access = ability to modify resource tree + share access
|
|
3406
3460
|
}
|
|
3461
|
+
/**
|
|
3462
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.MintSignature
|
|
3463
|
+
*/
|
|
3464
|
+
export interface AuthAPI_MintSignature {
|
|
3465
|
+
}
|
|
3466
|
+
/**
|
|
3467
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.MintSignature.Request
|
|
3468
|
+
*/
|
|
3469
|
+
export interface AuthAPI_MintSignature_Request {
|
|
3470
|
+
/**
|
|
3471
|
+
* @generated from protobuf field: uint64 resource_id = 1
|
|
3472
|
+
*/
|
|
3473
|
+
resourceId: bigint;
|
|
3474
|
+
/**
|
|
3475
|
+
* @generated from protobuf field: bytes target_sid = 2
|
|
3476
|
+
*/
|
|
3477
|
+
targetSid: Uint8Array;
|
|
3478
|
+
/**
|
|
3479
|
+
* @generated from protobuf field: MiLaboratories.PL.Base.Color color = 3
|
|
3480
|
+
*/
|
|
3481
|
+
color?: Color;
|
|
3482
|
+
}
|
|
3483
|
+
/**
|
|
3484
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.MintSignature.Response
|
|
3485
|
+
*/
|
|
3486
|
+
export interface AuthAPI_MintSignature_Response {
|
|
3487
|
+
/**
|
|
3488
|
+
* @generated from protobuf field: uint64 resource_id = 1
|
|
3489
|
+
*/
|
|
3490
|
+
resourceId: bigint;
|
|
3491
|
+
/**
|
|
3492
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
3493
|
+
*/
|
|
3494
|
+
resourceSignature: Uint8Array;
|
|
3495
|
+
}
|
|
3496
|
+
/**
|
|
3497
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.UserRoot
|
|
3498
|
+
*/
|
|
3499
|
+
export interface AuthAPI_UserRoot {
|
|
3500
|
+
/**
|
|
3501
|
+
* @generated from protobuf field: uint64 resource_id = 1
|
|
3502
|
+
*/
|
|
3503
|
+
resourceId: bigint;
|
|
3504
|
+
/**
|
|
3505
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
3506
|
+
*/
|
|
3507
|
+
resourceSignature: Uint8Array;
|
|
3508
|
+
}
|
|
3509
|
+
/**
|
|
3510
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GetUserRoot
|
|
3511
|
+
*/
|
|
3512
|
+
export interface AuthAPI_GetUserRoot {
|
|
3513
|
+
}
|
|
3514
|
+
/**
|
|
3515
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GetUserRoot.Request
|
|
3516
|
+
*/
|
|
3517
|
+
export interface AuthAPI_GetUserRoot_Request {
|
|
3518
|
+
/**
|
|
3519
|
+
* @generated from protobuf field: string login = 1
|
|
3520
|
+
*/
|
|
3521
|
+
login: string;
|
|
3522
|
+
/**
|
|
3523
|
+
* @generated from protobuf field: bool do_not_create = 2
|
|
3524
|
+
*/
|
|
3525
|
+
doNotCreate: boolean;
|
|
3526
|
+
}
|
|
3527
|
+
/**
|
|
3528
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GetUserRoot.Response
|
|
3529
|
+
*/
|
|
3530
|
+
export interface AuthAPI_GetUserRoot_Response {
|
|
3531
|
+
/**
|
|
3532
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.UserRoot user_root = 1
|
|
3533
|
+
*/
|
|
3534
|
+
userRoot?: AuthAPI_UserRoot;
|
|
3535
|
+
}
|
|
3407
3536
|
/**
|
|
3408
3537
|
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.ListUserResources
|
|
3409
3538
|
*/
|
|
@@ -3449,9 +3578,9 @@ export interface AuthAPI_ListUserResources_Response {
|
|
|
3449
3578
|
entry: {
|
|
3450
3579
|
oneofKind: "userRoot";
|
|
3451
3580
|
/**
|
|
3452
|
-
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.
|
|
3581
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.UserRoot user_root = 1
|
|
3453
3582
|
*/
|
|
3454
|
-
userRoot:
|
|
3583
|
+
userRoot: AuthAPI_UserRoot;
|
|
3455
3584
|
} | {
|
|
3456
3585
|
oneofKind: "sharedResource";
|
|
3457
3586
|
/**
|
|
@@ -3470,38 +3599,56 @@ export interface AuthAPI_ListUserResources_Response {
|
|
|
3470
3599
|
nextResourceId: bigint;
|
|
3471
3600
|
}
|
|
3472
3601
|
/**
|
|
3473
|
-
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.ListUserResources.
|
|
3602
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.ListUserResources.SharedResource
|
|
3474
3603
|
*/
|
|
3475
|
-
export interface
|
|
3604
|
+
export interface AuthAPI_ListUserResources_SharedResource {
|
|
3476
3605
|
/**
|
|
3477
3606
|
* @generated from protobuf field: uint64 resource_id = 1
|
|
3478
3607
|
*/
|
|
3479
3608
|
resourceId: bigint;
|
|
3480
3609
|
/**
|
|
3481
|
-
* @generated from protobuf field:
|
|
3610
|
+
* @generated from protobuf field: bytes resource_signature = 2
|
|
3611
|
+
*/
|
|
3612
|
+
resourceSignature: Uint8Array;
|
|
3613
|
+
/**
|
|
3614
|
+
* @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 3
|
|
3615
|
+
*/
|
|
3616
|
+
resourceType?: ResourceType;
|
|
3617
|
+
/**
|
|
3618
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.Grant.Permissions permissions = 4
|
|
3482
3619
|
*/
|
|
3483
|
-
|
|
3620
|
+
permissions?: AuthAPI_Grant_Permissions;
|
|
3484
3621
|
}
|
|
3485
3622
|
/**
|
|
3486
|
-
* @generated from protobuf
|
|
3623
|
+
* @generated from protobuf enum MiLaboratories.PL.API.AuthAPI.Role
|
|
3487
3624
|
*/
|
|
3488
|
-
export
|
|
3625
|
+
export enum AuthAPI_Role {
|
|
3489
3626
|
/**
|
|
3490
|
-
*
|
|
3627
|
+
* issue JWT with caller's natural role. Never appears in server responses.
|
|
3628
|
+
*
|
|
3629
|
+
* @generated from protobuf enum value: ROLE_UNSPECIFIED = 0;
|
|
3491
3630
|
*/
|
|
3492
|
-
|
|
3631
|
+
UNSPECIFIED = 0,
|
|
3493
3632
|
/**
|
|
3494
|
-
*
|
|
3633
|
+
* Controller roles
|
|
3634
|
+
*
|
|
3635
|
+
* @generated from protobuf enum value: ROLE_CONTROLLER = 2;
|
|
3495
3636
|
*/
|
|
3496
|
-
|
|
3637
|
+
CONTROLLER = 2,
|
|
3497
3638
|
/**
|
|
3498
|
-
* @generated from protobuf
|
|
3639
|
+
* @generated from protobuf enum value: ROLE_WORKFLOW = 3;
|
|
3499
3640
|
*/
|
|
3500
|
-
|
|
3641
|
+
WORKFLOW = 3,
|
|
3501
3642
|
/**
|
|
3502
|
-
*
|
|
3643
|
+
* User roles
|
|
3644
|
+
*
|
|
3645
|
+
* @generated from protobuf enum value: ROLE_USER = 1;
|
|
3503
3646
|
*/
|
|
3504
|
-
|
|
3647
|
+
USER = 1,
|
|
3648
|
+
/**
|
|
3649
|
+
* @generated from protobuf enum value: ROLE_ADMIN = 4;
|
|
3650
|
+
*/
|
|
3651
|
+
ADMIN = 4
|
|
3505
3652
|
}
|
|
3506
3653
|
/**
|
|
3507
3654
|
* @generated from protobuf message MiLaboratories.PL.API.MiscAPI
|
|
@@ -3735,7 +3882,9 @@ class TxAPI_ClientMessage$Type extends MessageType<TxAPI_ClientMessage> {
|
|
|
3735
3882
|
{ no: 301, name: "cache_delete_expired_records", kind: "message", oneof: "request", T: () => Util_Deprecated },
|
|
3736
3883
|
{ no: 350, name: "controller_features_set", kind: "message", oneof: "request", T: () => ControllerAPI_SetFeatures_Request },
|
|
3737
3884
|
{ no: 351, name: "controller_features_clear", kind: "message", oneof: "request", T: () => ControllerAPI_ClearFeatures_Request },
|
|
3738
|
-
{ no: 400, name: "set_default_color", kind: "message", oneof: "request", T: () => TxAPI_SetDefaultColor_Request }
|
|
3885
|
+
{ no: 400, name: "set_default_color", kind: "message", oneof: "request", T: () => TxAPI_SetDefaultColor_Request },
|
|
3886
|
+
{ no: 410, name: "grant_access", kind: "message", oneof: "request", T: () => AuthAPI_GrantAccess_Request },
|
|
3887
|
+
{ no: 411, name: "revoke_access", kind: "message", oneof: "request", T: () => AuthAPI_RevokeAccess_Request }
|
|
3739
3888
|
]);
|
|
3740
3889
|
}
|
|
3741
3890
|
create(value?: PartialMessage<TxAPI_ClientMessage>): TxAPI_ClientMessage {
|
|
@@ -4108,6 +4257,18 @@ class TxAPI_ClientMessage$Type extends MessageType<TxAPI_ClientMessage> {
|
|
|
4108
4257
|
setDefaultColor: TxAPI_SetDefaultColor_Request.internalBinaryRead(reader, reader.uint32(), options, (message.request as any).setDefaultColor)
|
|
4109
4258
|
};
|
|
4110
4259
|
break;
|
|
4260
|
+
case /* MiLaboratories.PL.API.AuthAPI.GrantAccess.Request grant_access */ 410:
|
|
4261
|
+
message.request = {
|
|
4262
|
+
oneofKind: "grantAccess",
|
|
4263
|
+
grantAccess: AuthAPI_GrantAccess_Request.internalBinaryRead(reader, reader.uint32(), options, (message.request as any).grantAccess)
|
|
4264
|
+
};
|
|
4265
|
+
break;
|
|
4266
|
+
case /* MiLaboratories.PL.API.AuthAPI.RevokeAccess.Request revoke_access */ 411:
|
|
4267
|
+
message.request = {
|
|
4268
|
+
oneofKind: "revokeAccess",
|
|
4269
|
+
revokeAccess: AuthAPI_RevokeAccess_Request.internalBinaryRead(reader, reader.uint32(), options, (message.request as any).revokeAccess)
|
|
4270
|
+
};
|
|
4271
|
+
break;
|
|
4111
4272
|
default:
|
|
4112
4273
|
let u = options.readUnknownField;
|
|
4113
4274
|
if (u === "throw")
|
|
@@ -4300,6 +4461,12 @@ class TxAPI_ClientMessage$Type extends MessageType<TxAPI_ClientMessage> {
|
|
|
4300
4461
|
/* MiLaboratories.PL.API.TxAPI.SetDefaultColor.Request set_default_color = 400; */
|
|
4301
4462
|
if (message.request.oneofKind === "setDefaultColor")
|
|
4302
4463
|
TxAPI_SetDefaultColor_Request.internalBinaryWrite(message.request.setDefaultColor, writer.tag(400, WireType.LengthDelimited).fork(), options).join();
|
|
4464
|
+
/* MiLaboratories.PL.API.AuthAPI.GrantAccess.Request grant_access = 410; */
|
|
4465
|
+
if (message.request.oneofKind === "grantAccess")
|
|
4466
|
+
AuthAPI_GrantAccess_Request.internalBinaryWrite(message.request.grantAccess, writer.tag(410, WireType.LengthDelimited).fork(), options).join();
|
|
4467
|
+
/* MiLaboratories.PL.API.AuthAPI.RevokeAccess.Request revoke_access = 411; */
|
|
4468
|
+
if (message.request.oneofKind === "revokeAccess")
|
|
4469
|
+
AuthAPI_RevokeAccess_Request.internalBinaryWrite(message.request.revokeAccess, writer.tag(411, WireType.LengthDelimited).fork(), options).join();
|
|
4303
4470
|
let u = options.writeUnknownFields;
|
|
4304
4471
|
if (u !== false)
|
|
4305
4472
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4375,6 +4542,8 @@ class TxAPI_ServerMessage$Type extends MessageType<TxAPI_ServerMessage> {
|
|
|
4375
4542
|
{ no: 350, name: "controller_features_set", kind: "message", oneof: "response", T: () => ControllerAPI_SetFeatures_Response },
|
|
4376
4543
|
{ no: 351, name: "controller_features_clear", kind: "message", oneof: "response", T: () => ControllerAPI_ClearFeatures_Response },
|
|
4377
4544
|
{ no: 400, name: "set_default_color", kind: "message", oneof: "response", T: () => TxAPI_SetDefaultColor_Response },
|
|
4545
|
+
{ no: 410, name: "grant_access", kind: "message", oneof: "response", T: () => AuthAPI_GrantAccess_Response },
|
|
4546
|
+
{ no: 411, name: "revoke_access", kind: "message", oneof: "response", T: () => AuthAPI_RevokeAccess_Response },
|
|
4378
4547
|
{ no: 3, name: "error", kind: "message", T: () => Status }
|
|
4379
4548
|
]);
|
|
4380
4549
|
}
|
|
@@ -4751,6 +4920,18 @@ class TxAPI_ServerMessage$Type extends MessageType<TxAPI_ServerMessage> {
|
|
|
4751
4920
|
setDefaultColor: TxAPI_SetDefaultColor_Response.internalBinaryRead(reader, reader.uint32(), options, (message.response as any).setDefaultColor)
|
|
4752
4921
|
};
|
|
4753
4922
|
break;
|
|
4923
|
+
case /* MiLaboratories.PL.API.AuthAPI.GrantAccess.Response grant_access */ 410:
|
|
4924
|
+
message.response = {
|
|
4925
|
+
oneofKind: "grantAccess",
|
|
4926
|
+
grantAccess: AuthAPI_GrantAccess_Response.internalBinaryRead(reader, reader.uint32(), options, (message.response as any).grantAccess)
|
|
4927
|
+
};
|
|
4928
|
+
break;
|
|
4929
|
+
case /* MiLaboratories.PL.API.AuthAPI.RevokeAccess.Response revoke_access */ 411:
|
|
4930
|
+
message.response = {
|
|
4931
|
+
oneofKind: "revokeAccess",
|
|
4932
|
+
revokeAccess: AuthAPI_RevokeAccess_Response.internalBinaryRead(reader, reader.uint32(), options, (message.response as any).revokeAccess)
|
|
4933
|
+
};
|
|
4934
|
+
break;
|
|
4754
4935
|
case /* google.rpc.Status error */ 3:
|
|
4755
4936
|
message.error = Status.internalBinaryRead(reader, reader.uint32(), options, message.error);
|
|
4756
4937
|
break;
|
|
@@ -4952,6 +5133,12 @@ class TxAPI_ServerMessage$Type extends MessageType<TxAPI_ServerMessage> {
|
|
|
4952
5133
|
/* MiLaboratories.PL.API.TxAPI.SetDefaultColor.Response set_default_color = 400; */
|
|
4953
5134
|
if (message.response.oneofKind === "setDefaultColor")
|
|
4954
5135
|
TxAPI_SetDefaultColor_Response.internalBinaryWrite(message.response.setDefaultColor, writer.tag(400, WireType.LengthDelimited).fork(), options).join();
|
|
5136
|
+
/* MiLaboratories.PL.API.AuthAPI.GrantAccess.Response grant_access = 410; */
|
|
5137
|
+
if (message.response.oneofKind === "grantAccess")
|
|
5138
|
+
AuthAPI_GrantAccess_Response.internalBinaryWrite(message.response.grantAccess, writer.tag(410, WireType.LengthDelimited).fork(), options).join();
|
|
5139
|
+
/* MiLaboratories.PL.API.AuthAPI.RevokeAccess.Response revoke_access = 411; */
|
|
5140
|
+
if (message.response.oneofKind === "revokeAccess")
|
|
5141
|
+
AuthAPI_RevokeAccess_Response.internalBinaryWrite(message.response.revokeAccess, writer.tag(411, WireType.LengthDelimited).fork(), options).join();
|
|
4955
5142
|
let u = options.writeUnknownFields;
|
|
4956
5143
|
if (u !== false)
|
|
4957
5144
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5688,11 +5875,12 @@ export const TxAPI_SetDefaultColor = new TxAPI_SetDefaultColor$Type();
|
|
|
5688
5875
|
class TxAPI_SetDefaultColor_Request$Type extends MessageType<TxAPI_SetDefaultColor_Request> {
|
|
5689
5876
|
constructor() {
|
|
5690
5877
|
super("MiLaboratories.PL.API.TxAPI.SetDefaultColor.Request", [
|
|
5691
|
-
{ no: 1, name: "color_proof", kind: "scalar",
|
|
5878
|
+
{ no: 1, name: "color_proof", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
5692
5879
|
]);
|
|
5693
5880
|
}
|
|
5694
5881
|
create(value?: PartialMessage<TxAPI_SetDefaultColor_Request>): TxAPI_SetDefaultColor_Request {
|
|
5695
5882
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
5883
|
+
message.colorProof = new Uint8Array(0);
|
|
5696
5884
|
if (value !== undefined)
|
|
5697
5885
|
reflectionMergePartial<TxAPI_SetDefaultColor_Request>(this, message, value);
|
|
5698
5886
|
return message;
|
|
@@ -5702,7 +5890,7 @@ class TxAPI_SetDefaultColor_Request$Type extends MessageType<TxAPI_SetDefaultCol
|
|
|
5702
5890
|
while (reader.pos < end) {
|
|
5703
5891
|
let [fieldNo, wireType] = reader.tag();
|
|
5704
5892
|
switch (fieldNo) {
|
|
5705
|
-
case /*
|
|
5893
|
+
case /* bytes color_proof */ 1:
|
|
5706
5894
|
message.colorProof = reader.bytes();
|
|
5707
5895
|
break;
|
|
5708
5896
|
default:
|
|
@@ -5717,8 +5905,8 @@ class TxAPI_SetDefaultColor_Request$Type extends MessageType<TxAPI_SetDefaultCol
|
|
|
5717
5905
|
return message;
|
|
5718
5906
|
}
|
|
5719
5907
|
internalBinaryWrite(message: TxAPI_SetDefaultColor_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
5720
|
-
/*
|
|
5721
|
-
if (message.colorProof
|
|
5908
|
+
/* bytes color_proof = 1; */
|
|
5909
|
+
if (message.colorProof.length)
|
|
5722
5910
|
writer.tag(1, WireType.LengthDelimited).bytes(message.colorProof);
|
|
5723
5911
|
let u = options.writeUnknownFields;
|
|
5724
5912
|
if (u !== false)
|
|
@@ -5851,7 +6039,7 @@ class ResourceAPI_CreateStruct_Request$Type extends MessageType<ResourceAPI_Crea
|
|
|
5851
6039
|
{ no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
5852
6040
|
{ no: 3, name: "type", kind: "message", T: () => ResourceType },
|
|
5853
6041
|
{ no: 4, name: "data", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
5854
|
-
{ no: 5, name: "color_proof", kind: "scalar",
|
|
6042
|
+
{ no: 5, name: "color_proof", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
5855
6043
|
]);
|
|
5856
6044
|
}
|
|
5857
6045
|
create(value?: PartialMessage<ResourceAPI_CreateStruct_Request>): ResourceAPI_CreateStruct_Request {
|
|
@@ -5876,7 +6064,7 @@ class ResourceAPI_CreateStruct_Request$Type extends MessageType<ResourceAPI_Crea
|
|
|
5876
6064
|
case /* optional bytes data */ 4:
|
|
5877
6065
|
message.data = reader.bytes();
|
|
5878
6066
|
break;
|
|
5879
|
-
case /*
|
|
6067
|
+
case /* bytes color_proof */ 5:
|
|
5880
6068
|
message.colorProof = reader.bytes();
|
|
5881
6069
|
break;
|
|
5882
6070
|
default:
|
|
@@ -5900,8 +6088,8 @@ class ResourceAPI_CreateStruct_Request$Type extends MessageType<ResourceAPI_Crea
|
|
|
5900
6088
|
/* optional bytes data = 4; */
|
|
5901
6089
|
if (message.data !== undefined)
|
|
5902
6090
|
writer.tag(4, WireType.LengthDelimited).bytes(message.data);
|
|
5903
|
-
/*
|
|
5904
|
-
if (message.colorProof
|
|
6091
|
+
/* bytes color_proof = 5; */
|
|
6092
|
+
if (message.colorProof.length)
|
|
5905
6093
|
writer.tag(5, WireType.LengthDelimited).bytes(message.colorProof);
|
|
5906
6094
|
let u = options.writeUnknownFields;
|
|
5907
6095
|
if (u !== false)
|
|
@@ -5918,12 +6106,13 @@ class ResourceAPI_CreateStruct_Response$Type extends MessageType<ResourceAPI_Cre
|
|
|
5918
6106
|
constructor() {
|
|
5919
6107
|
super("MiLaboratories.PL.API.ResourceAPI.CreateStruct.Response", [
|
|
5920
6108
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
5921
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
6109
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
5922
6110
|
]);
|
|
5923
6111
|
}
|
|
5924
6112
|
create(value?: PartialMessage<ResourceAPI_CreateStruct_Response>): ResourceAPI_CreateStruct_Response {
|
|
5925
6113
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
5926
6114
|
message.resourceId = 0n;
|
|
6115
|
+
message.resourceSignature = new Uint8Array(0);
|
|
5927
6116
|
if (value !== undefined)
|
|
5928
6117
|
reflectionMergePartial<ResourceAPI_CreateStruct_Response>(this, message, value);
|
|
5929
6118
|
return message;
|
|
@@ -5936,7 +6125,7 @@ class ResourceAPI_CreateStruct_Response$Type extends MessageType<ResourceAPI_Cre
|
|
|
5936
6125
|
case /* uint64 resource_id */ 1:
|
|
5937
6126
|
message.resourceId = reader.uint64().toBigInt();
|
|
5938
6127
|
break;
|
|
5939
|
-
case /*
|
|
6128
|
+
case /* bytes resource_signature */ 2:
|
|
5940
6129
|
message.resourceSignature = reader.bytes();
|
|
5941
6130
|
break;
|
|
5942
6131
|
default:
|
|
@@ -5954,8 +6143,8 @@ class ResourceAPI_CreateStruct_Response$Type extends MessageType<ResourceAPI_Cre
|
|
|
5954
6143
|
/* uint64 resource_id = 1; */
|
|
5955
6144
|
if (message.resourceId !== 0n)
|
|
5956
6145
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
5957
|
-
/*
|
|
5958
|
-
if (message.resourceSignature
|
|
6146
|
+
/* bytes resource_signature = 2; */
|
|
6147
|
+
if (message.resourceSignature.length)
|
|
5959
6148
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
5960
6149
|
let u = options.writeUnknownFields;
|
|
5961
6150
|
if (u !== false)
|
|
@@ -6012,7 +6201,7 @@ class ResourceAPI_CreateEphemeral_Request$Type extends MessageType<ResourceAPI_C
|
|
|
6012
6201
|
{ no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
6013
6202
|
{ no: 3, name: "type", kind: "message", T: () => ResourceType },
|
|
6014
6203
|
{ no: 4, name: "data", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
6015
|
-
{ no: 5, name: "color_proof", kind: "scalar",
|
|
6204
|
+
{ no: 5, name: "color_proof", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
6016
6205
|
]);
|
|
6017
6206
|
}
|
|
6018
6207
|
create(value?: PartialMessage<ResourceAPI_CreateEphemeral_Request>): ResourceAPI_CreateEphemeral_Request {
|
|
@@ -6037,7 +6226,7 @@ class ResourceAPI_CreateEphemeral_Request$Type extends MessageType<ResourceAPI_C
|
|
|
6037
6226
|
case /* optional bytes data */ 4:
|
|
6038
6227
|
message.data = reader.bytes();
|
|
6039
6228
|
break;
|
|
6040
|
-
case /*
|
|
6229
|
+
case /* bytes color_proof */ 5:
|
|
6041
6230
|
message.colorProof = reader.bytes();
|
|
6042
6231
|
break;
|
|
6043
6232
|
default:
|
|
@@ -6061,8 +6250,8 @@ class ResourceAPI_CreateEphemeral_Request$Type extends MessageType<ResourceAPI_C
|
|
|
6061
6250
|
/* optional bytes data = 4; */
|
|
6062
6251
|
if (message.data !== undefined)
|
|
6063
6252
|
writer.tag(4, WireType.LengthDelimited).bytes(message.data);
|
|
6064
|
-
/*
|
|
6065
|
-
if (message.colorProof
|
|
6253
|
+
/* bytes color_proof = 5; */
|
|
6254
|
+
if (message.colorProof.length)
|
|
6066
6255
|
writer.tag(5, WireType.LengthDelimited).bytes(message.colorProof);
|
|
6067
6256
|
let u = options.writeUnknownFields;
|
|
6068
6257
|
if (u !== false)
|
|
@@ -6079,12 +6268,13 @@ class ResourceAPI_CreateEphemeral_Response$Type extends MessageType<ResourceAPI_
|
|
|
6079
6268
|
constructor() {
|
|
6080
6269
|
super("MiLaboratories.PL.API.ResourceAPI.CreateEphemeral.Response", [
|
|
6081
6270
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
6082
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
6271
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
6083
6272
|
]);
|
|
6084
6273
|
}
|
|
6085
6274
|
create(value?: PartialMessage<ResourceAPI_CreateEphemeral_Response>): ResourceAPI_CreateEphemeral_Response {
|
|
6086
6275
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
6087
6276
|
message.resourceId = 0n;
|
|
6277
|
+
message.resourceSignature = new Uint8Array(0);
|
|
6088
6278
|
if (value !== undefined)
|
|
6089
6279
|
reflectionMergePartial<ResourceAPI_CreateEphemeral_Response>(this, message, value);
|
|
6090
6280
|
return message;
|
|
@@ -6097,7 +6287,7 @@ class ResourceAPI_CreateEphemeral_Response$Type extends MessageType<ResourceAPI_
|
|
|
6097
6287
|
case /* uint64 resource_id */ 1:
|
|
6098
6288
|
message.resourceId = reader.uint64().toBigInt();
|
|
6099
6289
|
break;
|
|
6100
|
-
case /*
|
|
6290
|
+
case /* bytes resource_signature */ 2:
|
|
6101
6291
|
message.resourceSignature = reader.bytes();
|
|
6102
6292
|
break;
|
|
6103
6293
|
default:
|
|
@@ -6115,8 +6305,8 @@ class ResourceAPI_CreateEphemeral_Response$Type extends MessageType<ResourceAPI_
|
|
|
6115
6305
|
/* uint64 resource_id = 1; */
|
|
6116
6306
|
if (message.resourceId !== 0n)
|
|
6117
6307
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
6118
|
-
/*
|
|
6119
|
-
if (message.resourceSignature
|
|
6308
|
+
/* bytes resource_signature = 2; */
|
|
6309
|
+
if (message.resourceSignature.length)
|
|
6120
6310
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
6121
6311
|
let u = options.writeUnknownFields;
|
|
6122
6312
|
if (u !== false)
|
|
@@ -6320,7 +6510,7 @@ class ResourceAPI_CreateValue_Request$Type extends MessageType<ResourceAPI_Creat
|
|
|
6320
6510
|
{ no: 3, name: "type", kind: "message", T: () => ResourceType },
|
|
6321
6511
|
{ no: 6, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
6322
6512
|
{ no: 7, name: "error_if_exists", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
6323
|
-
{ no: 8, name: "color_proof", kind: "scalar",
|
|
6513
|
+
{ no: 8, name: "color_proof", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
6324
6514
|
]);
|
|
6325
6515
|
}
|
|
6326
6516
|
create(value?: PartialMessage<ResourceAPI_CreateValue_Request>): ResourceAPI_CreateValue_Request {
|
|
@@ -6350,7 +6540,7 @@ class ResourceAPI_CreateValue_Request$Type extends MessageType<ResourceAPI_Creat
|
|
|
6350
6540
|
case /* bool error_if_exists */ 7:
|
|
6351
6541
|
message.errorIfExists = reader.bool();
|
|
6352
6542
|
break;
|
|
6353
|
-
case /*
|
|
6543
|
+
case /* bytes color_proof */ 8:
|
|
6354
6544
|
message.colorProof = reader.bytes();
|
|
6355
6545
|
break;
|
|
6356
6546
|
default:
|
|
@@ -6377,8 +6567,8 @@ class ResourceAPI_CreateValue_Request$Type extends MessageType<ResourceAPI_Creat
|
|
|
6377
6567
|
/* bool error_if_exists = 7; */
|
|
6378
6568
|
if (message.errorIfExists !== false)
|
|
6379
6569
|
writer.tag(7, WireType.Varint).bool(message.errorIfExists);
|
|
6380
|
-
/*
|
|
6381
|
-
if (message.colorProof
|
|
6570
|
+
/* bytes color_proof = 8; */
|
|
6571
|
+
if (message.colorProof.length)
|
|
6382
6572
|
writer.tag(8, WireType.LengthDelimited).bytes(message.colorProof);
|
|
6383
6573
|
let u = options.writeUnknownFields;
|
|
6384
6574
|
if (u !== false)
|
|
@@ -6395,12 +6585,13 @@ class ResourceAPI_CreateValue_Response$Type extends MessageType<ResourceAPI_Crea
|
|
|
6395
6585
|
constructor() {
|
|
6396
6586
|
super("MiLaboratories.PL.API.ResourceAPI.CreateValue.Response", [
|
|
6397
6587
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
6398
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
6588
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
6399
6589
|
]);
|
|
6400
6590
|
}
|
|
6401
6591
|
create(value?: PartialMessage<ResourceAPI_CreateValue_Response>): ResourceAPI_CreateValue_Response {
|
|
6402
6592
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
6403
6593
|
message.resourceId = 0n;
|
|
6594
|
+
message.resourceSignature = new Uint8Array(0);
|
|
6404
6595
|
if (value !== undefined)
|
|
6405
6596
|
reflectionMergePartial<ResourceAPI_CreateValue_Response>(this, message, value);
|
|
6406
6597
|
return message;
|
|
@@ -6413,7 +6604,7 @@ class ResourceAPI_CreateValue_Response$Type extends MessageType<ResourceAPI_Crea
|
|
|
6413
6604
|
case /* uint64 resource_id */ 1:
|
|
6414
6605
|
message.resourceId = reader.uint64().toBigInt();
|
|
6415
6606
|
break;
|
|
6416
|
-
case /*
|
|
6607
|
+
case /* bytes resource_signature */ 2:
|
|
6417
6608
|
message.resourceSignature = reader.bytes();
|
|
6418
6609
|
break;
|
|
6419
6610
|
default:
|
|
@@ -6431,8 +6622,8 @@ class ResourceAPI_CreateValue_Response$Type extends MessageType<ResourceAPI_Crea
|
|
|
6431
6622
|
/* uint64 resource_id = 1; */
|
|
6432
6623
|
if (message.resourceId !== 0n)
|
|
6433
6624
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
6434
|
-
/*
|
|
6435
|
-
if (message.resourceSignature
|
|
6625
|
+
/* bytes resource_signature = 2; */
|
|
6626
|
+
if (message.resourceSignature.length)
|
|
6436
6627
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
6437
6628
|
let u = options.writeUnknownFields;
|
|
6438
6629
|
if (u !== false)
|
|
@@ -6541,12 +6732,13 @@ class ResourceAPI_GetValueID_Response$Type extends MessageType<ResourceAPI_GetVa
|
|
|
6541
6732
|
constructor() {
|
|
6542
6733
|
super("MiLaboratories.PL.API.ResourceAPI.GetValueID.Response", [
|
|
6543
6734
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
6544
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
6735
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
6545
6736
|
]);
|
|
6546
6737
|
}
|
|
6547
6738
|
create(value?: PartialMessage<ResourceAPI_GetValueID_Response>): ResourceAPI_GetValueID_Response {
|
|
6548
6739
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
6549
6740
|
message.resourceId = 0n;
|
|
6741
|
+
message.resourceSignature = new Uint8Array(0);
|
|
6550
6742
|
if (value !== undefined)
|
|
6551
6743
|
reflectionMergePartial<ResourceAPI_GetValueID_Response>(this, message, value);
|
|
6552
6744
|
return message;
|
|
@@ -6559,7 +6751,7 @@ class ResourceAPI_GetValueID_Response$Type extends MessageType<ResourceAPI_GetVa
|
|
|
6559
6751
|
case /* uint64 resource_id */ 1:
|
|
6560
6752
|
message.resourceId = reader.uint64().toBigInt();
|
|
6561
6753
|
break;
|
|
6562
|
-
case /*
|
|
6754
|
+
case /* bytes resource_signature */ 2:
|
|
6563
6755
|
message.resourceSignature = reader.bytes();
|
|
6564
6756
|
break;
|
|
6565
6757
|
default:
|
|
@@ -6577,8 +6769,8 @@ class ResourceAPI_GetValueID_Response$Type extends MessageType<ResourceAPI_GetVa
|
|
|
6577
6769
|
/* uint64 resource_id = 1; */
|
|
6578
6770
|
if (message.resourceId !== 0n)
|
|
6579
6771
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
6580
|
-
/*
|
|
6581
|
-
if (message.resourceSignature
|
|
6772
|
+
/* bytes resource_signature = 2; */
|
|
6773
|
+
if (message.resourceSignature.length)
|
|
6582
6774
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
6583
6775
|
let u = options.writeUnknownFields;
|
|
6584
6776
|
if (u !== false)
|
|
@@ -6636,7 +6828,7 @@ class ResourceAPI_CreateSingleton_Request$Type extends MessageType<ResourceAPI_C
|
|
|
6636
6828
|
{ no: 3, name: "type", kind: "message", T: () => ResourceType },
|
|
6637
6829
|
{ no: 6, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
6638
6830
|
{ no: 7, name: "error_if_exists", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
6639
|
-
{ no: 8, name: "color_proof", kind: "scalar",
|
|
6831
|
+
{ no: 8, name: "color_proof", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
6640
6832
|
]);
|
|
6641
6833
|
}
|
|
6642
6834
|
create(value?: PartialMessage<ResourceAPI_CreateSingleton_Request>): ResourceAPI_CreateSingleton_Request {
|
|
@@ -6666,7 +6858,7 @@ class ResourceAPI_CreateSingleton_Request$Type extends MessageType<ResourceAPI_C
|
|
|
6666
6858
|
case /* bool error_if_exists */ 7:
|
|
6667
6859
|
message.errorIfExists = reader.bool();
|
|
6668
6860
|
break;
|
|
6669
|
-
case /*
|
|
6861
|
+
case /* bytes color_proof */ 8:
|
|
6670
6862
|
message.colorProof = reader.bytes();
|
|
6671
6863
|
break;
|
|
6672
6864
|
default:
|
|
@@ -6693,8 +6885,8 @@ class ResourceAPI_CreateSingleton_Request$Type extends MessageType<ResourceAPI_C
|
|
|
6693
6885
|
/* bool error_if_exists = 7; */
|
|
6694
6886
|
if (message.errorIfExists !== false)
|
|
6695
6887
|
writer.tag(7, WireType.Varint).bool(message.errorIfExists);
|
|
6696
|
-
/*
|
|
6697
|
-
if (message.colorProof
|
|
6888
|
+
/* bytes color_proof = 8; */
|
|
6889
|
+
if (message.colorProof.length)
|
|
6698
6890
|
writer.tag(8, WireType.LengthDelimited).bytes(message.colorProof);
|
|
6699
6891
|
let u = options.writeUnknownFields;
|
|
6700
6892
|
if (u !== false)
|
|
@@ -6711,12 +6903,13 @@ class ResourceAPI_CreateSingleton_Response$Type extends MessageType<ResourceAPI_
|
|
|
6711
6903
|
constructor() {
|
|
6712
6904
|
super("MiLaboratories.PL.API.ResourceAPI.CreateSingleton.Response", [
|
|
6713
6905
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
6714
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
6906
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
6715
6907
|
]);
|
|
6716
6908
|
}
|
|
6717
6909
|
create(value?: PartialMessage<ResourceAPI_CreateSingleton_Response>): ResourceAPI_CreateSingleton_Response {
|
|
6718
6910
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
6719
6911
|
message.resourceId = 0n;
|
|
6912
|
+
message.resourceSignature = new Uint8Array(0);
|
|
6720
6913
|
if (value !== undefined)
|
|
6721
6914
|
reflectionMergePartial<ResourceAPI_CreateSingleton_Response>(this, message, value);
|
|
6722
6915
|
return message;
|
|
@@ -6729,7 +6922,7 @@ class ResourceAPI_CreateSingleton_Response$Type extends MessageType<ResourceAPI_
|
|
|
6729
6922
|
case /* uint64 resource_id */ 1:
|
|
6730
6923
|
message.resourceId = reader.uint64().toBigInt();
|
|
6731
6924
|
break;
|
|
6732
|
-
case /*
|
|
6925
|
+
case /* bytes resource_signature */ 2:
|
|
6733
6926
|
message.resourceSignature = reader.bytes();
|
|
6734
6927
|
break;
|
|
6735
6928
|
default:
|
|
@@ -6747,8 +6940,8 @@ class ResourceAPI_CreateSingleton_Response$Type extends MessageType<ResourceAPI_
|
|
|
6747
6940
|
/* uint64 resource_id = 1; */
|
|
6748
6941
|
if (message.resourceId !== 0n)
|
|
6749
6942
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
6750
|
-
/*
|
|
6751
|
-
if (message.resourceSignature
|
|
6943
|
+
/* bytes resource_signature = 2; */
|
|
6944
|
+
if (message.resourceSignature.length)
|
|
6752
6945
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
6753
6946
|
let u = options.writeUnknownFields;
|
|
6754
6947
|
if (u !== false)
|
|
@@ -6949,12 +7142,13 @@ class ResourceAPI_LockInputs_Request$Type extends MessageType<ResourceAPI_LockIn
|
|
|
6949
7142
|
constructor() {
|
|
6950
7143
|
super("MiLaboratories.PL.API.ResourceAPI.LockInputs.Request", [
|
|
6951
7144
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
6952
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
7145
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
6953
7146
|
]);
|
|
6954
7147
|
}
|
|
6955
7148
|
create(value?: PartialMessage<ResourceAPI_LockInputs_Request>): ResourceAPI_LockInputs_Request {
|
|
6956
7149
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
6957
7150
|
message.resourceId = 0n;
|
|
7151
|
+
message.resourceSignature = new Uint8Array(0);
|
|
6958
7152
|
if (value !== undefined)
|
|
6959
7153
|
reflectionMergePartial<ResourceAPI_LockInputs_Request>(this, message, value);
|
|
6960
7154
|
return message;
|
|
@@ -6967,7 +7161,7 @@ class ResourceAPI_LockInputs_Request$Type extends MessageType<ResourceAPI_LockIn
|
|
|
6967
7161
|
case /* uint64 resource_id */ 1:
|
|
6968
7162
|
message.resourceId = reader.uint64().toBigInt();
|
|
6969
7163
|
break;
|
|
6970
|
-
case /*
|
|
7164
|
+
case /* bytes resource_signature */ 2:
|
|
6971
7165
|
message.resourceSignature = reader.bytes();
|
|
6972
7166
|
break;
|
|
6973
7167
|
default:
|
|
@@ -6985,8 +7179,8 @@ class ResourceAPI_LockInputs_Request$Type extends MessageType<ResourceAPI_LockIn
|
|
|
6985
7179
|
/* uint64 resource_id = 1; */
|
|
6986
7180
|
if (message.resourceId !== 0n)
|
|
6987
7181
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
6988
|
-
/*
|
|
6989
|
-
if (message.resourceSignature
|
|
7182
|
+
/* bytes resource_signature = 2; */
|
|
7183
|
+
if (message.resourceSignature.length)
|
|
6990
7184
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
6991
7185
|
let u = options.writeUnknownFields;
|
|
6992
7186
|
if (u !== false)
|
|
@@ -7079,12 +7273,13 @@ class ResourceAPI_LockOutputs_Request$Type extends MessageType<ResourceAPI_LockO
|
|
|
7079
7273
|
constructor() {
|
|
7080
7274
|
super("MiLaboratories.PL.API.ResourceAPI.LockOutputs.Request", [
|
|
7081
7275
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
7082
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
7276
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
7083
7277
|
]);
|
|
7084
7278
|
}
|
|
7085
7279
|
create(value?: PartialMessage<ResourceAPI_LockOutputs_Request>): ResourceAPI_LockOutputs_Request {
|
|
7086
7280
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
7087
7281
|
message.resourceId = 0n;
|
|
7282
|
+
message.resourceSignature = new Uint8Array(0);
|
|
7088
7283
|
if (value !== undefined)
|
|
7089
7284
|
reflectionMergePartial<ResourceAPI_LockOutputs_Request>(this, message, value);
|
|
7090
7285
|
return message;
|
|
@@ -7097,7 +7292,7 @@ class ResourceAPI_LockOutputs_Request$Type extends MessageType<ResourceAPI_LockO
|
|
|
7097
7292
|
case /* uint64 resource_id */ 1:
|
|
7098
7293
|
message.resourceId = reader.uint64().toBigInt();
|
|
7099
7294
|
break;
|
|
7100
|
-
case /*
|
|
7295
|
+
case /* bytes resource_signature */ 2:
|
|
7101
7296
|
message.resourceSignature = reader.bytes();
|
|
7102
7297
|
break;
|
|
7103
7298
|
default:
|
|
@@ -7115,8 +7310,8 @@ class ResourceAPI_LockOutputs_Request$Type extends MessageType<ResourceAPI_LockO
|
|
|
7115
7310
|
/* uint64 resource_id = 1; */
|
|
7116
7311
|
if (message.resourceId !== 0n)
|
|
7117
7312
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
7118
|
-
/*
|
|
7119
|
-
if (message.resourceSignature
|
|
7313
|
+
/* bytes resource_signature = 2; */
|
|
7314
|
+
if (message.resourceSignature.length)
|
|
7120
7315
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
7121
7316
|
let u = options.writeUnknownFields;
|
|
7122
7317
|
if (u !== false)
|
|
@@ -7209,12 +7404,13 @@ class ResourceAPI_Exists_Request$Type extends MessageType<ResourceAPI_Exists_Req
|
|
|
7209
7404
|
constructor() {
|
|
7210
7405
|
super("MiLaboratories.PL.API.ResourceAPI.Exists.Request", [
|
|
7211
7406
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
7212
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
7407
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
7213
7408
|
]);
|
|
7214
7409
|
}
|
|
7215
7410
|
create(value?: PartialMessage<ResourceAPI_Exists_Request>): ResourceAPI_Exists_Request {
|
|
7216
7411
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
7217
7412
|
message.resourceId = 0n;
|
|
7413
|
+
message.resourceSignature = new Uint8Array(0);
|
|
7218
7414
|
if (value !== undefined)
|
|
7219
7415
|
reflectionMergePartial<ResourceAPI_Exists_Request>(this, message, value);
|
|
7220
7416
|
return message;
|
|
@@ -7227,7 +7423,7 @@ class ResourceAPI_Exists_Request$Type extends MessageType<ResourceAPI_Exists_Req
|
|
|
7227
7423
|
case /* uint64 resource_id */ 1:
|
|
7228
7424
|
message.resourceId = reader.uint64().toBigInt();
|
|
7229
7425
|
break;
|
|
7230
|
-
case /*
|
|
7426
|
+
case /* bytes resource_signature */ 2:
|
|
7231
7427
|
message.resourceSignature = reader.bytes();
|
|
7232
7428
|
break;
|
|
7233
7429
|
default:
|
|
@@ -7245,8 +7441,8 @@ class ResourceAPI_Exists_Request$Type extends MessageType<ResourceAPI_Exists_Req
|
|
|
7245
7441
|
/* uint64 resource_id = 1; */
|
|
7246
7442
|
if (message.resourceId !== 0n)
|
|
7247
7443
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
7248
|
-
/*
|
|
7249
|
-
if (message.resourceSignature
|
|
7444
|
+
/* bytes resource_signature = 2; */
|
|
7445
|
+
if (message.resourceSignature.length)
|
|
7250
7446
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
7251
7447
|
let u = options.writeUnknownFields;
|
|
7252
7448
|
if (u !== false)
|
|
@@ -7348,15 +7544,17 @@ class ResourceAPI_SetError_Request$Type extends MessageType<ResourceAPI_SetError
|
|
|
7348
7544
|
constructor() {
|
|
7349
7545
|
super("MiLaboratories.PL.API.ResourceAPI.SetError.Request", [
|
|
7350
7546
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
7351
|
-
{ no: 3, name: "resource_signature", kind: "scalar",
|
|
7547
|
+
{ no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
7352
7548
|
{ no: 2, name: "error_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
7353
|
-
{ no: 4, name: "error_resource_signature", kind: "scalar",
|
|
7549
|
+
{ no: 4, name: "error_resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
7354
7550
|
]);
|
|
7355
7551
|
}
|
|
7356
7552
|
create(value?: PartialMessage<ResourceAPI_SetError_Request>): ResourceAPI_SetError_Request {
|
|
7357
7553
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
7358
7554
|
message.resourceId = 0n;
|
|
7555
|
+
message.resourceSignature = new Uint8Array(0);
|
|
7359
7556
|
message.errorResourceId = 0n;
|
|
7557
|
+
message.errorResourceSignature = new Uint8Array(0);
|
|
7360
7558
|
if (value !== undefined)
|
|
7361
7559
|
reflectionMergePartial<ResourceAPI_SetError_Request>(this, message, value);
|
|
7362
7560
|
return message;
|
|
@@ -7369,13 +7567,13 @@ class ResourceAPI_SetError_Request$Type extends MessageType<ResourceAPI_SetError
|
|
|
7369
7567
|
case /* uint64 resource_id */ 1:
|
|
7370
7568
|
message.resourceId = reader.uint64().toBigInt();
|
|
7371
7569
|
break;
|
|
7372
|
-
case /*
|
|
7570
|
+
case /* bytes resource_signature */ 3:
|
|
7373
7571
|
message.resourceSignature = reader.bytes();
|
|
7374
7572
|
break;
|
|
7375
7573
|
case /* uint64 error_resource_id */ 2:
|
|
7376
7574
|
message.errorResourceId = reader.uint64().toBigInt();
|
|
7377
7575
|
break;
|
|
7378
|
-
case /*
|
|
7576
|
+
case /* bytes error_resource_signature */ 4:
|
|
7379
7577
|
message.errorResourceSignature = reader.bytes();
|
|
7380
7578
|
break;
|
|
7381
7579
|
default:
|
|
@@ -7396,11 +7594,11 @@ class ResourceAPI_SetError_Request$Type extends MessageType<ResourceAPI_SetError
|
|
|
7396
7594
|
/* uint64 error_resource_id = 2; */
|
|
7397
7595
|
if (message.errorResourceId !== 0n)
|
|
7398
7596
|
writer.tag(2, WireType.Varint).uint64(message.errorResourceId);
|
|
7399
|
-
/*
|
|
7400
|
-
if (message.resourceSignature
|
|
7597
|
+
/* bytes resource_signature = 3; */
|
|
7598
|
+
if (message.resourceSignature.length)
|
|
7401
7599
|
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
7402
|
-
/*
|
|
7403
|
-
if (message.errorResourceSignature
|
|
7600
|
+
/* bytes error_resource_signature = 4; */
|
|
7601
|
+
if (message.errorResourceSignature.length)
|
|
7404
7602
|
writer.tag(4, WireType.LengthDelimited).bytes(message.errorResourceSignature);
|
|
7405
7603
|
let u = options.writeUnknownFields;
|
|
7406
7604
|
if (u !== false)
|
|
@@ -7493,13 +7691,14 @@ class ResourceAPI_Get_Request$Type extends MessageType<ResourceAPI_Get_Request>
|
|
|
7493
7691
|
constructor() {
|
|
7494
7692
|
super("MiLaboratories.PL.API.ResourceAPI.Get.Request", [
|
|
7495
7693
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
7496
|
-
{ no: 3, name: "resource_signature", kind: "scalar",
|
|
7694
|
+
{ no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
7497
7695
|
{ no: 2, name: "load_fields", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
7498
7696
|
]);
|
|
7499
7697
|
}
|
|
7500
7698
|
create(value?: PartialMessage<ResourceAPI_Get_Request>): ResourceAPI_Get_Request {
|
|
7501
7699
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
7502
7700
|
message.resourceId = 0n;
|
|
7701
|
+
message.resourceSignature = new Uint8Array(0);
|
|
7503
7702
|
message.loadFields = false;
|
|
7504
7703
|
if (value !== undefined)
|
|
7505
7704
|
reflectionMergePartial<ResourceAPI_Get_Request>(this, message, value);
|
|
@@ -7513,7 +7712,7 @@ class ResourceAPI_Get_Request$Type extends MessageType<ResourceAPI_Get_Request>
|
|
|
7513
7712
|
case /* uint64 resource_id */ 1:
|
|
7514
7713
|
message.resourceId = reader.uint64().toBigInt();
|
|
7515
7714
|
break;
|
|
7516
|
-
case /*
|
|
7715
|
+
case /* bytes resource_signature */ 3:
|
|
7517
7716
|
message.resourceSignature = reader.bytes();
|
|
7518
7717
|
break;
|
|
7519
7718
|
case /* bool load_fields */ 2:
|
|
@@ -7537,8 +7736,8 @@ class ResourceAPI_Get_Request$Type extends MessageType<ResourceAPI_Get_Request>
|
|
|
7537
7736
|
/* bool load_fields = 2; */
|
|
7538
7737
|
if (message.loadFields !== false)
|
|
7539
7738
|
writer.tag(2, WireType.Varint).bool(message.loadFields);
|
|
7540
|
-
/*
|
|
7541
|
-
if (message.resourceSignature
|
|
7739
|
+
/* bytes resource_signature = 3; */
|
|
7740
|
+
if (message.resourceSignature.length)
|
|
7542
7741
|
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
7543
7742
|
let u = options.writeUnknownFields;
|
|
7544
7743
|
if (u !== false)
|
|
@@ -7893,12 +8092,13 @@ class ResourceAPI_CreateRoot_Response$Type extends MessageType<ResourceAPI_Creat
|
|
|
7893
8092
|
constructor() {
|
|
7894
8093
|
super("MiLaboratories.PL.API.ResourceAPI.CreateRoot.Response", [
|
|
7895
8094
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
7896
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
8095
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
7897
8096
|
]);
|
|
7898
8097
|
}
|
|
7899
8098
|
create(value?: PartialMessage<ResourceAPI_CreateRoot_Response>): ResourceAPI_CreateRoot_Response {
|
|
7900
8099
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
7901
8100
|
message.resourceId = 0n;
|
|
8101
|
+
message.resourceSignature = new Uint8Array(0);
|
|
7902
8102
|
if (value !== undefined)
|
|
7903
8103
|
reflectionMergePartial<ResourceAPI_CreateRoot_Response>(this, message, value);
|
|
7904
8104
|
return message;
|
|
@@ -7911,7 +8111,7 @@ class ResourceAPI_CreateRoot_Response$Type extends MessageType<ResourceAPI_Creat
|
|
|
7911
8111
|
case /* uint64 resource_id */ 1:
|
|
7912
8112
|
message.resourceId = reader.uint64().toBigInt();
|
|
7913
8113
|
break;
|
|
7914
|
-
case /*
|
|
8114
|
+
case /* bytes resource_signature */ 2:
|
|
7915
8115
|
message.resourceSignature = reader.bytes();
|
|
7916
8116
|
break;
|
|
7917
8117
|
default:
|
|
@@ -7929,8 +8129,8 @@ class ResourceAPI_CreateRoot_Response$Type extends MessageType<ResourceAPI_Creat
|
|
|
7929
8129
|
/* uint64 resource_id = 1; */
|
|
7930
8130
|
if (message.resourceId !== 0n)
|
|
7931
8131
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
7932
|
-
/*
|
|
7933
|
-
if (message.resourceSignature
|
|
8132
|
+
/* bytes resource_signature = 2; */
|
|
8133
|
+
if (message.resourceSignature.length)
|
|
7934
8134
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
7935
8135
|
let u = options.writeUnknownFields;
|
|
7936
8136
|
if (u !== false)
|
|
@@ -7985,12 +8185,13 @@ class ResourceAPI_Remove_Request$Type extends MessageType<ResourceAPI_Remove_Req
|
|
|
7985
8185
|
constructor() {
|
|
7986
8186
|
super("MiLaboratories.PL.API.ResourceAPI.Remove.Request", [
|
|
7987
8187
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
7988
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
8188
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
7989
8189
|
]);
|
|
7990
8190
|
}
|
|
7991
8191
|
create(value?: PartialMessage<ResourceAPI_Remove_Request>): ResourceAPI_Remove_Request {
|
|
7992
8192
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
7993
8193
|
message.resourceId = 0n;
|
|
8194
|
+
message.resourceSignature = new Uint8Array(0);
|
|
7994
8195
|
if (value !== undefined)
|
|
7995
8196
|
reflectionMergePartial<ResourceAPI_Remove_Request>(this, message, value);
|
|
7996
8197
|
return message;
|
|
@@ -8003,7 +8204,7 @@ class ResourceAPI_Remove_Request$Type extends MessageType<ResourceAPI_Remove_Req
|
|
|
8003
8204
|
case /* uint64 resource_id */ 1:
|
|
8004
8205
|
message.resourceId = reader.uint64().toBigInt();
|
|
8005
8206
|
break;
|
|
8006
|
-
case /*
|
|
8207
|
+
case /* bytes resource_signature */ 2:
|
|
8007
8208
|
message.resourceSignature = reader.bytes();
|
|
8008
8209
|
break;
|
|
8009
8210
|
default:
|
|
@@ -8021,8 +8222,8 @@ class ResourceAPI_Remove_Request$Type extends MessageType<ResourceAPI_Remove_Req
|
|
|
8021
8222
|
/* uint64 resource_id = 1; */
|
|
8022
8223
|
if (message.resourceId !== 0n)
|
|
8023
8224
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
8024
|
-
/*
|
|
8025
|
-
if (message.resourceSignature
|
|
8225
|
+
/* bytes resource_signature = 2; */
|
|
8226
|
+
if (message.resourceSignature.length)
|
|
8026
8227
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
8027
8228
|
let u = options.writeUnknownFields;
|
|
8028
8229
|
if (u !== false)
|
|
@@ -8153,13 +8354,14 @@ class ResourceAPI_Name_Set_Request$Type extends MessageType<ResourceAPI_Name_Set
|
|
|
8153
8354
|
constructor() {
|
|
8154
8355
|
super("MiLaboratories.PL.API.ResourceAPI.Name.Set.Request", [
|
|
8155
8356
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
8156
|
-
{ no: 3, name: "resource_signature", kind: "scalar",
|
|
8357
|
+
{ no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
8157
8358
|
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
8158
8359
|
]);
|
|
8159
8360
|
}
|
|
8160
8361
|
create(value?: PartialMessage<ResourceAPI_Name_Set_Request>): ResourceAPI_Name_Set_Request {
|
|
8161
8362
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
8162
8363
|
message.resourceId = 0n;
|
|
8364
|
+
message.resourceSignature = new Uint8Array(0);
|
|
8163
8365
|
message.name = "";
|
|
8164
8366
|
if (value !== undefined)
|
|
8165
8367
|
reflectionMergePartial<ResourceAPI_Name_Set_Request>(this, message, value);
|
|
@@ -8173,7 +8375,7 @@ class ResourceAPI_Name_Set_Request$Type extends MessageType<ResourceAPI_Name_Set
|
|
|
8173
8375
|
case /* uint64 resource_id */ 1:
|
|
8174
8376
|
message.resourceId = reader.uint64().toBigInt();
|
|
8175
8377
|
break;
|
|
8176
|
-
case /*
|
|
8378
|
+
case /* bytes resource_signature */ 3:
|
|
8177
8379
|
message.resourceSignature = reader.bytes();
|
|
8178
8380
|
break;
|
|
8179
8381
|
case /* string name */ 2:
|
|
@@ -8197,8 +8399,8 @@ class ResourceAPI_Name_Set_Request$Type extends MessageType<ResourceAPI_Name_Set
|
|
|
8197
8399
|
/* string name = 2; */
|
|
8198
8400
|
if (message.name !== "")
|
|
8199
8401
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
8200
|
-
/*
|
|
8201
|
-
if (message.resourceSignature
|
|
8402
|
+
/* bytes resource_signature = 3; */
|
|
8403
|
+
if (message.resourceSignature.length)
|
|
8202
8404
|
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
8203
8405
|
let u = options.writeUnknownFields;
|
|
8204
8406
|
if (u !== false)
|
|
@@ -8338,12 +8540,13 @@ class ResourceAPI_Name_Get_Response$Type extends MessageType<ResourceAPI_Name_Ge
|
|
|
8338
8540
|
constructor() {
|
|
8339
8541
|
super("MiLaboratories.PL.API.ResourceAPI.Name.Get.Response", [
|
|
8340
8542
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
8341
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
8543
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
8342
8544
|
]);
|
|
8343
8545
|
}
|
|
8344
8546
|
create(value?: PartialMessage<ResourceAPI_Name_Get_Response>): ResourceAPI_Name_Get_Response {
|
|
8345
8547
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
8346
8548
|
message.resourceId = 0n;
|
|
8549
|
+
message.resourceSignature = new Uint8Array(0);
|
|
8347
8550
|
if (value !== undefined)
|
|
8348
8551
|
reflectionMergePartial<ResourceAPI_Name_Get_Response>(this, message, value);
|
|
8349
8552
|
return message;
|
|
@@ -8356,7 +8559,7 @@ class ResourceAPI_Name_Get_Response$Type extends MessageType<ResourceAPI_Name_Ge
|
|
|
8356
8559
|
case /* uint64 resource_id */ 1:
|
|
8357
8560
|
message.resourceId = reader.uint64().toBigInt();
|
|
8358
8561
|
break;
|
|
8359
|
-
case /*
|
|
8562
|
+
case /* bytes resource_signature */ 2:
|
|
8360
8563
|
message.resourceSignature = reader.bytes();
|
|
8361
8564
|
break;
|
|
8362
8565
|
default:
|
|
@@ -8374,8 +8577,8 @@ class ResourceAPI_Name_Get_Response$Type extends MessageType<ResourceAPI_Name_Ge
|
|
|
8374
8577
|
/* uint64 resource_id = 1; */
|
|
8375
8578
|
if (message.resourceId !== 0n)
|
|
8376
8579
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
8377
|
-
/*
|
|
8378
|
-
if (message.resourceSignature
|
|
8580
|
+
/* bytes resource_signature = 2; */
|
|
8581
|
+
if (message.resourceSignature.length)
|
|
8379
8582
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
8380
8583
|
let u = options.writeUnknownFields;
|
|
8381
8584
|
if (u !== false)
|
|
@@ -8685,13 +8888,14 @@ class ResourceAPI_Tree_Request$Type extends MessageType<ResourceAPI_Tree_Request
|
|
|
8685
8888
|
constructor() {
|
|
8686
8889
|
super("MiLaboratories.PL.API.ResourceAPI.Tree.Request", [
|
|
8687
8890
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
8688
|
-
{ no: 3, name: "resource_signature", kind: "scalar",
|
|
8891
|
+
{ no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
8689
8892
|
{ no: 2, name: "max_depth", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }
|
|
8690
8893
|
]);
|
|
8691
8894
|
}
|
|
8692
8895
|
create(value?: PartialMessage<ResourceAPI_Tree_Request>): ResourceAPI_Tree_Request {
|
|
8693
8896
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
8694
8897
|
message.resourceId = 0n;
|
|
8898
|
+
message.resourceSignature = new Uint8Array(0);
|
|
8695
8899
|
if (value !== undefined)
|
|
8696
8900
|
reflectionMergePartial<ResourceAPI_Tree_Request>(this, message, value);
|
|
8697
8901
|
return message;
|
|
@@ -8704,7 +8908,7 @@ class ResourceAPI_Tree_Request$Type extends MessageType<ResourceAPI_Tree_Request
|
|
|
8704
8908
|
case /* uint64 resource_id */ 1:
|
|
8705
8909
|
message.resourceId = reader.uint64().toBigInt();
|
|
8706
8910
|
break;
|
|
8707
|
-
case /*
|
|
8911
|
+
case /* bytes resource_signature */ 3:
|
|
8708
8912
|
message.resourceSignature = reader.bytes();
|
|
8709
8913
|
break;
|
|
8710
8914
|
case /* optional uint32 max_depth */ 2:
|
|
@@ -8728,8 +8932,8 @@ class ResourceAPI_Tree_Request$Type extends MessageType<ResourceAPI_Tree_Request
|
|
|
8728
8932
|
/* optional uint32 max_depth = 2; */
|
|
8729
8933
|
if (message.maxDepth !== undefined)
|
|
8730
8934
|
writer.tag(2, WireType.Varint).uint32(message.maxDepth);
|
|
8731
|
-
/*
|
|
8732
|
-
if (message.resourceSignature
|
|
8935
|
+
/* bytes resource_signature = 3; */
|
|
8936
|
+
if (message.resourceSignature.length)
|
|
8733
8937
|
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
8734
8938
|
let u = options.writeUnknownFields;
|
|
8735
8939
|
if (u !== false)
|
|
@@ -8830,12 +9034,13 @@ class ResourceAPI_TreeSize_Request$Type extends MessageType<ResourceAPI_TreeSize
|
|
|
8830
9034
|
constructor() {
|
|
8831
9035
|
super("MiLaboratories.PL.API.ResourceAPI.TreeSize.Request", [
|
|
8832
9036
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
8833
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
9037
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
8834
9038
|
]);
|
|
8835
9039
|
}
|
|
8836
9040
|
create(value?: PartialMessage<ResourceAPI_TreeSize_Request>): ResourceAPI_TreeSize_Request {
|
|
8837
9041
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
8838
9042
|
message.resourceId = 0n;
|
|
9043
|
+
message.resourceSignature = new Uint8Array(0);
|
|
8839
9044
|
if (value !== undefined)
|
|
8840
9045
|
reflectionMergePartial<ResourceAPI_TreeSize_Request>(this, message, value);
|
|
8841
9046
|
return message;
|
|
@@ -8848,7 +9053,7 @@ class ResourceAPI_TreeSize_Request$Type extends MessageType<ResourceAPI_TreeSize
|
|
|
8848
9053
|
case /* uint64 resource_id */ 1:
|
|
8849
9054
|
message.resourceId = reader.uint64().toBigInt();
|
|
8850
9055
|
break;
|
|
8851
|
-
case /*
|
|
9056
|
+
case /* bytes resource_signature */ 2:
|
|
8852
9057
|
message.resourceSignature = reader.bytes();
|
|
8853
9058
|
break;
|
|
8854
9059
|
default:
|
|
@@ -8866,8 +9071,8 @@ class ResourceAPI_TreeSize_Request$Type extends MessageType<ResourceAPI_TreeSize
|
|
|
8866
9071
|
/* uint64 resource_id = 1; */
|
|
8867
9072
|
if (message.resourceId !== 0n)
|
|
8868
9073
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
8869
|
-
/*
|
|
8870
|
-
if (message.resourceSignature
|
|
9074
|
+
/* bytes resource_signature = 2; */
|
|
9075
|
+
if (message.resourceSignature.length)
|
|
8871
9076
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
8872
9077
|
let u = options.writeUnknownFields;
|
|
8873
9078
|
if (u !== false)
|
|
@@ -9414,12 +9619,13 @@ class FieldAPI_SetError_Request$Type extends MessageType<FieldAPI_SetError_Reque
|
|
|
9414
9619
|
super("MiLaboratories.PL.API.FieldAPI.SetError.Request", [
|
|
9415
9620
|
{ no: 1, name: "field", kind: "message", T: () => FieldRef },
|
|
9416
9621
|
{ no: 2, name: "error_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
9417
|
-
{ no: 3, name: "error_resource_signature", kind: "scalar",
|
|
9622
|
+
{ no: 3, name: "error_resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
9418
9623
|
]);
|
|
9419
9624
|
}
|
|
9420
9625
|
create(value?: PartialMessage<FieldAPI_SetError_Request>): FieldAPI_SetError_Request {
|
|
9421
9626
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
9422
9627
|
message.errorResourceId = 0n;
|
|
9628
|
+
message.errorResourceSignature = new Uint8Array(0);
|
|
9423
9629
|
if (value !== undefined)
|
|
9424
9630
|
reflectionMergePartial<FieldAPI_SetError_Request>(this, message, value);
|
|
9425
9631
|
return message;
|
|
@@ -9435,7 +9641,7 @@ class FieldAPI_SetError_Request$Type extends MessageType<FieldAPI_SetError_Reque
|
|
|
9435
9641
|
case /* uint64 error_resource_id */ 2:
|
|
9436
9642
|
message.errorResourceId = reader.uint64().toBigInt();
|
|
9437
9643
|
break;
|
|
9438
|
-
case /*
|
|
9644
|
+
case /* bytes error_resource_signature */ 3:
|
|
9439
9645
|
message.errorResourceSignature = reader.bytes();
|
|
9440
9646
|
break;
|
|
9441
9647
|
default:
|
|
@@ -9456,8 +9662,8 @@ class FieldAPI_SetError_Request$Type extends MessageType<FieldAPI_SetError_Reque
|
|
|
9456
9662
|
/* uint64 error_resource_id = 2; */
|
|
9457
9663
|
if (message.errorResourceId !== 0n)
|
|
9458
9664
|
writer.tag(2, WireType.Varint).uint64(message.errorResourceId);
|
|
9459
|
-
/*
|
|
9460
|
-
if (message.errorResourceSignature
|
|
9665
|
+
/* bytes error_resource_signature = 3; */
|
|
9666
|
+
if (message.errorResourceSignature.length)
|
|
9461
9667
|
writer.tag(3, WireType.LengthDelimited).bytes(message.errorResourceSignature);
|
|
9462
9668
|
let u = options.writeUnknownFields;
|
|
9463
9669
|
if (u !== false)
|
|
@@ -9924,7 +10130,7 @@ class FieldAPI_List_Request$Type extends MessageType<FieldAPI_List_Request> {
|
|
|
9924
10130
|
constructor() {
|
|
9925
10131
|
super("MiLaboratories.PL.API.FieldAPI.List.Request", [
|
|
9926
10132
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
9927
|
-
{ no: 4, name: "resource_signature", kind: "scalar",
|
|
10133
|
+
{ no: 4, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
9928
10134
|
{ no: 2, name: "start_from", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
9929
10135
|
{ no: 3, name: "limit", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
9930
10136
|
]);
|
|
@@ -9932,6 +10138,7 @@ class FieldAPI_List_Request$Type extends MessageType<FieldAPI_List_Request> {
|
|
|
9932
10138
|
create(value?: PartialMessage<FieldAPI_List_Request>): FieldAPI_List_Request {
|
|
9933
10139
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
9934
10140
|
message.resourceId = 0n;
|
|
10141
|
+
message.resourceSignature = new Uint8Array(0);
|
|
9935
10142
|
message.startFrom = "";
|
|
9936
10143
|
message.limit = 0;
|
|
9937
10144
|
if (value !== undefined)
|
|
@@ -9946,7 +10153,7 @@ class FieldAPI_List_Request$Type extends MessageType<FieldAPI_List_Request> {
|
|
|
9946
10153
|
case /* uint64 resource_id */ 1:
|
|
9947
10154
|
message.resourceId = reader.uint64().toBigInt();
|
|
9948
10155
|
break;
|
|
9949
|
-
case /*
|
|
10156
|
+
case /* bytes resource_signature */ 4:
|
|
9950
10157
|
message.resourceSignature = reader.bytes();
|
|
9951
10158
|
break;
|
|
9952
10159
|
case /* string start_from */ 2:
|
|
@@ -9976,8 +10183,8 @@ class FieldAPI_List_Request$Type extends MessageType<FieldAPI_List_Request> {
|
|
|
9976
10183
|
/* uint32 limit = 3; */
|
|
9977
10184
|
if (message.limit !== 0)
|
|
9978
10185
|
writer.tag(3, WireType.Varint).uint32(message.limit);
|
|
9979
|
-
/*
|
|
9980
|
-
if (message.resourceSignature
|
|
10186
|
+
/* bytes resource_signature = 4; */
|
|
10187
|
+
if (message.resourceSignature.length)
|
|
9981
10188
|
writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
9982
10189
|
let u = options.writeUnknownFields;
|
|
9983
10190
|
if (u !== false)
|
|
@@ -13170,7 +13377,7 @@ class ResourceKVAPI_List_Request$Type extends MessageType<ResourceKVAPI_List_Req
|
|
|
13170
13377
|
constructor() {
|
|
13171
13378
|
super("MiLaboratories.PL.API.ResourceKVAPI.List.Request", [
|
|
13172
13379
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
13173
|
-
{ no: 4, name: "resource_signature", kind: "scalar",
|
|
13380
|
+
{ no: 4, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
13174
13381
|
{ no: 2, name: "start_from", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
13175
13382
|
{ no: 3, name: "limit", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
13176
13383
|
]);
|
|
@@ -13178,6 +13385,7 @@ class ResourceKVAPI_List_Request$Type extends MessageType<ResourceKVAPI_List_Req
|
|
|
13178
13385
|
create(value?: PartialMessage<ResourceKVAPI_List_Request>): ResourceKVAPI_List_Request {
|
|
13179
13386
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
13180
13387
|
message.resourceId = 0n;
|
|
13388
|
+
message.resourceSignature = new Uint8Array(0);
|
|
13181
13389
|
message.startFrom = "";
|
|
13182
13390
|
message.limit = 0;
|
|
13183
13391
|
if (value !== undefined)
|
|
@@ -13192,7 +13400,7 @@ class ResourceKVAPI_List_Request$Type extends MessageType<ResourceKVAPI_List_Req
|
|
|
13192
13400
|
case /* uint64 resource_id */ 1:
|
|
13193
13401
|
message.resourceId = reader.uint64().toBigInt();
|
|
13194
13402
|
break;
|
|
13195
|
-
case /*
|
|
13403
|
+
case /* bytes resource_signature */ 4:
|
|
13196
13404
|
message.resourceSignature = reader.bytes();
|
|
13197
13405
|
break;
|
|
13198
13406
|
case /* string start_from */ 2:
|
|
@@ -13222,8 +13430,8 @@ class ResourceKVAPI_List_Request$Type extends MessageType<ResourceKVAPI_List_Req
|
|
|
13222
13430
|
/* uint32 limit = 3; */
|
|
13223
13431
|
if (message.limit !== 0)
|
|
13224
13432
|
writer.tag(3, WireType.Varint).uint32(message.limit);
|
|
13225
|
-
/*
|
|
13226
|
-
if (message.resourceSignature
|
|
13433
|
+
/* bytes resource_signature = 4; */
|
|
13434
|
+
if (message.resourceSignature.length)
|
|
13227
13435
|
writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
13228
13436
|
let u = options.writeUnknownFields;
|
|
13229
13437
|
if (u !== false)
|
|
@@ -13387,7 +13595,7 @@ class ResourceKVAPI_Set_Request$Type extends MessageType<ResourceKVAPI_Set_Reque
|
|
|
13387
13595
|
constructor() {
|
|
13388
13596
|
super("MiLaboratories.PL.API.ResourceKVAPI.Set.Request", [
|
|
13389
13597
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
13390
|
-
{ no: 4, name: "resource_signature", kind: "scalar",
|
|
13598
|
+
{ no: 4, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
13391
13599
|
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
13392
13600
|
{ no: 3, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
13393
13601
|
]);
|
|
@@ -13395,6 +13603,7 @@ class ResourceKVAPI_Set_Request$Type extends MessageType<ResourceKVAPI_Set_Reque
|
|
|
13395
13603
|
create(value?: PartialMessage<ResourceKVAPI_Set_Request>): ResourceKVAPI_Set_Request {
|
|
13396
13604
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
13397
13605
|
message.resourceId = 0n;
|
|
13606
|
+
message.resourceSignature = new Uint8Array(0);
|
|
13398
13607
|
message.key = "";
|
|
13399
13608
|
message.value = new Uint8Array(0);
|
|
13400
13609
|
if (value !== undefined)
|
|
@@ -13409,7 +13618,7 @@ class ResourceKVAPI_Set_Request$Type extends MessageType<ResourceKVAPI_Set_Reque
|
|
|
13409
13618
|
case /* uint64 resource_id */ 1:
|
|
13410
13619
|
message.resourceId = reader.uint64().toBigInt();
|
|
13411
13620
|
break;
|
|
13412
|
-
case /*
|
|
13621
|
+
case /* bytes resource_signature */ 4:
|
|
13413
13622
|
message.resourceSignature = reader.bytes();
|
|
13414
13623
|
break;
|
|
13415
13624
|
case /* string key */ 2:
|
|
@@ -13439,8 +13648,8 @@ class ResourceKVAPI_Set_Request$Type extends MessageType<ResourceKVAPI_Set_Reque
|
|
|
13439
13648
|
/* bytes value = 3; */
|
|
13440
13649
|
if (message.value.length)
|
|
13441
13650
|
writer.tag(3, WireType.LengthDelimited).bytes(message.value);
|
|
13442
|
-
/*
|
|
13443
|
-
if (message.resourceSignature
|
|
13651
|
+
/* bytes resource_signature = 4; */
|
|
13652
|
+
if (message.resourceSignature.length)
|
|
13444
13653
|
writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
13445
13654
|
let u = options.writeUnknownFields;
|
|
13446
13655
|
if (u !== false)
|
|
@@ -13533,13 +13742,14 @@ class ResourceKVAPI_Get_Request$Type extends MessageType<ResourceKVAPI_Get_Reque
|
|
|
13533
13742
|
constructor() {
|
|
13534
13743
|
super("MiLaboratories.PL.API.ResourceKVAPI.Get.Request", [
|
|
13535
13744
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
13536
|
-
{ no: 3, name: "resource_signature", kind: "scalar",
|
|
13745
|
+
{ no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
13537
13746
|
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
13538
13747
|
]);
|
|
13539
13748
|
}
|
|
13540
13749
|
create(value?: PartialMessage<ResourceKVAPI_Get_Request>): ResourceKVAPI_Get_Request {
|
|
13541
13750
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
13542
13751
|
message.resourceId = 0n;
|
|
13752
|
+
message.resourceSignature = new Uint8Array(0);
|
|
13543
13753
|
message.key = "";
|
|
13544
13754
|
if (value !== undefined)
|
|
13545
13755
|
reflectionMergePartial<ResourceKVAPI_Get_Request>(this, message, value);
|
|
@@ -13553,7 +13763,7 @@ class ResourceKVAPI_Get_Request$Type extends MessageType<ResourceKVAPI_Get_Reque
|
|
|
13553
13763
|
case /* uint64 resource_id */ 1:
|
|
13554
13764
|
message.resourceId = reader.uint64().toBigInt();
|
|
13555
13765
|
break;
|
|
13556
|
-
case /*
|
|
13766
|
+
case /* bytes resource_signature */ 3:
|
|
13557
13767
|
message.resourceSignature = reader.bytes();
|
|
13558
13768
|
break;
|
|
13559
13769
|
case /* string key */ 2:
|
|
@@ -13577,8 +13787,8 @@ class ResourceKVAPI_Get_Request$Type extends MessageType<ResourceKVAPI_Get_Reque
|
|
|
13577
13787
|
/* string key = 2; */
|
|
13578
13788
|
if (message.key !== "")
|
|
13579
13789
|
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
13580
|
-
/*
|
|
13581
|
-
if (message.resourceSignature
|
|
13790
|
+
/* bytes resource_signature = 3; */
|
|
13791
|
+
if (message.resourceSignature.length)
|
|
13582
13792
|
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
13583
13793
|
let u = options.writeUnknownFields;
|
|
13584
13794
|
if (u !== false)
|
|
@@ -13680,13 +13890,14 @@ class ResourceKVAPI_GetIfExists_Request$Type extends MessageType<ResourceKVAPI_G
|
|
|
13680
13890
|
constructor() {
|
|
13681
13891
|
super("MiLaboratories.PL.API.ResourceKVAPI.GetIfExists.Request", [
|
|
13682
13892
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
13683
|
-
{ no: 3, name: "resource_signature", kind: "scalar",
|
|
13893
|
+
{ no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
13684
13894
|
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
13685
13895
|
]);
|
|
13686
13896
|
}
|
|
13687
13897
|
create(value?: PartialMessage<ResourceKVAPI_GetIfExists_Request>): ResourceKVAPI_GetIfExists_Request {
|
|
13688
13898
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
13689
13899
|
message.resourceId = 0n;
|
|
13900
|
+
message.resourceSignature = new Uint8Array(0);
|
|
13690
13901
|
message.key = "";
|
|
13691
13902
|
if (value !== undefined)
|
|
13692
13903
|
reflectionMergePartial<ResourceKVAPI_GetIfExists_Request>(this, message, value);
|
|
@@ -13700,7 +13911,7 @@ class ResourceKVAPI_GetIfExists_Request$Type extends MessageType<ResourceKVAPI_G
|
|
|
13700
13911
|
case /* uint64 resource_id */ 1:
|
|
13701
13912
|
message.resourceId = reader.uint64().toBigInt();
|
|
13702
13913
|
break;
|
|
13703
|
-
case /*
|
|
13914
|
+
case /* bytes resource_signature */ 3:
|
|
13704
13915
|
message.resourceSignature = reader.bytes();
|
|
13705
13916
|
break;
|
|
13706
13917
|
case /* string key */ 2:
|
|
@@ -13724,8 +13935,8 @@ class ResourceKVAPI_GetIfExists_Request$Type extends MessageType<ResourceKVAPI_G
|
|
|
13724
13935
|
/* string key = 2; */
|
|
13725
13936
|
if (message.key !== "")
|
|
13726
13937
|
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
13727
|
-
/*
|
|
13728
|
-
if (message.resourceSignature
|
|
13938
|
+
/* bytes resource_signature = 3; */
|
|
13939
|
+
if (message.resourceSignature.length)
|
|
13729
13940
|
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
13730
13941
|
let u = options.writeUnknownFields;
|
|
13731
13942
|
if (u !== false)
|
|
@@ -13835,13 +14046,14 @@ class ResourceKVAPI_Delete_Request$Type extends MessageType<ResourceKVAPI_Delete
|
|
|
13835
14046
|
constructor() {
|
|
13836
14047
|
super("MiLaboratories.PL.API.ResourceKVAPI.Delete.Request", [
|
|
13837
14048
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
13838
|
-
{ no: 3, name: "resource_signature", kind: "scalar",
|
|
14049
|
+
{ no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
13839
14050
|
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
13840
14051
|
]);
|
|
13841
14052
|
}
|
|
13842
14053
|
create(value?: PartialMessage<ResourceKVAPI_Delete_Request>): ResourceKVAPI_Delete_Request {
|
|
13843
14054
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
13844
14055
|
message.resourceId = 0n;
|
|
14056
|
+
message.resourceSignature = new Uint8Array(0);
|
|
13845
14057
|
message.key = "";
|
|
13846
14058
|
if (value !== undefined)
|
|
13847
14059
|
reflectionMergePartial<ResourceKVAPI_Delete_Request>(this, message, value);
|
|
@@ -13855,7 +14067,7 @@ class ResourceKVAPI_Delete_Request$Type extends MessageType<ResourceKVAPI_Delete
|
|
|
13855
14067
|
case /* uint64 resource_id */ 1:
|
|
13856
14068
|
message.resourceId = reader.uint64().toBigInt();
|
|
13857
14069
|
break;
|
|
13858
|
-
case /*
|
|
14070
|
+
case /* bytes resource_signature */ 3:
|
|
13859
14071
|
message.resourceSignature = reader.bytes();
|
|
13860
14072
|
break;
|
|
13861
14073
|
case /* string key */ 2:
|
|
@@ -13879,8 +14091,8 @@ class ResourceKVAPI_Delete_Request$Type extends MessageType<ResourceKVAPI_Delete
|
|
|
13879
14091
|
/* string key = 2; */
|
|
13880
14092
|
if (message.key !== "")
|
|
13881
14093
|
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
13882
|
-
/*
|
|
13883
|
-
if (message.resourceSignature
|
|
14094
|
+
/* bytes resource_signature = 3; */
|
|
14095
|
+
if (message.resourceSignature.length)
|
|
13884
14096
|
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
13885
14097
|
let u = options.writeUnknownFields;
|
|
13886
14098
|
if (u !== false)
|
|
@@ -13973,7 +14185,7 @@ class ResourceKVAPI_SetFlag_Request$Type extends MessageType<ResourceKVAPI_SetFl
|
|
|
13973
14185
|
constructor() {
|
|
13974
14186
|
super("MiLaboratories.PL.API.ResourceKVAPI.SetFlag.Request", [
|
|
13975
14187
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
13976
|
-
{ no: 4, name: "resource_signature", kind: "scalar",
|
|
14188
|
+
{ no: 4, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
13977
14189
|
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
13978
14190
|
{ no: 3, name: "value", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
13979
14191
|
]);
|
|
@@ -13981,6 +14193,7 @@ class ResourceKVAPI_SetFlag_Request$Type extends MessageType<ResourceKVAPI_SetFl
|
|
|
13981
14193
|
create(value?: PartialMessage<ResourceKVAPI_SetFlag_Request>): ResourceKVAPI_SetFlag_Request {
|
|
13982
14194
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
13983
14195
|
message.resourceId = 0n;
|
|
14196
|
+
message.resourceSignature = new Uint8Array(0);
|
|
13984
14197
|
message.key = "";
|
|
13985
14198
|
message.value = false;
|
|
13986
14199
|
if (value !== undefined)
|
|
@@ -13995,7 +14208,7 @@ class ResourceKVAPI_SetFlag_Request$Type extends MessageType<ResourceKVAPI_SetFl
|
|
|
13995
14208
|
case /* uint64 resource_id */ 1:
|
|
13996
14209
|
message.resourceId = reader.uint64().toBigInt();
|
|
13997
14210
|
break;
|
|
13998
|
-
case /*
|
|
14211
|
+
case /* bytes resource_signature */ 4:
|
|
13999
14212
|
message.resourceSignature = reader.bytes();
|
|
14000
14213
|
break;
|
|
14001
14214
|
case /* string key */ 2:
|
|
@@ -14025,8 +14238,8 @@ class ResourceKVAPI_SetFlag_Request$Type extends MessageType<ResourceKVAPI_SetFl
|
|
|
14025
14238
|
/* bool value = 3; */
|
|
14026
14239
|
if (message.value !== false)
|
|
14027
14240
|
writer.tag(3, WireType.Varint).bool(message.value);
|
|
14028
|
-
/*
|
|
14029
|
-
if (message.resourceSignature
|
|
14241
|
+
/* bytes resource_signature = 4; */
|
|
14242
|
+
if (message.resourceSignature.length)
|
|
14030
14243
|
writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
14031
14244
|
let u = options.writeUnknownFields;
|
|
14032
14245
|
if (u !== false)
|
|
@@ -14119,13 +14332,14 @@ class ResourceKVAPI_GetFlag_Request$Type extends MessageType<ResourceKVAPI_GetFl
|
|
|
14119
14332
|
constructor() {
|
|
14120
14333
|
super("MiLaboratories.PL.API.ResourceKVAPI.GetFlag.Request", [
|
|
14121
14334
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
14122
|
-
{ no: 3, name: "resource_signature", kind: "scalar",
|
|
14335
|
+
{ no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
14123
14336
|
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
14124
14337
|
]);
|
|
14125
14338
|
}
|
|
14126
14339
|
create(value?: PartialMessage<ResourceKVAPI_GetFlag_Request>): ResourceKVAPI_GetFlag_Request {
|
|
14127
14340
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
14128
14341
|
message.resourceId = 0n;
|
|
14342
|
+
message.resourceSignature = new Uint8Array(0);
|
|
14129
14343
|
message.key = "";
|
|
14130
14344
|
if (value !== undefined)
|
|
14131
14345
|
reflectionMergePartial<ResourceKVAPI_GetFlag_Request>(this, message, value);
|
|
@@ -14139,7 +14353,7 @@ class ResourceKVAPI_GetFlag_Request$Type extends MessageType<ResourceKVAPI_GetFl
|
|
|
14139
14353
|
case /* uint64 resource_id */ 1:
|
|
14140
14354
|
message.resourceId = reader.uint64().toBigInt();
|
|
14141
14355
|
break;
|
|
14142
|
-
case /*
|
|
14356
|
+
case /* bytes resource_signature */ 3:
|
|
14143
14357
|
message.resourceSignature = reader.bytes();
|
|
14144
14358
|
break;
|
|
14145
14359
|
case /* string key */ 2:
|
|
@@ -14163,8 +14377,8 @@ class ResourceKVAPI_GetFlag_Request$Type extends MessageType<ResourceKVAPI_GetFl
|
|
|
14163
14377
|
/* string key = 2; */
|
|
14164
14378
|
if (message.key !== "")
|
|
14165
14379
|
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
14166
|
-
/*
|
|
14167
|
-
if (message.resourceSignature
|
|
14380
|
+
/* bytes resource_signature = 3; */
|
|
14381
|
+
if (message.resourceSignature.length)
|
|
14168
14382
|
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
14169
14383
|
let u = options.writeUnknownFields;
|
|
14170
14384
|
if (u !== false)
|
|
@@ -15681,7 +15895,7 @@ class LocksAPI_Lease_Create_Request$Type extends MessageType<LocksAPI_Lease_Crea
|
|
|
15681
15895
|
constructor() {
|
|
15682
15896
|
super("MiLaboratories.PL.API.LocksAPI.Lease.Create.Request", [
|
|
15683
15897
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
15684
|
-
{ no: 5, name: "resource_signature", kind: "scalar",
|
|
15898
|
+
{ no: 5, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
15685
15899
|
{ no: 3, name: "timeout", kind: "message", T: () => Duration },
|
|
15686
15900
|
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
15687
15901
|
]);
|
|
@@ -15689,6 +15903,7 @@ class LocksAPI_Lease_Create_Request$Type extends MessageType<LocksAPI_Lease_Crea
|
|
|
15689
15903
|
create(value?: PartialMessage<LocksAPI_Lease_Create_Request>): LocksAPI_Lease_Create_Request {
|
|
15690
15904
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
15691
15905
|
message.resourceId = 0n;
|
|
15906
|
+
message.resourceSignature = new Uint8Array(0);
|
|
15692
15907
|
message.name = "";
|
|
15693
15908
|
if (value !== undefined)
|
|
15694
15909
|
reflectionMergePartial<LocksAPI_Lease_Create_Request>(this, message, value);
|
|
@@ -15702,7 +15917,7 @@ class LocksAPI_Lease_Create_Request$Type extends MessageType<LocksAPI_Lease_Crea
|
|
|
15702
15917
|
case /* uint64 resource_id */ 1:
|
|
15703
15918
|
message.resourceId = reader.uint64().toBigInt();
|
|
15704
15919
|
break;
|
|
15705
|
-
case /*
|
|
15920
|
+
case /* bytes resource_signature */ 5:
|
|
15706
15921
|
message.resourceSignature = reader.bytes();
|
|
15707
15922
|
break;
|
|
15708
15923
|
case /* google.protobuf.Duration timeout */ 3:
|
|
@@ -15732,8 +15947,8 @@ class LocksAPI_Lease_Create_Request$Type extends MessageType<LocksAPI_Lease_Crea
|
|
|
15732
15947
|
/* string name = 4; */
|
|
15733
15948
|
if (message.name !== "")
|
|
15734
15949
|
writer.tag(4, WireType.LengthDelimited).string(message.name);
|
|
15735
|
-
/*
|
|
15736
|
-
if (message.resourceSignature
|
|
15950
|
+
/* bytes resource_signature = 5; */
|
|
15951
|
+
if (message.resourceSignature.length)
|
|
15737
15952
|
writer.tag(5, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
15738
15953
|
let u = options.writeUnknownFields;
|
|
15739
15954
|
if (u !== false)
|
|
@@ -15835,7 +16050,7 @@ class LocksAPI_Lease_Update_Request$Type extends MessageType<LocksAPI_Lease_Upda
|
|
|
15835
16050
|
constructor() {
|
|
15836
16051
|
super("MiLaboratories.PL.API.LocksAPI.Lease.Update.Request", [
|
|
15837
16052
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
15838
|
-
{ no: 5, name: "resource_signature", kind: "scalar",
|
|
16053
|
+
{ no: 5, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
15839
16054
|
{ no: 2, name: "lease_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
15840
16055
|
{ no: 3, name: "timeout", kind: "message", T: () => Duration },
|
|
15841
16056
|
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
@@ -15844,6 +16059,7 @@ class LocksAPI_Lease_Update_Request$Type extends MessageType<LocksAPI_Lease_Upda
|
|
|
15844
16059
|
create(value?: PartialMessage<LocksAPI_Lease_Update_Request>): LocksAPI_Lease_Update_Request {
|
|
15845
16060
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
15846
16061
|
message.resourceId = 0n;
|
|
16062
|
+
message.resourceSignature = new Uint8Array(0);
|
|
15847
16063
|
message.leaseId = new Uint8Array(0);
|
|
15848
16064
|
message.name = "";
|
|
15849
16065
|
if (value !== undefined)
|
|
@@ -15858,7 +16074,7 @@ class LocksAPI_Lease_Update_Request$Type extends MessageType<LocksAPI_Lease_Upda
|
|
|
15858
16074
|
case /* uint64 resource_id */ 1:
|
|
15859
16075
|
message.resourceId = reader.uint64().toBigInt();
|
|
15860
16076
|
break;
|
|
15861
|
-
case /*
|
|
16077
|
+
case /* bytes resource_signature */ 5:
|
|
15862
16078
|
message.resourceSignature = reader.bytes();
|
|
15863
16079
|
break;
|
|
15864
16080
|
case /* bytes lease_id */ 2:
|
|
@@ -15894,8 +16110,8 @@ class LocksAPI_Lease_Update_Request$Type extends MessageType<LocksAPI_Lease_Upda
|
|
|
15894
16110
|
/* string name = 4; */
|
|
15895
16111
|
if (message.name !== "")
|
|
15896
16112
|
writer.tag(4, WireType.LengthDelimited).string(message.name);
|
|
15897
|
-
/*
|
|
15898
|
-
if (message.resourceSignature
|
|
16113
|
+
/* bytes resource_signature = 5; */
|
|
16114
|
+
if (message.resourceSignature.length)
|
|
15899
16115
|
writer.tag(5, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
15900
16116
|
let u = options.writeUnknownFields;
|
|
15901
16117
|
if (u !== false)
|
|
@@ -15988,13 +16204,14 @@ class LocksAPI_Lease_Release_Request$Type extends MessageType<LocksAPI_Lease_Rel
|
|
|
15988
16204
|
constructor() {
|
|
15989
16205
|
super("MiLaboratories.PL.API.LocksAPI.Lease.Release.Request", [
|
|
15990
16206
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
15991
|
-
{ no: 3, name: "resource_signature", kind: "scalar",
|
|
16207
|
+
{ no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
15992
16208
|
{ no: 2, name: "lease_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
15993
16209
|
]);
|
|
15994
16210
|
}
|
|
15995
16211
|
create(value?: PartialMessage<LocksAPI_Lease_Release_Request>): LocksAPI_Lease_Release_Request {
|
|
15996
16212
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
15997
16213
|
message.resourceId = 0n;
|
|
16214
|
+
message.resourceSignature = new Uint8Array(0);
|
|
15998
16215
|
message.leaseId = new Uint8Array(0);
|
|
15999
16216
|
if (value !== undefined)
|
|
16000
16217
|
reflectionMergePartial<LocksAPI_Lease_Release_Request>(this, message, value);
|
|
@@ -16008,7 +16225,7 @@ class LocksAPI_Lease_Release_Request$Type extends MessageType<LocksAPI_Lease_Rel
|
|
|
16008
16225
|
case /* uint64 resource_id */ 1:
|
|
16009
16226
|
message.resourceId = reader.uint64().toBigInt();
|
|
16010
16227
|
break;
|
|
16011
|
-
case /*
|
|
16228
|
+
case /* bytes resource_signature */ 3:
|
|
16012
16229
|
message.resourceSignature = reader.bytes();
|
|
16013
16230
|
break;
|
|
16014
16231
|
case /* bytes lease_id */ 2:
|
|
@@ -16032,8 +16249,8 @@ class LocksAPI_Lease_Release_Request$Type extends MessageType<LocksAPI_Lease_Rel
|
|
|
16032
16249
|
/* bytes lease_id = 2; */
|
|
16033
16250
|
if (message.leaseId.length)
|
|
16034
16251
|
writer.tag(2, WireType.LengthDelimited).bytes(message.leaseId);
|
|
16035
|
-
/*
|
|
16036
|
-
if (message.resourceSignature
|
|
16252
|
+
/* bytes resource_signature = 3; */
|
|
16253
|
+
if (message.resourceSignature.length)
|
|
16037
16254
|
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
16038
16255
|
let u = options.writeUnknownFields;
|
|
16039
16256
|
if (u !== false)
|
|
@@ -16366,7 +16583,7 @@ class AuthAPI_GetJWTToken_Request$Type extends MessageType<AuthAPI_GetJWTToken_R
|
|
|
16366
16583
|
constructor() {
|
|
16367
16584
|
super("MiLaboratories.PL.API.AuthAPI.GetJWTToken.Request", [
|
|
16368
16585
|
{ no: 1, name: "expiration", kind: "message", T: () => Duration },
|
|
16369
|
-
{ no: 2, name: "requested_role", kind: "enum", opt: true, T: () => ["MiLaboratories.PL.API.AuthAPI.
|
|
16586
|
+
{ no: 2, name: "requested_role", kind: "enum", opt: true, T: () => ["MiLaboratories.PL.API.AuthAPI.Role", AuthAPI_Role, "ROLE_"] }
|
|
16370
16587
|
]);
|
|
16371
16588
|
}
|
|
16372
16589
|
create(value?: PartialMessage<AuthAPI_GetJWTToken_Request>): AuthAPI_GetJWTToken_Request {
|
|
@@ -16383,7 +16600,7 @@ class AuthAPI_GetJWTToken_Request$Type extends MessageType<AuthAPI_GetJWTToken_R
|
|
|
16383
16600
|
case /* google.protobuf.Duration expiration */ 1:
|
|
16384
16601
|
message.expiration = Duration.internalBinaryRead(reader, reader.uint32(), options, message.expiration);
|
|
16385
16602
|
break;
|
|
16386
|
-
case /* optional MiLaboratories.PL.API.AuthAPI.
|
|
16603
|
+
case /* optional MiLaboratories.PL.API.AuthAPI.Role requested_role */ 2:
|
|
16387
16604
|
message.requestedRole = reader.int32();
|
|
16388
16605
|
break;
|
|
16389
16606
|
default:
|
|
@@ -16401,7 +16618,7 @@ class AuthAPI_GetJWTToken_Request$Type extends MessageType<AuthAPI_GetJWTToken_R
|
|
|
16401
16618
|
/* google.protobuf.Duration expiration = 1; */
|
|
16402
16619
|
if (message.expiration)
|
|
16403
16620
|
Duration.internalBinaryWrite(message.expiration, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
16404
|
-
/* optional MiLaboratories.PL.API.AuthAPI.
|
|
16621
|
+
/* optional MiLaboratories.PL.API.AuthAPI.Role requested_role = 2; */
|
|
16405
16622
|
if (message.requestedRole !== undefined)
|
|
16406
16623
|
writer.tag(2, WireType.Varint).int32(message.requestedRole);
|
|
16407
16624
|
let u = options.writeUnknownFields;
|
|
@@ -16419,13 +16636,15 @@ class AuthAPI_GetJWTToken_Response$Type extends MessageType<AuthAPI_GetJWTToken_
|
|
|
16419
16636
|
constructor() {
|
|
16420
16637
|
super("MiLaboratories.PL.API.AuthAPI.GetJWTToken.Response", [
|
|
16421
16638
|
{ no: 1, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
16422
|
-
{ no: 2, name: "session_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
16639
|
+
{ no: 2, name: "session_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
16640
|
+
{ no: 3, name: "role", kind: "enum", T: () => ["MiLaboratories.PL.API.AuthAPI.Role", AuthAPI_Role, "ROLE_"] }
|
|
16423
16641
|
]);
|
|
16424
16642
|
}
|
|
16425
16643
|
create(value?: PartialMessage<AuthAPI_GetJWTToken_Response>): AuthAPI_GetJWTToken_Response {
|
|
16426
16644
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
16427
16645
|
message.token = "";
|
|
16428
16646
|
message.sessionId = new Uint8Array(0);
|
|
16647
|
+
message.role = 0;
|
|
16429
16648
|
if (value !== undefined)
|
|
16430
16649
|
reflectionMergePartial<AuthAPI_GetJWTToken_Response>(this, message, value);
|
|
16431
16650
|
return message;
|
|
@@ -16441,6 +16660,9 @@ class AuthAPI_GetJWTToken_Response$Type extends MessageType<AuthAPI_GetJWTToken_
|
|
|
16441
16660
|
case /* bytes session_id */ 2:
|
|
16442
16661
|
message.sessionId = reader.bytes();
|
|
16443
16662
|
break;
|
|
16663
|
+
case /* MiLaboratories.PL.API.AuthAPI.Role role */ 3:
|
|
16664
|
+
message.role = reader.int32();
|
|
16665
|
+
break;
|
|
16444
16666
|
default:
|
|
16445
16667
|
let u = options.readUnknownField;
|
|
16446
16668
|
if (u === "throw")
|
|
@@ -16459,6 +16681,9 @@ class AuthAPI_GetJWTToken_Response$Type extends MessageType<AuthAPI_GetJWTToken_
|
|
|
16459
16681
|
/* bytes session_id = 2; */
|
|
16460
16682
|
if (message.sessionId.length)
|
|
16461
16683
|
writer.tag(2, WireType.LengthDelimited).bytes(message.sessionId);
|
|
16684
|
+
/* MiLaboratories.PL.API.AuthAPI.Role role = 3; */
|
|
16685
|
+
if (message.role !== 0)
|
|
16686
|
+
writer.tag(3, WireType.Varint).int32(message.role);
|
|
16462
16687
|
let u = options.writeUnknownFields;
|
|
16463
16688
|
if (u !== false)
|
|
16464
16689
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -16470,6 +16695,137 @@ class AuthAPI_GetJWTToken_Response$Type extends MessageType<AuthAPI_GetJWTToken_
|
|
|
16470
16695
|
*/
|
|
16471
16696
|
export const AuthAPI_GetJWTToken_Response = new AuthAPI_GetJWTToken_Response$Type();
|
|
16472
16697
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
16698
|
+
class AuthAPI_GetSessionInfo$Type extends MessageType<AuthAPI_GetSessionInfo> {
|
|
16699
|
+
constructor() {
|
|
16700
|
+
super("MiLaboratories.PL.API.AuthAPI.GetSessionInfo", []);
|
|
16701
|
+
}
|
|
16702
|
+
create(value?: PartialMessage<AuthAPI_GetSessionInfo>): AuthAPI_GetSessionInfo {
|
|
16703
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
16704
|
+
if (value !== undefined)
|
|
16705
|
+
reflectionMergePartial<AuthAPI_GetSessionInfo>(this, message, value);
|
|
16706
|
+
return message;
|
|
16707
|
+
}
|
|
16708
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_GetSessionInfo): AuthAPI_GetSessionInfo {
|
|
16709
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
16710
|
+
while (reader.pos < end) {
|
|
16711
|
+
let [fieldNo, wireType] = reader.tag();
|
|
16712
|
+
switch (fieldNo) {
|
|
16713
|
+
default:
|
|
16714
|
+
let u = options.readUnknownField;
|
|
16715
|
+
if (u === "throw")
|
|
16716
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
16717
|
+
let d = reader.skip(wireType);
|
|
16718
|
+
if (u !== false)
|
|
16719
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
16720
|
+
}
|
|
16721
|
+
}
|
|
16722
|
+
return message;
|
|
16723
|
+
}
|
|
16724
|
+
internalBinaryWrite(message: AuthAPI_GetSessionInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
16725
|
+
let u = options.writeUnknownFields;
|
|
16726
|
+
if (u !== false)
|
|
16727
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
16728
|
+
return writer;
|
|
16729
|
+
}
|
|
16730
|
+
}
|
|
16731
|
+
/**
|
|
16732
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetSessionInfo
|
|
16733
|
+
*/
|
|
16734
|
+
export const AuthAPI_GetSessionInfo = new AuthAPI_GetSessionInfo$Type();
|
|
16735
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
16736
|
+
class AuthAPI_GetSessionInfo_Request$Type extends MessageType<AuthAPI_GetSessionInfo_Request> {
|
|
16737
|
+
constructor() {
|
|
16738
|
+
super("MiLaboratories.PL.API.AuthAPI.GetSessionInfo.Request", []);
|
|
16739
|
+
}
|
|
16740
|
+
create(value?: PartialMessage<AuthAPI_GetSessionInfo_Request>): AuthAPI_GetSessionInfo_Request {
|
|
16741
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
16742
|
+
if (value !== undefined)
|
|
16743
|
+
reflectionMergePartial<AuthAPI_GetSessionInfo_Request>(this, message, value);
|
|
16744
|
+
return message;
|
|
16745
|
+
}
|
|
16746
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_GetSessionInfo_Request): AuthAPI_GetSessionInfo_Request {
|
|
16747
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
16748
|
+
while (reader.pos < end) {
|
|
16749
|
+
let [fieldNo, wireType] = reader.tag();
|
|
16750
|
+
switch (fieldNo) {
|
|
16751
|
+
default:
|
|
16752
|
+
let u = options.readUnknownField;
|
|
16753
|
+
if (u === "throw")
|
|
16754
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
16755
|
+
let d = reader.skip(wireType);
|
|
16756
|
+
if (u !== false)
|
|
16757
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
16758
|
+
}
|
|
16759
|
+
}
|
|
16760
|
+
return message;
|
|
16761
|
+
}
|
|
16762
|
+
internalBinaryWrite(message: AuthAPI_GetSessionInfo_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
16763
|
+
let u = options.writeUnknownFields;
|
|
16764
|
+
if (u !== false)
|
|
16765
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
16766
|
+
return writer;
|
|
16767
|
+
}
|
|
16768
|
+
}
|
|
16769
|
+
/**
|
|
16770
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetSessionInfo.Request
|
|
16771
|
+
*/
|
|
16772
|
+
export const AuthAPI_GetSessionInfo_Request = new AuthAPI_GetSessionInfo_Request$Type();
|
|
16773
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
16774
|
+
class AuthAPI_GetSessionInfo_Response$Type extends MessageType<AuthAPI_GetSessionInfo_Response> {
|
|
16775
|
+
constructor() {
|
|
16776
|
+
super("MiLaboratories.PL.API.AuthAPI.GetSessionInfo.Response", [
|
|
16777
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
16778
|
+
{ no: 2, name: "role", kind: "enum", T: () => ["MiLaboratories.PL.API.AuthAPI.Role", AuthAPI_Role, "ROLE_"] }
|
|
16779
|
+
]);
|
|
16780
|
+
}
|
|
16781
|
+
create(value?: PartialMessage<AuthAPI_GetSessionInfo_Response>): AuthAPI_GetSessionInfo_Response {
|
|
16782
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
16783
|
+
message.sessionId = new Uint8Array(0);
|
|
16784
|
+
message.role = 0;
|
|
16785
|
+
if (value !== undefined)
|
|
16786
|
+
reflectionMergePartial<AuthAPI_GetSessionInfo_Response>(this, message, value);
|
|
16787
|
+
return message;
|
|
16788
|
+
}
|
|
16789
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_GetSessionInfo_Response): AuthAPI_GetSessionInfo_Response {
|
|
16790
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
16791
|
+
while (reader.pos < end) {
|
|
16792
|
+
let [fieldNo, wireType] = reader.tag();
|
|
16793
|
+
switch (fieldNo) {
|
|
16794
|
+
case /* bytes session_id */ 1:
|
|
16795
|
+
message.sessionId = reader.bytes();
|
|
16796
|
+
break;
|
|
16797
|
+
case /* MiLaboratories.PL.API.AuthAPI.Role role */ 2:
|
|
16798
|
+
message.role = reader.int32();
|
|
16799
|
+
break;
|
|
16800
|
+
default:
|
|
16801
|
+
let u = options.readUnknownField;
|
|
16802
|
+
if (u === "throw")
|
|
16803
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
16804
|
+
let d = reader.skip(wireType);
|
|
16805
|
+
if (u !== false)
|
|
16806
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
16807
|
+
}
|
|
16808
|
+
}
|
|
16809
|
+
return message;
|
|
16810
|
+
}
|
|
16811
|
+
internalBinaryWrite(message: AuthAPI_GetSessionInfo_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
16812
|
+
/* bytes session_id = 1; */
|
|
16813
|
+
if (message.sessionId.length)
|
|
16814
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.sessionId);
|
|
16815
|
+
/* MiLaboratories.PL.API.AuthAPI.Role role = 2; */
|
|
16816
|
+
if (message.role !== 0)
|
|
16817
|
+
writer.tag(2, WireType.Varint).int32(message.role);
|
|
16818
|
+
let u = options.writeUnknownFields;
|
|
16819
|
+
if (u !== false)
|
|
16820
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
16821
|
+
return writer;
|
|
16822
|
+
}
|
|
16823
|
+
}
|
|
16824
|
+
/**
|
|
16825
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetSessionInfo.Response
|
|
16826
|
+
*/
|
|
16827
|
+
export const AuthAPI_GetSessionInfo_Response = new AuthAPI_GetSessionInfo_Response$Type();
|
|
16828
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
16473
16829
|
class AuthAPI_GrantAccess$Type extends MessageType<AuthAPI_GrantAccess> {
|
|
16474
16830
|
constructor() {
|
|
16475
16831
|
super("MiLaboratories.PL.API.AuthAPI.GrantAccess", []);
|
|
@@ -16512,15 +16868,18 @@ class AuthAPI_GrantAccess_Request$Type extends MessageType<AuthAPI_GrantAccess_R
|
|
|
16512
16868
|
constructor() {
|
|
16513
16869
|
super("MiLaboratories.PL.API.AuthAPI.GrantAccess.Request", [
|
|
16514
16870
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
16515
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
16871
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
16516
16872
|
{ no: 3, name: "target_user", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
16517
|
-
{ no: 4, name: "permissions", kind: "message", T: () => AuthAPI_Grant_Permissions }
|
|
16873
|
+
{ no: 4, name: "permissions", kind: "message", T: () => AuthAPI_Grant_Permissions },
|
|
16874
|
+
{ no: 5, name: "grant_type", kind: "enum", T: () => ["MiLaboratories.PL.API.AuthAPI.GrantAccess.GrantType", AuthAPI_GrantAccess_GrantType] }
|
|
16518
16875
|
]);
|
|
16519
16876
|
}
|
|
16520
16877
|
create(value?: PartialMessage<AuthAPI_GrantAccess_Request>): AuthAPI_GrantAccess_Request {
|
|
16521
16878
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
16522
16879
|
message.resourceId = 0n;
|
|
16880
|
+
message.resourceSignature = new Uint8Array(0);
|
|
16523
16881
|
message.targetUser = "";
|
|
16882
|
+
message.grantType = 0;
|
|
16524
16883
|
if (value !== undefined)
|
|
16525
16884
|
reflectionMergePartial<AuthAPI_GrantAccess_Request>(this, message, value);
|
|
16526
16885
|
return message;
|
|
@@ -16533,7 +16892,7 @@ class AuthAPI_GrantAccess_Request$Type extends MessageType<AuthAPI_GrantAccess_R
|
|
|
16533
16892
|
case /* uint64 resource_id */ 1:
|
|
16534
16893
|
message.resourceId = reader.uint64().toBigInt();
|
|
16535
16894
|
break;
|
|
16536
|
-
case /*
|
|
16895
|
+
case /* bytes resource_signature */ 2:
|
|
16537
16896
|
message.resourceSignature = reader.bytes();
|
|
16538
16897
|
break;
|
|
16539
16898
|
case /* string target_user */ 3:
|
|
@@ -16542,6 +16901,9 @@ class AuthAPI_GrantAccess_Request$Type extends MessageType<AuthAPI_GrantAccess_R
|
|
|
16542
16901
|
case /* MiLaboratories.PL.API.AuthAPI.Grant.Permissions permissions */ 4:
|
|
16543
16902
|
message.permissions = AuthAPI_Grant_Permissions.internalBinaryRead(reader, reader.uint32(), options, message.permissions);
|
|
16544
16903
|
break;
|
|
16904
|
+
case /* MiLaboratories.PL.API.AuthAPI.GrantAccess.GrantType grant_type */ 5:
|
|
16905
|
+
message.grantType = reader.int32();
|
|
16906
|
+
break;
|
|
16545
16907
|
default:
|
|
16546
16908
|
let u = options.readUnknownField;
|
|
16547
16909
|
if (u === "throw")
|
|
@@ -16557,8 +16919,8 @@ class AuthAPI_GrantAccess_Request$Type extends MessageType<AuthAPI_GrantAccess_R
|
|
|
16557
16919
|
/* uint64 resource_id = 1; */
|
|
16558
16920
|
if (message.resourceId !== 0n)
|
|
16559
16921
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
16560
|
-
/*
|
|
16561
|
-
if (message.resourceSignature
|
|
16922
|
+
/* bytes resource_signature = 2; */
|
|
16923
|
+
if (message.resourceSignature.length)
|
|
16562
16924
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
16563
16925
|
/* string target_user = 3; */
|
|
16564
16926
|
if (message.targetUser !== "")
|
|
@@ -16566,6 +16928,9 @@ class AuthAPI_GrantAccess_Request$Type extends MessageType<AuthAPI_GrantAccess_R
|
|
|
16566
16928
|
/* MiLaboratories.PL.API.AuthAPI.Grant.Permissions permissions = 4; */
|
|
16567
16929
|
if (message.permissions)
|
|
16568
16930
|
AuthAPI_Grant_Permissions.internalBinaryWrite(message.permissions, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
16931
|
+
/* MiLaboratories.PL.API.AuthAPI.GrantAccess.GrantType grant_type = 5; */
|
|
16932
|
+
if (message.grantType !== 0)
|
|
16933
|
+
writer.tag(5, WireType.Varint).int32(message.grantType);
|
|
16569
16934
|
let u = options.writeUnknownFields;
|
|
16570
16935
|
if (u !== false)
|
|
16571
16936
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -16615,17 +16980,17 @@ class AuthAPI_GrantAccess_Response$Type extends MessageType<AuthAPI_GrantAccess_
|
|
|
16615
16980
|
*/
|
|
16616
16981
|
export const AuthAPI_GrantAccess_Response = new AuthAPI_GrantAccess_Response$Type();
|
|
16617
16982
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
16618
|
-
class
|
|
16983
|
+
class AuthAPI_RevokeAccess$Type extends MessageType<AuthAPI_RevokeAccess> {
|
|
16619
16984
|
constructor() {
|
|
16620
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
16985
|
+
super("MiLaboratories.PL.API.AuthAPI.RevokeAccess", []);
|
|
16621
16986
|
}
|
|
16622
|
-
create(value?: PartialMessage<
|
|
16987
|
+
create(value?: PartialMessage<AuthAPI_RevokeAccess>): AuthAPI_RevokeAccess {
|
|
16623
16988
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
16624
16989
|
if (value !== undefined)
|
|
16625
|
-
reflectionMergePartial<
|
|
16990
|
+
reflectionMergePartial<AuthAPI_RevokeAccess>(this, message, value);
|
|
16626
16991
|
return message;
|
|
16627
16992
|
}
|
|
16628
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
16993
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_RevokeAccess): AuthAPI_RevokeAccess {
|
|
16629
16994
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
16630
16995
|
while (reader.pos < end) {
|
|
16631
16996
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -16641,7 +17006,7 @@ class AuthAPI_RevokeGrant$Type extends MessageType<AuthAPI_RevokeGrant> {
|
|
|
16641
17006
|
}
|
|
16642
17007
|
return message;
|
|
16643
17008
|
}
|
|
16644
|
-
internalBinaryWrite(message:
|
|
17009
|
+
internalBinaryWrite(message: AuthAPI_RevokeAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
16645
17010
|
let u = options.writeUnknownFields;
|
|
16646
17011
|
if (u !== false)
|
|
16647
17012
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -16649,27 +17014,28 @@ class AuthAPI_RevokeGrant$Type extends MessageType<AuthAPI_RevokeGrant> {
|
|
|
16649
17014
|
}
|
|
16650
17015
|
}
|
|
16651
17016
|
/**
|
|
16652
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
17017
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.RevokeAccess
|
|
16653
17018
|
*/
|
|
16654
|
-
export const
|
|
17019
|
+
export const AuthAPI_RevokeAccess = new AuthAPI_RevokeAccess$Type();
|
|
16655
17020
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
16656
|
-
class
|
|
17021
|
+
class AuthAPI_RevokeAccess_Request$Type extends MessageType<AuthAPI_RevokeAccess_Request> {
|
|
16657
17022
|
constructor() {
|
|
16658
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
17023
|
+
super("MiLaboratories.PL.API.AuthAPI.RevokeAccess.Request", [
|
|
16659
17024
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
16660
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
17025
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
16661
17026
|
{ no: 3, name: "target_user", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
16662
17027
|
]);
|
|
16663
17028
|
}
|
|
16664
|
-
create(value?: PartialMessage<
|
|
17029
|
+
create(value?: PartialMessage<AuthAPI_RevokeAccess_Request>): AuthAPI_RevokeAccess_Request {
|
|
16665
17030
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
16666
17031
|
message.resourceId = 0n;
|
|
17032
|
+
message.resourceSignature = new Uint8Array(0);
|
|
16667
17033
|
message.targetUser = "";
|
|
16668
17034
|
if (value !== undefined)
|
|
16669
|
-
reflectionMergePartial<
|
|
17035
|
+
reflectionMergePartial<AuthAPI_RevokeAccess_Request>(this, message, value);
|
|
16670
17036
|
return message;
|
|
16671
17037
|
}
|
|
16672
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
17038
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_RevokeAccess_Request): AuthAPI_RevokeAccess_Request {
|
|
16673
17039
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
16674
17040
|
while (reader.pos < end) {
|
|
16675
17041
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -16677,7 +17043,7 @@ class AuthAPI_RevokeGrant_Request$Type extends MessageType<AuthAPI_RevokeGrant_R
|
|
|
16677
17043
|
case /* uint64 resource_id */ 1:
|
|
16678
17044
|
message.resourceId = reader.uint64().toBigInt();
|
|
16679
17045
|
break;
|
|
16680
|
-
case /*
|
|
17046
|
+
case /* bytes resource_signature */ 2:
|
|
16681
17047
|
message.resourceSignature = reader.bytes();
|
|
16682
17048
|
break;
|
|
16683
17049
|
case /* string target_user */ 3:
|
|
@@ -16694,12 +17060,12 @@ class AuthAPI_RevokeGrant_Request$Type extends MessageType<AuthAPI_RevokeGrant_R
|
|
|
16694
17060
|
}
|
|
16695
17061
|
return message;
|
|
16696
17062
|
}
|
|
16697
|
-
internalBinaryWrite(message:
|
|
17063
|
+
internalBinaryWrite(message: AuthAPI_RevokeAccess_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
16698
17064
|
/* uint64 resource_id = 1; */
|
|
16699
17065
|
if (message.resourceId !== 0n)
|
|
16700
17066
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
16701
|
-
/*
|
|
16702
|
-
if (message.resourceSignature
|
|
17067
|
+
/* bytes resource_signature = 2; */
|
|
17068
|
+
if (message.resourceSignature.length)
|
|
16703
17069
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
16704
17070
|
/* string target_user = 3; */
|
|
16705
17071
|
if (message.targetUser !== "")
|
|
@@ -16711,21 +17077,21 @@ class AuthAPI_RevokeGrant_Request$Type extends MessageType<AuthAPI_RevokeGrant_R
|
|
|
16711
17077
|
}
|
|
16712
17078
|
}
|
|
16713
17079
|
/**
|
|
16714
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
17080
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.RevokeAccess.Request
|
|
16715
17081
|
*/
|
|
16716
|
-
export const
|
|
17082
|
+
export const AuthAPI_RevokeAccess_Request = new AuthAPI_RevokeAccess_Request$Type();
|
|
16717
17083
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
16718
|
-
class
|
|
17084
|
+
class AuthAPI_RevokeAccess_Response$Type extends MessageType<AuthAPI_RevokeAccess_Response> {
|
|
16719
17085
|
constructor() {
|
|
16720
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
17086
|
+
super("MiLaboratories.PL.API.AuthAPI.RevokeAccess.Response", []);
|
|
16721
17087
|
}
|
|
16722
|
-
create(value?: PartialMessage<
|
|
17088
|
+
create(value?: PartialMessage<AuthAPI_RevokeAccess_Response>): AuthAPI_RevokeAccess_Response {
|
|
16723
17089
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
16724
17090
|
if (value !== undefined)
|
|
16725
|
-
reflectionMergePartial<
|
|
17091
|
+
reflectionMergePartial<AuthAPI_RevokeAccess_Response>(this, message, value);
|
|
16726
17092
|
return message;
|
|
16727
17093
|
}
|
|
16728
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
17094
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_RevokeAccess_Response): AuthAPI_RevokeAccess_Response {
|
|
16729
17095
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
16730
17096
|
while (reader.pos < end) {
|
|
16731
17097
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -16741,7 +17107,7 @@ class AuthAPI_RevokeGrant_Response$Type extends MessageType<AuthAPI_RevokeGrant_
|
|
|
16741
17107
|
}
|
|
16742
17108
|
return message;
|
|
16743
17109
|
}
|
|
16744
|
-
internalBinaryWrite(message:
|
|
17110
|
+
internalBinaryWrite(message: AuthAPI_RevokeAccess_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
16745
17111
|
let u = options.writeUnknownFields;
|
|
16746
17112
|
if (u !== false)
|
|
16747
17113
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -16749,9 +17115,9 @@ class AuthAPI_RevokeGrant_Response$Type extends MessageType<AuthAPI_RevokeGrant_
|
|
|
16749
17115
|
}
|
|
16750
17116
|
}
|
|
16751
17117
|
/**
|
|
16752
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
17118
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.RevokeAccess.Response
|
|
16753
17119
|
*/
|
|
16754
|
-
export const
|
|
17120
|
+
export const AuthAPI_RevokeAccess_Response = new AuthAPI_RevokeAccess_Response$Type();
|
|
16755
17121
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
16756
17122
|
class AuthAPI_ListGrants$Type extends MessageType<AuthAPI_ListGrants> {
|
|
16757
17123
|
constructor() {
|
|
@@ -16795,12 +17161,13 @@ class AuthAPI_ListGrants_Request$Type extends MessageType<AuthAPI_ListGrants_Req
|
|
|
16795
17161
|
constructor() {
|
|
16796
17162
|
super("MiLaboratories.PL.API.AuthAPI.ListGrants.Request", [
|
|
16797
17163
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
16798
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
17164
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
16799
17165
|
]);
|
|
16800
17166
|
}
|
|
16801
17167
|
create(value?: PartialMessage<AuthAPI_ListGrants_Request>): AuthAPI_ListGrants_Request {
|
|
16802
17168
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
16803
17169
|
message.resourceId = 0n;
|
|
17170
|
+
message.resourceSignature = new Uint8Array(0);
|
|
16804
17171
|
if (value !== undefined)
|
|
16805
17172
|
reflectionMergePartial<AuthAPI_ListGrants_Request>(this, message, value);
|
|
16806
17173
|
return message;
|
|
@@ -16813,7 +17180,7 @@ class AuthAPI_ListGrants_Request$Type extends MessageType<AuthAPI_ListGrants_Req
|
|
|
16813
17180
|
case /* uint64 resource_id */ 1:
|
|
16814
17181
|
message.resourceId = reader.uint64().toBigInt();
|
|
16815
17182
|
break;
|
|
16816
|
-
case /*
|
|
17183
|
+
case /* bytes resource_signature */ 2:
|
|
16817
17184
|
message.resourceSignature = reader.bytes();
|
|
16818
17185
|
break;
|
|
16819
17186
|
default:
|
|
@@ -16831,8 +17198,8 @@ class AuthAPI_ListGrants_Request$Type extends MessageType<AuthAPI_ListGrants_Req
|
|
|
16831
17198
|
/* uint64 resource_id = 1; */
|
|
16832
17199
|
if (message.resourceId !== 0n)
|
|
16833
17200
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
16834
|
-
/*
|
|
16835
|
-
if (message.resourceSignature
|
|
17201
|
+
/* bytes resource_signature = 2; */
|
|
17202
|
+
if (message.resourceSignature.length)
|
|
16836
17203
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
16837
17204
|
let u = options.writeUnknownFields;
|
|
16838
17205
|
if (u !== false)
|
|
@@ -17016,17 +17383,17 @@ class AuthAPI_Grant_Permissions$Type extends MessageType<AuthAPI_Grant_Permissio
|
|
|
17016
17383
|
*/
|
|
17017
17384
|
export const AuthAPI_Grant_Permissions = new AuthAPI_Grant_Permissions$Type();
|
|
17018
17385
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
17019
|
-
class
|
|
17386
|
+
class AuthAPI_MintSignature$Type extends MessageType<AuthAPI_MintSignature> {
|
|
17020
17387
|
constructor() {
|
|
17021
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
17388
|
+
super("MiLaboratories.PL.API.AuthAPI.MintSignature", []);
|
|
17022
17389
|
}
|
|
17023
|
-
create(value?: PartialMessage<
|
|
17390
|
+
create(value?: PartialMessage<AuthAPI_MintSignature>): AuthAPI_MintSignature {
|
|
17024
17391
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17025
17392
|
if (value !== undefined)
|
|
17026
|
-
reflectionMergePartial<
|
|
17393
|
+
reflectionMergePartial<AuthAPI_MintSignature>(this, message, value);
|
|
17027
17394
|
return message;
|
|
17028
17395
|
}
|
|
17029
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
17396
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_MintSignature): AuthAPI_MintSignature {
|
|
17030
17397
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
17031
17398
|
while (reader.pos < end) {
|
|
17032
17399
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -17042,7 +17409,7 @@ class AuthAPI_ListUserResources$Type extends MessageType<AuthAPI_ListUserResourc
|
|
|
17042
17409
|
}
|
|
17043
17410
|
return message;
|
|
17044
17411
|
}
|
|
17045
|
-
internalBinaryWrite(message:
|
|
17412
|
+
internalBinaryWrite(message: AuthAPI_MintSignature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17046
17413
|
let u = options.writeUnknownFields;
|
|
17047
17414
|
if (u !== false)
|
|
17048
17415
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -17050,37 +17417,386 @@ class AuthAPI_ListUserResources$Type extends MessageType<AuthAPI_ListUserResourc
|
|
|
17050
17417
|
}
|
|
17051
17418
|
}
|
|
17052
17419
|
/**
|
|
17053
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
17420
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.MintSignature
|
|
17054
17421
|
*/
|
|
17055
|
-
export const
|
|
17422
|
+
export const AuthAPI_MintSignature = new AuthAPI_MintSignature$Type();
|
|
17056
17423
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
17057
|
-
class
|
|
17424
|
+
class AuthAPI_MintSignature_Request$Type extends MessageType<AuthAPI_MintSignature_Request> {
|
|
17058
17425
|
constructor() {
|
|
17059
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
17060
|
-
{ no: 1, name: "
|
|
17061
|
-
{ no: 2, name: "
|
|
17062
|
-
{ no: 3, name: "
|
|
17426
|
+
super("MiLaboratories.PL.API.AuthAPI.MintSignature.Request", [
|
|
17427
|
+
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
17428
|
+
{ no: 2, name: "target_sid", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
17429
|
+
{ no: 3, name: "color", kind: "message", T: () => Color }
|
|
17063
17430
|
]);
|
|
17064
17431
|
}
|
|
17065
|
-
create(value?: PartialMessage<
|
|
17432
|
+
create(value?: PartialMessage<AuthAPI_MintSignature_Request>): AuthAPI_MintSignature_Request {
|
|
17066
17433
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17067
|
-
message.
|
|
17068
|
-
message.
|
|
17069
|
-
message.limit = 0;
|
|
17434
|
+
message.resourceId = 0n;
|
|
17435
|
+
message.targetSid = new Uint8Array(0);
|
|
17070
17436
|
if (value !== undefined)
|
|
17071
|
-
reflectionMergePartial<
|
|
17437
|
+
reflectionMergePartial<AuthAPI_MintSignature_Request>(this, message, value);
|
|
17072
17438
|
return message;
|
|
17073
17439
|
}
|
|
17074
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
17440
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_MintSignature_Request): AuthAPI_MintSignature_Request {
|
|
17075
17441
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
17076
17442
|
while (reader.pos < end) {
|
|
17077
17443
|
let [fieldNo, wireType] = reader.tag();
|
|
17078
17444
|
switch (fieldNo) {
|
|
17079
|
-
case /*
|
|
17080
|
-
message.
|
|
17445
|
+
case /* uint64 resource_id */ 1:
|
|
17446
|
+
message.resourceId = reader.uint64().toBigInt();
|
|
17081
17447
|
break;
|
|
17082
|
-
case /*
|
|
17083
|
-
message.
|
|
17448
|
+
case /* bytes target_sid */ 2:
|
|
17449
|
+
message.targetSid = reader.bytes();
|
|
17450
|
+
break;
|
|
17451
|
+
case /* MiLaboratories.PL.Base.Color color */ 3:
|
|
17452
|
+
message.color = Color.internalBinaryRead(reader, reader.uint32(), options, message.color);
|
|
17453
|
+
break;
|
|
17454
|
+
default:
|
|
17455
|
+
let u = options.readUnknownField;
|
|
17456
|
+
if (u === "throw")
|
|
17457
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17458
|
+
let d = reader.skip(wireType);
|
|
17459
|
+
if (u !== false)
|
|
17460
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17461
|
+
}
|
|
17462
|
+
}
|
|
17463
|
+
return message;
|
|
17464
|
+
}
|
|
17465
|
+
internalBinaryWrite(message: AuthAPI_MintSignature_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17466
|
+
/* uint64 resource_id = 1; */
|
|
17467
|
+
if (message.resourceId !== 0n)
|
|
17468
|
+
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
17469
|
+
/* bytes target_sid = 2; */
|
|
17470
|
+
if (message.targetSid.length)
|
|
17471
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.targetSid);
|
|
17472
|
+
/* MiLaboratories.PL.Base.Color color = 3; */
|
|
17473
|
+
if (message.color)
|
|
17474
|
+
Color.internalBinaryWrite(message.color, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
17475
|
+
let u = options.writeUnknownFields;
|
|
17476
|
+
if (u !== false)
|
|
17477
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17478
|
+
return writer;
|
|
17479
|
+
}
|
|
17480
|
+
}
|
|
17481
|
+
/**
|
|
17482
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.MintSignature.Request
|
|
17483
|
+
*/
|
|
17484
|
+
export const AuthAPI_MintSignature_Request = new AuthAPI_MintSignature_Request$Type();
|
|
17485
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17486
|
+
class AuthAPI_MintSignature_Response$Type extends MessageType<AuthAPI_MintSignature_Response> {
|
|
17487
|
+
constructor() {
|
|
17488
|
+
super("MiLaboratories.PL.API.AuthAPI.MintSignature.Response", [
|
|
17489
|
+
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
17490
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
17491
|
+
]);
|
|
17492
|
+
}
|
|
17493
|
+
create(value?: PartialMessage<AuthAPI_MintSignature_Response>): AuthAPI_MintSignature_Response {
|
|
17494
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17495
|
+
message.resourceId = 0n;
|
|
17496
|
+
message.resourceSignature = new Uint8Array(0);
|
|
17497
|
+
if (value !== undefined)
|
|
17498
|
+
reflectionMergePartial<AuthAPI_MintSignature_Response>(this, message, value);
|
|
17499
|
+
return message;
|
|
17500
|
+
}
|
|
17501
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_MintSignature_Response): AuthAPI_MintSignature_Response {
|
|
17502
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17503
|
+
while (reader.pos < end) {
|
|
17504
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17505
|
+
switch (fieldNo) {
|
|
17506
|
+
case /* uint64 resource_id */ 1:
|
|
17507
|
+
message.resourceId = reader.uint64().toBigInt();
|
|
17508
|
+
break;
|
|
17509
|
+
case /* bytes resource_signature */ 2:
|
|
17510
|
+
message.resourceSignature = reader.bytes();
|
|
17511
|
+
break;
|
|
17512
|
+
default:
|
|
17513
|
+
let u = options.readUnknownField;
|
|
17514
|
+
if (u === "throw")
|
|
17515
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17516
|
+
let d = reader.skip(wireType);
|
|
17517
|
+
if (u !== false)
|
|
17518
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17519
|
+
}
|
|
17520
|
+
}
|
|
17521
|
+
return message;
|
|
17522
|
+
}
|
|
17523
|
+
internalBinaryWrite(message: AuthAPI_MintSignature_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17524
|
+
/* uint64 resource_id = 1; */
|
|
17525
|
+
if (message.resourceId !== 0n)
|
|
17526
|
+
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
17527
|
+
/* bytes resource_signature = 2; */
|
|
17528
|
+
if (message.resourceSignature.length)
|
|
17529
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
17530
|
+
let u = options.writeUnknownFields;
|
|
17531
|
+
if (u !== false)
|
|
17532
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17533
|
+
return writer;
|
|
17534
|
+
}
|
|
17535
|
+
}
|
|
17536
|
+
/**
|
|
17537
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.MintSignature.Response
|
|
17538
|
+
*/
|
|
17539
|
+
export const AuthAPI_MintSignature_Response = new AuthAPI_MintSignature_Response$Type();
|
|
17540
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17541
|
+
class AuthAPI_UserRoot$Type extends MessageType<AuthAPI_UserRoot> {
|
|
17542
|
+
constructor() {
|
|
17543
|
+
super("MiLaboratories.PL.API.AuthAPI.UserRoot", [
|
|
17544
|
+
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
17545
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
17546
|
+
]);
|
|
17547
|
+
}
|
|
17548
|
+
create(value?: PartialMessage<AuthAPI_UserRoot>): AuthAPI_UserRoot {
|
|
17549
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17550
|
+
message.resourceId = 0n;
|
|
17551
|
+
message.resourceSignature = new Uint8Array(0);
|
|
17552
|
+
if (value !== undefined)
|
|
17553
|
+
reflectionMergePartial<AuthAPI_UserRoot>(this, message, value);
|
|
17554
|
+
return message;
|
|
17555
|
+
}
|
|
17556
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_UserRoot): AuthAPI_UserRoot {
|
|
17557
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17558
|
+
while (reader.pos < end) {
|
|
17559
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17560
|
+
switch (fieldNo) {
|
|
17561
|
+
case /* uint64 resource_id */ 1:
|
|
17562
|
+
message.resourceId = reader.uint64().toBigInt();
|
|
17563
|
+
break;
|
|
17564
|
+
case /* bytes resource_signature */ 2:
|
|
17565
|
+
message.resourceSignature = reader.bytes();
|
|
17566
|
+
break;
|
|
17567
|
+
default:
|
|
17568
|
+
let u = options.readUnknownField;
|
|
17569
|
+
if (u === "throw")
|
|
17570
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17571
|
+
let d = reader.skip(wireType);
|
|
17572
|
+
if (u !== false)
|
|
17573
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17574
|
+
}
|
|
17575
|
+
}
|
|
17576
|
+
return message;
|
|
17577
|
+
}
|
|
17578
|
+
internalBinaryWrite(message: AuthAPI_UserRoot, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17579
|
+
/* uint64 resource_id = 1; */
|
|
17580
|
+
if (message.resourceId !== 0n)
|
|
17581
|
+
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
17582
|
+
/* bytes resource_signature = 2; */
|
|
17583
|
+
if (message.resourceSignature.length)
|
|
17584
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
17585
|
+
let u = options.writeUnknownFields;
|
|
17586
|
+
if (u !== false)
|
|
17587
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17588
|
+
return writer;
|
|
17589
|
+
}
|
|
17590
|
+
}
|
|
17591
|
+
/**
|
|
17592
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.UserRoot
|
|
17593
|
+
*/
|
|
17594
|
+
export const AuthAPI_UserRoot = new AuthAPI_UserRoot$Type();
|
|
17595
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17596
|
+
class AuthAPI_GetUserRoot$Type extends MessageType<AuthAPI_GetUserRoot> {
|
|
17597
|
+
constructor() {
|
|
17598
|
+
super("MiLaboratories.PL.API.AuthAPI.GetUserRoot", []);
|
|
17599
|
+
}
|
|
17600
|
+
create(value?: PartialMessage<AuthAPI_GetUserRoot>): AuthAPI_GetUserRoot {
|
|
17601
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17602
|
+
if (value !== undefined)
|
|
17603
|
+
reflectionMergePartial<AuthAPI_GetUserRoot>(this, message, value);
|
|
17604
|
+
return message;
|
|
17605
|
+
}
|
|
17606
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_GetUserRoot): AuthAPI_GetUserRoot {
|
|
17607
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17608
|
+
while (reader.pos < end) {
|
|
17609
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17610
|
+
switch (fieldNo) {
|
|
17611
|
+
default:
|
|
17612
|
+
let u = options.readUnknownField;
|
|
17613
|
+
if (u === "throw")
|
|
17614
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17615
|
+
let d = reader.skip(wireType);
|
|
17616
|
+
if (u !== false)
|
|
17617
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17618
|
+
}
|
|
17619
|
+
}
|
|
17620
|
+
return message;
|
|
17621
|
+
}
|
|
17622
|
+
internalBinaryWrite(message: AuthAPI_GetUserRoot, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17623
|
+
let u = options.writeUnknownFields;
|
|
17624
|
+
if (u !== false)
|
|
17625
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17626
|
+
return writer;
|
|
17627
|
+
}
|
|
17628
|
+
}
|
|
17629
|
+
/**
|
|
17630
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetUserRoot
|
|
17631
|
+
*/
|
|
17632
|
+
export const AuthAPI_GetUserRoot = new AuthAPI_GetUserRoot$Type();
|
|
17633
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17634
|
+
class AuthAPI_GetUserRoot_Request$Type extends MessageType<AuthAPI_GetUserRoot_Request> {
|
|
17635
|
+
constructor() {
|
|
17636
|
+
super("MiLaboratories.PL.API.AuthAPI.GetUserRoot.Request", [
|
|
17637
|
+
{ no: 1, name: "login", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17638
|
+
{ no: 2, name: "do_not_create", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
17639
|
+
]);
|
|
17640
|
+
}
|
|
17641
|
+
create(value?: PartialMessage<AuthAPI_GetUserRoot_Request>): AuthAPI_GetUserRoot_Request {
|
|
17642
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17643
|
+
message.login = "";
|
|
17644
|
+
message.doNotCreate = false;
|
|
17645
|
+
if (value !== undefined)
|
|
17646
|
+
reflectionMergePartial<AuthAPI_GetUserRoot_Request>(this, message, value);
|
|
17647
|
+
return message;
|
|
17648
|
+
}
|
|
17649
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_GetUserRoot_Request): AuthAPI_GetUserRoot_Request {
|
|
17650
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17651
|
+
while (reader.pos < end) {
|
|
17652
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17653
|
+
switch (fieldNo) {
|
|
17654
|
+
case /* string login */ 1:
|
|
17655
|
+
message.login = reader.string();
|
|
17656
|
+
break;
|
|
17657
|
+
case /* bool do_not_create */ 2:
|
|
17658
|
+
message.doNotCreate = reader.bool();
|
|
17659
|
+
break;
|
|
17660
|
+
default:
|
|
17661
|
+
let u = options.readUnknownField;
|
|
17662
|
+
if (u === "throw")
|
|
17663
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17664
|
+
let d = reader.skip(wireType);
|
|
17665
|
+
if (u !== false)
|
|
17666
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17667
|
+
}
|
|
17668
|
+
}
|
|
17669
|
+
return message;
|
|
17670
|
+
}
|
|
17671
|
+
internalBinaryWrite(message: AuthAPI_GetUserRoot_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17672
|
+
/* string login = 1; */
|
|
17673
|
+
if (message.login !== "")
|
|
17674
|
+
writer.tag(1, WireType.LengthDelimited).string(message.login);
|
|
17675
|
+
/* bool do_not_create = 2; */
|
|
17676
|
+
if (message.doNotCreate !== false)
|
|
17677
|
+
writer.tag(2, WireType.Varint).bool(message.doNotCreate);
|
|
17678
|
+
let u = options.writeUnknownFields;
|
|
17679
|
+
if (u !== false)
|
|
17680
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17681
|
+
return writer;
|
|
17682
|
+
}
|
|
17683
|
+
}
|
|
17684
|
+
/**
|
|
17685
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetUserRoot.Request
|
|
17686
|
+
*/
|
|
17687
|
+
export const AuthAPI_GetUserRoot_Request = new AuthAPI_GetUserRoot_Request$Type();
|
|
17688
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17689
|
+
class AuthAPI_GetUserRoot_Response$Type extends MessageType<AuthAPI_GetUserRoot_Response> {
|
|
17690
|
+
constructor() {
|
|
17691
|
+
super("MiLaboratories.PL.API.AuthAPI.GetUserRoot.Response", [
|
|
17692
|
+
{ no: 1, name: "user_root", kind: "message", T: () => AuthAPI_UserRoot }
|
|
17693
|
+
]);
|
|
17694
|
+
}
|
|
17695
|
+
create(value?: PartialMessage<AuthAPI_GetUserRoot_Response>): AuthAPI_GetUserRoot_Response {
|
|
17696
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17697
|
+
if (value !== undefined)
|
|
17698
|
+
reflectionMergePartial<AuthAPI_GetUserRoot_Response>(this, message, value);
|
|
17699
|
+
return message;
|
|
17700
|
+
}
|
|
17701
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_GetUserRoot_Response): AuthAPI_GetUserRoot_Response {
|
|
17702
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17703
|
+
while (reader.pos < end) {
|
|
17704
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17705
|
+
switch (fieldNo) {
|
|
17706
|
+
case /* MiLaboratories.PL.API.AuthAPI.UserRoot user_root */ 1:
|
|
17707
|
+
message.userRoot = AuthAPI_UserRoot.internalBinaryRead(reader, reader.uint32(), options, message.userRoot);
|
|
17708
|
+
break;
|
|
17709
|
+
default:
|
|
17710
|
+
let u = options.readUnknownField;
|
|
17711
|
+
if (u === "throw")
|
|
17712
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17713
|
+
let d = reader.skip(wireType);
|
|
17714
|
+
if (u !== false)
|
|
17715
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17716
|
+
}
|
|
17717
|
+
}
|
|
17718
|
+
return message;
|
|
17719
|
+
}
|
|
17720
|
+
internalBinaryWrite(message: AuthAPI_GetUserRoot_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17721
|
+
/* MiLaboratories.PL.API.AuthAPI.UserRoot user_root = 1; */
|
|
17722
|
+
if (message.userRoot)
|
|
17723
|
+
AuthAPI_UserRoot.internalBinaryWrite(message.userRoot, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
17724
|
+
let u = options.writeUnknownFields;
|
|
17725
|
+
if (u !== false)
|
|
17726
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17727
|
+
return writer;
|
|
17728
|
+
}
|
|
17729
|
+
}
|
|
17730
|
+
/**
|
|
17731
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetUserRoot.Response
|
|
17732
|
+
*/
|
|
17733
|
+
export const AuthAPI_GetUserRoot_Response = new AuthAPI_GetUserRoot_Response$Type();
|
|
17734
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17735
|
+
class AuthAPI_ListUserResources$Type extends MessageType<AuthAPI_ListUserResources> {
|
|
17736
|
+
constructor() {
|
|
17737
|
+
super("MiLaboratories.PL.API.AuthAPI.ListUserResources", []);
|
|
17738
|
+
}
|
|
17739
|
+
create(value?: PartialMessage<AuthAPI_ListUserResources>): AuthAPI_ListUserResources {
|
|
17740
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17741
|
+
if (value !== undefined)
|
|
17742
|
+
reflectionMergePartial<AuthAPI_ListUserResources>(this, message, value);
|
|
17743
|
+
return message;
|
|
17744
|
+
}
|
|
17745
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_ListUserResources): AuthAPI_ListUserResources {
|
|
17746
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17747
|
+
while (reader.pos < end) {
|
|
17748
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17749
|
+
switch (fieldNo) {
|
|
17750
|
+
default:
|
|
17751
|
+
let u = options.readUnknownField;
|
|
17752
|
+
if (u === "throw")
|
|
17753
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17754
|
+
let d = reader.skip(wireType);
|
|
17755
|
+
if (u !== false)
|
|
17756
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17757
|
+
}
|
|
17758
|
+
}
|
|
17759
|
+
return message;
|
|
17760
|
+
}
|
|
17761
|
+
internalBinaryWrite(message: AuthAPI_ListUserResources, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17762
|
+
let u = options.writeUnknownFields;
|
|
17763
|
+
if (u !== false)
|
|
17764
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17765
|
+
return writer;
|
|
17766
|
+
}
|
|
17767
|
+
}
|
|
17768
|
+
/**
|
|
17769
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListUserResources
|
|
17770
|
+
*/
|
|
17771
|
+
export const AuthAPI_ListUserResources = new AuthAPI_ListUserResources$Type();
|
|
17772
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17773
|
+
class AuthAPI_ListUserResources_Request$Type extends MessageType<AuthAPI_ListUserResources_Request> {
|
|
17774
|
+
constructor() {
|
|
17775
|
+
super("MiLaboratories.PL.API.AuthAPI.ListUserResources.Request", [
|
|
17776
|
+
{ no: 1, name: "login", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17777
|
+
{ no: 2, name: "start_from", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
17778
|
+
{ no: 3, name: "limit", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
17779
|
+
]);
|
|
17780
|
+
}
|
|
17781
|
+
create(value?: PartialMessage<AuthAPI_ListUserResources_Request>): AuthAPI_ListUserResources_Request {
|
|
17782
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17783
|
+
message.login = "";
|
|
17784
|
+
message.startFrom = 0n;
|
|
17785
|
+
message.limit = 0;
|
|
17786
|
+
if (value !== undefined)
|
|
17787
|
+
reflectionMergePartial<AuthAPI_ListUserResources_Request>(this, message, value);
|
|
17788
|
+
return message;
|
|
17789
|
+
}
|
|
17790
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_ListUserResources_Request): AuthAPI_ListUserResources_Request {
|
|
17791
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17792
|
+
while (reader.pos < end) {
|
|
17793
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17794
|
+
switch (fieldNo) {
|
|
17795
|
+
case /* string login */ 1:
|
|
17796
|
+
message.login = reader.string();
|
|
17797
|
+
break;
|
|
17798
|
+
case /* uint64 start_from */ 2:
|
|
17799
|
+
message.startFrom = reader.uint64().toBigInt();
|
|
17084
17800
|
break;
|
|
17085
17801
|
case /* uint32 limit */ 3:
|
|
17086
17802
|
message.limit = reader.uint32();
|
|
@@ -17120,7 +17836,7 @@ export const AuthAPI_ListUserResources_Request = new AuthAPI_ListUserResources_R
|
|
|
17120
17836
|
class AuthAPI_ListUserResources_Response$Type extends MessageType<AuthAPI_ListUserResources_Response> {
|
|
17121
17837
|
constructor() {
|
|
17122
17838
|
super("MiLaboratories.PL.API.AuthAPI.ListUserResources.Response", [
|
|
17123
|
-
{ no: 1, name: "user_root", kind: "message", oneof: "entry", T: () =>
|
|
17839
|
+
{ no: 1, name: "user_root", kind: "message", oneof: "entry", T: () => AuthAPI_UserRoot },
|
|
17124
17840
|
{ no: 2, name: "shared_resource", kind: "message", oneof: "entry", T: () => AuthAPI_ListUserResources_SharedResource },
|
|
17125
17841
|
{ no: 3, name: "next_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
17126
17842
|
]);
|
|
@@ -17138,10 +17854,10 @@ class AuthAPI_ListUserResources_Response$Type extends MessageType<AuthAPI_ListUs
|
|
|
17138
17854
|
while (reader.pos < end) {
|
|
17139
17855
|
let [fieldNo, wireType] = reader.tag();
|
|
17140
17856
|
switch (fieldNo) {
|
|
17141
|
-
case /* MiLaboratories.PL.API.AuthAPI.
|
|
17857
|
+
case /* MiLaboratories.PL.API.AuthAPI.UserRoot user_root */ 1:
|
|
17142
17858
|
message.entry = {
|
|
17143
17859
|
oneofKind: "userRoot",
|
|
17144
|
-
userRoot:
|
|
17860
|
+
userRoot: AuthAPI_UserRoot.internalBinaryRead(reader, reader.uint32(), options, (message.entry as any).userRoot)
|
|
17145
17861
|
};
|
|
17146
17862
|
break;
|
|
17147
17863
|
case /* MiLaboratories.PL.API.AuthAPI.ListUserResources.SharedResource shared_resource */ 2:
|
|
@@ -17165,9 +17881,9 @@ class AuthAPI_ListUserResources_Response$Type extends MessageType<AuthAPI_ListUs
|
|
|
17165
17881
|
return message;
|
|
17166
17882
|
}
|
|
17167
17883
|
internalBinaryWrite(message: AuthAPI_ListUserResources_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17168
|
-
/* MiLaboratories.PL.API.AuthAPI.
|
|
17884
|
+
/* MiLaboratories.PL.API.AuthAPI.UserRoot user_root = 1; */
|
|
17169
17885
|
if (message.entry.oneofKind === "userRoot")
|
|
17170
|
-
|
|
17886
|
+
AuthAPI_UserRoot.internalBinaryWrite(message.entry.userRoot, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
17171
17887
|
/* MiLaboratories.PL.API.AuthAPI.ListUserResources.SharedResource shared_resource = 2; */
|
|
17172
17888
|
if (message.entry.oneofKind === "sharedResource")
|
|
17173
17889
|
AuthAPI_ListUserResources_SharedResource.internalBinaryWrite(message.entry.sharedResource, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -17185,65 +17901,11 @@ class AuthAPI_ListUserResources_Response$Type extends MessageType<AuthAPI_ListUs
|
|
|
17185
17901
|
*/
|
|
17186
17902
|
export const AuthAPI_ListUserResources_Response = new AuthAPI_ListUserResources_Response$Type();
|
|
17187
17903
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
17188
|
-
class AuthAPI_ListUserResources_UserRoot$Type extends MessageType<AuthAPI_ListUserResources_UserRoot> {
|
|
17189
|
-
constructor() {
|
|
17190
|
-
super("MiLaboratories.PL.API.AuthAPI.ListUserResources.UserRoot", [
|
|
17191
|
-
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
17192
|
-
{ no: 2, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ }
|
|
17193
|
-
]);
|
|
17194
|
-
}
|
|
17195
|
-
create(value?: PartialMessage<AuthAPI_ListUserResources_UserRoot>): AuthAPI_ListUserResources_UserRoot {
|
|
17196
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17197
|
-
message.resourceId = 0n;
|
|
17198
|
-
if (value !== undefined)
|
|
17199
|
-
reflectionMergePartial<AuthAPI_ListUserResources_UserRoot>(this, message, value);
|
|
17200
|
-
return message;
|
|
17201
|
-
}
|
|
17202
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_ListUserResources_UserRoot): AuthAPI_ListUserResources_UserRoot {
|
|
17203
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
17204
|
-
while (reader.pos < end) {
|
|
17205
|
-
let [fieldNo, wireType] = reader.tag();
|
|
17206
|
-
switch (fieldNo) {
|
|
17207
|
-
case /* uint64 resource_id */ 1:
|
|
17208
|
-
message.resourceId = reader.uint64().toBigInt();
|
|
17209
|
-
break;
|
|
17210
|
-
case /* optional bytes resource_signature */ 2:
|
|
17211
|
-
message.resourceSignature = reader.bytes();
|
|
17212
|
-
break;
|
|
17213
|
-
default:
|
|
17214
|
-
let u = options.readUnknownField;
|
|
17215
|
-
if (u === "throw")
|
|
17216
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17217
|
-
let d = reader.skip(wireType);
|
|
17218
|
-
if (u !== false)
|
|
17219
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17220
|
-
}
|
|
17221
|
-
}
|
|
17222
|
-
return message;
|
|
17223
|
-
}
|
|
17224
|
-
internalBinaryWrite(message: AuthAPI_ListUserResources_UserRoot, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17225
|
-
/* uint64 resource_id = 1; */
|
|
17226
|
-
if (message.resourceId !== 0n)
|
|
17227
|
-
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
17228
|
-
/* optional bytes resource_signature = 2; */
|
|
17229
|
-
if (message.resourceSignature !== undefined)
|
|
17230
|
-
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
17231
|
-
let u = options.writeUnknownFields;
|
|
17232
|
-
if (u !== false)
|
|
17233
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17234
|
-
return writer;
|
|
17235
|
-
}
|
|
17236
|
-
}
|
|
17237
|
-
/**
|
|
17238
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListUserResources.UserRoot
|
|
17239
|
-
*/
|
|
17240
|
-
export const AuthAPI_ListUserResources_UserRoot = new AuthAPI_ListUserResources_UserRoot$Type();
|
|
17241
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
17242
17904
|
class AuthAPI_ListUserResources_SharedResource$Type extends MessageType<AuthAPI_ListUserResources_SharedResource> {
|
|
17243
17905
|
constructor() {
|
|
17244
17906
|
super("MiLaboratories.PL.API.AuthAPI.ListUserResources.SharedResource", [
|
|
17245
17907
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
17246
|
-
{ no: 2, name: "resource_signature", kind: "scalar",
|
|
17908
|
+
{ no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
17247
17909
|
{ no: 3, name: "resource_type", kind: "message", T: () => ResourceType },
|
|
17248
17910
|
{ no: 4, name: "permissions", kind: "message", T: () => AuthAPI_Grant_Permissions }
|
|
17249
17911
|
]);
|
|
@@ -17251,6 +17913,7 @@ class AuthAPI_ListUserResources_SharedResource$Type extends MessageType<AuthAPI_
|
|
|
17251
17913
|
create(value?: PartialMessage<AuthAPI_ListUserResources_SharedResource>): AuthAPI_ListUserResources_SharedResource {
|
|
17252
17914
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17253
17915
|
message.resourceId = 0n;
|
|
17916
|
+
message.resourceSignature = new Uint8Array(0);
|
|
17254
17917
|
if (value !== undefined)
|
|
17255
17918
|
reflectionMergePartial<AuthAPI_ListUserResources_SharedResource>(this, message, value);
|
|
17256
17919
|
return message;
|
|
@@ -17263,7 +17926,7 @@ class AuthAPI_ListUserResources_SharedResource$Type extends MessageType<AuthAPI_
|
|
|
17263
17926
|
case /* uint64 resource_id */ 1:
|
|
17264
17927
|
message.resourceId = reader.uint64().toBigInt();
|
|
17265
17928
|
break;
|
|
17266
|
-
case /*
|
|
17929
|
+
case /* bytes resource_signature */ 2:
|
|
17267
17930
|
message.resourceSignature = reader.bytes();
|
|
17268
17931
|
break;
|
|
17269
17932
|
case /* MiLaboratories.PL.Base.ResourceType resource_type */ 3:
|
|
@@ -17287,8 +17950,8 @@ class AuthAPI_ListUserResources_SharedResource$Type extends MessageType<AuthAPI_
|
|
|
17287
17950
|
/* uint64 resource_id = 1; */
|
|
17288
17951
|
if (message.resourceId !== 0n)
|
|
17289
17952
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
17290
|
-
/*
|
|
17291
|
-
if (message.resourceSignature
|
|
17953
|
+
/* bytes resource_signature = 2; */
|
|
17954
|
+
if (message.resourceSignature.length)
|
|
17292
17955
|
writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
17293
17956
|
/* MiLaboratories.PL.Base.ResourceType resource_type = 3; */
|
|
17294
17957
|
if (message.resourceType)
|
|
@@ -17919,9 +18582,12 @@ export const Platform = new ServiceType("MiLaboratories.PL.API.Platform", [
|
|
|
17919
18582
|
{ name: "ReleaseLease", options: { "google.api.http": { post: "/v1/locks/lease/release", body: "*" } }, I: LocksAPI_Lease_Release_Request, O: LocksAPI_Lease_Release_Response },
|
|
17920
18583
|
{ name: "AuthMethods", options: { "google.api.http": { get: "/v1/auth/methods" } }, I: AuthAPI_ListMethods_Request, O: AuthAPI_ListMethods_Response },
|
|
17921
18584
|
{ name: "GetJWTToken", options: { "google.api.http": { post: "/v1/auth/jwt-token", body: "*" } }, I: AuthAPI_GetJWTToken_Request, O: AuthAPI_GetJWTToken_Response },
|
|
18585
|
+
{ name: "GetSessionInfo", options: { "google.api.http": { post: "/v1/auth/session-info", body: "*" } }, I: AuthAPI_GetSessionInfo_Request, O: AuthAPI_GetSessionInfo_Response },
|
|
17922
18586
|
{ name: "GrantAccess", options: { "google.api.http": { post: "/v1/auth/grant-access", body: "*" } }, I: AuthAPI_GrantAccess_Request, O: AuthAPI_GrantAccess_Response },
|
|
17923
|
-
{ name: "
|
|
18587
|
+
{ name: "RevokeAccess", options: { "google.api.http": { post: "/v1/auth/revoke-access", body: "*" } }, I: AuthAPI_RevokeAccess_Request, O: AuthAPI_RevokeAccess_Response },
|
|
17924
18588
|
{ name: "ListGrants", serverStreaming: true, options: {}, I: AuthAPI_ListGrants_Request, O: AuthAPI_ListGrants_Response },
|
|
18589
|
+
{ name: "MintSignature", options: { "google.api.http": { post: "/v1/auth/mint-signature", body: "*" } }, I: AuthAPI_MintSignature_Request, O: AuthAPI_MintSignature_Response },
|
|
18590
|
+
{ name: "GetUserRoot", options: { "google.api.http": { post: "/v1/auth/user-root", body: "*" } }, I: AuthAPI_GetUserRoot_Request, O: AuthAPI_GetUserRoot_Response },
|
|
17925
18591
|
{ name: "ListUserResources", serverStreaming: true, options: {}, I: AuthAPI_ListUserResources_Request, O: AuthAPI_ListUserResources_Response },
|
|
17926
18592
|
{ name: "ListResourceTypes", options: { "google.api.http": { get: "/v1/resource-types" } }, I: MiscAPI_ListResourceTypes_Request, O: MiscAPI_ListResourceTypes_Response },
|
|
17927
18593
|
{ name: "Ping", options: { "google.api.http": { get: "/v1/ping" } }, I: MaintenanceAPI_Ping_Request, O: MaintenanceAPI_Ping_Response },
|