@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
|
@@ -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";
|
|
@@ -4433,8 +4439,9 @@ var RecognitionGameInfoSchema = z.object({
|
|
|
4433
4439
|
/** @deprecated Use questionAskedId instead. Kept for backward compatibility during migration. */
|
|
4434
4440
|
questionAnswerId: z.string().optional(),
|
|
4435
4441
|
platform: z.string().optional(),
|
|
4436
|
-
experimentCohort: z.enum(["treatment", "control"]).optional()
|
|
4437
|
-
|
|
4442
|
+
experimentCohort: z.enum(["treatment", "control"]).optional(),
|
|
4443
|
+
experimentMajorVersion: z.number().int().optional()
|
|
4444
|
+
// Explicit major version for ASR config selection (e.g. 1, 3)
|
|
4438
4445
|
});
|
|
4439
4446
|
var RecognitionQueryMetadataSchema = z.object({
|
|
4440
4447
|
audioUtteranceId: z.string(),
|
|
@@ -5064,6 +5071,9 @@ function buildWebSocketUrl(config) {
|
|
|
5064
5071
|
if (config.experimentCohort) {
|
|
5065
5072
|
url.searchParams.set("experimentCohort", config.experimentCohort);
|
|
5066
5073
|
}
|
|
5074
|
+
if (config.experimentMajorVersion !== void 0) {
|
|
5075
|
+
url.searchParams.set("experimentMajorVersion", String(config.experimentMajorVersion));
|
|
5076
|
+
}
|
|
5067
5077
|
return url.toString();
|
|
5068
5078
|
}
|
|
5069
5079
|
|
|
@@ -5335,7 +5345,8 @@ var RealTimeTwoWayWebSocketRecognitionClient = class _RealTimeTwoWayWebSocketRec
|
|
|
5335
5345
|
...config.platform && { platform: config.platform },
|
|
5336
5346
|
...config.gameContext && { gameContext: config.gameContext },
|
|
5337
5347
|
...config.gameId && { gameId: config.gameId },
|
|
5338
|
-
...config.experimentCohort && { experimentCohort: config.experimentCohort }
|
|
5348
|
+
...config.experimentCohort && { experimentCohort: config.experimentCohort },
|
|
5349
|
+
...config.experimentMajorVersion !== void 0 && { experimentMajorVersion: config.experimentMajorVersion }
|
|
5339
5350
|
});
|
|
5340
5351
|
super({
|
|
5341
5352
|
url,
|