@volley/recognition-client-sdk 0.1.689 → 0.1.707
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/dist/browser.bundled.d.ts +13 -1
- package/dist/config-builder.d.ts +5 -0
- package/dist/config-builder.d.ts.map +1 -1
- package/dist/index.bundled.d.ts +64 -47
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -3
- package/dist/index.js.map +3 -3
- package/dist/recog-client-sdk.browser.js +14 -3
- package/dist/recog-client-sdk.browser.js.map +3 -3
- package/dist/recognition-client.d.ts.map +1 -1
- package/dist/recognition-client.types.d.ts +2 -0
- package/dist/recognition-client.types.d.ts.map +1 -1
- package/dist/utils/url-builder.d.ts +2 -0
- package/dist/utils/url-builder.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/config-builder.ts +9 -0
- package/src/index.ts +1 -0
- package/src/recognition-client.ts +2 -1
- package/src/recognition-client.types.ts +3 -0
- package/src/utils/url-builder.ts +7 -0
package/dist/index.js
CHANGED
|
@@ -3746,6 +3746,7 @@ var RecognitionProvider;
|
|
|
3746
3746
|
RecognitionProvider2["MISTRAL_VOXTRAL"] = "mistral-voxtral";
|
|
3747
3747
|
RecognitionProvider2["CARTESIA"] = "cartesia";
|
|
3748
3748
|
RecognitionProvider2["DASHSCOPE"] = "dashscope";
|
|
3749
|
+
RecognitionProvider2["BEDROCK"] = "bedrock";
|
|
3749
3750
|
RecognitionProvider2["TEST_ASR_PROVIDER_QUOTA"] = "test-asr-provider-quota";
|
|
3750
3751
|
RecognitionProvider2["TEST_ASR_STREAMING"] = "test-asr-streaming";
|
|
3751
3752
|
})(RecognitionProvider || (RecognitionProvider = {}));
|
|
@@ -3813,6 +3814,11 @@ var DashScopeModel;
|
|
|
3813
3814
|
DashScopeModel2["QWEN3_ASR_FLASH_REALTIME_2602"] = "qwen3-asr-flash-realtime-2026-02-10";
|
|
3814
3815
|
DashScopeModel2["QWEN3_ASR_FLASH_REALTIME"] = "qwen3-asr-flash-realtime";
|
|
3815
3816
|
})(DashScopeModel || (DashScopeModel = {}));
|
|
3817
|
+
var BedrockModel;
|
|
3818
|
+
(function(BedrockModel2) {
|
|
3819
|
+
BedrockModel2["VOXTRAL_MINI_3B_2507"] = "mistral.voxtral-mini-3b-2507";
|
|
3820
|
+
BedrockModel2["VOXTRAL_SMALL_24B_2507"] = "mistral.voxtral-small-24b-2507";
|
|
3821
|
+
})(BedrockModel || (BedrockModel = {}));
|
|
3816
3822
|
var SelfServeVllmModel;
|
|
3817
3823
|
(function(SelfServeVllmModel2) {
|
|
3818
3824
|
SelfServeVllmModel2["QWEN3_ASR_1_7B"] = "qwen3-asr-1.7b";
|
|
@@ -4456,8 +4462,9 @@ var RecognitionGameInfoSchema = z.object({
|
|
|
4456
4462
|
/** @deprecated Use questionAskedId instead. Kept for backward compatibility during migration. */
|
|
4457
4463
|
questionAnswerId: z.string().optional(),
|
|
4458
4464
|
platform: z.string().optional(),
|
|
4459
|
-
experimentCohort: z.enum(["treatment", "control"]).optional()
|
|
4460
|
-
|
|
4465
|
+
experimentCohort: z.enum(["treatment", "control"]).optional(),
|
|
4466
|
+
experimentMajorVersion: z.number().int().optional()
|
|
4467
|
+
// Explicit major version for ASR config selection (e.g. 1, 3)
|
|
4461
4468
|
});
|
|
4462
4469
|
var RecognitionQueryMetadataSchema = z.object({
|
|
4463
4470
|
audioUtteranceId: z.string(),
|
|
@@ -5132,6 +5139,9 @@ function buildWebSocketUrl(config) {
|
|
|
5132
5139
|
if (config.experimentCohort) {
|
|
5133
5140
|
url.searchParams.set("experimentCohort", config.experimentCohort);
|
|
5134
5141
|
}
|
|
5142
|
+
if (config.experimentMajorVersion !== void 0) {
|
|
5143
|
+
url.searchParams.set("experimentMajorVersion", String(config.experimentMajorVersion));
|
|
5144
|
+
}
|
|
5135
5145
|
return url.toString();
|
|
5136
5146
|
}
|
|
5137
5147
|
|
|
@@ -5429,7 +5439,8 @@ var RealTimeTwoWayWebSocketRecognitionClient = class _RealTimeTwoWayWebSocketRec
|
|
|
5429
5439
|
...config.platform && { platform: config.platform },
|
|
5430
5440
|
...config.gameContext && { gameContext: config.gameContext },
|
|
5431
5441
|
...config.gameId && { gameId: config.gameId },
|
|
5432
|
-
...config.experimentCohort && { experimentCohort: config.experimentCohort }
|
|
5442
|
+
...config.experimentCohort && { experimentCohort: config.experimentCohort },
|
|
5443
|
+
...config.experimentMajorVersion !== void 0 && { experimentMajorVersion: config.experimentMajorVersion }
|
|
5433
5444
|
});
|
|
5434
5445
|
super({
|
|
5435
5446
|
url,
|
|
@@ -6141,6 +6152,14 @@ var ConfigBuilder = class {
|
|
|
6141
6152
|
this.config.experimentCohort = cohort;
|
|
6142
6153
|
return this;
|
|
6143
6154
|
}
|
|
6155
|
+
/**
|
|
6156
|
+
* Set explicit major version for ASR config selection.
|
|
6157
|
+
* Takes precedence over experimentCohort-based version resolution.
|
|
6158
|
+
*/
|
|
6159
|
+
experimentMajorVersion(version) {
|
|
6160
|
+
this.config.experimentMajorVersion = version;
|
|
6161
|
+
return this;
|
|
6162
|
+
}
|
|
6144
6163
|
/**
|
|
6145
6164
|
* Set transcript callback
|
|
6146
6165
|
*/
|
|
@@ -6651,6 +6670,7 @@ function createSimplifiedVGFClient(config) {
|
|
|
6651
6670
|
}
|
|
6652
6671
|
export {
|
|
6653
6672
|
AudioEncoding,
|
|
6673
|
+
BedrockModel,
|
|
6654
6674
|
CartesiaModel,
|
|
6655
6675
|
ClientControlActionV1,
|
|
6656
6676
|
ClientState,
|