@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,220 +2,173 @@ 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 { LocalDeviceProfile } from "./local_runtime_device_environment.js";
6
- import { Struct } from "../../google/protobuf/struct.js";
7
- import { LocalAssetKind } from "./local_runtime_asset_catalog.js";
8
- // === Recommendation Feed ===
5
+ import { ReasonCode } from "./common.js";
9
6
  /**
10
- * @generated from protobuf enum nimi.runtime.v1.LocalRecommendationSource
7
+ * Runtime-owned applicability for one exact recommendation context. It is
8
+ * neither configuration, readiness, selection, nor execution truth.
9
+ *
10
+ * @generated from protobuf enum nimi.runtime.v1.LocalRecommendationApplicability
11
11
  */
12
- export var LocalRecommendationSource;
13
- (function (LocalRecommendationSource) {
12
+ export var LocalRecommendationApplicability;
13
+ (function (LocalRecommendationApplicability) {
14
14
  /**
15
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_SOURCE_UNSPECIFIED = 0;
15
+ * @generated from protobuf enum value: LOCAL_RECOMMENDATION_APPLICABILITY_UNSPECIFIED = 0;
16
16
  */
17
- LocalRecommendationSource[LocalRecommendationSource["UNSPECIFIED"] = 0] = "UNSPECIFIED";
17
+ LocalRecommendationApplicability[LocalRecommendationApplicability["UNSPECIFIED"] = 0] = "UNSPECIFIED";
18
18
  /**
19
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_SOURCE_LLMFIT = 1;
19
+ * @generated from protobuf enum value: LOCAL_RECOMMENDATION_APPLICABILITY_SUPPORTED = 1;
20
20
  */
21
- LocalRecommendationSource[LocalRecommendationSource["LLMFIT"] = 1] = "LLMFIT";
21
+ LocalRecommendationApplicability[LocalRecommendationApplicability["SUPPORTED"] = 1] = "SUPPORTED";
22
22
  /**
23
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_SOURCE_MEDIA_FIT = 2;
23
+ * @generated from protobuf enum value: LOCAL_RECOMMENDATION_APPLICABILITY_UNKNOWN = 2;
24
24
  */
25
- LocalRecommendationSource[LocalRecommendationSource["MEDIA_FIT"] = 2] = "MEDIA_FIT";
26
- })(LocalRecommendationSource || (LocalRecommendationSource = {}));
27
- /**
28
- * @generated from protobuf enum nimi.runtime.v1.LocalRecommendationFormat
29
- */
30
- export var LocalRecommendationFormat;
31
- (function (LocalRecommendationFormat) {
25
+ LocalRecommendationApplicability[LocalRecommendationApplicability["UNKNOWN"] = 2] = "UNKNOWN";
32
26
  /**
33
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FORMAT_UNSPECIFIED = 0;
27
+ * @generated from protobuf enum value: LOCAL_RECOMMENDATION_APPLICABILITY_UNSUPPORTED = 3;
34
28
  */
35
- LocalRecommendationFormat[LocalRecommendationFormat["UNSPECIFIED"] = 0] = "UNSPECIFIED";
36
- /**
37
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FORMAT_GGUF = 1;
38
- */
39
- LocalRecommendationFormat[LocalRecommendationFormat["GGUF"] = 1] = "GGUF";
40
- /**
41
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FORMAT_SAFETENSORS = 2;
42
- */
43
- LocalRecommendationFormat[LocalRecommendationFormat["SAFETENSORS"] = 2] = "SAFETENSORS";
44
- })(LocalRecommendationFormat || (LocalRecommendationFormat = {}));
29
+ LocalRecommendationApplicability[LocalRecommendationApplicability["UNSUPPORTED"] = 3] = "UNSUPPORTED";
30
+ })(LocalRecommendationApplicability || (LocalRecommendationApplicability = {}));
45
31
  /**
46
- * @generated from protobuf enum nimi.runtime.v1.LocalRecommendationTier
32
+ * @generated from protobuf enum nimi.runtime.v1.ModelAssetSourceAvailability
47
33
  */
48
- export var LocalRecommendationTier;
49
- (function (LocalRecommendationTier) {
50
- /**
51
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_TIER_UNSPECIFIED = 0;
52
- */
53
- LocalRecommendationTier[LocalRecommendationTier["UNSPECIFIED"] = 0] = "UNSPECIFIED";
54
- /**
55
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_TIER_RECOMMENDED = 1;
56
- */
57
- LocalRecommendationTier[LocalRecommendationTier["RECOMMENDED"] = 1] = "RECOMMENDED";
34
+ export var ModelAssetSourceAvailability;
35
+ (function (ModelAssetSourceAvailability) {
58
36
  /**
59
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_TIER_RUNNABLE = 2;
37
+ * @generated from protobuf enum value: MODEL_ASSET_SOURCE_AVAILABILITY_UNSPECIFIED = 0;
60
38
  */
61
- LocalRecommendationTier[LocalRecommendationTier["RUNNABLE"] = 2] = "RUNNABLE";
39
+ ModelAssetSourceAvailability[ModelAssetSourceAvailability["UNSPECIFIED"] = 0] = "UNSPECIFIED";
62
40
  /**
63
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_TIER_TIGHT = 3;
41
+ * @generated from protobuf enum value: MODEL_ASSET_SOURCE_AVAILABILITY_AVAILABLE = 1;
64
42
  */
65
- LocalRecommendationTier[LocalRecommendationTier["TIGHT"] = 3] = "TIGHT";
43
+ ModelAssetSourceAvailability[ModelAssetSourceAvailability["AVAILABLE"] = 1] = "AVAILABLE";
66
44
  /**
67
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_TIER_NOT_RECOMMENDED = 4;
45
+ * @generated from protobuf enum value: MODEL_ASSET_SOURCE_AVAILABILITY_UNAVAILABLE = 2;
68
46
  */
69
- LocalRecommendationTier[LocalRecommendationTier["NOT_RECOMMENDED"] = 4] = "NOT_RECOMMENDED";
70
- })(LocalRecommendationTier || (LocalRecommendationTier = {}));
47
+ ModelAssetSourceAvailability[ModelAssetSourceAvailability["UNAVAILABLE"] = 2] = "UNAVAILABLE";
48
+ })(ModelAssetSourceAvailability || (ModelAssetSourceAvailability = {}));
71
49
  /**
72
- * @generated from protobuf enum nimi.runtime.v1.LocalRecommendationConfidence
50
+ * @generated from protobuf enum nimi.runtime.v1.ModelAssetSourceFreshness
73
51
  */
