@nimiplatform/sdk 0.13.0 → 0.15.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.
Files changed (115) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +318 -4
  3. package/dist/core/ai/capability-configuration.d.ts +3 -0
  4. package/dist/core/ai/capability-configuration.d.ts.map +1 -1
  5. package/dist/core/ai/capability-configuration.js +3 -0
  6. package/dist/core/ai/capability-configuration.js.map +1 -1
  7. package/dist/core/ai/local-app-model.d.ts.map +1 -1
  8. package/dist/core/ai/local-app-model.js +1 -0
  9. package/dist/core/ai/local-app-model.js.map +1 -1
  10. package/dist/core/ai/voice-reference-input.d.ts +9 -0
  11. package/dist/core/ai/voice-reference-input.d.ts.map +1 -0
  12. package/dist/core/ai/voice-reference-input.js +17 -0
  13. package/dist/core/ai/voice-reference-input.js.map +1 -0
  14. package/dist/core/app/index.d.ts +6 -0
  15. package/dist/core/app/index.d.ts.map +1 -1
  16. package/dist/core/app/index.js +3 -0
  17. package/dist/core/app/index.js.map +1 -1
  18. package/dist/core/app/local-app-audio-separation.d.ts +6 -0
  19. package/dist/core/app/local-app-audio-separation.d.ts.map +1 -0
  20. package/dist/core/app/local-app-audio-separation.js +31 -0
  21. package/dist/core/app/local-app-audio-separation.js.map +1 -0
  22. package/dist/core/app/local-app-runtime-platform-ai-config.d.ts.map +1 -1
  23. package/dist/core/app/local-app-runtime-platform-ai-config.js +7 -0
  24. package/dist/core/app/local-app-runtime-platform-ai-config.js.map +1 -1
  25. package/dist/core/app/local-app-runtime-platform-ai.d.ts +21 -1
  26. package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
  27. package/dist/core/app/local-app-runtime-platform-ai.js +88 -12
  28. package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
  29. package/dist/core/app/local-app-runtime-platform-validation.d.ts.map +1 -1
  30. package/dist/core/app/local-app-runtime-platform-validation.js +8 -0
  31. package/dist/core/app/local-app-runtime-platform-validation.js.map +1 -1
  32. package/dist/core/app/local-app-text-annotation.d.ts +24 -0
  33. package/dist/core/app/local-app-text-annotation.d.ts.map +1 -0
  34. package/dist/core/app/local-app-text-annotation.js +71 -0
  35. package/dist/core/app/local-app-text-annotation.js.map +1 -0
  36. package/dist/core/app/local-app-transcription.d.ts +12 -0
  37. package/dist/core/app/local-app-transcription.d.ts.map +1 -0
  38. package/dist/core/app/local-app-transcription.js +28 -0
  39. package/dist/core/app/local-app-transcription.js.map +1 -0
  40. package/dist/core-generated/realm-typed-client.d.ts +73 -5
  41. package/dist/core-generated/realm-typed-client.d.ts.map +1 -1
  42. package/dist/core-generated/realm-typed-client.js +64 -2
  43. package/dist/core-generated/realm-typed-client.js.map +1 -1
  44. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +375 -1
  45. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
  46. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +760 -5
  47. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
  48. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +128 -0
  49. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
  50. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +254 -2
  51. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
  52. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +123 -0
  53. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts.map +1 -1
  54. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js +189 -8
  55. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
  56. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +15 -0
  57. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
  58. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +15 -0
  59. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
  60. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +34 -0
  61. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
  62. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +36 -4
  63. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
  64. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.d.ts +13 -0
  65. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.d.ts.map +1 -1
  66. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.js +17 -1
  67. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.js.map +1 -1
  68. package/dist/core-generated/runtime-typed-client.d.ts +4 -4
  69. package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
  70. package/dist/core-generated/runtime-typed-client.js +1 -1
  71. package/dist/core-generated/runtime-typed-client.js.map +1 -1
  72. package/dist/features/generation/index.d.ts +2 -0
  73. package/dist/features/generation/index.d.ts.map +1 -1
  74. package/dist/features/generation/index.js +12 -2
  75. package/dist/features/generation/index.js.map +1 -1
  76. package/dist/runtime/config-projections.d.ts.map +1 -1
  77. package/dist/runtime/config-projections.js +30 -1
  78. package/dist/runtime/config-projections.js.map +1 -1
  79. package/dist/runtime/connector-inventory.js +3 -3
  80. package/dist/runtime/connector-inventory.js.map +1 -1
  81. package/dist/runtime/index.d.ts +2 -0
  82. package/dist/runtime/index.d.ts.map +1 -1
  83. package/dist/runtime/index.js +2 -1
  84. package/dist/runtime/index.js.map +1 -1
  85. package/dist/runtime/machine-loadouts.d.ts +15 -1
  86. package/dist/runtime/machine-loadouts.d.ts.map +1 -1
  87. package/dist/runtime/machine-loadouts.js +13 -2
  88. package/dist/runtime/machine-loadouts.js.map +1 -1
  89. package/dist/runtime/node-grpc.d.ts.map +1 -1
  90. package/dist/runtime/node-grpc.js +35 -4
  91. package/dist/runtime/node-grpc.js.map +1 -1
  92. package/dist/runtime/runtime-local-environment-client-projections.d.ts.map +1 -1
  93. package/dist/runtime/runtime-local-environment-client-projections.js +4 -0
  94. package/dist/runtime/runtime-local-environment-client-projections.js.map +1 -1
  95. package/dist/runtime/runtime-local-environment-client-types.d.ts +10 -1
  96. package/dist/runtime/runtime-local-environment-client-types.d.ts.map +1 -1
  97. package/dist/runtime/runtime-local-environment-client.d.ts.map +1 -1
  98. package/dist/runtime/runtime-local-environment-client.js +5 -1
  99. package/dist/runtime/runtime-local-environment-client.js.map +1 -1
  100. package/dist/runtime/shared-local-agent-ai-config.d.ts.map +1 -1
  101. package/dist/runtime/shared-local-agent-ai-config.js +3 -0
  102. package/dist/runtime/shared-local-agent-ai-config.js.map +1 -1
  103. package/dist/runtime/wire-types/ai-scenario-enums.d.ts +8 -1
  104. package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
  105. package/dist/runtime/wire-types/ai-scenario-enums.js +8 -0
  106. package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
  107. package/dist/runtime/wire-types/ai-scenario-types.d.ts +4 -4
  108. package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
  109. package/dist/runtime/wire-types/identity-app-types.d.ts +2 -2
  110. package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
  111. package/dist/runtime/wire-types/reason-code-enums.d.ts +2 -0
  112. package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
  113. package/dist/runtime/wire-types/reason-code-enums.js +2 -0
  114. package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
  115. package/package.json +1 -1
@@ -120,6 +120,14 @@ export var ScenarioType;
120
120
  * @generated from protobuf enum value: SCENARIO_TYPE_VIDEO_FACE_SWAP = 14;
121
121
  */
122
122
  ScenarioType[ScenarioType["VIDEO_FACE_SWAP"] = 14] = "VIDEO_FACE_SWAP";
