@nimiplatform/sdk 0.22.2 → 0.24.0-rc.11

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 (319) hide show
  1. package/CHANGELOG.md +215 -0
  2. package/README.md +32 -1
  3. package/dist/core/ai/capability-configuration.d.ts +36 -1
  4. package/dist/core/ai/capability-configuration.d.ts.map +1 -1
  5. package/dist/core/ai/capability-configuration.js +59 -3
  6. package/dist/core/ai/capability-configuration.js.map +1 -1
  7. package/dist/core/ai/index.d.ts +1 -0
  8. package/dist/core/ai/index.d.ts.map +1 -1
  9. package/dist/core/ai/index.js +1 -0
  10. package/dist/core/ai/index.js.map +1 -1
  11. package/dist/core/ai/local-app-model.d.ts +3 -0
  12. package/dist/core/ai/local-app-model.d.ts.map +1 -1
  13. package/dist/core/ai/local-app-model.js +7 -7
  14. package/dist/core/ai/local-app-model.js.map +1 -1
  15. package/dist/core/ai/reasoning.d.ts +3 -1
  16. package/dist/core/ai/reasoning.d.ts.map +1 -1
  17. package/dist/core/ai/reasoning.js +2 -1
  18. package/dist/core/ai/reasoning.js.map +1 -1
  19. package/dist/core/app/desktop-open.d.ts +17 -4
  20. package/dist/core/app/desktop-open.d.ts.map +1 -1
  21. package/dist/core/app/desktop-open.js +46 -6
  22. package/dist/core/app/desktop-open.js.map +1 -1
  23. package/dist/core/app/index.d.ts +8 -2
  24. package/dist/core/app/index.d.ts.map +1 -1
  25. package/dist/core/app/index.js +3 -0
  26. package/dist/core/app/index.js.map +1 -1
  27. package/dist/core/app/local-app-agent-work-input.d.ts +1 -1
  28. package/dist/core/app/local-app-agent-work-input.d.ts.map +1 -1
  29. package/dist/core/app/local-app-agent-work-input.js +5 -2
  30. package/dist/core/app/local-app-agent-work-input.js.map +1 -1
  31. package/dist/core/app/local-app-character-discovery.d.ts +44 -0
  32. package/dist/core/app/local-app-character-discovery.d.ts.map +1 -0
  33. package/dist/core/app/local-app-character-discovery.js +82 -0
  34. package/dist/core/app/local-app-character-discovery.js.map +1 -0
  35. package/dist/core/app/local-app-runtime-platform-activity-view.d.ts +2 -0
  36. package/dist/core/app/local-app-runtime-platform-activity-view.d.ts.map +1 -1
  37. package/dist/core/app/local-app-runtime-platform-activity-view.js +4 -1
  38. package/dist/core/app/local-app-runtime-platform-activity-view.js.map +1 -1
  39. package/dist/core/app/local-app-runtime-platform-activity.d.ts +2 -2
  40. package/dist/core/app/local-app-runtime-platform-activity.d.ts.map +1 -1
  41. package/dist/core/app/local-app-runtime-platform-activity.js +2 -0
  42. package/dist/core/app/local-app-runtime-platform-activity.js.map +1 -1
  43. package/dist/core/app/local-app-runtime-platform-agent-work.js +1 -1
  44. package/dist/core/app/local-app-runtime-platform-agent-work.js.map +1 -1
  45. package/dist/core/app/local-app-runtime-platform-ai-config.d.ts +3 -3
  46. package/dist/core/app/local-app-runtime-platform-ai-config.d.ts.map +1 -1
  47. package/dist/core/app/local-app-runtime-platform-ai-config.js +25 -7
  48. package/dist/core/app/local-app-runtime-platform-ai-config.js.map +1 -1
  49. package/dist/core/app/local-app-runtime-platform-ai.d.ts +32 -3
  50. package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
  51. package/dist/core/app/local-app-runtime-platform-ai.js +128 -28
  52. package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
  53. package/dist/core/app/local-app-runtime-platform-assets.d.ts +2 -0
  54. package/dist/core/app/local-app-runtime-platform-assets.d.ts.map +1 -1
  55. package/dist/core/app/local-app-runtime-platform-assets.js +5 -2
  56. package/dist/core/app/local-app-runtime-platform-assets.js.map +1 -1
  57. package/dist/core/app/local-app-runtime-platform-direct-agent-work.d.ts.map +1 -1
  58. package/dist/core/app/local-app-runtime-platform-direct-agent-work.js +15 -4
  59. package/dist/core/app/local-app-runtime-platform-direct-agent-work.js.map +1 -1
  60. package/dist/core/app/local-app-runtime-platform-direct-ai-realtime.d.ts.map +1 -1
  61. package/dist/core/app/local-app-runtime-platform-direct-ai-realtime.js +33 -4
  62. package/dist/core/app/local-app-runtime-platform-direct-ai-realtime.js.map +1 -1
  63. package/dist/core/app/local-app-runtime-platform-direct-realtime-shared.d.ts.map +1 -1
  64. package/dist/core/app/local-app-runtime-platform-direct-realtime-shared.js +1 -0
  65. package/dist/core/app/local-app-runtime-platform-direct-realtime-shared.js.map +1 -1
  66. package/dist/core/app/local-app-runtime-platform-integration.d.ts +13 -0
  67. package/dist/core/app/local-app-runtime-platform-integration.d.ts.map +1 -1
  68. package/dist/core/app/local-app-runtime-platform-integration.js +89 -15
  69. package/dist/core/app/local-app-runtime-platform-integration.js.map +1 -1
  70. package/dist/core/app/local-app-runtime-platform-realm-realtime.js +1 -1
  71. package/dist/core/app/local-app-runtime-platform-realm-realtime.js.map +1 -1
  72. package/dist/core/app/local-app-runtime-platform-realtime.d.ts +55 -10
  73. package/dist/core/app/local-app-runtime-platform-realtime.d.ts.map +1 -1
  74. package/dist/core/app/local-app-runtime-platform-realtime.js +66 -23
  75. package/dist/core/app/local-app-runtime-platform-realtime.js.map +1 -1
  76. package/dist/core/app/local-app-runtime-platform-utopia.d.ts +208 -0
  77. package/dist/core/app/local-app-runtime-platform-utopia.d.ts.map +1 -0
  78. package/dist/core/app/local-app-runtime-platform-utopia.js +629 -0
  79. package/dist/core/app/local-app-runtime-platform-utopia.js.map +1 -0
  80. package/dist/core/app/local-app-runtime-platform-world-creator.d.ts +2 -0
  81. package/dist/core/app/local-app-runtime-platform-world-creator.d.ts.map +1 -1
  82. package/dist/core/app/local-app-runtime-platform-world-creator.js +8 -6
  83. package/dist/core/app/local-app-runtime-platform-world-creator.js.map +1 -1
  84. package/dist/core/app/local-app-runtime-platform.d.ts +7 -3
  85. package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
  86. package/dist/core/app/local-app-runtime-platform.js +22 -112
  87. package/dist/core/app/local-app-runtime-platform.js.map +1 -1
  88. package/dist/core/app/local-app-text-candidate.d.ts +3 -0
  89. package/dist/core/app/local-app-text-candidate.d.ts.map +1 -0
  90. package/dist/core/app/local-app-text-candidate.js +100 -0
  91. package/dist/core/app/local-app-text-candidate.js.map +1 -0
  92. package/dist/core/app/local-app-text.d.ts +6 -0
  93. package/dist/core/app/local-app-text.d.ts.map +1 -1
  94. package/dist/core/app/local-app-text.js +19 -4
  95. package/dist/core/app/local-app-text.js.map +1 -1
  96. package/dist/core/app/portable-client.d.ts +17 -0
  97. package/dist/core/app/portable-client.d.ts.map +1 -0
  98. package/dist/core/app/portable-client.js +2 -0
  99. package/dist/core/app/portable-client.js.map +1 -0
  100. package/dist/core/app/runtime-account-realm-source-readiness.generated.d.ts +2 -2
  101. package/dist/core/app/runtime-account-realm-source-readiness.generated.d.ts.map +1 -1
  102. package/dist/core/app/runtime-account-realm-source-readiness.generated.js +11 -1
  103. package/dist/core/app/runtime-account-realm-source-readiness.generated.js.map +1 -1
  104. package/dist/core/contracts/primitives.d.ts +8 -0
  105. package/dist/core/contracts/primitives.d.ts.map +1 -1
  106. package/dist/core/contracts/primitives.js.map +1 -1
  107. package/dist/core-client/index.d.ts +3 -1
  108. package/dist/core-client/index.d.ts.map +1 -1
  109. package/dist/core-client/index.js +13 -2
  110. package/dist/core-client/index.js.map +1 -1
  111. package/dist/core-generated/realm-client.d.ts.map +1 -1
  112. package/dist/core-generated/realm-client.js +166 -4
  113. package/dist/core-generated/realm-client.js.map +1 -1
  114. package/dist/core-generated/realm-typed-client.d.ts +715 -28
  115. package/dist/core-generated/realm-typed-client.d.ts.map +1 -1
  116. package/dist/core-generated/realm-typed-client.js +333 -6
  117. package/dist/core-generated/realm-typed-client.js.map +1 -1
  118. package/dist/core-generated/runtime-client.d.ts.map +1 -1
  119. package/dist/core-generated/runtime-client.js +112 -0
  120. package/dist/core-generated/runtime-client.js.map +1 -1
  121. package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts +137 -0
  122. package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts.map +1 -1
  123. package/dist/core-generated/runtime-protobuf/runtime/v1/account.js +314 -1
  124. package/dist/core-generated/runtime-protobuf/runtime/v1/account.js.map +1 -1
  125. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts +154 -0
  126. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts.map +1 -1
  127. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js +343 -0
  128. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js.map +1 -1
  129. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_utopia.d.ts +985 -0
  130. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_utopia.d.ts.map +1 -0
  131. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_utopia.js +2132 -0
  132. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_utopia.js.map +1 -0
  133. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +322 -3
  134. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
  135. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +578 -8
  136. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
  137. package/dist/core-generated/runtime-protobuf/runtime/v1/ai_realtime.d.ts +229 -1
  138. package/dist/core-generated/runtime-protobuf/runtime/v1/ai_realtime.d.ts.map +1 -1
  139. package/dist/core-generated/runtime-protobuf/runtime/v1/ai_realtime.js +432 -7
  140. package/dist/core-generated/runtime-protobuf/runtime/v1/ai_realtime.js.map +1 -1
  141. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +313 -0
  142. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
  143. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +708 -3
  144. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
  145. package/dist/core-generated/runtime-protobuf/runtime/v1/audit.d.ts +31 -0
  146. package/dist/core-generated/runtime-protobuf/runtime/v1/audit.d.ts.map +1 -1
  147. package/dist/core-generated/runtime-protobuf/runtime/v1/audit.js +62 -1
  148. package/dist/core-generated/runtime-protobuf/runtime/v1/audit.js.map +1 -1
  149. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts +33 -0
  150. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts.map +1 -1
  151. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js +76 -0
  152. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js.map +1 -1
  153. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +155 -0
  154. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts.map +1 -1
  155. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js +290 -6
  156. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
  157. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +31 -1
  158. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
  159. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +30 -0
  160. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
  161. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.d.ts +298 -0
  162. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.d.ts.map +1 -1
  163. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js +611 -4
  164. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js.map +1 -1
  165. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts +146 -1
  166. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts.map +1 -1
  167. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js +296 -4
  168. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js.map +1 -1
  169. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +12 -0
  170. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
  171. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +25 -1
  172. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
  173. package/dist/core-generated/runtime-protobuf/runtime/v1/realtime_control.d.ts +5 -1
  174. package/dist/core-generated/runtime-protobuf/runtime/v1/realtime_control.d.ts.map +1 -1
  175. package/dist/core-generated/runtime-protobuf/runtime/v1/realtime_control.js +4 -0
  176. package/dist/core-generated/runtime-protobuf/runtime/v1/realtime_control.js.map +1 -1
  177. package/dist/core-generated/runtime-protobuf/runtime/v1/remote_access.d.ts +552 -0
  178. package/dist/core-generated/runtime-protobuf/runtime/v1/remote_access.d.ts.map +1 -0
  179. package/dist/core-generated/runtime-protobuf/runtime/v1/remote_access.js +1097 -0
  180. package/dist/core-generated/runtime-protobuf/runtime/v1/remote_access.js.map +1 -0
  181. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts +4 -3
  182. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts.map +1 -1
  183. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.js.map +1 -1
  184. package/dist/core-generated/runtime-public-client.d.ts.map +1 -1
  185. package/dist/core-generated/runtime-public-client.js +104 -0
  186. package/dist/core-generated/runtime-public-client.js.map +1 -1
  187. package/dist/core-generated/runtime-public-rpc-auth-posture.d.ts.map +1 -1
  188. package/dist/core-generated/runtime-public-rpc-auth-posture.js +13 -0
  189. package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
  190. package/dist/core-generated/runtime-public-wire-codecs.d.ts +18 -3
  191. package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
  192. package/dist/core-generated/runtime-public-wire-codecs.js +18 -3
  193. package/dist/core-generated/runtime-public-wire-codecs.js.map +1 -1
  194. package/dist/core-generated/runtime-rpc-auth-posture.d.ts.map +1 -1
  195. package/dist/core-generated/runtime-rpc-auth-posture.js +14 -0
  196. package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
  197. package/dist/core-generated/runtime-typed-client.d.ts +37 -18
  198. package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
  199. package/dist/core-generated/runtime-typed-client.js +159 -8
  200. package/dist/core-generated/runtime-typed-client.js.map +1 -1
  201. package/dist/core-generated/runtime-wire-codecs.d.ts +20 -4
  202. package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
  203. package/dist/core-generated/runtime-wire-codecs.js +20 -4
  204. package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
  205. package/dist/features/generation/runtime-image-generation.d.ts +8 -1
  206. package/dist/features/generation/runtime-image-generation.d.ts.map +1 -1
  207. package/dist/features/generation/runtime-image-generation.js +7 -0
  208. package/dist/features/generation/runtime-image-generation.js.map +1 -1
  209. package/dist/features/generation/runtime-scenarios.d.ts +8 -1
  210. package/dist/features/generation/runtime-scenarios.d.ts.map +1 -1
  211. package/dist/features/generation/runtime-scenarios.js +17 -1
  212. package/dist/features/generation/runtime-scenarios.js.map +1 -1
  213. package/dist/realm/account-settings.d.ts +2 -2
  214. package/dist/realm/account-settings.d.ts.map +1 -1
  215. package/dist/realm/auth.d.ts.map +1 -1
  216. package/dist/realm/auth.js +1 -0
  217. package/dist/realm/auth.js.map +1 -1
  218. package/dist/realm/index.d.ts +5 -4
  219. package/dist/realm/index.d.ts.map +1 -1
  220. package/dist/realm/index.js +7 -1
  221. package/dist/realm/index.js.map +1 -1
  222. package/dist/realm/media-delivery.d.ts.map +1 -1
  223. package/dist/realm/media-delivery.js +15 -7
  224. package/dist/realm/media-delivery.js.map +1 -1
  225. package/dist/realm/notifications.d.ts +2 -0
  226. package/dist/realm/notifications.d.ts.map +1 -1
  227. package/dist/realm/notifications.js +8 -3
  228. package/dist/realm/notifications.js.map +1 -1
  229. package/dist/realm/resource-upload.d.ts +13 -0
  230. package/dist/realm/resource-upload.d.ts.map +1 -1
  231. package/dist/realm/resource-upload.js +35 -21
  232. package/dist/realm/resource-upload.js.map +1 -1
  233. package/dist/realm/runtime-client.d.ts +57 -0
  234. package/dist/realm/runtime-client.d.ts.map +1 -0
  235. package/dist/realm/runtime-client.js +241 -0
  236. package/dist/realm/runtime-client.js.map +1 -0
  237. package/dist/realm/social-types.d.ts +1 -1
  238. package/dist/realm/social-types.d.ts.map +1 -1
  239. package/dist/realm/social.d.ts +17 -3
  240. package/dist/realm/social.d.ts.map +1 -1
  241. package/dist/realm/social.js +66 -114
  242. package/dist/realm/social.js.map +1 -1
  243. package/dist/runtime/config-projections.d.ts +25 -0
  244. package/dist/runtime/config-projections.d.ts.map +1 -1
  245. package/dist/runtime/config-projections.js +4 -0
  246. package/dist/runtime/config-projections.js.map +1 -1
  247. package/dist/runtime/connector-inventory.d.ts +14 -3
  248. package/dist/runtime/connector-inventory.d.ts.map +1 -1
  249. package/dist/runtime/connector-inventory.js +13 -0
  250. package/dist/runtime/connector-inventory.js.map +1 -1
  251. package/dist/runtime/desktop-first-party-runtime.d.ts +2 -0
  252. package/dist/runtime/desktop-first-party-runtime.d.ts.map +1 -1
  253. package/dist/runtime/desktop-first-party-runtime.js +12 -0
  254. package/dist/runtime/desktop-first-party-runtime.js.map +1 -1
  255. package/dist/runtime/electron-ipc.d.ts.map +1 -1
  256. package/dist/runtime/electron-ipc.js +61 -26
  257. package/dist/runtime/electron-ipc.js.map +1 -1
  258. package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +275 -1
  259. package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
  260. package/dist/runtime/first-party-protected-runtime-profiles.generated.js +74 -1
  261. package/dist/runtime/first-party-protected-runtime-profiles.generated.js.map +1 -1
  262. package/dist/runtime/index.d.ts +2 -0
  263. package/dist/runtime/index.d.ts.map +1 -1
  264. package/dist/runtime/index.js +1 -0
  265. package/dist/runtime/index.js.map +1 -1
  266. package/dist/runtime/reason-messages.d.ts +5 -0
  267. package/dist/runtime/reason-messages.d.ts.map +1 -1
  268. package/dist/runtime/reason-messages.js +10 -0
  269. package/dist/runtime/reason-messages.js.map +1 -1
  270. package/dist/runtime/remote-app.d.ts +64 -0
  271. package/dist/runtime/remote-app.d.ts.map +1 -0
  272. package/dist/runtime/remote-app.js +186 -0
  273. package/dist/runtime/remote-app.js.map +1 -0
  274. package/dist/runtime/remote-data-channel.d.ts +25 -0
  275. package/dist/runtime/remote-data-channel.d.ts.map +1 -0
  276. package/dist/runtime/remote-data-channel.js +406 -0
  277. package/dist/runtime/remote-data-channel.js.map +1 -0
  278. package/dist/runtime/remote-realm.d.ts +9 -0
  279. package/dist/runtime/remote-realm.d.ts.map +1 -0
  280. package/dist/runtime/remote-realm.js +82 -0
  281. package/dist/runtime/remote-realm.js.map +1 -0
  282. package/dist/runtime/remote.d.ts +115 -0
  283. package/dist/runtime/remote.d.ts.map +1 -0
  284. package/dist/runtime/remote.js +177 -0
  285. package/dist/runtime/remote.js.map +1 -0
  286. package/dist/runtime/runtime-agent-consume-streams.d.ts.map +1 -1
  287. package/dist/runtime/runtime-agent-consume-streams.js +37 -15
  288. package/dist/runtime/runtime-agent-consume-streams.js.map +1 -1
  289. package/dist/runtime/runtime-agent-context-projections.d.ts +1 -1
  290. package/dist/runtime/runtime-agent-context-projections.d.ts.map +1 -1
  291. package/dist/runtime/runtime-agent-context-projections.js +5 -1
  292. package/dist/runtime/runtime-agent-context-projections.js.map +1 -1
  293. package/dist/runtime/shared-local-agent-ai-config.js +1 -0
  294. package/dist/runtime/shared-local-agent-ai-config.js.map +1 -1
  295. package/dist/runtime/wire-types/agent-participation-types.d.ts +4 -2
  296. package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
  297. package/dist/runtime/wire-types/ai-scenario-enums.d.ts +58 -4
  298. package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
  299. package/dist/runtime/wire-types/ai-scenario-enums.js +60 -0
  300. package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
  301. package/dist/runtime/wire-types/ai-scenario-types.d.ts +10 -8
  302. package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
  303. package/dist/runtime/wire-types/identity-app-types.d.ts +8 -8
  304. package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
  305. package/dist/runtime/wire-types/reason-code-enums.d.ts +8 -1
  306. package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
  307. package/dist/runtime/wire-types/reason-code-enums.js +7 -0
  308. package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
  309. package/dist/types/errors.d.ts.map +1 -1
  310. package/dist/types/errors.js +1 -0
  311. package/dist/types/errors.js.map +1 -1
  312. package/dist/types/index.d.ts +3 -0
  313. package/dist/types/index.d.ts.map +1 -1
  314. package/dist/types/index.js.map +1 -1
  315. package/dist/types/reason-code.d.ts +5 -0
  316. package/dist/types/reason-code.d.ts.map +1 -1
  317. package/dist/types/reason-code.js +5 -0
  318. package/dist/types/reason-code.js.map +1 -1
  319. package/package.json +12 -2
