@nimiplatform/sdk 0.9.1 → 0.11.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/ai/profile-authoring.d.ts +1 -1
- package/dist/core/ai/profile-authoring.d.ts.map +1 -1
- package/dist/core/ai/profile-authoring.js.map +1 -1
- package/dist/core/app/index.d.ts +1 -1
- package/dist/core/app/index.d.ts.map +1 -1
- package/dist/core/app/index.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.d.ts +38 -5
- package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.js +112 -15
- package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-realtime-shared.d.ts +1 -1
- package/dist/core/app/local-app-runtime-platform-video.d.ts +58 -0
- package/dist/core/app/local-app-runtime-platform-video.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-video.js +155 -0
- package/dist/core/app/local-app-runtime-platform-video.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-vision.d.ts +32 -0
- package/dist/core/app/local-app-runtime-platform-vision.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-vision.js +77 -0
- package/dist/core/app/local-app-runtime-platform-vision.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform.d.ts +5 -1
- package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform.js +4 -1
- package/dist/core/app/local-app-runtime-platform.js.map +1 -1
- package/dist/core-generated/runtime-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-client.js +136 -8
- package/dist/core-generated/runtime-client.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts +44 -2
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js +93 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +819 -4
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +1766 -83
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +501 -8
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +1602 -506
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts +4 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js +4 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +53 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js +138 -2
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +49 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +48 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +55 -82
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +98 -168
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.d.ts +8 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.js +13 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts +211 -318
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js +494 -616
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js.map +1 -1
- package/dist/core-generated/runtime-public-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-client.js +136 -8
- package/dist/core-generated/runtime-public-client.js.map +1 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.js +17 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.d.ts +22 -5
- package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.js +22 -5
- package/dist/core-generated/runtime-public-wire-codecs.js.map +1 -1
- package/dist/core-generated/runtime-rpc-auth-posture.d.ts.map +1 -1
- package/dist/core-generated/runtime-rpc-auth-posture.js +17 -1
- package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-typed-client.d.ts +30 -13
- package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-typed-client.js +172 -12
- package/dist/core-generated/runtime-typed-client.js.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.d.ts +22 -5
- package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.js +22 -5
- package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
- package/dist/runtime/desktop-first-party-runtime.d.ts +3 -3
- package/dist/runtime/desktop-first-party-runtime.d.ts.map +1 -1
- package/dist/runtime/desktop-first-party-runtime.js +11 -1
- package/dist/runtime/desktop-first-party-runtime.js.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +77 -5
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js +22 -4
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js.map +1 -1
- package/dist/runtime/generated.d.ts +2 -2
- package/dist/runtime/generated.d.ts.map +1 -1
- package/dist/runtime/generated.js +1 -1
- package/dist/runtime/generated.js.map +1 -1
- package/dist/runtime/local-asset-vocabulary.d.ts +2 -1
- package/dist/runtime/local-asset-vocabulary.d.ts.map +1 -1
- package/dist/runtime/local-asset-vocabulary.js +3 -0
- package/dist/runtime/local-asset-vocabulary.js.map +1 -1
- package/dist/runtime/machine-loadouts.d.ts +13 -0
- package/dist/runtime/machine-loadouts.d.ts.map +1 -1
- package/dist/runtime/machine-loadouts.js +22 -1
- package/dist/runtime/machine-loadouts.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client-projections.d.ts +2 -4
- package/dist/runtime/runtime-local-environment-client-projections.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-projections.js +2 -64
- package/dist/runtime/runtime-local-environment-client-projections.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client-types.d.ts +29 -50
- package/dist/runtime/runtime-local-environment-client-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client.d.ts +1 -1
- package/dist/runtime/runtime-local-environment-client.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client.js +72 -23
- package/dist/runtime/runtime-local-environment-client.js.map +1 -1
- package/dist/runtime/runtime-local-recommendation-types.d.ts +47 -116
- package/dist/runtime/runtime-local-recommendation-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-recommendation.d.ts +11 -33
- package/dist/runtime/runtime-local-recommendation.d.ts.map +1 -1
- package/dist/runtime/runtime-local-recommendation.js +102 -261
- package/dist/runtime/runtime-local-recommendation.js.map +1 -1
- package/dist/runtime/runtime-method-modules.d.ts +2 -2
- package/dist/runtime/runtime-method-modules.d.ts.map +1 -1
- package/dist/runtime/runtime-method-modules.js +4 -1
- package/dist/runtime/runtime-method-modules.js.map +1 -1
- package/dist/runtime/scenario-jobs.d.ts +2 -1
- package/dist/runtime/scenario-jobs.d.ts.map +1 -1
- package/dist/runtime/scenario-jobs.js +17 -1
- package/dist/runtime/scenario-jobs.js.map +1 -1
- package/dist/runtime/wire-types/agent-participation-types.d.ts +2 -2
- package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts +20 -2
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.js +21 -0
- package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-types.d.ts +4 -4
- package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-enums.d.ts +5 -2
- package/dist/runtime/wire-types/identity-app-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-enums.js +3 -0
- package/dist/runtime/wire-types/identity-app-enums.js.map +1 -1
- package/dist/runtime/wire-types/identity-app-types.d.ts +2 -2
- package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/local-memory-enums.d.ts +13 -45
- package/dist/runtime/wire-types/local-memory-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/local-memory-enums.js +21 -59
- package/dist/runtime/wire-types/local-memory-enums.js.map +1 -1
- package/dist/runtime/wire-types/local-memory-types.d.ts +4 -4
- package/dist/runtime/wire-types/local-memory-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts +13 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.js +12 -0
- package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
- package/package.json +1 -1
- package/dist/runtime/runtime-local-recommendation-feed-ui.d.ts +0 -26
- package/dist/runtime/runtime-local-recommendation-feed-ui.d.ts.map +0 -1
- package/dist/runtime/runtime-local-recommendation-feed-ui.js +0 -453
- package/dist/runtime/runtime-local-recommendation-feed-ui.js.map +0 -1
|
@@ -2,6 +2,8 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
2
2
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
3
3
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
4
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
5
|
+
import { LocalRecommendationApplicability } from "./local_runtime_recommendation.js";
|
|
6
|
+
import { ModelAssetMarketCandidate } from "./local_runtime_recommendation.js";
|
|
5
7
|
import { ReasonCode } from "./common.js";
|
|
6
8
|
import { Struct } from "../../google/protobuf/struct.js";
|
|
7
9
|
import { TextBehaviorKind } from "./common.js";
|
|
@@ -1329,6 +1331,84 @@ class LoadoutImpactProjection$Type extends MessageType {
|
|
|
1329
1331
|
*/
|
|
1330
1332
|
export const LoadoutImpactProjection = new LoadoutImpactProjection$Type();
|
|
1331
1333
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1334
|
+
class LoadoutRecipeOfferDescriptor$Type extends MessageType {
|
|
1335
|
+
constructor() {
|
|
1336
|
+
super("nimi.runtime.v1.LoadoutRecipeOfferDescriptor", [
|
|
1337
|
+
{ no: 1, name: "candidate", kind: "message", T: () => ModelAssetMarketCandidate },
|
|
1338
|
+
{ no: 2, name: "applicability", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationApplicability", LocalRecommendationApplicability, "LOCAL_RECOMMENDATION_APPLICABILITY_"] },
|
|
1339
|
+
{ no: 3, name: "reasons", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] },
|
|
1340
|
+
{ no: 5, name: "installed_model_asset_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1341
|
+
]);
|
|
1342
|
+
}
|
|
1343
|
+
create(value) {
|
|
1344
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1345
|
+
message.applicability = 0;
|
|
1346
|
+
message.reasons = [];
|
|
1347
|
+
message.installedModelAssetId = "";
|
|
1348
|
+
if (value !== undefined)
|
|
1349
|
+
reflectionMergePartial(this, message, value);
|
|
1350
|
+
return message;
|
|
1351
|
+
}
|
|
1352
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1353
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1354
|
+
while (reader.pos < end) {
|
|
1355
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1356
|
+
switch (fieldNo) {
|
|
1357
|
+
case /* nimi.runtime.v1.ModelAssetMarketCandidate candidate */ 1:
|
|
1358
|
+
message.candidate = ModelAssetMarketCandidate.internalBinaryRead(reader, reader.uint32(), options, message.candidate);
|
|
1359
|
+
break;
|
|
1360
|
+
case /* nimi.runtime.v1.LocalRecommendationApplicability applicability */ 2:
|
|
1361
|
+
message.applicability = reader.int32();
|
|
1362
|
+
break;
|
|
1363
|
+
case /* repeated nimi.runtime.v1.ReasonCode reasons */ 3:
|
|
1364
|
+
if (wireType === WireType.LengthDelimited)
|
|
1365
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1366
|
+
message.reasons.push(reader.int32());
|
|
1367
|
+
else
|
|
1368
|
+
message.reasons.push(reader.int32());
|
|
1369
|
+
break;
|
|
1370
|
+
case /* string installed_model_asset_id */ 5:
|
|
1371
|
+
message.installedModelAssetId = reader.string();
|
|
1372
|
+
break;
|
|
1373
|
+
default:
|
|
1374
|
+
let u = options.readUnknownField;
|
|
1375
|
+
if (u === "throw")
|
|
1376
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1377
|
+
let d = reader.skip(wireType);
|
|
1378
|
+
if (u !== false)
|
|
1379
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
return message;
|
|
1383
|
+
}
|
|
1384
|
+
internalBinaryWrite(message, writer, options) {
|
|
1385
|
+
/* nimi.runtime.v1.ModelAssetMarketCandidate candidate = 1; */
|
|
1386
|
+
if (message.candidate)
|
|
1387
|
+
ModelAssetMarketCandidate.internalBinaryWrite(message.candidate, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1388
|
+
/* nimi.runtime.v1.LocalRecommendationApplicability applicability = 2; */
|
|
1389
|
+
if (message.applicability !== 0)
|
|
1390
|
+
writer.tag(2, WireType.Varint).int32(message.applicability);
|
|
1391
|
+
/* repeated nimi.runtime.v1.ReasonCode reasons = 3; */
|
|
1392
|
+
if (message.reasons.length) {
|
|
1393
|
+
writer.tag(3, WireType.LengthDelimited).fork();
|
|
1394
|
+
for (let i = 0; i < message.reasons.length; i++)
|
|
1395
|
+
writer.int32(message.reasons[i]);
|
|
1396
|
+
writer.join();
|
|
1397
|
+
}
|
|
1398
|
+
/* string installed_model_asset_id = 5; */
|
|
1399
|
+
if (message.installedModelAssetId !== "")
|
|
1400
|
+
writer.tag(5, WireType.LengthDelimited).string(message.installedModelAssetId);
|
|
1401
|
+
let u = options.writeUnknownFields;
|
|
1402
|
+
if (u !== false)
|
|
1403
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1404
|
+
return writer;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LoadoutRecipeOfferDescriptor
|
|
1409
|
+
*/
|
|
1410
|
+
export const LoadoutRecipeOfferDescriptor = new LoadoutRecipeOfferDescriptor$Type();
|
|
1411
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1332
1412
|
class LoadoutRecipeSlotDescriptor$Type extends MessageType {
|
|
1333
1413
|
constructor() {
|
|
1334
1414
|
super("nimi.runtime.v1.LoadoutRecipeSlotDescriptor", [
|
|
@@ -1338,7 +1418,10 @@ class LoadoutRecipeSlotDescriptor$Type extends MessageType {
|
|
|
1338
1418
|
{ no: 4, name: "model_contract", kind: "message", T: () => Struct },
|
|
1339
1419
|
{ no: 5, name: "recommended_variant_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1340
1420
|
{ no: 6, name: "presence", kind: "enum", T: () => ["nimi.runtime.v1.LocalCapabilityRequirementPresence", LocalCapabilityRequirementPresence, "LOCAL_CAPABILITY_REQUIREMENT_PRESENCE_"] },
|
|
1341
|
-
{ no: 7, name: "conditional_features", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
1421
|
+
{ no: 7, name: "conditional_features", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1422
|
+
{ no: 8, name: "offers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LoadoutRecipeOfferDescriptor },
|
|
1423
|
+
{ no: 9, name: "applicability", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationApplicability", LocalRecommendationApplicability, "LOCAL_RECOMMENDATION_APPLICABILITY_"] },
|
|
1424
|
+
{ no: 10, name: "reasons", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] }
|
|
1342
1425
|
]);
|
|
1343
1426
|
}
|
|
1344
1427
|
create(value) {
|
|
@@ -1349,6 +1432,9 @@ class LoadoutRecipeSlotDescriptor$Type extends MessageType {
|
|
|
1349
1432
|
message.recommendedVariantIds = [];
|
|
1350
1433
|
message.presence = 0;
|
|
1351
1434
|
message.conditionalFeatures = [];
|
|
1435
|
+
message.offers = [];
|
|
1436
|
+
message.applicability = 0;
|
|
1437
|
+
message.reasons = [];
|
|
1352
1438
|
if (value !== undefined)
|
|
1353
1439
|
reflectionMergePartial(this, message, value);
|
|
1354
1440
|
return message;
|
|
@@ -1379,6 +1465,19 @@ class LoadoutRecipeSlotDescriptor$Type extends MessageType {
|
|
|
1379
1465
|
case /* repeated string conditional_features */ 7:
|
|
1380
1466
|
message.conditionalFeatures.push(reader.string());
|
|
1381
1467
|
break;
|
|
1468
|
+
case /* repeated nimi.runtime.v1.LoadoutRecipeOfferDescriptor offers */ 8:
|
|
1469
|
+
message.offers.push(LoadoutRecipeOfferDescriptor.internalBinaryRead(reader, reader.uint32(), options));
|
|
1470
|
+
break;
|
|
1471
|
+
case /* nimi.runtime.v1.LocalRecommendationApplicability applicability */ 9:
|
|
1472
|
+
message.applicability = reader.int32();
|
|
1473
|
+
break;
|
|
1474
|
+
case /* repeated nimi.runtime.v1.ReasonCode reasons */ 10:
|
|
1475
|
+
if (wireType === WireType.LengthDelimited)
|
|
1476
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1477
|
+
message.reasons.push(reader.int32());
|
|
1478
|
+
else
|
|
1479
|
+
message.reasons.push(reader.int32());
|
|
1480
|
+
break;
|
|
1382
1481
|
default:
|
|
1383
1482
|
let u = options.readUnknownField;
|
|
1384
1483
|
if (u === "throw")
|
|
@@ -1412,6 +1511,19 @@ class LoadoutRecipeSlotDescriptor$Type extends MessageType {
|
|
|
1412
1511
|
/* repeated string conditional_features = 7; */
|
|
1413
1512
|
for (let i = 0; i < message.conditionalFeatures.length; i++)
|
|
1414
1513
|
writer.tag(7, WireType.LengthDelimited).string(message.conditionalFeatures[i]);
|
|
1514
|
+
/* repeated nimi.runtime.v1.LoadoutRecipeOfferDescriptor offers = 8; */
|
|
1515
|
+
for (let i = 0; i < message.offers.length; i++)
|
|
1516
|
+
LoadoutRecipeOfferDescriptor.internalBinaryWrite(message.offers[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1517
|
+
/* nimi.runtime.v1.LocalRecommendationApplicability applicability = 9; */
|
|
1518
|
+
if (message.applicability !== 0)
|
|
1519
|
+
writer.tag(9, WireType.Varint).int32(message.applicability);
|
|
1520
|
+
/* repeated nimi.runtime.v1.ReasonCode reasons = 10; */
|
|
1521
|
+
if (message.reasons.length) {
|
|
1522
|
+
writer.tag(10, WireType.LengthDelimited).fork();
|
|
1523
|
+
for (let i = 0; i < message.reasons.length; i++)
|
|
1524
|
+
writer.int32(message.reasons[i]);
|
|
1525
|
+
writer.join();
|
|
1526
|
+
}
|
|
1415
1527
|
let u = options.writeUnknownFields;
|
|
1416
1528
|
if (u !== false)
|
|
1417
1529
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1434,7 +1546,9 @@ class LoadoutRecipeDescriptor$Type extends MessageType {
|
|
|
1434
1546
|
{ no: 6, name: "default_options", kind: "message", T: () => Struct },
|
|
1435
1547
|
{ no: 8, name: "slots", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LoadoutRecipeSlotDescriptor },
|
|
1436
1548
|
{ no: 9, name: "custody", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LoadoutRecipeCustodyDescriptor },
|
|
1437
|
-
{ no: 10, name: "implementation_supported_features", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
1549
|
+
{ no: 10, name: "implementation_supported_features", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1550
|
+
{ no: 11, name: "applicability", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationApplicability", LocalRecommendationApplicability, "LOCAL_RECOMMENDATION_APPLICABILITY_"] },
|
|
1551
|
+
{ no: 12, name: "reasons", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] }
|
|
1438
1552
|
]);
|
|
1439
1553
|
}
|
|
1440
1554
|
create(value) {
|
|
@@ -1446,6 +1560,8 @@ class LoadoutRecipeDescriptor$Type extends MessageType {
|
|
|
1446
1560
|
message.slots = [];
|
|
1447
1561
|
message.custody = [];
|
|
1448
1562
|
message.implementationSupportedFeatures = [];
|
|
1563
|
+
message.applicability = 0;
|
|
1564
|
+
message.reasons = [];
|
|
1449
1565
|
if (value !== undefined)
|
|
1450
1566
|
reflectionMergePartial(this, message, value);
|
|
1451
1567
|
return message;
|
|
@@ -1482,6 +1598,16 @@ class LoadoutRecipeDescriptor$Type extends MessageType {
|
|
|
1482
1598
|
case /* repeated string implementation_supported_features */ 10:
|
|
1483
1599
|
message.implementationSupportedFeatures.push(reader.string());
|
|
1484
1600
|
break;
|
|
1601
|
+
case /* nimi.runtime.v1.LocalRecommendationApplicability applicability */ 11:
|
|
1602
|
+
message.applicability = reader.int32();
|
|
1603
|
+
break;
|
|
1604
|
+
case /* repeated nimi.runtime.v1.ReasonCode reasons */ 12:
|
|
1605
|
+
if (wireType === WireType.LengthDelimited)
|
|
1606
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1607
|
+
message.reasons.push(reader.int32());
|
|
1608
|
+
else
|
|
1609
|
+
message.reasons.push(reader.int32());
|
|
1610
|
+
break;
|
|
1485
1611
|
default:
|
|
1486
1612
|
let u = options.readUnknownField;
|
|
1487
1613
|
if (u === "throw")
|
|
@@ -1521,6 +1647,16 @@ class LoadoutRecipeDescriptor$Type extends MessageType {
|
|
|
1521
1647
|
/* repeated string implementation_supported_features = 10; */
|
|
1522
1648
|
for (let i = 0; i < message.implementationSupportedFeatures.length; i++)
|
|
1523
1649
|
writer.tag(10, WireType.LengthDelimited).string(message.implementationSupportedFeatures[i]);
|
|
1650
|
+
/* nimi.runtime.v1.LocalRecommendationApplicability applicability = 11; */
|
|
1651
|
+
if (message.applicability !== 0)
|
|
1652
|
+
writer.tag(11, WireType.Varint).int32(message.applicability);
|
|
1653
|
+
/* repeated nimi.runtime.v1.ReasonCode reasons = 12; */
|
|
1654
|
+
if (message.reasons.length) {
|
|
1655
|
+
writer.tag(12, WireType.LengthDelimited).fork();
|
|
1656
|
+
for (let i = 0; i < message.reasons.length; i++)
|
|
1657
|
+
writer.int32(message.reasons[i]);
|
|
1658
|
+
writer.join();
|
|
1659
|
+
}
|
|
1524
1660
|
let u = options.writeUnknownFields;
|
|
1525
1661
|
if (u !== false)
|
|
1526
1662
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|