@ondewo/s2t-client-typescript 7.0.0 → 7.1.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.
@@ -1634,6 +1634,16 @@ export class TurnDetectionOptions extends jspb.Message {
1634
1634
  hasLlmRequestTimeout(): boolean;
1635
1635
  clearLlmRequestTimeout(): TurnDetectionOptions;
1636
1636
 
1637
+ getLlmModelName(): string;
1638
+ setLlmModelName(value: string): TurnDetectionOptions;
1639
+ hasLlmModelName(): boolean;
1640
+ clearLlmModelName(): TurnDetectionOptions;
1641
+
1642
+ getLlmHeaders(): google_protobuf_struct_pb.Struct | undefined;
1643
+ setLlmHeaders(value?: google_protobuf_struct_pb.Struct): TurnDetectionOptions;
1644
+ hasLlmHeaders(): boolean;
1645
+ clearLlmHeaders(): TurnDetectionOptions;
1646
+
1637
1647
  serializeBinary(): Uint8Array;
1638
1648
  toObject(includeInstance?: boolean): TurnDetectionOptions.AsObject;
1639
1649
  static toObject(includeInstance: boolean, msg: TurnDetectionOptions): TurnDetectionOptions.AsObject;
@@ -1649,6 +1659,8 @@ export namespace TurnDetectionOptions {
1649
1659
  llmHost?: string,
1650
1660
  llmPort?: number,
1651
1661
  llmRequestTimeout?: number,
1662
+ llmModelName?: string,
1663
+ llmHeaders?: google_protobuf_struct_pb.Struct.AsObject,
1652
1664
  }
1653
1665
 
1654
1666
  export enum ActiveCase {
@@ -1675,6 +1687,16 @@ export namespace TurnDetectionOptions {
1675
1687
  _LLM_REQUEST_TIMEOUT_NOT_SET = 0,
1676
1688
  LLM_REQUEST_TIMEOUT = 5,
1677
1689
  }
1690
+
1691
+ export enum LlmModelNameCase {
1692
+ _LLM_MODEL_NAME_NOT_SET = 0,
1693
+ LLM_MODEL_NAME = 6,
1694
+ }
1695
+
1696
+ export enum LlmHeadersCase {
1697
+ _LLM_HEADERS_NOT_SET = 0,
1698
+ LLM_HEADERS = 7,
1699
+ }
1678
1700
  }
1679
1701
 
1680
1702
  export class VoiceActivityDetection extends jspb.Message {
@@ -1912,6 +1934,16 @@ export class S2tLlmPostProcessing extends jspb.Message {
1912
1934
  hasS2tLlmPostProcessingUserPromptOptions(): boolean;
1913
1935
  clearS2tLlmPostProcessingUserPromptOptions(): S2tLlmPostProcessing;
1914
1936
 
1937
+ getLlmModelName(): string;
1938
+ setLlmModelName(value: string): S2tLlmPostProcessing;
1939
+ hasLlmModelName(): boolean;
1940
+ clearLlmModelName(): S2tLlmPostProcessing;
1941
+
1942
+ getLlmHeaders(): google_protobuf_struct_pb.Struct | undefined;
1943
+ setLlmHeaders(value?: google_protobuf_struct_pb.Struct): S2tLlmPostProcessing;
1944
+ hasLlmHeaders(): boolean;
1945
+ clearLlmHeaders(): S2tLlmPostProcessing;
1946
+
1915
1947
  serializeBinary(): Uint8Array;
1916
1948
  toObject(includeInstance?: boolean): S2tLlmPostProcessing.AsObject;
1917
1949
  static toObject(includeInstance: boolean, msg: S2tLlmPostProcessing): S2tLlmPostProcessing.AsObject;
@@ -1934,6 +1966,8 @@ export namespace S2tLlmPostProcessing {
1934
1966
  s2tLlmPostProcessingNormalizationOptions?: S2tLlmPostProcessingNormalizationOptions.AsObject,
1935
1967
  s2tLlmPostProcessingSummarizationOptions?: S2tLlmPostProcessingSummarizationOptions.AsObject,
1936
1968
  s2tLlmPostProcessingUserPromptOptions?: S2tLlmPostProcessingUserPromptOptions.AsObject,
1969
+ llmModelName?: string,
1970
+ llmHeaders?: google_protobuf_struct_pb.Struct.AsObject,
1937
1971
  }
1938
1972
 
1939
1973
  export enum LlmHostCase {
@@ -1995,6 +2029,16 @@ export namespace S2tLlmPostProcessing {
1995
2029
  _S2T_LLM_POST_PROCESSING_USER_PROMPT_OPTIONS_NOT_SET = 0,
1996
2030
  S2T_LLM_POST_PROCESSING_USER_PROMPT_OPTIONS = 12,
1997
2031
  }
2032
+
2033
+ export enum LlmModelNameCase {
2034
+ _LLM_MODEL_NAME_NOT_SET = 0,
2035
+ LLM_MODEL_NAME = 13,
2036
+ }
2037
+
2038
+ export enum LlmHeadersCase {
2039
+ _LLM_HEADERS_NOT_SET = 0,
2040
+ LLM_HEADERS = 14,
2041
+ }
1998
2042
  }
1999
2043
 
2000
2044
  export class S2tLlmPostProcessingCasingOptions extends jspb.Message {
@@ -12723,7 +12723,9 @@ active: (f = jspb.Message.getBooleanField(msg, 1)) == null ? undefined : f,
12723
12723
  fullUtteranceDeployment: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f,
12724
12724
  llmHost: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
12725
12725
  llmPort: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
12726
- llmRequestTimeout: (f = jspb.Message.getOptionalFloatingPointField(msg, 5)) == null ? undefined : f
12726
+ llmRequestTimeout: (f = jspb.Message.getOptionalFloatingPointField(msg, 5)) == null ? undefined : f,
12727
+ llmModelName: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
12728
+ llmHeaders: (f = msg.getLlmHeaders()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
12727
12729
  };
12728
12730
 
12729
12731
  if (includeInstance) {
@@ -12780,6 +12782,15 @@ proto.ondewo.s2t.TurnDetectionOptions.deserializeBinaryFromReader = function(msg
12780
12782
  var value = /** @type {number} */ (reader.readFloat());
12781
12783
  msg.setLlmRequestTimeout(value);
12782
12784
  break;
12785
+ case 6:
12786
+ var value = /** @type {string} */ (reader.readString());
12787
+ msg.setLlmModelName(value);
12788
+ break;
12789
+ case 7:
12790
+ var value = new google_protobuf_struct_pb.Struct;
12791
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
12792
+ msg.setLlmHeaders(value);
12793
+ break;
12783
12794
  default:
12784
12795
  reader.skipField();
12785
12796
  break;
@@ -12844,6 +12855,21 @@ proto.ondewo.s2t.TurnDetectionOptions.serializeBinaryToWriter = function(message
12844
12855
  f
12845
12856
  );
12846
12857
  }
12858
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
12859
+ if (f != null) {
12860
+ writer.writeString(
12861
+ 6,
12862
+ f
12863
+ );
12864
+ }
12865
+ f = message.getLlmHeaders();
12866
+ if (f != null) {
12867
+ writer.writeMessage(
12868
+ 7,
12869
+ f,
12870
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
12871
+ );
12872
+ }
12847
12873
  };
12848
12874
 
12849
12875
 
@@ -13027,6 +13053,79 @@ proto.ondewo.s2t.TurnDetectionOptions.prototype.hasLlmRequestTimeout = function(
13027
13053
  };
13028
13054
 
13029
13055
 
13056
+ /**
13057
+ * optional string llm_model_name = 6;
13058
+ * @return {string}
13059
+ */
13060
+ proto.ondewo.s2t.TurnDetectionOptions.prototype.getLlmModelName = function() {
13061
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
13062
+ };
13063
+
13064
+
13065
+ /**
13066
+ * @param {string} value
13067
+ * @return {!proto.ondewo.s2t.TurnDetectionOptions} returns this
13068
+ */
13069
+ proto.ondewo.s2t.TurnDetectionOptions.prototype.setLlmModelName = function(value) {
13070
+ return jspb.Message.setField(this, 6, value);
13071
+ };
13072
+
13073
+
13074
+ /**
13075
+ * Clears the field making it undefined.
13076
+ * @return {!proto.ondewo.s2t.TurnDetectionOptions} returns this
13077
+ */
13078
+ proto.ondewo.s2t.TurnDetectionOptions.prototype.clearLlmModelName = function() {
13079
+ return jspb.Message.setField(this, 6, undefined);
13080
+ };
13081
+
13082
+
13083
+ /**
13084
+ * Returns whether this field is set.
13085
+ * @return {boolean}
13086
+ */
13087
+ proto.ondewo.s2t.TurnDetectionOptions.prototype.hasLlmModelName = function() {
13088
+ return jspb.Message.getField(this, 6) != null;
13089
+ };
13090
+
13091
+
13092
+ /**
13093
+ * optional google.protobuf.Struct llm_headers = 7;
13094
+ * @return {?proto.google.protobuf.Struct}
13095
+ */
13096
+ proto.ondewo.s2t.TurnDetectionOptions.prototype.getLlmHeaders = function() {
13097
+ return /** @type{?proto.google.protobuf.Struct} */ (
13098
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7));
13099
+ };
13100
+
13101
+
13102
+ /**
13103
+ * @param {?proto.google.protobuf.Struct|undefined} value
13104
+ * @return {!proto.ondewo.s2t.TurnDetectionOptions} returns this
13105
+ */
13106
+ proto.ondewo.s2t.TurnDetectionOptions.prototype.setLlmHeaders = function(value) {
13107
+ return jspb.Message.setWrapperField(this, 7, value);
13108
+ };
13109
+
13110
+
13111
+ /**
13112
+ * Clears the message field making it undefined.
13113
+ * @return {!proto.ondewo.s2t.TurnDetectionOptions} returns this
13114
+ */
13115
+ proto.ondewo.s2t.TurnDetectionOptions.prototype.clearLlmHeaders = function() {
13116
+ return this.setLlmHeaders(undefined);
13117
+ };
13118
+
13119
+
13120
+ /**
13121
+ * Returns whether this field is set.
13122
+ * @return {boolean}
13123
+ */
13124
+ proto.ondewo.s2t.TurnDetectionOptions.prototype.hasLlmHeaders = function() {
13125
+ return jspb.Message.getField(this, 7) != null;
13126
+ };
13127
+
13128
+
13030
13129
 
13031
13130
 
13032
13131
 
@@ -14397,7 +14496,9 @@ s2tLlmPostProcessingTranslationOptions: (f = msg.getS2tLlmPostProcessingTranslat
14397
14496
  s2tLlmPostProcessingInverseNormalizationOptions: (f = msg.getS2tLlmPostProcessingInverseNormalizationOptions()) && proto.ondewo.s2t.S2tLlmPostProcessingInverseNormalizationOptions.toObject(includeInstance, f),
14398
14497
  s2tLlmPostProcessingNormalizationOptions: (f = msg.getS2tLlmPostProcessingNormalizationOptions()) && proto.ondewo.s2t.S2tLlmPostProcessingNormalizationOptions.toObject(includeInstance, f),
14399
14498
  s2tLlmPostProcessingSummarizationOptions: (f = msg.getS2tLlmPostProcessingSummarizationOptions()) && proto.ondewo.s2t.S2tLlmPostProcessingSummarizationOptions.toObject(includeInstance, f),
14400
- s2tLlmPostProcessingUserPromptOptions: (f = msg.getS2tLlmPostProcessingUserPromptOptions()) && proto.ondewo.s2t.S2tLlmPostProcessingUserPromptOptions.toObject(includeInstance, f)
14499
+ s2tLlmPostProcessingUserPromptOptions: (f = msg.getS2tLlmPostProcessingUserPromptOptions()) && proto.ondewo.s2t.S2tLlmPostProcessingUserPromptOptions.toObject(includeInstance, f),
14500
+ llmModelName: (f = jspb.Message.getField(msg, 13)) == null ? undefined : f,
14501
+ llmHeaders: (f = msg.getLlmHeaders()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
14401
14502
  };
14402
14503
 
14403
14504
  if (includeInstance) {
@@ -14491,6 +14592,15 @@ proto.ondewo.s2t.S2tLlmPostProcessing.deserializeBinaryFromReader = function(msg
14491
14592
  reader.readMessage(value,proto.ondewo.s2t.S2tLlmPostProcessingUserPromptOptions.deserializeBinaryFromReader);
14492
14593
  msg.setS2tLlmPostProcessingUserPromptOptions(value);
14493
14594
  break;
14595
+ case 13:
14596
+ var value = /** @type {string} */ (reader.readString());
14597
+ msg.setLlmModelName(value);
14598
+ break;
14599
+ case 14:
14600
+ var value = new google_protobuf_struct_pb.Struct;
14601
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
14602
+ msg.setLlmHeaders(value);
14603
+ break;
14494
14604
  default:
14495
14605
  reader.skipField();
14496
14606
  break;
@@ -14613,6 +14723,21 @@ proto.ondewo.s2t.S2tLlmPostProcessing.serializeBinaryToWriter = function(message
14613
14723
  proto.ondewo.s2t.S2tLlmPostProcessingUserPromptOptions.serializeBinaryToWriter
14614
14724
  );
14615
14725
  }
14726
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
14727
+ if (f != null) {
14728
+ writer.writeString(
14729
+ 13,
14730
+ f
14731
+ );
14732
+ }
14733
+ f = message.getLlmHeaders();
14734
+ if (f != null) {
14735
+ writer.writeMessage(
14736
+ 14,
14737
+ f,
14738
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
14739
+ );
14740
+ }
14616
14741
  };
14617
14742
 
14618
14743
 
@@ -15057,6 +15182,79 @@ proto.ondewo.s2t.S2tLlmPostProcessing.prototype.hasS2tLlmPostProcessingUserPromp
15057
15182
  };
15058
15183
 
15059
15184
 
15185
+ /**
15186
+ * optional string llm_model_name = 13;
15187
+ * @return {string}
15188
+ */
15189
+ proto.ondewo.s2t.S2tLlmPostProcessing.prototype.getLlmModelName = function() {
15190
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
15191
+ };
15192
+
15193
+
15194
+ /**
15195
+ * @param {string} value
15196
+ * @return {!proto.ondewo.s2t.S2tLlmPostProcessing} returns this
15197
+ */
15198
+ proto.ondewo.s2t.S2tLlmPostProcessing.prototype.setLlmModelName = function(value) {
15199
+ return jspb.Message.setField(this, 13, value);
15200
+ };
15201
+
15202
+
15203
+ /**
15204
+ * Clears the field making it undefined.
15205
+ * @return {!proto.ondewo.s2t.S2tLlmPostProcessing} returns this
15206
+ */
15207
+ proto.ondewo.s2t.S2tLlmPostProcessing.prototype.clearLlmModelName = function() {
15208
+ return jspb.Message.setField(this, 13, undefined);
15209
+ };
15210
+
15211
+
15212
+ /**
15213
+ * Returns whether this field is set.
15214
+ * @return {boolean}
15215
+ */
15216
+ proto.ondewo.s2t.S2tLlmPostProcessing.prototype.hasLlmModelName = function() {
15217
+ return jspb.Message.getField(this, 13) != null;
15218
+ };
15219
+
15220
+
15221
+ /**
15222
+ * optional google.protobuf.Struct llm_headers = 14;
15223
+ * @return {?proto.google.protobuf.Struct}
15224
+ */
15225
+ proto.ondewo.s2t.S2tLlmPostProcessing.prototype.getLlmHeaders = function() {
15226
+ return /** @type{?proto.google.protobuf.Struct} */ (
15227
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 14));
15228
+ };
15229
+
15230
+
15231
+ /**
15232
+ * @param {?proto.google.protobuf.Struct|undefined} value
15233
+ * @return {!proto.ondewo.s2t.S2tLlmPostProcessing} returns this
15234
+ */
15235
+ proto.ondewo.s2t.S2tLlmPostProcessing.prototype.setLlmHeaders = function(value) {
15236
+ return jspb.Message.setWrapperField(this, 14, value);
15237
+ };
15238
+
15239
+
15240
+ /**
15241
+ * Clears the message field making it undefined.
15242
+ * @return {!proto.ondewo.s2t.S2tLlmPostProcessing} returns this
15243
+ */
15244
+ proto.ondewo.s2t.S2tLlmPostProcessing.prototype.clearLlmHeaders = function() {
15245
+ return this.setLlmHeaders(undefined);
15246
+ };
15247
+
15248
+
15249
+ /**
15250
+ * Returns whether this field is set.
15251
+ * @return {boolean}
15252
+ */
15253
+ proto.ondewo.s2t.S2tLlmPostProcessing.prototype.hasLlmHeaders = function() {
15254
+ return jspb.Message.getField(this, 14) != null;
15255
+ };
15256
+
15257
+
15060
15258
 
15061
15259
 
15062
15260
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ondewo/s2t-client-typescript",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "ONDEWO Speech to Text (S2T) Client library for Typescript",
5
5
  "author": "ONDEWO GmbH <office@ondewo.com>",
6
6
  "homepage": "https://ondewo.com",
package/public-api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
+ export * from './api/google/protobuf/struct_pb.d';
2
+ export * from './api/google/protobuf/empty_pb.d';
1
3
  export * from './api/ondewo/s2t/speech-to-text_grpc_web_pb.d';
2
4
  export * from './api/ondewo/s2t/speech-to-text_pb.d';
3
- export * from './api/google/protobuf/empty_pb.d';
4
- export * from './api/google/protobuf/struct_pb.d';
package/public-api.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from './api/ondewo/s2t/speech-to-text_grpc_web_pb';
2
- export * from './api/ondewo/s2t/speech-to-text_pb';
3
- export * from './api/google/protobuf/struct_pb';
4
1
  export * from './api/google/protobuf/empty_pb';
2
+ export * from './api/google/protobuf/struct_pb';
3
+ export * from './api/ondewo/s2t/speech-to-text_pb';
4
+ export * from './api/ondewo/s2t/speech-to-text_grpc_web_pb';