@nimiplatform/sdk 0.9.0 → 0.10.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.
Files changed (151) hide show
  1. package/dist/core/ai/profile-authoring.d.ts +1 -1
  2. package/dist/core/ai/profile-authoring.d.ts.map +1 -1
  3. package/dist/core/ai/profile-authoring.js.map +1 -1
  4. package/dist/core/app/index.d.ts +1 -1
  5. package/dist/core/app/index.d.ts.map +1 -1
  6. package/dist/core/app/index.js.map +1 -1
  7. package/dist/core/app/local-app-runtime-platform-ai.d.ts +14 -1
  8. package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
  9. package/dist/core/app/local-app-runtime-platform-ai.js +48 -5
  10. package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
  11. package/dist/core/app/local-app-runtime-platform-vision.d.ts +32 -0
  12. package/dist/core/app/local-app-runtime-platform-vision.d.ts.map +1 -0
  13. package/dist/core/app/local-app-runtime-platform-vision.js +77 -0
  14. package/dist/core/app/local-app-runtime-platform-vision.js.map +1 -0
  15. package/dist/core/app/local-app-runtime-platform.d.ts +1 -1
  16. package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
  17. package/dist/core/app/local-app-runtime-platform.js +3 -2
  18. package/dist/core/app/local-app-runtime-platform.js.map +1 -1
  19. package/dist/core-generated/runtime-client.d.ts.map +1 -1
  20. package/dist/core-generated/runtime-client.js +80 -8
  21. package/dist/core-generated/runtime-client.js.map +1 -1
  22. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts +44 -2
  23. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts.map +1 -1
  24. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js +93 -0
  25. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js.map +1 -1
  26. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +235 -2
  27. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
  28. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +455 -3
  29. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
  30. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +316 -7
  31. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
  32. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +928 -225
  33. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
  34. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts +4 -0
  35. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts.map +1 -1
  36. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js +4 -0
  37. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js.map +1 -1
  38. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +53 -0
  39. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts.map +1 -1
  40. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js +138 -2
  41. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
  42. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +17 -1
  43. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
  44. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +16 -0
  45. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
  46. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +55 -82
  47. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
  48. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +98 -168
  49. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
  50. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.d.ts +8 -0
  51. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.d.ts.map +1 -1
  52. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.js +13 -1
  53. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.js.map +1 -1
  54. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts +211 -318
  55. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts.map +1 -1
  56. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js +494 -616
  57. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js.map +1 -1
  58. package/dist/core-generated/runtime-public-client.d.ts.map +1 -1
  59. package/dist/core-generated/runtime-public-client.js +80 -8
  60. package/dist/core-generated/runtime-public-client.js.map +1 -1
  61. package/dist/core-generated/runtime-public-rpc-auth-posture.d.ts.map +1 -1
  62. package/dist/core-generated/runtime-public-rpc-auth-posture.js +10 -1
  63. package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
  64. package/dist/core-generated/runtime-public-wire-codecs.d.ts +14 -4
  65. package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
  66. package/dist/core-generated/runtime-public-wire-codecs.js +14 -4
  67. package/dist/core-generated/runtime-public-wire-codecs.js.map +1 -1
  68. package/dist/core-generated/runtime-rpc-auth-posture.d.ts.map +1 -1
  69. package/dist/core-generated/runtime-rpc-auth-posture.js +10 -1
  70. package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
  71. package/dist/core-generated/runtime-typed-client.d.ts +22 -12
  72. package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
  73. package/dist/core-generated/runtime-typed-client.js +102 -12
  74. package/dist/core-generated/runtime-typed-client.js.map +1 -1
  75. package/dist/core-generated/runtime-wire-codecs.d.ts +14 -4
  76. package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
  77. package/dist/core-generated/runtime-wire-codecs.js +14 -4
  78. package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
  79. package/dist/runtime/desktop-first-party-runtime.d.ts +3 -3
  80. package/dist/runtime/desktop-first-party-runtime.d.ts.map +1 -1
  81. package/dist/runtime/desktop-first-party-runtime.js +8 -1
  82. package/dist/runtime/desktop-first-party-runtime.js.map +1 -1
  83. package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +32 -4
  84. package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
  85. package/dist/runtime/first-party-protected-runtime-profiles.generated.js +10 -3
  86. package/dist/runtime/first-party-protected-runtime-profiles.generated.js.map +1 -1
  87. package/dist/runtime/generated.d.ts +2 -2
  88. package/dist/runtime/generated.d.ts.map +1 -1
  89. package/dist/runtime/generated.js +1 -1
  90. package/dist/runtime/generated.js.map +1 -1
  91. package/dist/runtime/local-asset-vocabulary.d.ts +2 -1
  92. package/dist/runtime/local-asset-vocabulary.d.ts.map +1 -1
  93. package/dist/runtime/local-asset-vocabulary.js +3 -0
  94. package/dist/runtime/local-asset-vocabulary.js.map +1 -1
  95. package/dist/runtime/machine-loadouts.d.ts +13 -0
  96. package/dist/runtime/machine-loadouts.d.ts.map +1 -1
  97. package/dist/runtime/machine-loadouts.js +22 -1
  98. package/dist/runtime/machine-loadouts.js.map +1 -1
  99. package/dist/runtime/runtime-local-environment-client-projections.d.ts +2 -4
  100. package/dist/runtime/runtime-local-environment-client-projections.d.ts.map +1 -1
  101. package/dist/runtime/runtime-local-environment-client-projections.js +2 -64
  102. package/dist/runtime/runtime-local-environment-client-projections.js.map +1 -1
  103. package/dist/runtime/runtime-local-environment-client-types.d.ts +29 -50
  104. package/dist/runtime/runtime-local-environment-client-types.d.ts.map +1 -1
  105. package/dist/runtime/runtime-local-environment-client.d.ts +1 -1
  106. package/dist/runtime/runtime-local-environment-client.d.ts.map +1 -1
  107. package/dist/runtime/runtime-local-environment-client.js +72 -23
  108. package/dist/runtime/runtime-local-environment-client.js.map +1 -1
  109. package/dist/runtime/runtime-local-recommendation-types.d.ts +47 -116
  110. package/dist/runtime/runtime-local-recommendation-types.d.ts.map +1 -1
  111. package/dist/runtime/runtime-local-recommendation.d.ts +11 -33
  112. package/dist/runtime/runtime-local-recommendation.d.ts.map +1 -1
  113. package/dist/runtime/runtime-local-recommendation.js +102 -261
  114. package/dist/runtime/runtime-local-recommendation.js.map +1 -1
  115. package/dist/runtime/runtime-method-modules.d.ts +2 -2
  116. package/dist/runtime/runtime-method-modules.d.ts.map +1 -1
  117. package/dist/runtime/runtime-method-modules.js +4 -1
  118. package/dist/runtime/runtime-method-modules.js.map +1 -1
  119. package/dist/runtime/scenario-jobs.d.ts +2 -1
  120. package/dist/runtime/scenario-jobs.d.ts.map +1 -1
  121. package/dist/runtime/scenario-jobs.js +17 -1
  122. package/dist/runtime/scenario-jobs.js.map +1 -1
  123. package/dist/runtime/wire-types/agent-participation-types.d.ts +2 -2
  124. package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
  125. package/dist/runtime/wire-types/ai-scenario-enums.d.ts +9 -2
  126. package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
  127. package/dist/runtime/wire-types/ai-scenario-enums.js +8 -0
  128. package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
  129. package/dist/runtime/wire-types/ai-scenario-types.d.ts +4 -4
  130. package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
  131. package/dist/runtime/wire-types/identity-app-enums.d.ts +3 -1
  132. package/dist/runtime/wire-types/identity-app-enums.d.ts.map +1 -1
  133. package/dist/runtime/wire-types/identity-app-enums.js +2 -0
  134. package/dist/runtime/wire-types/identity-app-enums.js.map +1 -1
  135. package/dist/runtime/wire-types/identity-app-types.d.ts +2 -2
  136. package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
  137. package/dist/runtime/wire-types/local-memory-enums.d.ts +13 -45
  138. package/dist/runtime/wire-types/local-memory-enums.d.ts.map +1 -1
  139. package/dist/runtime/wire-types/local-memory-enums.js +21 -59
  140. package/dist/runtime/wire-types/local-memory-enums.js.map +1 -1
  141. package/dist/runtime/wire-types/local-memory-types.d.ts +4 -4
  142. package/dist/runtime/wire-types/local-memory-types.d.ts.map +1 -1
  143. package/dist/runtime/wire-types/reason-code-enums.d.ts +5 -1
  144. package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
  145. package/dist/runtime/wire-types/reason-code-enums.js +4 -0
  146. package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
  147. package/package.json +1 -1
  148. package/dist/runtime/runtime-local-recommendation-feed-ui.d.ts +0 -26
  149. package/dist/runtime/runtime-local-recommendation-feed-ui.d.ts.map +0 -1
  150. package/dist/runtime/runtime-local-recommendation-feed-ui.js +0 -453
  151. 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);