@nimiplatform/sdk 0.15.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +500 -1
- package/README.md +181 -346
- package/dist/core/ai/capability-configuration.d.ts +15 -0
- package/dist/core/ai/capability-configuration.d.ts.map +1 -1
- package/dist/core/ai/capability-configuration.js +36 -0
- package/dist/core/ai/capability-configuration.js.map +1 -1
- package/dist/core/ai/embeddings.d.ts +6 -0
- package/dist/core/ai/embeddings.d.ts.map +1 -1
- package/dist/core/ai/embeddings.js +33 -4
- package/dist/core/ai/embeddings.js.map +1 -1
- package/dist/core/ai/index.d.ts +4 -0
- package/dist/core/ai/index.d.ts.map +1 -1
- package/dist/core/ai/index.js +3 -0
- package/dist/core/ai/index.js.map +1 -1
- package/dist/core/ai/local-app-model.d.ts +15 -4
- package/dist/core/ai/local-app-model.d.ts.map +1 -1
- package/dist/core/ai/local-app-model.js +57 -18
- package/dist/core/ai/local-app-model.js.map +1 -1
- package/dist/core/ai/music-input-wire.d.ts +4 -0
- package/dist/core/ai/music-input-wire.d.ts.map +1 -0
- package/dist/core/ai/music-input-wire.js +9 -0
- package/dist/core/ai/music-input-wire.js.map +1 -0
- package/dist/core/ai/music-input.d.ts +44 -0
- package/dist/core/ai/music-input.d.ts.map +1 -0
- package/dist/core/ai/music-input.js +69 -0
- package/dist/core/ai/music-input.js.map +1 -0
- package/dist/core/ai/reasoning.d.ts +32 -0
- package/dist/core/ai/reasoning.d.ts.map +1 -0
- package/dist/core/ai/reasoning.js +74 -0
- package/dist/core/ai/reasoning.js.map +1 -0
- package/dist/core/ai/runtime-model.d.ts +2 -19
- package/dist/core/ai/runtime-model.d.ts.map +1 -1
- package/dist/core/ai/runtime-model.js +3 -47
- package/dist/core/ai/runtime-model.js.map +1 -1
- package/dist/core/ai/speech-input.d.ts +9 -0
- package/dist/core/ai/speech-input.d.ts.map +1 -0
- package/dist/core/ai/speech-input.js +16 -0
- package/dist/core/ai/speech-input.js.map +1 -0
- package/dist/core/ai/text-runner.js +11 -4
- package/dist/core/ai/text-runner.js.map +1 -1
- package/dist/core/app/desktop-open.d.ts +11 -5
- package/dist/core/app/desktop-open.d.ts.map +1 -1
- package/dist/core/app/desktop-open.js +24 -16
- package/dist/core/app/desktop-open.js.map +1 -1
- package/dist/core/app/index.d.ts +32 -5
- package/dist/core/app/index.d.ts.map +1 -1
- package/dist/core/app/index.js +19 -1
- package/dist/core/app/index.js.map +1 -1
- package/dist/core/app/local-app-agent-introduction.d.ts +33 -0
- package/dist/core/app/local-app-agent-introduction.d.ts.map +1 -0
- package/dist/core/app/local-app-agent-introduction.js +94 -0
- package/dist/core/app/local-app-agent-introduction.js.map +1 -0
- package/dist/core/app/local-app-agent-work-input.d.ts +24 -0
- package/dist/core/app/local-app-agent-work-input.d.ts.map +1 -0
- package/dist/core/app/local-app-agent-work-input.js +50 -0
- package/dist/core/app/local-app-agent-work-input.js.map +1 -0
- package/dist/core/app/local-app-audio-separation.d.ts +9 -0
- package/dist/core/app/local-app-audio-separation.d.ts.map +1 -1
- package/dist/core/app/local-app-audio-separation.js +64 -3
- package/dist/core/app/local-app-audio-separation.js.map +1 -1
- package/dist/core/app/local-app-bytes.d.ts +10 -0
- package/dist/core/app/local-app-bytes.d.ts.map +1 -0
- package/dist/core/app/local-app-bytes.js +27 -0
- package/dist/core/app/local-app-bytes.js.map +1 -0
- package/dist/core/app/local-app-music-transcription.d.ts +43 -0
- package/dist/core/app/local-app-music-transcription.d.ts.map +1 -0
- package/dist/core/app/local-app-music-transcription.js +94 -0
- package/dist/core/app/local-app-music-transcription.js.map +1 -0
- package/dist/core/app/local-app-music.d.ts +50 -0
- package/dist/core/app/local-app-music.d.ts.map +1 -0
- package/dist/core/app/local-app-music.js +135 -0
- package/dist/core/app/local-app-music.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-activity-view.d.ts +59 -0
- package/dist/core/app/local-app-runtime-platform-activity-view.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-activity-view.js +285 -0
- package/dist/core/app/local-app-runtime-platform-activity-view.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-activity.d.ts +219 -0
- package/dist/core/app/local-app-runtime-platform-activity.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-activity.js +753 -0
- package/dist/core/app/local-app-runtime-platform-activity.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-agent-references.d.ts +4 -0
- package/dist/core/app/local-app-runtime-platform-agent-references.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-agent-references.js +21 -9
- package/dist/core/app/local-app-runtime-platform-agent-references.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-agent-work.d.ts +88 -0
- package/dist/core/app/local-app-runtime-platform-agent-work.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-agent-work.js +165 -0
- package/dist/core/app/local-app-runtime-platform-agent-work.js.map +1 -0
- 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 +55 -1
- 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 +154 -36
- package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.js +738 -121
- package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-assets.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-assets.js +37 -12
- package/dist/core/app/local-app-runtime-platform-assets.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-configure.d.ts +38 -4
- package/dist/core/app/local-app-runtime-platform-configure.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-configure.js +130 -28
- package/dist/core/app/local-app-runtime-platform-configure.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-conversation.d.ts +74 -10
- package/dist/core/app/local-app-runtime-platform-conversation.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-conversation.js +176 -29
- package/dist/core/app/local-app-runtime-platform-conversation.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-agent-work.d.ts +5 -0
- package/dist/core/app/local-app-runtime-platform-direct-agent-work.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-direct-agent-work.js +38 -0
- package/dist/core/app/local-app-runtime-platform-direct-agent-work.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-direct-conversation.d.ts +4 -1
- package/dist/core/app/local-app-runtime-platform-direct-conversation.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-conversation.js +64 -11
- package/dist/core/app/local-app-runtime-platform-direct-conversation.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-realm-realtime.d.ts +2 -0
- package/dist/core/app/local-app-runtime-platform-direct-realm-realtime.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-realm-realtime.js +10 -2
- package/dist/core/app/local-app-runtime-platform-direct-realm-realtime.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-integration.d.ts +128 -0
- package/dist/core/app/local-app-runtime-platform-integration.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-integration.js +263 -0
- package/dist/core/app/local-app-runtime-platform-integration.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-life.d.ts +33 -0
- package/dist/core/app/local-app-runtime-platform-life.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-life.js +59 -0
- package/dist/core/app/local-app-runtime-platform-life.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-proactive.d.ts +28 -0
- package/dist/core/app/local-app-runtime-platform-proactive.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-proactive.js +42 -0
- package/dist/core/app/local-app-runtime-platform-proactive.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-realm-realtime.d.ts +6 -2
- package/dist/core/app/local-app-runtime-platform-realm-realtime.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-realm-realtime.js +15 -4
- package/dist/core/app/local-app-runtime-platform-realm-realtime.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-validation.d.ts +2 -0
- package/dist/core/app/local-app-runtime-platform-validation.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-validation.js +42 -3
- package/dist/core/app/local-app-runtime-platform-validation.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-vision.d.ts +1 -1
- package/dist/core/app/local-app-runtime-platform-vision.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-vision.js +5 -5
- package/dist/core/app/local-app-runtime-platform-vision.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform.d.ts +22 -17
- package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform.js +22 -8
- package/dist/core/app/local-app-runtime-platform.js.map +1 -1
- package/dist/core/app/local-app-speaker-embedding.d.ts +6 -0
- package/dist/core/app/local-app-speaker-embedding.d.ts.map +1 -0
- package/dist/core/app/local-app-speaker-embedding.js +14 -0
- package/dist/core/app/local-app-speaker-embedding.js.map +1 -0
- package/dist/core/app/local-app-text-decision.d.ts +114 -0
- package/dist/core/app/local-app-text-decision.d.ts.map +1 -0
- package/dist/core/app/local-app-text-decision.js +444 -0
- package/dist/core/app/local-app-text-decision.js.map +1 -0
- package/dist/core/app/local-app-text.d.ts +7 -1
- package/dist/core/app/local-app-text.d.ts.map +1 -1
- package/dist/core/app/local-app-text.js +16 -15
- package/dist/core/app/local-app-text.js.map +1 -1
- package/dist/core/app/local-app-transcription.d.ts +11 -0
- package/dist/core/app/local-app-transcription.d.ts.map +1 -1
- package/dist/core/app/local-app-transcription.js +22 -2
- package/dist/core/app/local-app-transcription.js.map +1 -1
- package/dist/core/app/local-app-voice-convert.d.ts +61 -0
- package/dist/core/app/local-app-voice-convert.d.ts.map +1 -0
- package/dist/core/app/local-app-voice-convert.js +133 -0
- package/dist/core/app/local-app-voice-convert.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 +17 -12
- package/dist/core/app/runtime-account-realm-source-readiness.generated.js.map +1 -1
- package/dist/core/text-stream-cleanup.d.ts +3 -0
- package/dist/core/text-stream-cleanup.d.ts.map +1 -0
- package/dist/core/text-stream-cleanup.js +19 -0
- package/dist/core/text-stream-cleanup.js.map +1 -0
- package/dist/core-generated/realm-client.d.ts.map +1 -1
- package/dist/core-generated/realm-client.js +43 -103
- package/dist/core-generated/realm-client.js.map +1 -1
- package/dist/core-generated/realm-typed-client.d.ts +339 -457
- package/dist/core-generated/realm-typed-client.d.ts.map +1 -1
- package/dist/core-generated/realm-typed-client.js +72 -208
- 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 +388 -12
- package/dist/core-generated/runtime-client.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/google/protobuf/field_mask.d.ts +16 -18
- package/dist/core-generated/runtime-protobuf/google/protobuf/field_mask.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/google/protobuf/field_mask.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/google/protobuf/struct.d.ts +33 -22
- package/dist/core-generated/runtime-protobuf/google/protobuf/struct.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/google/protobuf/struct.js +8 -3
- package/dist/core-generated/runtime-protobuf/google/protobuf/struct.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/google/protobuf/timestamp.d.ts +3 -3
- package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts +31 -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 +49 -5
- package/dist/core-generated/runtime-protobuf/runtime/v1/account.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_configure.d.ts +147 -4
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_configure.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_configure.js +327 -14
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_configure.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_life.d.ts +167 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_life.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_life.js +312 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_life.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts +606 -148
- 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 +1631 -722
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.d.ts +9 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.js +8 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.d.ts +625 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.js +1369 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +1872 -106
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +4718 -1513
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +40 -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 +72 -3
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.d.ts +859 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.js +1663 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/audit.d.ts +712 -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 +1461 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/audit.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts +20 -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 +38 -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 +548 -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 +1309 -242
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/cognition_memory.d.ts +67 -4
- package/dist/core-generated/runtime-protobuf/runtime/v1/cognition_memory.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/cognition_memory.js +101 -10
- package/dist/core-generated/runtime-protobuf/runtime/v1/cognition_memory.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +150 -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 +149 -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 +81 -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 +166 -5
- package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/development.d.ts +53 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/development.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/development.js +118 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/development.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts +1293 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js +2898 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +166 -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 +217 -4
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts +8 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js +9 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/realm_realtime.d.ts +181 -8
- package/dist/core-generated/runtime-protobuf/runtime/v1/realm_realtime.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/realm_realtime.js +402 -18
- package/dist/core-generated/runtime-protobuf/runtime/v1/realm_realtime.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts +110 -0
- 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 +213 -0
- 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 +364 -20
- 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 +46 -3
- package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.d.ts +56 -10
- package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.js +56 -10
- 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 +49 -2
- package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-typed-client.d.ts +86 -26
- package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-typed-client.js +487 -11
- package/dist/core-generated/runtime-typed-client.js.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.d.ts +60 -10
- package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.js +61 -11
- package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
- package/dist/features/generation/index.d.ts +14 -2
- package/dist/features/generation/index.d.ts.map +1 -1
- package/dist/features/generation/index.js +14 -1
- package/dist/features/generation/index.js.map +1 -1
- package/dist/features/generation/media-params.d.ts +0 -3
- package/dist/features/generation/media-params.d.ts.map +1 -1
- package/dist/features/generation/media-params.js +8 -6
- package/dist/features/generation/media-params.js.map +1 -1
- package/dist/features/generation/runtime-generation-build.d.ts +0 -1
- package/dist/features/generation/runtime-generation-build.d.ts.map +1 -1
- package/dist/features/generation/runtime-generation-build.js +6 -1
- package/dist/features/generation/runtime-generation-build.js.map +1 -1
- package/dist/features/generation/runtime-image-generation.d.ts +5 -1
- package/dist/features/generation/runtime-image-generation.d.ts.map +1 -1
- package/dist/features/generation/runtime-image-generation.js +4 -0
- package/dist/features/generation/runtime-image-generation.js.map +1 -1
- package/dist/features/generation/runtime-job-builders.d.ts +0 -1
- package/dist/features/generation/runtime-job-builders.d.ts.map +1 -1
- package/dist/features/generation/runtime-job-builders.js +8 -10
- package/dist/features/generation/runtime-job-builders.js.map +1 -1
- package/dist/realm/account-settings.d.ts +5 -3
- package/dist/realm/account-settings.d.ts.map +1 -1
- package/dist/realm/account-settings.js +3 -3
- package/dist/realm/account-settings.js.map +1 -1
- package/dist/realm/generated.d.ts +1 -1
- package/dist/realm/generated.d.ts.map +1 -1
- package/dist/realm/generated.js.map +1 -1
- package/dist/realm/index.d.ts +4 -4
- package/dist/realm/index.d.ts.map +1 -1
- package/dist/realm/index.js +8 -17
- package/dist/realm/index.js.map +1 -1
- package/dist/realm/media-delivery.d.ts +4 -0
- package/dist/realm/media-delivery.d.ts.map +1 -0
- package/dist/realm/media-delivery.js +65 -0
- package/dist/realm/media-delivery.js.map +1 -0
- package/dist/realm/resource-upload.d.ts +12 -3
- package/dist/realm/resource-upload.d.ts.map +1 -1
- package/dist/realm/resource-upload.js +93 -241
- package/dist/realm/resource-upload.js.map +1 -1
- package/dist/realm/social-types.d.ts +1 -15
- package/dist/realm/social-types.d.ts.map +1 -1
- package/dist/realm/social.d.ts +3 -17
- package/dist/realm/social.d.ts.map +1 -1
- package/dist/realm/social.js +0 -175
- package/dist/realm/social.js.map +1 -1
- package/dist/runtime/chatgpt-plan.d.ts +7 -0
- package/dist/runtime/chatgpt-plan.d.ts.map +1 -0
- package/dist/runtime/chatgpt-plan.js +15 -0
- package/dist/runtime/chatgpt-plan.js.map +1 -0
- package/dist/runtime/config-projections.d.ts +12 -0
- package/dist/runtime/config-projections.d.ts.map +1 -1
- package/dist/runtime/config-projections.js +11 -3
- package/dist/runtime/config-projections.js.map +1 -1
- package/dist/runtime/connector-auth-acquisition-client.d.ts +3 -6
- package/dist/runtime/connector-auth-acquisition-client.d.ts.map +1 -1
- package/dist/runtime/connector-auth-acquisition-client.js +18 -11
- package/dist/runtime/connector-auth-acquisition-client.js.map +1 -1
- package/dist/runtime/connector-auth-acquisition-profiles.generated.d.ts +10 -11
- package/dist/runtime/connector-auth-acquisition-profiles.generated.d.ts.map +1 -1
- package/dist/runtime/connector-auth-acquisition-profiles.generated.js +13 -14
- package/dist/runtime/connector-auth-acquisition-profiles.generated.js.map +1 -1
- package/dist/runtime/connector-auth-acquisition.d.ts +26 -19
- package/dist/runtime/connector-auth-acquisition.d.ts.map +1 -1
- package/dist/runtime/connector-auth-acquisition.js +352 -269
- package/dist/runtime/connector-auth-acquisition.js.map +1 -1
- package/dist/runtime/connector-auth-profiles.generated.d.ts +1 -1
- package/dist/runtime/connector-auth-profiles.generated.d.ts.map +1 -1
- package/dist/runtime/connector-auth-profiles.generated.js +4 -4
- package/dist/runtime/connector-auth-profiles.generated.js.map +1 -1
- package/dist/runtime/connector-inventory.d.ts +19 -3
- package/dist/runtime/connector-inventory.d.ts.map +1 -1
- package/dist/runtime/connector-inventory.js +77 -25
- package/dist/runtime/connector-inventory.js.map +1 -1
- package/dist/runtime/desktop-audit.js +4 -1
- package/dist/runtime/desktop-audit.js.map +1 -1
- package/dist/runtime/desktop-first-party-runtime.d.ts +8 -1
- package/dist/runtime/desktop-first-party-runtime.d.ts.map +1 -1
- package/dist/runtime/desktop-first-party-runtime.js +80 -2
- package/dist/runtime/desktop-first-party-runtime.js.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +174 -10
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js +45 -4
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js.map +1 -1
- package/dist/runtime/generated.d.ts +2 -2
- package/dist/runtime/generated.d.ts.map +1 -1
- package/dist/runtime/generated.js +1 -1
- package/dist/runtime/generated.js.map +1 -1
- package/dist/runtime/host.d.ts +3 -0
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/host.js +4 -0
- package/dist/runtime/host.js.map +1 -1
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +12 -10
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/machine-loadouts.d.ts +18 -0
- package/dist/runtime/machine-loadouts.d.ts.map +1 -1
- package/dist/runtime/machine-loadouts.js +26 -0
- package/dist/runtime/machine-loadouts.js.map +1 -1
- package/dist/runtime/node-grpc-errors.js +3 -3
- package/dist/runtime/node-grpc-errors.js.map +1 -1
- package/dist/runtime/node-grpc.d.ts.map +1 -1
- package/dist/runtime/node-grpc.js +24 -4
- package/dist/runtime/node-grpc.js.map +1 -1
- package/dist/runtime/product-control-projection.d.ts.map +1 -1
- package/dist/runtime/product-control-projection.js +11 -2
- package/dist/runtime/product-control-projection.js.map +1 -1
- package/dist/runtime/product-control-types.d.ts +13 -2
- package/dist/runtime/product-control-types.d.ts.map +1 -1
- package/dist/runtime/product-control-types.js.map +1 -1
- package/dist/runtime/reason-messages.d.ts +6 -0
- package/dist/runtime/reason-messages.d.ts.map +1 -1
- package/dist/runtime/reason-messages.js +17 -2
- package/dist/runtime/reason-messages.js.map +1 -1
- package/dist/runtime/runtime-agent-inspect-projection.d.ts +2 -3
- package/dist/runtime/runtime-agent-inspect-projection.d.ts.map +1 -1
- package/dist/runtime/runtime-agent-inspect-projection.js +2 -27
- package/dist/runtime/runtime-agent-inspect-projection.js.map +1 -1
- package/dist/runtime/runtime-agent-inspect-types.d.ts +4 -32
- package/dist/runtime/runtime-agent-inspect-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-projections.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-projections.js +19 -19
- package/dist/runtime/runtime-local-environment-client-projections.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client-types.d.ts +48 -21
- package/dist/runtime/runtime-local-environment-client-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-values.d.ts +3 -1
- package/dist/runtime/runtime-local-environment-client-values.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-values.js +43 -0
- package/dist/runtime/runtime-local-environment-client-values.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client.js +27 -4
- package/dist/runtime/runtime-local-environment-client.js.map +1 -1
- package/dist/runtime/runtime-local-recommendation-types.d.ts +3 -0
- package/dist/runtime/runtime-local-recommendation-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-recommendation.d.ts.map +1 -1
- package/dist/runtime/runtime-local-recommendation.js +1 -0
- package/dist/runtime/runtime-local-recommendation.js.map +1 -1
- package/dist/runtime/runtime-method-modules.d.ts +1 -1
- package/dist/runtime/runtime-method-modules.d.ts.map +1 -1
- package/dist/runtime/runtime-method-modules.js +4 -2
- package/dist/runtime/runtime-method-modules.js.map +1 -1
- package/dist/runtime/scenario-jobs.d.ts +23 -1
- package/dist/runtime/scenario-jobs.d.ts.map +1 -1
- package/dist/runtime/scenario-jobs.js +227 -264
- package/dist/runtime/scenario-jobs.js.map +1 -1
- package/dist/runtime/shared-local-agent-ai-config.d.ts.map +1 -1
- package/dist/runtime/shared-local-agent-ai-config.js +3 -0
- package/dist/runtime/shared-local-agent-ai-config.js.map +1 -1
- package/dist/runtime/wire-types/agent-participation-enums.d.ts +3 -1
- package/dist/runtime/wire-types/agent-participation-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/agent-participation-enums.js +3 -1
- package/dist/runtime/wire-types/agent-participation-enums.js.map +1 -1
- package/dist/runtime/wire-types/agent-participation-types.d.ts +8 -4
- package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts +130 -3
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.js +149 -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-enums.d.ts +47 -0
- package/dist/runtime/wire-types/identity-app-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-enums.js +55 -0
- package/dist/runtime/wire-types/identity-app-enums.js.map +1 -1
- package/dist/runtime/wire-types/identity-app-types.d.ts +8 -6
- package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/local-memory-enums.d.ts +40 -1
- package/dist/runtime/wire-types/local-memory-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/local-memory-enums.js +44 -0
- package/dist/runtime/wire-types/local-memory-enums.js.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts +29 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.js +28 -0
- package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
- package/dist/types/errors.d.ts +1 -1
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +2 -2
- package/dist/types/errors.js.map +1 -1
- package/dist/types/reason-code.d.ts +2 -0
- package/dist/types/reason-code.d.ts.map +1 -1
- package/dist/types/reason-code.js +2 -0
- package/dist/types/reason-code.js.map +1 -1
- package/dist/types/sha256.d.ts +6 -1
- package/dist/types/sha256.d.ts.map +1 -1
- package/dist/types/sha256.js +60 -25
- package/dist/types/sha256.js.map +1 -1
- package/package.json +5 -5
- package/dist/realm/feed.d.ts +0 -4
- package/dist/realm/feed.d.ts.map +0 -1
- package/dist/realm/feed.js +0 -10
- package/dist/realm/feed.js.map +0 -1
|
@@ -19,6 +19,8 @@ import { AIConfigCapabilityIntent } from "./capability_configuration.js";
|
|
|
19
19
|
import { LocalAgentCapabilityParticipation } from "./agent_configure.js";
|
|
20
20
|
import { AIConfigEffectiveSelection } from "./capability_configuration.js";
|
|
21
21
|
import { AIConfig } from "./capability_configuration.js";
|
|
22
|
+
import { LocalAppAgentLifeProjection } from "./agent_life.js";
|
|
23
|
+
import { LocalAppAgentConversationContextProjection } from "./agent_configure.js";
|
|
22
24
|
import { AgentConversationSummaryStatus } from "./agent_source_materialization.js";
|
|
23
25
|
import { AgentSourceCognitionStatus } from "./agent_source_materialization.js";
|
|
24
26
|
import { AgentTurnContextTruncationSummary } from "./agent_source_materialization.js";
|
|
@@ -41,6 +43,7 @@ import { AgentResourcePackSelection } from "./agent_presentation.js";
|
|
|
41
43
|
import { LocalAgentSourceContextStatus } from "./agent_source_materialization.js";
|
|
42
44
|
import { AgentPresentationProfile } from "./agent_presentation.js";
|
|
43
45
|
import { Struct } from "../../google/protobuf/struct.js";
|
|
46
|
+
import { AgentContactQuietHours } from "./agent_configure.js";
|
|
44
47
|
import { Timestamp } from "../../google/protobuf/timestamp.js";
|
|
45
48
|
import { Duration } from "../../google/protobuf/duration.js";
|
|
46
49
|
/**
|
|
@@ -536,6 +539,32 @@ export var ConversationAnchorStatus;
|
|
|
536
539
|
*/
|
|
537
540
|
ConversationAnchorStatus[ConversationAnchorStatus["CLOSED"] = 2] = "CLOSED";
|
|
538
541
|
})(ConversationAnchorStatus || (ConversationAnchorStatus = {}));
|
|
542
|
+
/**
|
|
543
|
+
* @generated from protobuf enum nimi.runtime.v1.LocalAppAgentIntroductionTopicKind
|
|
544
|
+
*/
|
|
545
|
+
export var LocalAppAgentIntroductionTopicKind;
|
|
546
|
+
(function (LocalAppAgentIntroductionTopicKind) {
|
|
547
|
+
/**
|
|
548
|
+
* @generated from protobuf enum value: LOCAL_APP_AGENT_INTRODUCTION_TOPIC_KIND_UNSPECIFIED = 0;
|
|
549
|
+
*/
|
|
550
|
+
LocalAppAgentIntroductionTopicKind[LocalAppAgentIntroductionTopicKind["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
551
|
+
/**
|
|
552
|
+
* @generated from protobuf enum value: LOCAL_APP_AGENT_INTRODUCTION_TOPIC_KIND_ROLE = 1;
|
|
553
|
+
*/
|
|
554
|
+
LocalAppAgentIntroductionTopicKind[LocalAppAgentIntroductionTopicKind["ROLE"] = 1] = "ROLE";
|
|
555
|
+
/**
|
|
556
|
+
* @generated from protobuf enum value: LOCAL_APP_AGENT_INTRODUCTION_TOPIC_KIND_WORK = 2;
|
|
557
|
+
*/
|
|
558
|
+
LocalAppAgentIntroductionTopicKind[LocalAppAgentIntroductionTopicKind["WORK"] = 2] = "WORK";
|
|
559
|
+
/**
|
|
560
|
+
* @generated from protobuf enum value: LOCAL_APP_AGENT_INTRODUCTION_TOPIC_KIND_RELATIONSHIP = 3;
|
|
561
|
+
*/
|
|
562
|
+
LocalAppAgentIntroductionTopicKind[LocalAppAgentIntroductionTopicKind["RELATIONSHIP"] = 3] = "RELATIONSHIP";
|
|
563
|
+
/**
|
|
564
|
+
* @generated from protobuf enum value: LOCAL_APP_AGENT_INTRODUCTION_TOPIC_KIND_TOPIC = 4;
|
|
565
|
+
*/
|
|
566
|
+
LocalAppAgentIntroductionTopicKind[LocalAppAgentIntroductionTopicKind["TOPIC"] = 4] = "TOPIC";
|
|
567
|
+
})(LocalAppAgentIntroductionTopicKind || (LocalAppAgentIntroductionTopicKind = {}));
|
|
539
568
|
/**
|
|
540
569
|
* Product actions are stable Manager semantics, not AppOperationIds or access
|
|
541
570
|
* decisions. The protected session has already admitted the shared
|
|
@@ -663,6 +692,10 @@ export var LocalAppConversationMessageRole;
|
|
|
663
692
|
* @generated from protobuf enum value: LOCAL_APP_CONVERSATION_MESSAGE_ROLE_ASSISTANT = 2;
|
|
664
693
|
*/
|
|
665
694
|
LocalAppConversationMessageRole[LocalAppConversationMessageRole["ASSISTANT"] = 2] = "ASSISTANT";
|
|
695
|
+
/**
|
|
696
|
+
* @generated from protobuf enum value: LOCAL_APP_CONVERSATION_MESSAGE_ROLE_APP = 3;
|
|
697
|
+
*/
|
|
698
|
+
LocalAppConversationMessageRole[LocalAppConversationMessageRole["APP"] = 3] = "APP";
|
|
666
699
|
})(LocalAppConversationMessageRole || (LocalAppConversationMessageRole = {}));
|
|
667
700
|
/**
|
|
668
701
|
* @generated from protobuf enum nimi.runtime.v1.LocalAppConversationMediaKind
|
|
@@ -819,18 +852,23 @@ class AgentAutonomyConfig$Type extends MessageType {
|
|
|
819
852
|
constructor() {
|
|
820
853
|
super("nimi.runtime.v1.AgentAutonomyConfig", [
|
|
821
854
|
{ no: 1, name: "daily_token_budget", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
822
|
-
{ no:
|
|
823
|
-
{ no:
|
|
855
|
+
{ no: 9, name: "max_background_output_tokens", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
856
|
+
{ no: 11, name: "min_planning_interval", kind: "message", T: () => Duration },
|
|
824
857
|
{ no: 4, name: "suspend_until", kind: "message", T: () => Timestamp },
|
|
825
858
|
{ no: 5, name: "mode", kind: "enum", T: () => ["nimi.runtime.v1.AgentAutonomyMode", AgentAutonomyMode, "AGENT_AUTONOMY_MODE_"] },
|
|
859
|
+
{ no: 6, name: "free_contact_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
860
|
+
{ no: 7, name: "quiet_hours", kind: "message", T: () => AgentContactQuietHours },
|
|
861
|
+
{ no: 8, name: "max_free_contacts_per_day", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
826
862
|
{ no: 10, name: "extensions", kind: "message", T: () => Struct }
|
|
827
863
|
]);
|
|
828
864
|
}
|
|
829
865
|
create(value) {
|
|
830
866
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
831
867
|
message.dailyTokenBudget = "0";
|
|
832
|
-
message.
|
|
868
|
+
message.maxBackgroundOutputTokens = "0";
|
|
833
869
|
message.mode = 0;
|
|
870
|
+
message.freeContactEnabled = false;
|
|
871
|
+
message.maxFreeContactsPerDay = 0;
|
|
834
872
|
if (value !== undefined)
|
|
835
873
|
reflectionMergePartial(this, message, value);
|
|
836
874
|
return message;
|
|
@@ -843,11 +881,11 @@ class AgentAutonomyConfig$Type extends MessageType {
|
|
|
843
881
|
case /* int64 daily_token_budget */ 1:
|
|
844
882
|
message.dailyTokenBudget = reader.int64().toString();
|
|
845
883
|
break;
|
|
846
|
-
case /* int64
|
|
847
|
-
message.
|
|
884
|
+
case /* int64 max_background_output_tokens */ 9:
|
|
885
|
+
message.maxBackgroundOutputTokens = reader.int64().toString();
|
|
848
886
|
break;
|
|
849
|
-
case /* google.protobuf.Duration
|
|
850
|
-
message.
|
|
887
|
+
case /* google.protobuf.Duration min_planning_interval */ 11:
|
|
888
|
+
message.minPlanningInterval = Duration.internalBinaryRead(reader, reader.uint32(), options, message.minPlanningInterval);
|
|
851
889
|
break;
|
|
852
890
|
case /* google.protobuf.Timestamp suspend_until */ 4:
|
|
853
891
|
message.suspendUntil = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.suspendUntil);
|
|
@@ -855,6 +893,15 @@ class AgentAutonomyConfig$Type extends MessageType {
|
|
|
855
893
|
case /* nimi.runtime.v1.AgentAutonomyMode mode */ 5:
|
|
856
894
|
message.mode = reader.int32();
|
|
857
895
|
break;
|
|
896
|
+
case /* bool free_contact_enabled */ 6:
|
|
897
|
+
message.freeContactEnabled = reader.bool();
|
|
898
|
+
break;
|
|
899
|
+
case /* nimi.runtime.v1.AgentContactQuietHours quiet_hours */ 7:
|
|
900
|
+
message.quietHours = AgentContactQuietHours.internalBinaryRead(reader, reader.uint32(), options, message.quietHours);
|
|
901
|
+
break;
|
|
902
|
+
case /* uint32 max_free_contacts_per_day */ 8:
|
|
903
|
+
message.maxFreeContactsPerDay = reader.uint32();
|
|
904
|
+
break;
|
|
858
905
|
case /* google.protobuf.Struct extensions */ 10:
|
|
859
906
|
message.extensions = Struct.internalBinaryRead(reader, reader.uint32(), options, message.extensions);
|
|
860
907
|
break;
|
|
@@ -873,21 +920,30 @@ class AgentAutonomyConfig$Type extends MessageType {
|
|
|
873
920
|
/* int64 daily_token_budget = 1; */
|
|
874
921
|
if (message.dailyTokenBudget !== "0")
|
|
875
922
|
writer.tag(1, WireType.Varint).int64(message.dailyTokenBudget);
|
|
876
|
-
/* int64 max_tokens_per_hook = 2; */
|
|
877
|
-
if (message.maxTokensPerHook !== "0")
|
|
878
|
-
writer.tag(2, WireType.Varint).int64(message.maxTokensPerHook);
|
|
879
|
-
/* google.protobuf.Duration min_hook_interval = 3; */
|
|
880
|
-
if (message.minHookInterval)
|
|
881
|
-
Duration.internalBinaryWrite(message.minHookInterval, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
882
923
|
/* google.protobuf.Timestamp suspend_until = 4; */
|
|
883
924
|
if (message.suspendUntil)
|
|
884
925
|
Timestamp.internalBinaryWrite(message.suspendUntil, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
885
926
|
/* nimi.runtime.v1.AgentAutonomyMode mode = 5; */
|
|
886
927
|
if (message.mode !== 0)
|
|
887
928
|
writer.tag(5, WireType.Varint).int32(message.mode);
|
|
929
|
+
/* bool free_contact_enabled = 6; */
|
|
930
|
+
if (message.freeContactEnabled !== false)
|
|
931
|
+
writer.tag(6, WireType.Varint).bool(message.freeContactEnabled);
|
|
932
|
+
/* nimi.runtime.v1.AgentContactQuietHours quiet_hours = 7; */
|
|
933
|
+
if (message.quietHours)
|
|
934
|
+
AgentContactQuietHours.internalBinaryWrite(message.quietHours, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
935
|
+
/* uint32 max_free_contacts_per_day = 8; */
|
|
936
|
+
if (message.maxFreeContactsPerDay !== 0)
|
|
937
|
+
writer.tag(8, WireType.Varint).uint32(message.maxFreeContactsPerDay);
|
|
938
|
+
/* int64 max_background_output_tokens = 9; */
|
|
939
|
+
if (message.maxBackgroundOutputTokens !== "0")
|
|
940
|
+
writer.tag(9, WireType.Varint).int64(message.maxBackgroundOutputTokens);
|
|
888
941
|
/* google.protobuf.Struct extensions = 10; */
|
|
889
942
|
if (message.extensions)
|
|
890
943
|
Struct.internalBinaryWrite(message.extensions, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
944
|
+
/* google.protobuf.Duration min_planning_interval = 11; */
|
|
945
|
+
if (message.minPlanningInterval)
|
|
946
|
+
Duration.internalBinaryWrite(message.minPlanningInterval, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
891
947
|
let u = options.writeUnknownFields;
|
|
892
948
|
if (u !== false)
|
|
893
949
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1894,7 +1950,8 @@ class HookIntent$Type extends MessageType {
|
|
|
1894
1950
|
{ no: 9, name: "admission_state", kind: "enum", T: () => ["nimi.runtime.v1.HookAdmissionState", HookAdmissionState, "HOOK_ADMISSION_STATE_"] },
|
|
1895
1951
|
{ no: 10, name: "not_before", kind: "message", T: () => Timestamp },
|
|
1896
1952
|
{ no: 11, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
1897
|
-
{ no: 12, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1953
|
+
{ no: 12, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1954
|
+
{ no: 13, name: "public_purpose", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1898
1955
|
]);
|
|
1899
1956
|
}
|
|
1900
1957
|
create(value) {
|
|
@@ -1908,6 +1965,7 @@ class HookIntent$Type extends MessageType {
|
|
|
1908
1965
|
message.effect = 0;
|
|
1909
1966
|
message.admissionState = 0;
|
|
1910
1967
|
message.reason = "";
|
|
1968
|
+
message.publicPurpose = "";
|
|
1911
1969
|
if (value !== undefined)
|
|
1912
1970
|
reflectionMergePartial(this, message, value);
|
|
1913
1971
|
return message;
|
|
@@ -1953,6 +2011,9 @@ class HookIntent$Type extends MessageType {
|
|
|
1953
2011
|
case /* string reason */ 12:
|
|
1954
2012
|
message.reason = reader.string();
|
|
1955
2013
|
break;
|
|
2014
|
+
case /* string public_purpose */ 13:
|
|
2015
|
+
message.publicPurpose = reader.string();
|
|
2016
|
+
break;
|
|
1956
2017
|
default:
|
|
1957
2018
|
let u = options.readUnknownField;
|
|
1958
2019
|
if (u === "throw")
|
|
@@ -2001,6 +2062,9 @@ class HookIntent$Type extends MessageType {
|
|
|
2001
2062
|
/* string reason = 12; */
|
|
2002
2063
|
if (message.reason !== "")
|
|
2003
2064
|
writer.tag(12, WireType.LengthDelimited).string(message.reason);
|
|
2065
|
+
/* string public_purpose = 13; */
|
|
2066
|
+
if (message.publicPurpose !== "")
|
|
2067
|
+
writer.tag(13, WireType.LengthDelimited).string(message.publicPurpose);
|
|
2004
2068
|
let u = options.writeUnknownFields;
|
|
2005
2069
|
if (u !== false)
|
|
2006
2070
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2089,66 +2153,6 @@ class HookExecutionOutcome$Type extends MessageType {
|
|
|
2089
2153
|
*/
|
|
2090
2154
|
export const HookExecutionOutcome = new HookExecutionOutcome$Type();
|
|
2091
2155
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2092
|
-
class PendingHook$Type extends MessageType {
|
|
2093
|
-
constructor() {
|
|
2094
|
-
super("nimi.runtime.v1.PendingHook", [
|
|
2095
|
-
{ no: 1, name: "intent", kind: "message", T: () => HookIntent },
|
|
2096
|
-
{ no: 2, name: "scheduled_for", kind: "message", T: () => Timestamp },
|
|
2097
|
-
{ no: 3, name: "admitted_at", kind: "message", T: () => Timestamp }
|
|
2098
|
-
]);
|
|
2099
|
-
}
|
|
2100
|
-
create(value) {
|
|
2101
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
2102
|
-
if (value !== undefined)
|
|
2103
|
-
reflectionMergePartial(this, message, value);
|
|
2104
|
-
return message;
|
|
2105
|
-
}
|
|
2106
|
-
internalBinaryRead(reader, length, options, target) {
|
|
2107
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2108
|
-
while (reader.pos < end) {
|
|
2109
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2110
|
-
switch (fieldNo) {
|
|
2111
|
-
case /* nimi.runtime.v1.HookIntent intent */ 1:
|
|
2112
|
-
message.intent = HookIntent.internalBinaryRead(reader, reader.uint32(), options, message.intent);
|
|
2113
|
-
break;
|
|
2114
|
-
case /* google.protobuf.Timestamp scheduled_for */ 2:
|
|
2115
|
-
message.scheduledFor = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.scheduledFor);
|
|
2116
|
-
break;
|
|
2117
|
-
case /* google.protobuf.Timestamp admitted_at */ 3:
|
|
2118
|
-
message.admittedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.admittedAt);
|
|
2119
|
-
break;
|
|
2120
|
-
default:
|
|
2121
|
-
let u = options.readUnknownField;
|
|
2122
|
-
if (u === "throw")
|
|
2123
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2124
|
-
let d = reader.skip(wireType);
|
|
2125
|
-
if (u !== false)
|
|
2126
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
return message;
|
|
2130
|
-
}
|
|
2131
|
-
internalBinaryWrite(message, writer, options) {
|
|
2132
|
-
/* nimi.runtime.v1.HookIntent intent = 1; */
|
|
2133
|
-
if (message.intent)
|
|
2134
|
-
HookIntent.internalBinaryWrite(message.intent, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2135
|
-
/* google.protobuf.Timestamp scheduled_for = 2; */
|
|
2136
|
-
if (message.scheduledFor)
|
|
2137
|
-
Timestamp.internalBinaryWrite(message.scheduledFor, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2138
|
-
/* google.protobuf.Timestamp admitted_at = 3; */
|
|
2139
|
-
if (message.admittedAt)
|
|
2140
|
-
Timestamp.internalBinaryWrite(message.admittedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2141
|
-
let u = options.writeUnknownFields;
|
|
2142
|
-
if (u !== false)
|
|
2143
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2144
|
-
return writer;
|
|
2145
|
-
}
|
|
2146
|
-
}
|
|
2147
|
-
/**
|
|
2148
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.PendingHook
|
|
2149
|
-
*/
|
|
2150
|
-
export const PendingHook = new PendingHook$Type();
|
|
2151
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2152
2156
|
class AgentLifecycleEventDetail$Type extends MessageType {
|
|
2153
2157
|
constructor() {
|
|
2154
2158
|
super("nimi.runtime.v1.AgentLifecycleEventDetail", [
|
|
@@ -4228,24 +4232,24 @@ class GetAgentPresentationAssetResponse$Type extends MessageType {
|
|
|
4228
4232
|
*/
|
|
4229
4233
|
export const GetAgentPresentationAssetResponse = new GetAgentPresentationAssetResponse$Type();
|
|
4230
4234
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4231
|
-
class
|
|
4235
|
+
class TranscribeAgentVoiceInputRequest$Type extends MessageType {
|
|
4232
4236
|
constructor() {
|
|
4233
|
-
super("nimi.runtime.v1.
|
|
4237
|
+
super("nimi.runtime.v1.TranscribeAgentVoiceInputRequest", [
|
|
4234
4238
|
{ no: 1, name: "context", kind: "message", T: () => AgentRequestContext },
|
|
4235
4239
|
{ no: 2, name: "agent_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4236
|
-
{ no: 3, name: "
|
|
4237
|
-
{ no: 4, name: "
|
|
4238
|
-
{ no: 5, name: "
|
|
4239
|
-
{ no: 6, name: "
|
|
4240
|
+
{ no: 3, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4241
|
+
{ no: 4, name: "audio_bytes", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
4242
|
+
{ no: 5, name: "mime_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4243
|
+
{ no: 6, name: "request_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4240
4244
|
]);
|
|
4241
4245
|
}
|
|
4242
4246
|
create(value) {
|
|
4243
4247
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4244
4248
|
message.agentId = "";
|
|
4245
|
-
message.
|
|
4246
|
-
message.
|
|
4247
|
-
message.
|
|
4248
|
-
message.
|
|
4249
|
+
message.conversationAnchorId = "";
|
|
4250
|
+
message.audioBytes = new Uint8Array(0);
|
|
4251
|
+
message.mimeType = "";
|
|
4252
|
+
message.requestId = "";
|
|
4249
4253
|
if (value !== undefined)
|
|
4250
4254
|
reflectionMergePartial(this, message, value);
|
|
4251
4255
|
return message;
|
|
@@ -4261,17 +4265,17 @@ class ListPendingHooksRequest$Type extends MessageType {
|
|
|
4261
4265
|
case /* string agent_id */ 2:
|
|
4262
4266
|
message.agentId = reader.string();
|
|
4263
4267
|
break;
|
|
4264
|
-
case /*
|
|
4265
|
-
message.
|
|
4268
|
+
case /* string conversation_anchor_id */ 3:
|
|
4269
|
+
message.conversationAnchorId = reader.string();
|
|
4266
4270
|
break;
|
|
4267
|
-
case /*
|
|
4268
|
-
message.
|
|
4271
|
+
case /* bytes audio_bytes */ 4:
|
|
4272
|
+
message.audioBytes = reader.bytes();
|
|
4269
4273
|
break;
|
|
4270
|
-
case /*
|
|
4271
|
-
message.
|
|
4274
|
+
case /* string mime_type */ 5:
|
|
4275
|
+
message.mimeType = reader.string();
|
|
4272
4276
|
break;
|
|
4273
|
-
case /* string
|
|
4274
|
-
message.
|
|
4277
|
+
case /* string request_id */ 6:
|
|
4278
|
+
message.requestId = reader.string();
|
|
4275
4279
|
break;
|
|
4276
4280
|
default:
|
|
4277
4281
|
let u = options.readUnknownField;
|
|
@@ -4291,18 +4295,18 @@ class ListPendingHooksRequest$Type extends MessageType {
|
|
|
4291
4295
|
/* string agent_id = 2; */
|
|
4292
4296
|
if (message.agentId !== "")
|
|
4293
4297
|
writer.tag(2, WireType.LengthDelimited).string(message.agentId);
|
|
4294
|
-
/*
|
|
4295
|
-
if (message.
|
|
4296
|
-
writer.tag(3, WireType.
|
|
4297
|
-
/*
|
|
4298
|
-
if (message.
|
|
4299
|
-
writer.tag(4, WireType.
|
|
4300
|
-
/*
|
|
4301
|
-
if (message.
|
|
4302
|
-
writer.tag(5, WireType.
|
|
4303
|
-
/* string
|
|
4304
|
-
if (message.
|
|
4305
|
-
writer.tag(6, WireType.LengthDelimited).string(message.
|
|
4298
|
+
/* string conversation_anchor_id = 3; */
|
|
4299
|
+
if (message.conversationAnchorId !== "")
|
|
4300
|
+
writer.tag(3, WireType.LengthDelimited).string(message.conversationAnchorId);
|
|
4301
|
+
/* bytes audio_bytes = 4; */
|
|
4302
|
+
if (message.audioBytes.length)
|
|
4303
|
+
writer.tag(4, WireType.LengthDelimited).bytes(message.audioBytes);
|
|
4304
|
+
/* string mime_type = 5; */
|
|
4305
|
+
if (message.mimeType !== "")
|
|
4306
|
+
writer.tag(5, WireType.LengthDelimited).string(message.mimeType);
|
|
4307
|
+
/* string request_id = 6; */
|
|
4308
|
+
if (message.requestId !== "")
|
|
4309
|
+
writer.tag(6, WireType.LengthDelimited).string(message.requestId);
|
|
4306
4310
|
let u = options.writeUnknownFields;
|
|
4307
4311
|
if (u !== false)
|
|
4308
4312
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4310,21 +4314,23 @@ class ListPendingHooksRequest$Type extends MessageType {
|
|
|
4310
4314
|
}
|
|
4311
4315
|
}
|
|
4312
4316
|
/**
|
|
4313
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4317
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.TranscribeAgentVoiceInputRequest
|
|
4314
4318
|
*/
|
|
4315
|
-
export const
|
|
4319
|
+
export const TranscribeAgentVoiceInputRequest = new TranscribeAgentVoiceInputRequest$Type();
|
|
4316
4320
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4317
|
-
class
|
|
4321
|
+
class TranscribeAgentVoiceInputResponse$Type extends MessageType {
|
|
4318
4322
|
constructor() {
|
|
4319
|
-
super("nimi.runtime.v1.
|
|
4320
|
-
{ no: 1, name: "
|
|
4321
|
-
{ no: 2, name: "
|
|
4323
|
+
super("nimi.runtime.v1.TranscribeAgentVoiceInputResponse", [
|
|
4324
|
+
{ no: 1, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4325
|
+
{ no: 2, name: "job_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4326
|
+
{ no: 3, name: "trace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4322
4327
|
]);
|
|
4323
4328
|
}
|
|
4324
4329
|
create(value) {
|
|
4325
4330
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4326
|
-
message.
|
|
4327
|
-
message.
|
|
4331
|
+
message.text = "";
|
|
4332
|
+
message.jobId = "";
|
|
4333
|
+
message.traceId = "";
|
|
4328
4334
|
if (value !== undefined)
|
|
4329
4335
|
reflectionMergePartial(this, message, value);
|
|
4330
4336
|
return message;
|
|
@@ -4334,11 +4340,14 @@ class ListPendingHooksResponse$Type extends MessageType {
|
|
|
4334
4340
|
while (reader.pos < end) {
|
|
4335
4341
|
let [fieldNo, wireType] = reader.tag();
|
|
4336
4342
|
switch (fieldNo) {
|
|
4337
|
-
case /*
|
|
4338
|
-
message.
|
|
4343
|
+
case /* string text */ 1:
|
|
4344
|
+
message.text = reader.string();
|
|
4339
4345
|
break;
|
|
4340
|
-
case /* string
|
|
4341
|
-
message.
|
|
4346
|
+
case /* string job_id */ 2:
|
|
4347
|
+
message.jobId = reader.string();
|
|
4348
|
+
break;
|
|
4349
|
+
case /* string trace_id */ 3:
|
|
4350
|
+
message.traceId = reader.string();
|
|
4342
4351
|
break;
|
|
4343
4352
|
default:
|
|
4344
4353
|
let u = options.readUnknownField;
|
|
@@ -4352,12 +4361,15 @@ class ListPendingHooksResponse$Type extends MessageType {
|
|
|
4352
4361
|
return message;
|
|
4353
4362
|
}
|
|
4354
4363
|
internalBinaryWrite(message, writer, options) {
|
|
4355
|
-
/*
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
/* string
|
|
4359
|
-
if (message.
|
|
4360
|
-
writer.tag(2, WireType.LengthDelimited).string(message.
|
|
4364
|
+
/* string text = 1; */
|
|
4365
|
+
if (message.text !== "")
|
|
4366
|
+
writer.tag(1, WireType.LengthDelimited).string(message.text);
|
|
4367
|
+
/* string job_id = 2; */
|
|
4368
|
+
if (message.jobId !== "")
|
|
4369
|
+
writer.tag(2, WireType.LengthDelimited).string(message.jobId);
|
|
4370
|
+
/* string trace_id = 3; */
|
|
4371
|
+
if (message.traceId !== "")
|
|
4372
|
+
writer.tag(3, WireType.LengthDelimited).string(message.traceId);
|
|
4361
4373
|
let u = options.writeUnknownFields;
|
|
4362
4374
|
if (u !== false)
|
|
4363
4375
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4365,24 +4377,38 @@ class ListPendingHooksResponse$Type extends MessageType {
|
|
|
4365
4377
|
}
|
|
4366
4378
|
}
|
|
4367
4379
|
/**
|
|
4368
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4380
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.TranscribeAgentVoiceInputResponse
|
|
4369
4381
|
*/
|
|
4370
|
-
export const
|
|
4382
|
+
export const TranscribeAgentVoiceInputResponse = new TranscribeAgentVoiceInputResponse$Type();
|
|
4371
4383
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4372
|
-
class
|
|
4384
|
+
class ConversationAnchor$Type extends MessageType {
|
|
4373
4385
|
constructor() {
|
|
4374
|
-
super("nimi.runtime.v1.
|
|
4375
|
-
{ no: 1, name: "
|
|
4386
|
+
super("nimi.runtime.v1.ConversationAnchor", [
|
|
4387
|
+
{ no: 1, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4376
4388
|
{ no: 2, name: "agent_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4377
|
-
{ no: 3, name: "
|
|
4378
|
-
{ no: 4, name: "
|
|
4389
|
+
{ no: 3, name: "subject_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4390
|
+
{ no: 4, name: "status", kind: "enum", T: () => ["nimi.runtime.v1.ConversationAnchorStatus", ConversationAnchorStatus, "CONVERSATION_ANCHOR_STATUS_"] },
|
|
4391
|
+
{ no: 5, name: "last_turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4392
|
+
{ no: 6, name: "last_message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4393
|
+
{ no: 7, name: "created_at", kind: "message", T: () => Timestamp },
|
|
4394
|
+
{ no: 8, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
4395
|
+
{ no: 9, name: "metadata", kind: "message", T: () => Struct },
|
|
4396
|
+
{ no: 20, name: "local_agent_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4397
|
+
{ no: 21, name: "owner_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4398
|
+
{ no: 22, name: "runtime_source_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4379
4399
|
]);
|
|
4380
4400
|
}
|
|
4381
4401
|
create(value) {
|
|
4382
4402
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4403
|
+
message.conversationAnchorId = "";
|
|
4383
4404
|
message.agentId = "";
|
|
4384
|
-
message.
|
|
4385
|
-
message.
|
|
4405
|
+
message.subjectUserId = "";
|
|
4406
|
+
message.status = 0;
|
|
4407
|
+
message.lastTurnId = "";
|
|
4408
|
+
message.lastMessageId = "";
|
|
4409
|
+
message.localAgentRef = "";
|
|
4410
|
+
message.ownerUserId = "";
|
|
4411
|
+
message.runtimeSourceRef = "";
|
|
4386
4412
|
if (value !== undefined)
|
|
4387
4413
|
reflectionMergePartial(this, message, value);
|
|
4388
4414
|
return message;
|
|
@@ -4392,17 +4418,41 @@ class CancelHookRequest$Type extends MessageType {
|
|
|
4392
4418
|
while (reader.pos < end) {
|
|
4393
4419
|
let [fieldNo, wireType] = reader.tag();
|
|
4394
4420
|
switch (fieldNo) {
|
|
4395
|
-
case /*
|
|
4396
|
-
message.
|
|
4421
|
+
case /* string conversation_anchor_id */ 1:
|
|
4422
|
+
message.conversationAnchorId = reader.string();
|
|
4397
4423
|
break;
|
|
4398
4424
|
case /* string agent_id */ 2:
|
|
4399
4425
|
message.agentId = reader.string();
|
|
4400
4426
|
break;
|
|
4401
|
-
case /* string
|
|
4402
|
-
message.
|
|
4427
|
+
case /* string subject_user_id */ 3:
|
|
4428
|
+
message.subjectUserId = reader.string();
|
|
4403
4429
|
break;
|
|
4404
|
-
case /*
|
|
4405
|
-
message.
|
|
4430
|
+
case /* nimi.runtime.v1.ConversationAnchorStatus status */ 4:
|
|
4431
|
+
message.status = reader.int32();
|
|
4432
|
+
break;
|
|
4433
|
+
case /* string last_turn_id */ 5:
|
|
4434
|
+
message.lastTurnId = reader.string();
|
|
4435
|
+
break;
|
|
4436
|
+
case /* string last_message_id */ 6:
|
|
4437
|
+
message.lastMessageId = reader.string();
|
|
4438
|
+
break;
|
|
4439
|
+
case /* google.protobuf.Timestamp created_at */ 7:
|
|
4440
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
4441
|
+
break;
|
|
4442
|
+
case /* google.protobuf.Timestamp updated_at */ 8:
|
|
4443
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
4444
|
+
break;
|
|
4445
|
+
case /* google.protobuf.Struct metadata */ 9:
|
|
4446
|
+
message.metadata = Struct.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
|
4447
|
+
break;
|
|
4448
|
+
case /* string local_agent_ref */ 20:
|
|
4449
|
+
message.localAgentRef = reader.string();
|
|
4450
|
+
break;
|
|
4451
|
+
case /* string owner_user_id */ 21:
|
|
4452
|
+
message.ownerUserId = reader.string();
|
|
4453
|
+
break;
|
|
4454
|
+
case /* string runtime_source_ref */ 22:
|
|
4455
|
+
message.runtimeSourceRef = reader.string();
|
|
4406
4456
|
break;
|
|
4407
4457
|
default:
|
|
4408
4458
|
let u = options.readUnknownField;
|
|
@@ -4416,18 +4466,42 @@ class CancelHookRequest$Type extends MessageType {
|
|
|
4416
4466
|
return message;
|
|
4417
4467
|
}
|
|
4418
4468
|
internalBinaryWrite(message, writer, options) {
|
|
4419
|
-
/*
|
|
4420
|
-
if (message.
|
|
4421
|
-
|
|
4469
|
+
/* string conversation_anchor_id = 1; */
|
|
4470
|
+
if (message.conversationAnchorId !== "")
|
|
4471
|
+
writer.tag(1, WireType.LengthDelimited).string(message.conversationAnchorId);
|
|
4422
4472
|
/* string agent_id = 2; */
|
|
4423
4473
|
if (message.agentId !== "")
|
|
4424
4474
|
writer.tag(2, WireType.LengthDelimited).string(message.agentId);
|
|
4425
|
-
/* string
|
|
4426
|
-
if (message.
|
|
4427
|
-
writer.tag(3, WireType.LengthDelimited).string(message.
|
|
4428
|
-
/*
|
|
4429
|
-
if (message.
|
|
4430
|
-
writer.tag(4, WireType.
|
|
4475
|
+
/* string subject_user_id = 3; */
|
|
4476
|
+
if (message.subjectUserId !== "")
|
|
4477
|
+
writer.tag(3, WireType.LengthDelimited).string(message.subjectUserId);
|
|
4478
|
+
/* nimi.runtime.v1.ConversationAnchorStatus status = 4; */
|
|
4479
|
+
if (message.status !== 0)
|
|
4480
|
+
writer.tag(4, WireType.Varint).int32(message.status);
|
|
4481
|
+
/* string last_turn_id = 5; */
|
|
4482
|
+
if (message.lastTurnId !== "")
|
|
4483
|
+
writer.tag(5, WireType.LengthDelimited).string(message.lastTurnId);
|
|
4484
|
+
/* string last_message_id = 6; */
|
|
4485
|
+
if (message.lastMessageId !== "")
|
|
4486
|
+
writer.tag(6, WireType.LengthDelimited).string(message.lastMessageId);
|
|
4487
|
+
/* google.protobuf.Timestamp created_at = 7; */
|
|
4488
|
+
if (message.createdAt)
|
|
4489
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
4490
|
+
/* google.protobuf.Timestamp updated_at = 8; */
|
|
4491
|
+
if (message.updatedAt)
|
|
4492
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
4493
|
+
/* google.protobuf.Struct metadata = 9; */
|
|
4494
|
+
if (message.metadata)
|
|
4495
|
+
Struct.internalBinaryWrite(message.metadata, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
4496
|
+
/* string local_agent_ref = 20; */
|
|
4497
|
+
if (message.localAgentRef !== "")
|
|
4498
|
+
writer.tag(20, WireType.LengthDelimited).string(message.localAgentRef);
|
|
4499
|
+
/* string owner_user_id = 21; */
|
|
4500
|
+
if (message.ownerUserId !== "")
|
|
4501
|
+
writer.tag(21, WireType.LengthDelimited).string(message.ownerUserId);
|
|
4502
|
+
/* string runtime_source_ref = 22; */
|
|
4503
|
+
if (message.runtimeSourceRef !== "")
|
|
4504
|
+
writer.tag(22, WireType.LengthDelimited).string(message.runtimeSourceRef);
|
|
4431
4505
|
let u = options.writeUnknownFields;
|
|
4432
4506
|
if (u !== false)
|
|
4433
4507
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4435,18 +4509,24 @@ class CancelHookRequest$Type extends MessageType {
|
|
|
4435
4509
|
}
|
|
4436
4510
|
}
|
|
4437
4511
|
/**
|
|
4438
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4512
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ConversationAnchor
|
|
4439
4513
|
*/
|
|
4440
|
-
export const
|
|
4514
|
+
export const ConversationAnchor = new ConversationAnchor$Type();
|
|
4441
4515
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4442
|
-
class
|
|
4516
|
+
class ConversationAnchorSnapshot$Type extends MessageType {
|
|
4443
4517
|
constructor() {
|
|
4444
|
-
super("nimi.runtime.v1.
|
|
4445
|
-
{ no: 1, name: "
|
|
4518
|
+
super("nimi.runtime.v1.ConversationAnchorSnapshot", [
|
|
4519
|
+
{ no: 1, name: "anchor", kind: "message", T: () => ConversationAnchor },
|
|
4520
|
+
{ no: 2, name: "active_turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4521
|
+
{ no: 3, name: "active_stream_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4522
|
+
{ no: 4, name: "source_context_status", kind: "message", T: () => LocalAgentSourceContextStatus },
|
|
4523
|
+
{ no: 5, name: "turn_context_summary", kind: "message", T: () => AgentTurnContextSummary }
|
|
4446
4524
|
]);
|
|
4447
4525
|
}
|
|
4448
4526
|
create(value) {
|
|
4449
4527
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4528
|
+
message.activeTurnId = "";
|
|
4529
|
+
message.activeStreamId = "";
|
|
4450
4530
|
if (value !== undefined)
|
|
4451
4531
|
reflectionMergePartial(this, message, value);
|
|
4452
4532
|
return message;
|
|
@@ -4456,8 +4536,20 @@ class CancelHookResponse$Type extends MessageType {
|
|
|
4456
4536
|
while (reader.pos < end) {
|
|
4457
4537
|
let [fieldNo, wireType] = reader.tag();
|
|
4458
4538
|
switch (fieldNo) {
|
|
4459
|
-
case /* nimi.runtime.v1.
|
|
4460
|
-
message.
|
|
4539
|
+
case /* nimi.runtime.v1.ConversationAnchor anchor */ 1:
|
|
4540
|
+
message.anchor = ConversationAnchor.internalBinaryRead(reader, reader.uint32(), options, message.anchor);
|
|
4541
|
+
break;
|
|
4542
|
+
case /* string active_turn_id */ 2:
|
|
4543
|
+
message.activeTurnId = reader.string();
|
|
4544
|
+
break;
|
|
4545
|
+
case /* string active_stream_id */ 3:
|
|
4546
|
+
message.activeStreamId = reader.string();
|
|
4547
|
+
break;
|
|
4548
|
+
case /* nimi.runtime.v1.LocalAgentSourceContextStatus source_context_status */ 4:
|
|
4549
|
+
message.sourceContextStatus = LocalAgentSourceContextStatus.internalBinaryRead(reader, reader.uint32(), options, message.sourceContextStatus);
|
|
4550
|
+
break;
|
|
4551
|
+
case /* nimi.runtime.v1.AgentTurnContextSummary turn_context_summary */ 5:
|
|
4552
|
+
message.turnContextSummary = AgentTurnContextSummary.internalBinaryRead(reader, reader.uint32(), options, message.turnContextSummary);
|
|
4461
4553
|
break;
|
|
4462
4554
|
default:
|
|
4463
4555
|
let u = options.readUnknownField;
|
|
@@ -4471,9 +4563,21 @@ class CancelHookResponse$Type extends MessageType {
|
|
|
4471
4563
|
return message;
|
|
4472
4564
|
}
|
|
4473
4565
|
internalBinaryWrite(message, writer, options) {
|
|
4474
|
-
/* nimi.runtime.v1.
|
|
4475
|
-
if (message.
|
|
4476
|
-
|
|
4566
|
+
/* nimi.runtime.v1.ConversationAnchor anchor = 1; */
|
|
4567
|
+
if (message.anchor)
|
|
4568
|
+
ConversationAnchor.internalBinaryWrite(message.anchor, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4569
|
+
/* string active_turn_id = 2; */
|
|
4570
|
+
if (message.activeTurnId !== "")
|
|
4571
|
+
writer.tag(2, WireType.LengthDelimited).string(message.activeTurnId);
|
|
4572
|
+
/* string active_stream_id = 3; */
|
|
4573
|
+
if (message.activeStreamId !== "")
|
|
4574
|
+
writer.tag(3, WireType.LengthDelimited).string(message.activeStreamId);
|
|
4575
|
+
/* nimi.runtime.v1.LocalAgentSourceContextStatus source_context_status = 4; */
|
|
4576
|
+
if (message.sourceContextStatus)
|
|
4577
|
+
LocalAgentSourceContextStatus.internalBinaryWrite(message.sourceContextStatus, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
4578
|
+
/* nimi.runtime.v1.AgentTurnContextSummary turn_context_summary = 5; */
|
|
4579
|
+
if (message.turnContextSummary)
|
|
4580
|
+
AgentTurnContextSummary.internalBinaryWrite(message.turnContextSummary, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
4477
4581
|
let u = options.writeUnknownFields;
|
|
4478
4582
|
if (u !== false)
|
|
4479
4583
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4481,28 +4585,29 @@ class CancelHookResponse$Type extends MessageType {
|
|
|
4481
4585
|
}
|
|
4482
4586
|
}
|
|
4483
4587
|
/**
|
|
4484
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4588
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ConversationAnchorSnapshot
|
|
4485
4589
|
*/
|
|
4486
|
-
export const
|
|
4590
|
+
export const ConversationAnchorSnapshot = new ConversationAnchorSnapshot$Type();
|
|
4487
4591
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4488
|
-
class
|
|
4592
|
+
class OpenConversationAnchorRequest$Type extends MessageType {
|
|
4489
4593
|
constructor() {
|
|
4490
|
-
super("nimi.runtime.v1.
|
|
4594
|
+
super("nimi.runtime.v1.OpenConversationAnchorRequest", [
|
|
4491
4595
|
{ no: 1, name: "context", kind: "message", T: () => AgentRequestContext },
|
|
4492
4596
|
{ no: 2, name: "agent_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4493
|
-
{ no: 3, name: "
|
|
4494
|
-
{ no: 4, name: "
|
|
4495
|
-
{ no:
|
|
4496
|
-
{ no:
|
|
4597
|
+
{ no: 3, name: "subject_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4598
|
+
{ no: 4, name: "metadata", kind: "message", T: () => Struct },
|
|
4599
|
+
{ no: 20, name: "local_agent_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4600
|
+
{ no: 21, name: "owner_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4601
|
+
{ no: 22, name: "runtime_source_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4497
4602
|
]);
|
|
4498
4603
|
}
|
|
4499
4604
|
create(value) {
|
|
4500
4605
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4501
4606
|
message.agentId = "";
|
|
4502
|
-
message.
|
|
4503
|
-
message.
|
|
4504
|
-
message.
|
|
4505
|
-
message.
|
|
4607
|
+
message.subjectUserId = "";
|
|
4608
|
+
message.localAgentRef = "";
|
|
4609
|
+
message.ownerUserId = "";
|
|
4610
|
+
message.runtimeSourceRef = "";
|
|
4506
4611
|
if (value !== undefined)
|
|
4507
4612
|
reflectionMergePartial(this, message, value);
|
|
4508
4613
|
return message;
|
|
@@ -4518,17 +4623,20 @@ class TranscribeAgentVoiceInputRequest$Type extends MessageType {
|
|
|
4518
4623
|
case /* string agent_id */ 2:
|
|
4519
4624
|
message.agentId = reader.string();
|
|
4520
4625
|
break;
|
|
4521
|
-
case /* string
|
|
4522
|
-
message.
|
|
4626
|
+
case /* string subject_user_id */ 3:
|
|
4627
|
+
message.subjectUserId = reader.string();
|
|
4523
4628
|
break;
|
|
4524
|
-
case /*
|
|
4525
|
-
message.
|
|
4629
|
+
case /* google.protobuf.Struct metadata */ 4:
|
|
4630
|
+
message.metadata = Struct.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
|
4526
4631
|
break;
|
|
4527
|
-
case /* string
|
|
4528
|
-
message.
|
|
4632
|
+
case /* string local_agent_ref */ 20:
|
|
4633
|
+
message.localAgentRef = reader.string();
|
|
4529
4634
|
break;
|
|
4530
|
-
case /* string
|
|
4531
|
-
message.
|
|
4635
|
+
case /* string owner_user_id */ 21:
|
|
4636
|
+
message.ownerUserId = reader.string();
|
|
4637
|
+
break;
|
|
4638
|
+
case /* string runtime_source_ref */ 22:
|
|
4639
|
+
message.runtimeSourceRef = reader.string();
|
|
4532
4640
|
break;
|
|
4533
4641
|
default:
|
|
4534
4642
|
let u = options.readUnknownField;
|
|
@@ -4548,18 +4656,21 @@ class TranscribeAgentVoiceInputRequest$Type extends MessageType {
|
|
|
4548
4656
|
/* string agent_id = 2; */
|
|
4549
4657
|
if (message.agentId !== "")
|
|
4550
4658
|
writer.tag(2, WireType.LengthDelimited).string(message.agentId);
|
|
4551
|
-
/* string
|
|
4552
|
-
if (message.
|
|
4553
|
-
writer.tag(3, WireType.LengthDelimited).string(message.
|
|
4554
|
-
/*
|
|
4555
|
-
if (message.
|
|
4556
|
-
writer.tag(4, WireType.LengthDelimited).
|
|
4557
|
-
/* string
|
|
4558
|
-
if (message.
|
|
4559
|
-
writer.tag(
|
|
4560
|
-
/* string
|
|
4561
|
-
if (message.
|
|
4562
|
-
writer.tag(
|
|
4659
|
+
/* string subject_user_id = 3; */
|
|
4660
|
+
if (message.subjectUserId !== "")
|
|
4661
|
+
writer.tag(3, WireType.LengthDelimited).string(message.subjectUserId);
|
|
4662
|
+
/* google.protobuf.Struct metadata = 4; */
|
|
4663
|
+
if (message.metadata)
|
|
4664
|
+
Struct.internalBinaryWrite(message.metadata, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
4665
|
+
/* string local_agent_ref = 20; */
|
|
4666
|
+
if (message.localAgentRef !== "")
|
|
4667
|
+
writer.tag(20, WireType.LengthDelimited).string(message.localAgentRef);
|
|
4668
|
+
/* string owner_user_id = 21; */
|
|
4669
|
+
if (message.ownerUserId !== "")
|
|
4670
|
+
writer.tag(21, WireType.LengthDelimited).string(message.ownerUserId);
|
|
4671
|
+
/* string runtime_source_ref = 22; */
|
|
4672
|
+
if (message.runtimeSourceRef !== "")
|
|
4673
|
+
writer.tag(22, WireType.LengthDelimited).string(message.runtimeSourceRef);
|
|
4563
4674
|
let u = options.writeUnknownFields;
|
|
4564
4675
|
if (u !== false)
|
|
4565
4676
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4567,23 +4678,18 @@ class TranscribeAgentVoiceInputRequest$Type extends MessageType {
|
|
|
4567
4678
|
}
|
|
4568
4679
|
}
|
|
4569
4680
|
/**
|
|
4570
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4681
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.OpenConversationAnchorRequest
|
|
4571
4682
|
*/
|
|
4572
|
-
export const
|
|
4683
|
+
export const OpenConversationAnchorRequest = new OpenConversationAnchorRequest$Type();
|
|
4573
4684
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4574
|
-
class
|
|
4685
|
+
class OpenConversationAnchorResponse$Type extends MessageType {
|
|
4575
4686
|
constructor() {
|
|
4576
|
-
super("nimi.runtime.v1.
|
|
4577
|
-
{ no: 1, name: "
|
|
4578
|
-
{ no: 2, name: "job_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4579
|
-
{ no: 3, name: "trace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4687
|
+
super("nimi.runtime.v1.OpenConversationAnchorResponse", [
|
|
4688
|
+
{ no: 1, name: "snapshot", kind: "message", T: () => ConversationAnchorSnapshot }
|
|
4580
4689
|
]);
|
|
4581
4690
|
}
|
|
4582
4691
|
create(value) {
|
|
4583
4692
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4584
|
-
message.text = "";
|
|
4585
|
-
message.jobId = "";
|
|
4586
|
-
message.traceId = "";
|
|
4587
4693
|
if (value !== undefined)
|
|
4588
4694
|
reflectionMergePartial(this, message, value);
|
|
4589
4695
|
return message;
|
|
@@ -4593,14 +4699,8 @@ class TranscribeAgentVoiceInputResponse$Type extends MessageType {
|
|
|
4593
4699
|
while (reader.pos < end) {
|
|
4594
4700
|
let [fieldNo, wireType] = reader.tag();
|
|
4595
4701
|
switch (fieldNo) {
|
|
4596
|
-
case /*
|
|
4597
|
-
message.
|
|
4598
|
-
break;
|
|
4599
|
-
case /* string job_id */ 2:
|
|
4600
|
-
message.jobId = reader.string();
|
|
4601
|
-
break;
|
|
4602
|
-
case /* string trace_id */ 3:
|
|
4603
|
-
message.traceId = reader.string();
|
|
4702
|
+
case /* nimi.runtime.v1.ConversationAnchorSnapshot snapshot */ 1:
|
|
4703
|
+
message.snapshot = ConversationAnchorSnapshot.internalBinaryRead(reader, reader.uint32(), options, message.snapshot);
|
|
4604
4704
|
break;
|
|
4605
4705
|
default:
|
|
4606
4706
|
let u = options.readUnknownField;
|
|
@@ -4614,15 +4714,9 @@ class TranscribeAgentVoiceInputResponse$Type extends MessageType {
|
|
|
4614
4714
|
return message;
|
|
4615
4715
|
}
|
|
4616
4716
|
internalBinaryWrite(message, writer, options) {
|
|
4617
|
-
/*
|
|
4618
|
-
if (message.
|
|
4619
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
4620
|
-
/* string job_id = 2; */
|
|
4621
|
-
if (message.jobId !== "")
|
|
4622
|
-
writer.tag(2, WireType.LengthDelimited).string(message.jobId);
|
|
4623
|
-
/* string trace_id = 3; */
|
|
4624
|
-
if (message.traceId !== "")
|
|
4625
|
-
writer.tag(3, WireType.LengthDelimited).string(message.traceId);
|
|
4717
|
+
/* nimi.runtime.v1.ConversationAnchorSnapshot snapshot = 1; */
|
|
4718
|
+
if (message.snapshot)
|
|
4719
|
+
ConversationAnchorSnapshot.internalBinaryWrite(message.snapshot, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4626
4720
|
let u = options.writeUnknownFields;
|
|
4627
4721
|
if (u !== false)
|
|
4628
4722
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4630,38 +4724,26 @@ class TranscribeAgentVoiceInputResponse$Type extends MessageType {
|
|
|
4630
4724
|
}
|
|
4631
4725
|
}
|
|
4632
4726
|
/**
|
|
4633
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4727
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.OpenConversationAnchorResponse
|
|
4634
4728
|
*/
|
|
4635
|
-
export const
|
|
4729
|
+
export const OpenConversationAnchorResponse = new OpenConversationAnchorResponse$Type();
|
|
4636
4730
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4637
|
-
class
|
|
4731
|
+
class LocalAppAgentReference$Type extends MessageType {
|
|
4638
4732
|
constructor() {
|
|
4639
|
-
super("nimi.runtime.v1.
|
|
4640
|
-
{ no: 1, name: "
|
|
4641
|
-
{ no: 2, name: "
|
|
4642
|
-
{ no: 3, name: "
|
|
4643
|
-
{ no: 4, name: "
|
|
4644
|
-
{ no: 5, name: "
|
|
4645
|
-
{ no: 6, name: "last_message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4646
|
-
{ no: 7, name: "created_at", kind: "message", T: () => Timestamp },
|
|
4647
|
-
{ no: 8, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
4648
|
-
{ no: 9, name: "metadata", kind: "message", T: () => Struct },
|
|
4649
|
-
{ no: 20, name: "local_agent_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4650
|
-
{ no: 21, name: "owner_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4651
|
-
{ no: 22, name: "runtime_source_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4733
|
+
super("nimi.runtime.v1.LocalAppAgentReference", [
|
|
4734
|
+
{ no: 1, name: "agent_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4735
|
+
{ no: 2, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4736
|
+
{ no: 3, name: "avatar_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4737
|
+
{ no: 4, name: "agent_binding", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4738
|
+
{ no: 5, name: "activity_agent_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4652
4739
|
]);
|
|
4653
4740
|
}
|
|
4654
4741
|
create(value) {
|
|
4655
4742
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4656
|
-
message.
|
|
4657
|
-
message.
|
|
4658
|
-
message.
|
|
4659
|
-
message.
|
|
4660
|
-
message.lastTurnId = "";
|
|
4661
|
-
message.lastMessageId = "";
|
|
4662
|
-
message.localAgentRef = "";
|
|
4663
|
-
message.ownerUserId = "";
|
|
4664
|
-
message.runtimeSourceRef = "";
|
|
4743
|
+
message.agentHandle = "";
|
|
4744
|
+
message.displayName = "";
|
|
4745
|
+
message.agentBinding = "";
|
|
4746
|
+
message.activityAgentRef = "";
|
|
4665
4747
|
if (value !== undefined)
|
|
4666
4748
|
reflectionMergePartial(this, message, value);
|
|
4667
4749
|
return message;
|
|
@@ -4671,41 +4753,20 @@ class ConversationAnchor$Type extends MessageType {
|
|
|
4671
4753
|
while (reader.pos < end) {
|
|
4672
4754
|
let [fieldNo, wireType] = reader.tag();
|
|
4673
4755
|
switch (fieldNo) {
|
|
4674
|
-
case /* string
|
|
4675
|
-
message.
|
|
4676
|
-
break;
|
|
4677
|
-
case /* string agent_id */ 2:
|
|
4678
|
-
message.agentId = reader.string();
|
|
4679
|
-
break;
|
|
4680
|
-
case /* string subject_user_id */ 3:
|
|
4681
|
-
message.subjectUserId = reader.string();
|
|
4682
|
-
break;
|
|
4683
|
-
case /* nimi.runtime.v1.ConversationAnchorStatus status */ 4:
|
|
4684
|
-
message.status = reader.int32();
|
|
4685
|
-
break;
|
|
4686
|
-
case /* string last_turn_id */ 5:
|
|
4687
|
-
message.lastTurnId = reader.string();
|
|
4688
|
-
break;
|
|
4689
|
-
case /* string last_message_id */ 6:
|
|
4690
|
-
message.lastMessageId = reader.string();
|
|
4691
|
-
break;
|
|
4692
|
-
case /* google.protobuf.Timestamp created_at */ 7:
|
|
4693
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
4694
|
-
break;
|
|
4695
|
-
case /* google.protobuf.Timestamp updated_at */ 8:
|
|
4696
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
4756
|
+
case /* string agent_handle */ 1:
|
|
4757
|
+
message.agentHandle = reader.string();
|
|
4697
4758
|
break;
|
|
4698
|
-
case /*
|
|
4699
|
-
message.
|
|
4759
|
+
case /* string display_name */ 2:
|
|
4760
|
+
message.displayName = reader.string();
|
|
4700
4761
|
break;
|
|
4701
|
-
case /* string
|
|
4702
|
-
message.
|
|
4762
|
+
case /* optional string avatar_url */ 3:
|
|
4763
|
+
message.avatarUrl = reader.string();
|
|
4703
4764
|
break;
|
|
4704
|
-
case /* string
|
|
4705
|
-
message.
|
|
4765
|
+
case /* string agent_binding */ 4:
|
|
4766
|
+
message.agentBinding = reader.string();
|
|
4706
4767
|
break;
|
|
4707
|
-
case /* string
|
|
4708
|
-
message.
|
|
4768
|
+
case /* string activity_agent_ref */ 5:
|
|
4769
|
+
message.activityAgentRef = reader.string();
|
|
4709
4770
|
break;
|
|
4710
4771
|
default:
|
|
4711
4772
|
let u = options.readUnknownField;
|
|
@@ -4719,42 +4780,21 @@ class ConversationAnchor$Type extends MessageType {
|
|
|
4719
4780
|
return message;
|
|
4720
4781
|
}
|
|
4721
4782
|
internalBinaryWrite(message, writer, options) {
|
|
4722
|
-
/* string
|
|
4723
|
-
if (message.
|
|
4724
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
4725
|
-
/* string
|
|
4726
|
-
if (message.
|
|
4727
|
-
writer.tag(2, WireType.LengthDelimited).string(message.
|
|
4728
|
-
/* string
|
|
4729
|
-
if (message.
|
|
4730
|
-
writer.tag(3, WireType.LengthDelimited).string(message.
|
|
4731
|
-
/*
|
|
4732
|
-
if (message.
|
|
4733
|
-
writer.tag(4, WireType.
|
|
4734
|
-
/* string
|
|
4735
|
-
if (message.
|
|
4736
|
-
writer.tag(5, WireType.LengthDelimited).string(message.
|
|
4737
|
-
/* string last_message_id = 6; */
|
|
4738
|
-
if (message.lastMessageId !== "")
|
|
4739
|
-
writer.tag(6, WireType.LengthDelimited).string(message.lastMessageId);
|
|
4740
|
-
/* google.protobuf.Timestamp created_at = 7; */
|
|
4741
|
-
if (message.createdAt)
|
|
4742
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
4743
|
-
/* google.protobuf.Timestamp updated_at = 8; */
|
|
4744
|
-
if (message.updatedAt)
|
|
4745
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
4746
|
-
/* google.protobuf.Struct metadata = 9; */
|
|
4747
|
-
if (message.metadata)
|
|
4748
|
-
Struct.internalBinaryWrite(message.metadata, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
4749
|
-
/* string local_agent_ref = 20; */
|
|
4750
|
-
if (message.localAgentRef !== "")
|
|
4751
|
-
writer.tag(20, WireType.LengthDelimited).string(message.localAgentRef);
|
|
4752
|
-
/* string owner_user_id = 21; */
|
|
4753
|
-
if (message.ownerUserId !== "")
|
|
4754
|
-
writer.tag(21, WireType.LengthDelimited).string(message.ownerUserId);
|
|
4755
|
-
/* string runtime_source_ref = 22; */
|
|
4756
|
-
if (message.runtimeSourceRef !== "")
|
|
4757
|
-
writer.tag(22, WireType.LengthDelimited).string(message.runtimeSourceRef);
|
|
4783
|
+
/* string agent_handle = 1; */
|
|
4784
|
+
if (message.agentHandle !== "")
|
|
4785
|
+
writer.tag(1, WireType.LengthDelimited).string(message.agentHandle);
|
|
4786
|
+
/* string display_name = 2; */
|
|
4787
|
+
if (message.displayName !== "")
|
|
4788
|
+
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
4789
|
+
/* optional string avatar_url = 3; */
|
|
4790
|
+
if (message.avatarUrl !== undefined)
|
|
4791
|
+
writer.tag(3, WireType.LengthDelimited).string(message.avatarUrl);
|
|
4792
|
+
/* string agent_binding = 4; */
|
|
4793
|
+
if (message.agentBinding !== "")
|
|
4794
|
+
writer.tag(4, WireType.LengthDelimited).string(message.agentBinding);
|
|
4795
|
+
/* string activity_agent_ref = 5; */
|
|
4796
|
+
if (message.activityAgentRef !== "")
|
|
4797
|
+
writer.tag(5, WireType.LengthDelimited).string(message.activityAgentRef);
|
|
4758
4798
|
let u = options.writeUnknownFields;
|
|
4759
4799
|
if (u !== false)
|
|
4760
4800
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4762,24 +4802,16 @@ class ConversationAnchor$Type extends MessageType {
|
|
|
4762
4802
|
}
|
|
4763
4803
|
}
|
|
4764
4804
|
/**
|
|
4765
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4805
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppAgentReference
|
|
4766
4806
|
*/
|
|
4767
|
-
export const
|
|
4807
|
+
export const LocalAppAgentReference = new LocalAppAgentReference$Type();
|
|
4768
4808
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4769
|
-
class
|
|
4809
|
+
class ListLocalAppAgentReferencesRequest$Type extends MessageType {
|
|
4770
4810
|
constructor() {
|
|
4771
|
-
super("nimi.runtime.v1.
|
|
4772
|
-
{ no: 1, name: "anchor", kind: "message", T: () => ConversationAnchor },
|
|
4773
|
-
{ no: 2, name: "active_turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4774
|
-
{ no: 3, name: "active_stream_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4775
|
-
{ no: 4, name: "source_context_status", kind: "message", T: () => LocalAgentSourceContextStatus },
|
|
4776
|
-
{ no: 5, name: "turn_context_summary", kind: "message", T: () => AgentTurnContextSummary }
|
|
4777
|
-
]);
|
|
4811
|
+
super("nimi.runtime.v1.ListLocalAppAgentReferencesRequest", []);
|
|
4778
4812
|
}
|
|
4779
4813
|
create(value) {
|
|
4780
4814
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4781
|
-
message.activeTurnId = "";
|
|
4782
|
-
message.activeStreamId = "";
|
|
4783
4815
|
if (value !== undefined)
|
|
4784
4816
|
reflectionMergePartial(this, message, value);
|
|
4785
4817
|
return message;
|
|
@@ -4789,21 +4821,6 @@ class ConversationAnchorSnapshot$Type extends MessageType {
|
|
|
4789
4821
|
while (reader.pos < end) {
|
|
4790
4822
|
let [fieldNo, wireType] = reader.tag();
|
|
4791
4823
|
switch (fieldNo) {
|
|
4792
|
-
case /* nimi.runtime.v1.ConversationAnchor anchor */ 1:
|
|
4793
|
-
message.anchor = ConversationAnchor.internalBinaryRead(reader, reader.uint32(), options, message.anchor);
|
|
4794
|
-
break;
|
|
4795
|
-
case /* string active_turn_id */ 2:
|
|
4796
|
-
message.activeTurnId = reader.string();
|
|
4797
|
-
break;
|
|
4798
|
-
case /* string active_stream_id */ 3:
|
|
4799
|
-
message.activeStreamId = reader.string();
|
|
4800
|
-
break;
|
|
4801
|
-
case /* nimi.runtime.v1.LocalAgentSourceContextStatus source_context_status */ 4:
|
|
4802
|
-
message.sourceContextStatus = LocalAgentSourceContextStatus.internalBinaryRead(reader, reader.uint32(), options, message.sourceContextStatus);
|
|
4803
|
-
break;
|
|
4804
|
-
case /* nimi.runtime.v1.AgentTurnContextSummary turn_context_summary */ 5:
|
|
4805
|
-
message.turnContextSummary = AgentTurnContextSummary.internalBinaryRead(reader, reader.uint32(), options, message.turnContextSummary);
|
|
4806
|
-
break;
|
|
4807
4824
|
default:
|
|
4808
4825
|
let u = options.readUnknownField;
|
|
4809
4826
|
if (u === "throw")
|
|
@@ -4816,21 +4833,6 @@ class ConversationAnchorSnapshot$Type extends MessageType {
|
|
|
4816
4833
|
return message;
|
|
4817
4834
|
}
|
|
4818
4835
|
internalBinaryWrite(message, writer, options) {
|
|
4819
|
-
/* nimi.runtime.v1.ConversationAnchor anchor = 1; */
|
|
4820
|
-
if (message.anchor)
|
|
4821
|
-
ConversationAnchor.internalBinaryWrite(message.anchor, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4822
|
-
/* string active_turn_id = 2; */
|
|
4823
|
-
if (message.activeTurnId !== "")
|
|
4824
|
-
writer.tag(2, WireType.LengthDelimited).string(message.activeTurnId);
|
|
4825
|
-
/* string active_stream_id = 3; */
|
|
4826
|
-
if (message.activeStreamId !== "")
|
|
4827
|
-
writer.tag(3, WireType.LengthDelimited).string(message.activeStreamId);
|
|
4828
|
-
/* nimi.runtime.v1.LocalAgentSourceContextStatus source_context_status = 4; */
|
|
4829
|
-
if (message.sourceContextStatus)
|
|
4830
|
-
LocalAgentSourceContextStatus.internalBinaryWrite(message.sourceContextStatus, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
4831
|
-
/* nimi.runtime.v1.AgentTurnContextSummary turn_context_summary = 5; */
|
|
4832
|
-
if (message.turnContextSummary)
|
|
4833
|
-
AgentTurnContextSummary.internalBinaryWrite(message.turnContextSummary, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
4834
4836
|
let u = options.writeUnknownFields;
|
|
4835
4837
|
if (u !== false)
|
|
4836
4838
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4838,29 +4840,19 @@ class ConversationAnchorSnapshot$Type extends MessageType {
|
|
|
4838
4840
|
}
|
|
4839
4841
|
}
|
|
4840
4842
|
/**
|
|
4841
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4843
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ListLocalAppAgentReferencesRequest
|
|
4842
4844
|
*/
|
|
4843
|
-
export const
|
|
4845
|
+
export const ListLocalAppAgentReferencesRequest = new ListLocalAppAgentReferencesRequest$Type();
|
|
4844
4846
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4845
|
-
class
|
|
4847
|
+
class ListLocalAppAgentReferencesResponse$Type extends MessageType {
|
|
4846
4848
|
constructor() {
|
|
4847
|
-
super("nimi.runtime.v1.
|
|
4848
|
-
{ no: 1, name: "
|
|
4849
|
-
{ no: 2, name: "agent_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4850
|
-
{ no: 3, name: "subject_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4851
|
-
{ no: 4, name: "metadata", kind: "message", T: () => Struct },
|
|
4852
|
-
{ no: 20, name: "local_agent_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4853
|
-
{ no: 21, name: "owner_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4854
|
-
{ no: 22, name: "runtime_source_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4849
|
+
super("nimi.runtime.v1.ListLocalAppAgentReferencesResponse", [
|
|
4850
|
+
{ no: 1, name: "references", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppAgentReference }
|
|
4855
4851
|
]);
|
|
4856
4852
|
}
|
|
4857
4853
|
create(value) {
|
|
4858
4854
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4859
|
-
message.
|
|
4860
|
-
message.subjectUserId = "";
|
|
4861
|
-
message.localAgentRef = "";
|
|
4862
|
-
message.ownerUserId = "";
|
|
4863
|
-
message.runtimeSourceRef = "";
|
|
4855
|
+
message.references = [];
|
|
4864
4856
|
if (value !== undefined)
|
|
4865
4857
|
reflectionMergePartial(this, message, value);
|
|
4866
4858
|
return message;
|
|
@@ -4870,26 +4862,8 @@ class OpenConversationAnchorRequest$Type extends MessageType {
|
|
|
4870
4862
|
while (reader.pos < end) {
|
|
4871
4863
|
let [fieldNo, wireType] = reader.tag();
|
|
4872
4864
|
switch (fieldNo) {
|
|
4873
|
-
case /* nimi.runtime.v1.
|
|
4874
|
-
message.
|
|
4875
|
-
break;
|
|
4876
|
-
case /* string agent_id */ 2:
|
|
4877
|
-
message.agentId = reader.string();
|
|
4878
|
-
break;
|
|
4879
|
-
case /* string subject_user_id */ 3:
|
|
4880
|
-
message.subjectUserId = reader.string();
|
|
4881
|
-
break;
|
|
4882
|
-
case /* google.protobuf.Struct metadata */ 4:
|
|
4883
|
-
message.metadata = Struct.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
|
4884
|
-
break;
|
|
4885
|
-
case /* string local_agent_ref */ 20:
|
|
4886
|
-
message.localAgentRef = reader.string();
|
|
4887
|
-
break;
|
|
4888
|
-
case /* string owner_user_id */ 21:
|
|
4889
|
-
message.ownerUserId = reader.string();
|
|
4890
|
-
break;
|
|
4891
|
-
case /* string runtime_source_ref */ 22:
|
|
4892
|
-
message.runtimeSourceRef = reader.string();
|
|
4865
|
+
case /* repeated nimi.runtime.v1.LocalAppAgentReference references */ 1:
|
|
4866
|
+
message.references.push(LocalAppAgentReference.internalBinaryRead(reader, reader.uint32(), options));
|
|
4893
4867
|
break;
|
|
4894
4868
|
default:
|
|
4895
4869
|
let u = options.readUnknownField;
|
|
@@ -4903,27 +4877,9 @@ class OpenConversationAnchorRequest$Type extends MessageType {
|
|
|
4903
4877
|
return message;
|
|
4904
4878
|
}
|
|
4905
4879
|
internalBinaryWrite(message, writer, options) {
|
|
4906
|
-
/* nimi.runtime.v1.
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
/* string agent_id = 2; */
|
|
4910
|
-
if (message.agentId !== "")
|
|
4911
|
-
writer.tag(2, WireType.LengthDelimited).string(message.agentId);
|
|
4912
|
-
/* string subject_user_id = 3; */
|
|
4913
|
-
if (message.subjectUserId !== "")
|
|
4914
|
-
writer.tag(3, WireType.LengthDelimited).string(message.subjectUserId);
|
|
4915
|
-
/* google.protobuf.Struct metadata = 4; */
|
|
4916
|
-
if (message.metadata)
|
|
4917
|
-
Struct.internalBinaryWrite(message.metadata, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
4918
|
-
/* string local_agent_ref = 20; */
|
|
4919
|
-
if (message.localAgentRef !== "")
|
|
4920
|
-
writer.tag(20, WireType.LengthDelimited).string(message.localAgentRef);
|
|
4921
|
-
/* string owner_user_id = 21; */
|
|
4922
|
-
if (message.ownerUserId !== "")
|
|
4923
|
-
writer.tag(21, WireType.LengthDelimited).string(message.ownerUserId);
|
|
4924
|
-
/* string runtime_source_ref = 22; */
|
|
4925
|
-
if (message.runtimeSourceRef !== "")
|
|
4926
|
-
writer.tag(22, WireType.LengthDelimited).string(message.runtimeSourceRef);
|
|
4880
|
+
/* repeated nimi.runtime.v1.LocalAppAgentReference references = 1; */
|
|
4881
|
+
for (let i = 0; i < message.references.length; i++)
|
|
4882
|
+
LocalAppAgentReference.internalBinaryWrite(message.references[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4927
4883
|
let u = options.writeUnknownFields;
|
|
4928
4884
|
if (u !== false)
|
|
4929
4885
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4931,18 +4887,19 @@ class OpenConversationAnchorRequest$Type extends MessageType {
|
|
|
4931
4887
|
}
|
|
4932
4888
|
}
|
|
4933
4889
|
/**
|
|
4934
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4890
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ListLocalAppAgentReferencesResponse
|
|
4935
4891
|
*/
|
|
4936
|
-
export const
|
|
4892
|
+
export const ListLocalAppAgentReferencesResponse = new ListLocalAppAgentReferencesResponse$Type();
|
|
4937
4893
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4938
|
-
class
|
|
4894
|
+
class GetLocalAppAgentIntroductionRequest$Type extends MessageType {
|
|
4939
4895
|
constructor() {
|
|
4940
|
-
super("nimi.runtime.v1.
|
|
4941
|
-
{ no: 1, name: "
|
|
4896
|
+
super("nimi.runtime.v1.GetLocalAppAgentIntroductionRequest", [
|
|
4897
|
+
{ no: 1, name: "agent_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4942
4898
|
]);
|
|
4943
4899
|
}
|
|
4944
4900
|
create(value) {
|
|
4945
4901
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4902
|
+
message.agentHandle = "";
|
|
4946
4903
|
if (value !== undefined)
|
|
4947
4904
|
reflectionMergePartial(this, message, value);
|
|
4948
4905
|
return message;
|
|
@@ -4952,8 +4909,8 @@ class OpenConversationAnchorResponse$Type extends MessageType {
|
|
|
4952
4909
|
while (reader.pos < end) {
|
|
4953
4910
|
let [fieldNo, wireType] = reader.tag();
|
|
4954
4911
|
switch (fieldNo) {
|
|
4955
|
-
case /*
|
|
4956
|
-
message.
|
|
4912
|
+
case /* string agent_handle */ 1:
|
|
4913
|
+
message.agentHandle = reader.string();
|
|
4957
4914
|
break;
|
|
4958
4915
|
default:
|
|
4959
4916
|
let u = options.readUnknownField;
|
|
@@ -4967,9 +4924,9 @@ class OpenConversationAnchorResponse$Type extends MessageType {
|
|
|
4967
4924
|
return message;
|
|
4968
4925
|
}
|
|
4969
4926
|
internalBinaryWrite(message, writer, options) {
|
|
4970
|
-
/*
|
|
4971
|
-
if (message.
|
|
4972
|
-
|
|
4927
|
+
/* string agent_handle = 1; */
|
|
4928
|
+
if (message.agentHandle !== "")
|
|
4929
|
+
writer.tag(1, WireType.LengthDelimited).string(message.agentHandle);
|
|
4973
4930
|
let u = options.writeUnknownFields;
|
|
4974
4931
|
if (u !== false)
|
|
4975
4932
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4977,22 +4934,18 @@ class OpenConversationAnchorResponse$Type extends MessageType {
|
|
|
4977
4934
|
}
|
|
4978
4935
|
}
|
|
4979
4936
|
/**
|
|
4980
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4937
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.GetLocalAppAgentIntroductionRequest
|
|
4981
4938
|
*/
|
|
4982
|
-
export const
|
|
4939
|
+
export const GetLocalAppAgentIntroductionRequest = new GetLocalAppAgentIntroductionRequest$Type();
|
|
4983
4940
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4984
|
-
class
|
|
4941
|
+
class GetLocalAppAgentIntroductionResponse$Type extends MessageType {
|
|
4985
4942
|
constructor() {
|
|
4986
|
-
super("nimi.runtime.v1.
|
|
4987
|
-
{ no: 1, name: "
|
|
4988
|
-
{ no: 2, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4989
|
-
{ no: 3, name: "avatar_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
4943
|
+
super("nimi.runtime.v1.GetLocalAppAgentIntroductionResponse", [
|
|
4944
|
+
{ no: 1, name: "introduction", kind: "message", T: () => LocalAppAgentIntroduction }
|
|
4990
4945
|
]);
|
|
4991
4946
|
}
|
|
4992
4947
|
create(value) {
|
|
4993
4948
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4994
|
-
message.agentHandle = "";
|
|
4995
|
-
message.displayName = "";
|
|
4996
4949
|
if (value !== undefined)
|
|
4997
4950
|
reflectionMergePartial(this, message, value);
|
|
4998
4951
|
return message;
|
|
@@ -5002,14 +4955,8 @@ class LocalAppAgentReference$Type extends MessageType {
|
|
|
5002
4955
|
while (reader.pos < end) {
|
|
5003
4956
|
let [fieldNo, wireType] = reader.tag();
|
|
5004
4957
|
switch (fieldNo) {
|
|
5005
|
-
case /*
|
|
5006
|
-
message.
|
|
5007
|
-
break;
|
|
5008
|
-
case /* string display_name */ 2:
|
|
5009
|
-
message.displayName = reader.string();
|
|
5010
|
-
break;
|
|
5011
|
-
case /* optional string avatar_url */ 3:
|
|
5012
|
-
message.avatarUrl = reader.string();
|
|
4958
|
+
case /* nimi.runtime.v1.LocalAppAgentIntroduction introduction */ 1:
|
|
4959
|
+
message.introduction = LocalAppAgentIntroduction.internalBinaryRead(reader, reader.uint32(), options, message.introduction);
|
|
5013
4960
|
break;
|
|
5014
4961
|
default:
|
|
5015
4962
|
let u = options.readUnknownField;
|
|
@@ -5023,15 +4970,9 @@ class LocalAppAgentReference$Type extends MessageType {
|
|
|
5023
4970
|
return message;
|
|
5024
4971
|
}
|
|
5025
4972
|
internalBinaryWrite(message, writer, options) {
|
|
5026
|
-
/*
|
|
5027
|
-
if (message.
|
|
5028
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
5029
|
-
/* string display_name = 2; */
|
|
5030
|
-
if (message.displayName !== "")
|
|
5031
|
-
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
5032
|
-
/* optional string avatar_url = 3; */
|
|
5033
|
-
if (message.avatarUrl !== undefined)
|
|
5034
|
-
writer.tag(3, WireType.LengthDelimited).string(message.avatarUrl);
|
|
4973
|
+
/* nimi.runtime.v1.LocalAppAgentIntroduction introduction = 1; */
|
|
4974
|
+
if (message.introduction)
|
|
4975
|
+
LocalAppAgentIntroduction.internalBinaryWrite(message.introduction, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
5035
4976
|
let u = options.writeUnknownFields;
|
|
5036
4977
|
if (u !== false)
|
|
5037
4978
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5039,16 +4980,29 @@ class LocalAppAgentReference$Type extends MessageType {
|
|
|
5039
4980
|
}
|
|
5040
4981
|
}
|
|
5041
4982
|
/**
|
|
5042
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
4983
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.GetLocalAppAgentIntroductionResponse
|
|
5043
4984
|
*/
|
|
5044
|
-
export const
|
|
4985
|
+
export const GetLocalAppAgentIntroductionResponse = new GetLocalAppAgentIntroductionResponse$Type();
|
|
5045
4986
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
5046
|
-
class
|
|
4987
|
+
class LocalAppAgentIntroduction$Type extends MessageType {
|
|
5047
4988
|
constructor() {
|
|
5048
|
-
super("nimi.runtime.v1.
|
|
4989
|
+
super("nimi.runtime.v1.LocalAppAgentIntroduction", [
|
|
4990
|
+
{ no: 1, name: "world_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4991
|
+
{ no: 2, name: "era", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4992
|
+
{ no: 3, name: "role", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4993
|
+
{ no: 4, name: "greeting", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4994
|
+
{ no: 5, name: "reference_image_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4995
|
+
{ no: 6, name: "voice_sample_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4996
|
+
{ no: 7, name: "voice_sample_duration_sec", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
|
|
4997
|
+
{ no: 8, name: "question_topics", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppAgentIntroductionTopic },
|
|
4998
|
+
{ no: 9, name: "voice_preview_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4999
|
+
{ no: 10, name: "voice_sample_content_hash", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
5000
|
+
{ no: 11, name: "voice_sample_mime_type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
5001
|
+
]);
|
|
5049
5002
|
}
|
|
5050
5003
|
create(value) {
|
|
5051
5004
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
5005
|
+
message.questionTopics = [];
|
|
5052
5006
|
if (value !== undefined)
|
|
5053
5007
|
reflectionMergePartial(this, message, value);
|
|
5054
5008
|
return message;
|
|
@@ -5058,6 +5012,39 @@ class ListLocalAppAgentReferencesRequest$Type extends MessageType {
|
|
|
5058
5012
|
while (reader.pos < end) {
|
|
5059
5013
|
let [fieldNo, wireType] = reader.tag();
|
|
5060
5014
|
switch (fieldNo) {
|
|
5015
|
+
case /* optional string world_name */ 1:
|
|
5016
|
+
message.worldName = reader.string();
|
|
5017
|
+
break;
|
|
5018
|
+
case /* optional string era */ 2:
|
|
5019
|
+
message.era = reader.string();
|
|
5020
|
+
break;
|
|
5021
|
+
case /* optional string role */ 3:
|
|
5022
|
+
message.role = reader.string();
|
|
5023
|
+
break;
|
|
5024
|
+
case /* optional string greeting */ 4:
|
|
5025
|
+
message.greeting = reader.string();
|
|
5026
|
+
break;
|
|
5027
|
+
case /* optional string reference_image_url */ 5:
|
|
5028
|
+
message.referenceImageUrl = reader.string();
|
|
5029
|
+
break;
|
|
5030
|
+
case /* optional string voice_sample_url */ 6:
|
|
5031
|
+
message.voiceSampleUrl = reader.string();
|
|
5032
|
+
break;
|
|
5033
|
+
case /* optional double voice_sample_duration_sec */ 7:
|
|
5034
|
+
message.voiceSampleDurationSec = reader.double();
|
|
5035
|
+
break;
|
|
5036
|
+
case /* repeated nimi.runtime.v1.LocalAppAgentIntroductionTopic question_topics */ 8:
|
|
5037
|
+
message.questionTopics.push(LocalAppAgentIntroductionTopic.internalBinaryRead(reader, reader.uint32(), options));
|
|
5038
|
+
break;
|
|
5039
|
+
case /* optional string voice_preview_url */ 9:
|
|
5040
|
+
message.voicePreviewUrl = reader.string();
|
|
5041
|
+
break;
|
|
5042
|
+
case /* optional string voice_sample_content_hash */ 10:
|
|
5043
|
+
message.voiceSampleContentHash = reader.string();
|
|
5044
|
+
break;
|
|
5045
|
+
case /* optional string voice_sample_mime_type */ 11:
|
|
5046
|
+
message.voiceSampleMimeType = reader.string();
|
|
5047
|
+
break;
|
|
5061
5048
|
default:
|
|
5062
5049
|
let u = options.readUnknownField;
|
|
5063
5050
|
if (u === "throw")
|
|
@@ -5070,6 +5057,39 @@ class ListLocalAppAgentReferencesRequest$Type extends MessageType {
|
|
|
5070
5057
|
return message;
|
|
5071
5058
|
}
|
|
5072
5059
|
internalBinaryWrite(message, writer, options) {
|
|
5060
|
+
/* optional string world_name = 1; */
|
|
5061
|
+
if (message.worldName !== undefined)
|
|
5062
|
+
writer.tag(1, WireType.LengthDelimited).string(message.worldName);
|
|
5063
|
+
/* optional string era = 2; */
|
|
5064
|
+
if (message.era !== undefined)
|
|
5065
|
+
writer.tag(2, WireType.LengthDelimited).string(message.era);
|
|
5066
|
+
/* optional string role = 3; */
|
|
5067
|
+
if (message.role !== undefined)
|
|
5068
|
+
writer.tag(3, WireType.LengthDelimited).string(message.role);
|
|
5069
|
+
/* optional string greeting = 4; */
|
|
5070
|
+
if (message.greeting !== undefined)
|
|
5071
|
+
writer.tag(4, WireType.LengthDelimited).string(message.greeting);
|
|
5072
|
+
/* optional string reference_image_url = 5; */
|
|
5073
|
+
if (message.referenceImageUrl !== undefined)
|
|
5074
|
+
writer.tag(5, WireType.LengthDelimited).string(message.referenceImageUrl);
|
|
5075
|
+
/* optional string voice_sample_url = 6; */
|
|
5076
|
+
if (message.voiceSampleUrl !== undefined)
|
|
5077
|
+
writer.tag(6, WireType.LengthDelimited).string(message.voiceSampleUrl);
|
|
5078
|
+
/* optional double voice_sample_duration_sec = 7; */
|
|
5079
|
+
if (message.voiceSampleDurationSec !== undefined)
|
|
5080
|
+
writer.tag(7, WireType.Bit64).double(message.voiceSampleDurationSec);
|
|
5081
|
+
/* repeated nimi.runtime.v1.LocalAppAgentIntroductionTopic question_topics = 8; */
|
|
5082
|
+
for (let i = 0; i < message.questionTopics.length; i++)
|
|
5083
|
+
LocalAppAgentIntroductionTopic.internalBinaryWrite(message.questionTopics[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
5084
|
+
/* optional string voice_preview_url = 9; */
|
|
5085
|
+
if (message.voicePreviewUrl !== undefined)
|
|
5086
|
+
writer.tag(9, WireType.LengthDelimited).string(message.voicePreviewUrl);
|
|
5087
|
+
/* optional string voice_sample_content_hash = 10; */
|
|
5088
|
+
if (message.voiceSampleContentHash !== undefined)
|
|
5089
|
+
writer.tag(10, WireType.LengthDelimited).string(message.voiceSampleContentHash);
|
|
5090
|
+
/* optional string voice_sample_mime_type = 11; */
|
|
5091
|
+
if (message.voiceSampleMimeType !== undefined)
|
|
5092
|
+
writer.tag(11, WireType.LengthDelimited).string(message.voiceSampleMimeType);
|
|
5073
5093
|
let u = options.writeUnknownFields;
|
|
5074
5094
|
if (u !== false)
|
|
5075
5095
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5077,19 +5097,21 @@ class ListLocalAppAgentReferencesRequest$Type extends MessageType {
|
|
|
5077
5097
|
}
|
|
5078
5098
|
}
|
|
5079
5099
|
/**
|
|
5080
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
5100
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppAgentIntroduction
|
|
5081
5101
|
*/
|
|
5082
|
-
export const
|
|
5102
|
+
export const LocalAppAgentIntroduction = new LocalAppAgentIntroduction$Type();
|
|
5083
5103
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
5084
|
-
class
|
|
5104
|
+
class LocalAppAgentIntroductionTopic$Type extends MessageType {
|
|
5085
5105
|
constructor() {
|
|
5086
|
-
super("nimi.runtime.v1.
|
|
5087
|
-
{ no: 1, name: "
|
|
5106
|
+
super("nimi.runtime.v1.LocalAppAgentIntroductionTopic", [
|
|
5107
|
+
{ no: 1, name: "kind", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppAgentIntroductionTopicKind", LocalAppAgentIntroductionTopicKind, "LOCAL_APP_AGENT_INTRODUCTION_TOPIC_KIND_"] },
|
|
5108
|
+
{ no: 2, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
5088
5109
|
]);
|
|
5089
5110
|
}
|
|
5090
5111
|
create(value) {
|
|
5091
5112
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
5092
|
-
message.
|
|
5113
|
+
message.kind = 0;
|
|
5114
|
+
message.text = "";
|
|
5093
5115
|
if (value !== undefined)
|
|
5094
5116
|
reflectionMergePartial(this, message, value);
|
|
5095
5117
|
return message;
|
|
@@ -5099,8 +5121,11 @@ class ListLocalAppAgentReferencesResponse$Type extends MessageType {
|
|
|
5099
5121
|
while (reader.pos < end) {
|
|
5100
5122
|
let [fieldNo, wireType] = reader.tag();
|
|
5101
5123
|
switch (fieldNo) {
|
|
5102
|
-
case /*
|
|
5103
|
-
message.
|
|
5124
|
+
case /* nimi.runtime.v1.LocalAppAgentIntroductionTopicKind kind */ 1:
|
|
5125
|
+
message.kind = reader.int32();
|
|
5126
|
+
break;
|
|
5127
|
+
case /* string text */ 2:
|
|
5128
|
+
message.text = reader.string();
|
|
5104
5129
|
break;
|
|
5105
5130
|
default:
|
|
5106
5131
|
let u = options.readUnknownField;
|
|
@@ -5114,9 +5139,12 @@ class ListLocalAppAgentReferencesResponse$Type extends MessageType {
|
|
|
5114
5139
|
return message;
|
|
5115
5140
|
}
|
|
5116
5141
|
internalBinaryWrite(message, writer, options) {
|
|
5117
|
-
/*
|
|
5118
|
-
|
|
5119
|
-
|
|
5142
|
+
/* nimi.runtime.v1.LocalAppAgentIntroductionTopicKind kind = 1; */
|
|
5143
|
+
if (message.kind !== 0)
|
|
5144
|
+
writer.tag(1, WireType.Varint).int32(message.kind);
|
|
5145
|
+
/* string text = 2; */
|
|
5146
|
+
if (message.text !== "")
|
|
5147
|
+
writer.tag(2, WireType.LengthDelimited).string(message.text);
|
|
5120
5148
|
let u = options.writeUnknownFields;
|
|
5121
5149
|
if (u !== false)
|
|
5122
5150
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5124,9 +5152,9 @@ class ListLocalAppAgentReferencesResponse$Type extends MessageType {
|
|
|
5124
5152
|
}
|
|
5125
5153
|
}
|
|
5126
5154
|
/**
|
|
5127
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
5155
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppAgentIntroductionTopic
|
|
5128
5156
|
*/
|
|
5129
|
-
export const
|
|
5157
|
+
export const LocalAppAgentIntroductionTopic = new LocalAppAgentIntroductionTopic$Type();
|
|
5130
5158
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
5131
5159
|
class ResolveDesktopAgentReferenceRequest$Type extends MessageType {
|
|
5132
5160
|
constructor() {
|
|
@@ -5765,7 +5793,9 @@ class LocalAppAgentManagerSnapshot$Type extends MessageType {
|
|
|
5765
5793
|
{ no: 4, name: "current_emotion", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5766
5794
|
{ no: 5, name: "source", kind: "message", T: () => LocalAppAgentManagerSourceProjection },
|
|
5767
5795
|
{ no: 6, name: "context", kind: "message", T: () => LocalAppAgentManagerContextProjection },
|
|
5768
|
-
{ no: 7, name: "action_availability", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppAgentManagerActionAvailability }
|
|
5796
|
+
{ no: 7, name: "action_availability", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppAgentManagerActionAvailability },
|
|
5797
|
+
{ no: 8, name: "conversation_context", kind: "message", T: () => LocalAppAgentConversationContextProjection },
|
|
5798
|
+
{ no: 9, name: "life", kind: "message", T: () => LocalAppAgentLifeProjection }
|
|
5769
5799
|
]);
|
|
5770
5800
|
}
|
|
5771
5801
|
create(value) {
|
|
@@ -5805,6 +5835,12 @@ class LocalAppAgentManagerSnapshot$Type extends MessageType {
|
|
|
5805
5835
|
case /* repeated nimi.runtime.v1.LocalAppAgentManagerActionAvailability action_availability */ 7:
|
|
5806
5836
|
message.actionAvailability.push(LocalAppAgentManagerActionAvailability.internalBinaryRead(reader, reader.uint32(), options));
|
|
5807
5837
|
break;
|
|
5838
|
+
case /* nimi.runtime.v1.LocalAppAgentConversationContextProjection conversation_context */ 8:
|
|
5839
|
+
message.conversationContext = LocalAppAgentConversationContextProjection.internalBinaryRead(reader, reader.uint32(), options, message.conversationContext);
|
|
5840
|
+
break;
|
|
5841
|
+
case /* nimi.runtime.v1.LocalAppAgentLifeProjection life */ 9:
|
|
5842
|
+
message.life = LocalAppAgentLifeProjection.internalBinaryRead(reader, reader.uint32(), options, message.life);
|
|
5843
|
+
break;
|
|
5808
5844
|
default:
|
|
5809
5845
|
let u = options.readUnknownField;
|
|
5810
5846
|
if (u === "throw")
|
|
@@ -5838,6 +5874,12 @@ class LocalAppAgentManagerSnapshot$Type extends MessageType {
|
|
|
5838
5874
|
/* repeated nimi.runtime.v1.LocalAppAgentManagerActionAvailability action_availability = 7; */
|
|
5839
5875
|
for (let i = 0; i < message.actionAvailability.length; i++)
|
|
5840
5876
|
LocalAppAgentManagerActionAvailability.internalBinaryWrite(message.actionAvailability[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
5877
|
+
/* nimi.runtime.v1.LocalAppAgentConversationContextProjection conversation_context = 8; */
|
|
5878
|
+
if (message.conversationContext)
|
|
5879
|
+
LocalAppAgentConversationContextProjection.internalBinaryWrite(message.conversationContext, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
5880
|
+
/* nimi.runtime.v1.LocalAppAgentLifeProjection life = 9; */
|
|
5881
|
+
if (message.life)
|
|
5882
|
+
LocalAppAgentLifeProjection.internalBinaryWrite(message.life, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
5841
5883
|
let u = options.writeUnknownFields;
|
|
5842
5884
|
if (u !== false)
|
|
5843
5885
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6056,7 +6098,9 @@ class SendLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6056
6098
|
{ no: 1, name: "agent_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6057
6099
|
{ no: 2, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6058
6100
|
{ no: 3, name: "request_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6059
|
-
{ no: 5, name: "parts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationInputPart }
|
|
6101
|
+
{ no: 5, name: "parts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationInputPart },
|
|
6102
|
+
{ no: 7, name: "retry_of_turn_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
6103
|
+
{ no: 9, name: "quote", kind: "message", T: () => LocalAppConversationQuoteIntent }
|
|
6060
6104
|
]);
|
|
6061
6105
|
}
|
|
6062
6106
|
create(value) {
|
|
@@ -6086,6 +6130,12 @@ class SendLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6086
6130
|
case /* repeated nimi.runtime.v1.LocalAppConversationInputPart parts */ 5:
|
|
6087
6131
|
message.parts.push(LocalAppConversationInputPart.internalBinaryRead(reader, reader.uint32(), options));
|
|
6088
6132
|
break;
|
|
6133
|
+
case /* optional string retry_of_turn_id */ 7:
|
|
6134
|
+
message.retryOfTurnId = reader.string();
|
|
6135
|
+
break;
|
|
6136
|
+
case /* nimi.runtime.v1.LocalAppConversationQuoteIntent quote */ 9:
|
|
6137
|
+
message.quote = LocalAppConversationQuoteIntent.internalBinaryRead(reader, reader.uint32(), options, message.quote);
|
|
6138
|
+
break;
|
|
6089
6139
|
default:
|
|
6090
6140
|
let u = options.readUnknownField;
|
|
6091
6141
|
if (u === "throw")
|
|
@@ -6110,6 +6160,12 @@ class SendLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6110
6160
|
/* repeated nimi.runtime.v1.LocalAppConversationInputPart parts = 5; */
|
|
6111
6161
|
for (let i = 0; i < message.parts.length; i++)
|
|
6112
6162
|
LocalAppConversationInputPart.internalBinaryWrite(message.parts[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
6163
|
+
/* optional string retry_of_turn_id = 7; */
|
|
6164
|
+
if (message.retryOfTurnId !== undefined)
|
|
6165
|
+
writer.tag(7, WireType.LengthDelimited).string(message.retryOfTurnId);
|
|
6166
|
+
/* nimi.runtime.v1.LocalAppConversationQuoteIntent quote = 9; */
|
|
6167
|
+
if (message.quote)
|
|
6168
|
+
LocalAppConversationQuoteIntent.internalBinaryWrite(message.quote, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
6113
6169
|
let u = options.writeUnknownFields;
|
|
6114
6170
|
if (u !== false)
|
|
6115
6171
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6121,15 +6177,21 @@ class SendLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6121
6177
|
*/
|
|
6122
6178
|
export const SendLocalAppConversationTurnRequest = new SendLocalAppConversationTurnRequest$Type();
|
|
6123
6179
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
6124
|
-
class
|
|
6180
|
+
class LocalAppConversationQuoteIntent$Type extends MessageType {
|
|
6125
6181
|
constructor() {
|
|
6126
|
-
super("nimi.runtime.v1.
|
|
6127
|
-
{ no: 1, name: "
|
|
6182
|
+
super("nimi.runtime.v1.LocalAppConversationQuoteIntent", [
|
|
6183
|
+
{ no: 1, name: "source_message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6184
|
+
{ no: 2, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6185
|
+
{ no: 3, name: "start_byte", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
6186
|
+
{ no: 4, name: "end_byte", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
6128
6187
|
]);
|
|
6129
6188
|
}
|
|
6130
6189
|
create(value) {
|
|
6131
6190
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6132
|
-
message.
|
|
6191
|
+
message.sourceMessageId = "";
|
|
6192
|
+
message.format = "";
|
|
6193
|
+
message.startByte = 0;
|
|
6194
|
+
message.endByte = 0;
|
|
6133
6195
|
if (value !== undefined)
|
|
6134
6196
|
reflectionMergePartial(this, message, value);
|
|
6135
6197
|
return message;
|
|
@@ -6139,8 +6201,17 @@ class SendLocalAppConversationTurnResponse$Type extends MessageType {
|
|
|
6139
6201
|
while (reader.pos < end) {
|
|
6140
6202
|
let [fieldNo, wireType] = reader.tag();
|
|
6141
6203
|
switch (fieldNo) {
|
|
6142
|
-
case /* string
|
|
6143
|
-
message.
|
|
6204
|
+
case /* string source_message_id */ 1:
|
|
6205
|
+
message.sourceMessageId = reader.string();
|
|
6206
|
+
break;
|
|
6207
|
+
case /* string format */ 2:
|
|
6208
|
+
message.format = reader.string();
|
|
6209
|
+
break;
|
|
6210
|
+
case /* uint32 start_byte */ 3:
|
|
6211
|
+
message.startByte = reader.uint32();
|
|
6212
|
+
break;
|
|
6213
|
+
case /* uint32 end_byte */ 4:
|
|
6214
|
+
message.endByte = reader.uint32();
|
|
6144
6215
|
break;
|
|
6145
6216
|
default:
|
|
6146
6217
|
let u = options.readUnknownField;
|
|
@@ -6154,9 +6225,18 @@ class SendLocalAppConversationTurnResponse$Type extends MessageType {
|
|
|
6154
6225
|
return message;
|
|
6155
6226
|
}
|
|
6156
6227
|
internalBinaryWrite(message, writer, options) {
|
|
6157
|
-
/* string
|
|
6158
|
-
if (message.
|
|
6159
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
6228
|
+
/* string source_message_id = 1; */
|
|
6229
|
+
if (message.sourceMessageId !== "")
|
|
6230
|
+
writer.tag(1, WireType.LengthDelimited).string(message.sourceMessageId);
|
|
6231
|
+
/* string format = 2; */
|
|
6232
|
+
if (message.format !== "")
|
|
6233
|
+
writer.tag(2, WireType.LengthDelimited).string(message.format);
|
|
6234
|
+
/* uint32 start_byte = 3; */
|
|
6235
|
+
if (message.startByte !== 0)
|
|
6236
|
+
writer.tag(3, WireType.Varint).uint32(message.startByte);
|
|
6237
|
+
/* uint32 end_byte = 4; */
|
|
6238
|
+
if (message.endByte !== 0)
|
|
6239
|
+
writer.tag(4, WireType.Varint).uint32(message.endByte);
|
|
6160
6240
|
let u = options.writeUnknownFields;
|
|
6161
6241
|
if (u !== false)
|
|
6162
6242
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6164,19 +6244,31 @@ class SendLocalAppConversationTurnResponse$Type extends MessageType {
|
|
|
6164
6244
|
}
|
|
6165
6245
|
}
|
|
6166
6246
|
/**
|
|
6167
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
6247
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationQuoteIntent
|
|
6168
6248
|
*/
|
|
6169
|
-
export const
|
|
6249
|
+
export const LocalAppConversationQuoteIntent = new LocalAppConversationQuoteIntent$Type();
|
|
6170
6250
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
6171
|
-
class
|
|
6251
|
+
class LocalAppConversationQuote$Type extends MessageType {
|
|
6172
6252
|
constructor() {
|
|
6173
|
-
super("nimi.runtime.v1.
|
|
6174
|
-
{ no: 1, name: "
|
|
6253
|
+
super("nimi.runtime.v1.LocalAppConversationQuote", [
|
|
6254
|
+
{ no: 1, name: "source_message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6255
|
+
{ no: 2, name: "source_role", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppConversationMessageRole", LocalAppConversationMessageRole, "LOCAL_APP_CONVERSATION_MESSAGE_ROLE_"] },
|
|
6256
|
+
{ no: 3, name: "source_partial", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
6257
|
+
{ no: 4, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6258
|
+
{ no: 5, name: "start_byte", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
6259
|
+
{ no: 6, name: "end_byte", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
6260
|
+
{ no: 7, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
6175
6261
|
]);
|
|
6176
6262
|
}
|
|
6177
6263
|
create(value) {
|
|
6178
6264
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6179
|
-
message.
|
|
6265
|
+
message.sourceMessageId = "";
|
|
6266
|
+
message.sourceRole = 0;
|
|
6267
|
+
message.sourcePartial = false;
|
|
6268
|
+
message.format = "";
|
|
6269
|
+
message.startByte = 0;
|
|
6270
|
+
message.endByte = 0;
|
|
6271
|
+
message.text = "";
|
|
6180
6272
|
if (value !== undefined)
|
|
6181
6273
|
reflectionMergePartial(this, message, value);
|
|
6182
6274
|
return message;
|
|
@@ -6186,8 +6278,26 @@ class LocalAppConversationInputArtifactRef$Type extends MessageType {
|
|
|
6186
6278
|
while (reader.pos < end) {
|
|
6187
6279
|
let [fieldNo, wireType] = reader.tag();
|
|
6188
6280
|
switch (fieldNo) {
|
|
6189
|
-
case /* string
|
|
6190
|
-
message.
|
|
6281
|
+
case /* string source_message_id */ 1:
|
|
6282
|
+
message.sourceMessageId = reader.string();
|
|
6283
|
+
break;
|
|
6284
|
+
case /* nimi.runtime.v1.LocalAppConversationMessageRole source_role */ 2:
|
|
6285
|
+
message.sourceRole = reader.int32();
|
|
6286
|
+
break;
|
|
6287
|
+
case /* bool source_partial */ 3:
|
|
6288
|
+
message.sourcePartial = reader.bool();
|
|
6289
|
+
break;
|
|
6290
|
+
case /* string format */ 4:
|
|
6291
|
+
message.format = reader.string();
|
|
6292
|
+
break;
|
|
6293
|
+
case /* uint32 start_byte */ 5:
|
|
6294
|
+
message.startByte = reader.uint32();
|
|
6295
|
+
break;
|
|
6296
|
+
case /* uint32 end_byte */ 6:
|
|
6297
|
+
message.endByte = reader.uint32();
|
|
6298
|
+
break;
|
|
6299
|
+
case /* string text */ 7:
|
|
6300
|
+
message.text = reader.string();
|
|
6191
6301
|
break;
|
|
6192
6302
|
default:
|
|
6193
6303
|
let u = options.readUnknownField;
|
|
@@ -6201,9 +6311,27 @@ class LocalAppConversationInputArtifactRef$Type extends MessageType {
|
|
|
6201
6311
|
return message;
|
|
6202
6312
|
}
|
|
6203
6313
|
internalBinaryWrite(message, writer, options) {
|
|
6204
|
-
/* string
|
|
6205
|
-
if (message.
|
|
6206
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
6314
|
+
/* string source_message_id = 1; */
|
|
6315
|
+
if (message.sourceMessageId !== "")
|
|
6316
|
+
writer.tag(1, WireType.LengthDelimited).string(message.sourceMessageId);
|
|
6317
|
+
/* nimi.runtime.v1.LocalAppConversationMessageRole source_role = 2; */
|
|
6318
|
+
if (message.sourceRole !== 0)
|
|
6319
|
+
writer.tag(2, WireType.Varint).int32(message.sourceRole);
|
|
6320
|
+
/* bool source_partial = 3; */
|
|
6321
|
+
if (message.sourcePartial !== false)
|
|
6322
|
+
writer.tag(3, WireType.Varint).bool(message.sourcePartial);
|
|
6323
|
+
/* string format = 4; */
|
|
6324
|
+
if (message.format !== "")
|
|
6325
|
+
writer.tag(4, WireType.LengthDelimited).string(message.format);
|
|
6326
|
+
/* uint32 start_byte = 5; */
|
|
6327
|
+
if (message.startByte !== 0)
|
|
6328
|
+
writer.tag(5, WireType.Varint).uint32(message.startByte);
|
|
6329
|
+
/* uint32 end_byte = 6; */
|
|
6330
|
+
if (message.endByte !== 0)
|
|
6331
|
+
writer.tag(6, WireType.Varint).uint32(message.endByte);
|
|
6332
|
+
/* string text = 7; */
|
|
6333
|
+
if (message.text !== "")
|
|
6334
|
+
writer.tag(7, WireType.LengthDelimited).string(message.text);
|
|
6207
6335
|
let u = options.writeUnknownFields;
|
|
6208
6336
|
if (u !== false)
|
|
6209
6337
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6211,20 +6339,19 @@ class LocalAppConversationInputArtifactRef$Type extends MessageType {
|
|
|
6211
6339
|
}
|
|
6212
6340
|
}
|
|
6213
6341
|
/**
|
|
6214
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
6342
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationQuote
|
|
6215
6343
|
*/
|
|
6216
|
-
export const
|
|
6344
|
+
export const LocalAppConversationQuote = new LocalAppConversationQuote$Type();
|
|
6217
6345
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
6218
|
-
class
|
|
6346
|
+
class SendLocalAppConversationTurnResponse$Type extends MessageType {
|
|
6219
6347
|
constructor() {
|
|
6220
|
-
super("nimi.runtime.v1.
|
|
6221
|
-
{ no: 1, name: "
|
|
6222
|
-
{ no: 2, name: "artifact_ref", kind: "message", oneof: "part", T: () => LocalAppConversationInputArtifactRef }
|
|
6348
|
+
super("nimi.runtime.v1.SendLocalAppConversationTurnResponse", [
|
|
6349
|
+
{ no: 1, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
6223
6350
|
]);
|
|
6224
6351
|
}
|
|
6225
6352
|
create(value) {
|
|
6226
6353
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6227
|
-
message.
|
|
6354
|
+
message.turnId = "";
|
|
6228
6355
|
if (value !== undefined)
|
|
6229
6356
|
reflectionMergePartial(this, message, value);
|
|
6230
6357
|
return message;
|
|
@@ -6234,17 +6361,8 @@ class LocalAppConversationInputPart$Type extends MessageType {
|
|
|
6234
6361
|
while (reader.pos < end) {
|
|
6235
6362
|
let [fieldNo, wireType] = reader.tag();
|
|
6236
6363
|
switch (fieldNo) {
|
|
6237
|
-
case /*
|
|
6238
|
-
message.
|
|
6239
|
-
oneofKind: "text",
|
|
6240
|
-
text: LocalAppConversationTextPart.internalBinaryRead(reader, reader.uint32(), options, message.part.text)
|
|
6241
|
-
};
|
|
6242
|
-
break;
|
|
6243
|
-
case /* nimi.runtime.v1.LocalAppConversationInputArtifactRef artifact_ref */ 2:
|
|
6244
|
-
message.part = {
|
|
6245
|
-
oneofKind: "artifactRef",
|
|
6246
|
-
artifactRef: LocalAppConversationInputArtifactRef.internalBinaryRead(reader, reader.uint32(), options, message.part.artifactRef)
|
|
6247
|
-
};
|
|
6364
|
+
case /* string turn_id */ 1:
|
|
6365
|
+
message.turnId = reader.string();
|
|
6248
6366
|
break;
|
|
6249
6367
|
default:
|
|
6250
6368
|
let u = options.readUnknownField;
|
|
@@ -6258,12 +6376,9 @@ class LocalAppConversationInputPart$Type extends MessageType {
|
|
|
6258
6376
|
return message;
|
|
6259
6377
|
}
|
|
6260
6378
|
internalBinaryWrite(message, writer, options) {
|
|
6261
|
-
/*
|
|
6262
|
-
if (message.
|
|
6263
|
-
|
|
6264
|
-
/* nimi.runtime.v1.LocalAppConversationInputArtifactRef artifact_ref = 2; */
|
|
6265
|
-
if (message.part.oneofKind === "artifactRef")
|
|
6266
|
-
LocalAppConversationInputArtifactRef.internalBinaryWrite(message.part.artifactRef, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
6379
|
+
/* string turn_id = 1; */
|
|
6380
|
+
if (message.turnId !== "")
|
|
6381
|
+
writer.tag(1, WireType.LengthDelimited).string(message.turnId);
|
|
6267
6382
|
let u = options.writeUnknownFields;
|
|
6268
6383
|
if (u !== false)
|
|
6269
6384
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6271,18 +6386,125 @@ class LocalAppConversationInputPart$Type extends MessageType {
|
|
|
6271
6386
|
}
|
|
6272
6387
|
}
|
|
6273
6388
|
/**
|
|
6274
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
6389
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.SendLocalAppConversationTurnResponse
|
|
6275
6390
|
*/
|
|
6276
|
-
export const
|
|
6391
|
+
export const SendLocalAppConversationTurnResponse = new SendLocalAppConversationTurnResponse$Type();
|
|
6277
6392
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
6278
|
-
class
|
|
6393
|
+
class LocalAppConversationInputArtifactRef$Type extends MessageType {
|
|
6279
6394
|
constructor() {
|
|
6280
|
-
super("nimi.runtime.v1.
|
|
6281
|
-
{ no: 1, name: "
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6395
|
+
super("nimi.runtime.v1.LocalAppConversationInputArtifactRef", [
|
|
6396
|
+
{ no: 1, name: "artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
6397
|
+
]);
|
|
6398
|
+
}
|
|
6399
|
+
create(value) {
|
|
6400
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
6401
|
+
message.artifactId = "";
|
|
6402
|
+
if (value !== undefined)
|
|
6403
|
+
reflectionMergePartial(this, message, value);
|
|
6404
|
+
return message;
|
|
6405
|
+
}
|
|
6406
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6407
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6408
|
+
while (reader.pos < end) {
|
|
6409
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6410
|
+
switch (fieldNo) {
|
|
6411
|
+
case /* string artifact_id */ 1:
|
|
6412
|
+
message.artifactId = reader.string();
|
|
6413
|
+
break;
|
|
6414
|
+
default:
|
|
6415
|
+
let u = options.readUnknownField;
|
|
6416
|
+
if (u === "throw")
|
|
6417
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6418
|
+
let d = reader.skip(wireType);
|
|
6419
|
+
if (u !== false)
|
|
6420
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6421
|
+
}
|
|
6422
|
+
}
|
|
6423
|
+
return message;
|
|
6424
|
+
}
|
|
6425
|
+
internalBinaryWrite(message, writer, options) {
|
|
6426
|
+
/* string artifact_id = 1; */
|
|
6427
|
+
if (message.artifactId !== "")
|
|
6428
|
+
writer.tag(1, WireType.LengthDelimited).string(message.artifactId);
|
|
6429
|
+
let u = options.writeUnknownFields;
|
|
6430
|
+
if (u !== false)
|
|
6431
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6432
|
+
return writer;
|
|
6433
|
+
}
|
|
6434
|
+
}
|
|
6435
|
+
/**
|
|
6436
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationInputArtifactRef
|
|
6437
|
+
*/
|
|
6438
|
+
export const LocalAppConversationInputArtifactRef = new LocalAppConversationInputArtifactRef$Type();
|
|
6439
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6440
|
+
class LocalAppConversationInputPart$Type extends MessageType {
|
|
6441
|
+
constructor() {
|
|
6442
|
+
super("nimi.runtime.v1.LocalAppConversationInputPart", [
|
|
6443
|
+
{ no: 1, name: "text", kind: "message", oneof: "part", T: () => LocalAppConversationTextPart },
|
|
6444
|
+
{ no: 2, name: "artifact_ref", kind: "message", oneof: "part", T: () => LocalAppConversationInputArtifactRef }
|
|
6445
|
+
]);
|
|
6446
|
+
}
|
|
6447
|
+
create(value) {
|
|
6448
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
6449
|
+
message.part = { oneofKind: undefined };
|
|
6450
|
+
if (value !== undefined)
|
|
6451
|
+
reflectionMergePartial(this, message, value);
|
|
6452
|
+
return message;
|
|
6453
|
+
}
|
|
6454
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6455
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6456
|
+
while (reader.pos < end) {
|
|
6457
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6458
|
+
switch (fieldNo) {
|
|
6459
|
+
case /* nimi.runtime.v1.LocalAppConversationTextPart text */ 1:
|
|
6460
|
+
message.part = {
|
|
6461
|
+
oneofKind: "text",
|
|
6462
|
+
text: LocalAppConversationTextPart.internalBinaryRead(reader, reader.uint32(), options, message.part.text)
|
|
6463
|
+
};
|
|
6464
|
+
break;
|
|
6465
|
+
case /* nimi.runtime.v1.LocalAppConversationInputArtifactRef artifact_ref */ 2:
|
|
6466
|
+
message.part = {
|
|
6467
|
+
oneofKind: "artifactRef",
|
|
6468
|
+
artifactRef: LocalAppConversationInputArtifactRef.internalBinaryRead(reader, reader.uint32(), options, message.part.artifactRef)
|
|
6469
|
+
};
|
|
6470
|
+
break;
|
|
6471
|
+
default:
|
|
6472
|
+
let u = options.readUnknownField;
|
|
6473
|
+
if (u === "throw")
|
|
6474
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6475
|
+
let d = reader.skip(wireType);
|
|
6476
|
+
if (u !== false)
|
|
6477
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6478
|
+
}
|
|
6479
|
+
}
|
|
6480
|
+
return message;
|
|
6481
|
+
}
|
|
6482
|
+
internalBinaryWrite(message, writer, options) {
|
|
6483
|
+
/* nimi.runtime.v1.LocalAppConversationTextPart text = 1; */
|
|
6484
|
+
if (message.part.oneofKind === "text")
|
|
6485
|
+
LocalAppConversationTextPart.internalBinaryWrite(message.part.text, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
6486
|
+
/* nimi.runtime.v1.LocalAppConversationInputArtifactRef artifact_ref = 2; */
|
|
6487
|
+
if (message.part.oneofKind === "artifactRef")
|
|
6488
|
+
LocalAppConversationInputArtifactRef.internalBinaryWrite(message.part.artifactRef, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
6489
|
+
let u = options.writeUnknownFields;
|
|
6490
|
+
if (u !== false)
|
|
6491
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6492
|
+
return writer;
|
|
6493
|
+
}
|
|
6494
|
+
}
|
|
6495
|
+
/**
|
|
6496
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationInputPart
|
|
6497
|
+
*/
|
|
6498
|
+
export const LocalAppConversationInputPart = new LocalAppConversationInputPart$Type();
|
|
6499
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6500
|
+
class UploadLocalAppConversationAttachmentRequest$Type extends MessageType {
|
|
6501
|
+
constructor() {
|
|
6502
|
+
super("nimi.runtime.v1.UploadLocalAppConversationAttachmentRequest", [
|
|
6503
|
+
{ no: 1, name: "agent_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6504
|
+
{ no: 2, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6505
|
+
{ no: 3, name: "mime_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6506
|
+
{ no: 4, name: "display_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
6507
|
+
{ no: 5, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
6286
6508
|
]);
|
|
6287
6509
|
}
|
|
6288
6510
|
create(value) {
|
|
@@ -6789,7 +7011,8 @@ class InterruptLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6789
7011
|
constructor() {
|
|
6790
7012
|
super("nimi.runtime.v1.InterruptLocalAppConversationTurnRequest", [
|
|
6791
7013
|
{ no: 1, name: "agent_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6792
|
-
{ no: 2, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
7014
|
+
{ no: 2, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7015
|
+
{ no: 3, name: "expected_turn_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
6793
7016
|
]);
|
|
6794
7017
|
}
|
|
6795
7018
|
create(value) {
|
|
@@ -6811,6 +7034,9 @@ class InterruptLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6811
7034
|
case /* string conversation_anchor_id */ 2:
|
|
6812
7035
|
message.conversationAnchorId = reader.string();
|
|
6813
7036
|
break;
|
|
7037
|
+
case /* optional string expected_turn_id */ 3:
|
|
7038
|
+
message.expectedTurnId = reader.string();
|
|
7039
|
+
break;
|
|
6814
7040
|
default:
|
|
6815
7041
|
let u = options.readUnknownField;
|
|
6816
7042
|
if (u === "throw")
|
|
@@ -6829,6 +7055,9 @@ class InterruptLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6829
7055
|
/* string conversation_anchor_id = 2; */
|
|
6830
7056
|
if (message.conversationAnchorId !== "")
|
|
6831
7057
|
writer.tag(2, WireType.LengthDelimited).string(message.conversationAnchorId);
|
|
7058
|
+
/* optional string expected_turn_id = 3; */
|
|
7059
|
+
if (message.expectedTurnId !== undefined)
|
|
7060
|
+
writer.tag(3, WireType.LengthDelimited).string(message.expectedTurnId);
|
|
6832
7061
|
let u = options.writeUnknownFields;
|
|
6833
7062
|
if (u !== false)
|
|
6834
7063
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6997,21 +7226,19 @@ class GetLocalAppConversationSnapshotRequest$Type extends MessageType {
|
|
|
6997
7226
|
*/
|
|
6998
7227
|
export const GetLocalAppConversationSnapshotRequest = new GetLocalAppConversationSnapshotRequest$Type();
|
|
6999
7228
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7000
|
-
class
|
|
7229
|
+
class ReadLocalAppConversationMessageRequest$Type extends MessageType {
|
|
7001
7230
|
constructor() {
|
|
7002
|
-
super("nimi.runtime.v1.
|
|
7003
|
-
{ no: 1, name: "
|
|
7004
|
-
{ no: 2, name: "
|
|
7005
|
-
{ no:
|
|
7006
|
-
{ no: 5, name: "parts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationMessagePart }
|
|
7231
|
+
super("nimi.runtime.v1.ReadLocalAppConversationMessageRequest", [
|
|
7232
|
+
{ no: 1, name: "agent_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7233
|
+
{ no: 2, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7234
|
+
{ no: 3, name: "message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
7007
7235
|
]);
|
|
7008
7236
|
}
|
|
7009
7237
|
create(value) {
|
|
7010
7238
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7011
|
-
message.
|
|
7012
|
-
message.
|
|
7239
|
+
message.agentHandle = "";
|
|
7240
|
+
message.conversationAnchorId = "";
|
|
7013
7241
|
message.messageId = "";
|
|
7014
|
-
message.parts = [];
|
|
7015
7242
|
if (value !== undefined)
|
|
7016
7243
|
reflectionMergePartial(this, message, value);
|
|
7017
7244
|
return message;
|
|
@@ -7021,18 +7248,15 @@ class LocalAppConversationMessage$Type extends MessageType {
|
|
|
7021
7248
|
while (reader.pos < end) {
|
|
7022
7249
|
let [fieldNo, wireType] = reader.tag();
|
|
7023
7250
|
switch (fieldNo) {
|
|
7024
|
-
case /* string
|
|
7025
|
-
message.
|
|
7251
|
+
case /* string agent_handle */ 1:
|
|
7252
|
+
message.agentHandle = reader.string();
|
|
7026
7253
|
break;
|
|
7027
|
-
case /*
|
|
7028
|
-
message.
|
|
7254
|
+
case /* string conversation_anchor_id */ 2:
|
|
7255
|
+
message.conversationAnchorId = reader.string();
|
|
7029
7256
|
break;
|
|
7030
|
-
case /* string message_id */
|
|
7257
|
+
case /* string message_id */ 3:
|
|
7031
7258
|
message.messageId = reader.string();
|
|
7032
7259
|
break;
|
|
7033
|
-
case /* repeated nimi.runtime.v1.LocalAppConversationMessagePart parts */ 5:
|
|
7034
|
-
message.parts.push(LocalAppConversationMessagePart.internalBinaryRead(reader, reader.uint32(), options));
|
|
7035
|
-
break;
|
|
7036
7260
|
default:
|
|
7037
7261
|
let u = options.readUnknownField;
|
|
7038
7262
|
if (u === "throw")
|
|
@@ -7045,18 +7269,15 @@ class LocalAppConversationMessage$Type extends MessageType {
|
|
|
7045
7269
|
return message;
|
|
7046
7270
|
}
|
|
7047
7271
|
internalBinaryWrite(message, writer, options) {
|
|
7048
|
-
/* string
|
|
7049
|
-
if (message.
|
|
7050
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
7051
|
-
/*
|
|
7052
|
-
if (message.
|
|
7053
|
-
writer.tag(2, WireType.
|
|
7054
|
-
/* string message_id =
|
|
7272
|
+
/* string agent_handle = 1; */
|
|
7273
|
+
if (message.agentHandle !== "")
|
|
7274
|
+
writer.tag(1, WireType.LengthDelimited).string(message.agentHandle);
|
|
7275
|
+
/* string conversation_anchor_id = 2; */
|
|
7276
|
+
if (message.conversationAnchorId !== "")
|
|
7277
|
+
writer.tag(2, WireType.LengthDelimited).string(message.conversationAnchorId);
|
|
7278
|
+
/* string message_id = 3; */
|
|
7055
7279
|
if (message.messageId !== "")
|
|
7056
|
-
writer.tag(
|
|
7057
|
-
/* repeated nimi.runtime.v1.LocalAppConversationMessagePart parts = 5; */
|
|
7058
|
-
for (let i = 0; i < message.parts.length; i++)
|
|
7059
|
-
LocalAppConversationMessagePart.internalBinaryWrite(message.parts[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
7280
|
+
writer.tag(3, WireType.LengthDelimited).string(message.messageId);
|
|
7060
7281
|
let u = options.writeUnknownFields;
|
|
7061
7282
|
if (u !== false)
|
|
7062
7283
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7064,19 +7285,29 @@ class LocalAppConversationMessage$Type extends MessageType {
|
|
|
7064
7285
|
}
|
|
7065
7286
|
}
|
|
7066
7287
|
/**
|
|
7067
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
7288
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ReadLocalAppConversationMessageRequest
|
|
7068
7289
|
*/
|
|
7069
|
-
export const
|
|
7290
|
+
export const ReadLocalAppConversationMessageRequest = new ReadLocalAppConversationMessageRequest$Type();
|
|
7070
7291
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7071
|
-
class
|
|
7292
|
+
class LocalAppConversationMessageWindow$Type extends MessageType {
|
|
7072
7293
|
constructor() {
|
|
7073
|
-
super("nimi.runtime.v1.
|
|
7074
|
-
{ no: 1, name: "
|
|
7294
|
+
super("nimi.runtime.v1.LocalAppConversationMessageWindow", [
|
|
7295
|
+
{ no: 1, name: "messages", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationMessage },
|
|
7296
|
+
{ no: 2, name: "turns", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationTurn },
|
|
7297
|
+
{ no: 3, name: "actions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationAction },
|
|
7298
|
+
{ no: 4, name: "voices", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationVoice },
|
|
7299
|
+
{ no: 5, name: "truncated_before", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
7300
|
+
{ no: 6, name: "truncated_after", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
7075
7301
|
]);
|
|
7076
7302
|
}
|
|
7077
7303
|
create(value) {
|
|
7078
7304
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7079
|
-
message.
|
|
7305
|
+
message.messages = [];
|
|
7306
|
+
message.turns = [];
|
|
7307
|
+
message.actions = [];
|
|
7308
|
+
message.voices = [];
|
|
7309
|
+
message.truncatedBefore = false;
|
|
7310
|
+
message.truncatedAfter = false;
|
|
7080
7311
|
if (value !== undefined)
|
|
7081
7312
|
reflectionMergePartial(this, message, value);
|
|
7082
7313
|
return message;
|
|
@@ -7086,8 +7317,23 @@ class LocalAppConversationTextPart$Type extends MessageType {
|
|
|
7086
7317
|
while (reader.pos < end) {
|
|
7087
7318
|
let [fieldNo, wireType] = reader.tag();
|
|
7088
7319
|
switch (fieldNo) {
|
|
7089
|
-
case /*
|
|
7090
|
-
message.
|
|
7320
|
+
case /* repeated nimi.runtime.v1.LocalAppConversationMessage messages */ 1:
|
|
7321
|
+
message.messages.push(LocalAppConversationMessage.internalBinaryRead(reader, reader.uint32(), options));
|
|
7322
|
+
break;
|
|
7323
|
+
case /* repeated nimi.runtime.v1.LocalAppConversationTurn turns */ 2:
|
|
7324
|
+
message.turns.push(LocalAppConversationTurn.internalBinaryRead(reader, reader.uint32(), options));
|
|
7325
|
+
break;
|
|
7326
|
+
case /* repeated nimi.runtime.v1.LocalAppConversationAction actions */ 3:
|
|
7327
|
+
message.actions.push(LocalAppConversationAction.internalBinaryRead(reader, reader.uint32(), options));
|
|
7328
|
+
break;
|
|
7329
|
+
case /* repeated nimi.runtime.v1.LocalAppConversationVoice voices */ 4:
|
|
7330
|
+
message.voices.push(LocalAppConversationVoice.internalBinaryRead(reader, reader.uint32(), options));
|
|
7331
|
+
break;
|
|
7332
|
+
case /* bool truncated_before */ 5:
|
|
7333
|
+
message.truncatedBefore = reader.bool();
|
|
7334
|
+
break;
|
|
7335
|
+
case /* bool truncated_after */ 6:
|
|
7336
|
+
message.truncatedAfter = reader.bool();
|
|
7091
7337
|
break;
|
|
7092
7338
|
default:
|
|
7093
7339
|
let u = options.readUnknownField;
|
|
@@ -7101,9 +7347,24 @@ class LocalAppConversationTextPart$Type extends MessageType {
|
|
|
7101
7347
|
return message;
|
|
7102
7348
|
}
|
|
7103
7349
|
internalBinaryWrite(message, writer, options) {
|
|
7104
|
-
/*
|
|
7105
|
-
|
|
7106
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
7350
|
+
/* repeated nimi.runtime.v1.LocalAppConversationMessage messages = 1; */
|
|
7351
|
+
for (let i = 0; i < message.messages.length; i++)
|
|
7352
|
+
LocalAppConversationMessage.internalBinaryWrite(message.messages[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
7353
|
+
/* repeated nimi.runtime.v1.LocalAppConversationTurn turns = 2; */
|
|
7354
|
+
for (let i = 0; i < message.turns.length; i++)
|
|
7355
|
+
LocalAppConversationTurn.internalBinaryWrite(message.turns[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
7356
|
+
/* repeated nimi.runtime.v1.LocalAppConversationAction actions = 3; */
|
|
7357
|
+
for (let i = 0; i < message.actions.length; i++)
|
|
7358
|
+
LocalAppConversationAction.internalBinaryWrite(message.actions[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
7359
|
+
/* repeated nimi.runtime.v1.LocalAppConversationVoice voices = 4; */
|
|
7360
|
+
for (let i = 0; i < message.voices.length; i++)
|
|
7361
|
+
LocalAppConversationVoice.internalBinaryWrite(message.voices[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
7362
|
+
/* bool truncated_before = 5; */
|
|
7363
|
+
if (message.truncatedBefore !== false)
|
|
7364
|
+
writer.tag(5, WireType.Varint).bool(message.truncatedBefore);
|
|
7365
|
+
/* bool truncated_after = 6; */
|
|
7366
|
+
if (message.truncatedAfter !== false)
|
|
7367
|
+
writer.tag(6, WireType.Varint).bool(message.truncatedAfter);
|
|
7107
7368
|
let u = options.writeUnknownFields;
|
|
7108
7369
|
if (u !== false)
|
|
7109
7370
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7111,24 +7372,25 @@ class LocalAppConversationTextPart$Type extends MessageType {
|
|
|
7111
7372
|
}
|
|
7112
7373
|
}
|
|
7113
7374
|
/**
|
|
7114
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
7375
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationMessageWindow
|
|
7115
7376
|
*/
|
|
7116
|
-
export const
|
|
7377
|
+
export const LocalAppConversationMessageWindow = new LocalAppConversationMessageWindow$Type();
|
|
7117
7378
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7118
|
-
class
|
|
7379
|
+
class ReadLocalAppConversationMessageResponse$Type extends MessageType {
|
|
7119
7380
|
constructor() {
|
|
7120
|
-
super("nimi.runtime.v1.
|
|
7121
|
-
{ no: 1, name: "
|
|
7122
|
-
{ no: 2, name: "
|
|
7123
|
-
{ no: 3, name: "
|
|
7124
|
-
{ no: 4, name: "
|
|
7381
|
+
super("nimi.runtime.v1.ReadLocalAppConversationMessageResponse", [
|
|
7382
|
+
{ no: 1, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7383
|
+
{ no: 2, name: "read_watermark", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
7384
|
+
{ no: 3, name: "message", kind: "message", T: () => LocalAppConversationMessage },
|
|
7385
|
+
{ no: 4, name: "quote_text", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7386
|
+
{ no: 5, name: "quote_format", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7387
|
+
{ no: 6, name: "window", kind: "message", T: () => LocalAppConversationMessageWindow }
|
|
7125
7388
|
]);
|
|
7126
7389
|
}
|
|
7127
7390
|
create(value) {
|
|
7128
7391
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7129
|
-
message.
|
|
7130
|
-
message.
|
|
7131
|
-
message.mimeType = "";
|
|
7392
|
+
message.conversationAnchorId = "";
|
|
7393
|
+
message.readWatermark = "0";
|
|
7132
7394
|
if (value !== undefined)
|
|
7133
7395
|
reflectionMergePartial(this, message, value);
|
|
7134
7396
|
return message;
|
|
@@ -7138,17 +7400,23 @@ class LocalAppConversationArtifactPart$Type extends MessageType {
|
|
|
7138
7400
|
while (reader.pos < end) {
|
|
7139
7401
|
let [fieldNo, wireType] = reader.tag();
|
|
7140
7402
|
switch (fieldNo) {
|
|
7141
|
-
case /* string
|
|
7142
|
-
message.
|
|
7403
|
+
case /* string conversation_anchor_id */ 1:
|
|
7404
|
+
message.conversationAnchorId = reader.string();
|
|
7143
7405
|
break;
|
|
7144
|
-
case /*
|
|
7145
|
-
message.
|
|
7406
|
+
case /* uint64 read_watermark */ 2:
|
|
7407
|
+
message.readWatermark = reader.uint64().toString();
|
|
7146
7408
|
break;
|
|
7147
|
-
case /*
|
|
7148
|
-
message.
|
|
7409
|
+
case /* nimi.runtime.v1.LocalAppConversationMessage message */ 3:
|
|
7410
|
+
message.message = LocalAppConversationMessage.internalBinaryRead(reader, reader.uint32(), options, message.message);
|
|
7149
7411
|
break;
|
|
7150
|
-
case /* optional string
|
|
7151
|
-
message.
|
|
7412
|
+
case /* optional string quote_text */ 4:
|
|
7413
|
+
message.quoteText = reader.string();
|
|
7414
|
+
break;
|
|
7415
|
+
case /* optional string quote_format */ 5:
|
|
7416
|
+
message.quoteFormat = reader.string();
|
|
7417
|
+
break;
|
|
7418
|
+
case /* nimi.runtime.v1.LocalAppConversationMessageWindow window */ 6:
|
|
7419
|
+
message.window = LocalAppConversationMessageWindow.internalBinaryRead(reader, reader.uint32(), options, message.window);
|
|
7152
7420
|
break;
|
|
7153
7421
|
default:
|
|
7154
7422
|
let u = options.readUnknownField;
|
|
@@ -7162,18 +7430,24 @@ class LocalAppConversationArtifactPart$Type extends MessageType {
|
|
|
7162
7430
|
return message;
|
|
7163
7431
|
}
|
|
7164
7432
|
internalBinaryWrite(message, writer, options) {
|
|
7165
|
-
/* string
|
|
7166
|
-
if (message.
|
|
7167
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
7168
|
-
/*
|
|
7169
|
-
if (message.
|
|
7170
|
-
writer.tag(2, WireType.Varint).
|
|
7171
|
-
/*
|
|
7172
|
-
if (message.
|
|
7173
|
-
writer.tag(3, WireType.LengthDelimited).
|
|
7174
|
-
/* optional string
|
|
7175
|
-
if (message.
|
|
7176
|
-
writer.tag(4, WireType.LengthDelimited).string(message.
|
|
7433
|
+
/* string conversation_anchor_id = 1; */
|
|
7434
|
+
if (message.conversationAnchorId !== "")
|
|
7435
|
+
writer.tag(1, WireType.LengthDelimited).string(message.conversationAnchorId);
|
|
7436
|
+
/* uint64 read_watermark = 2; */
|
|
7437
|
+
if (message.readWatermark !== "0")
|
|
7438
|
+
writer.tag(2, WireType.Varint).uint64(message.readWatermark);
|
|
7439
|
+
/* nimi.runtime.v1.LocalAppConversationMessage message = 3; */
|
|
7440
|
+
if (message.message)
|
|
7441
|
+
LocalAppConversationMessage.internalBinaryWrite(message.message, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
7442
|
+
/* optional string quote_text = 4; */
|
|
7443
|
+
if (message.quoteText !== undefined)
|
|
7444
|
+
writer.tag(4, WireType.LengthDelimited).string(message.quoteText);
|
|
7445
|
+
/* optional string quote_format = 5; */
|
|
7446
|
+
if (message.quoteFormat !== undefined)
|
|
7447
|
+
writer.tag(5, WireType.LengthDelimited).string(message.quoteFormat);
|
|
7448
|
+
/* nimi.runtime.v1.LocalAppConversationMessageWindow window = 6; */
|
|
7449
|
+
if (message.window)
|
|
7450
|
+
LocalAppConversationMessageWindow.internalBinaryWrite(message.window, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
7177
7451
|
let u = options.writeUnknownFields;
|
|
7178
7452
|
if (u !== false)
|
|
7179
7453
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7181,20 +7455,28 @@ class LocalAppConversationArtifactPart$Type extends MessageType {
|
|
|
7181
7455
|
}
|
|
7182
7456
|
}
|
|
7183
7457
|
/**
|
|
7184
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
7458
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ReadLocalAppConversationMessageResponse
|
|
7185
7459
|
*/
|
|
7186
|
-
export const
|
|
7460
|
+
export const ReadLocalAppConversationMessageResponse = new ReadLocalAppConversationMessageResponse$Type();
|
|
7187
7461
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7188
|
-
class
|
|
7462
|
+
class LocalAppConversationMessage$Type extends MessageType {
|
|
7189
7463
|
constructor() {
|
|
7190
|
-
super("nimi.runtime.v1.
|
|
7191
|
-
{ no: 1, name: "
|
|
7192
|
-
{ no: 2, name: "
|
|
7464
|
+
super("nimi.runtime.v1.LocalAppConversationMessage", [
|
|
7465
|
+
{ no: 1, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7466
|
+
{ no: 2, name: "role", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppConversationMessageRole", LocalAppConversationMessageRole, "LOCAL_APP_CONVERSATION_MESSAGE_ROLE_"] },
|
|
7467
|
+
{ no: 4, name: "message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7468
|
+
{ no: 5, name: "parts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationMessagePart },
|
|
7469
|
+
{ no: 6, name: "partial", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
7470
|
+
{ no: 7, name: "quote", kind: "message", T: () => LocalAppConversationQuote }
|
|
7193
7471
|
]);
|
|
7194
7472
|
}
|
|
7195
7473
|
create(value) {
|
|
7196
7474
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7197
|
-
message.
|
|
7475
|
+
message.turnId = "";
|
|
7476
|
+
message.role = 0;
|
|
7477
|
+
message.messageId = "";
|
|
7478
|
+
message.parts = [];
|
|
7479
|
+
message.partial = false;
|
|
7198
7480
|
if (value !== undefined)
|
|
7199
7481
|
reflectionMergePartial(this, message, value);
|
|
7200
7482
|
return message;
|
|
@@ -7204,11 +7486,206 @@ class LocalAppConversationMessagePart$Type extends MessageType {
|
|
|
7204
7486
|
while (reader.pos < end) {
|
|
7205
7487
|
let [fieldNo, wireType] = reader.tag();
|
|
7206
7488
|
switch (fieldNo) {
|
|
7207
|
-
case /*
|
|
7208
|
-
message.
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7489
|
+
case /* string turn_id */ 1:
|
|
7490
|
+
message.turnId = reader.string();
|
|
7491
|
+
break;
|
|
7492
|
+
case /* nimi.runtime.v1.LocalAppConversationMessageRole role */ 2:
|
|
7493
|
+
message.role = reader.int32();
|
|
7494
|
+
break;
|
|
7495
|
+
case /* string message_id */ 4:
|
|
7496
|
+
message.messageId = reader.string();
|
|
7497
|
+
break;
|
|
7498
|
+
case /* repeated nimi.runtime.v1.LocalAppConversationMessagePart parts */ 5:
|
|
7499
|
+
message.parts.push(LocalAppConversationMessagePart.internalBinaryRead(reader, reader.uint32(), options));
|
|
7500
|
+
break;
|
|
7501
|
+
case /* bool partial */ 6:
|
|
7502
|
+
message.partial = reader.bool();
|
|
7503
|
+
break;
|
|
7504
|
+
case /* nimi.runtime.v1.LocalAppConversationQuote quote */ 7:
|
|
7505
|
+
message.quote = LocalAppConversationQuote.internalBinaryRead(reader, reader.uint32(), options, message.quote);
|
|
7506
|
+
break;
|
|
7507
|
+
default:
|
|
7508
|
+
let u = options.readUnknownField;
|
|
7509
|
+
if (u === "throw")
|
|
7510
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
7511
|
+
let d = reader.skip(wireType);
|
|
7512
|
+
if (u !== false)
|
|
7513
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
7514
|
+
}
|
|
7515
|
+
}
|
|
7516
|
+
return message;
|
|
7517
|
+
}
|
|
7518
|
+
internalBinaryWrite(message, writer, options) {
|
|
7519
|
+
/* string turn_id = 1; */
|
|
7520
|
+
if (message.turnId !== "")
|
|
7521
|
+
writer.tag(1, WireType.LengthDelimited).string(message.turnId);
|
|
7522
|
+
/* nimi.runtime.v1.LocalAppConversationMessageRole role = 2; */
|
|
7523
|
+
if (message.role !== 0)
|
|
7524
|
+
writer.tag(2, WireType.Varint).int32(message.role);
|
|
7525
|
+
/* string message_id = 4; */
|
|
7526
|
+
if (message.messageId !== "")
|
|
7527
|
+
writer.tag(4, WireType.LengthDelimited).string(message.messageId);
|
|
7528
|
+
/* repeated nimi.runtime.v1.LocalAppConversationMessagePart parts = 5; */
|
|
7529
|
+
for (let i = 0; i < message.parts.length; i++)
|
|
7530
|
+
LocalAppConversationMessagePart.internalBinaryWrite(message.parts[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
7531
|
+
/* bool partial = 6; */
|
|
7532
|
+
if (message.partial !== false)
|
|
7533
|
+
writer.tag(6, WireType.Varint).bool(message.partial);
|
|
7534
|
+
/* nimi.runtime.v1.LocalAppConversationQuote quote = 7; */
|
|
7535
|
+
if (message.quote)
|
|
7536
|
+
LocalAppConversationQuote.internalBinaryWrite(message.quote, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
7537
|
+
let u = options.writeUnknownFields;
|
|
7538
|
+
if (u !== false)
|
|
7539
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7540
|
+
return writer;
|
|
7541
|
+
}
|
|
7542
|
+
}
|
|
7543
|
+
/**
|
|
7544
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationMessage
|
|
7545
|
+
*/
|
|
7546
|
+
export const LocalAppConversationMessage = new LocalAppConversationMessage$Type();
|
|
7547
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7548
|
+
class LocalAppConversationTextPart$Type extends MessageType {
|
|
7549
|
+
constructor() {
|
|
7550
|
+
super("nimi.runtime.v1.LocalAppConversationTextPart", [
|
|
7551
|
+
{ no: 1, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
7552
|
+
]);
|
|
7553
|
+
}
|
|
7554
|
+
create(value) {
|
|
7555
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
7556
|
+
message.text = "";
|
|
7557
|
+
if (value !== undefined)
|
|
7558
|
+
reflectionMergePartial(this, message, value);
|
|
7559
|
+
return message;
|
|
7560
|
+
}
|
|
7561
|
+
internalBinaryRead(reader, length, options, target) {
|
|
7562
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
7563
|
+
while (reader.pos < end) {
|
|
7564
|
+
let [fieldNo, wireType] = reader.tag();
|
|
7565
|
+
switch (fieldNo) {
|
|
7566
|
+
case /* string text */ 1:
|
|
7567
|
+
message.text = reader.string();
|
|
7568
|
+
break;
|
|
7569
|
+
default:
|
|
7570
|
+
let u = options.readUnknownField;
|
|
7571
|
+
if (u === "throw")
|
|
7572
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
7573
|
+
let d = reader.skip(wireType);
|
|
7574
|
+
if (u !== false)
|
|
7575
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
7576
|
+
}
|
|
7577
|
+
}
|
|
7578
|
+
return message;
|
|
7579
|
+
}
|
|
7580
|
+
internalBinaryWrite(message, writer, options) {
|
|
7581
|
+
/* string text = 1; */
|
|
7582
|
+
if (message.text !== "")
|
|
7583
|
+
writer.tag(1, WireType.LengthDelimited).string(message.text);
|
|
7584
|
+
let u = options.writeUnknownFields;
|
|
7585
|
+
if (u !== false)
|
|
7586
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7587
|
+
return writer;
|
|
7588
|
+
}
|
|
7589
|
+
}
|
|
7590
|
+
/**
|
|
7591
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationTextPart
|
|
7592
|
+
*/
|
|
7593
|
+
export const LocalAppConversationTextPart = new LocalAppConversationTextPart$Type();
|
|
7594
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7595
|
+
class LocalAppConversationArtifactPart$Type extends MessageType {
|
|
7596
|
+
constructor() {
|
|
7597
|
+
super("nimi.runtime.v1.LocalAppConversationArtifactPart", [
|
|
7598
|
+
{ no: 1, name: "artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7599
|
+
{ no: 2, name: "media_kind", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppConversationMediaKind", LocalAppConversationMediaKind, "LOCAL_APP_CONVERSATION_MEDIA_KIND_"] },
|
|
7600
|
+
{ no: 3, name: "mime_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7601
|
+
{ no: 4, name: "display_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
7602
|
+
]);
|
|
7603
|
+
}
|
|
7604
|
+
create(value) {
|
|
7605
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
7606
|
+
message.artifactId = "";
|
|
7607
|
+
message.mediaKind = 0;
|
|
7608
|
+
message.mimeType = "";
|
|
7609
|
+
if (value !== undefined)
|
|
7610
|
+
reflectionMergePartial(this, message, value);
|
|
7611
|
+
return message;
|
|
7612
|
+
}
|
|
7613
|
+
internalBinaryRead(reader, length, options, target) {
|
|
7614
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
7615
|
+
while (reader.pos < end) {
|
|
7616
|
+
let [fieldNo, wireType] = reader.tag();
|
|
7617
|
+
switch (fieldNo) {
|
|
7618
|
+
case /* string artifact_id */ 1:
|
|
7619
|
+
message.artifactId = reader.string();
|
|
7620
|
+
break;
|
|
7621
|
+
case /* nimi.runtime.v1.LocalAppConversationMediaKind media_kind */ 2:
|
|
7622
|
+
message.mediaKind = reader.int32();
|
|
7623
|
+
break;
|
|
7624
|
+
case /* string mime_type */ 3:
|
|
7625
|
+
message.mimeType = reader.string();
|
|
7626
|
+
break;
|
|
7627
|
+
case /* optional string display_name */ 4:
|
|
7628
|
+
message.displayName = reader.string();
|
|
7629
|
+
break;
|
|
7630
|
+
default:
|
|
7631
|
+
let u = options.readUnknownField;
|
|
7632
|
+
if (u === "throw")
|
|
7633
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
7634
|
+
let d = reader.skip(wireType);
|
|
7635
|
+
if (u !== false)
|
|
7636
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
7637
|
+
}
|
|
7638
|
+
}
|
|
7639
|
+
return message;
|
|
7640
|
+
}
|
|
7641
|
+
internalBinaryWrite(message, writer, options) {
|
|
7642
|
+
/* string artifact_id = 1; */
|
|
7643
|
+
if (message.artifactId !== "")
|
|
7644
|
+
writer.tag(1, WireType.LengthDelimited).string(message.artifactId);
|
|
7645
|
+
/* nimi.runtime.v1.LocalAppConversationMediaKind media_kind = 2; */
|
|
7646
|
+
if (message.mediaKind !== 0)
|
|
7647
|
+
writer.tag(2, WireType.Varint).int32(message.mediaKind);
|
|
7648
|
+
/* string mime_type = 3; */
|
|
7649
|
+
if (message.mimeType !== "")
|
|
7650
|
+
writer.tag(3, WireType.LengthDelimited).string(message.mimeType);
|
|
7651
|
+
/* optional string display_name = 4; */
|
|
7652
|
+
if (message.displayName !== undefined)
|
|
7653
|
+
writer.tag(4, WireType.LengthDelimited).string(message.displayName);
|
|
7654
|
+
let u = options.writeUnknownFields;
|
|
7655
|
+
if (u !== false)
|
|
7656
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7657
|
+
return writer;
|
|
7658
|
+
}
|
|
7659
|
+
}
|
|
7660
|
+
/**
|
|
7661
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationArtifactPart
|
|
7662
|
+
*/
|
|
7663
|
+
export const LocalAppConversationArtifactPart = new LocalAppConversationArtifactPart$Type();
|
|
7664
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7665
|
+
class LocalAppConversationMessagePart$Type extends MessageType {
|
|
7666
|
+
constructor() {
|
|
7667
|
+
super("nimi.runtime.v1.LocalAppConversationMessagePart", [
|
|
7668
|
+
{ no: 1, name: "text", kind: "message", oneof: "part", T: () => LocalAppConversationTextPart },
|
|
7669
|
+
{ no: 2, name: "artifact", kind: "message", oneof: "part", T: () => LocalAppConversationArtifactPart }
|
|
7670
|
+
]);
|
|
7671
|
+
}
|
|
7672
|
+
create(value) {
|
|
7673
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
7674
|
+
message.part = { oneofKind: undefined };
|
|
7675
|
+
if (value !== undefined)
|
|
7676
|
+
reflectionMergePartial(this, message, value);
|
|
7677
|
+
return message;
|
|
7678
|
+
}
|
|
7679
|
+
internalBinaryRead(reader, length, options, target) {
|
|
7680
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
7681
|
+
while (reader.pos < end) {
|
|
7682
|
+
let [fieldNo, wireType] = reader.tag();
|
|
7683
|
+
switch (fieldNo) {
|
|
7684
|
+
case /* nimi.runtime.v1.LocalAppConversationTextPart text */ 1:
|
|
7685
|
+
message.part = {
|
|
7686
|
+
oneofKind: "text",
|
|
7687
|
+
text: LocalAppConversationTextPart.internalBinaryRead(reader, reader.uint32(), options, message.part.text)
|
|
7688
|
+
};
|
|
7212
7689
|
break;
|
|
7213
7690
|
case /* nimi.runtime.v1.LocalAppConversationArtifactPart artifact */ 2:
|
|
7214
7691
|
message.part = {
|
|
@@ -7253,7 +7730,12 @@ class LocalAppConversationTurn$Type extends MessageType {
|
|
|
7253
7730
|
{ no: 3, name: "phase", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppConversationTurnPhase", LocalAppConversationTurnPhase, "LOCAL_APP_CONVERSATION_TURN_PHASE_"] },
|
|
7254
7731
|
{ no: 4, name: "terminal_reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7255
7732
|
{ no: 5, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] },
|
|
7256
|
-
{ no: 6, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
7733
|
+
{ no: 6, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7734
|
+
{ no: 7, name: "request_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7735
|
+
{ no: 8, name: "retry_of_turn_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7736
|
+
{ no: 9, name: "input_turn_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7737
|
+
{ no: 10, name: "can_regenerate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
7738
|
+
{ no: 11, name: "origin", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
7257
7739
|
]);
|
|
7258
7740
|
}
|
|
7259
7741
|
create(value) {
|
|
@@ -7262,6 +7744,8 @@ class LocalAppConversationTurn$Type extends MessageType {
|
|
|
7262
7744
|
message.status = 0;
|
|
7263
7745
|
message.phase = 0;
|
|
7264
7746
|
message.reasonCode = 0;
|
|
7747
|
+
message.canRegenerate = false;
|
|
7748
|
+
message.origin = "";
|
|
7265
7749
|
if (value !== undefined)
|
|
7266
7750
|
reflectionMergePartial(this, message, value);
|
|
7267
7751
|
return message;
|
|
@@ -7289,6 +7773,21 @@ class LocalAppConversationTurn$Type extends MessageType {
|
|
|
7289
7773
|
case /* optional string message */ 6:
|
|
7290
7774
|
message.message = reader.string();
|
|
7291
7775
|
break;
|
|
7776
|
+
case /* optional string request_id */ 7:
|
|
7777
|
+
message.requestId = reader.string();
|
|
7778
|
+
break;
|
|
7779
|
+
case /* optional string retry_of_turn_id */ 8:
|
|
7780
|
+
message.retryOfTurnId = reader.string();
|
|
7781
|
+
break;
|
|
7782
|
+
case /* optional string input_turn_id */ 9:
|
|
7783
|
+
message.inputTurnId = reader.string();
|
|
7784
|
+
break;
|
|
7785
|
+
case /* bool can_regenerate */ 10:
|
|
7786
|
+
message.canRegenerate = reader.bool();
|
|
7787
|
+
break;
|
|
7788
|
+
case /* string origin */ 11:
|
|
7789
|
+
message.origin = reader.string();
|
|
7790
|
+
break;
|
|
7292
7791
|
default:
|
|
7293
7792
|
let u = options.readUnknownField;
|
|
7294
7793
|
if (u === "throw")
|
|
@@ -7319,6 +7818,353 @@ class LocalAppConversationTurn$Type extends MessageType {
|
|
|
7319
7818
|
/* optional string message = 6; */
|
|
7320
7819
|
if (message.message !== undefined)
|
|
7321
7820
|
writer.tag(6, WireType.LengthDelimited).string(message.message);
|
|
7821
|
+
/* optional string request_id = 7; */
|
|
7822
|
+
if (message.requestId !== undefined)
|
|
7823
|
+
writer.tag(7, WireType.LengthDelimited).string(message.requestId);
|
|
7824
|
+
/* optional string retry_of_turn_id = 8; */
|
|
7825
|
+
if (message.retryOfTurnId !== undefined)
|
|
7826
|
+
writer.tag(8, WireType.LengthDelimited).string(message.retryOfTurnId);
|
|
7827
|
+
/* optional string input_turn_id = 9; */
|
|
7828
|
+
if (message.inputTurnId !== undefined)
|
|
7829
|
+
writer.tag(9, WireType.LengthDelimited).string(message.inputTurnId);
|
|
7830
|
+
/* bool can_regenerate = 10; */
|
|
7831
|
+
if (message.canRegenerate !== false)
|
|
7832
|
+
writer.tag(10, WireType.Varint).bool(message.canRegenerate);
|
|
7833
|
+
/* string origin = 11; */
|
|
7834
|
+
if (message.origin !== "")
|
|
7835
|
+
writer.tag(11, WireType.LengthDelimited).string(message.origin);
|
|
7836
|
+
let u = options.writeUnknownFields;
|
|
7837
|
+
if (u !== false)
|
|
7838
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7839
|
+
return writer;
|
|
7840
|
+
}
|
|
7841
|
+
}
|
|
7842
|
+
/**
|
|
7843
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationTurn
|
|
7844
|
+
*/
|
|
7845
|
+
export const LocalAppConversationTurn = new LocalAppConversationTurn$Type();
|
|
7846
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7847
|
+
class LocalAppConversationAction$Type extends MessageType {
|
|
7848
|
+
constructor() {
|
|
7849
|
+
super("nimi.runtime.v1.LocalAppConversationAction", [
|
|
7850
|
+
{ no: 1, name: "action_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7851
|
+
{ no: 2, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7852
|
+
{ no: 3, name: "capability_contract", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7853
|
+
{ no: 4, name: "status", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppConversationActionStatus", LocalAppConversationActionStatus, "LOCAL_APP_CONVERSATION_ACTION_STATUS_"] },
|
|
7854
|
+
{ no: 5, name: "projection_message_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7855
|
+
{ no: 6, name: "artifact_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7856
|
+
{ no: 7, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] },
|
|
7857
|
+
{ no: 8, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
7858
|
+
]);
|
|
7859
|
+
}
|
|
7860
|
+
create(value) {
|
|
7861
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
7862
|
+
message.actionId = "";
|
|
7863
|
+
message.turnId = "";
|
|
7864
|
+
message.capabilityContract = "";
|
|
7865
|
+
message.status = 0;
|
|
7866
|
+
message.reasonCode = 0;
|
|
7867
|
+
if (value !== undefined)
|
|
7868
|
+
reflectionMergePartial(this, message, value);
|
|
7869
|
+
return message;
|
|
7870
|
+
}
|
|
7871
|
+
internalBinaryRead(reader, length, options, target) {
|
|
7872
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
7873
|
+
while (reader.pos < end) {
|
|
7874
|
+
let [fieldNo, wireType] = reader.tag();
|
|
7875
|
+
switch (fieldNo) {
|
|
7876
|
+
case /* string action_id */ 1:
|
|
7877
|
+
message.actionId = reader.string();
|
|
7878
|
+
break;
|
|
7879
|
+
case /* string turn_id */ 2:
|
|
7880
|
+
message.turnId = reader.string();
|
|
7881
|
+
break;
|
|
7882
|
+
case /* string capability_contract */ 3:
|
|
7883
|
+
message.capabilityContract = reader.string();
|
|
7884
|
+
break;
|
|
7885
|
+
case /* nimi.runtime.v1.LocalAppConversationActionStatus status */ 4:
|
|
7886
|
+
message.status = reader.int32();
|
|
7887
|
+
break;
|
|
7888
|
+
case /* optional string projection_message_id */ 5:
|
|
7889
|
+
message.projectionMessageId = reader.string();
|
|
7890
|
+
break;
|
|
7891
|
+
case /* optional string artifact_id */ 6:
|
|
7892
|
+
message.artifactId = reader.string();
|
|
7893
|
+
break;
|
|
7894
|
+
case /* nimi.runtime.v1.ReasonCode reason_code */ 7:
|
|
7895
|
+
message.reasonCode = reader.int32();
|
|
7896
|
+
break;
|
|
7897
|
+
case /* optional string message */ 8:
|
|
7898
|
+
message.message = reader.string();
|
|
7899
|
+
break;
|
|
7900
|
+
default:
|
|
7901
|
+
let u = options.readUnknownField;
|
|
7902
|
+
if (u === "throw")
|
|
7903
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
7904
|
+
let d = reader.skip(wireType);
|
|
7905
|
+
if (u !== false)
|
|
7906
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
7907
|
+
}
|
|
7908
|
+
}
|
|
7909
|
+
return message;
|
|
7910
|
+
}
|
|
7911
|
+
internalBinaryWrite(message, writer, options) {
|
|
7912
|
+
/* string action_id = 1; */
|
|
7913
|
+
if (message.actionId !== "")
|
|
7914
|
+
writer.tag(1, WireType.LengthDelimited).string(message.actionId);
|
|
7915
|
+
/* string turn_id = 2; */
|
|
7916
|
+
if (message.turnId !== "")
|
|
7917
|
+
writer.tag(2, WireType.LengthDelimited).string(message.turnId);
|
|
7918
|
+
/* string capability_contract = 3; */
|
|
7919
|
+
if (message.capabilityContract !== "")
|
|
7920
|
+
writer.tag(3, WireType.LengthDelimited).string(message.capabilityContract);
|
|
7921
|
+
/* nimi.runtime.v1.LocalAppConversationActionStatus status = 4; */
|
|
7922
|
+
if (message.status !== 0)
|
|
7923
|
+
writer.tag(4, WireType.Varint).int32(message.status);
|
|
7924
|
+
/* optional string projection_message_id = 5; */
|
|
7925
|
+
if (message.projectionMessageId !== undefined)
|
|
7926
|
+
writer.tag(5, WireType.LengthDelimited).string(message.projectionMessageId);
|
|
7927
|
+
/* optional string artifact_id = 6; */
|
|
7928
|
+
if (message.artifactId !== undefined)
|
|
7929
|
+
writer.tag(6, WireType.LengthDelimited).string(message.artifactId);
|
|
7930
|
+
/* nimi.runtime.v1.ReasonCode reason_code = 7; */
|
|
7931
|
+
if (message.reasonCode !== 0)
|
|
7932
|
+
writer.tag(7, WireType.Varint).int32(message.reasonCode);
|
|
7933
|
+
/* optional string message = 8; */
|
|
7934
|
+
if (message.message !== undefined)
|
|
7935
|
+
writer.tag(8, WireType.LengthDelimited).string(message.message);
|
|
7936
|
+
let u = options.writeUnknownFields;
|
|
7937
|
+
if (u !== false)
|
|
7938
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7939
|
+
return writer;
|
|
7940
|
+
}
|
|
7941
|
+
}
|
|
7942
|
+
/**
|
|
7943
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationAction
|
|
7944
|
+
*/
|
|
7945
|
+
export const LocalAppConversationAction = new LocalAppConversationAction$Type();
|
|
7946
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7947
|
+
class LocalAppConversationVoice$Type extends MessageType {
|
|
7948
|
+
constructor() {
|
|
7949
|
+
super("nimi.runtime.v1.LocalAppConversationVoice", [
|
|
7950
|
+
{ no: 1, name: "voice_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7951
|
+
{ no: 2, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7952
|
+
{ no: 3, name: "message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7953
|
+
{ no: 4, name: "state", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppConversationVoiceState", LocalAppConversationVoiceState, "LOCAL_APP_CONVERSATION_VOICE_STATE_"] },
|
|
7954
|
+
{ no: 5, name: "artifact_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7955
|
+
{ no: 6, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] },
|
|
7956
|
+
{ no: 7, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
7957
|
+
]);
|
|
7958
|
+
}
|
|
7959
|
+
create(value) {
|
|
7960
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
7961
|
+
message.voiceId = "";
|
|
7962
|
+
message.turnId = "";
|
|
7963
|
+
message.messageId = "";
|
|
7964
|
+
message.state = 0;
|
|
7965
|
+
message.reasonCode = 0;
|
|
7966
|
+
if (value !== undefined)
|
|
7967
|
+
reflectionMergePartial(this, message, value);
|
|
7968
|
+
return message;
|
|
7969
|
+
}
|
|
7970
|
+
internalBinaryRead(reader, length, options, target) {
|
|
7971
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
7972
|
+
while (reader.pos < end) {
|
|
7973
|
+
let [fieldNo, wireType] = reader.tag();
|
|
7974
|
+
switch (fieldNo) {
|
|
7975
|
+
case /* string voice_id */ 1:
|
|
7976
|
+
message.voiceId = reader.string();
|
|
7977
|
+
break;
|
|
7978
|
+
case /* string turn_id */ 2:
|
|
7979
|
+
message.turnId = reader.string();
|
|
7980
|
+
break;
|
|
7981
|
+
case /* string message_id */ 3:
|
|
7982
|
+
message.messageId = reader.string();
|
|
7983
|
+
break;
|
|
7984
|
+
case /* nimi.runtime.v1.LocalAppConversationVoiceState state */ 4:
|
|
7985
|
+
message.state = reader.int32();
|
|
7986
|
+
break;
|
|
7987
|
+
case /* optional string artifact_id */ 5:
|
|
7988
|
+
message.artifactId = reader.string();
|
|
7989
|
+
break;
|
|
7990
|
+
case /* nimi.runtime.v1.ReasonCode reason_code */ 6:
|
|
7991
|
+
message.reasonCode = reader.int32();
|
|
7992
|
+
break;
|
|
7993
|
+
case /* optional string message */ 7:
|
|
7994
|
+
message.message = reader.string();
|
|
7995
|
+
break;
|
|
7996
|
+
default:
|
|
7997
|
+
let u = options.readUnknownField;
|
|
7998
|
+
if (u === "throw")
|
|
7999
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
8000
|
+
let d = reader.skip(wireType);
|
|
8001
|
+
if (u !== false)
|
|
8002
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
8003
|
+
}
|
|
8004
|
+
}
|
|
8005
|
+
return message;
|
|
8006
|
+
}
|
|
8007
|
+
internalBinaryWrite(message, writer, options) {
|
|
8008
|
+
/* string voice_id = 1; */
|
|
8009
|
+
if (message.voiceId !== "")
|
|
8010
|
+
writer.tag(1, WireType.LengthDelimited).string(message.voiceId);
|
|
8011
|
+
/* string turn_id = 2; */
|
|
8012
|
+
if (message.turnId !== "")
|
|
8013
|
+
writer.tag(2, WireType.LengthDelimited).string(message.turnId);
|
|
8014
|
+
/* string message_id = 3; */
|
|
8015
|
+
if (message.messageId !== "")
|
|
8016
|
+
writer.tag(3, WireType.LengthDelimited).string(message.messageId);
|
|
8017
|
+
/* nimi.runtime.v1.LocalAppConversationVoiceState state = 4; */
|
|
8018
|
+
if (message.state !== 0)
|
|
8019
|
+
writer.tag(4, WireType.Varint).int32(message.state);
|
|
8020
|
+
/* optional string artifact_id = 5; */
|
|
8021
|
+
if (message.artifactId !== undefined)
|
|
8022
|
+
writer.tag(5, WireType.LengthDelimited).string(message.artifactId);
|
|
8023
|
+
/* nimi.runtime.v1.ReasonCode reason_code = 6; */
|
|
8024
|
+
if (message.reasonCode !== 0)
|
|
8025
|
+
writer.tag(6, WireType.Varint).int32(message.reasonCode);
|
|
8026
|
+
/* optional string message = 7; */
|
|
8027
|
+
if (message.message !== undefined)
|
|
8028
|
+
writer.tag(7, WireType.LengthDelimited).string(message.message);
|
|
8029
|
+
let u = options.writeUnknownFields;
|
|
8030
|
+
if (u !== false)
|
|
8031
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
8032
|
+
return writer;
|
|
8033
|
+
}
|
|
8034
|
+
}
|
|
8035
|
+
/**
|
|
8036
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationVoice
|
|
8037
|
+
*/
|
|
8038
|
+
export const LocalAppConversationVoice = new LocalAppConversationVoice$Type();
|
|
8039
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
8040
|
+
class LocalAppConversationFollowUp$Type extends MessageType {
|
|
8041
|
+
constructor() {
|
|
8042
|
+
super("nimi.runtime.v1.LocalAppConversationFollowUp", [
|
|
8043
|
+
{ no: 1, name: "task_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
8044
|
+
{ no: 2, name: "revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
8045
|
+
{ no: 3, name: "scheduled_for", kind: "message", T: () => Timestamp },
|
|
8046
|
+
{ no: 4, name: "source_turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
8047
|
+
]);
|
|
8048
|
+
}
|
|
8049
|
+
create(value) {
|
|
8050
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
8051
|
+
message.taskId = "";
|
|
8052
|
+
message.revision = "0";
|
|
8053
|
+
message.sourceTurnId = "";
|
|
8054
|
+
if (value !== undefined)
|
|
8055
|
+
reflectionMergePartial(this, message, value);
|
|
8056
|
+
return message;
|
|
8057
|
+
}
|
|
8058
|
+
internalBinaryRead(reader, length, options, target) {
|
|
8059
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
8060
|
+
while (reader.pos < end) {
|
|
8061
|
+
let [fieldNo, wireType] = reader.tag();
|
|
8062
|
+
switch (fieldNo) {
|
|
8063
|
+
case /* string task_id */ 1:
|
|
8064
|
+
message.taskId = reader.string();
|
|
8065
|
+
break;
|
|
8066
|
+
case /* uint64 revision */ 2:
|
|
8067
|
+
message.revision = reader.uint64().toString();
|
|
8068
|
+
break;
|
|
8069
|
+
case /* google.protobuf.Timestamp scheduled_for */ 3:
|
|
8070
|
+
message.scheduledFor = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.scheduledFor);
|
|
8071
|
+
break;
|
|
8072
|
+
case /* string source_turn_id */ 4:
|
|
8073
|
+
message.sourceTurnId = reader.string();
|
|
8074
|
+
break;
|
|
8075
|
+
default:
|
|
8076
|
+
let u = options.readUnknownField;
|
|
8077
|
+
if (u === "throw")
|
|
8078
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
8079
|
+
let d = reader.skip(wireType);
|
|
8080
|
+
if (u !== false)
|
|
8081
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
8082
|
+
}
|
|
8083
|
+
}
|
|
8084
|
+
return message;
|
|
8085
|
+
}
|
|
8086
|
+
internalBinaryWrite(message, writer, options) {
|
|
8087
|
+
/* string task_id = 1; */
|
|
8088
|
+
if (message.taskId !== "")
|
|
8089
|
+
writer.tag(1, WireType.LengthDelimited).string(message.taskId);
|
|
8090
|
+
/* uint64 revision = 2; */
|
|
8091
|
+
if (message.revision !== "0")
|
|
8092
|
+
writer.tag(2, WireType.Varint).uint64(message.revision);
|
|
8093
|
+
/* google.protobuf.Timestamp scheduled_for = 3; */
|
|
8094
|
+
if (message.scheduledFor)
|
|
8095
|
+
Timestamp.internalBinaryWrite(message.scheduledFor, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
8096
|
+
/* string source_turn_id = 4; */
|
|
8097
|
+
if (message.sourceTurnId !== "")
|
|
8098
|
+
writer.tag(4, WireType.LengthDelimited).string(message.sourceTurnId);
|
|
8099
|
+
let u = options.writeUnknownFields;
|
|
8100
|
+
if (u !== false)
|
|
8101
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
8102
|
+
return writer;
|
|
8103
|
+
}
|
|
8104
|
+
}
|
|
8105
|
+
/**
|
|
8106
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationFollowUp
|
|
8107
|
+
*/
|
|
8108
|
+
export const LocalAppConversationFollowUp = new LocalAppConversationFollowUp$Type();
|
|
8109
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
8110
|
+
class LocalAppConversationState$Type extends MessageType {
|
|
8111
|
+
constructor() {
|
|
8112
|
+
super("nimi.runtime.v1.LocalAppConversationState", [
|
|
8113
|
+
{ no: 6, name: "free_contact_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
8114
|
+
{ no: 3, name: "max_follow_up_turns", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
8115
|
+
{ no: 4, name: "pending_follow_up", kind: "message", T: () => LocalAppConversationFollowUp },
|
|
8116
|
+
{ no: 5, name: "text_turn_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
8117
|
+
]);
|
|
8118
|
+
}
|
|
8119
|
+
create(value) {
|
|
8120
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
8121
|
+
message.freeContactEnabled = false;
|
|
8122
|
+
message.maxFollowUpTurns = 0;
|
|
8123
|
+
if (value !== undefined)
|
|
8124
|
+
reflectionMergePartial(this, message, value);
|
|
8125
|
+
return message;
|
|
8126
|
+
}
|
|
8127
|
+
internalBinaryRead(reader, length, options, target) {
|
|
8128
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
8129
|
+
while (reader.pos < end) {
|
|
8130
|
+
let [fieldNo, wireType] = reader.tag();
|
|
8131
|
+
switch (fieldNo) {
|
|
8132
|
+
case /* bool free_contact_enabled */ 6:
|
|
8133
|
+
message.freeContactEnabled = reader.bool();
|
|
8134
|
+
break;
|
|
8135
|
+
case /* uint32 max_follow_up_turns */ 3:
|
|
8136
|
+
message.maxFollowUpTurns = reader.uint32();
|
|
8137
|
+
break;
|
|
8138
|
+
case /* nimi.runtime.v1.LocalAppConversationFollowUp pending_follow_up */ 4:
|
|
8139
|
+
message.pendingFollowUp = LocalAppConversationFollowUp.internalBinaryRead(reader, reader.uint32(), options, message.pendingFollowUp);
|
|
8140
|
+
break;
|
|
8141
|
+
case /* optional string text_turn_id */ 5:
|
|
8142
|
+
message.textTurnId = reader.string();
|
|
8143
|
+
break;
|
|
8144
|
+
default:
|
|
8145
|
+
let u = options.readUnknownField;
|
|
8146
|
+
if (u === "throw")
|
|
8147
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
8148
|
+
let d = reader.skip(wireType);
|
|
8149
|
+
if (u !== false)
|
|
8150
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
8151
|
+
}
|
|
8152
|
+
}
|
|
8153
|
+
return message;
|
|
8154
|
+
}
|
|
8155
|
+
internalBinaryWrite(message, writer, options) {
|
|
8156
|
+
/* uint32 max_follow_up_turns = 3; */
|
|
8157
|
+
if (message.maxFollowUpTurns !== 0)
|
|
8158
|
+
writer.tag(3, WireType.Varint).uint32(message.maxFollowUpTurns);
|
|
8159
|
+
/* nimi.runtime.v1.LocalAppConversationFollowUp pending_follow_up = 4; */
|
|
8160
|
+
if (message.pendingFollowUp)
|
|
8161
|
+
LocalAppConversationFollowUp.internalBinaryWrite(message.pendingFollowUp, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
8162
|
+
/* optional string text_turn_id = 5; */
|
|
8163
|
+
if (message.textTurnId !== undefined)
|
|
8164
|
+
writer.tag(5, WireType.LengthDelimited).string(message.textTurnId);
|
|
8165
|
+
/* bool free_contact_enabled = 6; */
|
|
8166
|
+
if (message.freeContactEnabled !== false)
|
|
8167
|
+
writer.tag(6, WireType.Varint).bool(message.freeContactEnabled);
|
|
7322
8168
|
let u = options.writeUnknownFields;
|
|
7323
8169
|
if (u !== false)
|
|
7324
8170
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7326,30 +8172,25 @@ class LocalAppConversationTurn$Type extends MessageType {
|
|
|
7326
8172
|
}
|
|
7327
8173
|
}
|
|
7328
8174
|
/**
|
|
7329
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
8175
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationState
|
|
7330
8176
|
*/
|
|
7331
|
-
export const
|
|
8177
|
+
export const LocalAppConversationState = new LocalAppConversationState$Type();
|
|
7332
8178
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7333
|
-
class
|
|
8179
|
+
class CancelLocalAppConversationFollowUpRequest$Type extends MessageType {
|
|
7334
8180
|
constructor() {
|
|
7335
|
-
super("nimi.runtime.v1.
|
|
7336
|
-
{ no: 1, name: "
|
|
7337
|
-
{ no: 2, name: "
|
|
7338
|
-
{ no: 3, name: "
|
|
7339
|
-
{ no: 4, name: "
|
|
7340
|
-
{ no: 5, name: "projection_message_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7341
|
-
{ no: 6, name: "artifact_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7342
|
-
{ no: 7, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] },
|
|
7343
|
-
{ no: 8, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
8181
|
+
super("nimi.runtime.v1.CancelLocalAppConversationFollowUpRequest", [
|
|
8182
|
+
{ no: 1, name: "agent_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
8183
|
+
{ no: 2, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
8184
|
+
{ no: 3, name: "task_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
8185
|
+
{ no: 4, name: "expected_revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
7344
8186
|
]);
|
|
7345
8187
|
}
|
|
7346
8188
|
create(value) {
|
|
7347
8189
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7348
|
-
message.
|
|
7349
|
-
message.
|
|
7350
|
-
message.
|
|
7351
|
-
message.
|
|
7352
|
-
message.reasonCode = 0;
|
|
8190
|
+
message.agentHandle = "";
|
|
8191
|
+
message.conversationAnchorId = "";
|
|
8192
|
+
message.taskId = "";
|
|
8193
|
+
message.expectedRevision = "0";
|
|
7353
8194
|
if (value !== undefined)
|
|
7354
8195
|
reflectionMergePartial(this, message, value);
|
|
7355
8196
|
return message;
|
|
@@ -7359,29 +8200,17 @@ class LocalAppConversationAction$Type extends MessageType {
|
|
|
7359
8200
|
while (reader.pos < end) {
|
|
7360
8201
|
let [fieldNo, wireType] = reader.tag();
|
|
7361
8202
|
switch (fieldNo) {
|
|
7362
|
-
case /* string
|
|
7363
|
-
message.
|
|
7364
|
-
break;
|
|
7365
|
-
case /* string turn_id */ 2:
|
|
7366
|
-
message.turnId = reader.string();
|
|
7367
|
-
break;
|
|
7368
|
-
case /* string capability_contract */ 3:
|
|
7369
|
-
message.capabilityContract = reader.string();
|
|
7370
|
-
break;
|
|
7371
|
-
case /* nimi.runtime.v1.LocalAppConversationActionStatus status */ 4:
|
|
7372
|
-
message.status = reader.int32();
|
|
7373
|
-
break;
|
|
7374
|
-
case /* optional string projection_message_id */ 5:
|
|
7375
|
-
message.projectionMessageId = reader.string();
|
|
8203
|
+
case /* string agent_handle */ 1:
|
|
8204
|
+
message.agentHandle = reader.string();
|
|
7376
8205
|
break;
|
|
7377
|
-
case /*
|
|
7378
|
-
message.
|
|
8206
|
+
case /* string conversation_anchor_id */ 2:
|
|
8207
|
+
message.conversationAnchorId = reader.string();
|
|
7379
8208
|
break;
|
|
7380
|
-
case /*
|
|
7381
|
-
message.
|
|
8209
|
+
case /* string task_id */ 3:
|
|
8210
|
+
message.taskId = reader.string();
|
|
7382
8211
|
break;
|
|
7383
|
-
case /*
|
|
7384
|
-
message.
|
|
8212
|
+
case /* uint64 expected_revision */ 4:
|
|
8213
|
+
message.expectedRevision = reader.uint64().toString();
|
|
7385
8214
|
break;
|
|
7386
8215
|
default:
|
|
7387
8216
|
let u = options.readUnknownField;
|
|
@@ -7395,30 +8224,18 @@ class LocalAppConversationAction$Type extends MessageType {
|
|
|
7395
8224
|
return message;
|
|
7396
8225
|
}
|
|
7397
8226
|
internalBinaryWrite(message, writer, options) {
|
|
7398
|
-
/* string
|
|
7399
|
-
if (message.
|
|
7400
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
7401
|
-
/* string
|
|
7402
|
-
if (message.
|
|
7403
|
-
writer.tag(2, WireType.LengthDelimited).string(message.
|
|
7404
|
-
/* string
|
|
7405
|
-
if (message.
|
|
7406
|
-
writer.tag(3, WireType.LengthDelimited).string(message.
|
|
7407
|
-
/*
|
|
7408
|
-
if (message.
|
|
7409
|
-
writer.tag(4, WireType.Varint).
|
|
7410
|
-
/* optional string projection_message_id = 5; */
|
|
7411
|
-
if (message.projectionMessageId !== undefined)
|
|
7412
|
-
writer.tag(5, WireType.LengthDelimited).string(message.projectionMessageId);
|
|
7413
|
-
/* optional string artifact_id = 6; */
|
|
7414
|
-
if (message.artifactId !== undefined)
|
|
7415
|
-
writer.tag(6, WireType.LengthDelimited).string(message.artifactId);
|
|
7416
|
-
/* nimi.runtime.v1.ReasonCode reason_code = 7; */
|
|
7417
|
-
if (message.reasonCode !== 0)
|
|
7418
|
-
writer.tag(7, WireType.Varint).int32(message.reasonCode);
|
|
7419
|
-
/* optional string message = 8; */
|
|
7420
|
-
if (message.message !== undefined)
|
|
7421
|
-
writer.tag(8, WireType.LengthDelimited).string(message.message);
|
|
8227
|
+
/* string agent_handle = 1; */
|
|
8228
|
+
if (message.agentHandle !== "")
|
|
8229
|
+
writer.tag(1, WireType.LengthDelimited).string(message.agentHandle);
|
|
8230
|
+
/* string conversation_anchor_id = 2; */
|
|
8231
|
+
if (message.conversationAnchorId !== "")
|
|
8232
|
+
writer.tag(2, WireType.LengthDelimited).string(message.conversationAnchorId);
|
|
8233
|
+
/* string task_id = 3; */
|
|
8234
|
+
if (message.taskId !== "")
|
|
8235
|
+
writer.tag(3, WireType.LengthDelimited).string(message.taskId);
|
|
8236
|
+
/* uint64 expected_revision = 4; */
|
|
8237
|
+
if (message.expectedRevision !== "0")
|
|
8238
|
+
writer.tag(4, WireType.Varint).uint64(message.expectedRevision);
|
|
7422
8239
|
let u = options.writeUnknownFields;
|
|
7423
8240
|
if (u !== false)
|
|
7424
8241
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7426,29 +8243,18 @@ class LocalAppConversationAction$Type extends MessageType {
|
|
|
7426
8243
|
}
|
|
7427
8244
|
}
|
|
7428
8245
|
/**
|
|
7429
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
8246
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.CancelLocalAppConversationFollowUpRequest
|
|
7430
8247
|
*/
|
|
7431
|
-
export const
|
|
8248
|
+
export const CancelLocalAppConversationFollowUpRequest = new CancelLocalAppConversationFollowUpRequest$Type();
|
|
7432
8249
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7433
|
-
class
|
|
8250
|
+
class CancelLocalAppConversationFollowUpResponse$Type extends MessageType {
|
|
7434
8251
|
constructor() {
|
|
7435
|
-
super("nimi.runtime.v1.
|
|
7436
|
-
{ no: 1, name: "
|
|
7437
|
-
{ no: 2, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7438
|
-
{ no: 3, name: "message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7439
|
-
{ no: 4, name: "state", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppConversationVoiceState", LocalAppConversationVoiceState, "LOCAL_APP_CONVERSATION_VOICE_STATE_"] },
|
|
7440
|
-
{ no: 5, name: "artifact_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7441
|
-
{ no: 6, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] },
|
|
7442
|
-
{ no: 7, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
8252
|
+
super("nimi.runtime.v1.CancelLocalAppConversationFollowUpResponse", [
|
|
8253
|
+
{ no: 1, name: "state", kind: "message", T: () => LocalAppConversationState }
|
|
7443
8254
|
]);
|
|
7444
8255
|
}
|
|
7445
8256
|
create(value) {
|
|
7446
8257
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7447
|
-
message.voiceId = "";
|
|
7448
|
-
message.turnId = "";
|
|
7449
|
-
message.messageId = "";
|
|
7450
|
-
message.state = 0;
|
|
7451
|
-
message.reasonCode = 0;
|
|
7452
8258
|
if (value !== undefined)
|
|
7453
8259
|
reflectionMergePartial(this, message, value);
|
|
7454
8260
|
return message;
|
|
@@ -7458,26 +8264,8 @@ class LocalAppConversationVoice$Type extends MessageType {
|
|
|
7458
8264
|
while (reader.pos < end) {
|
|
7459
8265
|
let [fieldNo, wireType] = reader.tag();
|
|
7460
8266
|
switch (fieldNo) {
|
|
7461
|
-
case /*
|
|
7462
|
-
message.
|
|
7463
|
-
break;
|
|
7464
|
-
case /* string turn_id */ 2:
|
|
7465
|
-
message.turnId = reader.string();
|
|
7466
|
-
break;
|
|
7467
|
-
case /* string message_id */ 3:
|
|
7468
|
-
message.messageId = reader.string();
|
|
7469
|
-
break;
|
|
7470
|
-
case /* nimi.runtime.v1.LocalAppConversationVoiceState state */ 4:
|
|
7471
|
-
message.state = reader.int32();
|
|
7472
|
-
break;
|
|
7473
|
-
case /* optional string artifact_id */ 5:
|
|
7474
|
-
message.artifactId = reader.string();
|
|
7475
|
-
break;
|
|
7476
|
-
case /* nimi.runtime.v1.ReasonCode reason_code */ 6:
|
|
7477
|
-
message.reasonCode = reader.int32();
|
|
7478
|
-
break;
|
|
7479
|
-
case /* optional string message */ 7:
|
|
7480
|
-
message.message = reader.string();
|
|
8267
|
+
case /* nimi.runtime.v1.LocalAppConversationState state */ 1:
|
|
8268
|
+
message.state = LocalAppConversationState.internalBinaryRead(reader, reader.uint32(), options, message.state);
|
|
7481
8269
|
break;
|
|
7482
8270
|
default:
|
|
7483
8271
|
let u = options.readUnknownField;
|
|
@@ -7491,27 +8279,9 @@ class LocalAppConversationVoice$Type extends MessageType {
|
|
|
7491
8279
|
return message;
|
|
7492
8280
|
}
|
|
7493
8281
|
internalBinaryWrite(message, writer, options) {
|
|
7494
|
-
/*
|
|
7495
|
-
if (message.
|
|
7496
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
7497
|
-
/* string turn_id = 2; */
|
|
7498
|
-
if (message.turnId !== "")
|
|
7499
|
-
writer.tag(2, WireType.LengthDelimited).string(message.turnId);
|
|
7500
|
-
/* string message_id = 3; */
|
|
7501
|
-
if (message.messageId !== "")
|
|
7502
|
-
writer.tag(3, WireType.LengthDelimited).string(message.messageId);
|
|
7503
|
-
/* nimi.runtime.v1.LocalAppConversationVoiceState state = 4; */
|
|
7504
|
-
if (message.state !== 0)
|
|
7505
|
-
writer.tag(4, WireType.Varint).int32(message.state);
|
|
7506
|
-
/* optional string artifact_id = 5; */
|
|
7507
|
-
if (message.artifactId !== undefined)
|
|
7508
|
-
writer.tag(5, WireType.LengthDelimited).string(message.artifactId);
|
|
7509
|
-
/* nimi.runtime.v1.ReasonCode reason_code = 6; */
|
|
7510
|
-
if (message.reasonCode !== 0)
|
|
7511
|
-
writer.tag(6, WireType.Varint).int32(message.reasonCode);
|
|
7512
|
-
/* optional string message = 7; */
|
|
7513
|
-
if (message.message !== undefined)
|
|
7514
|
-
writer.tag(7, WireType.LengthDelimited).string(message.message);
|
|
8282
|
+
/* nimi.runtime.v1.LocalAppConversationState state = 1; */
|
|
8283
|
+
if (message.state)
|
|
8284
|
+
LocalAppConversationState.internalBinaryWrite(message.state, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
7515
8285
|
let u = options.writeUnknownFields;
|
|
7516
8286
|
if (u !== false)
|
|
7517
8287
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7519,9 +8289,9 @@ class LocalAppConversationVoice$Type extends MessageType {
|
|
|
7519
8289
|
}
|
|
7520
8290
|
}
|
|
7521
8291
|
/**
|
|
7522
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
8292
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.CancelLocalAppConversationFollowUpResponse
|
|
7523
8293
|
*/
|
|
7524
|
-
export const
|
|
8294
|
+
export const CancelLocalAppConversationFollowUpResponse = new CancelLocalAppConversationFollowUpResponse$Type();
|
|
7525
8295
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7526
8296
|
class LocalAppConversationSnapshot$Type extends MessageType {
|
|
7527
8297
|
constructor() {
|
|
@@ -7532,7 +8302,8 @@ class LocalAppConversationSnapshot$Type extends MessageType {
|
|
|
7532
8302
|
{ no: 5, name: "through_sequence", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
7533
8303
|
{ no: 6, name: "turns", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationTurn },
|
|
7534
8304
|
{ no: 7, name: "actions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationAction },
|
|
7535
|
-
{ no: 8, name: "voices", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationVoice }
|
|
8305
|
+
{ no: 8, name: "voices", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationVoice },
|
|
8306
|
+
{ no: 9, name: "state", kind: "message", T: () => LocalAppConversationState }
|
|
7536
8307
|
]);
|
|
7537
8308
|
}
|
|
7538
8309
|
create(value) {
|
|
@@ -7574,6 +8345,9 @@ class LocalAppConversationSnapshot$Type extends MessageType {
|
|
|
7574
8345
|
case /* repeated nimi.runtime.v1.LocalAppConversationVoice voices */ 8:
|
|
7575
8346
|
message.voices.push(LocalAppConversationVoice.internalBinaryRead(reader, reader.uint32(), options));
|
|
7576
8347
|
break;
|
|
8348
|
+
case /* nimi.runtime.v1.LocalAppConversationState state */ 9:
|
|
8349
|
+
message.state = LocalAppConversationState.internalBinaryRead(reader, reader.uint32(), options, message.state);
|
|
8350
|
+
break;
|
|
7577
8351
|
default:
|
|
7578
8352
|
let u = options.readUnknownField;
|
|
7579
8353
|
if (u === "throw")
|
|
@@ -7607,6 +8381,9 @@ class LocalAppConversationSnapshot$Type extends MessageType {
|
|
|
7607
8381
|
/* repeated nimi.runtime.v1.LocalAppConversationVoice voices = 8; */
|
|
7608
8382
|
for (let i = 0; i < message.voices.length; i++)
|
|
7609
8383
|
LocalAppConversationVoice.internalBinaryWrite(message.voices[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
8384
|
+
/* nimi.runtime.v1.LocalAppConversationState state = 9; */
|
|
8385
|
+
if (message.state)
|
|
8386
|
+
LocalAppConversationState.internalBinaryWrite(message.state, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
7610
8387
|
let u = options.writeUnknownFields;
|
|
7611
8388
|
if (u !== false)
|
|
7612
8389
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7667,12 +8444,15 @@ export const GetLocalAppConversationSnapshotResponse = new GetLocalAppConversati
|
|
|
7667
8444
|
class LocalAppConversationTurnAccepted$Type extends MessageType {
|
|
7668
8445
|
constructor() {
|
|
7669
8446
|
super("nimi.runtime.v1.LocalAppConversationTurnAccepted", [
|
|
7670
|
-
{ no: 1, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
8447
|
+
{ no: 1, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
8448
|
+
{ no: 3, name: "request_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
8449
|
+
{ no: 4, name: "origin", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
7671
8450
|
]);
|
|
7672
8451
|
}
|
|
7673
8452
|
create(value) {
|
|
7674
8453
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7675
8454
|
message.turnId = "";
|
|
8455
|
+
message.origin = "";
|
|
7676
8456
|
if (value !== undefined)
|
|
7677
8457
|
reflectionMergePartial(this, message, value);
|
|
7678
8458
|
return message;
|
|
@@ -7685,6 +8465,12 @@ class LocalAppConversationTurnAccepted$Type extends MessageType {
|
|
|
7685
8465
|
case /* string turn_id */ 1:
|
|
7686
8466
|
message.turnId = reader.string();
|
|
7687
8467
|
break;
|
|
8468
|
+
case /* optional string request_id */ 3:
|
|
8469
|
+
message.requestId = reader.string();
|
|
8470
|
+
break;
|
|
8471
|
+
case /* string origin */ 4:
|
|
8472
|
+
message.origin = reader.string();
|
|
8473
|
+
break;
|
|
7688
8474
|
default:
|
|
7689
8475
|
let u = options.readUnknownField;
|
|
7690
8476
|
if (u === "throw")
|
|
@@ -7700,6 +8486,12 @@ class LocalAppConversationTurnAccepted$Type extends MessageType {
|
|
|
7700
8486
|
/* string turn_id = 1; */
|
|
7701
8487
|
if (message.turnId !== "")
|
|
7702
8488
|
writer.tag(1, WireType.LengthDelimited).string(message.turnId);
|
|
8489
|
+
/* optional string request_id = 3; */
|
|
8490
|
+
if (message.requestId !== undefined)
|
|
8491
|
+
writer.tag(3, WireType.LengthDelimited).string(message.requestId);
|
|
8492
|
+
/* string origin = 4; */
|
|
8493
|
+
if (message.origin !== "")
|
|
8494
|
+
writer.tag(4, WireType.LengthDelimited).string(message.origin);
|
|
7703
8495
|
let u = options.writeUnknownFields;
|
|
7704
8496
|
if (u !== false)
|
|
7705
8497
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7918,13 +8710,16 @@ class LocalAppConversationTurnCompleted$Type extends MessageType {
|
|
|
7918
8710
|
constructor() {
|
|
7919
8711
|
super("nimi.runtime.v1.LocalAppConversationTurnCompleted", [
|
|
7920
8712
|
{ no: 1, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7921
|
-
{ no: 2, name: "terminal_reason", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
8713
|
+
{ no: 2, name: "terminal_reason", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
8714
|
+
{ no: 3, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] },
|
|
8715
|
+
{ no: 4, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
7922
8716
|
]);
|
|
7923
8717
|
}
|
|
7924
8718
|
create(value) {
|
|
7925
8719
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7926
8720
|
message.turnId = "";
|
|
7927
8721
|
message.terminalReason = "";
|
|
8722
|
+
message.reasonCode = 0;
|
|
7928
8723
|
if (value !== undefined)
|
|
7929
8724
|
reflectionMergePartial(this, message, value);
|
|
7930
8725
|
return message;
|
|
@@ -7940,6 +8735,12 @@ class LocalAppConversationTurnCompleted$Type extends MessageType {
|
|
|
7940
8735
|
case /* string terminal_reason */ 2:
|
|
7941
8736
|
message.terminalReason = reader.string();
|
|
7942
8737
|
break;
|
|
8738
|
+
case /* nimi.runtime.v1.ReasonCode reason_code */ 3:
|
|
8739
|
+
message.reasonCode = reader.int32();
|
|
8740
|
+
break;
|
|
8741
|
+
case /* optional string message */ 4:
|
|
8742
|
+
message.message = reader.string();
|
|
8743
|
+
break;
|
|
7943
8744
|
default:
|
|
7944
8745
|
let u = options.readUnknownField;
|
|
7945
8746
|
if (u === "throw")
|
|
@@ -7958,6 +8759,12 @@ class LocalAppConversationTurnCompleted$Type extends MessageType {
|
|
|
7958
8759
|
/* string terminal_reason = 2; */
|
|
7959
8760
|
if (message.terminalReason !== "")
|
|
7960
8761
|
writer.tag(2, WireType.LengthDelimited).string(message.terminalReason);
|
|
8762
|
+
/* nimi.runtime.v1.ReasonCode reason_code = 3; */
|
|
8763
|
+
if (message.reasonCode !== 0)
|
|
8764
|
+
writer.tag(3, WireType.Varint).int32(message.reasonCode);
|
|
8765
|
+
/* optional string message = 4; */
|
|
8766
|
+
if (message.message !== undefined)
|
|
8767
|
+
writer.tag(4, WireType.LengthDelimited).string(message.message);
|
|
7961
8768
|
let u = options.writeUnknownFields;
|
|
7962
8769
|
if (u !== false)
|
|
7963
8770
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -8464,7 +9271,8 @@ class LocalAppConversationEvent$Type extends MessageType {
|
|
|
8464
9271
|
{ no: 24, name: "text_delta", kind: "message", oneof: "event", T: () => LocalAppConversationTextDelta },
|
|
8465
9272
|
{ no: 25, name: "reasoning_status", kind: "message", oneof: "event", T: () => LocalAppConversationReasoningStatus },
|
|
8466
9273
|
{ no: 26, name: "live_action", kind: "message", oneof: "event", T: () => LocalAppConversationLiveAction },
|
|
8467
|
-
{ no: 27, name: "live_tool", kind: "message", oneof: "event", T: () => LocalAppConversationLiveTool }
|
|
9274
|
+
{ no: 27, name: "live_tool", kind: "message", oneof: "event", T: () => LocalAppConversationLiveTool },
|
|
9275
|
+
{ no: 28, name: "state_changed", kind: "message", oneof: "event", T: () => LocalAppConversationState }
|
|
8468
9276
|
]);
|
|
8469
9277
|
}
|
|
8470
9278
|
create(value) {
|
|
@@ -8589,6 +9397,12 @@ class LocalAppConversationEvent$Type extends MessageType {
|
|
|
8589
9397
|
liveTool: LocalAppConversationLiveTool.internalBinaryRead(reader, reader.uint32(), options, message.event.liveTool)
|
|
8590
9398
|
};
|
|
8591
9399
|
break;
|
|
9400
|
+
case /* nimi.runtime.v1.LocalAppConversationState state_changed */ 28:
|
|
9401
|
+
message.event = {
|
|
9402
|
+
oneofKind: "stateChanged",
|
|
9403
|
+
stateChanged: LocalAppConversationState.internalBinaryRead(reader, reader.uint32(), options, message.event.stateChanged)
|
|
9404
|
+
};
|
|
9405
|
+
break;
|
|
8592
9406
|
default:
|
|
8593
9407
|
let u = options.readUnknownField;
|
|
8594
9408
|
if (u === "throw")
|
|
@@ -8658,6 +9472,9 @@ class LocalAppConversationEvent$Type extends MessageType {
|
|
|
8658
9472
|
/* nimi.runtime.v1.LocalAppConversationLiveTool live_tool = 27; */
|
|
8659
9473
|
if (message.event.oneofKind === "liveTool")
|
|
8660
9474
|
LocalAppConversationLiveTool.internalBinaryWrite(message.event.liveTool, writer.tag(27, WireType.LengthDelimited).fork(), options).join();
|
|
9475
|
+
/* nimi.runtime.v1.LocalAppConversationState state_changed = 28; */
|
|
9476
|
+
if (message.event.oneofKind === "stateChanged")
|
|
9477
|
+
LocalAppConversationState.internalBinaryWrite(message.event.stateChanged, writer.tag(28, WireType.LengthDelimited).fork(), options).join();
|
|
8661
9478
|
let u = options.writeUnknownFields;
|
|
8662
9479
|
if (u !== false)
|
|
8663
9480
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -10206,6 +11023,98 @@ class ListPortableAIProfilesResponse$Type extends MessageType {
|
|
|
10206
11023
|
*/
|
|
10207
11024
|
export const ListPortableAIProfilesResponse = new ListPortableAIProfilesResponse$Type();
|
|
10208
11025
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
11026
|
+
class DeletePortableAIProfileRequest$Type extends MessageType {
|
|
11027
|
+
constructor() {
|
|
11028
|
+
super("nimi.runtime.v1.DeletePortableAIProfileRequest", [
|
|
11029
|
+
{ no: 1, name: "context", kind: "message", T: () => AgentRequestContext },
|
|
11030
|
+
{ no: 2, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
11031
|
+
]);
|
|
11032
|
+
}
|
|
11033
|
+
create(value) {
|
|
11034
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
11035
|
+
message.profileId = "";
|
|
11036
|
+
if (value !== undefined)
|
|
11037
|
+
reflectionMergePartial(this, message, value);
|
|
11038
|
+
return message;
|
|
11039
|
+
}
|
|
11040
|
+
internalBinaryRead(reader, length, options, target) {
|
|
11041
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
11042
|
+
while (reader.pos < end) {
|
|
11043
|
+
let [fieldNo, wireType] = reader.tag();
|
|
11044
|
+
switch (fieldNo) {
|
|
11045
|
+
case /* nimi.runtime.v1.AgentRequestContext context */ 1:
|
|
11046
|
+
message.context = AgentRequestContext.internalBinaryRead(reader, reader.uint32(), options, message.context);
|
|
11047
|
+
break;
|
|
11048
|
+
case /* string profile_id */ 2:
|
|
11049
|
+
message.profileId = reader.string();
|
|
11050
|
+
break;
|
|
11051
|
+
default:
|
|
11052
|
+
let u = options.readUnknownField;
|
|
11053
|
+
if (u === "throw")
|
|
11054
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
11055
|
+
let d = reader.skip(wireType);
|
|
11056
|
+
if (u !== false)
|
|
11057
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
11058
|
+
}
|
|
11059
|
+
}
|
|
11060
|
+
return message;
|
|
11061
|
+
}
|
|
11062
|
+
internalBinaryWrite(message, writer, options) {
|
|
11063
|
+
/* nimi.runtime.v1.AgentRequestContext context = 1; */
|
|
11064
|
+
if (message.context)
|
|
11065
|
+
AgentRequestContext.internalBinaryWrite(message.context, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
11066
|
+
/* string profile_id = 2; */
|
|
11067
|
+
if (message.profileId !== "")
|
|
11068
|
+
writer.tag(2, WireType.LengthDelimited).string(message.profileId);
|
|
11069
|
+
let u = options.writeUnknownFields;
|
|
11070
|
+
if (u !== false)
|
|
11071
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
11072
|
+
return writer;
|
|
11073
|
+
}
|
|
11074
|
+
}
|
|
11075
|
+
/**
|
|
11076
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.DeletePortableAIProfileRequest
|
|
11077
|
+
*/
|
|
11078
|
+
export const DeletePortableAIProfileRequest = new DeletePortableAIProfileRequest$Type();
|
|
11079
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
11080
|
+
class DeletePortableAIProfileResponse$Type extends MessageType {
|
|
11081
|
+
constructor() {
|
|
11082
|
+
super("nimi.runtime.v1.DeletePortableAIProfileResponse", []);
|
|
11083
|
+
}
|
|
11084
|
+
create(value) {
|
|
11085
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
11086
|
+
if (value !== undefined)
|
|
11087
|
+
reflectionMergePartial(this, message, value);
|
|
11088
|
+
return message;
|
|
11089
|
+
}
|
|
11090
|
+
internalBinaryRead(reader, length, options, target) {
|
|
11091
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
11092
|
+
while (reader.pos < end) {
|
|
11093
|
+
let [fieldNo, wireType] = reader.tag();
|
|
11094
|
+
switch (fieldNo) {
|
|
11095
|
+
default:
|
|
11096
|
+
let u = options.readUnknownField;
|
|
11097
|
+
if (u === "throw")
|
|
11098
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
11099
|
+
let d = reader.skip(wireType);
|
|
11100
|
+
if (u !== false)
|
|
11101
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
11102
|
+
}
|
|
11103
|
+
}
|
|
11104
|
+
return message;
|
|
11105
|
+
}
|
|
11106
|
+
internalBinaryWrite(message, writer, options) {
|
|
11107
|
+
let u = options.writeUnknownFields;
|
|
11108
|
+
if (u !== false)
|
|
11109
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
11110
|
+
return writer;
|
|
11111
|
+
}
|
|
11112
|
+
}
|
|
11113
|
+
/**
|
|
11114
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.DeletePortableAIProfileResponse
|
|
11115
|
+
*/
|
|
11116
|
+
export const DeletePortableAIProfileResponse = new DeletePortableAIProfileResponse$Type();
|
|
11117
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10209
11118
|
class OpenLocalAppAgentRealtimeRequest$Type extends MessageType {
|
|
10210
11119
|
constructor() {
|
|
10211
11120
|
super("nimi.runtime.v1.OpenLocalAppAgentRealtimeRequest", [
|