@nimiplatform/sdk 0.24.0-rc.11 → 0.24.0-rc.13
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 +49 -35
- package/README.md +2 -0
- package/dist/core/ai/capability-configuration-local-intent.d.ts +5 -0
- package/dist/core/ai/capability-configuration-local-intent.d.ts.map +1 -1
- package/dist/core/ai/capability-configuration-local-intent.js +25 -0
- package/dist/core/ai/capability-configuration-local-intent.js.map +1 -1
- package/dist/core/ai/capability-configuration.d.ts +58 -0
- package/dist/core/ai/capability-configuration.d.ts.map +1 -1
- package/dist/core/ai/capability-configuration.js +132 -11
- package/dist/core/ai/capability-configuration.js.map +1 -1
- package/dist/core/ai/config-profile.d.ts +8 -0
- package/dist/core/ai/config-profile.d.ts.map +1 -1
- package/dist/core/ai/config-profile.js +17 -0
- package/dist/core/ai/config-profile.js.map +1 -1
- package/dist/core/ai/embeddings.js +2 -0
- package/dist/core/ai/embeddings.js.map +1 -1
- package/dist/core/ai/index.d.ts +1 -0
- package/dist/core/ai/index.d.ts.map +1 -1
- package/dist/core/ai/index.js +59 -5
- package/dist/core/ai/index.js.map +1 -1
- package/dist/core/ai/local-app-model.d.ts.map +1 -1
- package/dist/core/ai/local-app-model.js +107 -14
- package/dist/core/ai/local-app-model.js.map +1 -1
- package/dist/core/ai/profile-authoring.d.ts +6 -1
- package/dist/core/ai/profile-authoring.d.ts.map +1 -1
- package/dist/core/ai/profile-authoring.js +68 -20
- package/dist/core/ai/profile-authoring.js.map +1 -1
- package/dist/core/ai/runtime-model.d.ts.map +1 -1
- package/dist/core/ai/runtime-model.js +174 -15
- package/dist/core/ai/runtime-model.js.map +1 -1
- package/dist/core/ai/text-runner.d.ts +1 -0
- package/dist/core/ai/text-runner.d.ts.map +1 -1
- package/dist/core/ai/text-runner.js +63 -4
- package/dist/core/ai/text-runner.js.map +1 -1
- package/dist/core/app/desktop-open.d.ts +1 -1
- package/dist/core/app/desktop-open.d.ts.map +1 -1
- package/dist/core/app/desktop-open.js +0 -1
- package/dist/core/app/desktop-open.js.map +1 -1
- package/dist/core/app/host-locale.d.ts +26 -0
- package/dist/core/app/host-locale.d.ts.map +1 -0
- package/dist/core/app/host-locale.js +141 -0
- package/dist/core/app/host-locale.js.map +1 -0
- package/dist/core/app/index.d.ts +4 -0
- package/dist/core/app/index.d.ts.map +1 -1
- package/dist/core/app/index.js +3 -0
- package/dist/core/app/index.js.map +1 -1
- package/dist/core/app/local-app-agent-session.d.ts +32 -0
- package/dist/core/app/local-app-agent-session.d.ts.map +1 -0
- package/dist/core/app/local-app-agent-session.js +134 -0
- package/dist/core/app/local-app-agent-session.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-ai-config.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai-config.js +102 -7
- package/dist/core/app/local-app-runtime-platform-ai-config.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.js +19 -13
- package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-configure.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-configure.js +148 -6
- package/dist/core/app/local-app-runtime-platform-configure.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-realm-realtime.d.ts +2 -2
- package/dist/core/app/local-app-runtime-platform-direct-realm-realtime.js +0 -4
- package/dist/core/app/local-app-runtime-platform-direct-realm-realtime.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-realtime-shared.d.ts +1 -1
- package/dist/core/app/local-app-runtime-platform-realm-realtime.d.ts +2 -5
- 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 +4 -8
- package/dist/core/app/local-app-runtime-platform-realm-realtime.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-validation.d.ts +0 -1
- package/dist/core/app/local-app-runtime-platform-validation.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-validation.js +0 -51
- package/dist/core/app/local-app-runtime-platform-validation.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-vision.d.ts +3 -1
- package/dist/core/app/local-app-runtime-platform-vision.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-vision.js +35 -1
- package/dist/core/app/local-app-runtime-platform-vision.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform.d.ts +5 -0
- package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform.js +36 -2
- package/dist/core/app/local-app-runtime-platform.js.map +1 -1
- package/dist/core/app/local-app-transcription.d.ts +2 -0
- package/dist/core/app/local-app-transcription.d.ts.map +1 -1
- package/dist/core/app/local-app-transcription.js +17 -0
- package/dist/core/app/local-app-transcription.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 +2 -9
- package/dist/core/app/runtime-account-realm-source-readiness.generated.js.map +1 -1
- package/dist/core/contracts/primitives.d.ts +3 -0
- package/dist/core/contracts/primitives.d.ts.map +1 -1
- package/dist/core/contracts/primitives.js.map +1 -1
- package/dist/core-generated/realm-client.d.ts.map +1 -1
- package/dist/core-generated/realm-client.js +6 -330
- package/dist/core-generated/realm-client.js.map +1 -1
- package/dist/core-generated/realm-typed-client.d.ts +78 -1035
- package/dist/core-generated/realm-typed-client.d.ts.map +1 -1
- package/dist/core-generated/realm-typed-client.js +13 -683
- 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 +256 -0
- package/dist/core-generated/runtime-client.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_configure.d.ts +28 -0
- 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 +45 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_configure.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts +28 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js +45 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_session.d.ts +2190 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_session.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_session.js +4707 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_session.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +7 -3
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +4 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +141 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +298 -4
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +334 -3
- 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 +698 -2
- 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 +61 -0
- 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 +133 -4
- 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 +29 -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 +28 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/external_executor.d.ts +1016 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/external_executor.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/external_executor.js +1950 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/external_executor.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +84 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +171 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts +12 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js +26 -2
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/realm_realtime.d.ts +1 -38
- 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 +0 -69
- package/dist/core-generated/runtime-protobuf/runtime/v1/realm_realtime.js.map +1 -1
- package/dist/core-generated/runtime-public-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-client.js +248 -0
- package/dist/core-generated/runtime-public-client.js.map +1 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.js +31 -0
- package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.d.ts +34 -1
- package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.js +34 -1
- 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 +32 -0
- package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-typed-client.d.ts +45 -7
- package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-typed-client.js +322 -0
- package/dist/core-generated/runtime-typed-client.js.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.d.ts +36 -2
- package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.js +36 -2
- package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
- package/dist/features/generation/index.d.ts.map +1 -1
- package/dist/features/generation/index.js +5 -3
- package/dist/features/generation/index.js.map +1 -1
- package/dist/realm/auth.d.ts +2 -8
- package/dist/realm/auth.d.ts.map +1 -1
- package/dist/realm/auth.js +1 -36
- package/dist/realm/auth.js.map +1 -1
- package/dist/realm/index.d.ts +2 -5
- package/dist/realm/index.d.ts.map +1 -1
- package/dist/realm/index.js +1 -12
- package/dist/realm/index.js.map +1 -1
- package/dist/realm/runtime-client.d.ts +1 -1
- package/dist/realm/runtime-client.d.ts.map +1 -1
- package/dist/realm/runtime-client.js +14 -9
- package/dist/realm/runtime-client.js.map +1 -1
- package/dist/realm/social.d.ts.map +1 -1
- package/dist/realm/social.js +1 -2
- package/dist/realm/social.js.map +1 -1
- package/dist/runtime/desktop-first-party-runtime.d.ts +3 -1
- package/dist/runtime/desktop-first-party-runtime.d.ts.map +1 -1
- package/dist/runtime/desktop-first-party-runtime.js +57 -36
- package/dist/runtime/desktop-first-party-runtime.js.map +1 -1
- package/dist/runtime/electron-ipc.d.ts +3 -1
- package/dist/runtime/electron-ipc.d.ts.map +1 -1
- package/dist/runtime/electron-ipc.js +60 -5
- package/dist/runtime/electron-ipc.js.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +107 -3
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js +29 -3
- 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/immediate-execution-outcome.d.ts +51 -0
- package/dist/runtime/immediate-execution-outcome.d.ts.map +1 -0
- package/dist/runtime/immediate-execution-outcome.js +400 -0
- package/dist/runtime/immediate-execution-outcome.js.map +1 -0
- package/dist/runtime/index.d.ts +5 -7
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +17 -11
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/node-grpc-errors.d.ts.map +1 -1
- package/dist/runtime/node-grpc-errors.js +36 -14
- package/dist/runtime/node-grpc-errors.js.map +1 -1
- package/dist/runtime/node-grpc.d.ts.map +1 -1
- package/dist/runtime/node-grpc.js +107 -15
- package/dist/runtime/node-grpc.js.map +1 -1
- package/dist/runtime/reason-messages.d.ts.map +1 -1
- package/dist/runtime/reason-messages.js +7 -3
- package/dist/runtime/reason-messages.js.map +1 -1
- package/dist/runtime/remote-app.d.ts.map +1 -1
- package/dist/runtime/remote-data-channel.d.ts.map +1 -1
- package/dist/runtime/remote-data-channel.js +36 -4
- package/dist/runtime/remote-data-channel.js.map +1 -1
- package/dist/runtime/remote-realm.d.ts.map +1 -1
- package/dist/runtime/remote-realm.js +6 -1
- package/dist/runtime/remote-realm.js.map +1 -1
- package/dist/runtime/remote.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-types.d.ts +2 -0
- 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 +2 -0
- package/dist/runtime/runtime-local-environment-client.js.map +1 -1
- package/dist/runtime/runtime-local-recommendation-types.d.ts +1 -0
- package/dist/runtime/runtime-local-recommendation-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-recommendation.d.ts.map +1 -1
- package/dist/runtime/runtime-local-recommendation.js +2 -0
- package/dist/runtime/runtime-local-recommendation.js.map +1 -1
- package/dist/runtime/runtime-method-modules.d.ts +2 -0
- package/dist/runtime/runtime-method-modules.d.ts.map +1 -1
- package/dist/runtime/runtime-method-modules.js +23 -0
- package/dist/runtime/runtime-method-modules.js.map +1 -1
- package/dist/runtime/shared-local-agent-ai-config.d.ts.map +1 -1
- package/dist/runtime/shared-local-agent-ai-config.js +110 -5
- package/dist/runtime/shared-local-agent-ai-config.js.map +1 -1
- package/dist/runtime/wire-types/agent-participation-types.d.ts +2 -0
- package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts +35 -5
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.js +38 -3
- package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-types.d.ts +6 -4
- package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-enums.d.ts +30 -0
- package/dist/runtime/wire-types/identity-app-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-enums.js +35 -0
- package/dist/runtime/wire-types/identity-app-enums.js.map +1 -1
- package/dist/runtime/wire-types/identity-app-types.d.ts +2 -2
- package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts +8 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.js +7 -0
- package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
- package/dist/types/errors.d.ts +2 -1
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +11 -5
- package/dist/types/errors.js.map +1 -1
- package/package.json +2 -1
- package/dist/runtime/tauri-ipc.d.ts +0 -26
- package/dist/runtime/tauri-ipc.d.ts.map +0 -1
- package/dist/runtime/tauri-ipc.js +0 -475
- package/dist/runtime/tauri-ipc.js.map +0 -1
|
@@ -4293,4 +4293,175 @@ class ReconcileProductControlFirstRunSetupStateRequest$Type extends MessageType
|
|
|
4293
4293
|
* @generated MessageType for protobuf message nimi.runtime.v1.ReconcileProductControlFirstRunSetupStateRequest
|
|
4294
4294
|
*/
|
|
4295
4295
|
export const ReconcileProductControlFirstRunSetupStateRequest = new ReconcileProductControlFirstRunSetupStateRequest$Type();
|
|
4296
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
4297
|
+
class ImportSelectedModelFileRequest$Type extends MessageType {
|
|
4298
|
+
constructor() {
|
|
4299
|
+
super("nimi.runtime.v1.ImportSelectedModelFileRequest", [
|
|
4300
|
+
{ no: 1, name: "header", kind: "message", oneof: "frame", T: () => ImportSelectedModelFileRequest_Header },
|
|
4301
|
+
{ no: 2, name: "data", kind: "scalar", oneof: "frame", T: 12 /*ScalarType.BYTES*/ },
|
|
4302
|
+
{ no: 3, name: "seal", kind: "scalar", oneof: "frame", T: 8 /*ScalarType.BOOL*/ }
|
|
4303
|
+
]);
|
|
4304
|
+
}
|
|
4305
|
+
create(value) {
|
|
4306
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
4307
|
+
message.frame = { oneofKind: undefined };
|
|
4308
|
+
if (value !== undefined)
|
|
4309
|
+
reflectionMergePartial(this, message, value);
|
|
4310
|
+
return message;
|
|
4311
|
+
}
|
|
4312
|
+
internalBinaryRead(reader, length, options, target) {
|
|
4313
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4314
|
+
while (reader.pos < end) {
|
|
4315
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4316
|
+
switch (fieldNo) {
|
|
4317
|
+
case /* nimi.runtime.v1.ImportSelectedModelFileRequest.Header header */ 1:
|
|
4318
|
+
message.frame = {
|
|
4319
|
+
oneofKind: "header",
|
|
4320
|
+
header: ImportSelectedModelFileRequest_Header.internalBinaryRead(reader, reader.uint32(), options, message.frame.header)
|
|
4321
|
+
};
|
|
4322
|
+
break;
|
|
4323
|
+
case /* bytes data */ 2:
|
|
4324
|
+
message.frame = {
|
|
4325
|
+
oneofKind: "data",
|
|
4326
|
+
data: reader.bytes()
|
|
4327
|
+
};
|
|
4328
|
+
break;
|
|
4329
|
+
case /* bool seal */ 3:
|
|
4330
|
+
message.frame = {
|
|
4331
|
+
oneofKind: "seal",
|
|
4332
|
+
seal: reader.bool()
|
|
4333
|
+
};
|
|
4334
|
+
break;
|
|
4335
|
+
default:
|
|
4336
|
+
let u = options.readUnknownField;
|
|
4337
|
+
if (u === "throw")
|
|
4338
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4339
|
+
let d = reader.skip(wireType);
|
|
4340
|
+
if (u !== false)
|
|
4341
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4344
|
+
return message;
|
|
4345
|
+
}
|
|
4346
|
+
internalBinaryWrite(message, writer, options) {
|
|
4347
|
+
/* nimi.runtime.v1.ImportSelectedModelFileRequest.Header header = 1; */
|
|
4348
|
+
if (message.frame.oneofKind === "header")
|
|
4349
|
+
ImportSelectedModelFileRequest_Header.internalBinaryWrite(message.frame.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4350
|
+
/* bytes data = 2; */
|
|
4351
|
+
if (message.frame.oneofKind === "data")
|
|
4352
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.frame.data);
|
|
4353
|
+
/* bool seal = 3; */
|
|
4354
|
+
if (message.frame.oneofKind === "seal")
|
|
4355
|
+
writer.tag(3, WireType.Varint).bool(message.frame.seal);
|
|
4356
|
+
let u = options.writeUnknownFields;
|
|
4357
|
+
if (u !== false)
|
|
4358
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4359
|
+
return writer;
|
|
4360
|
+
}
|
|
4361
|
+
}
|
|
4362
|
+
/**
|
|
4363
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ImportSelectedModelFileRequest
|
|
4364
|
+
*/
|
|
4365
|
+
export const ImportSelectedModelFileRequest = new ImportSelectedModelFileRequest$Type();
|
|
4366
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
4367
|
+
class ImportSelectedModelFileRequest_Header$Type extends MessageType {
|
|
4368
|
+
constructor() {
|
|
4369
|
+
super("nimi.runtime.v1.ImportSelectedModelFileRequest.Header", [
|
|
4370
|
+
{ no: 1, name: "file_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4371
|
+
{ no: 2, name: "size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
|
|
4372
|
+
]);
|
|
4373
|
+
}
|
|
4374
|
+
create(value) {
|
|
4375
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
4376
|
+
message.fileName = "";
|
|
4377
|
+
message.sizeBytes = "0";
|
|
4378
|
+
if (value !== undefined)
|
|
4379
|
+
reflectionMergePartial(this, message, value);
|
|
4380
|
+
return message;
|
|
4381
|
+
}
|
|
4382
|
+
internalBinaryRead(reader, length, options, target) {
|
|
4383
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4384
|
+
while (reader.pos < end) {
|
|
4385
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4386
|
+
switch (fieldNo) {
|
|
4387
|
+
case /* string file_name */ 1:
|
|
4388
|
+
message.fileName = reader.string();
|
|
4389
|
+
break;
|
|
4390
|
+
case /* int64 size_bytes */ 2:
|
|
4391
|
+
message.sizeBytes = reader.int64().toString();
|
|
4392
|
+
break;
|
|
4393
|
+
default:
|
|
4394
|
+
let u = options.readUnknownField;
|
|
4395
|
+
if (u === "throw")
|
|
4396
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4397
|
+
let d = reader.skip(wireType);
|
|
4398
|
+
if (u !== false)
|
|
4399
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4400
|
+
}
|
|
4401
|
+
}
|
|
4402
|
+
return message;
|
|
4403
|
+
}
|
|
4404
|
+
internalBinaryWrite(message, writer, options) {
|
|
4405
|
+
/* string file_name = 1; */
|
|
4406
|
+
if (message.fileName !== "")
|
|
4407
|
+
writer.tag(1, WireType.LengthDelimited).string(message.fileName);
|
|
4408
|
+
/* int64 size_bytes = 2; */
|
|
4409
|
+
if (message.sizeBytes !== "0")
|
|
4410
|
+
writer.tag(2, WireType.Varint).int64(message.sizeBytes);
|
|
4411
|
+
let u = options.writeUnknownFields;
|
|
4412
|
+
if (u !== false)
|
|
4413
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4414
|
+
return writer;
|
|
4415
|
+
}
|
|
4416
|
+
}
|
|
4417
|
+
/**
|
|
4418
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ImportSelectedModelFileRequest.Header
|
|
4419
|
+
*/
|
|
4420
|
+
export const ImportSelectedModelFileRequest_Header = new ImportSelectedModelFileRequest_Header$Type();
|
|
4421
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
4422
|
+
class ImportSelectedModelFileResponse$Type extends MessageType {
|
|
4423
|
+
constructor() {
|
|
4424
|
+
super("nimi.runtime.v1.ImportSelectedModelFileResponse", [
|
|
4425
|
+
{ no: 1, name: "transfer", kind: "message", T: () => LocalTransferSessionSummary }
|
|
4426
|
+
]);
|
|
4427
|
+
}
|
|
4428
|
+
create(value) {
|
|
4429
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
4430
|
+
if (value !== undefined)
|
|
4431
|
+
reflectionMergePartial(this, message, value);
|
|
4432
|
+
return message;
|
|
4433
|
+
}
|
|
4434
|
+
internalBinaryRead(reader, length, options, target) {
|
|
4435
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4436
|
+
while (reader.pos < end) {
|
|
4437
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4438
|
+
switch (fieldNo) {
|
|
4439
|
+
case /* nimi.runtime.v1.LocalTransferSessionSummary transfer */ 1:
|
|
4440
|
+
message.transfer = LocalTransferSessionSummary.internalBinaryRead(reader, reader.uint32(), options, message.transfer);
|
|
4441
|
+
break;
|
|
4442
|
+
default:
|
|
4443
|
+
let u = options.readUnknownField;
|
|
4444
|
+
if (u === "throw")
|
|
4445
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4446
|
+
let d = reader.skip(wireType);
|
|
4447
|
+
if (u !== false)
|
|
4448
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4449
|
+
}
|
|
4450
|
+
}
|
|
4451
|
+
return message;
|
|
4452
|
+
}
|
|
4453
|
+
internalBinaryWrite(message, writer, options) {
|
|
4454
|
+
/* nimi.runtime.v1.LocalTransferSessionSummary transfer = 1; */
|
|
4455
|
+
if (message.transfer)
|
|
4456
|
+
LocalTransferSessionSummary.internalBinaryWrite(message.transfer, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4457
|
+
let u = options.writeUnknownFields;
|
|
4458
|
+
if (u !== false)
|
|
4459
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4460
|
+
return writer;
|
|
4461
|
+
}
|
|
4462
|
+
}
|
|
4463
|
+
/**
|
|
4464
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ImportSelectedModelFileResponse
|
|
4465
|
+
*/
|
|
4466
|
+
export const ImportSelectedModelFileResponse = new ImportSelectedModelFileResponse$Type();
|
|
4296
4467
|
//# sourceMappingURL=local_runtime.js.map
|