@nimiplatform/sdk 0.21.0 → 0.22.1
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 +78 -0
- package/README.md +161 -433
- package/dist/core/ai/embeddings.d.ts +1 -0
- package/dist/core/ai/embeddings.d.ts.map +1 -1
- package/dist/core/ai/embeddings.js +3 -0
- package/dist/core/ai/embeddings.js.map +1 -1
- package/dist/core/app/desktop-open.d.ts +8 -5
- package/dist/core/app/desktop-open.d.ts.map +1 -1
- package/dist/core/app/desktop-open.js +20 -16
- package/dist/core/app/desktop-open.js.map +1 -1
- package/dist/core/app/index.d.ts +4 -2
- package/dist/core/app/index.d.ts.map +1 -1
- package/dist/core/app/index.js +1 -1
- package/dist/core/app/index.js.map +1 -1
- package/dist/core/app/local-app-agent-introduction.d.ts +3 -0
- package/dist/core/app/local-app-agent-introduction.d.ts.map +1 -1
- package/dist/core/app/local-app-agent-introduction.js +35 -5
- package/dist/core/app/local-app-agent-introduction.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-activity-view.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-activity-view.js +4 -2
- package/dist/core/app/local-app-runtime-platform-activity-view.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-activity.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-activity.js +5 -1
- package/dist/core/app/local-app-runtime-platform-activity.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 +121 -19
- package/dist/core/app/local-app-runtime-platform-configure.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-conversation.d.ts +67 -6
- package/dist/core/app/local-app-runtime-platform-conversation.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-conversation.js +162 -20
- package/dist/core/app/local-app-runtime-platform-conversation.js.map +1 -1
- 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 +58 -5
- 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-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-persona-character.d.ts +5 -0
- package/dist/core/app/local-app-runtime-platform-persona-character.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-persona-character.js +16 -2
- package/dist/core/app/local-app-runtime-platform-persona-character.js.map +1 -1
- 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.d.ts +3 -2
- package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform.js +5 -2
- package/dist/core/app/local-app-runtime-platform.js.map +1 -1
- 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 +12 -9
- package/dist/core/app/runtime-account-realm-source-readiness.generated.js.map +1 -1
- package/dist/core-generated/realm-client.d.ts.map +1 -1
- package/dist/core-generated/realm-client.js +33 -99
- package/dist/core-generated/realm-client.js.map +1 -1
- package/dist/core-generated/realm-typed-client.d.ts +257 -432
- package/dist/core-generated/realm-typed-client.d.ts.map +1 -1
- package/dist/core-generated/realm-typed-client.js +55 -202
- 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 +80 -16
- 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 +10 -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 +9 -1
- 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 +448 -147
- 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 +1078 -466
- 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 +5 -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 +4 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
- 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/capability_configuration.d.ts +92 -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 +204 -0
- 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 +5 -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 +4 -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 +38 -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 +79 -2
- package/dist/core-generated/runtime-protobuf/runtime/v1/connector.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 +41 -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 +93 -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 +72 -16
- 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 +9 -2
- package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.d.ts +13 -6
- package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.js +13 -6
- 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 +10 -2
- package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-typed-client.d.ts +26 -16
- package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-typed-client.js +97 -16
- package/dist/core-generated/runtime-typed-client.js.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.d.ts +15 -7
- package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.js +16 -8
- package/dist/core-generated/runtime-wire-codecs.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 +5 -15
- 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/config-projections.d.ts +10 -0
- package/dist/runtime/config-projections.d.ts.map +1 -1
- package/dist/runtime/config-projections.js +8 -3
- package/dist/runtime/config-projections.js.map +1 -1
- package/dist/runtime/connector-inventory.d.ts +9 -2
- package/dist/runtime/connector-inventory.d.ts.map +1 -1
- package/dist/runtime/connector-inventory.js +67 -24
- package/dist/runtime/connector-inventory.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 +46 -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 +13 -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/index.d.ts.map +1 -1
- package/dist/runtime/index.js +11 -10
- package/dist/runtime/index.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/reason-messages.d.ts +3 -0
- package/dist/runtime/reason-messages.d.ts.map +1 -1
- package/dist/runtime/reason-messages.js +6 -0
- 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-types.d.ts +6 -1
- package/dist/runtime/runtime-local-environment-client-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client.js +20 -2
- package/dist/runtime/runtime-local-environment-client.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/wire-types/agent-participation-enums.d.ts +2 -1
- package/dist/runtime/wire-types/agent-participation-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/agent-participation-enums.js +2 -1
- package/dist/runtime/wire-types/agent-participation-enums.js.map +1 -1
- package/dist/runtime/wire-types/agent-participation-types.d.ts +6 -4
- package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts +18 -0
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.js +21 -0
- package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-types.d.ts +4 -4
- package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-types.d.ts +4 -4
- package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/local-memory-enums.d.ts +9 -0
- package/dist/runtime/wire-types/local-memory-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/local-memory-enums.js +10 -0
- package/dist/runtime/wire-types/local-memory-enums.js.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts +2 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.js +1 -0
- package/dist/runtime/wire-types/reason-code-enums.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 +3 -3
- 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
|
/**
|
|
@@ -849,18 +852,23 @@ class AgentAutonomyConfig$Type extends MessageType {
|
|
|
849
852
|
constructor() {
|
|
850
853
|
super("nimi.runtime.v1.AgentAutonomyConfig", [
|
|
851
854
|
{ no: 1, name: "daily_token_budget", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
852
|
-
{ no:
|
|
853
|
-
{ 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 },
|
|
854
857
|
{ no: 4, name: "suspend_until", kind: "message", T: () => Timestamp },
|
|
855
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*/ },
|
|
856
862
|
{ no: 10, name: "extensions", kind: "message", T: () => Struct }
|
|
857
863
|
]);
|
|
858
864
|
}
|
|
859
865
|
create(value) {
|
|
860
866
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
861
867
|
message.dailyTokenBudget = "0";
|
|
862
|
-
message.
|
|
868
|
+
message.maxBackgroundOutputTokens = "0";
|
|
863
869
|
message.mode = 0;
|
|
870
|
+
message.freeContactEnabled = false;
|
|
871
|
+
message.maxFreeContactsPerDay = 0;
|
|
864
872
|
if (value !== undefined)
|
|
865
873
|
reflectionMergePartial(this, message, value);
|
|
866
874
|
return message;
|
|
@@ -873,11 +881,11 @@ class AgentAutonomyConfig$Type extends MessageType {
|
|
|
873
881
|
case /* int64 daily_token_budget */ 1:
|
|
874
882
|
message.dailyTokenBudget = reader.int64().toString();
|
|
875
883
|
break;
|
|
876
|
-
case /* int64
|
|
877
|
-
message.
|
|
884
|
+
case /* int64 max_background_output_tokens */ 9:
|
|
885
|
+
message.maxBackgroundOutputTokens = reader.int64().toString();
|
|
878
886
|
break;
|
|
879
|
-
case /* google.protobuf.Duration
|
|
880
|
-
message.
|
|
887
|
+
case /* google.protobuf.Duration min_planning_interval */ 11:
|
|
888
|
+
message.minPlanningInterval = Duration.internalBinaryRead(reader, reader.uint32(), options, message.minPlanningInterval);
|
|
881
889
|
break;
|
|
882
890
|
case /* google.protobuf.Timestamp suspend_until */ 4:
|
|
883
891
|
message.suspendUntil = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.suspendUntil);
|
|
@@ -885,6 +893,15 @@ class AgentAutonomyConfig$Type extends MessageType {
|
|
|
885
893
|
case /* nimi.runtime.v1.AgentAutonomyMode mode */ 5:
|
|
886
894
|
message.mode = reader.int32();
|
|
887
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;
|
|
888
905
|
case /* google.protobuf.Struct extensions */ 10:
|
|
889
906
|
message.extensions = Struct.internalBinaryRead(reader, reader.uint32(), options, message.extensions);
|
|
890
907
|
break;
|
|
@@ -903,21 +920,30 @@ class AgentAutonomyConfig$Type extends MessageType {
|
|
|
903
920
|
/* int64 daily_token_budget = 1; */
|
|
904
921
|
if (message.dailyTokenBudget !== "0")
|
|
905
922
|
writer.tag(1, WireType.Varint).int64(message.dailyTokenBudget);
|
|
906
|
-
/* int64 max_tokens_per_hook = 2; */
|
|
907
|
-
if (message.maxTokensPerHook !== "0")
|
|
908
|
-
writer.tag(2, WireType.Varint).int64(message.maxTokensPerHook);
|
|
909
|
-
/* google.protobuf.Duration min_hook_interval = 3; */
|
|
910
|
-
if (message.minHookInterval)
|
|
911
|
-
Duration.internalBinaryWrite(message.minHookInterval, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
912
923
|
/* google.protobuf.Timestamp suspend_until = 4; */
|
|
913
924
|
if (message.suspendUntil)
|
|
914
925
|
Timestamp.internalBinaryWrite(message.suspendUntil, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
915
926
|
/* nimi.runtime.v1.AgentAutonomyMode mode = 5; */
|
|
916
927
|
if (message.mode !== 0)
|
|
917
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);
|
|
918
941
|
/* google.protobuf.Struct extensions = 10; */
|
|
919
942
|
if (message.extensions)
|
|
920
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();
|
|
921
947
|
let u = options.writeUnknownFields;
|
|
922
948
|
if (u !== false)
|
|
923
949
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1924,7 +1950,8 @@ class HookIntent$Type extends MessageType {
|
|
|
1924
1950
|
{ no: 9, name: "admission_state", kind: "enum", T: () => ["nimi.runtime.v1.HookAdmissionState", HookAdmissionState, "HOOK_ADMISSION_STATE_"] },
|
|
1925
1951
|
{ no: 10, name: "not_before", kind: "message", T: () => Timestamp },
|
|
1926
1952
|
{ no: 11, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
1927
|
-
{ 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*/ }
|
|
1928
1955
|
]);
|
|
1929
1956
|
}
|
|
1930
1957
|
create(value) {
|
|
@@ -1938,6 +1965,7 @@ class HookIntent$Type extends MessageType {
|
|
|
1938
1965
|
message.effect = 0;
|
|
1939
1966
|
message.admissionState = 0;
|
|
1940
1967
|
message.reason = "";
|
|
1968
|
+
message.publicPurpose = "";
|
|
1941
1969
|
if (value !== undefined)
|
|
1942
1970
|
reflectionMergePartial(this, message, value);
|
|
1943
1971
|
return message;
|
|
@@ -1983,6 +2011,9 @@ class HookIntent$Type extends MessageType {
|
|
|
1983
2011
|
case /* string reason */ 12:
|
|
1984
2012
|
message.reason = reader.string();
|
|
1985
2013
|
break;
|
|
2014
|
+
case /* string public_purpose */ 13:
|
|
2015
|
+
message.publicPurpose = reader.string();
|
|
2016
|
+
break;
|
|
1986
2017
|
default:
|
|
1987
2018
|
let u = options.readUnknownField;
|
|
1988
2019
|
if (u === "throw")
|
|
@@ -2031,6 +2062,9 @@ class HookIntent$Type extends MessageType {
|
|
|
2031
2062
|
/* string reason = 12; */
|
|
2032
2063
|
if (message.reason !== "")
|
|
2033
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);
|
|
2034
2068
|
let u = options.writeUnknownFields;
|
|
2035
2069
|
if (u !== false)
|
|
2036
2070
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2119,66 +2153,6 @@ class HookExecutionOutcome$Type extends MessageType {
|
|
|
2119
2153
|
*/
|
|
2120
2154
|
export const HookExecutionOutcome = new HookExecutionOutcome$Type();
|
|
2121
2155
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2122
|
-
class PendingHook$Type extends MessageType {
|
|
2123
|
-
constructor() {
|
|
2124
|
-
super("nimi.runtime.v1.PendingHook", [
|
|
2125
|
-
{ no: 1, name: "intent", kind: "message", T: () => HookIntent },
|
|
2126
|
-
{ no: 2, name: "scheduled_for", kind: "message", T: () => Timestamp },
|
|
2127
|
-
{ no: 3, name: "admitted_at", kind: "message", T: () => Timestamp }
|
|
2128
|
-
]);
|
|
2129
|
-
}
|
|
2130
|
-
create(value) {
|
|
2131
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
2132
|
-
if (value !== undefined)
|
|
2133
|
-
reflectionMergePartial(this, message, value);
|
|
2134
|
-
return message;
|
|
2135
|
-
}
|
|
2136
|
-
internalBinaryRead(reader, length, options, target) {
|
|
2137
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2138
|
-
while (reader.pos < end) {
|
|
2139
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2140
|
-
switch (fieldNo) {
|
|
2141
|
-
case /* nimi.runtime.v1.HookIntent intent */ 1:
|
|
2142
|
-
message.intent = HookIntent.internalBinaryRead(reader, reader.uint32(), options, message.intent);
|
|
2143
|
-
break;
|
|
2144
|
-
case /* google.protobuf.Timestamp scheduled_for */ 2:
|
|
2145
|
-
message.scheduledFor = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.scheduledFor);
|
|
2146
|
-
break;
|
|
2147
|
-
case /* google.protobuf.Timestamp admitted_at */ 3:
|
|
2148
|
-
message.admittedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.admittedAt);
|
|
2149
|
-
break;
|
|
2150
|
-
default:
|
|
2151
|
-
let u = options.readUnknownField;
|
|
2152
|
-
if (u === "throw")
|
|
2153
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2154
|
-
let d = reader.skip(wireType);
|
|
2155
|
-
if (u !== false)
|
|
2156
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2157
|
-
}
|
|
2158
|
-
}
|
|
2159
|
-
return message;
|
|
2160
|
-
}
|
|
2161
|
-
internalBinaryWrite(message, writer, options) {
|
|
2162
|
-
/* nimi.runtime.v1.HookIntent intent = 1; */
|
|
2163
|
-
if (message.intent)
|
|
2164
|
-
HookIntent.internalBinaryWrite(message.intent, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2165
|
-
/* google.protobuf.Timestamp scheduled_for = 2; */
|
|
2166
|
-
if (message.scheduledFor)
|
|
2167
|
-
Timestamp.internalBinaryWrite(message.scheduledFor, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2168
|
-
/* google.protobuf.Timestamp admitted_at = 3; */
|
|
2169
|
-
if (message.admittedAt)
|
|
2170
|
-
Timestamp.internalBinaryWrite(message.admittedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2171
|
-
let u = options.writeUnknownFields;
|
|
2172
|
-
if (u !== false)
|
|
2173
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2174
|
-
return writer;
|
|
2175
|
-
}
|
|
2176
|
-
}
|
|
2177
|
-
/**
|
|
2178
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.PendingHook
|
|
2179
|
-
*/
|
|
2180
|
-
export const PendingHook = new PendingHook$Type();
|
|
2181
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2182
2156
|
class AgentLifecycleEventDetail$Type extends MessageType {
|
|
2183
2157
|
constructor() {
|
|
2184
2158
|
super("nimi.runtime.v1.AgentLifecycleEventDetail", [
|
|
@@ -4258,263 +4232,6 @@ class GetAgentPresentationAssetResponse$Type extends MessageType {
|
|
|
4258
4232
|
*/
|
|
4259
4233
|
export const GetAgentPresentationAssetResponse = new GetAgentPresentationAssetResponse$Type();
|
|
4260
4234
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4261
|
-
class ListPendingHooksRequest$Type extends MessageType {
|
|
4262
|
-
constructor() {
|
|
4263
|
-
super("nimi.runtime.v1.ListPendingHooksRequest", [
|
|
4264
|
-
{ no: 1, name: "context", kind: "message", T: () => AgentRequestContext },
|
|
4265
|
-
{ no: 2, name: "agent_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4266
|
-
{ no: 3, name: "trigger_family_filter", kind: "enum", T: () => ["nimi.runtime.v1.HookTriggerFamily", HookTriggerFamily, "HOOK_TRIGGER_FAMILY_"] },
|
|
4267
|
-
{ no: 4, name: "admission_state_filter", kind: "enum", T: () => ["nimi.runtime.v1.HookAdmissionState", HookAdmissionState, "HOOK_ADMISSION_STATE_"] },
|
|
4268
|
-
{ no: 5, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
4269
|
-
{ no: 6, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4270
|
-
]);
|
|
4271
|
-
}
|
|
4272
|
-
create(value) {
|
|
4273
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
4274
|
-
message.agentId = "";
|
|
4275
|
-
message.triggerFamilyFilter = 0;
|
|
4276
|
-
message.admissionStateFilter = 0;
|
|
4277
|
-
message.pageSize = 0;
|
|
4278
|
-
message.pageToken = "";
|
|
4279
|
-
if (value !== undefined)
|
|
4280
|
-
reflectionMergePartial(this, message, value);
|
|
4281
|
-
return message;
|
|
4282
|
-
}
|
|
4283
|
-
internalBinaryRead(reader, length, options, target) {
|
|
4284
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4285
|
-
while (reader.pos < end) {
|
|
4286
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4287
|
-
switch (fieldNo) {
|
|
4288
|
-
case /* nimi.runtime.v1.AgentRequestContext context */ 1:
|
|
4289
|
-
message.context = AgentRequestContext.internalBinaryRead(reader, reader.uint32(), options, message.context);
|
|
4290
|
-
break;
|
|
4291
|
-
case /* string agent_id */ 2:
|
|
4292
|
-
message.agentId = reader.string();
|
|
4293
|
-
break;
|
|
4294
|
-
case /* nimi.runtime.v1.HookTriggerFamily trigger_family_filter */ 3:
|
|
4295
|
-
message.triggerFamilyFilter = reader.int32();
|
|
4296
|
-
break;
|
|
4297
|
-
case /* nimi.runtime.v1.HookAdmissionState admission_state_filter */ 4:
|
|
4298
|
-
message.admissionStateFilter = reader.int32();
|
|
4299
|
-
break;
|
|
4300
|
-
case /* int32 page_size */ 5:
|
|
4301
|
-
message.pageSize = reader.int32();
|
|
4302
|
-
break;
|
|
4303
|
-
case /* string page_token */ 6:
|
|
4304
|
-
message.pageToken = reader.string();
|
|
4305
|
-
break;
|
|
4306
|
-
default:
|
|
4307
|
-
let u = options.readUnknownField;
|
|
4308
|
-
if (u === "throw")
|
|
4309
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4310
|
-
let d = reader.skip(wireType);
|
|
4311
|
-
if (u !== false)
|
|
4312
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4313
|
-
}
|
|
4314
|
-
}
|
|
4315
|
-
return message;
|
|
4316
|
-
}
|
|
4317
|
-
internalBinaryWrite(message, writer, options) {
|
|
4318
|
-
/* nimi.runtime.v1.AgentRequestContext context = 1; */
|
|
4319
|
-
if (message.context)
|
|
4320
|
-
AgentRequestContext.internalBinaryWrite(message.context, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4321
|
-
/* string agent_id = 2; */
|
|
4322
|
-
if (message.agentId !== "")
|
|
4323
|
-
writer.tag(2, WireType.LengthDelimited).string(message.agentId);
|
|
4324
|
-
/* nimi.runtime.v1.HookTriggerFamily trigger_family_filter = 3; */
|
|
4325
|
-
if (message.triggerFamilyFilter !== 0)
|
|
4326
|
-
writer.tag(3, WireType.Varint).int32(message.triggerFamilyFilter);
|
|
4327
|
-
/* nimi.runtime.v1.HookAdmissionState admission_state_filter = 4; */
|
|
4328
|
-
if (message.admissionStateFilter !== 0)
|
|
4329
|
-
writer.tag(4, WireType.Varint).int32(message.admissionStateFilter);
|
|
4330
|
-
/* int32 page_size = 5; */
|
|
4331
|
-
if (message.pageSize !== 0)
|
|
4332
|
-
writer.tag(5, WireType.Varint).int32(message.pageSize);
|
|
4333
|
-
/* string page_token = 6; */
|
|
4334
|
-
if (message.pageToken !== "")
|
|
4335
|
-
writer.tag(6, WireType.LengthDelimited).string(message.pageToken);
|
|
4336
|
-
let u = options.writeUnknownFields;
|
|
4337
|
-
if (u !== false)
|
|
4338
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4339
|
-
return writer;
|
|
4340
|
-
}
|
|
4341
|
-
}
|
|
4342
|
-
/**
|
|
4343
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.ListPendingHooksRequest
|
|
4344
|
-
*/
|
|
4345
|
-
export const ListPendingHooksRequest = new ListPendingHooksRequest$Type();
|
|
4346
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4347
|
-
class ListPendingHooksResponse$Type extends MessageType {
|
|
4348
|
-
constructor() {
|
|
4349
|
-
super("nimi.runtime.v1.ListPendingHooksResponse", [
|
|
4350
|
-
{ no: 1, name: "hooks", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PendingHook },
|
|
4351
|
-
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4352
|
-
]);
|
|
4353
|
-
}
|
|
4354
|
-
create(value) {
|
|
4355
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
4356
|
-
message.hooks = [];
|
|
4357
|
-
message.nextPageToken = "";
|
|
4358
|
-
if (value !== undefined)
|
|
4359
|
-
reflectionMergePartial(this, message, value);
|
|
4360
|
-
return message;
|
|
4361
|
-
}
|
|
4362
|
-
internalBinaryRead(reader, length, options, target) {
|
|
4363
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4364
|
-
while (reader.pos < end) {
|
|
4365
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4366
|
-
switch (fieldNo) {
|
|
4367
|
-
case /* repeated nimi.runtime.v1.PendingHook hooks */ 1:
|
|
4368
|
-
message.hooks.push(PendingHook.internalBinaryRead(reader, reader.uint32(), options));
|
|
4369
|
-
break;
|
|
4370
|
-
case /* string next_page_token */ 2:
|
|
4371
|
-
message.nextPageToken = reader.string();
|
|
4372
|
-
break;
|
|
4373
|
-
default:
|
|
4374
|
-
let u = options.readUnknownField;
|
|
4375
|
-
if (u === "throw")
|
|
4376
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4377
|
-
let d = reader.skip(wireType);
|
|
4378
|
-
if (u !== false)
|
|
4379
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4380
|
-
}
|
|
4381
|
-
}
|
|
4382
|
-
return message;
|
|
4383
|
-
}
|
|
4384
|
-
internalBinaryWrite(message, writer, options) {
|
|
4385
|
-
/* repeated nimi.runtime.v1.PendingHook hooks = 1; */
|
|
4386
|
-
for (let i = 0; i < message.hooks.length; i++)
|
|
4387
|
-
PendingHook.internalBinaryWrite(message.hooks[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4388
|
-
/* string next_page_token = 2; */
|
|
4389
|
-
if (message.nextPageToken !== "")
|
|
4390
|
-
writer.tag(2, WireType.LengthDelimited).string(message.nextPageToken);
|
|
4391
|
-
let u = options.writeUnknownFields;
|
|
4392
|
-
if (u !== false)
|
|
4393
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4394
|
-
return writer;
|
|
4395
|
-
}
|
|
4396
|
-
}
|
|
4397
|
-
/**
|
|
4398
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.ListPendingHooksResponse
|
|
4399
|
-
*/
|
|
4400
|
-
export const ListPendingHooksResponse = new ListPendingHooksResponse$Type();
|
|
4401
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4402
|
-
class CancelHookRequest$Type extends MessageType {
|
|
4403
|
-
constructor() {
|
|
4404
|
-
super("nimi.runtime.v1.CancelHookRequest", [
|
|
4405
|
-
{ no: 1, name: "context", kind: "message", T: () => AgentRequestContext },
|
|
4406
|
-
{ no: 2, name: "agent_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4407
|
-
{ no: 3, name: "intent_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4408
|
-
{ no: 4, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4409
|
-
]);
|
|
4410
|
-
}
|
|
4411
|
-
create(value) {
|
|
4412
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
4413
|
-
message.agentId = "";
|
|
4414
|
-
message.intentId = "";
|
|
4415
|
-
message.reason = "";
|
|
4416
|
-
if (value !== undefined)
|
|
4417
|
-
reflectionMergePartial(this, message, value);
|
|
4418
|
-
return message;
|
|
4419
|
-
}
|
|
4420
|
-
internalBinaryRead(reader, length, options, target) {
|
|
4421
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4422
|
-
while (reader.pos < end) {
|
|
4423
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4424
|
-
switch (fieldNo) {
|
|
4425
|
-
case /* nimi.runtime.v1.AgentRequestContext context */ 1:
|
|
4426
|
-
message.context = AgentRequestContext.internalBinaryRead(reader, reader.uint32(), options, message.context);
|
|
4427
|
-
break;
|
|
4428
|
-
case /* string agent_id */ 2:
|
|
4429
|
-
message.agentId = reader.string();
|
|
4430
|
-
break;
|
|
4431
|
-
case /* string intent_id */ 3:
|
|
4432
|
-
message.intentId = reader.string();
|
|
4433
|
-
break;
|
|
4434
|
-
case /* string reason */ 4:
|
|
4435
|
-
message.reason = reader.string();
|
|
4436
|
-
break;
|
|
4437
|
-
default:
|
|
4438
|
-
let u = options.readUnknownField;
|
|
4439
|
-
if (u === "throw")
|
|
4440
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4441
|
-
let d = reader.skip(wireType);
|
|
4442
|
-
if (u !== false)
|
|
4443
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4444
|
-
}
|
|
4445
|
-
}
|
|
4446
|
-
return message;
|
|
4447
|
-
}
|
|
4448
|
-
internalBinaryWrite(message, writer, options) {
|
|
4449
|
-
/* nimi.runtime.v1.AgentRequestContext context = 1; */
|
|
4450
|
-
if (message.context)
|
|
4451
|
-
AgentRequestContext.internalBinaryWrite(message.context, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4452
|
-
/* string agent_id = 2; */
|
|
4453
|
-
if (message.agentId !== "")
|
|
4454
|
-
writer.tag(2, WireType.LengthDelimited).string(message.agentId);
|
|
4455
|
-
/* string intent_id = 3; */
|
|
4456
|
-
if (message.intentId !== "")
|
|
4457
|
-
writer.tag(3, WireType.LengthDelimited).string(message.intentId);
|
|
4458
|
-
/* string reason = 4; */
|
|
4459
|
-
if (message.reason !== "")
|
|
4460
|
-
writer.tag(4, WireType.LengthDelimited).string(message.reason);
|
|
4461
|
-
let u = options.writeUnknownFields;
|
|
4462
|
-
if (u !== false)
|
|
4463
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4464
|
-
return writer;
|
|
4465
|
-
}
|
|
4466
|
-
}
|
|
4467
|
-
/**
|
|
4468
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.CancelHookRequest
|
|
4469
|
-
*/
|
|
4470
|
-
export const CancelHookRequest = new CancelHookRequest$Type();
|
|
4471
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4472
|
-
class CancelHookResponse$Type extends MessageType {
|
|
4473
|
-
constructor() {
|
|
4474
|
-
super("nimi.runtime.v1.CancelHookResponse", [
|
|
4475
|
-
{ no: 1, name: "outcome", kind: "message", T: () => HookExecutionOutcome }
|
|
4476
|
-
]);
|
|
4477
|
-
}
|
|
4478
|
-
create(value) {
|
|
4479
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
4480
|
-
if (value !== undefined)
|
|
4481
|
-
reflectionMergePartial(this, message, value);
|
|
4482
|
-
return message;
|
|
4483
|
-
}
|
|
4484
|
-
internalBinaryRead(reader, length, options, target) {
|
|
4485
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4486
|
-
while (reader.pos < end) {
|
|
4487
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4488
|
-
switch (fieldNo) {
|
|
4489
|
-
case /* nimi.runtime.v1.HookExecutionOutcome outcome */ 1:
|
|
4490
|
-
message.outcome = HookExecutionOutcome.internalBinaryRead(reader, reader.uint32(), options, message.outcome);
|
|
4491
|
-
break;
|
|
4492
|
-
default:
|
|
4493
|
-
let u = options.readUnknownField;
|
|
4494
|
-
if (u === "throw")
|
|
4495
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4496
|
-
let d = reader.skip(wireType);
|
|
4497
|
-
if (u !== false)
|
|
4498
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4499
|
-
}
|
|
4500
|
-
}
|
|
4501
|
-
return message;
|
|
4502
|
-
}
|
|
4503
|
-
internalBinaryWrite(message, writer, options) {
|
|
4504
|
-
/* nimi.runtime.v1.HookExecutionOutcome outcome = 1; */
|
|
4505
|
-
if (message.outcome)
|
|
4506
|
-
HookExecutionOutcome.internalBinaryWrite(message.outcome, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4507
|
-
let u = options.writeUnknownFields;
|
|
4508
|
-
if (u !== false)
|
|
4509
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4510
|
-
return writer;
|
|
4511
|
-
}
|
|
4512
|
-
}
|
|
4513
|
-
/**
|
|
4514
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.CancelHookResponse
|
|
4515
|
-
*/
|
|
4516
|
-
export const CancelHookResponse = new CancelHookResponse$Type();
|
|
4517
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4518
4235
|
class TranscribeAgentVoiceInputRequest$Type extends MessageType {
|
|
4519
4236
|
constructor() {
|
|
4520
4237
|
super("nimi.runtime.v1.TranscribeAgentVoiceInputRequest", [
|
|
@@ -5277,7 +4994,10 @@ class LocalAppAgentIntroduction$Type extends MessageType {
|
|
|
5277
4994
|
{ no: 5, name: "reference_image_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
5278
4995
|
{ no: 6, name: "voice_sample_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
5279
4996
|
{ no: 7, name: "voice_sample_duration_sec", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
|
|
5280
|
-
{ no: 8, name: "question_topics", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppAgentIntroductionTopic }
|
|
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*/ }
|
|
5281
5001
|
]);
|
|
5282
5002
|
}
|
|
5283
5003
|
create(value) {
|
|
@@ -5316,6 +5036,15 @@ class LocalAppAgentIntroduction$Type extends MessageType {
|
|
|
5316
5036
|
case /* repeated nimi.runtime.v1.LocalAppAgentIntroductionTopic question_topics */ 8:
|
|
5317
5037
|
message.questionTopics.push(LocalAppAgentIntroductionTopic.internalBinaryRead(reader, reader.uint32(), options));
|
|
5318
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;
|
|
5319
5048
|
default:
|
|
5320
5049
|
let u = options.readUnknownField;
|
|
5321
5050
|
if (u === "throw")
|
|
@@ -5352,6 +5081,15 @@ class LocalAppAgentIntroduction$Type extends MessageType {
|
|
|
5352
5081
|
/* repeated nimi.runtime.v1.LocalAppAgentIntroductionTopic question_topics = 8; */
|
|
5353
5082
|
for (let i = 0; i < message.questionTopics.length; i++)
|
|
5354
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);
|
|
5355
5093
|
let u = options.writeUnknownFields;
|
|
5356
5094
|
if (u !== false)
|
|
5357
5095
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6055,7 +5793,9 @@ class LocalAppAgentManagerSnapshot$Type extends MessageType {
|
|
|
6055
5793
|
{ no: 4, name: "current_emotion", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6056
5794
|
{ no: 5, name: "source", kind: "message", T: () => LocalAppAgentManagerSourceProjection },
|
|
6057
5795
|
{ no: 6, name: "context", kind: "message", T: () => LocalAppAgentManagerContextProjection },
|
|
6058
|
-
{ 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 }
|
|
6059
5799
|
]);
|
|
6060
5800
|
}
|
|
6061
5801
|
create(value) {
|
|
@@ -6095,6 +5835,12 @@ class LocalAppAgentManagerSnapshot$Type extends MessageType {
|
|
|
6095
5835
|
case /* repeated nimi.runtime.v1.LocalAppAgentManagerActionAvailability action_availability */ 7:
|
|
6096
5836
|
message.actionAvailability.push(LocalAppAgentManagerActionAvailability.internalBinaryRead(reader, reader.uint32(), options));
|
|
6097
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;
|
|
6098
5844
|
default:
|
|
6099
5845
|
let u = options.readUnknownField;
|
|
6100
5846
|
if (u === "throw")
|
|
@@ -6128,6 +5874,12 @@ class LocalAppAgentManagerSnapshot$Type extends MessageType {
|
|
|
6128
5874
|
/* repeated nimi.runtime.v1.LocalAppAgentManagerActionAvailability action_availability = 7; */
|
|
6129
5875
|
for (let i = 0; i < message.actionAvailability.length; i++)
|
|
6130
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();
|
|
6131
5883
|
let u = options.writeUnknownFields;
|
|
6132
5884
|
if (u !== false)
|
|
6133
5885
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6346,7 +6098,9 @@ class SendLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6346
6098
|
{ no: 1, name: "agent_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6347
6099
|
{ no: 2, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6348
6100
|
{ no: 3, name: "request_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6349
|
-
{ 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 }
|
|
6350
6104
|
]);
|
|
6351
6105
|
}
|
|
6352
6106
|
create(value) {
|
|
@@ -6376,6 +6130,12 @@ class SendLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6376
6130
|
case /* repeated nimi.runtime.v1.LocalAppConversationInputPart parts */ 5:
|
|
6377
6131
|
message.parts.push(LocalAppConversationInputPart.internalBinaryRead(reader, reader.uint32(), options));
|
|
6378
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;
|
|
6379
6139
|
default:
|
|
6380
6140
|
let u = options.readUnknownField;
|
|
6381
6141
|
if (u === "throw")
|
|
@@ -6400,6 +6160,12 @@ class SendLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6400
6160
|
/* repeated nimi.runtime.v1.LocalAppConversationInputPart parts = 5; */
|
|
6401
6161
|
for (let i = 0; i < message.parts.length; i++)
|
|
6402
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();
|
|
6403
6169
|
let u = options.writeUnknownFields;
|
|
6404
6170
|
if (u !== false)
|
|
6405
6171
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6411,7 +6177,173 @@ class SendLocalAppConversationTurnRequest$Type extends MessageType {
|
|
|
6411
6177
|
*/
|
|
6412
6178
|
export const SendLocalAppConversationTurnRequest = new SendLocalAppConversationTurnRequest$Type();
|
|
6413
6179
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
6414
|
-
class
|
|
6180
|
+
class LocalAppConversationQuoteIntent$Type extends MessageType {
|
|
6181
|
+
constructor() {
|
|
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*/ }
|
|
6187
|
+
]);
|
|
6188
|
+
}
|
|
6189
|
+
create(value) {
|
|
6190
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
6191
|
+
message.sourceMessageId = "";
|
|
6192
|
+
message.format = "";
|
|
6193
|
+
message.startByte = 0;
|
|
6194
|
+
message.endByte = 0;
|
|
6195
|
+
if (value !== undefined)
|
|
6196
|
+
reflectionMergePartial(this, message, value);
|
|
6197
|
+
return message;
|
|
6198
|
+
}
|
|
6199
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6200
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6201
|
+
while (reader.pos < end) {
|
|
6202
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6203
|
+
switch (fieldNo) {
|
|
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();
|
|
6215
|
+
break;
|
|
6216
|
+
default:
|
|
6217
|
+
let u = options.readUnknownField;
|
|
6218
|
+
if (u === "throw")
|
|
6219
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6220
|
+
let d = reader.skip(wireType);
|
|
6221
|
+
if (u !== false)
|
|
6222
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6223
|
+
}
|
|
6224
|
+
}
|
|
6225
|
+
return message;
|
|
6226
|
+
}
|
|
6227
|
+
internalBinaryWrite(message, writer, options) {
|
|
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);
|
|
6240
|
+
let u = options.writeUnknownFields;
|
|
6241
|
+
if (u !== false)
|
|
6242
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6243
|
+
return writer;
|
|
6244
|
+
}
|
|
6245
|
+
}
|
|
6246
|
+
/**
|
|
6247
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationQuoteIntent
|
|
6248
|
+
*/
|
|
6249
|
+
export const LocalAppConversationQuoteIntent = new LocalAppConversationQuoteIntent$Type();
|
|
6250
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6251
|
+
class LocalAppConversationQuote$Type extends MessageType {
|
|
6252
|
+
constructor() {
|
|
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*/ }
|
|
6261
|
+
]);
|
|
6262
|
+
}
|
|
6263
|
+
create(value) {
|
|
6264
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
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 = "";
|
|
6272
|
+
if (value !== undefined)
|
|
6273
|
+
reflectionMergePartial(this, message, value);
|
|
6274
|
+
return message;
|
|
6275
|
+
}
|
|
6276
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6277
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6278
|
+
while (reader.pos < end) {
|
|
6279
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6280
|
+
switch (fieldNo) {
|
|
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();
|
|
6301
|
+
break;
|
|
6302
|
+
default:
|
|
6303
|
+
let u = options.readUnknownField;
|
|
6304
|
+
if (u === "throw")
|
|
6305
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6306
|
+
let d = reader.skip(wireType);
|
|
6307
|
+
if (u !== false)
|
|
6308
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6309
|
+
}
|
|
6310
|
+
}
|
|
6311
|
+
return message;
|
|
6312
|
+
}
|
|
6313
|
+
internalBinaryWrite(message, writer, options) {
|
|
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);
|
|
6335
|
+
let u = options.writeUnknownFields;
|
|
6336
|
+
if (u !== false)
|
|
6337
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6338
|
+
return writer;
|
|
6339
|
+
}
|
|
6340
|
+
}
|
|
6341
|
+
/**
|
|
6342
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationQuote
|
|
6343
|
+
*/
|
|
6344
|
+
export const LocalAppConversationQuote = new LocalAppConversationQuote$Type();
|
|
6345
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6346
|
+
class SendLocalAppConversationTurnResponse$Type extends MessageType {
|
|
6415
6347
|
constructor() {
|
|
6416
6348
|
super("nimi.runtime.v1.SendLocalAppConversationTurnResponse", [
|
|
6417
6349
|
{ no: 1, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
@@ -7294,13 +7226,248 @@ class GetLocalAppConversationSnapshotRequest$Type extends MessageType {
|
|
|
7294
7226
|
*/
|
|
7295
7227
|
export const GetLocalAppConversationSnapshotRequest = new GetLocalAppConversationSnapshotRequest$Type();
|
|
7296
7228
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7229
|
+
class ReadLocalAppConversationMessageRequest$Type extends MessageType {
|
|
7230
|
+
constructor() {
|
|
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*/ }
|
|
7235
|
+
]);
|
|
7236
|
+
}
|
|
7237
|
+
create(value) {
|
|
7238
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
7239
|
+
message.agentHandle = "";
|
|
7240
|
+
message.conversationAnchorId = "";
|
|
7241
|
+
message.messageId = "";
|
|
7242
|
+
if (value !== undefined)
|
|
7243
|
+
reflectionMergePartial(this, message, value);
|
|
7244
|
+
return message;
|
|
7245
|
+
}
|
|
7246
|
+
internalBinaryRead(reader, length, options, target) {
|
|
7247
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
7248
|
+
while (reader.pos < end) {
|
|
7249
|
+
let [fieldNo, wireType] = reader.tag();
|
|
7250
|
+
switch (fieldNo) {
|
|
7251
|
+
case /* string agent_handle */ 1:
|
|
7252
|
+
message.agentHandle = reader.string();
|
|
7253
|
+
break;
|
|
7254
|
+
case /* string conversation_anchor_id */ 2:
|
|
7255
|
+
message.conversationAnchorId = reader.string();
|
|
7256
|
+
break;
|
|
7257
|
+
case /* string message_id */ 3:
|
|
7258
|
+
message.messageId = reader.string();
|
|
7259
|
+
break;
|
|
7260
|
+
default:
|
|
7261
|
+
let u = options.readUnknownField;
|
|
7262
|
+
if (u === "throw")
|
|
7263
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
7264
|
+
let d = reader.skip(wireType);
|
|
7265
|
+
if (u !== false)
|
|
7266
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
7267
|
+
}
|
|
7268
|
+
}
|
|
7269
|
+
return message;
|
|
7270
|
+
}
|
|
7271
|
+
internalBinaryWrite(message, writer, options) {
|
|
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; */
|
|
7279
|
+
if (message.messageId !== "")
|
|
7280
|
+
writer.tag(3, WireType.LengthDelimited).string(message.messageId);
|
|
7281
|
+
let u = options.writeUnknownFields;
|
|
7282
|
+
if (u !== false)
|
|
7283
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7284
|
+
return writer;
|
|
7285
|
+
}
|
|
7286
|
+
}
|
|
7287
|
+
/**
|
|
7288
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ReadLocalAppConversationMessageRequest
|
|
7289
|
+
*/
|
|
7290
|
+
export const ReadLocalAppConversationMessageRequest = new ReadLocalAppConversationMessageRequest$Type();
|
|
7291
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7292
|
+
class LocalAppConversationMessageWindow$Type extends MessageType {
|
|
7293
|
+
constructor() {
|
|
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*/ }
|
|
7301
|
+
]);
|
|
7302
|
+
}
|
|
7303
|
+
create(value) {
|
|
7304
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
7305
|
+
message.messages = [];
|
|
7306
|
+
message.turns = [];
|
|
7307
|
+
message.actions = [];
|
|
7308
|
+
message.voices = [];
|
|
7309
|
+
message.truncatedBefore = false;
|
|
7310
|
+
message.truncatedAfter = false;
|
|
7311
|
+
if (value !== undefined)
|
|
7312
|
+
reflectionMergePartial(this, message, value);
|
|
7313
|
+
return message;
|
|
7314
|
+
}
|
|
7315
|
+
internalBinaryRead(reader, length, options, target) {
|
|
7316
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
7317
|
+
while (reader.pos < end) {
|
|
7318
|
+
let [fieldNo, wireType] = reader.tag();
|
|
7319
|
+
switch (fieldNo) {
|
|
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();
|
|
7337
|
+
break;
|
|
7338
|
+
default:
|
|
7339
|
+
let u = options.readUnknownField;
|
|
7340
|
+
if (u === "throw")
|
|
7341
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
7342
|
+
let d = reader.skip(wireType);
|
|
7343
|
+
if (u !== false)
|
|
7344
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
7345
|
+
}
|
|
7346
|
+
}
|
|
7347
|
+
return message;
|
|
7348
|
+
}
|
|
7349
|
+
internalBinaryWrite(message, writer, options) {
|
|
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);
|
|
7368
|
+
let u = options.writeUnknownFields;
|
|
7369
|
+
if (u !== false)
|
|
7370
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7371
|
+
return writer;
|
|
7372
|
+
}
|
|
7373
|
+
}
|
|
7374
|
+
/**
|
|
7375
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationMessageWindow
|
|
7376
|
+
*/
|
|
7377
|
+
export const LocalAppConversationMessageWindow = new LocalAppConversationMessageWindow$Type();
|
|
7378
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7379
|
+
class ReadLocalAppConversationMessageResponse$Type extends MessageType {
|
|
7380
|
+
constructor() {
|
|
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 }
|
|
7388
|
+
]);
|
|
7389
|
+
}
|
|
7390
|
+
create(value) {
|
|
7391
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
7392
|
+
message.conversationAnchorId = "";
|
|
7393
|
+
message.readWatermark = "0";
|
|
7394
|
+
if (value !== undefined)
|
|
7395
|
+
reflectionMergePartial(this, message, value);
|
|
7396
|
+
return message;
|
|
7397
|
+
}
|
|
7398
|
+
internalBinaryRead(reader, length, options, target) {
|
|
7399
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
7400
|
+
while (reader.pos < end) {
|
|
7401
|
+
let [fieldNo, wireType] = reader.tag();
|
|
7402
|
+
switch (fieldNo) {
|
|
7403
|
+
case /* string conversation_anchor_id */ 1:
|
|
7404
|
+
message.conversationAnchorId = reader.string();
|
|
7405
|
+
break;
|
|
7406
|
+
case /* uint64 read_watermark */ 2:
|
|
7407
|
+
message.readWatermark = reader.uint64().toString();
|
|
7408
|
+
break;
|
|
7409
|
+
case /* nimi.runtime.v1.LocalAppConversationMessage message */ 3:
|
|
7410
|
+
message.message = LocalAppConversationMessage.internalBinaryRead(reader, reader.uint32(), options, message.message);
|
|
7411
|
+
break;
|
|
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);
|
|
7420
|
+
break;
|
|
7421
|
+
default:
|
|
7422
|
+
let u = options.readUnknownField;
|
|
7423
|
+
if (u === "throw")
|
|
7424
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
7425
|
+
let d = reader.skip(wireType);
|
|
7426
|
+
if (u !== false)
|
|
7427
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
7428
|
+
}
|
|
7429
|
+
}
|
|
7430
|
+
return message;
|
|
7431
|
+
}
|
|
7432
|
+
internalBinaryWrite(message, writer, options) {
|
|
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();
|
|
7451
|
+
let u = options.writeUnknownFields;
|
|
7452
|
+
if (u !== false)
|
|
7453
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7454
|
+
return writer;
|
|
7455
|
+
}
|
|
7456
|
+
}
|
|
7457
|
+
/**
|
|
7458
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ReadLocalAppConversationMessageResponse
|
|
7459
|
+
*/
|
|
7460
|
+
export const ReadLocalAppConversationMessageResponse = new ReadLocalAppConversationMessageResponse$Type();
|
|
7461
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7297
7462
|
class LocalAppConversationMessage$Type extends MessageType {
|
|
7298
7463
|
constructor() {
|
|
7299
7464
|
super("nimi.runtime.v1.LocalAppConversationMessage", [
|
|
7300
7465
|
{ no: 1, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7301
7466
|
{ no: 2, name: "role", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppConversationMessageRole", LocalAppConversationMessageRole, "LOCAL_APP_CONVERSATION_MESSAGE_ROLE_"] },
|
|
7302
7467
|
{ no: 4, name: "message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7303
|
-
{ no: 5, name: "parts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationMessagePart }
|
|
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 }
|
|
7304
7471
|
]);
|
|
7305
7472
|
}
|
|
7306
7473
|
create(value) {
|
|
@@ -7309,6 +7476,7 @@ class LocalAppConversationMessage$Type extends MessageType {
|
|
|
7309
7476
|
message.role = 0;
|
|
7310
7477
|
message.messageId = "";
|
|
7311
7478
|
message.parts = [];
|
|
7479
|
+
message.partial = false;
|
|
7312
7480
|
if (value !== undefined)
|
|
7313
7481
|
reflectionMergePartial(this, message, value);
|
|
7314
7482
|
return message;
|
|
@@ -7330,6 +7498,12 @@ class LocalAppConversationMessage$Type extends MessageType {
|
|
|
7330
7498
|
case /* repeated nimi.runtime.v1.LocalAppConversationMessagePart parts */ 5:
|
|
7331
7499
|
message.parts.push(LocalAppConversationMessagePart.internalBinaryRead(reader, reader.uint32(), options));
|
|
7332
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;
|
|
7333
7507
|
default:
|
|
7334
7508
|
let u = options.readUnknownField;
|
|
7335
7509
|
if (u === "throw")
|
|
@@ -7354,6 +7528,12 @@ class LocalAppConversationMessage$Type extends MessageType {
|
|
|
7354
7528
|
/* repeated nimi.runtime.v1.LocalAppConversationMessagePart parts = 5; */
|
|
7355
7529
|
for (let i = 0; i < message.parts.length; i++)
|
|
7356
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();
|
|
7357
7537
|
let u = options.writeUnknownFields;
|
|
7358
7538
|
if (u !== false)
|
|
7359
7539
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7550,7 +7730,12 @@ class LocalAppConversationTurn$Type extends MessageType {
|
|
|
7550
7730
|
{ no: 3, name: "phase", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppConversationTurnPhase", LocalAppConversationTurnPhase, "LOCAL_APP_CONVERSATION_TURN_PHASE_"] },
|
|
7551
7731
|
{ no: 4, name: "terminal_reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7552
7732
|
{ no: 5, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] },
|
|
7553
|
-
{ 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*/ }
|
|
7554
7739
|
]);
|
|
7555
7740
|
}
|
|
7556
7741
|
create(value) {
|
|
@@ -7559,6 +7744,8 @@ class LocalAppConversationTurn$Type extends MessageType {
|
|
|
7559
7744
|
message.status = 0;
|
|
7560
7745
|
message.phase = 0;
|
|
7561
7746
|
message.reasonCode = 0;
|
|
7747
|
+
message.canRegenerate = false;
|
|
7748
|
+
message.origin = "";
|
|
7562
7749
|
if (value !== undefined)
|
|
7563
7750
|
reflectionMergePartial(this, message, value);
|
|
7564
7751
|
return message;
|
|
@@ -7586,11 +7773,26 @@ class LocalAppConversationTurn$Type extends MessageType {
|
|
|
7586
7773
|
case /* optional string message */ 6:
|
|
7587
7774
|
message.message = reader.string();
|
|
7588
7775
|
break;
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
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;
|
|
7791
|
+
default:
|
|
7792
|
+
let u = options.readUnknownField;
|
|
7793
|
+
if (u === "throw")
|
|
7794
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
7795
|
+
let d = reader.skip(wireType);
|
|
7594
7796
|
if (u !== false)
|
|
7595
7797
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
7596
7798
|
}
|
|
@@ -7616,6 +7818,353 @@ class LocalAppConversationTurn$Type extends MessageType {
|
|
|
7616
7818
|
/* optional string message = 6; */
|
|
7617
7819
|
if (message.message !== undefined)
|
|
7618
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);
|
|
7619
8168
|
let u = options.writeUnknownFields;
|
|
7620
8169
|
if (u !== false)
|
|
7621
8170
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7623,30 +8172,25 @@ class LocalAppConversationTurn$Type extends MessageType {
|
|
|
7623
8172
|
}
|
|
7624
8173
|
}
|
|
7625
8174
|
/**
|
|
7626
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
8175
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppConversationState
|
|
7627
8176
|
*/
|
|
7628
|
-
export const
|
|
8177
|
+
export const LocalAppConversationState = new LocalAppConversationState$Type();
|
|
7629
8178
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7630
|
-
class
|
|
8179
|
+
class CancelLocalAppConversationFollowUpRequest$Type extends MessageType {
|
|
7631
8180
|
constructor() {
|
|
7632
|
-
super("nimi.runtime.v1.
|
|
7633
|
-
{ no: 1, name: "
|
|
7634
|
-
{ no: 2, name: "
|
|
7635
|
-
{ no: 3, name: "
|
|
7636
|
-
{ no: 4, name: "
|
|
7637
|
-
{ no: 5, name: "projection_message_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7638
|
-
{ no: 6, name: "artifact_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7639
|
-
{ no: 7, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] },
|
|
7640
|
-
{ 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*/ }
|
|
7641
8186
|
]);
|
|
7642
8187
|
}
|
|
7643
8188
|
create(value) {
|
|
7644
8189
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7645
|
-
message.
|
|
7646
|
-
message.
|
|
7647
|
-
message.
|
|
7648
|
-
message.
|
|
7649
|
-
message.reasonCode = 0;
|
|
8190
|
+
message.agentHandle = "";
|
|
8191
|
+
message.conversationAnchorId = "";
|
|
8192
|
+
message.taskId = "";
|
|
8193
|
+
message.expectedRevision = "0";
|
|
7650
8194
|
if (value !== undefined)
|
|
7651
8195
|
reflectionMergePartial(this, message, value);
|
|
7652
8196
|
return message;
|
|
@@ -7656,29 +8200,17 @@ class LocalAppConversationAction$Type extends MessageType {
|
|
|
7656
8200
|
while (reader.pos < end) {
|
|
7657
8201
|
let [fieldNo, wireType] = reader.tag();
|
|
7658
8202
|
switch (fieldNo) {
|
|
7659
|
-
case /* string
|
|
7660
|
-
message.
|
|
7661
|
-
break;
|
|
7662
|
-
case /* string turn_id */ 2:
|
|
7663
|
-
message.turnId = reader.string();
|
|
7664
|
-
break;
|
|
7665
|
-
case /* string capability_contract */ 3:
|
|
7666
|
-
message.capabilityContract = reader.string();
|
|
7667
|
-
break;
|
|
7668
|
-
case /* nimi.runtime.v1.LocalAppConversationActionStatus status */ 4:
|
|
7669
|
-
message.status = reader.int32();
|
|
7670
|
-
break;
|
|
7671
|
-
case /* optional string projection_message_id */ 5:
|
|
7672
|
-
message.projectionMessageId = reader.string();
|
|
8203
|
+
case /* string agent_handle */ 1:
|
|
8204
|
+
message.agentHandle = reader.string();
|
|
7673
8205
|
break;
|
|
7674
|
-
case /*
|
|
7675
|
-
message.
|
|
8206
|
+
case /* string conversation_anchor_id */ 2:
|
|
8207
|
+
message.conversationAnchorId = reader.string();
|
|
7676
8208
|
break;
|
|
7677
|
-
case /*
|
|
7678
|
-
message.
|
|
8209
|
+
case /* string task_id */ 3:
|
|
8210
|
+
message.taskId = reader.string();
|
|
7679
8211
|
break;
|
|
7680
|
-
case /*
|
|
7681
|
-
message.
|
|
8212
|
+
case /* uint64 expected_revision */ 4:
|
|
8213
|
+
message.expectedRevision = reader.uint64().toString();
|
|
7682
8214
|
break;
|
|
7683
8215
|
default:
|
|
7684
8216
|
let u = options.readUnknownField;
|
|
@@ -7692,30 +8224,18 @@ class LocalAppConversationAction$Type extends MessageType {
|
|
|
7692
8224
|
return message;
|
|
7693
8225
|
}
|
|
7694
8226
|
internalBinaryWrite(message, writer, options) {
|
|
7695
|
-
/* string
|
|
7696
|
-
if (message.
|
|
7697
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
7698
|
-
/* string
|
|
7699
|
-
if (message.
|
|
7700
|
-
writer.tag(2, WireType.LengthDelimited).string(message.
|
|
7701
|
-
/* string
|
|
7702
|
-
if (message.
|
|
7703
|
-
writer.tag(3, WireType.LengthDelimited).string(message.
|
|
7704
|
-
/*
|
|
7705
|
-
if (message.
|
|
7706
|
-
writer.tag(4, WireType.Varint).
|
|
7707
|
-
/* optional string projection_message_id = 5; */
|
|
7708
|
-
if (message.projectionMessageId !== undefined)
|
|
7709
|
-
writer.tag(5, WireType.LengthDelimited).string(message.projectionMessageId);
|
|
7710
|
-
/* optional string artifact_id = 6; */
|
|
7711
|
-
if (message.artifactId !== undefined)
|
|
7712
|
-
writer.tag(6, WireType.LengthDelimited).string(message.artifactId);
|
|
7713
|
-
/* nimi.runtime.v1.ReasonCode reason_code = 7; */
|
|
7714
|
-
if (message.reasonCode !== 0)
|
|
7715
|
-
writer.tag(7, WireType.Varint).int32(message.reasonCode);
|
|
7716
|
-
/* optional string message = 8; */
|
|
7717
|
-
if (message.message !== undefined)
|
|
7718
|
-
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);
|
|
7719
8239
|
let u = options.writeUnknownFields;
|
|
7720
8240
|
if (u !== false)
|
|
7721
8241
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7723,29 +8243,18 @@ class LocalAppConversationAction$Type extends MessageType {
|
|
|
7723
8243
|
}
|
|
7724
8244
|
}
|
|
7725
8245
|
/**
|
|
7726
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
8246
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.CancelLocalAppConversationFollowUpRequest
|
|
7727
8247
|
*/
|
|
7728
|
-
export const
|
|
8248
|
+
export const CancelLocalAppConversationFollowUpRequest = new CancelLocalAppConversationFollowUpRequest$Type();
|
|
7729
8249
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7730
|
-
class
|
|
8250
|
+
class CancelLocalAppConversationFollowUpResponse$Type extends MessageType {
|
|
7731
8251
|
constructor() {
|
|
7732
|
-
super("nimi.runtime.v1.
|
|
7733
|
-
{ no: 1, name: "
|
|
7734
|
-
{ no: 2, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7735
|
-
{ no: 3, name: "message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7736
|
-
{ no: 4, name: "state", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppConversationVoiceState", LocalAppConversationVoiceState, "LOCAL_APP_CONVERSATION_VOICE_STATE_"] },
|
|
7737
|
-
{ no: 5, name: "artifact_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
7738
|
-
{ no: 6, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] },
|
|
7739
|
-
{ 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 }
|
|
7740
8254
|
]);
|
|
7741
8255
|
}
|
|
7742
8256
|
create(value) {
|
|
7743
8257
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7744
|
-
message.voiceId = "";
|
|
7745
|
-
message.turnId = "";
|
|
7746
|
-
message.messageId = "";
|
|
7747
|
-
message.state = 0;
|
|
7748
|
-
message.reasonCode = 0;
|
|
7749
8258
|
if (value !== undefined)
|
|
7750
8259
|
reflectionMergePartial(this, message, value);
|
|
7751
8260
|
return message;
|
|
@@ -7755,26 +8264,8 @@ class LocalAppConversationVoice$Type extends MessageType {
|
|
|
7755
8264
|
while (reader.pos < end) {
|
|
7756
8265
|
let [fieldNo, wireType] = reader.tag();
|
|
7757
8266
|
switch (fieldNo) {
|
|
7758
|
-
case /*
|
|
7759
|
-
message.
|
|
7760
|
-
break;
|
|
7761
|
-
case /* string turn_id */ 2:
|
|
7762
|
-
message.turnId = reader.string();
|
|
7763
|
-
break;
|
|
7764
|
-
case /* string message_id */ 3:
|
|
7765
|
-
message.messageId = reader.string();
|
|
7766
|
-
break;
|
|
7767
|
-
case /* nimi.runtime.v1.LocalAppConversationVoiceState state */ 4:
|
|
7768
|
-
message.state = reader.int32();
|
|
7769
|
-
break;
|
|
7770
|
-
case /* optional string artifact_id */ 5:
|
|
7771
|
-
message.artifactId = reader.string();
|
|
7772
|
-
break;
|
|
7773
|
-
case /* nimi.runtime.v1.ReasonCode reason_code */ 6:
|
|
7774
|
-
message.reasonCode = reader.int32();
|
|
7775
|
-
break;
|
|
7776
|
-
case /* optional string message */ 7:
|
|
7777
|
-
message.message = reader.string();
|
|
8267
|
+
case /* nimi.runtime.v1.LocalAppConversationState state */ 1:
|
|
8268
|
+
message.state = LocalAppConversationState.internalBinaryRead(reader, reader.uint32(), options, message.state);
|
|
7778
8269
|
break;
|
|
7779
8270
|
default:
|
|
7780
8271
|
let u = options.readUnknownField;
|
|
@@ -7788,27 +8279,9 @@ class LocalAppConversationVoice$Type extends MessageType {
|
|
|
7788
8279
|
return message;
|
|
7789
8280
|
}
|
|
7790
8281
|
internalBinaryWrite(message, writer, options) {
|
|
7791
|
-
/*
|
|
7792
|
-
if (message.
|
|
7793
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
7794
|
-
/* string turn_id = 2; */
|
|
7795
|
-
if (message.turnId !== "")
|
|
7796
|
-
writer.tag(2, WireType.LengthDelimited).string(message.turnId);
|
|
7797
|
-
/* string message_id = 3; */
|
|
7798
|
-
if (message.messageId !== "")
|
|
7799
|
-
writer.tag(3, WireType.LengthDelimited).string(message.messageId);
|
|
7800
|
-
/* nimi.runtime.v1.LocalAppConversationVoiceState state = 4; */
|
|
7801
|
-
if (message.state !== 0)
|
|
7802
|
-
writer.tag(4, WireType.Varint).int32(message.state);
|
|
7803
|
-
/* optional string artifact_id = 5; */
|
|
7804
|
-
if (message.artifactId !== undefined)
|
|
7805
|
-
writer.tag(5, WireType.LengthDelimited).string(message.artifactId);
|
|
7806
|
-
/* nimi.runtime.v1.ReasonCode reason_code = 6; */
|
|
7807
|
-
if (message.reasonCode !== 0)
|
|
7808
|
-
writer.tag(6, WireType.Varint).int32(message.reasonCode);
|
|
7809
|
-
/* optional string message = 7; */
|
|
7810
|
-
if (message.message !== undefined)
|
|
7811
|
-
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();
|
|
7812
8285
|
let u = options.writeUnknownFields;
|
|
7813
8286
|
if (u !== false)
|
|
7814
8287
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7816,9 +8289,9 @@ class LocalAppConversationVoice$Type extends MessageType {
|
|
|
7816
8289
|
}
|
|
7817
8290
|
}
|
|
7818
8291
|
/**
|
|
7819
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
8292
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.CancelLocalAppConversationFollowUpResponse
|
|
7820
8293
|
*/
|
|
7821
|
-
export const
|
|
8294
|
+
export const CancelLocalAppConversationFollowUpResponse = new CancelLocalAppConversationFollowUpResponse$Type();
|
|
7822
8295
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
7823
8296
|
class LocalAppConversationSnapshot$Type extends MessageType {
|
|
7824
8297
|
constructor() {
|
|
@@ -7829,7 +8302,8 @@ class LocalAppConversationSnapshot$Type extends MessageType {
|
|
|
7829
8302
|
{ no: 5, name: "through_sequence", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
7830
8303
|
{ no: 6, name: "turns", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationTurn },
|
|
7831
8304
|
{ no: 7, name: "actions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalAppConversationAction },
|
|
7832
|
-
{ 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 }
|
|
7833
8307
|
]);
|
|
7834
8308
|
}
|
|
7835
8309
|
create(value) {
|
|
@@ -7871,6 +8345,9 @@ class LocalAppConversationSnapshot$Type extends MessageType {
|
|
|
7871
8345
|
case /* repeated nimi.runtime.v1.LocalAppConversationVoice voices */ 8:
|
|
7872
8346
|
message.voices.push(LocalAppConversationVoice.internalBinaryRead(reader, reader.uint32(), options));
|
|
7873
8347
|
break;
|
|
8348
|
+
case /* nimi.runtime.v1.LocalAppConversationState state */ 9:
|
|
8349
|
+
message.state = LocalAppConversationState.internalBinaryRead(reader, reader.uint32(), options, message.state);
|
|
8350
|
+
break;
|
|
7874
8351
|
default:
|
|
7875
8352
|
let u = options.readUnknownField;
|
|
7876
8353
|
if (u === "throw")
|
|
@@ -7904,6 +8381,9 @@ class LocalAppConversationSnapshot$Type extends MessageType {
|
|
|
7904
8381
|
/* repeated nimi.runtime.v1.LocalAppConversationVoice voices = 8; */
|
|
7905
8382
|
for (let i = 0; i < message.voices.length; i++)
|
|
7906
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();
|
|
7907
8387
|
let u = options.writeUnknownFields;
|
|
7908
8388
|
if (u !== false)
|
|
7909
8389
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7964,12 +8444,15 @@ export const GetLocalAppConversationSnapshotResponse = new GetLocalAppConversati
|
|
|
7964
8444
|
class LocalAppConversationTurnAccepted$Type extends MessageType {
|
|
7965
8445
|
constructor() {
|
|
7966
8446
|
super("nimi.runtime.v1.LocalAppConversationTurnAccepted", [
|
|
7967
|
-
{ 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*/ }
|
|
7968
8450
|
]);
|
|
7969
8451
|
}
|
|
7970
8452
|
create(value) {
|
|
7971
8453
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7972
8454
|
message.turnId = "";
|
|
8455
|
+
message.origin = "";
|
|
7973
8456
|
if (value !== undefined)
|
|
7974
8457
|
reflectionMergePartial(this, message, value);
|
|
7975
8458
|
return message;
|
|
@@ -7982,6 +8465,12 @@ class LocalAppConversationTurnAccepted$Type extends MessageType {
|
|
|
7982
8465
|
case /* string turn_id */ 1:
|
|
7983
8466
|
message.turnId = reader.string();
|
|
7984
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;
|
|
7985
8474
|
default:
|
|
7986
8475
|
let u = options.readUnknownField;
|
|
7987
8476
|
if (u === "throw")
|
|
@@ -7997,6 +8486,12 @@ class LocalAppConversationTurnAccepted$Type extends MessageType {
|
|
|
7997
8486
|
/* string turn_id = 1; */
|
|
7998
8487
|
if (message.turnId !== "")
|
|
7999
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);
|
|
8000
8495
|
let u = options.writeUnknownFields;
|
|
8001
8496
|
if (u !== false)
|
|
8002
8497
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -8215,13 +8710,16 @@ class LocalAppConversationTurnCompleted$Type extends MessageType {
|
|
|
8215
8710
|
constructor() {
|
|
8216
8711
|
super("nimi.runtime.v1.LocalAppConversationTurnCompleted", [
|
|
8217
8712
|
{ no: 1, name: "turn_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
8218
|
-
{ 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*/ }
|
|
8219
8716
|
]);
|
|
8220
8717
|
}
|
|
8221
8718
|
create(value) {
|
|
8222
8719
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
8223
8720
|
message.turnId = "";
|
|
8224
8721
|
message.terminalReason = "";
|
|
8722
|
+
message.reasonCode = 0;
|
|
8225
8723
|
if (value !== undefined)
|
|
8226
8724
|
reflectionMergePartial(this, message, value);
|
|
8227
8725
|
return message;
|
|
@@ -8237,6 +8735,12 @@ class LocalAppConversationTurnCompleted$Type extends MessageType {
|
|
|
8237
8735
|
case /* string terminal_reason */ 2:
|
|
8238
8736
|
message.terminalReason = reader.string();
|
|
8239
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;
|
|
8240
8744
|
default:
|
|
8241
8745
|
let u = options.readUnknownField;
|
|
8242
8746
|
if (u === "throw")
|
|
@@ -8255,6 +8759,12 @@ class LocalAppConversationTurnCompleted$Type extends MessageType {
|
|
|
8255
8759
|
/* string terminal_reason = 2; */
|
|
8256
8760
|
if (message.terminalReason !== "")
|
|
8257
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);
|
|
8258
8768
|
let u = options.writeUnknownFields;
|
|
8259
8769
|
if (u !== false)
|
|
8260
8770
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -8761,7 +9271,8 @@ class LocalAppConversationEvent$Type extends MessageType {
|
|
|
8761
9271
|
{ no: 24, name: "text_delta", kind: "message", oneof: "event", T: () => LocalAppConversationTextDelta },
|
|
8762
9272
|
{ no: 25, name: "reasoning_status", kind: "message", oneof: "event", T: () => LocalAppConversationReasoningStatus },
|
|
8763
9273
|
{ no: 26, name: "live_action", kind: "message", oneof: "event", T: () => LocalAppConversationLiveAction },
|
|
8764
|
-
{ 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 }
|
|
8765
9276
|
]);
|
|
8766
9277
|
}
|
|
8767
9278
|
create(value) {
|
|
@@ -8886,6 +9397,12 @@ class LocalAppConversationEvent$Type extends MessageType {
|
|
|
8886
9397
|
liveTool: LocalAppConversationLiveTool.internalBinaryRead(reader, reader.uint32(), options, message.event.liveTool)
|
|
8887
9398
|
};
|
|
8888
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;
|
|
8889
9406
|
default:
|
|
8890
9407
|
let u = options.readUnknownField;
|
|
8891
9408
|
if (u === "throw")
|
|
@@ -8955,6 +9472,9 @@ class LocalAppConversationEvent$Type extends MessageType {
|
|
|
8955
9472
|
/* nimi.runtime.v1.LocalAppConversationLiveTool live_tool = 27; */
|
|
8956
9473
|
if (message.event.oneofKind === "liveTool")
|
|
8957
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();
|
|
8958
9478
|
let u = options.writeUnknownFields;
|
|
8959
9479
|
if (u !== false)
|
|
8960
9480
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -10503,6 +11023,98 @@ class ListPortableAIProfilesResponse$Type extends MessageType {
|
|
|
10503
11023
|
*/
|
|
10504
11024
|
export const ListPortableAIProfilesResponse = new ListPortableAIProfilesResponse$Type();
|
|
10505
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
|
|
10506
11118
|
class OpenLocalAppAgentRealtimeRequest$Type extends MessageType {
|
|
10507
11119
|
constructor() {
|
|
10508
11120
|
super("nimi.runtime.v1.OpenLocalAppAgentRealtimeRequest", [
|