74
- export var LocalRecommendationConfidence;
75
- (function (LocalRecommendationConfidence) {
76
- /**
77
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_CONFIDENCE_UNSPECIFIED = 0;
78
- */
79
- LocalRecommendationConfidence[LocalRecommendationConfidence["UNSPECIFIED"] = 0] = "UNSPECIFIED";
80
- /**
81
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_CONFIDENCE_HIGH = 1;
82
- */
83
- LocalRecommendationConfidence[LocalRecommendationConfidence["HIGH"] = 1] = "HIGH";
52
+ export var ModelAssetSourceFreshness;
53
+ (function (ModelAssetSourceFreshness) {
84
54
  /**
85
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_CONFIDENCE_MEDIUM = 2;
55
+ * @generated from protobuf enum value: MODEL_ASSET_SOURCE_FRESHNESS_UNSPECIFIED = 0;
86
56
  */
87
- LocalRecommendationConfidence[LocalRecommendationConfidence["MEDIUM"] = 2] = "MEDIUM";
88
- /**
89
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_CONFIDENCE_LOW = 3;
90
- */
91
- LocalRecommendationConfidence[LocalRecommendationConfidence["LOW"] = 3] = "LOW";
92
- })(LocalRecommendationConfidence || (LocalRecommendationConfidence = {}));
93
- /**
94
- * @generated from protobuf enum nimi.runtime.v1.LocalHostSupportClass
95
- */
96
- export var LocalHostSupportClass;
97
- (function (LocalHostSupportClass) {
57
+ ModelAssetSourceFreshness[ModelAssetSourceFreshness["UNSPECIFIED"] = 0] = "UNSPECIFIED";
98
58
  /**
99
- * @generated from protobuf enum value: LOCAL_HOST_SUPPORT_CLASS_UNSPECIFIED = 0;
59
+ * @generated from protobuf enum value: MODEL_ASSET_SOURCE_FRESHNESS_FRESH = 1;
100
60
  */
101
- LocalHostSupportClass[LocalHostSupportClass["UNSPECIFIED"] = 0] = "UNSPECIFIED";
61
+ ModelAssetSourceFreshness[ModelAssetSourceFreshness["FRESH"] = 1] = "FRESH";
102
62
  /**
103
- * @generated from protobuf enum value: LOCAL_HOST_SUPPORT_CLASS_SUPPORTED_SUPERVISED = 1;
63
+ * @generated from protobuf enum value: MODEL_ASSET_SOURCE_FRESHNESS_STALE = 2;
104
64
  */
105
- LocalHostSupportClass[LocalHostSupportClass["SUPPORTED_SUPERVISED"] = 1] = "SUPPORTED_SUPERVISED";
106
- /**
107
- * @generated from protobuf enum value: LOCAL_HOST_SUPPORT_CLASS_ATTACHED_ONLY = 2;
108
- */
109
- LocalHostSupportClass[LocalHostSupportClass["ATTACHED_ONLY"] = 2] = "ATTACHED_ONLY";
110
- /**
111
- * @generated from protobuf enum value: LOCAL_HOST_SUPPORT_CLASS_UNSUPPORTED = 3;
112
- */
113
- LocalHostSupportClass[LocalHostSupportClass["UNSUPPORTED"] = 3] = "UNSUPPORTED";
114
- })(LocalHostSupportClass || (LocalHostSupportClass = {}));
115
- /**
116
- * @generated from protobuf enum nimi.runtime.v1.LocalRecommendationBaseline
117
- */
118
- export var LocalRecommendationBaseline;
119
- (function (LocalRecommendationBaseline) {
120
- /**
121
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_BASELINE_UNSPECIFIED = 0;
122
- */
123
- LocalRecommendationBaseline[LocalRecommendationBaseline["UNSPECIFIED"] = 0] = "UNSPECIFIED";
124
- /**
125
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_BASELINE_IMAGE_DEFAULT_V1 = 1;
126
- */
127
- LocalRecommendationBaseline[LocalRecommendationBaseline["IMAGE_DEFAULT_V1"] = 1] = "IMAGE_DEFAULT_V1";
128
- /**
129
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_BASELINE_VIDEO_DEFAULT_V1 = 2;
130
- */
131
- LocalRecommendationBaseline[LocalRecommendationBaseline["VIDEO_DEFAULT_V1"] = 2] = "VIDEO_DEFAULT_V1";
132
- })(LocalRecommendationBaseline || (LocalRecommendationBaseline = {}));
133
- /**
134
- * @generated from protobuf enum nimi.runtime.v1.LocalRecommendationFeedCacheState
135
- */
136
- export var LocalRecommendationFeedCacheState;
137
- (function (LocalRecommendationFeedCacheState) {
138
- /**
139
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_CACHE_STATE_UNSPECIFIED = 0;
140
- */
141
- LocalRecommendationFeedCacheState[LocalRecommendationFeedCacheState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
142
- /**
143
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_CACHE_STATE_FRESH = 1;
144
- */
145
- LocalRecommendationFeedCacheState[LocalRecommendationFeedCacheState["FRESH"] = 1] = "FRESH";
146
- /**
147
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_CACHE_STATE_STALE = 2;
148
- */
149
- LocalRecommendationFeedCacheState[LocalRecommendationFeedCacheState["STALE"] = 2] = "STALE";
150
- /**
151
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_CACHE_STATE_EMPTY = 3;
152
- */
153
- LocalRecommendationFeedCacheState[LocalRecommendationFeedCacheState["EMPTY"] = 3] = "EMPTY";
154
- })(LocalRecommendationFeedCacheState || (LocalRecommendationFeedCacheState = {}));
155
- /**
156
- * @generated from protobuf enum nimi.runtime.v1.LocalRecommendationFeedCapability
157
- */
158
- export var LocalRecommendationFeedCapability;
159
- (function (LocalRecommendationFeedCapability) {
160
- /**
161
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_CAPABILITY_UNSPECIFIED = 0;
162
- */
163
- LocalRecommendationFeedCapability[LocalRecommendationFeedCapability["UNSPECIFIED"] = 0] = "UNSPECIFIED";
164
- /**
165
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_CAPABILITY_CHAT = 1;
166
- */
167
- LocalRecommendationFeedCapability[LocalRecommendationFeedCapability["CHAT"] = 1] = "CHAT";
168
- /**
169
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_CAPABILITY_IMAGE = 2;
170
- */
171
- LocalRecommendationFeedCapability[LocalRecommendationFeedCapability["IMAGE"] = 2] = "IMAGE";
172
- /**
173
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_CAPABILITY_VIDEO = 3;
174
- */
175
- LocalRecommendationFeedCapability[LocalRecommendationFeedCapability["VIDEO"] = 3] = "VIDEO";
176
- })(LocalRecommendationFeedCapability || (LocalRecommendationFeedCapability = {}));
65
+ ModelAssetSourceFreshness[ModelAssetSourceFreshness["STALE"] = 2] = "STALE";
66
+ })(ModelAssetSourceFreshness || (ModelAssetSourceFreshness = {}));
67
+ // @generated message type with reflection information, may provide speed optimized methods
68
+ class ModelAssetFeaturedSourceObservation$Type extends MessageType {
69
+ constructor() {
70
+ super("nimi.runtime.v1.ModelAssetFeaturedSourceObservation", [
71
+ { no: 1, name: "availability", kind: "enum", T: () => ["nimi.runtime.v1.ModelAssetSourceAvailability", ModelAssetSourceAvailability, "MODEL_ASSET_SOURCE_AVAILABILITY_"] },
72
+ { no: 2, name: "freshness", kind: "enum", T: () => ["nimi.runtime.v1.ModelAssetSourceFreshness", ModelAssetSourceFreshness, "MODEL_ASSET_SOURCE_FRESHNESS_"] },
73
+ { no: 3, name: "generation", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
74
+ { no: 4, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] }
75
+ ]);
76
+ }
77
+ create(value) {
78
+ const message = globalThis.Object.create((this.messagePrototype));
79
+ message.availability = 0;
80
+ message.freshness = 0;
81
+ message.generation = "";
82
+ message.reasonCode = 0;
83
+ if (value !== undefined)
84
+ reflectionMergePartial(this, message, value);
85
+ return message;
86
+ }
87
+ internalBinaryRead(reader, length, options, target) {
88
+ let message = target ?? this.create(), end = reader.pos + length;
89
+ while (reader.pos < end) {
90
+ let [fieldNo, wireType] = reader.tag();
91
+ switch (fieldNo) {
92
+ case /* nimi.runtime.v1.ModelAssetSourceAvailability availability */ 1:
93
+ message.availability = reader.int32();
94
+ break;
95
+ case /* nimi.runtime.v1.ModelAssetSourceFreshness freshness */ 2:
96
+ message.freshness = reader.int32();
97
+ break;
98
+ case /* string generation */ 3:
99
+ message.generation = reader.string();
100
+ break;
101
+ case /* nimi.runtime.v1.ReasonCode reason_code */ 4:
102
+ message.reasonCode = reader.int32();
103
+ break;
104
+ default:
105
+ let u = options.readUnknownField;
106
+ if (u === "throw")
107
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
108
+ let d = reader.skip(wireType);
109
+ if (u !== false)
110
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
111
+ }
112
+ }
113
+ return message;
114
+ }
115
+ internalBinaryWrite(message, writer, options) {
116
+ /* nimi.runtime.v1.ModelAssetSourceAvailability availability = 1; */
117
+ if (message.availability !== 0)
118
+ writer.tag(1, WireType.Varint).int32(message.availability);
119
+ /* nimi.runtime.v1.ModelAssetSourceFreshness freshness = 2; */
120
+ if (message.freshness !== 0)
121
+ writer.tag(2, WireType.Varint).int32(message.freshness);
122
+ /* string generation = 3; */
123
+ if (message.generation !== "")
124
+ writer.tag(3, WireType.LengthDelimited).string(message.generation);
125
+ /* nimi.runtime.v1.ReasonCode reason_code = 4; */
126
+ if (message.reasonCode !== 0)
127
+ writer.tag(4, WireType.Varint).int32(message.reasonCode);
128
+ let u = options.writeUnknownFields;
129
+ if (u !== false)
130
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
131
+ return writer;
132
+ }
133
+ }
177
134
  /**
178
- * @generated from protobuf enum nimi.runtime.v1.LocalRecommendationFeedSource
135
+ * @generated MessageType for protobuf message nimi.runtime.v1.ModelAssetFeaturedSourceObservation
179
136
  */
180
- export var LocalRecommendationFeedSource;
181
- (function (LocalRecommendationFeedSource) {
182
- /**
183
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_SOURCE_UNSPECIFIED = 0;
184
- */
185
- LocalRecommendationFeedSource[LocalRecommendationFeedSource["UNSPECIFIED"] = 0] = "UNSPECIFIED";
186
- /**
187
- * @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_SOURCE_MODEL_INDEX = 1;
188
- */
189
- LocalRecommendationFeedSource[LocalRecommendationFeedSource["MODEL_INDEX"] = 1] = "MODEL_INDEX";
190
- })(LocalRecommendationFeedSource || (LocalRecommendationFeedSource = {}));
137
+ export const ModelAssetFeaturedSourceObservation = new ModelAssetFeaturedSourceObservation$Type();
191
138
  // @generated message type with reflection information, may provide speed optimized methods
192
- class LocalCatalogRecommendation$Type extends MessageType {
139
+ class ModelAssetCatalogSearchResult$Type extends MessageType {
193
140
  constructor() {
194
- super("nimi.runtime.v1.LocalCatalogRecommendation", [
195
- { no: 1, name: "source", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationSource", LocalRecommendationSource, "LOCAL_RECOMMENDATION_SOURCE_"] },
196
- { no: 2, name: "format", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationFormat", LocalRecommendationFormat, "LOCAL_RECOMMENDATION_FORMAT_"] },
197
- { no: 3, name: "tier", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationTier", LocalRecommendationTier, "LOCAL_RECOMMENDATION_TIER_"] },
198
- { no: 4, name: "host_support_class", kind: "enum", T: () => ["nimi.runtime.v1.LocalHostSupportClass", LocalHostSupportClass, "LOCAL_HOST_SUPPORT_CLASS_"] },
199
- { no: 5, name: "confidence", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationConfidence", LocalRecommendationConfidence, "LOCAL_RECOMMENDATION_CONFIDENCE_"] },
200
- { no: 6, name: "reason_codes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
201
- { no: 7, name: "recommended_entry", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
202
- { no: 8, name: "fallback_entries", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
203
- { no: 10, name: "suggested_notes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
204
- { no: 11, name: "baseline", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationBaseline", LocalRecommendationBaseline, "LOCAL_RECOMMENDATION_BASELINE_"] }
141
+ super("nimi.runtime.v1.ModelAssetCatalogSearchResult", [
142
+ { no: 1, name: "model_locator", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
143
+ { no: 2, name: "source_label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
144
+ { no: 3, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
145
+ { no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
146
+ { no: 5, name: "categories", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
147
+ { no: 6, name: "model_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
148
+ { no: 7, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
149
+ { no: 8, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
150
+ { no: 9, name: "downloads", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
151
+ { no: 10, name: "likes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
152
+ { no: 11, name: "last_modified", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
153
+ { no: 12, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
154
+ { no: 13, name: "author", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
205
155
  ]);
206
156
  }
207
157
  create(value) {
208
158
  const message = globalThis.Object.create((this.messagePrototype));
209
- message.source = 0;
210
- message.format = 0;
211
- message.tier = 0;
212
- message.hostSupportClass = 0;
213
- message.confidence = 0;
214
- message.reasonCodes = [];
215
- message.recommendedEntry = "";
216
- message.fallbackEntries = [];
217
- message.suggestedNotes = [];
218
- message.baseline = 0;
159
+ message.modelLocator = "";
160
+ message.sourceLabel = "";
161
+ message.title = "";
162
+ message.description = "";
163
+ message.categories = [];
164
+ message.modelType = "";
165
+ message.license = "";
166
+ message.tags = [];
167
+ message.downloads = "0";
168
+ message.likes = "0";
169
+ message.lastModified = "";
170
+ message.verified = false;
171
+ message.author = "";
219
172
  if (value !== undefined)
220
173
  reflectionMergePartial(this, message, value);
221
174
  return message;
@@ -225,35 +178,44 @@ class LocalCatalogRecommendation$Type extends MessageType {
225
178
  while (reader.pos < end) {
226
179
  let [fieldNo, wireType] = reader.tag();
227
180
  switch (fieldNo) {
228
- case /* nimi.runtime.v1.LocalRecommendationSource source */ 1:
229
- message.source = reader.int32();
181
+ case /* string model_locator */ 1:
182
+ message.modelLocator = reader.string();
183
+ break;
184
+ case /* string source_label */ 2:
185
+ message.sourceLabel = reader.string();
186
+ break;
187
+ case /* string title */ 3:
188
+ message.title = reader.string();
230
189
  break;
231
- case /* nimi.runtime.v1.LocalRecommendationFormat format */ 2:
232
- message.format = reader.int32();
190
+ case /* string description */ 4:
191
+ message.description = reader.string();
233
192
  break;
234
- case /* nimi.runtime.v1.LocalRecommendationTier tier */ 3:
235
- message.tier = reader.int32();
193
+ case /* repeated string categories */ 5:
194
+ message.categories.push(reader.string());
236
195
  break;
237
- case /* nimi.runtime.v1.LocalHostSupportClass host_support_class */ 4:
238
- message.hostSupportClass = reader.int32();
196
+ case /* string model_type */ 6:
197
+ message.modelType = reader.string();
239
198
  break;
240
- case /* nimi.runtime.v1.LocalRecommendationConfidence confidence */ 5:
241
- message.confidence = reader.int32();
199
+ case /* string license */ 7:
200
+ message.license = reader.string();
242
201
  break;
243
- case /* repeated string reason_codes */ 6:
244
- message.reasonCodes.push(reader.string());
202
+ case /* repeated string tags */ 8:
203
+ message.tags.push(reader.string());
245
204
  break;
246
- case /* string recommended_entry */ 7:
247
- message.recommendedEntry = reader.string();
205
+ case /* int64 downloads */ 9:
206
+ message.downloads = reader.int64().toString();
248
207
  break;
249
- case /* repeated string fallback_entries */ 8:
250
- message.fallbackEntries.push(reader.string());
208
+ case /* int64 likes */ 10:
209
+ message.likes = reader.int64().toString();
210
+ break;
211
+ case /* string last_modified */ 11:
212
+ message.lastModified = reader.string();
251
213
  break;
252
- case /* repeated string suggested_notes */ 10:
253
- message.suggestedNotes.push(reader.string());
214
+ case /* bool verified */ 12:
215
+ message.verified = reader.bool();
254
216
  break;
255
- case /* nimi.runtime.v1.LocalRecommendationBaseline baseline */ 11:
256
- message.baseline = reader.int32();
217
+ case /* string author */ 13:
218
+ message.author = reader.string();
257
219
  break;
258
220
  default:
259
221
  let u = options.readUnknownField;
@@ -267,36 +229,45 @@ class LocalCatalogRecommendation$Type extends MessageType {
267
229
  return message;
268
230
  }
269
231
  internalBinaryWrite(message, writer, options) {
270
- /* nimi.runtime.v1.LocalRecommendationSource source = 1; */
271
- if (message.source !== 0)
272
- writer.tag(1, WireType.Varint).int32(message.source);
273
- /* nimi.runtime.v1.LocalRecommendationFormat format = 2; */
274
- if (message.format !== 0)
275
- writer.tag(2, WireType.Varint).int32(message.format);
276
- /* nimi.runtime.v1.LocalRecommendationTier tier = 3; */
277
- if (message.tier !== 0)
278
- writer.tag(3, WireType.Varint).int32(message.tier);
279
- /* nimi.runtime.v1.LocalHostSupportClass host_support_class = 4; */
280
- if (message.hostSupportClass !== 0)
281
- writer.tag(4, WireType.Varint).int32(message.hostSupportClass);
282
- /* nimi.runtime.v1.LocalRecommendationConfidence confidence = 5; */
283
- if (message.confidence !== 0)
284
- writer.tag(5, WireType.Varint).int32(message.confidence);
285
- /* repeated string reason_codes = 6; */
286
- for (let i = 0; i < message.reasonCodes.length; i++)
287
- writer.tag(6, WireType.LengthDelimited).string(message.reasonCodes[i]);
288
- /* string recommended_entry = 7; */
289
- if (message.recommendedEntry !== "")
290
- writer.tag(7, WireType.LengthDelimited).string(message.recommendedEntry);
291
- /* repeated string fallback_entries = 8; */
292
- for (let i = 0; i < message.fallbackEntries.length; i++)
293
- writer.tag(8, WireType.LengthDelimited).string(message.fallbackEntries[i]);
294
- /* repeated string suggested_notes = 10; */
295
- for (let i = 0; i < message.suggestedNotes.length; i++)
296
- writer.tag(10, WireType.LengthDelimited).string(message.suggestedNotes[i]);
297
- /* nimi.runtime.v1.LocalRecommendationBaseline baseline = 11; */
298
- if (message.baseline !== 0)
299
- writer.tag(11, WireType.Varint).int32(message.baseline);
232
+ /* string model_locator = 1; */
233
+ if (message.modelLocator !== "")
234
+ writer.tag(1, WireType.LengthDelimited).string(message.modelLocator);
235
+ /* string source_label = 2; */
236
+ if (message.sourceLabel !== "")
237
+ writer.tag(2, WireType.LengthDelimited).string(message.sourceLabel);
238
+ /* string title = 3; */
239
+ if (message.title !== "")
240
+ writer.tag(3, WireType.LengthDelimited).string(message.title);
241
+ /* string description = 4; */
242
+ if (message.description !== "")
243
+ writer.tag(4, WireType.LengthDelimited).string(message.description);
244
+ /* repeated string categories = 5; */
245
+ for (let i = 0; i < message.categories.length; i++)
246
+ writer.tag(5, WireType.LengthDelimited).string(message.categories[i]);
247
+ /* string model_type = 6; */
248
+ if (message.modelType !== "")
249
+ writer.tag(6, WireType.LengthDelimited).string(message.modelType);
250
+ /* string license = 7; */
251
+ if (message.license !== "")
252
+ writer.tag(7, WireType.LengthDelimited).string(message.license);
253
+ /* repeated string tags = 8; */
254
+ for (let i = 0; i < message.tags.length; i++)
255
+ writer.tag(8, WireType.LengthDelimited).string(message.tags[i]);
256
+ /* int64 downloads = 9; */
257
+ if (message.downloads !== "0")
258
+ writer.tag(9, WireType.Varint).int64(message.downloads);
259
+ /* int64 likes = 10; */
260
+ if (message.likes !== "0")
261
+ writer.tag(10, WireType.Varint).int64(message.likes);
262
+ /* string last_modified = 11; */
263
+ if (message.lastModified !== "")
264
+ writer.tag(11, WireType.LengthDelimited).string(message.lastModified);
265
+ /* bool verified = 12; */
266
+ if (message.verified !== false)
267
+ writer.tag(12, WireType.Varint).bool(message.verified);
268
+ /* string author = 13; */
269
+ if (message.author !== "")
270
+ writer.tag(13, WireType.LengthDelimited).string(message.author);
300
271
  let u = options.writeUnknownFields;
301
272
  if (u !== false)
302
273
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -304,29 +275,56 @@ class LocalCatalogRecommendation$Type extends MessageType {
304
275
  }
305
276
  }
306
277
  /**
307
- * @generated MessageType for protobuf message nimi.runtime.v1.LocalCatalogRecommendation
278
+ * @generated MessageType for protobuf message nimi.runtime.v1.ModelAssetCatalogSearchResult
308
279
  */
309
- export const LocalCatalogRecommendation = new LocalCatalogRecommendation$Type();
280
+ export const ModelAssetCatalogSearchResult = new ModelAssetCatalogSearchResult$Type();
310
281
  // @generated message type with reflection information, may provide speed optimized methods
311
- class LocalRecommendationFeedEntryDescriptor$Type extends MessageType {
282
+ class ModelAssetMarketCandidate$Type extends MessageType {
312
283
  constructor() {
313
- super("nimi.runtime.v1.LocalRecommendationFeedEntryDescriptor", [
314
- { no: 1, name: "entry_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
315
- { no: 2, name: "format", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationFormat", LocalRecommendationFormat, "LOCAL_RECOMMENDATION_FORMAT_"] },
316
- { no: 3, name: "entry", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
317
- { no: 4, name: "files", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
318
- { no: 5, name: "total_size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
319
- { no: 6, name: "sha256", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
284
+ super("nimi.runtime.v1.ModelAssetMarketCandidate", [
285
+ { no: 1, name: "offer_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
286
+ { no: 2, name: "source_label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
287
+ { no: 3, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
288
+ { no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
289
+ { no: 5, name: "categories", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
290
+ { no: 6, name: "model_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
291
+ { no: 7, name: "variant_label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
292
+ { no: 8, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
293
+ { no: 9, name: "total_size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
294
+ { no: 10, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
295
+ { no: 11, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
296
+ { no: 12, name: "downloads", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
297
+ { no: 13, name: "likes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
298
+ { no: 14, name: "last_modified", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
299
+ { no: 15, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
300
+ { no: 16, name: "installed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
301
+ { no: 17, name: "installable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
302
+ { no: 18, name: "featured_ordinal", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
303
+ { no: 19, name: "editorial_reason", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
304
+ { no: 20, name: "author", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
320
305
  ]);
321
306
  }
322
307
  create(value) {
323
308
  const message = globalThis.Object.create((this.messagePrototype));
324
- message.entryId = "";
325
- message.format = 0;
326
- message.entry = "";
327
- message.files = [];
309
+ message.offerRef = "";
310
+ message.sourceLabel = "";
311
+ message.title = "";
312
+ message.description = "";
313
+ message.categories = [];
314
+ message.modelType = "";
315
+ message.variantLabel = "";
316
+ message.format = "";
328
317
  message.totalSizeBytes = "0";
329
- message.sha256 = "";
318
+ message.license = "";
319
+ message.tags = [];
320
+ message.downloads = "0";
321
+ message.likes = "0";
322
+ message.lastModified = "";
323
+ message.verified = false;
324
+ message.installed = false;
325
+ message.installable = false;
326
+ message.editorialReason = "";
327
+ message.author = "";
330
328
  if (value !== undefined)
331
329
  reflectionMergePartial(this, message, value);
332
330
  return message;
@@ -336,23 +334,65 @@ class LocalRecommendationFeedEntryDescriptor$Type extends MessageType {
336
334
  while (reader.pos < end) {
337
335
  let [fieldNo, wireType] = reader.tag();
338
336
  switch (fieldNo) {
339
- case /* string entry_id */ 1:
340
- message.entryId = reader.string();
337
+ case /* string offer_ref */ 1:
338
+ message.offerRef = reader.string();
339
+ break;
340
+ case /* string source_label */ 2:
341
+ message.sourceLabel = reader.string();
342
+ break;
343
+ case /* string title */ 3:
344
+ message.title = reader.string();
345
+ break;
346
+ case /* string description */ 4:
347
+ message.description = reader.string();
348
+ break;
349
+ case /* repeated string categories */ 5:
350
+ message.categories.push(reader.string());
341
351
  break;
342
- case /* nimi.runtime.v1.LocalRecommendationFormat format */ 2:
343
- message.format = reader.int32();
352
+ case /* string model_type */ 6:
353
+ message.modelType = reader.string();
344
354
  break;
345
- case /* string entry */ 3:
346
- message.entry = reader.string();
355
+ case /* string variant_label */ 7:
356
+ message.variantLabel = reader.string();
347
357
  break;
348
- case /* repeated string files */ 4:
349
- message.files.push(reader.string());
358
+ case /* string format */ 8:
359
+ message.format = reader.string();
350
360
  break;
351
- case /* int64 total_size_bytes */ 5:
361
+ case /* int64 total_size_bytes */ 9:
352
362
  message.totalSizeBytes = reader.int64().toString();
353
363
  break;
354
- case /* string sha256 */ 6:
355
- message.sha256 = reader.string();
364
+ case /* string license */ 10:
365
+ message.license = reader.string();
366
+ break;
367
+ case /* repeated string tags */ 11:
368
+ message.tags.push(reader.string());
369
+ break;
370
+ case /* int64 downloads */ 12:
371
+ message.downloads = reader.int64().toString();
372
+ break;
373
+ case /* int64 likes */ 13:
374
+ message.likes = reader.int64().toString();
375
+ break;
376
+ case /* string last_modified */ 14:
377
+ message.lastModified = reader.string();
378
+ break;
379
+ case /* bool verified */ 15:
380
+ message.verified = reader.bool();
381
+ break;
382
+ case /* bool installed */ 16:
383
+ message.installed = reader.bool();
384
+ break;
385
+ case /* bool installable */ 17:
386
+ message.installable = reader.bool();
387
+ break;
388
+ case /* optional int32 featured_ordinal */ 18:
389
+ message.featuredOrdinal = reader.int32();
390
+ break;
391
+ case /* string editorial_reason */ 19:
392
+ message.editorialReason = reader.string();
393
+ break;
394
+ case /* string author */ 20:
395
+ message.author = reader.string();
356
396
  break;
357
397
  default:
358
398
  let u = options.readUnknownField;
@@ -366,24 +406,66 @@ class LocalRecommendationFeedEntryDescriptor$Type extends MessageType {
366
406
  return message;
367
407
  }
368
408
  internalBinaryWrite(message, writer, options) {
369
- /* string entry_id = 1; */
370
- if (message.entryId !== "")
371
- writer.tag(1, WireType.LengthDelimited).string(message.entryId);
372
- /* nimi.runtime.v1.LocalRecommendationFormat format = 2; */
373
- if (message.format !== 0)
374
- writer.tag(2, WireType.Varint).int32(message.format);
375
- /* string entry = 3; */
376
- if (message.entry !== "")
377
- writer.tag(3, WireType.LengthDelimited).string(message.entry);
378
- /* repeated string files = 4; */
379
- for (let i = 0; i < message.files.length; i++)
380
- writer.tag(4, WireType.LengthDelimited).string(message.files[i]);
381
- /* int64 total_size_bytes = 5; */
409
+ /* string offer_ref = 1; */
410
+ if (message.offerRef !== "")
411
+ writer.tag(1, WireType.LengthDelimited).string(message.offerRef);
412
+ /* string source_label = 2; */
413
+ if (message.sourceLabel !== "")
414
+ writer.tag(2, WireType.LengthDelimited).string(message.sourceLabel);
415
+ /* string title = 3; */
416
+ if (message.title !== "")
417
+ writer.tag(3, WireType.LengthDelimited).string(message.title);
418
+ /* string description = 4; */
419
+ if (message.description !== "")
420
+ writer.tag(4, WireType.LengthDelimited).string(message.description);
421
+ /* repeated string categories = 5; */
422
+ for (let i = 0; i < message.categories.length; i++)
423
+ writer.tag(5, WireType.LengthDelimited).string(message.categories[i]);
424
+ /* string model_type = 6; */
425
+ if (message.modelType !== "")
426
+ writer.tag(6, WireType.LengthDelimited).string(message.modelType);
427
+ /* string variant_label = 7; */
428
+ if (message.variantLabel !== "")
429
+ writer.tag(7, WireType.LengthDelimited).string(message.variantLabel);
430
+ /* string format = 8; */
431
+ if (message.format !== "")
432
+ writer.tag(8, WireType.LengthDelimited).string(message.format);
433
+ /* int64 total_size_bytes = 9; */
382
434
  if (message.totalSizeBytes !== "0")
383
- writer.tag(5, WireType.Varint).int64(message.totalSizeBytes);
384
- /* string sha256 = 6; */
385
- if (message.sha256 !== "")
386
- writer.tag(6, WireType.LengthDelimited).string(message.sha256);
435
+ writer.tag(9, WireType.Varint).int64(message.totalSizeBytes);
436
+ /* string license = 10; */
437
+ if (message.license !== "")
438
+ writer.tag(10, WireType.LengthDelimited).string(message.license);
439
+ /* repeated string tags = 11; */
440
+ for (let i = 0; i < message.tags.length; i++)
441
+ writer.tag(11, WireType.LengthDelimited).string(message.tags[i]);
442
+ /* int64 downloads = 12; */
443
+ if (message.downloads !== "0")
444
+ writer.tag(12, WireType.Varint).int64(message.downloads);
445
+ /* int64 likes = 13; */
446
+ if (message.likes !== "0")
447
+ writer.tag(13, WireType.Varint).int64(message.likes);
448
+ /* string last_modified = 14; */
449
+ if (message.lastModified !== "")
450
+ writer.tag(14, WireType.LengthDelimited).string(message.lastModified);
451
+ /* bool verified = 15; */
452
+ if (message.verified !== false)
453
+ writer.tag(15, WireType.Varint).bool(message.verified);
454
+ /* bool installed = 16; */
455
+ if (message.installed !== false)
456
+ writer.tag(16, WireType.Varint).bool(message.installed);
457
+ /* bool installable = 17; */
458
+ if (message.installable !== false)
459
+ writer.tag(17, WireType.Varint).bool(message.installable);
460
+ /* optional int32 featured_ordinal = 18; */
461
+ if (message.featuredOrdinal !== undefined)
462
+ writer.tag(18, WireType.Varint).int32(message.featuredOrdinal);
463
+ /* string editorial_reason = 19; */
464
+ if (message.editorialReason !== "")
465
+ writer.tag(19, WireType.LengthDelimited).string(message.editorialReason);
466
+ /* string author = 20; */
467
+ if (message.author !== "")
468
+ writer.tag(20, WireType.LengthDelimited).string(message.author);
387
469
  let u = options.writeUnknownFields;
388
470
  if (u !== false)
389
471
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -391,19 +473,21 @@ class LocalRecommendationFeedEntryDescriptor$Type extends MessageType {
391
473
  }
392
474
  }
393
475
  /**
394
- * @generated MessageType for protobuf message nimi.runtime.v1.LocalRecommendationFeedEntryDescriptor
476
+ * @generated MessageType for protobuf message nimi.runtime.v1.ModelAssetMarketCandidate
395
477
  */
396
- export const LocalRecommendationFeedEntryDescriptor = new LocalRecommendationFeedEntryDescriptor$Type();
478
+ export const ModelAssetMarketCandidate = new ModelAssetMarketCandidate$Type();
397
479
  // @generated message type with reflection information, may provide speed optimized methods
398
- class LocalRecommendationInstalledState$Type extends MessageType {
480
+ class ListFeaturedModelAssetsRequest$Type extends MessageType {
399
481
  constructor() {
400
- super("nimi.runtime.v1.LocalRecommendationInstalledState", [
401
- { no: 1, name: "installed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
482
+ super("nimi.runtime.v1.ListFeaturedModelAssetsRequest", [
483
+ { no: 1, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
484
+ { no: 2, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
402
485
  ]);
403
486
  }
404
487
  create(value) {
405
488
  const message = globalThis.Object.create((this.messagePrototype));
406
- message.installed = false;
489
+ message.category = "";
490
+ message.pageSize = 0;
407
491
  if (value !== undefined)
408
492
  reflectionMergePartial(this, message, value);
409
493
  return message;
@@ -413,8 +497,11 @@ class LocalRecommendationInstalledState$Type extends MessageType {
413
497
  while (reader.pos < end) {
414
498
  let [fieldNo, wireType] = reader.tag();
415
499
  switch (fieldNo) {
416
- case /* bool installed */ 1:
417
- message.installed = reader.bool();
500
+ case /* string category */ 1:
501
+ message.category = reader.string();
502
+ break;
503
+ case /* int32 page_size */ 2:
504
+ message.pageSize = reader.int32();
418
505
  break;
419
506
  default:
420
507
  let u = options.readUnknownField;
@@ -428,9 +515,12 @@ class LocalRecommendationInstalledState$Type extends MessageType {
428
515
  return message;
429
516
  }
430
517
  internalBinaryWrite(message, writer, options) {
431
- /* bool installed = 1; */
432
- if (message.installed !== false)
433
- writer.tag(1, WireType.Varint).bool(message.installed);
518
+ /* string category = 1; */
519
+ if (message.category !== "")
520
+ writer.tag(1, WireType.LengthDelimited).string(message.category);
521
+ /* int32 page_size = 2; */
522
+ if (message.pageSize !== 0)
523
+ writer.tag(2, WireType.Varint).int32(message.pageSize);
434
524
  let u = options.writeUnknownFields;
435
525
  if (u !== false)
436
526
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -438,23 +528,20 @@ class LocalRecommendationInstalledState$Type extends MessageType {
438
528
  }
439
529
  }
440
530
  /**
441
- * @generated MessageType for protobuf message nimi.runtime.v1.LocalRecommendationInstalledState
531
+ * @generated MessageType for protobuf message nimi.runtime.v1.ListFeaturedModelAssetsRequest
442
532
  */
443
- export const LocalRecommendationInstalledState = new LocalRecommendationInstalledState$Type();
533
+ export const ListFeaturedModelAssetsRequest = new ListFeaturedModelAssetsRequest$Type();
444
534
  // @generated message type with reflection information, may provide speed optimized methods
445
- class LocalRecommendationActionState$Type extends MessageType {
535
+ class ListFeaturedModelAssetsResponse$Type extends MessageType {
446
536
  constructor() {
447
- super("nimi.runtime.v1.LocalRecommendationActionState", [
448
- { no: 1, name: "can_review_install_plan", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
449
- { no: 2, name: "can_open_variants", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
450
- { no: 3, name: "can_open_model_asset", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
537
+ super("nimi.runtime.v1.ListFeaturedModelAssetsResponse", [
538
+ { no: 1, name: "source", kind: "message", T: () => ModelAssetFeaturedSourceObservation },
539
+ { no: 2, name: "items", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ModelAssetMarketCandidate }
451
540
  ]);
452
541
  }
453
542
  create(value) {
454
543
  const message = globalThis.Object.create((this.messagePrototype));
455
- message.canReviewInstallPlan = false;
456
- message.canOpenVariants = false;
457
- message.canOpenModelAsset = false;
544
+ message.items = [];
458
545
  if (value !== undefined)
459
546
  reflectionMergePartial(this, message, value);
460
547
  return message;
@@ -464,14 +551,11 @@ class LocalRecommendationActionState$Type extends MessageType {
464
551
  while (reader.pos < end) {
465
552
  let [fieldNo, wireType] = reader.tag();
466
553
  switch (fieldNo) {
467
- case /* bool can_review_install_plan */ 1:
468
- message.canReviewInstallPlan = reader.bool();
554
+ case /* nimi.runtime.v1.ModelAssetFeaturedSourceObservation source */ 1:
555
+ message.source = ModelAssetFeaturedSourceObservation.internalBinaryRead(reader, reader.uint32(), options, message.source);
469
556
  break;
470
- case /* bool can_open_variants */ 2:
471
- message.canOpenVariants = reader.bool();
472
- break;
473
- case /* bool can_open_model_asset */ 3:
474
- message.canOpenModelAsset = reader.bool();
557
+ case /* repeated nimi.runtime.v1.ModelAssetMarketCandidate items */ 2:
558
+ message.items.push(ModelAssetMarketCandidate.internalBinaryRead(reader, reader.uint32(), options));
475
559
  break;
476
560
  default:
477
561
  let u = options.readUnknownField;
@@ -485,15 +569,12 @@ class LocalRecommendationActionState$Type extends MessageType {
485
569
  return message;
486
570
  }
487
571
  internalBinaryWrite(message, writer, options) {
488
- /* bool can_review_install_plan = 1; */
489
- if (message.canReviewInstallPlan !== false)
490
- writer.tag(1, WireType.Varint).bool(message.canReviewInstallPlan);
491
- /* bool can_open_variants = 2; */
492
- if (message.canOpenVariants !== false)
493
- writer.tag(2, WireType.Varint).bool(message.canOpenVariants);
494
- /* bool can_open_model_asset = 3; */
495
- if (message.canOpenModelAsset !== false)
496
- writer.tag(3, WireType.Varint).bool(message.canOpenModelAsset);
572
+ /* nimi.runtime.v1.ModelAssetFeaturedSourceObservation source = 1; */
573
+ if (message.source)
574
+ ModelAssetFeaturedSourceObservation.internalBinaryWrite(message.source, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
575
+ /* repeated nimi.runtime.v1.ModelAssetMarketCandidate items = 2; */
576
+ for (let i = 0; i < message.items.length; i++)
577
+ ModelAssetMarketCandidate.internalBinaryWrite(message.items[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
497
578
  let u = options.writeUnknownFields;
498
579
  if (u !== false)
499
580
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -501,40 +582,23 @@ class LocalRecommendationActionState$Type extends MessageType {
501
582
  }
502
583
  }
503
584
  /**
504
- * @generated MessageType for protobuf message nimi.runtime.v1.LocalRecommendationActionState
585
+ * @generated MessageType for protobuf message nimi.runtime.v1.ListFeaturedModelAssetsResponse
505
586
  */
506
- export const LocalRecommendationActionState = new LocalRecommendationActionState$Type();
587
+ export const ListFeaturedModelAssetsResponse = new ListFeaturedModelAssetsResponse$Type();
507
588
  // @generated message type with reflection information, may provide speed optimized methods
508
- class LocalRecommendationInstallPayload$Type extends MessageType {
589
+ class FactoryProfileCapabilityApplicability$Type extends MessageType {
509
590
  constructor() {
510
- super("nimi.runtime.v1.LocalRecommendationInstallPayload", [
511
- { no: 1, name: "model_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
512
- { no: 2, name: "kind", kind: "enum", T: () => ["nimi.runtime.v1.LocalAssetKind", LocalAssetKind, "LOCAL_ASSET_KIND_"] },
513
- { no: 3, name: "repo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
514
- { no: 4, name: "revision", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
515
- { no: 5, name: "capabilities", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
516
- { no: 6, name: "engine", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
517
- { no: 7, name: "entry", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
518
- { no: 8, name: "files", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
519
- { no: 9, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
520
- { no: 10, name: "hashes", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
521
- { no: 11, name: "endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
522
- { no: 12, name: "engine_config", kind: "message", T: () => Struct }
591
+ super("nimi.runtime.v1.FactoryProfileCapabilityApplicability", [
592
+ { no: 1, name: "capability_contract", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
593
+ { no: 2, name: "applicability", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationApplicability", LocalRecommendationApplicability, "LOCAL_RECOMMENDATION_APPLICABILITY_"] },
594
+ { no: 3, name: "reasons", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] }
523
595
  ]);
524
596
  }
525
597
  create(value) {
526
598
  const message = globalThis.Object.create((this.messagePrototype));
527
- message.modelId = "";
528
- message.kind = 0;
529
- message.repo = "";
530
- message.revision = "";
531
- message.capabilities = [];
532
- message.engine = "";
533
- message.entry = "";
534
- message.files = [];
535
- message.license = "";
536
- message.hashes = {};
537
- message.endpoint = "";
599
+ message.capabilityContract = "";
600
+ message.applicability = 0;
601
+ message.reasons = [];
538
602
  if (value !== undefined)
539
603
  reflectionMergePartial(this, message, value);
540
604
  return message;
@@ -544,41 +608,18 @@ class LocalRecommendationInstallPayload$Type extends MessageType {
544
608
  while (reader.pos < end) {
545
609
  let [fieldNo, wireType] = reader.tag();
546
610
  switch (fieldNo) {
547
- case /* string model_id */ 1:
548
- message.modelId = reader.string();
611
+ case /* string capability_contract */ 1:
612
+ message.capabilityContract = reader.string();
549
613
  break;
550
- case /* nimi.runtime.v1.LocalAssetKind kind */ 2:
551
- message.kind = reader.int32();
614
+ case /* nimi.runtime.v1.LocalRecommendationApplicability applicability */ 2:
615
+ message.applicability = reader.int32();
552
616
  break;
553
- case /* string repo */ 3:
554
- message.repo = reader.string();
555
- break;
556
- case /* string revision */ 4:
557
- message.revision = reader.string();
558
- break;
559
- case /* repeated string capabilities */ 5:
560
- message.capabilities.push(reader.string());
561
- break;
562
- case /* string engine */ 6:
563
- message.engine = reader.string();
564
- break;
565
- case /* string entry */ 7:
566
- message.entry = reader.string();
567
- break;
568
- case /* repeated string files */ 8:
569
- message.files.push(reader.string());
570
- break;
571
- case /* string license */ 9:
572
- message.license = reader.string();
573
- break;
574
- case /* map<string, string> hashes */ 10:
575
- this.binaryReadMap10(message.hashes, reader, options);
576
- break;
577
- case /* string endpoint */ 11:
578
- message.endpoint = reader.string();
579
- break;
580
- case /* google.protobuf.Struct engine_config */ 12:
581
- message.engineConfig = Struct.internalBinaryRead(reader, reader.uint32(), options, message.engineConfig);
617
+ case /* repeated nimi.runtime.v1.ReasonCode reasons */ 3:
618
+ if (wireType === WireType.LengthDelimited)
619
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
620
+ message.reasons.push(reader.int32());
621
+ else
622
+ message.reasons.push(reader.int32());
582
623
  break;
583
624
  default:
584
625
  let u = options.readUnknownField;
@@ -591,59 +632,75 @@ class LocalRecommendationInstallPayload$Type extends MessageType {
591
632
  }
592
633
  return message;
593
634
  }
594
- binaryReadMap10(map, reader, options) {
595
- let len = reader.uint32(), end = reader.pos + len, key, val;
635
+ internalBinaryWrite(message, writer, options) {
636
+ /* string capability_contract = 1; */
637
+ if (message.capabilityContract !== "")
638
+ writer.tag(1, WireType.LengthDelimited).string(message.capabilityContract);
639
+ /* nimi.runtime.v1.LocalRecommendationApplicability applicability = 2; */
640
+ if (message.applicability !== 0)
641
+ writer.tag(2, WireType.Varint).int32(message.applicability);
642
+ /* repeated nimi.runtime.v1.ReasonCode reasons = 3; */
643
+ if (message.reasons.length) {
644
+ writer.tag(3, WireType.LengthDelimited).fork();
645
+ for (let i = 0; i < message.reasons.length; i++)
646
+ writer.int32(message.reasons[i]);
647
+ writer.join();
648
+ }
649
+ let u = options.writeUnknownFields;
650
+ if (u !== false)
651
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
652
+ return writer;
653
+ }
654
+ }
655
+ /**
656
+ * @generated MessageType for protobuf message nimi.runtime.v1.FactoryProfileCapabilityApplicability
657
+ */
658
+ export const FactoryProfileCapabilityApplicability = new FactoryProfileCapabilityApplicability$Type();
659
+ // @generated message type with reflection information, may provide speed optimized methods
660
+ class FactoryProfileRecommendation$Type extends MessageType {
661
+ constructor() {
662
+ super("nimi.runtime.v1.FactoryProfileRecommendation", [
663
+ { no: 1, name: "profile_alias", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
664
+ { no: 2, name: "capabilities", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FactoryProfileCapabilityApplicability }
665
+ ]);
666
+ }
667
+ create(value) {
668
+ const message = globalThis.Object.create((this.messagePrototype));
669
+ message.profileAlias = "";
670
+ message.capabilities = [];
671
+ if (value !== undefined)
672
+ reflectionMergePartial(this, message, value);
673
+ return message;
674
+ }
675
+ internalBinaryRead(reader, length, options, target) {
676
+ let message = target ?? this.create(), end = reader.pos + length;
596
677
  while (reader.pos < end) {
597
678
  let [fieldNo, wireType] = reader.tag();
598
679
  switch (fieldNo) {
599
- case 1:
600
- key = reader.string();
680
+ case /* string profile_alias */ 1:
681
+ message.profileAlias = reader.string();
601
682
  break;
602
- case 2:
603
- val = reader.string();
683
+ case /* repeated nimi.runtime.v1.FactoryProfileCapabilityApplicability capabilities */ 2:
684
+ message.capabilities.push(FactoryProfileCapabilityApplicability.internalBinaryRead(reader, reader.uint32(), options));
604
685
  break;
605
- default: throw new globalThis.Error("unknown map entry field for nimi.runtime.v1.LocalRecommendationInstallPayload.hashes");
686
+ default:
687
+ let u = options.readUnknownField;
688
+ if (u === "throw")
689
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
690
+ let d = reader.skip(wireType);
691
+ if (u !== false)
692
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
606
693
  }
607
694
  }
608
- map[key ?? ""] = val ?? "";
695
+ return message;
609
696
  }
610
697
  internalBinaryWrite(message, writer, options) {
611
- /* string model_id = 1; */
612
- if (message.modelId !== "")
613
- writer.tag(1, WireType.LengthDelimited).string(message.modelId);
614
- /* nimi.runtime.v1.LocalAssetKind kind = 2; */
615
- if (message.kind !== 0)
616
- writer.tag(2, WireType.Varint).int32(message.kind);
617
- /* string repo = 3; */
618
- if (message.repo !== "")
619
- writer.tag(3, WireType.LengthDelimited).string(message.repo);
620
- /* string revision = 4; */
621
- if (message.revision !== "")
622
- writer.tag(4, WireType.LengthDelimited).string(message.revision);
623
- /* repeated string capabilities = 5; */
698
+ /* string profile_alias = 1; */
699
+ if (message.profileAlias !== "")
700
+ writer.tag(1, WireType.LengthDelimited).string(message.profileAlias);
701
+ /* repeated nimi.runtime.v1.FactoryProfileCapabilityApplicability capabilities = 2; */
624
702
  for (let i = 0; i < message.capabilities.length; i++)
625
- writer.tag(5, WireType.LengthDelimited).string(message.capabilities[i]);
626
- /* string engine = 6; */
627
- if (message.engine !== "")
628
- writer.tag(6, WireType.LengthDelimited).string(message.engine);
629
- /* string entry = 7; */
630
- if (message.entry !== "")
631
- writer.tag(7, WireType.LengthDelimited).string(message.entry);
632
- /* repeated string files = 8; */
633
- for (let i = 0; i < message.files.length; i++)
634
- writer.tag(8, WireType.LengthDelimited).string(message.files[i]);
635
- /* string license = 9; */
636
- if (message.license !== "")
637
- writer.tag(9, WireType.LengthDelimited).string(message.license);
638
- /* map<string, string> hashes = 10; */
639
- for (let k of globalThis.Object.keys(message.hashes))
640
- writer.tag(10, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.hashes[k]).join();
641
- /* string endpoint = 11; */
642
- if (message.endpoint !== "")
643
- writer.tag(11, WireType.LengthDelimited).string(message.endpoint);
644
- /* google.protobuf.Struct engine_config = 12; */
645
- if (message.engineConfig)
646
- Struct.internalBinaryWrite(message.engineConfig, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
703
+ FactoryProfileCapabilityApplicability.internalBinaryWrite(message.capabilities[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
647
704
  let u = options.writeUnknownFields;
648
705
  if (u !== false)
649
706
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -651,51 +708,19 @@ class LocalRecommendationInstallPayload$Type extends MessageType {
651
708
  }
652
709
  }
653
710
  /**
654
- * @generated MessageType for protobuf message nimi.runtime.v1.LocalRecommendationInstallPayload
711
+ * @generated MessageType for protobuf message nimi.runtime.v1.FactoryProfileRecommendation
655
712
  */
656
- export const LocalRecommendationInstallPayload = new LocalRecommendationInstallPayload$Type();
713
+ export const FactoryProfileRecommendation = new FactoryProfileRecommendation$Type();
657
714
  // @generated message type with reflection information, may provide speed optimized methods
658
- class LocalRecommendationFeedItemDescriptor$Type extends MessageType {
715
+ class ListFactoryProfileRecommendationsRequest$Type extends MessageType {
659
716
  constructor() {
660
- super("nimi.runtime.v1.LocalRecommendationFeedItemDescriptor", [
661
- { no: 1, name: "item_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
662
- { no: 2, name: "source", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationFeedSource", LocalRecommendationFeedSource, "LOCAL_RECOMMENDATION_FEED_SOURCE_"] },
663
- { no: 3, name: "repo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
664
- { no: 4, name: "revision", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
665
- { no: 5, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
666
- { no: 6, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
667
- { no: 7, name: "capabilities", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
668
- { no: 8, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
669
- { no: 9, name: "formats", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["nimi.runtime.v1.LocalRecommendationFormat", LocalRecommendationFormat, "LOCAL_RECOMMENDATION_FORMAT_"] },
670
- { no: 10, name: "downloads", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
671
- { no: 11, name: "likes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
672
- { no: 12, name: "last_modified", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
673
- { no: 13, name: "preferred_engine", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
674
- { no: 14, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
675
- { no: 15, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalRecommendationFeedEntryDescriptor },
676
- { no: 16, name: "recommendation", kind: "message", T: () => LocalCatalogRecommendation },
677
- { no: 17, name: "installed_state", kind: "message", T: () => LocalRecommendationInstalledState },
678
- { no: 18, name: "action_state", kind: "message", T: () => LocalRecommendationActionState },
679
- { no: 19, name: "install_payload", kind: "message", T: () => LocalRecommendationInstallPayload }
717
+ super("nimi.runtime.v1.ListFactoryProfileRecommendationsRequest", [
718
+ { no: 1, name: "capability_contract", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
680
719
  ]);
681
720
  }
682
721
  create(value) {
683
722
  const message = globalThis.Object.create((this.messagePrototype));
684
- message.itemId = "";
685
- message.source = 0;
686
- message.repo = "";
687
- message.revision = "";
688
- message.title = "";
689
- message.description = "";
690
- message.capabilities = [];
691
- message.tags = [];
692
- message.formats = [];
693
- message.downloads = "0";
694
- message.likes = "0";
695
- message.lastModified = "";
696
- message.preferredEngine = "";
697
- message.verified = false;
698
- message.entries = [];
723
+ message.capabilityContract = "";
699
724
  if (value !== undefined)
700
725
  reflectionMergePartial(this, message, value);
701
726
  return message;
@@ -705,66 +730,8 @@ class LocalRecommendationFeedItemDescriptor$Type extends MessageType {
705
730
  while (reader.pos < end) {
706
731
  let [fieldNo, wireType] = reader.tag();
707
732
  switch (fieldNo) {
708
- case /* string item_id */ 1:
709
- message.itemId = reader.string();
710
- break;
711
- case /* nimi.runtime.v1.LocalRecommendationFeedSource source */ 2:
712
- message.source = reader.int32();
713
- break;
714
- case /* string repo */ 3:
715
- message.repo = reader.string();
716
- break;
717
- case /* string revision */ 4:
718
- message.revision = reader.string();
719
- break;
720
- case /* string title */ 5:
721
- message.title = reader.string();
722
- break;
723
- case /* string description */ 6:
724
- message.description = reader.string();
725
- break;
726
- case /* repeated string capabilities */ 7:
727
- message.capabilities.push(reader.string());
728
- break;
729
- case /* repeated string tags */ 8:
730
- message.tags.push(reader.string());
731
- break;
732
- case /* repeated nimi.runtime.v1.LocalRecommendationFormat formats */ 9:
733
- if (wireType === WireType.LengthDelimited)
734
- for (let e = reader.int32() + reader.pos; reader.pos < e;)
735
- message.formats.push(reader.int32());
736
- else
737
- message.formats.push(reader.int32());
738
- break;
739
- case /* int64 downloads */ 10:
740
- message.downloads = reader.int64().toString();
741
- break;
742
- case /* int64 likes */ 11:
743
- message.likes = reader.int64().toString();
744
- break;
745
- case /* string last_modified */ 12:
746
- message.lastModified = reader.string();
747
- break;
748
- case /* string preferred_engine */ 13:
749
- message.preferredEngine = reader.string();
750
- break;
751
- case /* bool verified */ 14:
752
- message.verified = reader.bool();
753
- break;
754
- case /* repeated nimi.runtime.v1.LocalRecommendationFeedEntryDescriptor entries */ 15:
755
- message.entries.push(LocalRecommendationFeedEntryDescriptor.internalBinaryRead(reader, reader.uint32(), options));
756
- break;
757
- case /* nimi.runtime.v1.LocalCatalogRecommendation recommendation */ 16:
758
- message.recommendation = LocalCatalogRecommendation.internalBinaryRead(reader, reader.uint32(), options, message.recommendation);
759
- break;
760
- case /* nimi.runtime.v1.LocalRecommendationInstalledState installed_state */ 17:
761
- message.installedState = LocalRecommendationInstalledState.internalBinaryRead(reader, reader.uint32(), options, message.installedState);
762
- break;
763
- case /* nimi.runtime.v1.LocalRecommendationActionState action_state */ 18:
764
- message.actionState = LocalRecommendationActionState.internalBinaryRead(reader, reader.uint32(), options, message.actionState);
765
- break;
766
- case /* nimi.runtime.v1.LocalRecommendationInstallPayload install_payload */ 19:
767
- message.installPayload = LocalRecommendationInstallPayload.internalBinaryRead(reader, reader.uint32(), options, message.installPayload);
733
+ case /* string capability_contract */ 1:
734
+ message.capabilityContract = reader.string();
768
735
  break;
769
736
  default:
770
737
  let u = options.readUnknownField;
@@ -778,67 +745,9 @@ class LocalRecommendationFeedItemDescriptor$Type extends MessageType {
778
745
  return message;
779
746
  }
780
747
  internalBinaryWrite(message, writer, options) {
781
- /* string item_id = 1; */
782
- if (message.itemId !== "")
783
- writer.tag(1, WireType.LengthDelimited).string(message.itemId);
784
- /* nimi.runtime.v1.LocalRecommendationFeedSource source = 2; */
785
- if (message.source !== 0)
786
- writer.tag(2, WireType.Varint).int32(message.source);
787
- /* string repo = 3; */
788
- if (message.repo !== "")
789
- writer.tag(3, WireType.LengthDelimited).string(message.repo);
790
- /* string revision = 4; */
791
- if (message.revision !== "")
792
- writer.tag(4, WireType.LengthDelimited).string(message.revision);
793
- /* string title = 5; */
794
- if (message.title !== "")
795
- writer.tag(5, WireType.LengthDelimited).string(message.title);
796
- /* string description = 6; */
797
- if (message.description !== "")
798
- writer.tag(6, WireType.LengthDelimited).string(message.description);
799
- /* repeated string capabilities = 7; */
800
- for (let i = 0; i < message.capabilities.length; i++)
801
- writer.tag(7, WireType.LengthDelimited).string(message.capabilities[i]);
802
- /* repeated string tags = 8; */
803
- for (let i = 0; i < message.tags.length; i++)
804
- writer.tag(8, WireType.LengthDelimited).string(message.tags[i]);
805
- /* repeated nimi.runtime.v1.LocalRecommendationFormat formats = 9; */
806
- if (message.formats.length) {
807
- writer.tag(9, WireType.LengthDelimited).fork();
808
- for (let i = 0; i < message.formats.length; i++)
809
- writer.int32(message.formats[i]);
810
- writer.join();
811
- }
812
- /* int64 downloads = 10; */
813
- if (message.downloads !== "0")
814
- writer.tag(10, WireType.Varint).int64(message.downloads);
815
- /* int64 likes = 11; */
816
- if (message.likes !== "0")
817
- writer.tag(11, WireType.Varint).int64(message.likes);
818
- /* string last_modified = 12; */
819
- if (message.lastModified !== "")
820
- writer.tag(12, WireType.LengthDelimited).string(message.lastModified);
821
- /* string preferred_engine = 13; */
822
- if (message.preferredEngine !== "")
823
- writer.tag(13, WireType.LengthDelimited).string(message.preferredEngine);
824
- /* bool verified = 14; */
825
- if (message.verified !== false)
826
- writer.tag(14, WireType.Varint).bool(message.verified);
827
- /* repeated nimi.runtime.v1.LocalRecommendationFeedEntryDescriptor entries = 15; */
828
- for (let i = 0; i < message.entries.length; i++)
829
- LocalRecommendationFeedEntryDescriptor.internalBinaryWrite(message.entries[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
830
- /* nimi.runtime.v1.LocalCatalogRecommendation recommendation = 16; */
831
- if (message.recommendation)
832
- LocalCatalogRecommendation.internalBinaryWrite(message.recommendation, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
833
- /* nimi.runtime.v1.LocalRecommendationInstalledState installed_state = 17; */
834
- if (message.installedState)
835
- LocalRecommendationInstalledState.internalBinaryWrite(message.installedState, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
836
- /* nimi.runtime.v1.LocalRecommendationActionState action_state = 18; */
837
- if (message.actionState)
838
- LocalRecommendationActionState.internalBinaryWrite(message.actionState, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
839
- /* nimi.runtime.v1.LocalRecommendationInstallPayload install_payload = 19; */
840
- if (message.installPayload)
841
- LocalRecommendationInstallPayload.internalBinaryWrite(message.installPayload, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
748
+ /* string capability_contract = 1; */
749
+ if (message.capabilityContract !== "")
750
+ writer.tag(1, WireType.LengthDelimited).string(message.capabilityContract);
842
751
  let u = options.writeUnknownFields;
843
752
  if (u !== false)
844
753
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -846,26 +755,19 @@ class LocalRecommendationFeedItemDescriptor$Type extends MessageType {
846
755
  }
847
756
  }
848
757
  /**
849
- * @generated MessageType for protobuf message nimi.runtime.v1.LocalRecommendationFeedItemDescriptor
758
+ * @generated MessageType for protobuf message nimi.runtime.v1.ListFactoryProfileRecommendationsRequest
850
759
  */
851
- export const LocalRecommendationFeedItemDescriptor = new LocalRecommendationFeedItemDescriptor$Type();
760
+ export const ListFactoryProfileRecommendationsRequest = new ListFactoryProfileRecommendationsRequest$Type();
852
761
  // @generated message type with reflection information, may provide speed optimized methods
853
- class LocalRecommendationFeedDescriptor$Type extends MessageType {
762
+ class ListFactoryProfileRecommendationsResponse$Type extends MessageType {
854
763
  constructor() {
855
- super("nimi.runtime.v1.LocalRecommendationFeedDescriptor", [
856
- { no: 1, name: "device_profile", kind: "message", T: () => LocalDeviceProfile },
857
- { no: 2, name: "active_capability", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationFeedCapability", LocalRecommendationFeedCapability, "LOCAL_RECOMMENDATION_FEED_CAPABILITY_"] },
858
- { no: 3, name: "generated_at", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
859
- { no: 4, name: "cache_state", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationFeedCacheState", LocalRecommendationFeedCacheState, "LOCAL_RECOMMENDATION_FEED_CACHE_STATE_"] },
860
- { no: 5, name: "items", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalRecommendationFeedItemDescriptor }
764
+ super("nimi.runtime.v1.ListFactoryProfileRecommendationsResponse", [
765
+ { no: 1, name: "profiles", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FactoryProfileRecommendation }
861
766
  ]);
862
767
  }
863
768
  create(value) {
864
769
  const message = globalThis.Object.create((this.messagePrototype));
865
- message.activeCapability = 0;
866
- message.generatedAt = "";
867
- message.cacheState = 0;
868
- message.items = [];
770
+ message.profiles = [];
869
771
  if (value !== undefined)
870
772
  reflectionMergePartial(this, message, value);
871
773
  return message;
@@ -875,20 +777,8 @@ class LocalRecommendationFeedDescriptor$Type extends MessageType {
875
777
  while (reader.pos < end) {
876
778
  let [fieldNo, wireType] = reader.tag();
877
779
  switch (fieldNo) {
878
- case /* nimi.runtime.v1.LocalDeviceProfile device_profile */ 1:
879
- message.deviceProfile = LocalDeviceProfile.internalBinaryRead(reader, reader.uint32(), options, message.deviceProfile);
880
- break;
881
- case /* nimi.runtime.v1.LocalRecommendationFeedCapability active_capability */ 2:
882
- message.activeCapability = reader.int32();
883
- break;
884
- case /* string generated_at */ 3:
885
- message.generatedAt = reader.string();
886
- break;
887
- case /* nimi.runtime.v1.LocalRecommendationFeedCacheState cache_state */ 4:
888
- message.cacheState = reader.int32();
889
- break;
890
- case /* repeated nimi.runtime.v1.LocalRecommendationFeedItemDescriptor items */ 5:
891
- message.items.push(LocalRecommendationFeedItemDescriptor.internalBinaryRead(reader, reader.uint32(), options));
780
+ case /* repeated nimi.runtime.v1.FactoryProfileRecommendation profiles */ 1:
781
+ message.profiles.push(FactoryProfileRecommendation.internalBinaryRead(reader, reader.uint32(), options));
892
782
  break;
893
783
  default:
894
784
  let u = options.readUnknownField;
@@ -902,21 +792,9 @@ class LocalRecommendationFeedDescriptor$Type extends MessageType {
902
792
  return message;
903
793
  }
904
794
  internalBinaryWrite(message, writer, options) {
905
- /* nimi.runtime.v1.LocalDeviceProfile device_profile = 1; */
906
- if (message.deviceProfile)
907
- LocalDeviceProfile.internalBinaryWrite(message.deviceProfile, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
908
- /* nimi.runtime.v1.LocalRecommendationFeedCapability active_capability = 2; */
909
- if (message.activeCapability !== 0)
910
- writer.tag(2, WireType.Varint).int32(message.activeCapability);
911
- /* string generated_at = 3; */
912
- if (message.generatedAt !== "")
913
- writer.tag(3, WireType.LengthDelimited).string(message.generatedAt);
914
- /* nimi.runtime.v1.LocalRecommendationFeedCacheState cache_state = 4; */
915
- if (message.cacheState !== 0)
916
- writer.tag(4, WireType.Varint).int32(message.cacheState);
917
- /* repeated nimi.runtime.v1.LocalRecommendationFeedItemDescriptor items = 5; */
918
- for (let i = 0; i < message.items.length; i++)
919
- LocalRecommendationFeedItemDescriptor.internalBinaryWrite(message.items[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
795
+ /* repeated nimi.runtime.v1.FactoryProfileRecommendation profiles = 1; */
796
+ for (let i = 0; i < message.profiles.length; i++)
797
+ FactoryProfileRecommendation.internalBinaryWrite(message.profiles[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
920
798
  let u = options.writeUnknownFields;
921
799
  if (u !== false)
922
800
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -924,7 +802,7 @@ class LocalRecommendationFeedDescriptor$Type extends MessageType {
924
802
  }
925
803
  }
926
804
  /**
927
- * @generated MessageType for protobuf message nimi.runtime.v1.LocalRecommendationFeedDescriptor
805
+ * @generated MessageType for protobuf message nimi.runtime.v1.ListFactoryProfileRecommendationsResponse
928
806
  */
929
- export const LocalRecommendationFeedDescriptor = new LocalRecommendationFeedDescriptor$Type();
807
+ export const ListFactoryProfileRecommendationsResponse = new ListFactoryProfileRecommendationsResponse$Type();
930
808
  //# sourceMappingURL=local_runtime_recommendation.js.map