@nimiplatform/sdk 0.22.1 → 0.24.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +218 -0
- package/README.md +30 -1
- package/dist/core/ai/capability-configuration.d.ts +35 -1
- package/dist/core/ai/capability-configuration.d.ts.map +1 -1
- package/dist/core/ai/capability-configuration.js +58 -3
- package/dist/core/ai/capability-configuration.js.map +1 -1
- package/dist/core/ai/index.d.ts +1 -0
- package/dist/core/ai/index.d.ts.map +1 -1
- package/dist/core/ai/index.js +1 -0
- package/dist/core/ai/index.js.map +1 -1
- package/dist/core/ai/local-app-model.d.ts +3 -0
- package/dist/core/ai/local-app-model.d.ts.map +1 -1
- package/dist/core/ai/local-app-model.js +7 -7
- package/dist/core/ai/local-app-model.js.map +1 -1
- package/dist/core/ai/reasoning.d.ts +3 -1
- package/dist/core/ai/reasoning.d.ts.map +1 -1
- package/dist/core/ai/reasoning.js +2 -1
- package/dist/core/ai/reasoning.js.map +1 -1
- package/dist/core/app/desktop-open.d.ts +17 -4
- package/dist/core/app/desktop-open.d.ts.map +1 -1
- package/dist/core/app/desktop-open.js +46 -6
- package/dist/core/app/desktop-open.js.map +1 -1
- package/dist/core/app/index.d.ts +8 -2
- package/dist/core/app/index.d.ts.map +1 -1
- package/dist/core/app/index.js +3 -0
- package/dist/core/app/index.js.map +1 -1
- package/dist/core/app/local-app-agent-work-input.d.ts +1 -1
- package/dist/core/app/local-app-agent-work-input.d.ts.map +1 -1
- package/dist/core/app/local-app-agent-work-input.js +5 -2
- package/dist/core/app/local-app-agent-work-input.js.map +1 -1
- package/dist/core/app/local-app-character-discovery.d.ts +44 -0
- package/dist/core/app/local-app-character-discovery.d.ts.map +1 -0
- package/dist/core/app/local-app-character-discovery.js +82 -0
- package/dist/core/app/local-app-character-discovery.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-activity-view.d.ts +2 -0
- package/dist/core/app/local-app-runtime-platform-activity-view.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-activity-view.js +4 -1
- package/dist/core/app/local-app-runtime-platform-activity-view.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-activity.d.ts +2 -2
- package/dist/core/app/local-app-runtime-platform-activity.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-activity.js +2 -0
- package/dist/core/app/local-app-runtime-platform-activity.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-agent-work.js +1 -1
- package/dist/core/app/local-app-runtime-platform-agent-work.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai-config.d.ts +3 -3
- package/dist/core/app/local-app-runtime-platform-ai-config.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai-config.js +19 -7
- package/dist/core/app/local-app-runtime-platform-ai-config.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.d.ts +28 -2
- package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.js +112 -25
- package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-assets.d.ts +2 -0
- package/dist/core/app/local-app-runtime-platform-assets.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-assets.js +5 -2
- package/dist/core/app/local-app-runtime-platform-assets.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-ai-realtime.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-ai-realtime.js +33 -4
- package/dist/core/app/local-app-runtime-platform-direct-ai-realtime.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-realtime-shared.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-realtime-shared.js +1 -0
- package/dist/core/app/local-app-runtime-platform-direct-realtime-shared.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-integration.d.ts +13 -0
- package/dist/core/app/local-app-runtime-platform-integration.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-integration.js +89 -15
- package/dist/core/app/local-app-runtime-platform-integration.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-realm-realtime.js +1 -1
- package/dist/core/app/local-app-runtime-platform-realm-realtime.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-realtime.d.ts +55 -10
- package/dist/core/app/local-app-runtime-platform-realtime.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-realtime.js +66 -23
- package/dist/core/app/local-app-runtime-platform-realtime.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-utopia.d.ts +208 -0
- package/dist/core/app/local-app-runtime-platform-utopia.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-utopia.js +629 -0
- package/dist/core/app/local-app-runtime-platform-utopia.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-world-creator.d.ts +2 -0
- package/dist/core/app/local-app-runtime-platform-world-creator.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-world-creator.js +8 -6
- package/dist/core/app/local-app-runtime-platform-world-creator.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform.d.ts +7 -3
- package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform.js +23 -113
- package/dist/core/app/local-app-runtime-platform.js.map +1 -1
- package/dist/core/app/local-app-text-candidate.d.ts +3 -0
- package/dist/core/app/local-app-text-candidate.d.ts.map +1 -0
- package/dist/core/app/local-app-text-candidate.js +100 -0
- package/dist/core/app/local-app-text-candidate.js.map +1 -0
- package/dist/core/app/local-app-text.d.ts +6 -0
- package/dist/core/app/local-app-text.d.ts.map +1 -1
- package/dist/core/app/local-app-text.js +19 -4
- package/dist/core/app/local-app-text.js.map +1 -1
- package/dist/core/app/portable-client.d.ts +17 -0
- package/dist/core/app/portable-client.d.ts.map +1 -0
- package/dist/core/app/portable-client.js +2 -0
- package/dist/core/app/portable-client.js.map +1 -0
- package/dist/core/app/runtime-account-realm-source-readiness.generated.d.ts +2 -2
- package/dist/core/app/runtime-account-realm-source-readiness.generated.d.ts.map +1 -1
- package/dist/core/app/runtime-account-realm-source-readiness.generated.js +11 -1
- package/dist/core/app/runtime-account-realm-source-readiness.generated.js.map +1 -1
- package/dist/core/contracts/primitives.d.ts +8 -0
- package/dist/core/contracts/primitives.d.ts.map +1 -1
- package/dist/core/contracts/primitives.js.map +1 -1
- package/dist/core-client/index.d.ts +3 -1
- package/dist/core-client/index.d.ts.map +1 -1
- package/dist/core-client/index.js +13 -2
- package/dist/core-client/index.js.map +1 -1
- package/dist/core-generated/realm-client.d.ts.map +1 -1
- package/dist/core-generated/realm-client.js +166 -4
- package/dist/core-generated/realm-client.js.map +1 -1
- package/dist/core-generated/realm-typed-client.d.ts +712 -28
- package/dist/core-generated/realm-typed-client.d.ts.map +1 -1
- package/dist/core-generated/realm-typed-client.js +333 -6
- package/dist/core-generated/realm-typed-client.js.map +1 -1
- package/dist/core-generated/runtime-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-client.js +112 -0
- package/dist/core-generated/runtime-client.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts +137 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/account.js +314 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/account.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts +154 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js +343 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_utopia.d.ts +985 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_utopia.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_utopia.js +2132 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_utopia.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +315 -3
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +569 -7
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai_realtime.d.ts +229 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai_realtime.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai_realtime.js +432 -7
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai_realtime.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +33 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +74 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/audit.d.ts +31 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/audit.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/audit.js +62 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/audit.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts +33 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js +76 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +151 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js +281 -5
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +31 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +30 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/connector.d.ts +298 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/connector.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js +611 -4
- package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts +146 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js +296 -4
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +12 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +25 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/realtime_control.d.ts +5 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/realtime_control.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/realtime_control.js +4 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/realtime_control.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/remote_access.d.ts +552 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/remote_access.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/remote_access.js +1097 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/remote_access.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts +4 -3
- package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.js.map +1 -1
- package/dist/core-generated/runtime-public-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-client.js +104 -0
- package/dist/core-generated/runtime-public-client.js.map +1 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.js +13 -0
- package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.d.ts +18 -3
- package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.js +18 -3
- package/dist/core-generated/runtime-public-wire-codecs.js.map +1 -1
- package/dist/core-generated/runtime-rpc-auth-posture.d.ts.map +1 -1
- package/dist/core-generated/runtime-rpc-auth-posture.js +14 -0
- package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-typed-client.d.ts +37 -18
- package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-typed-client.js +159 -8
- package/dist/core-generated/runtime-typed-client.js.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.d.ts +20 -4
- package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.js +20 -4
- package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
- package/dist/features/generation/runtime-image-generation.d.ts +8 -1
- package/dist/features/generation/runtime-image-generation.d.ts.map +1 -1
- package/dist/features/generation/runtime-image-generation.js +7 -0
- package/dist/features/generation/runtime-image-generation.js.map +1 -1
- package/dist/features/generation/runtime-scenarios.d.ts +8 -1
- package/dist/features/generation/runtime-scenarios.d.ts.map +1 -1
- package/dist/features/generation/runtime-scenarios.js +17 -1
- package/dist/features/generation/runtime-scenarios.js.map +1 -1
- package/dist/realm/account-settings.d.ts +2 -2
- package/dist/realm/account-settings.d.ts.map +1 -1
- package/dist/realm/auth.d.ts.map +1 -1
- package/dist/realm/auth.js +1 -0
- package/dist/realm/auth.js.map +1 -1
- package/dist/realm/index.d.ts +5 -4
- package/dist/realm/index.d.ts.map +1 -1
- package/dist/realm/index.js +7 -1
- package/dist/realm/index.js.map +1 -1
- package/dist/realm/media-delivery.d.ts.map +1 -1
- package/dist/realm/media-delivery.js +15 -7
- package/dist/realm/media-delivery.js.map +1 -1
- package/dist/realm/notifications.d.ts +2 -0
- package/dist/realm/notifications.d.ts.map +1 -1
- package/dist/realm/notifications.js +8 -3
- package/dist/realm/notifications.js.map +1 -1
- package/dist/realm/resource-upload.d.ts +13 -0
- package/dist/realm/resource-upload.d.ts.map +1 -1
- package/dist/realm/resource-upload.js +35 -21
- package/dist/realm/resource-upload.js.map +1 -1
- package/dist/realm/runtime-client.d.ts +57 -0
- package/dist/realm/runtime-client.d.ts.map +1 -0
- package/dist/realm/runtime-client.js +241 -0
- package/dist/realm/runtime-client.js.map +1 -0
- package/dist/realm/social-types.d.ts +1 -1
- package/dist/realm/social-types.d.ts.map +1 -1
- package/dist/realm/social.d.ts +17 -3
- package/dist/realm/social.d.ts.map +1 -1
- package/dist/realm/social.js +66 -114
- package/dist/realm/social.js.map +1 -1
- package/dist/runtime/config-projections.d.ts +25 -0
- package/dist/runtime/config-projections.d.ts.map +1 -1
- package/dist/runtime/config-projections.js +4 -0
- package/dist/runtime/config-projections.js.map +1 -1
- package/dist/runtime/connector-inventory.d.ts +14 -3
- package/dist/runtime/connector-inventory.d.ts.map +1 -1
- package/dist/runtime/connector-inventory.js +13 -0
- package/dist/runtime/connector-inventory.js.map +1 -1
- package/dist/runtime/desktop-first-party-runtime.d.ts +2 -0
- package/dist/runtime/desktop-first-party-runtime.d.ts.map +1 -1
- package/dist/runtime/desktop-first-party-runtime.js +12 -0
- package/dist/runtime/desktop-first-party-runtime.js.map +1 -1
- package/dist/runtime/electron-ipc.d.ts.map +1 -1
- package/dist/runtime/electron-ipc.js +61 -26
- package/dist/runtime/electron-ipc.js.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +275 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js +74 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js.map +1 -1
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/reason-messages.d.ts +5 -0
- package/dist/runtime/reason-messages.d.ts.map +1 -1
- package/dist/runtime/reason-messages.js +10 -0
- package/dist/runtime/reason-messages.js.map +1 -1
- package/dist/runtime/remote-app.d.ts +63 -0
- package/dist/runtime/remote-app.d.ts.map +1 -0
- package/dist/runtime/remote-app.js +184 -0
- package/dist/runtime/remote-app.js.map +1 -0
- package/dist/runtime/remote-data-channel.d.ts +25 -0
- package/dist/runtime/remote-data-channel.d.ts.map +1 -0
- package/dist/runtime/remote-data-channel.js +406 -0
- package/dist/runtime/remote-data-channel.js.map +1 -0
- package/dist/runtime/remote-realm.d.ts +9 -0
- package/dist/runtime/remote-realm.d.ts.map +1 -0
- package/dist/runtime/remote-realm.js +82 -0
- package/dist/runtime/remote-realm.js.map +1 -0
- package/dist/runtime/remote.d.ts +114 -0
- package/dist/runtime/remote.d.ts.map +1 -0
- package/dist/runtime/remote.js +177 -0
- package/dist/runtime/remote.js.map +1 -0
- package/dist/runtime/runtime-agent-consume-streams.d.ts.map +1 -1
- package/dist/runtime/runtime-agent-consume-streams.js +37 -15
- package/dist/runtime/runtime-agent-consume-streams.js.map +1 -1
- package/dist/runtime/runtime-agent-context-projections.d.ts +1 -1
- package/dist/runtime/runtime-agent-context-projections.d.ts.map +1 -1
- package/dist/runtime/runtime-agent-context-projections.js +5 -1
- package/dist/runtime/runtime-agent-context-projections.js.map +1 -1
- package/dist/runtime/wire-types/agent-participation-types.d.ts +4 -2
- package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts +58 -4
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.js +60 -0
- package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-types.d.ts +10 -8
- package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-types.d.ts +8 -8
- package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts +8 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.js +7 -0
- package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +1 -0
- package/dist/types/errors.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/reason-code.d.ts +5 -0
- package/dist/types/reason-code.d.ts.map +1 -1
- package/dist/types/reason-code.js +5 -0
- package/dist/types/reason-code.js.map +1 -1
- 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,6 +11091,8 @@ 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
11097
|
{ no: 16, name: "client_submission_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
10715
11098
|
]);
|
|
@@ -10818,6 +11201,18 @@ class SubmitLocalAppScenarioJobRequest$Type extends MessageType {
|
|
|
10818
11201
|
audioSpeakerEmbed: AudioSpeakerEmbedScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.audioSpeakerEmbed)
|
|
10819
11202
|
};
|
|
10820
11203
|
break;
|
|
11204
|
+
case /* nimi.runtime.v1.MediaUpscaleScenarioSpec image_upscale */ 20:
|
|
11205
|
+
message.spec = {
|
|
11206
|
+
oneofKind: "imageUpscale",
|
|
11207
|
+
imageUpscale: MediaUpscaleScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.imageUpscale)
|
|
11208
|
+
};
|
|
11209
|
+
break;
|
|
11210
|
+
case /* nimi.runtime.v1.MediaUpscaleScenarioSpec video_upscale */ 21:
|
|
11211
|
+
message.spec = {
|
|
11212
|
+
oneofKind: "videoUpscale",
|
|
11213
|
+
videoUpscale: MediaUpscaleScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.videoUpscale)
|
|
11214
|
+
};
|
|
11215
|
+
break;
|
|
10821
11216
|
case /* int32 timeout_ms = 9 [deprecated = true] */ 9:
|
|
10822
11217
|
message.timeoutMs = reader.int32();
|
|
10823
11218
|
break;
|
|
@@ -10887,6 +11282,12 @@ class SubmitLocalAppScenarioJobRequest$Type extends MessageType {
|
|
|
10887
11282
|
/* nimi.runtime.v1.AudioSpeakerEmbedScenarioSpec audio_speaker_embed = 19; */
|
|
10888
11283
|
if (message.spec.oneofKind === "audioSpeakerEmbed")
|
|
10889
11284
|
AudioSpeakerEmbedScenarioSpec.internalBinaryWrite(message.spec.audioSpeakerEmbed, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
|
11285
|
+
/* nimi.runtime.v1.MediaUpscaleScenarioSpec image_upscale = 20; */
|
|
11286
|
+
if (message.spec.oneofKind === "imageUpscale")
|
|
11287
|
+
MediaUpscaleScenarioSpec.internalBinaryWrite(message.spec.imageUpscale, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
|
|
11288
|
+
/* nimi.runtime.v1.MediaUpscaleScenarioSpec video_upscale = 21; */
|
|
11289
|
+
if (message.spec.oneofKind === "videoUpscale")
|
|
11290
|
+
MediaUpscaleScenarioSpec.internalBinaryWrite(message.spec.videoUpscale, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
|
10890
11291
|
let u = options.writeUnknownFields;
|
|
10891
11292
|
if (u !== false)
|
|
10892
11293
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -11609,6 +12010,77 @@ class LocalAppScenarioJobEvent$Type extends MessageType {
|
|
|
11609
12010
|
*/
|
|
11610
12011
|
export const LocalAppScenarioJobEvent = new LocalAppScenarioJobEvent$Type();
|
|
11611
12012
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
12013
|
+
class AppTextConfigSelection$Type extends MessageType {
|
|
12014
|
+
constructor() {
|
|
12015
|
+
super("nimi.runtime.v1.AppTextConfigSelection", [
|
|
12016
|
+
{ no: 1, name: "config_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
12017
|
+
{ no: 2, name: "expected_revision", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
12018
|
+
{ no: 3, name: "expected_local_loadout_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
12019
|
+
{ no: 4, name: "expected_local_loadout_revision", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
12020
|
+
]);
|
|
12021
|
+
}
|
|
12022
|
+
create(value) {
|
|
12023
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
12024
|
+
message.configRef = "";
|
|
12025
|
+
message.expectedRevision = "";
|
|
12026
|
+
message.expectedLocalLoadoutRef = "";
|
|
12027
|
+
message.expectedLocalLoadoutRevision = "";
|
|
12028
|
+
if (value !== undefined)
|
|
12029
|
+
reflectionMergePartial(this, message, value);
|
|
12030
|
+
return message;
|
|
12031
|
+
}
|
|
12032
|
+
internalBinaryRead(reader, length, options, target) {
|
|
12033
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
12034
|
+
while (reader.pos < end) {
|
|
12035
|
+
let [fieldNo, wireType] = reader.tag();
|
|
12036
|
+
switch (fieldNo) {
|
|
12037
|
+
case /* string config_ref */ 1:
|
|
12038
|
+
message.configRef = reader.string();
|
|
12039
|
+
break;
|
|
12040
|
+
case /* string expected_revision */ 2:
|
|
12041
|
+
message.expectedRevision = reader.string();
|
|
12042
|
+
break;
|
|
12043
|
+
case /* string expected_local_loadout_ref */ 3:
|
|
12044
|
+
message.expectedLocalLoadoutRef = reader.string();
|
|
12045
|
+
break;
|
|
12046
|
+
case /* string expected_local_loadout_revision */ 4:
|
|
12047
|
+
message.expectedLocalLoadoutRevision = reader.string();
|
|
12048
|
+
break;
|
|
12049
|
+
default:
|
|
12050
|
+
let u = options.readUnknownField;
|
|
12051
|
+
if (u === "throw")
|
|
12052
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
12053
|
+
let d = reader.skip(wireType);
|
|
12054
|
+
if (u !== false)
|
|
12055
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
12056
|
+
}
|
|
12057
|
+
}
|
|
12058
|
+
return message;
|
|
12059
|
+
}
|
|
12060
|
+
internalBinaryWrite(message, writer, options) {
|
|
12061
|
+
/* string config_ref = 1; */
|
|
12062
|
+
if (message.configRef !== "")
|
|
12063
|
+
writer.tag(1, WireType.LengthDelimited).string(message.configRef);
|
|
12064
|
+
/* string expected_revision = 2; */
|
|
12065
|
+
if (message.expectedRevision !== "")
|
|
12066
|
+
writer.tag(2, WireType.LengthDelimited).string(message.expectedRevision);
|
|
12067
|
+
/* string expected_local_loadout_ref = 3; */
|
|
12068
|
+
if (message.expectedLocalLoadoutRef !== "")
|
|
12069
|
+
writer.tag(3, WireType.LengthDelimited).string(message.expectedLocalLoadoutRef);
|
|
12070
|
+
/* string expected_local_loadout_revision = 4; */
|
|
12071
|
+
if (message.expectedLocalLoadoutRevision !== "")
|
|
12072
|
+
writer.tag(4, WireType.LengthDelimited).string(message.expectedLocalLoadoutRevision);
|
|
12073
|
+
let u = options.writeUnknownFields;
|
|
12074
|
+
if (u !== false)
|
|
12075
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12076
|
+
return writer;
|
|
12077
|
+
}
|
|
12078
|
+
}
|
|
12079
|
+
/**
|
|
12080
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.AppTextConfigSelection
|
|
12081
|
+
*/
|
|
12082
|
+
export const AppTextConfigSelection = new AppTextConfigSelection$Type();
|
|
12083
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
11612
12084
|
class StreamLocalAppTextTurnRequest$Type extends MessageType {
|
|
11613
12085
|
constructor() {
|
|
11614
12086
|
super("nimi.runtime.v1.StreamLocalAppTextTurnRequest", [
|
|
@@ -11625,7 +12097,8 @@ class StreamLocalAppTextTurnRequest$Type extends MessageType {
|
|
|
11625
12097
|
{ no: 11, name: "tool_choice", kind: "enum", T: () => ["nimi.runtime.v1.ToolChoiceMode", ToolChoiceMode, "TOOL_CHOICE_MODE_"] },
|
|
11626
12098
|
{ no: 12, name: "tool_choice_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
11627
12099
|
{ no: 13, name: "response_format", kind: "message", T: () => ResponseFormat },
|
|
11628
|
-
{ no: 14, name: "reasoning", kind: "message", T: () => ReasoningConfig }
|
|
12100
|
+
{ no: 14, name: "reasoning", kind: "message", T: () => ReasoningConfig },
|
|
12101
|
+
{ no: 15, name: "configuration", kind: "message", T: () => AppTextConfigSelection }
|
|
11629
12102
|
]);
|
|
11630
12103
|
}
|
|
11631
12104
|
create(value) {
|
|
@@ -11686,6 +12159,9 @@ class StreamLocalAppTextTurnRequest$Type extends MessageType {
|
|
|
11686
12159
|
case /* nimi.runtime.v1.ReasoningConfig reasoning */ 14:
|
|
11687
12160
|
message.reasoning = ReasoningConfig.internalBinaryRead(reader, reader.uint32(), options, message.reasoning);
|
|
11688
12161
|
break;
|
|
12162
|
+
case /* nimi.runtime.v1.AppTextConfigSelection configuration */ 15:
|
|
12163
|
+
message.configuration = AppTextConfigSelection.internalBinaryRead(reader, reader.uint32(), options, message.configuration);
|
|
12164
|
+
break;
|
|
11689
12165
|
default:
|
|
11690
12166
|
let u = options.readUnknownField;
|
|
11691
12167
|
if (u === "throw")
|
|
@@ -11740,6 +12216,9 @@ class StreamLocalAppTextTurnRequest$Type extends MessageType {
|
|
|
11740
12216
|
/* nimi.runtime.v1.ReasoningConfig reasoning = 14; */
|
|
11741
12217
|
if (message.reasoning)
|
|
11742
12218
|
ReasoningConfig.internalBinaryWrite(message.reasoning, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
|
12219
|
+
/* nimi.runtime.v1.AppTextConfigSelection configuration = 15; */
|
|
12220
|
+
if (message.configuration)
|
|
12221
|
+
AppTextConfigSelection.internalBinaryWrite(message.configuration, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
11743
12222
|
let u = options.writeUnknownFields;
|
|
11744
12223
|
if (u !== false)
|
|
11745
12224
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -11977,10 +12456,81 @@ class LocalAppTextTurnReasoningSummary$Type extends MessageType {
|
|
|
11977
12456
|
*/
|
|
11978
12457
|
export const LocalAppTextTurnReasoningSummary = new LocalAppTextTurnReasoningSummary$Type();
|
|
11979
12458
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
12459
|
+
class AppTextConfigCapture$Type extends MessageType {
|
|
12460
|
+
constructor() {
|
|
12461
|
+
super("nimi.runtime.v1.AppTextConfigCapture", [
|
|
12462
|
+
{ no: 1, name: "config_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
12463
|
+
{ no: 2, name: "revision", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
12464
|
+
{ no: 3, name: "local_loadout_ref", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
12465
|
+
{ no: 4, name: "local_loadout_revision", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
12466
|
+
]);
|
|
12467
|
+
}
|
|
12468
|
+
create(value) {
|
|
12469
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
12470
|
+
message.configRef = "";
|
|
12471
|
+
message.revision = "";
|
|
12472
|
+
if (value !== undefined)
|
|
12473
|
+
reflectionMergePartial(this, message, value);
|
|
12474
|
+
return message;
|
|
12475
|
+
}
|
|
12476
|
+
internalBinaryRead(reader, length, options, target) {
|
|
12477
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
12478
|
+
while (reader.pos < end) {
|
|
12479
|
+
let [fieldNo, wireType] = reader.tag();
|
|
12480
|
+
switch (fieldNo) {
|
|
12481
|
+
case /* string config_ref */ 1:
|
|
12482
|
+
message.configRef = reader.string();
|
|
12483
|
+
break;
|
|
12484
|
+
case /* string revision */ 2:
|
|
12485
|
+
message.revision = reader.string();
|
|
12486
|
+
break;
|
|
12487
|
+
case /* optional string local_loadout_ref */ 3:
|
|
12488
|
+
message.localLoadoutRef = reader.string();
|
|
12489
|
+
break;
|
|
12490
|
+
case /* optional string local_loadout_revision */ 4:
|
|
12491
|
+
message.localLoadoutRevision = reader.string();
|
|
12492
|
+
break;
|
|
12493
|
+
default:
|
|
12494
|
+
let u = options.readUnknownField;
|
|
12495
|
+
if (u === "throw")
|
|
12496
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
12497
|
+
let d = reader.skip(wireType);
|
|
12498
|
+
if (u !== false)
|
|
12499
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
12500
|
+
}
|
|
12501
|
+
}
|
|
12502
|
+
return message;
|
|
12503
|
+
}
|
|
12504
|
+
internalBinaryWrite(message, writer, options) {
|
|
12505
|
+
/* string config_ref = 1; */
|
|
12506
|
+
if (message.configRef !== "")
|
|
12507
|
+
writer.tag(1, WireType.LengthDelimited).string(message.configRef);
|
|
12508
|
+
/* string revision = 2; */
|
|
12509
|
+
if (message.revision !== "")
|
|
12510
|
+
writer.tag(2, WireType.LengthDelimited).string(message.revision);
|
|
12511
|
+
/* optional string local_loadout_ref = 3; */
|
|
12512
|
+
if (message.localLoadoutRef !== undefined)
|
|
12513
|
+
writer.tag(3, WireType.LengthDelimited).string(message.localLoadoutRef);
|
|
12514
|
+
/* optional string local_loadout_revision = 4; */
|
|
12515
|
+
if (message.localLoadoutRevision !== undefined)
|
|
12516
|
+
writer.tag(4, WireType.LengthDelimited).string(message.localLoadoutRevision);
|
|
12517
|
+
let u = options.writeUnknownFields;
|
|
12518
|
+
if (u !== false)
|
|
12519
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12520
|
+
return writer;
|
|
12521
|
+
}
|
|
12522
|
+
}
|
|
12523
|
+
/**
|
|
12524
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.AppTextConfigCapture
|
|
12525
|
+
*/
|
|
12526
|
+
export const AppTextConfigCapture = new AppTextConfigCapture$Type();
|
|
12527
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
11980
12528
|
class LocalAppTextTurnCompleted$Type extends MessageType {
|
|
11981
12529
|
constructor() {
|
|
11982
12530
|
super("nimi.runtime.v1.LocalAppTextTurnCompleted", [
|
|
11983
|
-
{ no:
|
|
12531
|
+
{ no: 3, name: "configuration", kind: "message", T: () => AppTextConfigCapture },
|
|
12532
|
+
{ no: 1, name: "finish_reason", kind: "enum", T: () => ["nimi.runtime.v1.FinishReason", FinishReason, "FINISH_REASON_"] },
|
|
12533
|
+
{ no: 2, name: "usage", kind: "message", T: () => UsageStats }
|
|
11984
12534
|
]);
|
|
11985
12535
|
}
|
|
11986
12536
|
create(value) {
|
|
@@ -11995,9 +12545,15 @@ class LocalAppTextTurnCompleted$Type extends MessageType {
|
|
|
11995
12545
|
while (reader.pos < end) {
|
|
11996
12546
|
let [fieldNo, wireType] = reader.tag();
|
|
11997
12547
|
switch (fieldNo) {
|
|
12548
|
+
case /* nimi.runtime.v1.AppTextConfigCapture configuration */ 3:
|
|
12549
|
+
message.configuration = AppTextConfigCapture.internalBinaryRead(reader, reader.uint32(), options, message.configuration);
|
|
12550
|
+
break;
|
|
11998
12551
|
case /* nimi.runtime.v1.FinishReason finish_reason */ 1:
|
|
11999
12552
|
message.finishReason = reader.int32();
|
|
12000
12553
|
break;
|
|
12554
|
+
case /* nimi.runtime.v1.UsageStats usage */ 2:
|
|
12555
|
+
message.usage = UsageStats.internalBinaryRead(reader, reader.uint32(), options, message.usage);
|
|
12556
|
+
break;
|
|
12001
12557
|
default:
|
|
12002
12558
|
let u = options.readUnknownField;
|
|
12003
12559
|
if (u === "throw")
|
|
@@ -12013,6 +12569,12 @@ class LocalAppTextTurnCompleted$Type extends MessageType {
|
|
|
12013
12569
|
/* nimi.runtime.v1.FinishReason finish_reason = 1; */
|
|
12014
12570
|
if (message.finishReason !== 0)
|
|
12015
12571
|
writer.tag(1, WireType.Varint).int32(message.finishReason);
|
|
12572
|
+
/* nimi.runtime.v1.UsageStats usage = 2; */
|
|
12573
|
+
if (message.usage)
|
|
12574
|
+
UsageStats.internalBinaryWrite(message.usage, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
12575
|
+
/* nimi.runtime.v1.AppTextConfigCapture configuration = 3; */
|
|
12576
|
+
if (message.configuration)
|
|
12577
|
+
AppTextConfigCapture.internalBinaryWrite(message.configuration, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
12016
12578
|
let u = options.writeUnknownFields;
|
|
12017
12579
|
if (u !== false)
|
|
12018
12580
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|