@@ -144,6 +144,14 @@ export var ScenarioType;
144
144
  * @generated from protobuf enum value: SCENARIO_TYPE_AUDIO_SPEAKER_EMBED = 20;
145
145
  */
146
146
  ScenarioType[ScenarioType["AUDIO_SPEAKER_EMBED"] = 20] = "AUDIO_SPEAKER_EMBED";
147
+ /**
148
+ * @generated from protobuf enum value: SCENARIO_TYPE_IMAGE_UPSCALE = 21;
149
+ */
150
+ ScenarioType[ScenarioType["IMAGE_UPSCALE"] = 21] = "IMAGE_UPSCALE";
151
+ /**
152
+ * @generated from protobuf enum value: SCENARIO_TYPE_VIDEO_UPSCALE = 22;
153
+ */
154
+ ScenarioType[ScenarioType["VIDEO_UPSCALE"] = 22] = "VIDEO_UPSCALE";
147
155
  })(ScenarioType || (ScenarioType = {}));
148
156
  /**
149
157
  * @generated from protobuf enum nimi.runtime.v1.ExecutionMode
@@ -270,6 +278,13 @@ export var ReasoningEffort;
270
278
  * @generated from protobuf enum value: REASONING_EFFORT_XHIGH = 6;
271
279
  */
