@nimiplatform/sdk 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -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-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
|
@@ -881,17 +881,22 @@ class LocalAppAgentAutonomyConfig$Type extends MessageType {
|
|
|
881
881
|
constructor() {
|
|
882
882
|
super("nimi.runtime.v1.LocalAppAgentAutonomyConfig", [
|
|
883
883
|
{ no: 1, name: "daily_token_budget", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
884
|
-
{ no:
|
|
885
|
-
{ no:
|
|
884
|
+
{ no: 9, name: "max_background_output_tokens", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
885
|
+
{ no: 11, name: "min_planning_interval", kind: "message", T: () => Duration },
|
|
886
886
|
{ no: 4, name: "suspend_until", kind: "message", T: () => Timestamp },
|
|
887
|
-
{ no: 5, name: "mode", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppAgentAutonomyMode", LocalAppAgentAutonomyMode, "LOCAL_APP_AGENT_AUTONOMY_MODE_"] }
|
|
887
|
+
{ no: 5, name: "mode", kind: "enum", T: () => ["nimi.runtime.v1.LocalAppAgentAutonomyMode", LocalAppAgentAutonomyMode, "LOCAL_APP_AGENT_AUTONOMY_MODE_"] },
|
|
888
|
+
{ no: 6, name: "free_contact_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
889
|
+
{ no: 7, name: "quiet_hours", kind: "message", T: () => AgentContactQuietHours },
|
|
890
|
+
{ no: 8, name: "max_free_contacts_per_day", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
888
891
|
]);
|
|
889
892
|
}
|
|
890
893
|
create(value) {
|
|
891
894
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
892
895
|
message.dailyTokenBudget = "0";
|
|
893
|
-
message.
|
|
896
|
+
message.maxBackgroundOutputTokens = "0";
|
|
894
897
|
message.mode = 0;
|
|
898
|
+
message.freeContactEnabled = false;
|
|
899
|
+
message.maxFreeContactsPerDay = 0;
|
|
895
900
|
if (value !== undefined)
|
|
896
901
|
reflectionMergePartial(this, message, value);
|
|
897
902
|
return message;
|
|
@@ -904,11 +909,11 @@ class LocalAppAgentAutonomyConfig$Type extends MessageType {
|
|
|
904
909
|
case /* int64 daily_token_budget */ 1:
|
|
905
910
|
message.dailyTokenBudget = reader.int64().toString();
|
|
906
911
|
break;
|
|
907
|
-
case /* int64
|
|
908
|
-
message.
|
|
912
|
+
case /* int64 max_background_output_tokens */ 9:
|
|
913
|
+
message.maxBackgroundOutputTokens = reader.int64().toString();
|
|
909
914
|
break;
|
|
910
|
-
case /* google.protobuf.Duration
|
|
911
|
-
message.
|
|
915
|
+
case /* google.protobuf.Duration min_planning_interval */ 11:
|
|
916
|
+
message.minPlanningInterval = Duration.internalBinaryRead(reader, reader.uint32(), options, message.minPlanningInterval);
|
|
912
917
|
break;
|
|
913
918
|
case /* google.protobuf.Timestamp suspend_until */ 4:
|
|
914
919
|
message.suspendUntil = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.suspendUntil);
|
|
@@ -916,6 +921,15 @@ class LocalAppAgentAutonomyConfig$Type extends MessageType {
|
|
|
916
921
|
case /* nimi.runtime.v1.LocalAppAgentAutonomyMode mode */ 5:
|
|
917
922
|
message.mode = reader.int32();
|
|
918
923
|
break;
|
|
924
|
+
case /* bool free_contact_enabled */ 6:
|
|
925
|
+
message.freeContactEnabled = reader.bool();
|
|
926
|
+
break;
|
|
927
|
+
case /* nimi.runtime.v1.AgentContactQuietHours quiet_hours */ 7:
|
|
928
|
+
message.quietHours = AgentContactQuietHours.internalBinaryRead(reader, reader.uint32(), options, message.quietHours);
|
|
929
|
+
break;
|
|
930
|
+
case /* uint32 max_free_contacts_per_day */ 8:
|
|
931
|
+
message.maxFreeContactsPerDay = reader.uint32();
|
|
932
|
+
break;
|
|
919
933
|
default:
|
|
920
934
|
let u = options.readUnknownField;
|
|
921
935
|
if (u === "throw")
|
|
@@ -931,18 +945,27 @@ class LocalAppAgentAutonomyConfig$Type extends MessageType {
|
|
|
931
945
|
/* int64 daily_token_budget = 1; */
|
|
932
946
|
if (message.dailyTokenBudget !== "0")
|
|
933
947
|
writer.tag(1, WireType.Varint).int64(message.dailyTokenBudget);
|
|
934
|
-
/* int64 max_tokens_per_hook = 2; */
|
|
935
|
-
if (message.maxTokensPerHook !== "0")
|
|
936
|
-
writer.tag(2, WireType.Varint).int64(message.maxTokensPerHook);
|
|
937
|
-
/* google.protobuf.Duration min_hook_interval = 3; */
|
|
938
|
-
if (message.minHookInterval)
|
|
939
|
-
Duration.internalBinaryWrite(message.minHookInterval, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
940
948
|
/* google.protobuf.Timestamp suspend_until = 4; */
|
|
941
949
|
if (message.suspendUntil)
|
|
942
950
|
Timestamp.internalBinaryWrite(message.suspendUntil, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
943
951
|
/* nimi.runtime.v1.LocalAppAgentAutonomyMode mode = 5; */
|
|
944
952
|
if (message.mode !== 0)
|
|
945
953
|
writer.tag(5, WireType.Varint).int32(message.mode);
|
|
954
|
+
/* bool free_contact_enabled = 6; */
|
|
955
|
+
if (message.freeContactEnabled !== false)
|
|
956
|
+
writer.tag(6, WireType.Varint).bool(message.freeContactEnabled);
|
|
957
|
+
/* nimi.runtime.v1.AgentContactQuietHours quiet_hours = 7; */
|
|
958
|
+
if (message.quietHours)
|
|
959
|
+
AgentContactQuietHours.internalBinaryWrite(message.quietHours, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
960
|
+
/* uint32 max_free_contacts_per_day = 8; */
|
|
961
|
+
if (message.maxFreeContactsPerDay !== 0)
|
|
962
|
+
writer.tag(8, WireType.Varint).uint32(message.maxFreeContactsPerDay);
|
|
963
|
+
/* int64 max_background_output_tokens = 9; */
|
|
964
|
+
if (message.maxBackgroundOutputTokens !== "0")
|
|
965
|
+
writer.tag(9, WireType.Varint).int64(message.maxBackgroundOutputTokens);
|
|
966
|
+
/* google.protobuf.Duration min_planning_interval = 11; */
|
|
967
|
+
if (message.minPlanningInterval)
|
|
968
|
+
Duration.internalBinaryWrite(message.minPlanningInterval, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
946
969
|
let u = options.writeUnknownFields;
|
|
947
970
|
if (u !== false)
|
|
948
971
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -954,6 +977,69 @@ class LocalAppAgentAutonomyConfig$Type extends MessageType {
|
|
|
954
977
|
*/
|
|
955
978
|
export const LocalAppAgentAutonomyConfig = new LocalAppAgentAutonomyConfig$Type();
|
|
956
979
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
980
|
+
class AgentContactQuietHours$Type extends MessageType {
|
|
981
|
+
constructor() {
|
|
982
|
+
super("nimi.runtime.v1.AgentContactQuietHours", [
|
|
983
|
+
{ no: 1, name: "timezone", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
984
|
+
{ no: 2, name: "start_minute", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
985
|
+
{ no: 3, name: "end_minute", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
986
|
+
]);
|
|
987
|
+
}
|
|
988
|
+
create(value) {
|
|
989
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
990
|
+
message.timezone = "";
|
|
991
|
+
message.startMinute = 0;
|
|
992
|
+
message.endMinute = 0;
|
|
993
|
+
if (value !== undefined)
|
|
994
|
+
reflectionMergePartial(this, message, value);
|
|
995
|
+
return message;
|
|
996
|
+
}
|
|
997
|
+
internalBinaryRead(reader, length, options, target) {
|
|
998
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
999
|
+
while (reader.pos < end) {
|
|
1000
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1001
|
+
switch (fieldNo) {
|
|
1002
|
+
case /* string timezone */ 1:
|
|
1003
|
+
message.timezone = reader.string();
|
|
1004
|
+
break;
|
|
1005
|
+
case /* uint32 start_minute */ 2:
|
|
1006
|
+
message.startMinute = reader.uint32();
|
|
1007
|
+
break;
|
|
1008
|
+
case /* uint32 end_minute */ 3:
|
|
1009
|
+
message.endMinute = reader.uint32();
|
|
1010
|
+
break;
|
|
1011
|
+
default:
|
|
1012
|
+
let u = options.readUnknownField;
|
|
1013
|
+
if (u === "throw")
|
|
1014
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1015
|
+
let d = reader.skip(wireType);
|
|
1016
|
+
if (u !== false)
|
|
1017
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
return message;
|
|
1021
|
+
}
|
|
1022
|
+
internalBinaryWrite(message, writer, options) {
|
|
1023
|
+
/* string timezone = 1; */
|
|
1024
|
+
if (message.timezone !== "")
|
|
1025
|
+
writer.tag(1, WireType.LengthDelimited).string(message.timezone);
|
|
1026
|
+
/* uint32 start_minute = 2; */
|
|
1027
|
+
if (message.startMinute !== 0)
|
|
1028
|
+
writer.tag(2, WireType.Varint).uint32(message.startMinute);
|
|
1029
|
+
/* uint32 end_minute = 3; */
|
|
1030
|
+
if (message.endMinute !== 0)
|
|
1031
|
+
writer.tag(3, WireType.Varint).uint32(message.endMinute);
|
|
1032
|
+
let u = options.writeUnknownFields;
|
|
1033
|
+
if (u !== false)
|
|
1034
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1035
|
+
return writer;
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.AgentContactQuietHours
|
|
1040
|
+
*/
|
|
1041
|
+
export const AgentContactQuietHours = new AgentContactQuietHours$Type();
|
|
1042
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
957
1043
|
class LocalAppAgentAutonomyProjection$Type extends MessageType {
|
|
958
1044
|
constructor() {
|
|
959
1045
|
super("nimi.runtime.v1.LocalAppAgentAutonomyProjection", [
|
|
@@ -1300,6 +1386,233 @@ class LocalAppAgentUpdateAutonomyResponse$Type extends MessageType {
|
|
|
1300
1386
|
*/
|
|
1301
1387
|
export const LocalAppAgentUpdateAutonomyResponse = new LocalAppAgentUpdateAutonomyResponse$Type();
|
|
1302
1388
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1389
|
+
class LocalAppAgentConversationContextProjection$Type extends MessageType {
|
|
1390
|
+
constructor() {
|
|
1391
|
+
super("nimi.runtime.v1.LocalAppAgentConversationContextProjection", [
|
|
1392
|
+
{ no: 1, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1393
|
+
{ no: 2, name: "context_revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1394
|
+
{ no: 3, name: "first_turn_sequence", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1395
|
+
{ no: 4, name: "omit_supplemental_context", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1396
|
+
{ no: 5, name: "committed_turn_count", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1397
|
+
{ no: 6, name: "suggested_first_turn_sequence", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
1398
|
+
{ no: 7, name: "busy", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1399
|
+
{ no: 8, name: "can_update", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1400
|
+
]);
|
|
1401
|
+
}
|
|
1402
|
+
create(value) {
|
|
1403
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1404
|
+
message.conversationAnchorId = "";
|
|
1405
|
+
message.contextRevision = "0";
|
|
1406
|
+
message.firstTurnSequence = "0";
|
|
1407
|
+
message.omitSupplementalContext = false;
|
|
1408
|
+
message.committedTurnCount = "0";
|
|
1409
|
+
message.busy = false;
|
|
1410
|
+
message.canUpdate = false;
|
|
1411
|
+
if (value !== undefined)
|
|
1412
|
+
reflectionMergePartial(this, message, value);
|
|
1413
|
+
return message;
|
|
1414
|
+
}
|
|
1415
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1416
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1417
|
+
while (reader.pos < end) {
|
|
1418
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1419
|
+
switch (fieldNo) {
|
|
1420
|
+
case /* string conversation_anchor_id */ 1:
|
|
1421
|
+
message.conversationAnchorId = reader.string();
|
|
1422
|
+
break;
|
|
1423
|
+
case /* uint64 context_revision */ 2:
|
|
1424
|
+
message.contextRevision = reader.uint64().toString();
|
|
1425
|
+
break;
|
|
1426
|
+
case /* uint64 first_turn_sequence */ 3:
|
|
1427
|
+
message.firstTurnSequence = reader.uint64().toString();
|
|
1428
|
+
break;
|
|
1429
|
+
case /* bool omit_supplemental_context */ 4:
|
|
1430
|
+
message.omitSupplementalContext = reader.bool();
|
|
1431
|
+
break;
|
|
1432
|
+
case /* uint64 committed_turn_count */ 5:
|
|
1433
|
+
message.committedTurnCount = reader.uint64().toString();
|
|
1434
|
+
break;
|
|
1435
|
+
case /* optional uint64 suggested_first_turn_sequence */ 6:
|
|
1436
|
+
message.suggestedFirstTurnSequence = reader.uint64().toString();
|
|
1437
|
+
break;
|
|
1438
|
+
case /* bool busy */ 7:
|
|
1439
|
+
message.busy = reader.bool();
|
|
1440
|
+
break;
|
|
1441
|
+
case /* bool can_update */ 8:
|
|
1442
|
+
message.canUpdate = reader.bool();
|
|
1443
|
+
break;
|
|
1444
|
+
default:
|
|
1445
|
+
let u = options.readUnknownField;
|
|
1446
|
+
if (u === "throw")
|
|
1447
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1448
|
+
let d = reader.skip(wireType);
|
|
1449
|
+
if (u !== false)
|
|
1450
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
return message;
|
|
1454
|
+
}
|
|
1455
|
+
internalBinaryWrite(message, writer, options) {
|
|
1456
|
+
/* string conversation_anchor_id = 1; */
|
|
1457
|
+
if (message.conversationAnchorId !== "")
|
|
1458
|
+
writer.tag(1, WireType.LengthDelimited).string(message.conversationAnchorId);
|
|
1459
|
+
/* uint64 context_revision = 2; */
|
|
1460
|
+
if (message.contextRevision !== "0")
|
|
1461
|
+
writer.tag(2, WireType.Varint).uint64(message.contextRevision);
|
|
1462
|
+
/* uint64 first_turn_sequence = 3; */
|
|
1463
|
+
if (message.firstTurnSequence !== "0")
|
|
1464
|
+
writer.tag(3, WireType.Varint).uint64(message.firstTurnSequence);
|
|
1465
|
+
/* bool omit_supplemental_context = 4; */
|
|
1466
|
+
if (message.omitSupplementalContext !== false)
|
|
1467
|
+
writer.tag(4, WireType.Varint).bool(message.omitSupplementalContext);
|
|
1468
|
+
/* uint64 committed_turn_count = 5; */
|
|
1469
|
+
if (message.committedTurnCount !== "0")
|
|
1470
|
+
writer.tag(5, WireType.Varint).uint64(message.committedTurnCount);
|
|
1471
|
+
/* optional uint64 suggested_first_turn_sequence = 6; */
|
|
1472
|
+
if (message.suggestedFirstTurnSequence !== undefined)
|
|
1473
|
+
writer.tag(6, WireType.Varint).uint64(message.suggestedFirstTurnSequence);
|
|
1474
|
+
/* bool busy = 7; */
|
|
1475
|
+
if (message.busy !== false)
|
|
1476
|
+
writer.tag(7, WireType.Varint).bool(message.busy);
|
|
1477
|
+
/* bool can_update = 8; */
|
|
1478
|
+
if (message.canUpdate !== false)
|
|
1479
|
+
writer.tag(8, WireType.Varint).bool(message.canUpdate);
|
|
1480
|
+
let u = options.writeUnknownFields;
|
|
1481
|
+
if (u !== false)
|
|
1482
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1483
|
+
return writer;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
/**
|
|
1487
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.LocalAppAgentConversationContextProjection
|
|
1488
|
+
*/
|
|
1489
|
+
export const LocalAppAgentConversationContextProjection = new LocalAppAgentConversationContextProjection$Type();
|
|
1490
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1491
|
+
class UpdateLocalAppAgentConversationContextRequest$Type extends MessageType {
|
|
1492
|
+
constructor() {
|
|
1493
|
+
super("nimi.runtime.v1.UpdateLocalAppAgentConversationContextRequest", [
|
|
1494
|
+
{ no: 1, name: "agent_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1495
|
+
{ no: 2, name: "conversation_anchor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1496
|
+
{ no: 3, name: "expected_context_revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1497
|
+
{ no: 4, name: "first_turn_sequence", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1498
|
+
{ no: 5, name: "omit_supplemental_context", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1499
|
+
]);
|
|
1500
|
+
}
|
|
1501
|
+
create(value) {
|
|
1502
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1503
|
+
message.agentHandle = "";
|
|
1504
|
+
message.conversationAnchorId = "";
|
|
1505
|
+
message.expectedContextRevision = "0";
|
|
1506
|
+
message.firstTurnSequence = "0";
|
|
1507
|
+
message.omitSupplementalContext = false;
|
|
1508
|
+
if (value !== undefined)
|
|
1509
|
+
reflectionMergePartial(this, message, value);
|
|
1510
|
+
return message;
|
|
1511
|
+
}
|
|
1512
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1513
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1514
|
+
while (reader.pos < end) {
|
|
1515
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1516
|
+
switch (fieldNo) {
|
|
1517
|
+
case /* string agent_handle */ 1:
|
|
1518
|
+
message.agentHandle = reader.string();
|
|
1519
|
+
break;
|
|
1520
|
+
case /* string conversation_anchor_id */ 2:
|
|
1521
|
+
message.conversationAnchorId = reader.string();
|
|
1522
|
+
break;
|
|
1523
|
+
case /* uint64 expected_context_revision */ 3:
|
|
1524
|
+
message.expectedContextRevision = reader.uint64().toString();
|
|
1525
|
+
break;
|
|
1526
|
+
case /* uint64 first_turn_sequence */ 4:
|
|
1527
|
+
message.firstTurnSequence = reader.uint64().toString();
|
|
1528
|
+
break;
|
|
1529
|
+
case /* bool omit_supplemental_context */ 5:
|
|
1530
|
+
message.omitSupplementalContext = reader.bool();
|
|
1531
|
+
break;
|
|
1532
|
+
default:
|
|
1533
|
+
let u = options.readUnknownField;
|
|
1534
|
+
if (u === "throw")
|
|
1535
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1536
|
+
let d = reader.skip(wireType);
|
|
1537
|
+
if (u !== false)
|
|
1538
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
return message;
|
|
1542
|
+
}
|
|
1543
|
+
internalBinaryWrite(message, writer, options) {
|
|
1544
|
+
/* string agent_handle = 1; */
|
|
1545
|
+
if (message.agentHandle !== "")
|
|
1546
|
+
writer.tag(1, WireType.LengthDelimited).string(message.agentHandle);
|
|
1547
|
+
/* string conversation_anchor_id = 2; */
|
|
1548
|
+
if (message.conversationAnchorId !== "")
|
|
1549
|
+
writer.tag(2, WireType.LengthDelimited).string(message.conversationAnchorId);
|
|
1550
|
+
/* uint64 expected_context_revision = 3; */
|
|
1551
|
+
if (message.expectedContextRevision !== "0")
|
|
1552
|
+
writer.tag(3, WireType.Varint).uint64(message.expectedContextRevision);
|
|
1553
|
+
/* uint64 first_turn_sequence = 4; */
|
|
1554
|
+
if (message.firstTurnSequence !== "0")
|
|
1555
|
+
writer.tag(4, WireType.Varint).uint64(message.firstTurnSequence);
|
|
1556
|
+
/* bool omit_supplemental_context = 5; */
|
|
1557
|
+
if (message.omitSupplementalContext !== false)
|
|
1558
|
+
writer.tag(5, WireType.Varint).bool(message.omitSupplementalContext);
|
|
1559
|
+
let u = options.writeUnknownFields;
|
|
1560
|
+
if (u !== false)
|
|
1561
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1562
|
+
return writer;
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.UpdateLocalAppAgentConversationContextRequest
|
|
1567
|
+
*/
|
|
1568
|
+
export const UpdateLocalAppAgentConversationContextRequest = new UpdateLocalAppAgentConversationContextRequest$Type();
|
|
1569
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1570
|
+
class UpdateLocalAppAgentConversationContextResponse$Type extends MessageType {
|
|
1571
|
+
constructor() {
|
|
1572
|
+
super("nimi.runtime.v1.UpdateLocalAppAgentConversationContextResponse", [
|
|
1573
|
+
{ no: 1, name: "projection", kind: "message", T: () => LocalAppAgentConversationContextProjection }
|
|
1574
|
+
]);
|
|
1575
|
+
}
|
|
1576
|
+
create(value) {
|
|
1577
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1578
|
+
if (value !== undefined)
|
|
1579
|
+
reflectionMergePartial(this, message, value);
|
|
1580
|
+
return message;
|
|
1581
|
+
}
|
|
1582
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1583
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1584
|
+
while (reader.pos < end) {
|
|
1585
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1586
|
+
switch (fieldNo) {
|
|
1587
|
+
case /* nimi.runtime.v1.LocalAppAgentConversationContextProjection projection */ 1:
|
|
1588
|
+
message.projection = LocalAppAgentConversationContextProjection.internalBinaryRead(reader, reader.uint32(), options, message.projection);
|
|
1589
|
+
break;
|
|
1590
|
+
default:
|
|
1591
|
+
let u = options.readUnknownField;
|
|
1592
|
+
if (u === "throw")
|
|
1593
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1594
|
+
let d = reader.skip(wireType);
|
|
1595
|
+
if (u !== false)
|
|
1596
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
return message;
|
|
1600
|
+
}
|
|
1601
|
+
internalBinaryWrite(message, writer, options) {
|
|
1602
|
+
/* nimi.runtime.v1.LocalAppAgentConversationContextProjection projection = 1; */
|
|
1603
|
+
if (message.projection)
|
|
1604
|
+
LocalAppAgentConversationContextProjection.internalBinaryWrite(message.projection, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1605
|
+
let u = options.writeUnknownFields;
|
|
1606
|
+
if (u !== false)
|
|
1607
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1608
|
+
return writer;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.UpdateLocalAppAgentConversationContextResponse
|
|
1613
|
+
*/
|
|
1614
|
+
export const UpdateLocalAppAgentConversationContextResponse = new UpdateLocalAppAgentConversationContextResponse$Type();
|
|
1615
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1303
1616
|
class LocalAppAgentPresentationProjection$Type extends MessageType {
|
|
1304
1617
|
constructor() {
|
|
1305
1618
|
super("nimi.runtime.v1.LocalAppAgentPresentationProjection", [
|