123
+ /**
124
+ * @generated from protobuf enum value: SCENARIO_TYPE_AUDIO_SEPARATE = 15;
125
+ */
126
+ ScenarioType[ScenarioType["AUDIO_SEPARATE"] = 15] = "AUDIO_SEPARATE";
127
+ /**
128
+ * @generated from protobuf enum value: SCENARIO_TYPE_TEXT_ANNOTATE = 16;
129
+ */
130
+ ScenarioType[ScenarioType["TEXT_ANNOTATE"] = 16] = "TEXT_ANNOTATE";
123
131
  })(ScenarioType || (ScenarioType = {}));
124
132
  /**
125
133
  * @generated from protobuf enum nimi.runtime.v1.ExecutionMode
@@ -571,6 +579,24 @@ export var AiVideoPixelFormat;
571
579
  */
572
580
  AiVideoPixelFormat[AiVideoPixelFormat["RGB8"] = 1] = "RGB8";
573
581
  })(AiVideoPixelFormat || (AiVideoPixelFormat = {}));
582
+ /**
583
+ * @generated from protobuf enum nimi.runtime.v1.SpeechTranscriptStatus
584
+ */
585
+ export var SpeechTranscriptStatus;
586
+ (function (SpeechTranscriptStatus) {
587
+ /**
588
+ * @generated from protobuf enum value: SPEECH_TRANSCRIPT_STATUS_UNSPECIFIED = 0;
589
+ */
590
+ SpeechTranscriptStatus[SpeechTranscriptStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
591
+ /**
592
+ * @generated from protobuf enum value: SPEECH_TRANSCRIPT_STATUS_TRANSCRIBED = 1;
593
+ */
594
+ SpeechTranscriptStatus[SpeechTranscriptStatus["TRANSCRIBED"] = 1] = "TRANSCRIBED";
595
+ /**
596
+ * @generated from protobuf enum value: SPEECH_TRANSCRIPT_STATUS_NO_SPEECH = 2;
597
+ */
598
+ SpeechTranscriptStatus[SpeechTranscriptStatus["NO_SPEECH"] = 2] = "NO_SPEECH";
599
+ })(SpeechTranscriptStatus || (SpeechTranscriptStatus = {}));
574
600
  /**
575
601
  * @generated from protobuf enum nimi.runtime.v1.ScenarioJobStatus
576
602
  */
@@ -3036,6 +3062,115 @@ class MusicGenerateScenarioSpec$Type extends MessageType {
3036
3062
  */
3037
3063
  export const MusicGenerateScenarioSpec = new MusicGenerateScenarioSpec$Type();
3038
3064
  // @generated message type with reflection information, may provide speed optimized methods
3065
+ class AudioSeparateScenarioSpec$Type extends MessageType {
3066
+ constructor() {
3067
+ super("nimi.runtime.v1.AudioSeparateScenarioSpec", [
3068
+ { no: 1, name: "mime_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3069
+ { no: 2, name: "audio_source", kind: "message", T: () => SpeechTranscriptionAudioSource }
3070
+ ]);
3071
+ }
3072
+ create(value) {
3073
+ const message = globalThis.Object.create((this.messagePrototype));
3074
+ message.mimeType = "";
3075
+ if (value !== undefined)
3076
+ reflectionMergePartial(this, message, value);
3077
+ return message;
3078
+ }
3079
+ internalBinaryRead(reader, length, options, target) {
3080
+ let message = target ?? this.create(), end = reader.pos + length;
3081
+ while (reader.pos < end) {
3082
+ let [fieldNo, wireType] = reader.tag();
3083
+ switch (fieldNo) {
3084
+ case /* string mime_type */ 1:
3085
+ message.mimeType = reader.string();
3086
+ break;
3087
+ case /* nimi.runtime.v1.SpeechTranscriptionAudioSource audio_source */ 2:
3088
+ message.audioSource = SpeechTranscriptionAudioSource.internalBinaryRead(reader, reader.uint32(), options, message.audioSource);
3089
+ break;
3090
+ default:
3091
+ let u = options.readUnknownField;
3092
+ if (u === "throw")
3093
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3094
+ let d = reader.skip(wireType);
3095
+ if (u !== false)
3096
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3097
+ }
3098
+ }
3099
+ return message;
3100
+ }
3101
+ internalBinaryWrite(message, writer, options) {
3102
+ /* string mime_type = 1; */
3103
+ if (message.mimeType !== "")
3104
+ writer.tag(1, WireType.LengthDelimited).string(message.mimeType);
3105
+ /* nimi.runtime.v1.SpeechTranscriptionAudioSource audio_source = 2; */
3106
+ if (message.audioSource)
3107
+ SpeechTranscriptionAudioSource.internalBinaryWrite(message.audioSource, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3108
+ let u = options.writeUnknownFields;
3109
+ if (u !== false)
3110
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3111
+ return writer;
3112
+ }
3113
+ }
3114
+ /**
3115
+ * @generated MessageType for protobuf message nimi.runtime.v1.AudioSeparateScenarioSpec
3116
+ */
3117
+ export const AudioSeparateScenarioSpec = new AudioSeparateScenarioSpec$Type();
3118
+ // @generated message type with reflection information, may provide speed optimized methods
3119
+ class AudioSeparation$Type extends MessageType {
3120
+ constructor() {
3121
+ super("nimi.runtime.v1.AudioSeparation", [
3122
+ { no: 1, name: "vocals_artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3123
+ { no: 2, name: "background_artifact_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3124
+ ]);
3125
+ }
3126
+ create(value) {
3127
+ const message = globalThis.Object.create((this.messagePrototype));
3128
+ message.vocalsArtifactId = "";
3129
+ message.backgroundArtifactId = "";
3130
+ if (value !== undefined)
3131
+ reflectionMergePartial(this, message, value);
3132
+ return message;
3133
+ }
3134
+ internalBinaryRead(reader, length, options, target) {
3135
+ let message = target ?? this.create(), end = reader.pos + length;
3136
+ while (reader.pos < end) {
3137
+ let [fieldNo, wireType] = reader.tag();
3138
+ switch (fieldNo) {
3139
+ case /* string vocals_artifact_id */ 1:
3140
+ message.vocalsArtifactId = reader.string();
3141
+ break;
3142
+ case /* string background_artifact_id */ 2:
3143
+ message.backgroundArtifactId = reader.string();
3144
+ break;
3145
+ default:
3146
+ let u = options.readUnknownField;
3147
+ if (u === "throw")
3148
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3149
+ let d = reader.skip(wireType);
3150
+ if (u !== false)
3151
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3152
+ }
3153
+ }
3154
+ return message;
3155
+ }
3156
+ internalBinaryWrite(message, writer, options) {
3157
+ /* string vocals_artifact_id = 1; */
3158
+ if (message.vocalsArtifactId !== "")
3159
+ writer.tag(1, WireType.LengthDelimited).string(message.vocalsArtifactId);
3160
+ /* string background_artifact_id = 2; */
3161
+ if (message.backgroundArtifactId !== "")
3162
+ writer.tag(2, WireType.LengthDelimited).string(message.backgroundArtifactId);
3163
+ let u = options.writeUnknownFields;
3164
+ if (u !== false)
3165
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3166
+ return writer;
3167
+ }
3168
+ }
3169
+ /**
3170
+ * @generated MessageType for protobuf message nimi.runtime.v1.AudioSeparation
3171
+ */
3172
+ export const AudioSeparation = new AudioSeparation$Type();
3173
+ // @generated message type with reflection information, may provide speed optimized methods
3039
3174
  class WorldGenerateAssetSource$Type extends MessageType {
3040
3175
  constructor() {
3041
3176
  super("nimi.runtime.v1.WorldGenerateAssetSource", [
@@ -4399,6 +4534,329 @@ class VideoFaceSwapSummary$Type extends MessageType {
4399
4534
  */
4400
4535
  export const VideoFaceSwapSummary = new VideoFaceSwapSummary$Type();
4401
4536
  // @generated message type with reflection information, may provide speed optimized methods
4537
+ class TextAnnotateScenarioSpec$Type extends MessageType {
4538
+ constructor() {
4539
+ super("nimi.runtime.v1.TextAnnotateScenarioSpec", [
4540
+ { no: 1, name: "language", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4541
+ { no: 2, name: "texts", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
4542
+ ]);
4543
+ }
4544
+ create(value) {
4545
+ const message = globalThis.Object.create((this.messagePrototype));
4546
+ message.language = "";
4547
+ message.texts = [];
4548
+ if (value !== undefined)
4549
+ reflectionMergePartial(this, message, value);
4550
+ return message;
4551
+ }
4552
+ internalBinaryRead(reader, length, options, target) {
4553
+ let message = target ?? this.create(), end = reader.pos + length;
4554
+ while (reader.pos < end) {
4555
+ let [fieldNo, wireType] = reader.tag();
4556
+ switch (fieldNo) {
4557
+ case /* string language */ 1:
4558
+ message.language = reader.string();
4559
+ break;
4560
+ case /* repeated string texts */ 2:
4561
+ message.texts.push(reader.string());
4562
+ break;
4563
+ default:
4564
+ let u = options.readUnknownField;
4565
+ if (u === "throw")
4566
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4567
+ let d = reader.skip(wireType);
4568
+ if (u !== false)
4569
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4570
+ }
4571
+ }
4572
+ return message;
4573
+ }
4574
+ internalBinaryWrite(message, writer, options) {
4575
+ /* string language = 1; */
4576
+ if (message.language !== "")
4577
+ writer.tag(1, WireType.LengthDelimited).string(message.language);
4578
+ /* repeated string texts = 2; */
4579
+ for (let i = 0; i < message.texts.length; i++)
4580
+ writer.tag(2, WireType.LengthDelimited).string(message.texts[i]);
4581
+ let u = options.writeUnknownFields;
4582
+ if (u !== false)
4583
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4584
+ return writer;
4585
+ }
4586
+ }
4587
+ /**
4588
+ * @generated MessageType for protobuf message nimi.runtime.v1.TextAnnotateScenarioSpec
4589
+ */
4590
+ export const TextAnnotateScenarioSpec = new TextAnnotateScenarioSpec$Type();
4591
+ // @generated message type with reflection information, may provide speed optimized methods
4592
+ class TextAnnotationToken$Type extends MessageType {
4593
+ constructor() {
4594
+ super("nimi.runtime.v1.TextAnnotationToken", [
4595
+ { no: 1, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4596
+ { no: 2, name: "start", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
4597
+ { no: 3, name: "end", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
4598
+ { no: 4, name: "head_index", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
4599
+ { no: 5, name: "part_of_speech", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4600
+ { no: 6, name: "dependency", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4601
+ { no: 7, name: "is_punctuation", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
4602
+ ]);
4603
+ }
4604
+ create(value) {
4605
+ const message = globalThis.Object.create((this.messagePrototype));
4606
+ message.text = "";
4607
+ message.start = 0;
4608
+ message.end = 0;
4609
+ message.headIndex = 0;
4610
+ message.partOfSpeech = "";
4611
+ message.dependency = "";
4612
+ message.isPunctuation = false;
4613
+ if (value !== undefined)
4614
+ reflectionMergePartial(this, message, value);
4615
+ return message;
4616
+ }
4617
+ internalBinaryRead(reader, length, options, target) {
4618
+ let message = target ?? this.create(), end = reader.pos + length;
4619
+ while (reader.pos < end) {
4620
+ let [fieldNo, wireType] = reader.tag();
4621
+ switch (fieldNo) {
4622
+ case /* string text */ 1:
4623
+ message.text = reader.string();
4624
+ break;
4625
+ case /* uint32 start */ 2:
4626
+ message.start = reader.uint32();
4627
+ break;
4628
+ case /* uint32 end */ 3:
4629
+ message.end = reader.uint32();
4630
+ break;
4631
+ case /* uint32 head_index */ 4:
4632
+ message.headIndex = reader.uint32();
4633
+ break;
4634
+ case /* string part_of_speech */ 5:
4635
+ message.partOfSpeech = reader.string();
4636
+ break;
4637
+ case /* string dependency */ 6:
4638
+ message.dependency = reader.string();
4639
+ break;
4640
+ case /* bool is_punctuation */ 7:
4641
+ message.isPunctuation = reader.bool();
4642
+ break;
4643
+ default:
4644
+ let u = options.readUnknownField;
4645
+ if (u === "throw")
4646
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4647
+ let d = reader.skip(wireType);
4648
+ if (u !== false)
4649
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4650
+ }
4651
+ }
4652
+ return message;
4653
+ }
4654
+ internalBinaryWrite(message, writer, options) {
4655
+ /* string text = 1; */
4656
+ if (message.text !== "")
4657
+ writer.tag(1, WireType.LengthDelimited).string(message.text);
4658
+ /* uint32 start = 2; */
4659
+ if (message.start !== 0)
4660
+ writer.tag(2, WireType.Varint).uint32(message.start);
4661
+ /* uint32 end = 3; */
4662
+ if (message.end !== 0)
4663
+ writer.tag(3, WireType.Varint).uint32(message.end);
4664
+ /* uint32 head_index = 4; */
4665
+ if (message.headIndex !== 0)
4666
+ writer.tag(4, WireType.Varint).uint32(message.headIndex);
4667
+ /* string part_of_speech = 5; */
4668
+ if (message.partOfSpeech !== "")
4669
+ writer.tag(5, WireType.LengthDelimited).string(message.partOfSpeech);
4670
+ /* string dependency = 6; */
4671
+ if (message.dependency !== "")
4672
+ writer.tag(6, WireType.LengthDelimited).string(message.dependency);
4673
+ /* bool is_punctuation = 7; */
4674
+ if (message.isPunctuation !== false)
4675
+ writer.tag(7, WireType.Varint).bool(message.isPunctuation);
4676
+ let u = options.writeUnknownFields;
4677
+ if (u !== false)
4678
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4679
+ return writer;
4680
+ }
4681
+ }
4682
+ /**
4683
+ * @generated MessageType for protobuf message nimi.runtime.v1.TextAnnotationToken
4684
+ */
4685
+ export const TextAnnotationToken = new TextAnnotationToken$Type();
4686
+ // @generated message type with reflection information, may provide speed optimized methods
4687
+ class TextAnnotationSentence$Type extends MessageType {
4688
+ constructor() {
4689
+ super("nimi.runtime.v1.TextAnnotationSentence", [
4690
+ { no: 1, name: "start_token", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
4691
+ { no: 2, name: "end_token", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
4692
+ ]);
4693
+ }
4694
+ create(value) {
4695
+ const message = globalThis.Object.create((this.messagePrototype));
4696
+ message.startToken = 0;
4697
+ message.endToken = 0;
4698
+ if (value !== undefined)
4699
+ reflectionMergePartial(this, message, value);
4700
+ return message;
4701
+ }
4702
+ internalBinaryRead(reader, length, options, target) {
4703
+ let message = target ?? this.create(), end = reader.pos + length;
4704
+ while (reader.pos < end) {
4705
+ let [fieldNo, wireType] = reader.tag();
4706
+ switch (fieldNo) {
4707
+ case /* uint32 start_token */ 1:
4708
+ message.startToken = reader.uint32();
4709
+ break;
4710
+ case /* uint32 end_token */ 2:
4711
+ message.endToken = reader.uint32();
4712
+ break;
4713
+ default:
4714
+ let u = options.readUnknownField;
4715
+ if (u === "throw")
4716
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4717
+ let d = reader.skip(wireType);
4718
+ if (u !== false)
4719
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4720
+ }
4721
+ }
4722
+ return message;
4723
+ }
4724
+ internalBinaryWrite(message, writer, options) {
4725
+ /* uint32 start_token = 1; */
4726
+ if (message.startToken !== 0)
4727
+ writer.tag(1, WireType.Varint).uint32(message.startToken);
4728
+ /* uint32 end_token = 2; */
4729
+ if (message.endToken !== 0)
4730
+ writer.tag(2, WireType.Varint).uint32(message.endToken);
4731
+ let u = options.writeUnknownFields;
4732
+ if (u !== false)
4733
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4734
+ return writer;
4735
+ }
4736
+ }
4737
+ /**
4738
+ * @generated MessageType for protobuf message nimi.runtime.v1.TextAnnotationSentence
4739
+ */
4740
+ export const TextAnnotationSentence = new TextAnnotationSentence$Type();
4741
+ // @generated message type with reflection information, may provide speed optimized methods
4742
+ class TextAnnotationDocument$Type extends MessageType {
4743
+ constructor() {
4744
+ super("nimi.runtime.v1.TextAnnotationDocument", [
4745
+ { no: 1, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4746
+ { no: 2, name: "language", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4747
+ { no: 3, name: "tokens", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TextAnnotationToken },
4748
+ { no: 4, name: "sentences", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TextAnnotationSentence }
4749
+ ]);
4750
+ }
4751
+ create(value) {
4752
+ const message = globalThis.Object.create((this.messagePrototype));
4753
+ message.text = "";
4754
+ message.language = "";
4755
+ message.tokens = [];
4756
+ message.sentences = [];
4757
+ if (value !== undefined)
4758
+ reflectionMergePartial(this, message, value);
4759
+ return message;
4760
+ }
4761
+ internalBinaryRead(reader, length, options, target) {
4762
+ let message = target ?? this.create(), end = reader.pos + length;
4763
+ while (reader.pos < end) {
4764
+ let [fieldNo, wireType] = reader.tag();
4765
+ switch (fieldNo) {
4766
+ case /* string text */ 1:
4767
+ message.text = reader.string();
4768
+ break;
4769
+ case /* string language */ 2:
4770
+ message.language = reader.string();
4771
+ break;
4772
+ case /* repeated nimi.runtime.v1.TextAnnotationToken tokens */ 3:
4773
+ message.tokens.push(TextAnnotationToken.internalBinaryRead(reader, reader.uint32(), options));
4774
+ break;
4775
+ case /* repeated nimi.runtime.v1.TextAnnotationSentence sentences */ 4:
4776
+ message.sentences.push(TextAnnotationSentence.internalBinaryRead(reader, reader.uint32(), options));
4777
+ break;
4778
+ default:
4779
+ let u = options.readUnknownField;
4780
+ if (u === "throw")
4781
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4782
+ let d = reader.skip(wireType);
4783
+ if (u !== false)
4784
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4785
+ }
4786
+ }
4787
+ return message;
4788
+ }
4789
+ internalBinaryWrite(message, writer, options) {
4790
+ /* string text = 1; */
4791
+ if (message.text !== "")
4792
+ writer.tag(1, WireType.LengthDelimited).string(message.text);
4793
+ /* string language = 2; */
4794
+ if (message.language !== "")
4795
+ writer.tag(2, WireType.LengthDelimited).string(message.language);
4796
+ /* repeated nimi.runtime.v1.TextAnnotationToken tokens = 3; */
4797
+ for (let i = 0; i < message.tokens.length; i++)
4798
+ TextAnnotationToken.internalBinaryWrite(message.tokens[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
4799
+ /* repeated nimi.runtime.v1.TextAnnotationSentence sentences = 4; */
4800
+ for (let i = 0; i < message.sentences.length; i++)
4801
+ TextAnnotationSentence.internalBinaryWrite(message.sentences[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
4802
+ let u = options.writeUnknownFields;
4803
+ if (u !== false)
4804
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4805
+ return writer;
4806
+ }
4807
+ }
4808
+ /**
4809
+ * @generated MessageType for protobuf message nimi.runtime.v1.TextAnnotationDocument
4810
+ */
4811
+ export const TextAnnotationDocument = new TextAnnotationDocument$Type();
4812
+ // @generated message type with reflection information, may provide speed optimized methods
4813
+ class TextAnnotationResult$Type extends MessageType {
4814
+ constructor() {
4815
+ super("nimi.runtime.v1.TextAnnotationResult", [
4816
+ { no: 1, name: "documents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TextAnnotationDocument }
4817
+ ]);
4818
+ }
4819
+ create(value) {
4820
+ const message = globalThis.Object.create((this.messagePrototype));
4821
+ message.documents = [];
4822
+ if (value !== undefined)
4823
+ reflectionMergePartial(this, message, value);
4824
+ return message;
4825
+ }
4826
+ internalBinaryRead(reader, length, options, target) {
4827
+ let message = target ?? this.create(), end = reader.pos + length;
4828
+ while (reader.pos < end) {
4829
+ let [fieldNo, wireType] = reader.tag();
4830
+ switch (fieldNo) {
4831
+ case /* repeated nimi.runtime.v1.TextAnnotationDocument documents */ 1:
4832
+ message.documents.push(TextAnnotationDocument.internalBinaryRead(reader, reader.uint32(), options));
4833
+ break;
4834
+ default:
4835
+ let u = options.readUnknownField;
4836
+ if (u === "throw")
4837
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4838
+ let d = reader.skip(wireType);
4839
+ if (u !== false)
4840
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4841
+ }
4842
+ }
4843
+ return message;
4844
+ }
4845
+ internalBinaryWrite(message, writer, options) {
4846
+ /* repeated nimi.runtime.v1.TextAnnotationDocument documents = 1; */
4847
+ for (let i = 0; i < message.documents.length; i++)
4848
+ TextAnnotationDocument.internalBinaryWrite(message.documents[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
4849
+ let u = options.writeUnknownFields;
4850
+ if (u !== false)
4851
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4852
+ return writer;
4853
+ }
4854
+ }
4855
+ /**
4856
+ * @generated MessageType for protobuf message nimi.runtime.v1.TextAnnotationResult
4857
+ */
4858
+ export const TextAnnotationResult = new TextAnnotationResult$Type();
4859
+ // @generated message type with reflection information, may provide speed optimized methods
4402
4860
  class VisionLocateScenarioSpec$Type extends MessageType {
4403
4861
  constructor() {
4404
4862
  super("nimi.runtime.v1.VisionLocateScenarioSpec", [
@@ -4740,7 +5198,9 @@ class ScenarioSpec$Type extends MessageType {
4740
5198
  { no: 11, name: "voice_create", kind: "message", oneof: "spec", T: () => VoiceCreateScenarioSpec },
4741
5199
  { no: 12, name: "vision_locate", kind: "message", oneof: "spec", T: () => VisionLocateScenarioSpec },
4742
5200
  { no: 13, name: "image_face_swap", kind: "message", oneof: "spec", T: () => ImageFaceSwapScenarioSpec },
4743
- { no: 14, name: "video_face_swap", kind: "message", oneof: "spec", T: () => VideoFaceSwapScenarioSpec }
5201
+ { no: 14, name: "video_face_swap", kind: "message", oneof: "spec", T: () => VideoFaceSwapScenarioSpec },
5202
+ { no: 15, name: "audio_separate", kind: "message", oneof: "spec", T: () => AudioSeparateScenarioSpec },
5203
+ { no: 16, name: "text_annotate", kind: "message", oneof: "spec", T: () => TextAnnotateScenarioSpec }
4744
5204
  ]);
4745
5205
  }
4746
5206
  create(value) {
@@ -4827,6 +5287,18 @@ class ScenarioSpec$Type extends MessageType {
4827
5287
  videoFaceSwap: VideoFaceSwapScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.videoFaceSwap)
4828
5288
  };
4829
5289
  break;
5290
+ case /* nimi.runtime.v1.AudioSeparateScenarioSpec audio_separate */ 15:
5291
+ message.spec = {
5292
+ oneofKind: "audioSeparate",
5293
+ audioSeparate: AudioSeparateScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.audioSeparate)
5294
+ };
5295
+ break;
5296
+ case /* nimi.runtime.v1.TextAnnotateScenarioSpec text_annotate */ 16:
5297
+ message.spec = {
5298
+ oneofKind: "textAnnotate",
5299
+ textAnnotate: TextAnnotateScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.textAnnotate)
5300
+ };
5301
+ break;
4830
5302
  default:
4831
5303
  let u = options.readUnknownField;
4832
5304
  if (u === "throw")
@@ -4875,6 +5347,12 @@ class ScenarioSpec$Type extends MessageType {
4875
5347
  /* nimi.runtime.v1.VideoFaceSwapScenarioSpec video_face_swap = 14; */
4876
5348
  if (message.spec.oneofKind === "videoFaceSwap")
4877
5349
  VideoFaceSwapScenarioSpec.internalBinaryWrite(message.spec.videoFaceSwap, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
5350
+ /* nimi.runtime.v1.AudioSeparateScenarioSpec audio_separate = 15; */
5351
+ if (message.spec.oneofKind === "audioSeparate")
5352
+ AudioSeparateScenarioSpec.internalBinaryWrite(message.spec.audioSeparate, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
5353
+ /* nimi.runtime.v1.TextAnnotateScenarioSpec text_annotate = 16; */
5354
+ if (message.spec.oneofKind === "textAnnotate")
5355
+ TextAnnotateScenarioSpec.internalBinaryWrite(message.spec.textAnnotate, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
4878
5356
  let u = options.writeUnknownFields;
4879
5357
  if (u !== false)
4880
5358
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -5402,11 +5880,146 @@ class SpeechSynthesizeResult$Type extends MessageType {
5402
5880
  */
5403
5881
  export const SpeechSynthesizeResult = new SpeechSynthesizeResult$Type();
5404
5882
  // @generated message type with reflection information, may provide speed optimized methods
5883
+ class SpeechTranscriptWord$Type extends MessageType {
5884
+ constructor() {
5885
+ super("nimi.runtime.v1.SpeechTranscriptWord", [
5886
+ { no: 1, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
5887
+ { no: 2, name: "start_seconds", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
5888
+ { no: 3, name: "end_seconds", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
5889
+ ]);
5890
+ }
5891
+ create(value) {
5892
+ const message = globalThis.Object.create((this.messagePrototype));
5893
+ message.text = "";
5894
+ message.startSeconds = 0;
5895
+ message.endSeconds = 0;
5896
+ if (value !== undefined)
5897
+ reflectionMergePartial(this, message, value);
5898
+ return message;
5899
+ }
5900
+ internalBinaryRead(reader, length, options, target) {
5901
+ let message = target ?? this.create(), end = reader.pos + length;
5902
+ while (reader.pos < end) {
5903
+ let [fieldNo, wireType] = reader.tag();
5904
+ switch (fieldNo) {
5905
+ case /* string text */ 1:
5906
+ message.text = reader.string();
5907
+ break;
5908
+ case /* double start_seconds */ 2:
5909
+ message.startSeconds = reader.double();
5910
+ break;
5911
+ case /* double end_seconds */ 3:
5912
+ message.endSeconds = reader.double();
5913
+ break;
5914
+ default:
5915
+ let u = options.readUnknownField;
5916
+ if (u === "throw")
5917
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5918
+ let d = reader.skip(wireType);
5919
+ if (u !== false)
5920
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5921
+ }
5922
+ }
5923
+ return message;
5924
+ }
5925
+ internalBinaryWrite(message, writer, options) {
5926
+ /* string text = 1; */
5927
+ if (message.text !== "")
5928
+ writer.tag(1, WireType.LengthDelimited).string(message.text);
5929
+ /* double start_seconds = 2; */
5930
+ if (message.startSeconds !== 0)
5931
+ writer.tag(2, WireType.Bit64).double(message.startSeconds);
5932
+ /* double end_seconds = 3; */
5933
+ if (message.endSeconds !== 0)
5934
+ writer.tag(3, WireType.Bit64).double(message.endSeconds);
5935
+ let u = options.writeUnknownFields;
5936
+ if (u !== false)
5937
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
5938
+ return writer;
5939
+ }
5940
+ }
5941
+ /**
5942
+ * @generated MessageType for protobuf message nimi.runtime.v1.SpeechTranscriptWord
5943
+ */
5944
+ export const SpeechTranscriptWord = new SpeechTranscriptWord$Type();
5945
+ // @generated message type with reflection information, may provide speed optimized methods
5946
+ class SpeechTranscript$Type extends MessageType {
5947
+ constructor() {
5948
+ super("nimi.runtime.v1.SpeechTranscript", [
5949
+ { no: 1, name: "status", kind: "enum", T: () => ["nimi.runtime.v1.SpeechTranscriptStatus", SpeechTranscriptStatus, "SPEECH_TRANSCRIPT_STATUS_"] },
5950
+ { no: 2, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
5951
+ { no: 3, name: "language", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
5952
+ { no: 4, name: "words", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SpeechTranscriptWord }
5953
+ ]);
5954
+ }
5955
+ create(value) {
5956
+ const message = globalThis.Object.create((this.messagePrototype));
5957
+ message.status = 0;
5958
+ message.text = "";
5959
+ message.language = "";
5960
+ message.words = [];
5961
+ if (value !== undefined)
5962
+ reflectionMergePartial(this, message, value);
5963
+ return message;
5964
+ }
5965
+ internalBinaryRead(reader, length, options, target) {
5966
+ let message = target ?? this.create(), end = reader.pos + length;
5967
+ while (reader.pos < end) {
5968
+ let [fieldNo, wireType] = reader.tag();
5969
+ switch (fieldNo) {
5970
+ case /* nimi.runtime.v1.SpeechTranscriptStatus status */ 1:
5971
+ message.status = reader.int32();
5972
+ break;
5973
+ case /* string text */ 2:
5974
+ message.text = reader.string();
5975
+ break;
5976
+ case /* string language */ 3:
5977
+ message.language = reader.string();
5978
+ break;
5979
+ case /* repeated nimi.runtime.v1.SpeechTranscriptWord words */ 4:
5980
+ message.words.push(SpeechTranscriptWord.internalBinaryRead(reader, reader.uint32(), options));
5981
+ break;
5982
+ default:
5983
+ let u = options.readUnknownField;
5984
+ if (u === "throw")
5985
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5986
+ let d = reader.skip(wireType);
5987
+ if (u !== false)
5988
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5989
+ }
5990
+ }
5991
+ return message;
5992
+ }
5993
+ internalBinaryWrite(message, writer, options) {
5994
+ /* nimi.runtime.v1.SpeechTranscriptStatus status = 1; */
5995
+ if (message.status !== 0)
5996
+ writer.tag(1, WireType.Varint).int32(message.status);
5997
+ /* string text = 2; */
5998
+ if (message.text !== "")
5999
+ writer.tag(2, WireType.LengthDelimited).string(message.text);
6000
+ /* string language = 3; */
6001
+ if (message.language !== "")
6002
+ writer.tag(3, WireType.LengthDelimited).string(message.language);
6003
+ /* repeated nimi.runtime.v1.SpeechTranscriptWord words = 4; */
6004
+ for (let i = 0; i < message.words.length; i++)
6005
+ SpeechTranscriptWord.internalBinaryWrite(message.words[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
6006
+ let u = options.writeUnknownFields;
6007
+ if (u !== false)
6008
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
6009
+ return writer;
6010
+ }
6011
+ }
6012
+ /**
6013
+ * @generated MessageType for protobuf message nimi.runtime.v1.SpeechTranscript
6014
+ */
6015
+ export const SpeechTranscript = new SpeechTranscript$Type();
6016
+ // @generated message type with reflection information, may provide speed optimized methods
5405
6017
  class SpeechTranscribeResult$Type extends MessageType {
5406
6018
  constructor() {
5407
6019
  super("nimi.runtime.v1.SpeechTranscribeResult", [
5408
6020
  { no: 1, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
5409
- { no: 2, name: "artifacts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ScenarioArtifact }
6021
+ { no: 2, name: "artifacts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ScenarioArtifact },
6022
+ { no: 3, name: "transcription", kind: "message", T: () => SpeechTranscript }
5410
6023
  ]);
5411
6024
  }
5412
6025
  create(value) {
@@ -5428,6 +6041,9 @@ class SpeechTranscribeResult$Type extends MessageType {
5428
6041
  case /* repeated nimi.runtime.v1.ScenarioArtifact artifacts */ 2:
5429
6042
  message.artifacts.push(ScenarioArtifact.internalBinaryRead(reader, reader.uint32(), options));
5430
6043
  break;
6044
+ case /* nimi.runtime.v1.SpeechTranscript transcription */ 3:
6045
+ message.transcription = SpeechTranscript.internalBinaryRead(reader, reader.uint32(), options, message.transcription);
6046
+ break;
5431
6047
  default:
5432
6048
  let u = options.readUnknownField;
5433
6049
  if (u === "throw")
@@ -5446,6 +6062,9 @@ class SpeechTranscribeResult$Type extends MessageType {
5446
6062
  /* repeated nimi.runtime.v1.ScenarioArtifact artifacts = 2; */
5447
6063
  for (let i = 0; i < message.artifacts.length; i++)
5448
6064
  ScenarioArtifact.internalBinaryWrite(message.artifacts[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
6065
+ /* nimi.runtime.v1.SpeechTranscript transcription = 3; */
6066
+ if (message.transcription)
6067
+ SpeechTranscript.internalBinaryWrite(message.transcription, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
5449
6068
  let u = options.writeUnknownFields;
5450
6069
  if (u !== false)
5451
6070
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -5504,6 +6123,60 @@ class MusicGenerateResult$Type extends MessageType {
5504
6123
  */
5505
6124
  export const MusicGenerateResult = new MusicGenerateResult$Type();
5506
6125
  // @generated message type with reflection information, may provide speed optimized methods
6126
+ class AudioSeparateResult$Type extends MessageType {
6127
+ constructor() {
6128
+ super("nimi.runtime.v1.AudioSeparateResult", [
6129
+ { no: 1, name: "artifacts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ScenarioArtifact },
6130
+ { no: 2, name: "separation", kind: "message", T: () => AudioSeparation }
6131
+ ]);
6132
+ }
6133
+ create(value) {
6134
+ const message = globalThis.Object.create((this.messagePrototype));
6135
+ message.artifacts = [];
6136
+ if (value !== undefined)
6137
+ reflectionMergePartial(this, message, value);
6138
+ return message;
6139
+ }
6140
+ internalBinaryRead(reader, length, options, target) {
6141
+ let message = target ?? this.create(), end = reader.pos + length;
6142
+ while (reader.pos < end) {
6143
+ let [fieldNo, wireType] = reader.tag();
6144
+ switch (fieldNo) {
6145
+ case /* repeated nimi.runtime.v1.ScenarioArtifact artifacts */ 1:
6146
+ message.artifacts.push(ScenarioArtifact.internalBinaryRead(reader, reader.uint32(), options));
6147
+ break;
6148
+ case /* nimi.runtime.v1.AudioSeparation separation */ 2:
6149
+ message.separation = AudioSeparation.internalBinaryRead(reader, reader.uint32(), options, message.separation);
6150
+ break;
6151
+ default:
6152
+ let u = options.readUnknownField;
6153
+ if (u === "throw")
6154
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6155
+ let d = reader.skip(wireType);
6156
+ if (u !== false)
6157
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6158
+ }
6159
+ }
6160
+ return message;
6161
+ }
6162
+ internalBinaryWrite(message, writer, options) {
6163
+ /* repeated nimi.runtime.v1.ScenarioArtifact artifacts = 1; */
6164
+ for (let i = 0; i < message.artifacts.length; i++)
6165
+ ScenarioArtifact.internalBinaryWrite(message.artifacts[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
6166
+ /* nimi.runtime.v1.AudioSeparation separation = 2; */
6167
+ if (message.separation)
6168
+ AudioSeparation.internalBinaryWrite(message.separation, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
6169
+ let u = options.writeUnknownFields;
6170
+ if (u !== false)
6171
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
6172
+ return writer;
6173
+ }
6174
+ }
6175
+ /**
6176
+ * @generated MessageType for protobuf message nimi.runtime.v1.AudioSeparateResult
6177
+ */
6178
+ export const AudioSeparateResult = new AudioSeparateResult$Type();
6179
+ // @generated message type with reflection information, may provide speed optimized methods
5507
6180
  class WorldGenerateSemanticsMetadata$Type extends MessageType {
5508
6181
  constructor() {
5509
6182
  super("nimi.runtime.v1.WorldGenerateSemanticsMetadata", [
@@ -5705,7 +6378,9 @@ class ScenarioOutput$Type extends MessageType {
5705
6378
  { no: 7, name: "music_generate", kind: "message", oneof: "output", T: () => MusicGenerateResult },
5706
6379
  { no: 8, name: "world_generate", kind: "message", oneof: "output", T: () => WorldGenerateResult },
5707
6380
  { no: 9, name: "image_face_swap", kind: "message", oneof: "output", T: () => ImageFaceSwapResult },
5708
- { no: 10, name: "video_face_swap", kind: "message", oneof: "output", T: () => VideoFaceSwapResult }
6381
+ { no: 10, name: "video_face_swap", kind: "message", oneof: "output", T: () => VideoFaceSwapResult },
6382
+ { no: 11, name: "audio_separate", kind: "message", oneof: "output", T: () => AudioSeparateResult },
6383
+ { no: 12, name: "text_annotation", kind: "message", oneof: "output", T: () => TextAnnotationResult }
5709
6384
  ]);
5710
6385
  }
5711
6386
  create(value) {
@@ -5780,6 +6455,18 @@ class ScenarioOutput$Type extends MessageType {
5780
6455
  videoFaceSwap: VideoFaceSwapResult.internalBinaryRead(reader, reader.uint32(), options, message.output.videoFaceSwap)
5781
6456
  };
5782
6457
  break;
6458
+ case /* nimi.runtime.v1.AudioSeparateResult audio_separate */ 11:
6459
+ message.output = {
6460
+ oneofKind: "audioSeparate",
6461
+ audioSeparate: AudioSeparateResult.internalBinaryRead(reader, reader.uint32(), options, message.output.audioSeparate)
6462
+ };
6463
+ break;
6464
+ case /* nimi.runtime.v1.TextAnnotationResult text_annotation */ 12:
6465
+ message.output = {
6466
+ oneofKind: "textAnnotation",
6467
+ textAnnotation: TextAnnotationResult.internalBinaryRead(reader, reader.uint32(), options, message.output.textAnnotation)
6468
+ };
6469
+ break;
5783
6470
  default:
5784
6471
  let u = options.readUnknownField;
5785
6472
  if (u === "throw")
@@ -5822,6 +6509,12 @@ class ScenarioOutput$Type extends MessageType {
5822
6509
  /* nimi.runtime.v1.VideoFaceSwapResult video_face_swap = 10; */
5823
6510
  if (message.output.oneofKind === "videoFaceSwap")
5824
6511
  VideoFaceSwapResult.internalBinaryWrite(message.output.videoFaceSwap, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
6512
+ /* nimi.runtime.v1.AudioSeparateResult audio_separate = 11; */
6513
+ if (message.output.oneofKind === "audioSeparate")
6514
+ AudioSeparateResult.internalBinaryWrite(message.output.audioSeparate, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
6515
+ /* nimi.runtime.v1.TextAnnotationResult text_annotation = 12; */
6516
+ if (message.output.oneofKind === "textAnnotation")
6517
+ TextAnnotationResult.internalBinaryWrite(message.output.textAnnotation, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
5825
6518
  let u = options.writeUnknownFields;
5826
6519
  if (u !== false)
5827
6520
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -7368,6 +8061,8 @@ class SubmitLocalAppScenarioJobRequest$Type extends MessageType {
7368
8061
  { no: 11, name: "vision_locate", kind: "message", oneof: "spec", T: () => VisionLocateScenarioSpec },
7369
8062
  { no: 12, name: "image_face_swap", kind: "message", oneof: "spec", T: () => ImageFaceSwapScenarioSpec },
7370
8063
  { no: 13, name: "video_face_swap", kind: "message", oneof: "spec", T: () => VideoFaceSwapScenarioSpec },
8064
+ { no: 14, name: "audio_separate", kind: "message", oneof: "spec", T: () => AudioSeparateScenarioSpec },
8065
+ { no: 15, name: "text_annotate", kind: "message", oneof: "spec", T: () => TextAnnotateScenarioSpec },
7371
8066
  { no: 9, name: "timeout_ms", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
7372
8067
  ]);
7373
8068
  }
@@ -7444,6 +8139,18 @@ class SubmitLocalAppScenarioJobRequest$Type extends MessageType {
7444
8139
  videoFaceSwap: VideoFaceSwapScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.videoFaceSwap)
7445
8140
  };
7446
8141
  break;
8142
+ case /* nimi.runtime.v1.AudioSeparateScenarioSpec audio_separate */ 14:
8143
+ message.spec = {
8144
+ oneofKind: "audioSeparate",
8145
+ audioSeparate: AudioSeparateScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.audioSeparate)
8146
+ };
8147
+ break;
8148
+ case /* nimi.runtime.v1.TextAnnotateScenarioSpec text_annotate */ 15:
8149
+ message.spec = {
8150
+ oneofKind: "textAnnotate",
8151
+ textAnnotate: TextAnnotateScenarioSpec.internalBinaryRead(reader, reader.uint32(), options, message.spec.textAnnotate)
8152
+ };
8153
+ break;
7447
8154
  case /* int32 timeout_ms */ 9:
7448
8155
  message.timeoutMs = reader.int32();
7449
8156
  break;
@@ -7492,6 +8199,12 @@ class SubmitLocalAppScenarioJobRequest$Type extends MessageType {
7492
8199
  /* nimi.runtime.v1.VideoFaceSwapScenarioSpec video_face_swap = 13; */
7493
8200
  if (message.spec.oneofKind === "videoFaceSwap")
7494
8201
  VideoFaceSwapScenarioSpec.internalBinaryWrite(message.spec.videoFaceSwap, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
8202
+ /* nimi.runtime.v1.AudioSeparateScenarioSpec audio_separate = 14; */
8203
+ if (message.spec.oneofKind === "audioSeparate")
8204
+ AudioSeparateScenarioSpec.internalBinaryWrite(message.spec.audioSeparate, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
8205
+ /* nimi.runtime.v1.TextAnnotateScenarioSpec text_annotate = 15; */
8206
+ if (message.spec.oneofKind === "textAnnotate")
8207
+ TextAnnotateScenarioSpec.internalBinaryWrite(message.spec.textAnnotate, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
7495
8208
  let u = options.writeUnknownFields;
7496
8209
  if (u !== false)
7497
8210
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -7520,7 +8233,10 @@ class LocalAppScenarioJob$Type extends MessageType {
7520
8233
  { no: 12, name: "updated_at", kind: "message", T: () => Timestamp },
7521
8234
  { no: 13, name: "transcription_text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
7522
8235
  { no: 14, name: "interruption", kind: "message", T: () => ExecutionInterruption },
7523
- { no: 15, name: "video_face_swap_summary", kind: "message", T: () => VideoFaceSwapSummary }
8236
+ { no: 15, name: "video_face_swap_summary", kind: "message", T: () => VideoFaceSwapSummary },
8237
+ { no: 16, name: "transcription", kind: "message", T: () => SpeechTranscript },
8238
+ { no: 17, name: "audio_separation", kind: "message", T: () => AudioSeparation },
8239
+ { no: 18, name: "text_annotation", kind: "message", T: () => TextAnnotationResult }
7524
8240
  ]);
7525
8241
  }
7526
8242
  create(value) {
@@ -7590,6 +8306,15 @@ class LocalAppScenarioJob$Type extends MessageType {
7590
8306
  case /* nimi.runtime.v1.VideoFaceSwapSummary video_face_swap_summary */ 15:
7591
8307
  message.videoFaceSwapSummary = VideoFaceSwapSummary.internalBinaryRead(reader, reader.uint32(), options, message.videoFaceSwapSummary);
7592
8308
  break;
8309
+ case /* nimi.runtime.v1.SpeechTranscript transcription */ 16:
8310
+ message.transcription = SpeechTranscript.internalBinaryRead(reader, reader.uint32(), options, message.transcription);
8311
+ break;
8312
+ case /* nimi.runtime.v1.AudioSeparation audio_separation */ 17:
8313
+ message.audioSeparation = AudioSeparation.internalBinaryRead(reader, reader.uint32(), options, message.audioSeparation);
8314
+ break;
8315
+ case /* nimi.runtime.v1.TextAnnotationResult text_annotation */ 18:
8316
+ message.textAnnotation = TextAnnotationResult.internalBinaryRead(reader, reader.uint32(), options, message.textAnnotation);
8317
+ break;
7593
8318
  default:
7594
8319
  let u = options.readUnknownField;
7595
8320
  if (u === "throw")
@@ -7647,6 +8372,15 @@ class LocalAppScenarioJob$Type extends MessageType {
7647
8372
  /* nimi.runtime.v1.VideoFaceSwapSummary video_face_swap_summary = 15; */
7648
8373
  if (message.videoFaceSwapSummary)
7649
8374
  VideoFaceSwapSummary.internalBinaryWrite(message.videoFaceSwapSummary, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
8375
+ /* nimi.runtime.v1.SpeechTranscript transcription = 16; */
8376
+ if (message.transcription)
8377
+ SpeechTranscript.internalBinaryWrite(message.transcription, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
8378
+ /* nimi.runtime.v1.AudioSeparation audio_separation = 17; */
8379
+ if (message.audioSeparation)
8380
+ AudioSeparation.internalBinaryWrite(message.audioSeparation, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
8381
+ /* nimi.runtime.v1.TextAnnotationResult text_annotation = 18; */
8382
+ if (message.textAnnotation)
8383
+ TextAnnotationResult.internalBinaryWrite(message.textAnnotation, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
7650
8384
  let u = options.writeUnknownFields;
7651
8385
  if (u !== false)
7652
8386
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -9689,7 +10423,10 @@ class ScenarioJob$Type extends MessageType {
9689
10423
  { no: 23, name: "transcription_text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
9690
10424
  { no: 24, name: "effective_input_identity", kind: "message", T: () => LoadoutEffectiveInputIdentity },
9691
10425
  { no: 25, name: "interruption", kind: "message", T: () => ExecutionInterruption },
9692
- { no: 26, name: "video_face_swap_summary", kind: "message", T: () => VideoFaceSwapSummary }
10426
+ { no: 26, name: "video_face_swap_summary", kind: "message", T: () => VideoFaceSwapSummary },
10427
+ { no: 27, name: "transcription", kind: "message", T: () => SpeechTranscript },
10428
+ { no: 28, name: "audio_separation", kind: "message", T: () => AudioSeparation },
10429
+ { no: 29, name: "text_annotation", kind: "message", T: () => TextAnnotationResult }
9693
10430
  ]);
9694
10431
  }
9695
10432
  create(value) {
@@ -9798,6 +10535,15 @@ class ScenarioJob$Type extends MessageType {
9798
10535
  case /* nimi.runtime.v1.VideoFaceSwapSummary video_face_swap_summary */ 26:
9799
10536
  message.videoFaceSwapSummary = VideoFaceSwapSummary.internalBinaryRead(reader, reader.uint32(), options, message.videoFaceSwapSummary);
9800
10537
  break;
10538
+ case /* nimi.runtime.v1.SpeechTranscript transcription */ 27:
10539
+ message.transcription = SpeechTranscript.internalBinaryRead(reader, reader.uint32(), options, message.transcription);
10540
+ break;
10541
+ case /* nimi.runtime.v1.AudioSeparation audio_separation */ 28:
10542
+ message.audioSeparation = AudioSeparation.internalBinaryRead(reader, reader.uint32(), options, message.audioSeparation);
10543
+ break;
10544
+ case /* nimi.runtime.v1.TextAnnotationResult text_annotation */ 29:
10545
+ message.textAnnotation = TextAnnotationResult.internalBinaryRead(reader, reader.uint32(), options, message.textAnnotation);
10546
+ break;
9801
10547
  default:
9802
10548
  let u = options.readUnknownField;
9803
10549
  if (u === "throw")
@@ -9888,6 +10634,15 @@ class ScenarioJob$Type extends MessageType {
9888
10634
  /* nimi.runtime.v1.VideoFaceSwapSummary video_face_swap_summary = 26; */
9889
10635
  if (message.videoFaceSwapSummary)
9890
10636
  VideoFaceSwapSummary.internalBinaryWrite(message.videoFaceSwapSummary, writer.tag(26, WireType.LengthDelimited).fork(), options).join();
10637
+ /* nimi.runtime.v1.SpeechTranscript transcription = 27; */
10638
+ if (message.transcription)
10639
+ SpeechTranscript.internalBinaryWrite(message.transcription, writer.tag(27, WireType.LengthDelimited).fork(), options).join();
10640
+ /* nimi.runtime.v1.AudioSeparation audio_separation = 28; */
10641
+ if (message.audioSeparation)
10642
+ AudioSeparation.internalBinaryWrite(message.audioSeparation, writer.tag(28, WireType.LengthDelimited).fork(), options).join();
10643
+ /* nimi.runtime.v1.TextAnnotationResult text_annotation = 29; */
10644
+ if (message.textAnnotation)
10645
+ TextAnnotationResult.internalBinaryWrite(message.textAnnotation, writer.tag(29, WireType.LengthDelimited).fork(), options).join();
9891
10646
  let u = options.writeUnknownFields;
9892
10647
  if (u !== false)
9893
10648
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);