272
280
  ReasoningEffort[ReasoningEffort["XHIGH"] = 6] = "XHIGH";
281
+ /**
282
+ * Activate thinking using the exact implementation's native default intensity.
283
+ * This is distinct from omitting the entire ReasoningConfig.
284
+ *
285
+ * @generated from protobuf enum value: REASONING_EFFORT_MODEL_DEFAULT = 7;
286
+ */
287
+ ReasoningEffort[ReasoningEffort["MODEL_DEFAULT"] = 7] = "MODEL_DEFAULT";
273
288
  })(ReasoningEffort || (ReasoningEffort = {}));
274
289
  /**
275
290
  * @generated from protobuf enum nimi.runtime.v1.ReasoningPresentation
@@ -573,6 +588,48 @@ export var TextEmbedPurpose;
573
588
  */
574
589
  TextEmbedPurpose[TextEmbedPurpose["RETRIEVAL_QUERY"] = 2] = "RETRIEVAL_QUERY";
575
590
  })(TextEmbedPurpose || (TextEmbedPurpose = {}));
591
+ /**
592
+ * @generated from protobuf enum nimi.runtime.v1.ImageControlType
593
+ */
594
+ export var ImageControlType;
595
+ (function (ImageControlType) {
596
+ /**
597
+ * @generated from protobuf enum value: IMAGE_CONTROL_TYPE_UNSPECIFIED = 0;
598
+ */
599
+ ImageControlType[ImageControlType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
600
+ /**
601
+ * @generated from protobuf enum value: IMAGE_CONTROL_TYPE_OPENPOSE = 1;
602
+ */
603
+ ImageControlType[ImageControlType["OPENPOSE"] = 1] = "OPENPOSE";
604
+ /**
605
+ * @generated from protobuf enum value: IMAGE_CONTROL_TYPE_DEPTH = 2;
606
+ */
607
+ ImageControlType[ImageControlType["DEPTH"] = 2] = "DEPTH";
608
+ /**
609
+ * @generated from protobuf enum value: IMAGE_CONTROL_TYPE_SCRIBBLE = 3;
610
+ */
611
+ ImageControlType[ImageControlType["SCRIBBLE"] = 3] = "SCRIBBLE";
612
+ /**
613
+ * @generated from protobuf enum value: IMAGE_CONTROL_TYPE_CANNY = 4;
614
+ */
615
+ ImageControlType[ImageControlType["CANNY"] = 4] = "CANNY";
616
+ /**
617
+ * @generated from protobuf enum value: IMAGE_CONTROL_TYPE_NORMAL = 5;
618
+ */
619
+ ImageControlType[ImageControlType["NORMAL"] = 5] = "NORMAL";
620
+ /**
621
+ * @generated from protobuf enum value: IMAGE_CONTROL_TYPE_SEGMENT = 6;
622
+ */
623
+ ImageControlType[ImageControlType["SEGMENT"] = 6] = "SEGMENT";
624
+ /**
625
+ * @generated from protobuf enum value: IMAGE_CONTROL_TYPE_TILE = 7;
626
+ */
627
+ ImageControlType[ImageControlType["TILE"] = 7] = "TILE";
628
+ /**
629
+ * @generated from protobuf enum value: IMAGE_CONTROL_TYPE_REPAINT = 8;
630
+ */
631
+ ImageControlType[ImageControlType["REPAINT"] = 8] = "REPAINT";
632
+ })(ImageControlType || (ImageControlType = {}));
576
633
  /**
577
634
  * @generated from protobuf enum nimi.runtime.v1.MusicScoreFormat
578
635
  */
@@ -2835,6 +2892,68 @@ class TextEmbedScenarioSpec$Type extends MessageType {
2835
2892
  */
2836
2893
  export const TextEmbedScenarioSpec = new TextEmbedScenarioSpec$Type();
2837
2894
  // @generated message type with reflection information, may provide speed optimized methods
2895
+ class ImageControlInput$Type extends MessageType {
2896
+ constructor() {
2897
+ super("nimi.runtime.v1.ImageControlInput", [
2898
+ { no: 1, name: "image_artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2899
+ { no: 2, name: "type", kind: "enum", T: () => ["nimi.runtime.v1.ImageControlType", ImageControlType, "IMAGE_CONTROL_TYPE_"] },
2900
+ { no: 3, name: "strength", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ }
2901
+ ]);
2902
+ }
2903
+ create(value) {
2904
+ const message = globalThis.Object.create((this.messagePrototype));
2905
+ message.imageArtifactId = "";
2906
+ message.type = 0;
2907
+ if (value !== undefined)
2908
+ reflectionMergePartial(this, message, value);
2909
+ return message;
2910
+ }
2911
+ internalBinaryRead(reader, length, options, target) {
2912
+ let message = target ?? this.create(), end = reader.pos + length;
2913
+ while (reader.pos < end) {
2914
+ let [fieldNo, wireType] = reader.tag();
2915
+ switch (fieldNo) {
2916
+ case /* string image_artifact_id */ 1:
2917
+ message.imageArtifactId = reader.string();
2918
+ break;
2919
+ case /* nimi.runtime.v1.ImageControlType type */ 2:
2920
+ message.type = reader.int32();
2921
+ break;
2922
+ case /* optional float strength */ 3:
2923
+ message.strength = reader.float();
2924
+ break;
2925
+ default:
2926
+ let u = options.readUnknownField;
2927
+ if (u === "throw")
2928
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2929
+ let d = reader.skip(wireType);
2930
+ if (u !== false)
2931
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2932
+ }
2933
+ }
2934
+ return message;
2935
+ }
2936
+ internalBinaryWrite(message, writer, options) {
2937
+ /* string image_artifact_id = 1; */
2938
+ if (message.imageArtifactId !== "")
2939
+ writer.tag(1, WireType.LengthDelimited).string(message.imageArtifactId);
2940
+ /* nimi.runtime.v1.ImageControlType type = 2; */
2941
+ if (message.type !== 0)
2942
+ writer.tag(2, WireType.Varint).int32(message.type);
2943
+ /* optional float strength = 3; */
2944
+ if (message.strength !== undefined)
2945
+ writer.tag(3, WireType.Bit32).float(message.strength);
2946
+ let u = options.writeUnknownFields;
2947
+ if (u !== false)
2948
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2949
+ return writer;
2950
+ }
2951
+ }
2952
+ /**
2953
+ * @generated MessageType for protobuf message nimi.runtime.v1.ImageControlInput
2954
+ */
2955
+ export const ImageControlInput = new ImageControlInput$Type();
2956
+ // @generated message type with reflection information, may provide speed optimized methods
2838
2957
  class ImageGenerateScenarioSpec$Type extends MessageType {
2839
2958
  constructor() {
2840
2959
  super("nimi.runtime.v1.ImageGenerateScenarioSpec", [
@@ -2851,7 +2970,14 @@ class ImageGenerateScenarioSpec$Type extends MessageType {
2851
2970
  { no: 11, name: "response_format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2852
2971
  { no: 12, name: "reference_image_artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2853
2972
  { no: 13, name: "mask_artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2854
- { no: 14, name: "strength", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ }
2973
+ { no: 14, name: "strength", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ },
2974
+ { no: 15, name: "complexity", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2975
+ { no: 16, name: "output_format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2976
+ { no: 17, name: "markup", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2977
+ { no: 18, name: "markup_artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2978
+ { no: 19, name: "frame_count", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
2979
+ { no: 20, name: "frame_duration_ms", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
2980
+ { no: 21, name: "control_image", kind: "message", T: () => ImageControlInput }
2855
2981
  ]);
2856
2982
  }
2857
2983
  create(value) {
@@ -2867,6 +2993,10 @@ class ImageGenerateScenarioSpec$Type extends MessageType {
2867
2993
  message.responseFormat = "";
2868
2994
  message.referenceImageArtifactId = "";
2869
2995
  message.maskArtifactId = "";
2996
+ message.complexity = "";
2997
+ message.outputFormat = "";
2998
+ message.markup = "";
2999
+ message.markupArtifactId = "";
2870
3000
  if (value !== undefined)
2871
3001
  reflectionMergePartial(this, message, value);
2872
3002
  return message;
@@ -2918,6 +3048,27 @@ class ImageGenerateScenarioSpec$Type extends MessageType {
2918
3048
  case /* optional float strength */ 14:
2919
3049
  message.strength = reader.float();
2920
3050
  break;
3051
+ case /* string complexity */ 15:
3052
+ message.complexity = reader.string();
3053
+ break;
3054
+ case /* string output_format */ 16:
3055
+ message.outputFormat = reader.string();
3056
+ break;
3057
+ case /* string markup */ 17:
3058
+ message.markup = reader.string();
3059
+ break;
3060
+ case /* string markup_artifact_id */ 18:
3061
+ message.markupArtifactId = reader.string();
3062
+ break;
3063
+ case /* optional int32 frame_count */ 19:
3064
+ message.frameCount = reader.int32();
3065
+ break;
3066
+ case /* optional int32 frame_duration_ms */ 20:
3067
+ message.frameDurationMs = reader.int32();
3068
+ break;
3069
+ case /* nimi.runtime.v1.ImageControlInput control_image */ 21:
3070
+ message.controlImage = ImageControlInput.internalBinaryRead(reader, reader.uint32(), options, message.controlImage);
3071
+ break;
2921
3072
  default:
2922
3073
  let u = options.readUnknownField;
2923
3074
  if (u === "throw")
@@ -2972,6 +3123,27 @@ class ImageGenerateScenarioSpec$Type extends MessageType {
2972
3123
  /* optional float strength = 14; */
2973
3124
  if (message.strength !== undefined)
2974
3125
  writer.tag(14, WireType.Bit32).float(message.strength);
3126
+ /* string complexity = 15; */
3127
+ if (message.complexity !== "")
3128
+ writer.tag(15, WireType.LengthDelimited).string(message.complexity);
3129
+ /* string output_format = 16; */
3130
+ if (message.outputFormat !== "")
3131
+ writer.tag(16, WireType.LengthDelimited).string(message.outputFormat);
3132
+ /* string markup = 17; */
3133
+ if (message.markup !== "")
3134
+ writer.tag(17, WireType.LengthDelimited).string(message.markup);
3135
+ /* string markup_artifact_id = 18; */
3136
+ if (message.markupArtifactId !== "")
3137
+ writer.tag(18, WireType.LengthDelimited).string(message.markupArtifactId);
3138
+ /* optional int32 frame_count = 19; */
3139
+ if (message.frameCount !== undefined)
3140
+ writer.tag(19, WireType.Varint).int32(message.frameCount);
3141
+ /* optional int32 frame_duration_ms = 20; */
3142
+ if (message.frameDurationMs !== undefined)
3143
+ writer.tag(20, WireType.Varint).int32(message.frameDurationMs);
3144
+ /* nimi.runtime.v1.ImageControlInput control_image = 21; */
3145
+ if (message.controlImage)
3146
+ ImageControlInput.internalBinaryWrite(message.controlImage, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
2975
3147
  let u = options.writeUnknownFields;
2976
3148
  if (u !== false)
2977
3149
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4853,6 +5025,68 @@ class WorldGenerateScenarioSpec$Type extends MessageType {
4853
5025
  */
4854
5026
  export const WorldGenerateScenarioSpec = new WorldGenerateScenarioSpec$Type();
4855
5027
  // @generated message type with reflection information, may provide speed optimized methods
5028
+ class MediaUpscaleScenarioSpec$Type extends MessageType {
5029
+ constructor() {
5030
+ super("nimi.runtime.v1.MediaUpscaleScenarioSpec", [
5031
+ { no: 1, name: "source_artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
5032
+ { no: 2, name: "scale", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
5033
+ { no: 3, name: "seed", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/ }
5034
+ ]);
5035
+ }
5036
+ create(value) {
5037
+ const message = globalThis.Object.create((this.messagePrototype));
5038
+ message.sourceArtifactId = "";
5039
+ message.scale = 0;
5040
+ if (value !== undefined)
5041
+ reflectionMergePartial(this, message, value);
5042
+ return message;
5043
+ }
5044
+ internalBinaryRead(reader, length, options, target) {
5045
+ let message = target ?? this.create(), end = reader.pos + length;
5046
+ while (reader.pos < end) {
5047
+ let [fieldNo, wireType] = reader.tag();
5048
+ switch (fieldNo) {
5049
+ case /* string source_artifact_id */ 1:
5050
+ message.sourceArtifactId = reader.string();
5051
+ break;
5052
+ case /* uint32 scale */ 2:
5053
+ message.scale = reader.uint32();
5054
+ break;
5055
+ case /* optional int64 seed */ 3:
5056
+ message.seed = reader.int64().toString();
5057
+ break;
5058
+ default:
5059
+ let u = options.readUnknownField;
5060
+ if (u === "throw")
5061
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5062
+ let d = reader.skip(wireType);
5063
+ if (u !== false)
5064
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5065
+ }
5066
+ }
5067
+ return message;
5068
+ }
5069
+ internalBinaryWrite(message, writer, options) {
5070
+ /* string source_artifact_id = 1; */
5071
+ if (message.sourceArtifactId !== "")
5072
+ writer.tag(1, WireType.LengthDelimited).string(message.sourceArtifactId);
5073
+ /* uint32 scale = 2; */
5074
+ if (message.scale !== 0)
5075
+ writer.tag(2, WireType.Varint).uint32(message.scale);
5076
+ /* optional int64 seed = 3; */
5077
+ if (message.seed !== undefined)
5078
+ writer.tag(3, WireType.Varint).int64(message.seed);
5079
+ let u = options.writeUnknownFields;
5080
+ if (u !== false)
5081
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
5082
+ return writer;
5083
+ }
5084
+ }
5085
+ /**
5086
+ * @generated MessageType for protobuf message nimi.runtime.v1.MediaUpscaleScenarioSpec
5087
+ */
5088
+ export const MediaUpscaleScenarioSpec = new MediaUpscaleScenarioSpec$Type();
5089
+ // @generated message type with reflection information, may provide speed optimized methods
4856
5090
  class ImageFaceSwapScenarioSpec$Type extends MessageType {
4857
5091
  constructor() {
4858
5092
  super("nimi.runtime.v1.ImageFaceSwapScenarioSpec", [
@@ -7146,7 +7380,9 @@ class ScenarioSpec$Type extends MessageType {
7146
7380
  { no: 17, name: "music_transcribe", kind: "message", oneof: "spec", T: () => MusicTranscribeScenarioSpec },
7147
7381
  { no: 18, name: "audio_voice_convert", kind: "message", oneof: "spec", T: () => AudioVoiceConvertScenarioSpec },
7148
7382
  { no: 19, name: "text_decide", kind: "message", oneof: "spec", T: () => TextDecideScenarioSpec },
7149
- { no: 20, name: "audio_speaker_embed", kind: "message", oneof: "spec", T: () => AudioSpeakerEmbedScenarioSpec }
7383
+ { no: 20, name: "audio_speaker_embed", kind: "message", oneof: "spec", T: () => AudioSpeakerEmbedScenarioSpec },
7384
+ { no: 21, name: "image_upscale", kind: "message", oneof: "spec", T: () => MediaUpscaleScenarioSpec },
7385
+ { no: 22, name: "video_upscale", kind: "message", oneof: "spec", T: () => MediaUpscaleScenarioSpec }
7150
7386
  ]);
7151
7387
  }
7152
7388
  create(value) {
@@ -7269,6 +7505,18 @@ class ScenarioSpec$Type extends MessageType {
7269
7505
  audioSpeakerEmbed: AudioSpeakerEmbedScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.audioSpeakerEmbed)
7270
7506
  };
7271
7507
  break;
7508
+ case /* nimi.runtime.v1.MediaUpscaleScenarioSpec image_upscale */ 21:
7509
+ message.spec = {
7510
+ oneofKind: "imageUpscale",
7511
+ imageUpscale: MediaUpscaleScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.imageUpscale)
7512
+ };
7513
+ break;
7514
+ case /* nimi.runtime.v1.MediaUpscaleScenarioSpec video_upscale */ 22:
7515
+ message.spec = {
7516
+ oneofKind: "videoUpscale",
7517
+ videoUpscale: MediaUpscaleScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.videoUpscale)
7518
+ };
7519
+ break;
7272
7520
  default:
7273
7521
  let u = options.readUnknownField;
7274
7522
  if (u === "throw")
@@ -7335,6 +7583,12 @@ class ScenarioSpec$Type extends MessageType {
7335
7583
  /* nimi.runtime.v1.AudioSpeakerEmbedScenarioSpec audio_speaker_embed = 20; */
7336
7584
  if (message.spec.oneofKind === "audioSpeakerEmbed")
7337
7585
  AudioSpeakerEmbedScenarioSpec.internalBinaryWrite(message.spec.audioSpeakerEmbed, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
7586
+ /* nimi.runtime.v1.MediaUpscaleScenarioSpec image_upscale = 21; */
7587
+ if (message.spec.oneofKind === "imageUpscale")
7588
+ MediaUpscaleScenarioSpec.internalBinaryWrite(message.spec.imageUpscale, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
7589
+ /* nimi.runtime.v1.MediaUpscaleScenarioSpec video_upscale = 22; */
7590
+ if (message.spec.oneofKind === "videoUpscale")
7591
+ MediaUpscaleScenarioSpec.internalBinaryWrite(message.spec.videoUpscale, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
7338
7592
  let u = options.writeUnknownFields;
7339
7593
  if (u !== false)
7340
7594
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -8899,6 +9153,53 @@ class WorldGenerateResult$Type extends MessageType {
8899
9153
  */
8900
9154
  export const WorldGenerateResult = new WorldGenerateResult$Type();
8901
9155
  // @generated message type with reflection information, may provide speed optimized methods
9156
+ class MediaUpscaleResult$Type extends MessageType {
9157
+ constructor() {
9158
+ super("nimi.runtime.v1.MediaUpscaleResult", [
9159
+ { no: 1, name: "artifacts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ScenarioArtifact }
9160
+ ]);
9161
+ }
9162
+ create(value) {
9163
+ const message = globalThis.Object.create((this.messagePrototype));
9164
+ message.artifacts = [];
9165
+ if (value !== undefined)
9166
+ reflectionMergePartial(this, message, value);
9167
+ return message;
9168
+ }
9169
+ internalBinaryRead(reader, length, options, target) {
9170
+ let message = target ?? this.create(), end = reader.pos + length;
9171
+ while (reader.pos < end) {
9172
+ let [fieldNo, wireType] = reader.tag();
9173
+ switch (fieldNo) {
9174
+ case /* repeated nimi.runtime.v1.ScenarioArtifact artifacts */ 1:
9175
+ message.artifacts.push(ScenarioArtifact.internalBinaryRead(reader, reader.uint32(), options));
9176
+ break;
9177
+ default:
9178
+ let u = options.readUnknownField;
9179
+ if (u === "throw")
9180
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
9181
+ let d = reader.skip(wireType);
9182
+ if (u !== false)
9183
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
9184
+ }
9185
+ }
9186
+ return message;
9187
+ }
9188
+ internalBinaryWrite(message, writer, options) {
9189
+ /* repeated nimi.runtime.v1.ScenarioArtifact artifacts = 1; */
9190
+ for (let i = 0; i < message.artifacts.length; i++)
9191
+ ScenarioArtifact.internalBinaryWrite(message.artifacts[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
9192
+ let u = options.writeUnknownFields;
9193
+ if (u !== false)
9194
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
9195
+ return writer;
9196
+ }
9197
+ }
9198
+ /**
9199
+ * @generated MessageType for protobuf message nimi.runtime.v1.MediaUpscaleResult
9200
+ */
9201
+ export const MediaUpscaleResult = new MediaUpscaleResult$Type();
9202
+ // @generated message type with reflection information, may provide speed optimized methods
8902
9203
  class ScenarioOutput$Type extends MessageType {
8903
9204
  constructor() {
8904
9205
  super("nimi.runtime.v1.ScenarioOutput", [
@@ -8917,7 +9218,9 @@ class ScenarioOutput$Type extends MessageType {
8917
9218
  { no: 13, name: "music_transcribe", kind: "message", oneof: "output", T: () => MusicTranscribeResult },
8918
9219
  { no: 14, name: "audio_voice_convert", kind: "message", oneof: "output", T: () => AudioVoiceConvertResult },
8919
9220
  { no: 15, name: "text_decision", kind: "message", oneof: "output", T: () => TextDecisionResult },
8920
- { no: 16, name: "audio_speaker_embed", kind: "message", oneof: "output", T: () => AudioSpeakerEmbedResult }
9221
+ { no: 16, name: "audio_speaker_embed", kind: "message", oneof: "output", T: () => AudioSpeakerEmbedResult },
9222
+ { no: 17, name: "image_upscale", kind: "message", oneof: "output", T: () => MediaUpscaleResult },
9223
+ { no: 18, name: "video_upscale", kind: "message", oneof: "output", T: () => MediaUpscaleResult }
8921
9224
  ]);
8922
9225
  }
8923
9226
  create(value) {
@@ -9028,6 +9331,18 @@ class ScenarioOutput$Type extends MessageType {
9028
9331
  audioSpeakerEmbed: AudioSpeakerEmbedResult.internalBinaryRead(reader, reader.uint32(), options, message.output.audioSpeakerEmbed)
9029
9332
  };
9030
9333
  break;
9334
+ case /* nimi.runtime.v1.MediaUpscaleResult image_upscale */ 17:
9335
+ message.output = {
9336
+ oneofKind: "imageUpscale",
9337
+ imageUpscale: MediaUpscaleResult.internalBinaryRead(reader, reader.uint32(), options, message.output.imageUpscale)
9338
+ };
9339
+ break;
9340
+ case /* nimi.runtime.v1.MediaUpscaleResult video_upscale */ 18:
9341
+ message.output = {
9342
+ oneofKind: "videoUpscale",
9343
+ videoUpscale: MediaUpscaleResult.internalBinaryRead(reader, reader.uint32(), options, message.output.videoUpscale)
9344
+ };
9345
+ break;
9031
9346
  default:
9032
9347
  let u = options.readUnknownField;
9033
9348
  if (u === "throw")
@@ -9088,6 +9403,12 @@ class ScenarioOutput$Type extends MessageType {
9088
9403
  /* nimi.runtime.v1.AudioSpeakerEmbedResult audio_speaker_embed = 16; */
9089
9404
  if (message.output.oneofKind === "audioSpeakerEmbed")
9090
9405
  AudioSpeakerEmbedResult.internalBinaryWrite(message.output.audioSpeakerEmbed, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
9406
+ /* nimi.runtime.v1.MediaUpscaleResult image_upscale = 17; */
9407
+ if (message.output.oneofKind === "imageUpscale")
9408
+ MediaUpscaleResult.internalBinaryWrite(message.output.imageUpscale, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
9409
+ /* nimi.runtime.v1.MediaUpscaleResult video_upscale = 18; */
9410
+ if (message.output.oneofKind === "videoUpscale")
9411
+ MediaUpscaleResult.internalBinaryWrite(message.output.videoUpscale, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
9091
9412
  let u = options.writeUnknownFields;
9092
9413
  if (u !== false)
9093
9414
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -9620,7 +9941,14 @@ class LocalAppImageGenerateScenarioSpec$Type extends MessageType {
9620
9941
  { no: 11, name: "response_format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
9621
9942
  { no: 12, name: "reference_image_artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
9622
9943
  { no: 13, name: "mask_artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
9623
- { no: 14, name: "strength", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ }
9944
+ { no: 14, name: "strength", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ },
9945
+ { no: 15, name: "complexity", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
9946
+ { no: 16, name: "output_format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
9947
+ { no: 17, name: "markup", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
9948
+ { no: 18, name: "markup_artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
9949
+ { no: 19, name: "frame_count", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
9950
+ { no: 20, name: "frame_duration_ms", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
9951
+ { no: 21, name: "control_image", kind: "message", T: () => ImageControlInput }
9624
9952
  ]);
9625
9953
  }
9626
9954
  create(value) {
@@ -9636,6 +9964,10 @@ class LocalAppImageGenerateScenarioSpec$Type extends MessageType {
9636
9964
  message.responseFormat = "";
9637
9965
  message.referenceImageArtifactId = "";
9638
9966
  message.maskArtifactId = "";
9967
+ message.complexity = "";
9968
+ message.outputFormat = "";
9969
+ message.markup = "";
9970
+ message.markupArtifactId = "";
9639
9971
  if (value !== undefined)
9640
9972
  reflectionMergePartial(this, message, value);
9641
9973
  return message;
@@ -9687,6 +10019,27 @@ class LocalAppImageGenerateScenarioSpec$Type extends MessageType {
9687
10019
  case /* optional float strength */ 14:
9688
10020
  message.strength = reader.float();
9689
10021
  break;
10022
+ case /* string complexity */ 15:
10023
+ message.complexity = reader.string();
10024
+ break;
10025
+ case /* string output_format */ 16:
10026
+ message.outputFormat = reader.string();
10027
+ break;
10028
+ case /* string markup */ 17:
10029
+ message.markup = reader.string();
10030
+ break;
10031
+ case /* string markup_artifact_id */ 18:
10032
+ message.markupArtifactId = reader.string();
10033
+ break;
10034
+ case /* optional int32 frame_count */ 19:
10035
+ message.frameCount = reader.int32();
10036
+ break;
10037
+ case /* optional int32 frame_duration_ms */ 20:
10038
+ message.frameDurationMs = reader.int32();
10039
+ break;
10040
+ case /* nimi.runtime.v1.ImageControlInput control_image */ 21:
10041
+ message.controlImage = ImageControlInput.internalBinaryRead(reader, reader.uint32(), options, message.controlImage);
10042
+ break;
9690
10043
  default:
9691
10044
  let u = options.readUnknownField;
9692
10045
  if (u === "throw")
@@ -9741,6 +10094,27 @@ class LocalAppImageGenerateScenarioSpec$Type extends MessageType {
9741
10094
  /* optional float strength = 14; */
9742
10095
  if (message.strength !== undefined)
9743
10096
  writer.tag(14, WireType.Bit32).float(message.strength);
10097
+ /* string complexity = 15; */
10098
+ if (message.complexity !== "")
10099
+ writer.tag(15, WireType.LengthDelimited).string(message.complexity);
10100
+ /* string output_format = 16; */
10101
+ if (message.outputFormat !== "")
10102
+ writer.tag(16, WireType.LengthDelimited).string(message.outputFormat);
10103
+ /* string markup = 17; */
10104
+ if (message.markup !== "")
10105
+ writer.tag(17, WireType.LengthDelimited).string(message.markup);
10106
+ /* string markup_artifact_id = 18; */
10107
+ if (message.markupArtifactId !== "")
10108
+ writer.tag(18, WireType.LengthDelimited).string(message.markupArtifactId);
10109
+ /* optional int32 frame_count = 19; */
10110
+ if (message.frameCount !== undefined)
10111
+ writer.tag(19, WireType.Varint).int32(message.frameCount);
10112
+ /* optional int32 frame_duration_ms = 20; */
10113
+ if (message.frameDurationMs !== undefined)
10114
+ writer.tag(20, WireType.Varint).int32(message.frameDurationMs);
10115
+ /* nimi.runtime.v1.ImageControlInput control_image = 21; */
10116
+ if (message.controlImage)
10117
+ ImageControlInput.internalBinaryWrite(message.controlImage, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
9744
10118
  let u = options.writeUnknownFields;
9745
10119
  if (u !== false)
9746
10120
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -9896,7 +10270,8 @@ class LocalAppTextGenerateOutput$Type extends MessageType {
9896
10270
  constructor() {
9897
10271
  super("nimi.runtime.v1.LocalAppTextGenerateOutput", [
9898
10272
  { no: 1, name: "items", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TextOutputItem },
9899
- { no: 2, name: "finish_reason", kind: "enum", T: () => ["nimi.runtime.v1.FinishReason", FinishReason, "FINISH_REASON_"] }
10273
+ { no: 2, name: "finish_reason", kind: "enum", T: () => ["nimi.runtime.v1.FinishReason", FinishReason, "FINISH_REASON_"] },
10274
+ { no: 3, name: "usage", kind: "message", T: () => UsageStats }
9900
10275
  ]);
9901
10276
  }
9902
10277
  create(value) {
@@ -9918,6 +10293,9 @@ class LocalAppTextGenerateOutput$Type extends MessageType {
9918
10293
  case /* nimi.runtime.v1.FinishReason finish_reason */ 2:
9919
10294
  message.finishReason = reader.int32();
9920
10295
  break;
10296
+ case /* nimi.runtime.v1.UsageStats usage */ 3:
10297
+ message.usage = UsageStats.internalBinaryRead(reader, reader.uint32(), options, message.usage);
10298
+ break;
9921
10299
  default:
9922
10300
  let u = options.readUnknownField;
9923
10301
  if (u === "throw")
@@ -9936,6 +10314,9 @@ class LocalAppTextGenerateOutput$Type extends MessageType {
9936
10314
  /* nimi.runtime.v1.FinishReason finish_reason = 2; */
9937
10315
  if (message.finishReason !== 0)
9938
10316
  writer.tag(2, WireType.Varint).int32(message.finishReason);
10317
+ /* nimi.runtime.v1.UsageStats usage = 3; */
10318
+ if (message.usage)
10319
+ UsageStats.internalBinaryWrite(message.usage, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
9939
10320
  let u = options.writeUnknownFields;
9940
10321
  if (u !== false)
9941
10322
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -10710,8 +11091,11 @@ class SubmitLocalAppScenarioJobRequest$Type extends MessageType {
10710
11091
  { no: 17, name: "music_transcribe", kind: "message", oneof: "spec", T: () => MusicTranscribeScenarioSpec },
10711
11092
  { no: 18, name: "audio_voice_convert", kind: "message", oneof: "spec", T: () => AudioVoiceConvertScenarioSpec },
10712
11093
  { no: 19, name: "audio_speaker_embed", kind: "message", oneof: "spec", T: () => AudioSpeakerEmbedScenarioSpec },
11094
+ { no: 20, name: "image_upscale", kind: "message", oneof: "spec", T: () => MediaUpscaleScenarioSpec },
11095
+ { no: 21, name: "video_upscale", kind: "message", oneof: "spec", T: () => MediaUpscaleScenarioSpec },
10713
11096
  { no: 9, name: "timeout_ms", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
10714
- { no: 16, name: "client_submission_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
11097
+ { no: 16, name: "client_submission_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
11098
+ { no: 22, name: "config_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
10715
11099
  ]);
10716
11100
  }
10717
11101
  create(value) {
@@ -10719,6 +11103,7 @@ class SubmitLocalAppScenarioJobRequest$Type extends MessageType {
10719
11103
  message.spec = { oneofKind: undefined };
10720
11104
  message.timeoutMs = 0;
10721
11105
  message.clientSubmissionId = "";
11106
+ message.configRef = "";
10722
11107
  if (value !== undefined)
10723
11108
  reflectionMergePartial(this, message, value);
10724
11109
  return message;
@@ -10818,12 +11203,27 @@ class SubmitLocalAppScenarioJobRequest$Type extends MessageType {
10818
11203
  audioSpeakerEmbed: AudioSpeakerEmbedScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.audioSpeakerEmbed)
10819
11204
  };
10820
11205
  break;
11206
+ case /* nimi.runtime.v1.MediaUpscaleScenarioSpec image_upscale */ 20:
11207
+ message.spec = {
11208
+ oneofKind: "imageUpscale",
11209
+ imageUpscale: MediaUpscaleScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.imageUpscale)
11210
+ };
11211
+ break;
11212
+ case /* nimi.runtime.v1.MediaUpscaleScenarioSpec video_upscale */ 21:
11213
+ message.spec = {
11214
+ oneofKind: "videoUpscale",
11215
+ videoUpscale: MediaUpscaleScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.videoUpscale)
11216
+ };
11217
+ break;
10821
11218
  case /* int32 timeout_ms = 9 [deprecated = true] */ 9:
10822
11219
  message.timeoutMs = reader.int32();
10823
11220
  break;
10824
11221
  case /* string client_submission_id */ 16:
10825
11222
  message.clientSubmissionId = reader.string();
10826
11223
  break;
11224
+ case /* string config_ref */ 22:
11225
+ message.configRef = reader.string();
11226
+ break;
10827
11227
  default:
10828
11228
  let u = options.readUnknownField;
10829
11229
  if (u === "throw")
@@ -10887,6 +11287,15 @@ class SubmitLocalAppScenarioJobRequest$Type extends MessageType {
10887
11287
  /* nimi.runtime.v1.AudioSpeakerEmbedScenarioSpec audio_speaker_embed = 19; */
10888
11288
  if (message.spec.oneofKind === "audioSpeakerEmbed")
10889
11289
  AudioSpeakerEmbedScenarioSpec.internalBinaryWrite(message.spec.audioSpeakerEmbed, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
11290
+ /* nimi.runtime.v1.MediaUpscaleScenarioSpec image_upscale = 20; */
11291
+ if (message.spec.oneofKind === "imageUpscale")
11292
+ MediaUpscaleScenarioSpec.internalBinaryWrite(message.spec.imageUpscale, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
11293
+ /* nimi.runtime.v1.MediaUpscaleScenarioSpec video_upscale = 21; */
11294
+ if (message.spec.oneofKind === "videoUpscale")
11295
+ MediaUpscaleScenarioSpec.internalBinaryWrite(message.spec.videoUpscale, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
11296
+ /* string config_ref = 22; */
11297
+ if (message.configRef !== "")
11298
+ writer.tag(22, WireType.LengthDelimited).string(message.configRef);
10890
11299
  let u = options.writeUnknownFields;
10891
11300
  if (u !== false)
10892
11301
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -11609,6 +12018,77 @@ class LocalAppScenarioJobEvent$Type extends MessageType {
11609
12018
  */
11610
12019
  export const LocalAppScenarioJobEvent = new LocalAppScenarioJobEvent$Type();
11611
12020
  // @generated message type with reflection information, may provide speed optimized methods
12021
+ class AppTextConfigSelection$Type extends MessageType {
12022
+ constructor() {
12023
+ super("nimi.runtime.v1.AppTextConfigSelection", [
12024
+ { no: 1, name: "config_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
12025
+ { no: 2, name: "expected_revision", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
12026
+ { no: 3, name: "expected_local_loadout_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
12027
+ { no: 4, name: "expected_local_loadout_revision", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
12028
+ ]);
12029
+ }
12030
+ create(value) {
12031
+ const message = globalThis.Object.create((this.messagePrototype));
12032
+ message.configRef = "";
12033
+ message.expectedRevision = "";
12034
+ message.expectedLocalLoadoutRef = "";
12035
+ message.expectedLocalLoadoutRevision = "";
12036
+ if (value !== undefined)
12037
+ reflectionMergePartial(this, message, value);
12038
+ return message;
12039
+ }
12040
+ internalBinaryRead(reader, length, options, target) {
12041
+ let message = target ?? this.create(), end = reader.pos + length;
12042
+ while (reader.pos < end) {
12043
+ let [fieldNo, wireType] = reader.tag();
12044
+ switch (fieldNo) {
12045
+ case /* string config_ref */ 1:
12046
+ message.configRef = reader.string();
12047
+ break;
12048
+ case /* string expected_revision */ 2:
12049
+ message.expectedRevision = reader.string();
12050
+ break;
12051
+ case /* string expected_local_loadout_ref */ 3:
12052
+ message.expectedLocalLoadoutRef = reader.string();
12053
+ break;
12054
+ case /* string expected_local_loadout_revision */ 4:
12055
+ message.expectedLocalLoadoutRevision = reader.string();
12056
+ break;
12057
+ default:
12058
+ let u = options.readUnknownField;
12059
+ if (u === "throw")
12060
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
12061
+ let d = reader.skip(wireType);
12062
+ if (u !== false)
12063
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
12064
+ }
12065
+ }
12066
+ return message;
12067
+ }
12068
+ internalBinaryWrite(message, writer, options) {
12069
+ /* string config_ref = 1; */
12070
+ if (message.configRef !== "")
12071
+ writer.tag(1, WireType.LengthDelimited).string(message.configRef);
12072
+ /* string expected_revision = 2; */
12073
+ if (message.expectedRevision !== "")
12074
+ writer.tag(2, WireType.LengthDelimited).string(message.expectedRevision);
12075
+ /* string expected_local_loadout_ref = 3; */
12076
+ if (message.expectedLocalLoadoutRef !== "")
12077
+ writer.tag(3, WireType.LengthDelimited).string(message.expectedLocalLoadoutRef);
12078
+ /* string expected_local_loadout_revision = 4; */
12079
+ if (message.expectedLocalLoadoutRevision !== "")
12080
+ writer.tag(4, WireType.LengthDelimited).string(message.expectedLocalLoadoutRevision);
12081
+ let u = options.writeUnknownFields;
12082
+ if (u !== false)
12083
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
12084
+ return writer;
12085
+ }
12086
+ }
12087
+ /**
12088
+ * @generated MessageType for protobuf message nimi.runtime.v1.AppTextConfigSelection
12089
+ */
12090
+ export const AppTextConfigSelection = new AppTextConfigSelection$Type();
12091
+ // @generated message type with reflection information, may provide speed optimized methods
11612
12092
  class StreamLocalAppTextTurnRequest$Type extends MessageType {
11613
12093
  constructor() {
11614
12094
  super("nimi.runtime.v1.StreamLocalAppTextTurnRequest", [
@@ -11625,7 +12105,8 @@ class StreamLocalAppTextTurnRequest$Type extends MessageType {
11625
12105
  { no: 11, name: "tool_choice", kind: "enum", T: () => ["nimi.runtime.v1.ToolChoiceMode", ToolChoiceMode, "TOOL_CHOICE_MODE_"] },
11626
12106
  { no: 12, name: "tool_choice_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
11627
12107
  { no: 13, name: "response_format", kind: "message", T: () => ResponseFormat },
11628
- { no: 14, name: "reasoning", kind: "message", T: () => ReasoningConfig }
12108
+ { no: 14, name: "reasoning", kind: "message", T: () => ReasoningConfig },
12109
+ { no: 15, name: "configuration", kind: "message", T: () => AppTextConfigSelection }
11629
12110
  ]);
11630
12111
  }
11631
12112
  create(value) {
@@ -11686,6 +12167,9 @@ class StreamLocalAppTextTurnRequest$Type extends MessageType {
11686
12167
  case /* nimi.runtime.v1.ReasoningConfig reasoning */ 14:
11687
12168
  message.reasoning = ReasoningConfig.internalBinaryRead(reader, reader.uint32(), options, message.reasoning);
11688
12169
  break;
12170
+ case /* nimi.runtime.v1.AppTextConfigSelection configuration */ 15:
12171
+ message.configuration = AppTextConfigSelection.internalBinaryRead(reader, reader.uint32(), options, message.configuration);
12172
+ break;
11689
12173
  default:
11690
12174
  let u = options.readUnknownField;
11691
12175
  if (u === "throw")
@@ -11740,6 +12224,9 @@ class StreamLocalAppTextTurnRequest$Type extends MessageType {
11740
12224
  /* nimi.runtime.v1.ReasoningConfig reasoning = 14; */
11741
12225
  if (message.reasoning)
11742
12226
  ReasoningConfig.internalBinaryWrite(message.reasoning, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
12227
+ /* nimi.runtime.v1.AppTextConfigSelection configuration = 15; */
12228
+ if (message.configuration)
12229
+ AppTextConfigSelection.internalBinaryWrite(message.configuration, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
11743
12230
  let u = options.writeUnknownFields;
11744
12231
  if (u !== false)
11745
12232
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -11977,10 +12464,81 @@ class LocalAppTextTurnReasoningSummary$Type extends MessageType {
11977
12464
  */
11978
12465
  export const LocalAppTextTurnReasoningSummary = new LocalAppTextTurnReasoningSummary$Type();
11979
12466
  // @generated message type with reflection information, may provide speed optimized methods
12467
+ class AppTextConfigCapture$Type extends MessageType {
12468
+ constructor() {
12469
+ super("nimi.runtime.v1.AppTextConfigCapture", [
12470
+ { no: 1, name: "config_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
12471
+ { no: 2, name: "revision", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
12472
+ { no: 3, name: "local_loadout_ref", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
12473
+ { no: 4, name: "local_loadout_revision", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
12474
+ ]);
12475
+ }
12476
+ create(value) {
12477
+ const message = globalThis.Object.create((this.messagePrototype));
12478
+ message.configRef = "";
12479
+ message.revision = "";
12480
+ if (value !== undefined)
12481
+ reflectionMergePartial(this, message, value);
12482
+ return message;
12483
+ }
12484
+ internalBinaryRead(reader, length, options, target) {
12485
+ let message = target ?? this.create(), end = reader.pos + length;
12486
+ while (reader.pos < end) {
12487
+ let [fieldNo, wireType] = reader.tag();
12488
+ switch (fieldNo) {
12489
+ case /* string config_ref */ 1:
12490
+ message.configRef = reader.string();
12491
+ break;
12492
+ case /* string revision */ 2:
12493
+ message.revision = reader.string();
12494
+ break;
12495
+ case /* optional string local_loadout_ref */ 3:
12496
+ message.localLoadoutRef = reader.string();
12497
+ break;
12498
+ case /* optional string local_loadout_revision */ 4:
12499
+ message.localLoadoutRevision = reader.string();
12500
+ break;
12501
+ default:
12502
+ let u = options.readUnknownField;
12503
+ if (u === "throw")
12504
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
12505
+ let d = reader.skip(wireType);
12506
+ if (u !== false)
12507
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
12508
+ }
12509
+ }
12510
+ return message;
12511
+ }
12512
+ internalBinaryWrite(message, writer, options) {
12513
+ /* string config_ref = 1; */
12514
+ if (message.configRef !== "")
12515
+ writer.tag(1, WireType.LengthDelimited).string(message.configRef);
12516
+ /* string revision = 2; */
12517
+ if (message.revision !== "")
12518
+ writer.tag(2, WireType.LengthDelimited).string(message.revision);
12519
+ /* optional string local_loadout_ref = 3; */
12520
+ if (message.localLoadoutRef !== undefined)
12521
+ writer.tag(3, WireType.LengthDelimited).string(message.localLoadoutRef);
12522
+ /* optional string local_loadout_revision = 4; */
12523
+ if (message.localLoadoutRevision !== undefined)
12524
+ writer.tag(4, WireType.LengthDelimited).string(message.localLoadoutRevision);
12525
+ let u = options.writeUnknownFields;
12526
+ if (u !== false)
12527
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
12528
+ return writer;
12529
+ }
12530
+ }
12531
+ /**
12532
+ * @generated MessageType for protobuf message nimi.runtime.v1.AppTextConfigCapture
12533
+ */
12534
+ export const AppTextConfigCapture = new AppTextConfigCapture$Type();
12535
+ // @generated message type with reflection information, may provide speed optimized methods
11980
12536
  class LocalAppTextTurnCompleted$Type extends MessageType {
11981
12537
  constructor() {
11982
12538
  super("nimi.runtime.v1.LocalAppTextTurnCompleted", [
11983
- { no: 1, name: "finish_reason", kind: "enum", T: () => ["nimi.runtime.v1.FinishReason", FinishReason, "FINISH_REASON_"] }
12539
+ { no: 3, name: "configuration", kind: "message", T: () => AppTextConfigCapture },
12540
+ { no: 1, name: "finish_reason", kind: "enum", T: () => ["nimi.runtime.v1.FinishReason", FinishReason, "FINISH_REASON_"] },
12541
+ { no: 2, name: "usage", kind: "message", T: () => UsageStats }
11984
12542
  ]);
11985
12543
  }
11986
12544
  create(value) {
@@ -11995,9 +12553,15 @@ class LocalAppTextTurnCompleted$Type extends MessageType {
11995
12553
  while (reader.pos < end) {
11996
12554
  let [fieldNo, wireType] = reader.tag();
11997
12555
  switch (fieldNo) {
12556
+ case /* nimi.runtime.v1.AppTextConfigCapture configuration */ 3:
12557
+ message.configuration = AppTextConfigCapture.internalBinaryRead(reader, reader.uint32(), options, message.configuration);
12558
+ break;
11998
12559
  case /* nimi.runtime.v1.FinishReason finish_reason */ 1:
11999
12560
  message.finishReason = reader.int32();
12000
12561
  break;
12562
+ case /* nimi.runtime.v1.UsageStats usage */ 2:
12563
+ message.usage = UsageStats.internalBinaryRead(reader, reader.uint32(), options, message.usage);
12564
+ break;
12001
12565
  default:
12002
12566
  let u = options.readUnknownField;
12003
12567
  if (u === "throw")
@@ -12013,6 +12577,12 @@ class LocalAppTextTurnCompleted$Type extends MessageType {
12013
12577
  /* nimi.runtime.v1.FinishReason finish_reason = 1; */
12014
12578
  if (message.finishReason !== 0)
12015
12579
  writer.tag(1, WireType.Varint).int32(message.finishReason);
12580
+ /* nimi.runtime.v1.UsageStats usage = 2; */
12581
+ if (message.usage)
12582
+ UsageStats.internalBinaryWrite(message.usage, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
12583
+ /* nimi.runtime.v1.AppTextConfigCapture configuration = 3; */
12584
+ if (message.configuration)
12585
+ AppTextConfigCapture.internalBinaryWrite(message.configuration, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
12016
12586
  let u = options.writeUnknownFields;
12017
12587
  if (u !== false)
12018
12588
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);