syllable-sdk 1.0.4-rc.1 → 1.0.4
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/README.md +28 -13
- package/bin/mcp-server.js +1033 -15
- package/bin/mcp-server.js.map +46 -25
- package/docs/sdks/languagegroups/README.md +31 -19
- package/docs/sdks/voicegroups/README.md +551 -0
- package/examples/package-lock.json +1 -1
- package/funcs/languageGroupsCreate.d.ts +3 -1
- package/funcs/languageGroupsCreate.d.ts.map +1 -1
- package/funcs/languageGroupsCreate.js +3 -1
- package/funcs/languageGroupsCreate.js.map +1 -1
- package/funcs/languageGroupsDelete.d.ts +3 -1
- package/funcs/languageGroupsDelete.d.ts.map +1 -1
- package/funcs/languageGroupsDelete.js +3 -1
- package/funcs/languageGroupsDelete.js.map +1 -1
- package/funcs/languageGroupsGetById.d.ts +3 -1
- package/funcs/languageGroupsGetById.d.ts.map +1 -1
- package/funcs/languageGroupsGetById.js +3 -1
- package/funcs/languageGroupsGetById.js.map +1 -1
- package/funcs/languageGroupsLanguageGroupsCreateVoiceSample.d.ts +4 -2
- package/funcs/languageGroupsLanguageGroupsCreateVoiceSample.d.ts.map +1 -1
- package/funcs/languageGroupsLanguageGroupsCreateVoiceSample.js +4 -2
- package/funcs/languageGroupsLanguageGroupsCreateVoiceSample.js.map +1 -1
- package/funcs/languageGroupsList.d.ts +3 -1
- package/funcs/languageGroupsList.d.ts.map +1 -1
- package/funcs/languageGroupsList.js +3 -1
- package/funcs/languageGroupsList.js.map +1 -1
- package/funcs/languageGroupsUpdate.d.ts +3 -1
- package/funcs/languageGroupsUpdate.d.ts.map +1 -1
- package/funcs/languageGroupsUpdate.js +3 -1
- package/funcs/languageGroupsUpdate.js.map +1 -1
- package/funcs/voiceGroupsCreate.d.ts +18 -0
- package/funcs/voiceGroupsCreate.d.ts.map +1 -0
- package/funcs/voiceGroupsCreate.js +118 -0
- package/funcs/voiceGroupsCreate.js.map +1 -0
- package/funcs/voiceGroupsDelete.d.ts +18 -0
- package/funcs/voiceGroupsDelete.d.ts.map +1 -0
- package/funcs/voiceGroupsDelete.js +128 -0
- package/funcs/voiceGroupsDelete.js.map +1 -0
- package/funcs/voiceGroupsGetById.d.ts +19 -0
- package/funcs/voiceGroupsGetById.d.ts.map +1 -0
- package/funcs/voiceGroupsGetById.js +124 -0
- package/funcs/voiceGroupsGetById.js.map +1 -0
- package/funcs/voiceGroupsList.d.ts +19 -0
- package/funcs/voiceGroupsList.d.ts.map +1 -0
- package/funcs/voiceGroupsList.js +130 -0
- package/funcs/voiceGroupsList.js.map +1 -0
- package/funcs/voiceGroupsUpdate.d.ts +18 -0
- package/funcs/voiceGroupsUpdate.d.ts.map +1 -0
- package/funcs/voiceGroupsUpdate.js +118 -0
- package/funcs/voiceGroupsUpdate.js.map +1 -0
- package/funcs/voiceGroupsVoiceGroupsCreateVoiceSample.d.ts +18 -0
- package/funcs/voiceGroupsVoiceGroupsCreateVoiceSample.d.ts.map +1 -0
- package/funcs/voiceGroupsVoiceGroupsCreateVoiceSample.js +119 -0
- package/funcs/voiceGroupsVoiceGroupsCreateVoiceSample.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +18 -1
- package/lib/env.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +13 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/languageGroupsCreate.js +1 -1
- package/mcp-server/tools/languageGroupsCreate.js.map +1 -1
- package/mcp-server/tools/languageGroupsDelete.js +1 -1
- package/mcp-server/tools/languageGroupsDelete.js.map +1 -1
- package/mcp-server/tools/languageGroupsGetById.js +1 -1
- package/mcp-server/tools/languageGroupsGetById.js.map +1 -1
- package/mcp-server/tools/languageGroupsLanguageGroupsCreateVoiceSample.d.ts +1 -1
- package/mcp-server/tools/languageGroupsLanguageGroupsCreateVoiceSample.js +2 -2
- package/mcp-server/tools/languageGroupsLanguageGroupsCreateVoiceSample.js.map +1 -1
- package/mcp-server/tools/languageGroupsList.js +1 -1
- package/mcp-server/tools/languageGroupsList.js.map +1 -1
- package/mcp-server/tools/languageGroupsUpdate.js +1 -1
- package/mcp-server/tools/languageGroupsUpdate.js.map +1 -1
- package/mcp-server/tools/voiceGroupsCreate.d.ts +8 -0
- package/mcp-server/tools/voiceGroupsCreate.d.ts.map +1 -0
- package/mcp-server/tools/voiceGroupsCreate.js +64 -0
- package/mcp-server/tools/voiceGroupsCreate.js.map +1 -0
- package/mcp-server/tools/voiceGroupsDelete.d.ts +8 -0
- package/mcp-server/tools/voiceGroupsDelete.d.ts.map +1 -0
- package/mcp-server/tools/voiceGroupsDelete.js +64 -0
- package/mcp-server/tools/voiceGroupsDelete.js.map +1 -0
- package/mcp-server/tools/voiceGroupsGetById.d.ts +8 -0
- package/mcp-server/tools/voiceGroupsGetById.d.ts.map +1 -0
- package/mcp-server/tools/voiceGroupsGetById.js +64 -0
- package/mcp-server/tools/voiceGroupsGetById.js.map +1 -0
- package/mcp-server/tools/voiceGroupsList.d.ts +8 -0
- package/mcp-server/tools/voiceGroupsList.d.ts.map +1 -0
- package/mcp-server/tools/voiceGroupsList.js +64 -0
- package/mcp-server/tools/voiceGroupsList.js.map +1 -0
- package/mcp-server/tools/voiceGroupsUpdate.d.ts +8 -0
- package/mcp-server/tools/voiceGroupsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/voiceGroupsUpdate.js +64 -0
- package/mcp-server/tools/voiceGroupsUpdate.js.map +1 -0
- package/mcp-server/tools/voiceGroupsVoiceGroupsCreateVoiceSample.d.ts +8 -0
- package/mcp-server/tools/voiceGroupsVoiceGroupsCreateVoiceSample.d.ts.map +1 -0
- package/mcp-server/tools/voiceGroupsVoiceGroupsCreateVoiceSample.js +64 -0
- package/mcp-server/tools/voiceGroupsVoiceGroupsCreateVoiceSample.js.map +1 -0
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/languagegroupcreaterequest.d.ts +1 -1
- package/models/components/languagegroupproperties.d.ts +2 -2
- package/models/components/languagegroupproperties.js +1 -1
- package/models/components/languagegroupresponse.d.ts +3 -3
- package/models/components/languagegroupupdaterequest.d.ts +1 -1
- package/models/components/languagesamplecreaterequest.d.ts +68 -0
- package/models/components/languagesamplecreaterequest.d.ts.map +1 -0
- package/models/components/languagesamplecreaterequest.js +103 -0
- package/models/components/languagesamplecreaterequest.js.map +1 -0
- package/models/components/listresponsevoicegroupresponse.d.ts +53 -0
- package/models/components/listresponsevoicegroupresponse.d.ts.map +1 -0
- package/models/components/listresponsevoicegroupresponse.js +91 -0
- package/models/components/listresponsevoicegroupresponse.js.map +1 -0
- package/models/components/voicegroupcreaterequest.d.ts +51 -0
- package/models/components/voicegroupcreaterequest.d.ts.map +1 -0
- package/models/components/voicegroupcreaterequest.js +87 -0
- package/models/components/voicegroupcreaterequest.js.map +1 -0
- package/models/components/voicegroupproperties.d.ts +43 -0
- package/models/components/voicegroupproperties.d.ts.map +1 -0
- package/models/components/voicegroupproperties.js +66 -0
- package/models/components/voicegroupproperties.js.map +1 -0
- package/models/components/voicegroupresponse.d.ts +82 -0
- package/models/components/voicegroupresponse.d.ts.map +1 -0
- package/models/components/voicegroupresponse.js +108 -0
- package/models/components/voicegroupresponse.js.map +1 -0
- package/models/components/voicegroupupdaterequest.d.ts +61 -0
- package/models/components/voicegroupupdaterequest.d.ts.map +1 -0
- package/models/components/voicegroupupdaterequest.js +93 -0
- package/models/components/voicegroupupdaterequest.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/voicegroupsdelete.d.ts +31 -0
- package/models/operations/voicegroupsdelete.d.ts.map +1 -0
- package/models/operations/voicegroupsdelete.js +80 -0
- package/models/operations/voicegroupsdelete.js.map +1 -0
- package/models/operations/voicegroupsgetbyid.d.ts +29 -0
- package/models/operations/voicegroupsgetbyid.d.ts.map +1 -0
- package/models/operations/voicegroupsgetbyid.js +78 -0
- package/models/operations/voicegroupsgetbyid.js.map +1 -0
- package/models/operations/voicegroupslist.d.ts +73 -0
- package/models/operations/voicegroupslist.d.ts.map +1 -0
- package/models/operations/voicegroupslist.js +113 -0
- package/models/operations/voicegroupslist.js.map +1 -0
- package/openapi.json +1397 -490
- package/package.json +1 -1
- package/sdk/languagegroups.d.ts +19 -7
- package/sdk/languagegroups.d.ts.map +1 -1
- package/sdk/languagegroups.js +18 -6
- package/sdk/languagegroups.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/voicegroups.d.ts +48 -0
- package/sdk/voicegroups.d.ts.map +1 -0
- package/sdk/voicegroups.js +72 -0
- package/sdk/voicegroups.js.map +1 -0
- package/src/funcs/languageGroupsCreate.ts +3 -1
- package/src/funcs/languageGroupsDelete.ts +3 -1
- package/src/funcs/languageGroupsGetById.ts +3 -1
- package/src/funcs/languageGroupsLanguageGroupsCreateVoiceSample.ts +7 -4
- package/src/funcs/languageGroupsList.ts +3 -1
- package/src/funcs/languageGroupsUpdate.ts +3 -1
- package/src/funcs/voiceGroupsCreate.ts +169 -0
- package/src/funcs/voiceGroupsDelete.ts +181 -0
- package/src/funcs/voiceGroupsGetById.ts +176 -0
- package/src/funcs/voiceGroupsList.ts +182 -0
- package/src/funcs/voiceGroupsUpdate.ts +169 -0
- package/src/funcs/voiceGroupsVoiceGroupsCreateVoiceSample.ts +170 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/env.ts +20 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/languageGroupsCreate.ts +1 -1
- package/src/mcp-server/tools/languageGroupsDelete.ts +1 -1
- package/src/mcp-server/tools/languageGroupsGetById.ts +1 -1
- package/src/mcp-server/tools/languageGroupsLanguageGroupsCreateVoiceSample.ts +2 -2
- package/src/mcp-server/tools/languageGroupsList.ts +1 -1
- package/src/mcp-server/tools/languageGroupsUpdate.ts +1 -1
- package/src/mcp-server/tools/voiceGroupsCreate.ts +37 -0
- package/src/mcp-server/tools/voiceGroupsDelete.ts +37 -0
- package/src/mcp-server/tools/voiceGroupsGetById.ts +37 -0
- package/src/mcp-server/tools/voiceGroupsList.ts +37 -0
- package/src/mcp-server/tools/voiceGroupsUpdate.ts +37 -0
- package/src/mcp-server/tools/voiceGroupsVoiceGroupsCreateVoiceSample.ts +39 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/languagegroupcreaterequest.ts +1 -1
- package/src/models/components/languagegroupproperties.ts +2 -2
- package/src/models/components/languagegroupresponse.ts +3 -3
- package/src/models/components/languagegroupupdaterequest.ts +1 -1
- package/src/models/components/languagesamplecreaterequest.ts +150 -0
- package/src/models/components/listresponsevoicegroupresponse.ts +118 -0
- package/src/models/components/voicegroupcreaterequest.ts +110 -0
- package/src/models/components/voicegroupproperties.ts +42 -0
- package/src/models/components/voicegroupresponse.ts +166 -0
- package/src/models/components/voicegroupupdaterequest.ts +126 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/voicegroupsdelete.ts +79 -0
- package/src/models/operations/voicegroupsgetbyid.ts +75 -0
- package/src/models/operations/voicegroupslist.ts +153 -0
- package/src/sdk/languagegroups.ts +19 -7
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/voicegroups.ts +118 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34414,9 +34414,9 @@ var init_config = __esm(() => {
|
|
|
34414
34414
|
SDK_METADATA = {
|
|
34415
34415
|
language: "typescript",
|
|
34416
34416
|
openapiDocVersion: "0.0.2",
|
|
34417
|
-
sdkVersion: "1.0.4
|
|
34418
|
-
genVersion: "2.
|
|
34419
|
-
userAgent: "speakeasy-sdk/typescript 1.0.4
|
|
34417
|
+
sdkVersion: "1.0.4",
|
|
34418
|
+
genVersion: "2.727.4",
|
|
34419
|
+
userAgent: "speakeasy-sdk/typescript 1.0.4 2.727.4 0.0.2 syllable-sdk"
|
|
34420
34420
|
};
|
|
34421
34421
|
});
|
|
34422
34422
|
|
|
@@ -34686,11 +34686,23 @@ function dlv(obj, key, def, p, undef) {
|
|
|
34686
34686
|
}
|
|
34687
34687
|
|
|
34688
34688
|
// src/lib/env.ts
|
|
34689
|
+
function isDeno() {
|
|
34690
|
+
if ("Deno" in globalThis) {
|
|
34691
|
+
return true;
|
|
34692
|
+
}
|
|
34693
|
+
return false;
|
|
34694
|
+
}
|
|
34689
34695
|
function env() {
|
|
34690
34696
|
if (envMemo) {
|
|
34691
34697
|
return envMemo;
|
|
34692
34698
|
}
|
|
34693
|
-
|
|
34699
|
+
let envObject = {};
|
|
34700
|
+
if (isDeno()) {
|
|
34701
|
+
envObject = globalThis.Deno?.env?.toObject?.() ?? {};
|
|
34702
|
+
} else {
|
|
34703
|
+
envObject = dlv(globalThis, "process.env") ?? {};
|
|
34704
|
+
}
|
|
34705
|
+
envMemo = envSchema.parse(envObject);
|
|
34694
34706
|
return envMemo;
|
|
34695
34707
|
}
|
|
34696
34708
|
var envSchema, envMemo = undefined;
|
|
@@ -40559,6 +40571,56 @@ var init_languagegroupupdaterequest = __esm(() => {
|
|
|
40559
40571
|
})(LanguageGroupUpdateRequest$ ||= {});
|
|
40560
40572
|
});
|
|
40561
40573
|
|
|
40574
|
+
// src/models/components/languagesamplecreaterequest.ts
|
|
40575
|
+
var LanguageSampleCreateRequest$inboundSchema, LanguageSampleCreateRequest$outboundSchema, LanguageSampleCreateRequest$;
|
|
40576
|
+
var init_languagesamplecreaterequest = __esm(() => {
|
|
40577
|
+
init_zod();
|
|
40578
|
+
init_primitives();
|
|
40579
|
+
init_agentvoicedisplayname();
|
|
40580
|
+
init_languagecode();
|
|
40581
|
+
init_ttsprovider();
|
|
40582
|
+
LanguageSampleCreateRequest$inboundSchema = objectType({
|
|
40583
|
+
language_code: LanguageCode$inboundSchema,
|
|
40584
|
+
voice_provider: TtsProvider$inboundSchema,
|
|
40585
|
+
voice_display_name: AgentVoiceDisplayName$inboundSchema,
|
|
40586
|
+
voice_speed: nullableType(numberType()).optional(),
|
|
40587
|
+
voice_pitch: nullableType(numberType()).optional(),
|
|
40588
|
+
text: stringType().default(""),
|
|
40589
|
+
apply_pronunciation_overrides: booleanType().default(false)
|
|
40590
|
+
}).transform((v2) => {
|
|
40591
|
+
return remap(v2, {
|
|
40592
|
+
language_code: "languageCode",
|
|
40593
|
+
voice_provider: "voiceProvider",
|
|
40594
|
+
voice_display_name: "voiceDisplayName",
|
|
40595
|
+
voice_speed: "voiceSpeed",
|
|
40596
|
+
voice_pitch: "voicePitch",
|
|
40597
|
+
apply_pronunciation_overrides: "applyPronunciationOverrides"
|
|
40598
|
+
});
|
|
40599
|
+
});
|
|
40600
|
+
LanguageSampleCreateRequest$outboundSchema = objectType({
|
|
40601
|
+
languageCode: LanguageCode$outboundSchema,
|
|
40602
|
+
voiceProvider: TtsProvider$outboundSchema,
|
|
40603
|
+
voiceDisplayName: AgentVoiceDisplayName$outboundSchema,
|
|
40604
|
+
voiceSpeed: nullableType(numberType()).optional(),
|
|
40605
|
+
voicePitch: nullableType(numberType()).optional(),
|
|
40606
|
+
text: stringType().default(""),
|
|
40607
|
+
applyPronunciationOverrides: booleanType().default(false)
|
|
40608
|
+
}).transform((v2) => {
|
|
40609
|
+
return remap(v2, {
|
|
40610
|
+
languageCode: "language_code",
|
|
40611
|
+
voiceProvider: "voice_provider",
|
|
40612
|
+
voiceDisplayName: "voice_display_name",
|
|
40613
|
+
voiceSpeed: "voice_speed",
|
|
40614
|
+
voicePitch: "voice_pitch",
|
|
40615
|
+
applyPronunciationOverrides: "apply_pronunciation_overrides"
|
|
40616
|
+
});
|
|
40617
|
+
});
|
|
40618
|
+
((LanguageSampleCreateRequest$) => {
|
|
40619
|
+
LanguageSampleCreateRequest$.inboundSchema = LanguageSampleCreateRequest$inboundSchema;
|
|
40620
|
+
LanguageSampleCreateRequest$.outboundSchema = LanguageSampleCreateRequest$outboundSchema;
|
|
40621
|
+
})(LanguageSampleCreateRequest$ ||= {});
|
|
40622
|
+
});
|
|
40623
|
+
|
|
40562
40624
|
// src/models/components/listresponseagentresponse.ts
|
|
40563
40625
|
var ListResponseAgentResponse$inboundSchema, ListResponseAgentResponse$outboundSchema, ListResponseAgentResponse$;
|
|
40564
40626
|
var init_listresponseagentresponse = __esm(() => {
|
|
@@ -41935,6 +41997,97 @@ var init_listresponseuserresponse = __esm(() => {
|
|
|
41935
41997
|
})(ListResponseUserResponse$ ||= {});
|
|
41936
41998
|
});
|
|
41937
41999
|
|
|
42000
|
+
// src/models/components/voicegroupresponse.ts
|
|
42001
|
+
var VoiceGroupResponse$inboundSchema, VoiceGroupResponse$outboundSchema, VoiceGroupResponse$;
|
|
42002
|
+
var init_voicegroupresponse = __esm(() => {
|
|
42003
|
+
init_zod();
|
|
42004
|
+
init_primitives();
|
|
42005
|
+
init_languageconfig();
|
|
42006
|
+
init_languagegroupagentinfo();
|
|
42007
|
+
VoiceGroupResponse$inboundSchema = objectType({
|
|
42008
|
+
name: stringType(),
|
|
42009
|
+
description: nullableType(stringType()).optional(),
|
|
42010
|
+
language_configs: arrayType(LanguageConfig$inboundSchema),
|
|
42011
|
+
skip_current_language_in_message: booleanType(),
|
|
42012
|
+
id: numberType().int(),
|
|
42013
|
+
edit_comments: nullableType(stringType()).optional(),
|
|
42014
|
+
agents_info: nullableType(arrayType(LanguageGroupAgentInfo$inboundSchema)).optional(),
|
|
42015
|
+
updated_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
42016
|
+
last_updated_by: stringType()
|
|
42017
|
+
}).transform((v2) => {
|
|
42018
|
+
return remap(v2, {
|
|
42019
|
+
language_configs: "languageConfigs",
|
|
42020
|
+
skip_current_language_in_message: "skipCurrentLanguageInMessage",
|
|
42021
|
+
edit_comments: "editComments",
|
|
42022
|
+
agents_info: "agentsInfo",
|
|
42023
|
+
updated_at: "updatedAt",
|
|
42024
|
+
last_updated_by: "lastUpdatedBy"
|
|
42025
|
+
});
|
|
42026
|
+
});
|
|
42027
|
+
VoiceGroupResponse$outboundSchema = objectType({
|
|
42028
|
+
name: stringType(),
|
|
42029
|
+
description: nullableType(stringType()).optional(),
|
|
42030
|
+
languageConfigs: arrayType(LanguageConfig$outboundSchema),
|
|
42031
|
+
skipCurrentLanguageInMessage: booleanType(),
|
|
42032
|
+
id: numberType().int(),
|
|
42033
|
+
editComments: nullableType(stringType()).optional(),
|
|
42034
|
+
agentsInfo: nullableType(arrayType(LanguageGroupAgentInfo$outboundSchema)).optional(),
|
|
42035
|
+
updatedAt: dateType().transform((v2) => v2.toISOString()),
|
|
42036
|
+
lastUpdatedBy: stringType()
|
|
42037
|
+
}).transform((v2) => {
|
|
42038
|
+
return remap(v2, {
|
|
42039
|
+
languageConfigs: "language_configs",
|
|
42040
|
+
skipCurrentLanguageInMessage: "skip_current_language_in_message",
|
|
42041
|
+
editComments: "edit_comments",
|
|
42042
|
+
agentsInfo: "agents_info",
|
|
42043
|
+
updatedAt: "updated_at",
|
|
42044
|
+
lastUpdatedBy: "last_updated_by"
|
|
42045
|
+
});
|
|
42046
|
+
});
|
|
42047
|
+
((VoiceGroupResponse$) => {
|
|
42048
|
+
VoiceGroupResponse$.inboundSchema = VoiceGroupResponse$inboundSchema;
|
|
42049
|
+
VoiceGroupResponse$.outboundSchema = VoiceGroupResponse$outboundSchema;
|
|
42050
|
+
})(VoiceGroupResponse$ ||= {});
|
|
42051
|
+
});
|
|
42052
|
+
|
|
42053
|
+
// src/models/components/listresponsevoicegroupresponse.ts
|
|
42054
|
+
var ListResponseVoiceGroupResponse$inboundSchema, ListResponseVoiceGroupResponse$outboundSchema, ListResponseVoiceGroupResponse$;
|
|
42055
|
+
var init_listresponsevoicegroupresponse = __esm(() => {
|
|
42056
|
+
init_zod();
|
|
42057
|
+
init_primitives();
|
|
42058
|
+
init_voicegroupresponse();
|
|
42059
|
+
ListResponseVoiceGroupResponse$inboundSchema = objectType({
|
|
42060
|
+
items: arrayType(VoiceGroupResponse$inboundSchema),
|
|
42061
|
+
page: numberType().int(),
|
|
42062
|
+
page_size: numberType().int(),
|
|
42063
|
+
total_pages: nullableType(numberType().int()).optional(),
|
|
42064
|
+
total_count: nullableType(numberType().int()).optional()
|
|
42065
|
+
}).transform((v2) => {
|
|
42066
|
+
return remap(v2, {
|
|
42067
|
+
page_size: "pageSize",
|
|
42068
|
+
total_pages: "totalPages",
|
|
42069
|
+
total_count: "totalCount"
|
|
42070
|
+
});
|
|
42071
|
+
});
|
|
42072
|
+
ListResponseVoiceGroupResponse$outboundSchema = objectType({
|
|
42073
|
+
items: arrayType(VoiceGroupResponse$outboundSchema),
|
|
42074
|
+
page: numberType().int(),
|
|
42075
|
+
pageSize: numberType().int(),
|
|
42076
|
+
totalPages: nullableType(numberType().int()).optional(),
|
|
42077
|
+
totalCount: nullableType(numberType().int()).optional()
|
|
42078
|
+
}).transform((v2) => {
|
|
42079
|
+
return remap(v2, {
|
|
42080
|
+
pageSize: "page_size",
|
|
42081
|
+
totalPages: "total_pages",
|
|
42082
|
+
totalCount: "total_count"
|
|
42083
|
+
});
|
|
42084
|
+
});
|
|
42085
|
+
((ListResponseVoiceGroupResponse$) => {
|
|
42086
|
+
ListResponseVoiceGroupResponse$.inboundSchema = ListResponseVoiceGroupResponse$inboundSchema;
|
|
42087
|
+
ListResponseVoiceGroupResponse$.outboundSchema = ListResponseVoiceGroupResponse$outboundSchema;
|
|
42088
|
+
})(ListResponseVoiceGroupResponse$ ||= {});
|
|
42089
|
+
});
|
|
42090
|
+
|
|
41938
42091
|
// src/models/components/logintype.ts
|
|
41939
42092
|
var LoginType, LoginType$inboundSchema, LoginType$outboundSchema, LoginType$;
|
|
41940
42093
|
var init_logintype = __esm(() => {
|
|
@@ -43888,6 +44041,99 @@ var init_validationerror = __esm(() => {
|
|
|
43888
44041
|
})(ValidationError$ ||= {});
|
|
43889
44042
|
});
|
|
43890
44043
|
|
|
44044
|
+
// src/models/components/voicegroupcreaterequest.ts
|
|
44045
|
+
var VoiceGroupCreateRequest$inboundSchema, VoiceGroupCreateRequest$outboundSchema, VoiceGroupCreateRequest$;
|
|
44046
|
+
var init_voicegroupcreaterequest = __esm(() => {
|
|
44047
|
+
init_zod();
|
|
44048
|
+
init_primitives();
|
|
44049
|
+
init_languageconfig();
|
|
44050
|
+
VoiceGroupCreateRequest$inboundSchema = objectType({
|
|
44051
|
+
name: stringType(),
|
|
44052
|
+
description: nullableType(stringType()).optional(),
|
|
44053
|
+
language_configs: arrayType(LanguageConfig$inboundSchema),
|
|
44054
|
+
skip_current_language_in_message: booleanType()
|
|
44055
|
+
}).transform((v2) => {
|
|
44056
|
+
return remap(v2, {
|
|
44057
|
+
language_configs: "languageConfigs",
|
|
44058
|
+
skip_current_language_in_message: "skipCurrentLanguageInMessage"
|
|
44059
|
+
});
|
|
44060
|
+
});
|
|
44061
|
+
VoiceGroupCreateRequest$outboundSchema = objectType({
|
|
44062
|
+
name: stringType(),
|
|
44063
|
+
description: nullableType(stringType()).optional(),
|
|
44064
|
+
languageConfigs: arrayType(LanguageConfig$outboundSchema),
|
|
44065
|
+
skipCurrentLanguageInMessage: booleanType()
|
|
44066
|
+
}).transform((v2) => {
|
|
44067
|
+
return remap(v2, {
|
|
44068
|
+
languageConfigs: "language_configs",
|
|
44069
|
+
skipCurrentLanguageInMessage: "skip_current_language_in_message"
|
|
44070
|
+
});
|
|
44071
|
+
});
|
|
44072
|
+
((VoiceGroupCreateRequest$) => {
|
|
44073
|
+
VoiceGroupCreateRequest$.inboundSchema = VoiceGroupCreateRequest$inboundSchema;
|
|
44074
|
+
VoiceGroupCreateRequest$.outboundSchema = VoiceGroupCreateRequest$outboundSchema;
|
|
44075
|
+
})(VoiceGroupCreateRequest$ ||= {});
|
|
44076
|
+
});
|
|
44077
|
+
|
|
44078
|
+
// src/models/components/voicegroupproperties.ts
|
|
44079
|
+
var VoiceGroupProperties, VoiceGroupProperties$inboundSchema, VoiceGroupProperties$outboundSchema, VoiceGroupProperties$;
|
|
44080
|
+
var init_voicegroupproperties = __esm(() => {
|
|
44081
|
+
init_zod();
|
|
44082
|
+
VoiceGroupProperties = {
|
|
44083
|
+
Name: "name",
|
|
44084
|
+
Description: "description",
|
|
44085
|
+
SkipCurrentLanguageInMessage: "skip_current_language_in_message",
|
|
44086
|
+
UpdatedAt: "updated_at",
|
|
44087
|
+
LastUpdatedBy: "last_updated_by"
|
|
44088
|
+
};
|
|
44089
|
+
VoiceGroupProperties$inboundSchema = nativeEnumType(VoiceGroupProperties);
|
|
44090
|
+
VoiceGroupProperties$outboundSchema = VoiceGroupProperties$inboundSchema;
|
|
44091
|
+
((VoiceGroupProperties$) => {
|
|
44092
|
+
VoiceGroupProperties$.inboundSchema = VoiceGroupProperties$inboundSchema;
|
|
44093
|
+
VoiceGroupProperties$.outboundSchema = VoiceGroupProperties$outboundSchema;
|
|
44094
|
+
})(VoiceGroupProperties$ ||= {});
|
|
44095
|
+
});
|
|
44096
|
+
|
|
44097
|
+
// src/models/components/voicegroupupdaterequest.ts
|
|
44098
|
+
var VoiceGroupUpdateRequest$inboundSchema, VoiceGroupUpdateRequest$outboundSchema, VoiceGroupUpdateRequest$;
|
|
44099
|
+
var init_voicegroupupdaterequest = __esm(() => {
|
|
44100
|
+
init_zod();
|
|
44101
|
+
init_primitives();
|
|
44102
|
+
init_languageconfig();
|
|
44103
|
+
VoiceGroupUpdateRequest$inboundSchema = objectType({
|
|
44104
|
+
name: stringType(),
|
|
44105
|
+
description: nullableType(stringType()).optional(),
|
|
44106
|
+
language_configs: arrayType(LanguageConfig$inboundSchema),
|
|
44107
|
+
skip_current_language_in_message: booleanType(),
|
|
44108
|
+
id: numberType().int(),
|
|
44109
|
+
edit_comments: nullableType(stringType()).optional()
|
|
44110
|
+
}).transform((v2) => {
|
|
44111
|
+
return remap(v2, {
|
|
44112
|
+
language_configs: "languageConfigs",
|
|
44113
|
+
skip_current_language_in_message: "skipCurrentLanguageInMessage",
|
|
44114
|
+
edit_comments: "editComments"
|
|
44115
|
+
});
|
|
44116
|
+
});
|
|
44117
|
+
VoiceGroupUpdateRequest$outboundSchema = objectType({
|
|
44118
|
+
name: stringType(),
|
|
44119
|
+
description: nullableType(stringType()).optional(),
|
|
44120
|
+
languageConfigs: arrayType(LanguageConfig$outboundSchema),
|
|
44121
|
+
skipCurrentLanguageInMessage: booleanType(),
|
|
44122
|
+
id: numberType().int(),
|
|
44123
|
+
editComments: nullableType(stringType()).optional()
|
|
44124
|
+
}).transform((v2) => {
|
|
44125
|
+
return remap(v2, {
|
|
44126
|
+
languageConfigs: "language_configs",
|
|
44127
|
+
skipCurrentLanguageInMessage: "skip_current_language_in_message",
|
|
44128
|
+
editComments: "edit_comments"
|
|
44129
|
+
});
|
|
44130
|
+
});
|
|
44131
|
+
((VoiceGroupUpdateRequest$) => {
|
|
44132
|
+
VoiceGroupUpdateRequest$.inboundSchema = VoiceGroupUpdateRequest$inboundSchema;
|
|
44133
|
+
VoiceGroupUpdateRequest$.outboundSchema = VoiceGroupUpdateRequest$outboundSchema;
|
|
44134
|
+
})(VoiceGroupUpdateRequest$ ||= {});
|
|
44135
|
+
});
|
|
44136
|
+
|
|
43891
44137
|
// src/models/components/voicesamplecreaterequest.ts
|
|
43892
44138
|
var VoiceSampleCreateRequest$inboundSchema, VoiceSampleCreateRequest$outboundSchema, VoiceSampleCreateRequest$;
|
|
43893
44139
|
var init_voicesamplecreaterequest = __esm(() => {
|
|
@@ -44040,6 +44286,7 @@ var init_components = __esm(() => {
|
|
|
44040
44286
|
init_languagegroupproperties();
|
|
44041
44287
|
init_languagegroupresponse();
|
|
44042
44288
|
init_languagegroupupdaterequest();
|
|
44289
|
+
init_languagesamplecreaterequest();
|
|
44043
44290
|
init_latencycategory();
|
|
44044
44291
|
init_latencyentry();
|
|
44045
44292
|
init_latencyunittype();
|
|
@@ -44068,6 +44315,7 @@ var init_components = __esm(() => {
|
|
|
44068
44315
|
init_listresponsesessionlabel();
|
|
44069
44316
|
init_listresponsetoolresponse();
|
|
44070
44317
|
init_listresponseuserresponse();
|
|
44318
|
+
init_listresponsevoicegroupresponse();
|
|
44071
44319
|
init_logintype();
|
|
44072
44320
|
init_matchtype();
|
|
44073
44321
|
init_orderbydirection();
|
|
@@ -44159,6 +44407,10 @@ var init_components = __esm(() => {
|
|
|
44159
44407
|
init_userupdaterequest();
|
|
44160
44408
|
init_validationerror();
|
|
44161
44409
|
init_voicedisplayinfo();
|
|
44410
|
+
init_voicegroupcreaterequest();
|
|
44411
|
+
init_voicegroupproperties();
|
|
44412
|
+
init_voicegroupresponse();
|
|
44413
|
+
init_voicegroupupdaterequest();
|
|
44162
44414
|
init_voicesamplecreaterequest();
|
|
44163
44415
|
});
|
|
44164
44416
|
|
|
@@ -47537,6 +47789,110 @@ var init_userssendemail = __esm(() => {
|
|
|
47537
47789
|
})(UsersSendEmailRequest$ ||= {});
|
|
47538
47790
|
});
|
|
47539
47791
|
|
|
47792
|
+
// src/models/operations/voicegroupsdelete.ts
|
|
47793
|
+
var VoiceGroupsDeleteRequest$inboundSchema, VoiceGroupsDeleteRequest$outboundSchema, VoiceGroupsDeleteRequest$;
|
|
47794
|
+
var init_voicegroupsdelete = __esm(() => {
|
|
47795
|
+
init_zod();
|
|
47796
|
+
init_primitives();
|
|
47797
|
+
VoiceGroupsDeleteRequest$inboundSchema = objectType({
|
|
47798
|
+
voice_group_id: numberType().int(),
|
|
47799
|
+
reason: stringType()
|
|
47800
|
+
}).transform((v2) => {
|
|
47801
|
+
return remap(v2, {
|
|
47802
|
+
voice_group_id: "voiceGroupId"
|
|
47803
|
+
});
|
|
47804
|
+
});
|
|
47805
|
+
VoiceGroupsDeleteRequest$outboundSchema = objectType({
|
|
47806
|
+
voiceGroupId: numberType().int(),
|
|
47807
|
+
reason: stringType()
|
|
47808
|
+
}).transform((v2) => {
|
|
47809
|
+
return remap(v2, {
|
|
47810
|
+
voiceGroupId: "voice_group_id"
|
|
47811
|
+
});
|
|
47812
|
+
});
|
|
47813
|
+
((VoiceGroupsDeleteRequest$) => {
|
|
47814
|
+
VoiceGroupsDeleteRequest$.inboundSchema = VoiceGroupsDeleteRequest$inboundSchema;
|
|
47815
|
+
VoiceGroupsDeleteRequest$.outboundSchema = VoiceGroupsDeleteRequest$outboundSchema;
|
|
47816
|
+
})(VoiceGroupsDeleteRequest$ ||= {});
|
|
47817
|
+
});
|
|
47818
|
+
|
|
47819
|
+
// src/models/operations/voicegroupsgetbyid.ts
|
|
47820
|
+
var VoiceGroupsGetByIdRequest$inboundSchema, VoiceGroupsGetByIdRequest$outboundSchema, VoiceGroupsGetByIdRequest$;
|
|
47821
|
+
var init_voicegroupsgetbyid = __esm(() => {
|
|
47822
|
+
init_zod();
|
|
47823
|
+
init_primitives();
|
|
47824
|
+
VoiceGroupsGetByIdRequest$inboundSchema = objectType({
|
|
47825
|
+
voice_group_id: numberType().int()
|
|
47826
|
+
}).transform((v2) => {
|
|
47827
|
+
return remap(v2, {
|
|
47828
|
+
voice_group_id: "voiceGroupId"
|
|
47829
|
+
});
|
|
47830
|
+
});
|
|
47831
|
+
VoiceGroupsGetByIdRequest$outboundSchema = objectType({
|
|
47832
|
+
voiceGroupId: numberType().int()
|
|
47833
|
+
}).transform((v2) => {
|
|
47834
|
+
return remap(v2, {
|
|
47835
|
+
voiceGroupId: "voice_group_id"
|
|
47836
|
+
});
|
|
47837
|
+
});
|
|
47838
|
+
((VoiceGroupsGetByIdRequest$) => {
|
|
47839
|
+
VoiceGroupsGetByIdRequest$.inboundSchema = VoiceGroupsGetByIdRequest$inboundSchema;
|
|
47840
|
+
VoiceGroupsGetByIdRequest$.outboundSchema = VoiceGroupsGetByIdRequest$outboundSchema;
|
|
47841
|
+
})(VoiceGroupsGetByIdRequest$ ||= {});
|
|
47842
|
+
});
|
|
47843
|
+
|
|
47844
|
+
// src/models/operations/voicegroupslist.ts
|
|
47845
|
+
var VoiceGroupsListRequest$inboundSchema, VoiceGroupsListRequest$outboundSchema, VoiceGroupsListRequest$;
|
|
47846
|
+
var init_voicegroupslist = __esm(() => {
|
|
47847
|
+
init_zod();
|
|
47848
|
+
init_primitives();
|
|
47849
|
+
init_components();
|
|
47850
|
+
VoiceGroupsListRequest$inboundSchema = objectType({
|
|
47851
|
+
page: nullableType(numberType().int()).optional(),
|
|
47852
|
+
limit: numberType().int().default(25),
|
|
47853
|
+
search_fields: arrayType(VoiceGroupProperties$inboundSchema).optional(),
|
|
47854
|
+
search_field_values: arrayType(stringType()).optional(),
|
|
47855
|
+
order_by: nullableType(VoiceGroupProperties$inboundSchema).optional(),
|
|
47856
|
+
order_by_direction: nullableType(OrderByDirection$inboundSchema).optional(),
|
|
47857
|
+
fields: nullableType(arrayType(VoiceGroupProperties$inboundSchema)).optional(),
|
|
47858
|
+
start_datetime: nullableType(stringType()).optional(),
|
|
47859
|
+
end_datetime: nullableType(stringType()).optional()
|
|
47860
|
+
}).transform((v2) => {
|
|
47861
|
+
return remap(v2, {
|
|
47862
|
+
search_fields: "searchFields",
|
|
47863
|
+
search_field_values: "searchFieldValues",
|
|
47864
|
+
order_by: "orderBy",
|
|
47865
|
+
order_by_direction: "orderByDirection",
|
|
47866
|
+
start_datetime: "startDatetime",
|
|
47867
|
+
end_datetime: "endDatetime"
|
|
47868
|
+
});
|
|
47869
|
+
});
|
|
47870
|
+
VoiceGroupsListRequest$outboundSchema = objectType({
|
|
47871
|
+
page: nullableType(numberType().int()).optional(),
|
|
47872
|
+
limit: numberType().int().default(25),
|
|
47873
|
+
searchFields: arrayType(VoiceGroupProperties$outboundSchema).optional(),
|
|
47874
|
+
searchFieldValues: arrayType(stringType()).optional(),
|
|
47875
|
+
orderBy: nullableType(VoiceGroupProperties$outboundSchema).optional(),
|
|
47876
|
+
orderByDirection: nullableType(OrderByDirection$outboundSchema).optional(),
|
|
47877
|
+
fields: nullableType(arrayType(VoiceGroupProperties$outboundSchema)).optional(),
|
|
47878
|
+
startDatetime: nullableType(stringType()).optional(),
|
|
47879
|
+
endDatetime: nullableType(stringType()).optional()
|
|
47880
|
+
}).transform((v2) => {
|
|
47881
|
+
return remap(v2, {
|
|
47882
|
+
searchFields: "search_fields",
|
|
47883
|
+
searchFieldValues: "search_field_values",
|
|
47884
|
+
orderBy: "order_by",
|
|
47885
|
+
orderByDirection: "order_by_direction",
|
|
47886
|
+
startDatetime: "start_datetime",
|
|
47887
|
+
endDatetime: "end_datetime"
|
|
47888
|
+
});
|
|
47889
|
+
});
|
|
47890
|
+
((VoiceGroupsListRequest$) => {
|
|
47891
|
+
VoiceGroupsListRequest$.inboundSchema = VoiceGroupsListRequest$inboundSchema;
|
|
47892
|
+
VoiceGroupsListRequest$.outboundSchema = VoiceGroupsListRequest$outboundSchema;
|
|
47893
|
+
})(VoiceGroupsListRequest$ ||= {});
|
|
47894
|
+
});
|
|
47895
|
+
|
|
47540
47896
|
// src/models/operations/index.ts
|
|
47541
47897
|
var init_operations = __esm(() => {
|
|
47542
47898
|
init_agentdelete();
|
|
@@ -47630,6 +47986,9 @@ var init_operations = __esm(() => {
|
|
|
47630
47986
|
init_usersgetbyemail();
|
|
47631
47987
|
init_userslist();
|
|
47632
47988
|
init_userssendemail();
|
|
47989
|
+
init_voicegroupsdelete();
|
|
47990
|
+
init_voicegroupsgetbyid();
|
|
47991
|
+
init_voicegroupslist();
|
|
47633
47992
|
});
|
|
47634
47993
|
|
|
47635
47994
|
// src/funcs/agentsDelete.ts
|
|
@@ -55104,7 +55463,7 @@ var init_languageGroupsCreate2 = __esm(() => {
|
|
|
55104
55463
|
name: "language-groups-create",
|
|
55105
55464
|
description: `Create Language Group
|
|
55106
55465
|
|
|
55107
|
-
|
|
55466
|
+
Deprecated alias for \`POST /api/v1/voice_groups/\`.`,
|
|
55108
55467
|
args: args64,
|
|
55109
55468
|
tool: async (client, args65, ctx) => {
|
|
55110
55469
|
const [result, apiCall] = await languageGroupsCreate(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -55214,7 +55573,7 @@ var init_languageGroupsDelete2 = __esm(() => {
|
|
|
55214
55573
|
name: "language-groups-delete",
|
|
55215
55574
|
description: `Delete Language Group
|
|
55216
55575
|
|
|
55217
|
-
|
|
55576
|
+
Deprecated alias for \`DELETE /api/v1/voice_groups/{voice_group_id}\`.`,
|
|
55218
55577
|
args: args65,
|
|
55219
55578
|
tool: async (client, args66, ctx) => {
|
|
55220
55579
|
const [result, apiCall] = await languageGroupsDelete(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -55320,7 +55679,7 @@ var init_languageGroupsGetById2 = __esm(() => {
|
|
|
55320
55679
|
name: "language-groups-get-by-id",
|
|
55321
55680
|
description: `Get Language Group
|
|
55322
55681
|
|
|
55323
|
-
|
|
55682
|
+
Deprecated alias for \`GET /api/v1/voice_groups/{voice_group_id}\`.`,
|
|
55324
55683
|
args: args66,
|
|
55325
55684
|
tool: async (client, args67, ctx) => {
|
|
55326
55685
|
const [result, apiCall] = await languageGroupsGetById(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -55341,7 +55700,7 @@ function languageGroupsLanguageGroupsCreateVoiceSample(client, request, options)
|
|
|
55341
55700
|
return new APIPromise($do74(client, request, options));
|
|
55342
55701
|
}
|
|
55343
55702
|
async function $do74(client, request, options) {
|
|
55344
|
-
const parsed = safeParse(request, (value) =>
|
|
55703
|
+
const parsed = safeParse(request, (value) => LanguageSampleCreateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55345
55704
|
if (!parsed.ok) {
|
|
55346
55705
|
return [parsed, { status: "invalid" }];
|
|
55347
55706
|
}
|
|
@@ -55418,13 +55777,13 @@ var init_languageGroupsLanguageGroupsCreateVoiceSample2 = __esm(() => {
|
|
|
55418
55777
|
init_components();
|
|
55419
55778
|
init_tools();
|
|
55420
55779
|
args67 = {
|
|
55421
|
-
request:
|
|
55780
|
+
request: LanguageSampleCreateRequest$inboundSchema
|
|
55422
55781
|
};
|
|
55423
55782
|
tool$languageGroupsLanguageGroupsCreateVoiceSample = {
|
|
55424
55783
|
name: "language-groups-language-groups-create-voice-sample",
|
|
55425
55784
|
description: `Create Voice Sample
|
|
55426
55785
|
|
|
55427
|
-
|
|
55786
|
+
Deprecated alias for \`POST /api/v1/voice_groups/voices/sample\`.`,
|
|
55428
55787
|
args: args67,
|
|
55429
55788
|
tool: async (client, args68, ctx) => {
|
|
55430
55789
|
const [result, apiCall] = await languageGroupsLanguageGroupsCreateVoiceSample(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -55539,7 +55898,7 @@ var init_languageGroupsList2 = __esm(() => {
|
|
|
55539
55898
|
name: "language-groups-list",
|
|
55540
55899
|
description: `List Language Groups
|
|
55541
55900
|
|
|
55542
|
-
|
|
55901
|
+
Deprecated alias for \`GET /api/v1/voice_groups/\`.`,
|
|
55543
55902
|
args: args68,
|
|
55544
55903
|
tool: async (client, args69, ctx) => {
|
|
55545
55904
|
const [result, apiCall] = await languageGroupsList(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -55642,7 +56001,7 @@ var init_languageGroupsUpdate2 = __esm(() => {
|
|
|
55642
56001
|
name: "language-groups-update",
|
|
55643
56002
|
description: `Update Language Group
|
|
55644
56003
|
|
|
55645
|
-
|
|
56004
|
+
Deprecated alias for \`PUT /api/v1/voice_groups/\`.`,
|
|
55646
56005
|
args: args69,
|
|
55647
56006
|
tool: async (client, args70, ctx) => {
|
|
55648
56007
|
const [result, apiCall] = await languageGroupsUpdate(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -62966,11 +63325,658 @@ Send a welcome email to a user.`,
|
|
|
62966
63325
|
};
|
|
62967
63326
|
});
|
|
62968
63327
|
|
|
63328
|
+
// src/funcs/voiceGroupsCreate.ts
|
|
63329
|
+
function voiceGroupsCreate(client, request, options) {
|
|
63330
|
+
return new APIPromise($do146(client, request, options));
|
|
63331
|
+
}
|
|
63332
|
+
async function $do146(client, request, options) {
|
|
63333
|
+
const parsed = safeParse(request, (value) => VoiceGroupCreateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63334
|
+
if (!parsed.ok) {
|
|
63335
|
+
return [parsed, { status: "invalid" }];
|
|
63336
|
+
}
|
|
63337
|
+
const payload = parsed.value;
|
|
63338
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
63339
|
+
const path = pathToFunc("/api/v1/voice_groups/")();
|
|
63340
|
+
const headers = new Headers(compactMap({
|
|
63341
|
+
"Content-Type": "application/json",
|
|
63342
|
+
Accept: "application/json"
|
|
63343
|
+
}));
|
|
63344
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63345
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63346
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63347
|
+
const context = {
|
|
63348
|
+
options: client._options,
|
|
63349
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63350
|
+
operationID: "voice_groups_create",
|
|
63351
|
+
oAuth2Scopes: null,
|
|
63352
|
+
resolvedSecurity: requestSecurity,
|
|
63353
|
+
securitySource: client._options.apiKeyHeader,
|
|
63354
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63355
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63356
|
+
};
|
|
63357
|
+
const requestRes = client._createRequest(context, {
|
|
63358
|
+
security: requestSecurity,
|
|
63359
|
+
method: "POST",
|
|
63360
|
+
baseURL: options?.serverURL,
|
|
63361
|
+
path,
|
|
63362
|
+
headers,
|
|
63363
|
+
body,
|
|
63364
|
+
userAgent: client._options.userAgent,
|
|
63365
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63366
|
+
}, options);
|
|
63367
|
+
if (!requestRes.ok) {
|
|
63368
|
+
return [requestRes, { status: "invalid" }];
|
|
63369
|
+
}
|
|
63370
|
+
const req = requestRes.value;
|
|
63371
|
+
const doResult = await client._do(req, {
|
|
63372
|
+
context,
|
|
63373
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63374
|
+
retryConfig: context.retryConfig,
|
|
63375
|
+
retryCodes: context.retryCodes
|
|
63376
|
+
});
|
|
63377
|
+
if (!doResult.ok) {
|
|
63378
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63379
|
+
}
|
|
63380
|
+
const response = doResult.value;
|
|
63381
|
+
const responseFields = {
|
|
63382
|
+
HttpMeta: { Response: response, Request: req }
|
|
63383
|
+
};
|
|
63384
|
+
const [result] = await match(json(200, VoiceGroupResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63385
|
+
if (!result.ok) {
|
|
63386
|
+
return [result, { status: "complete", request: req, response }];
|
|
63387
|
+
}
|
|
63388
|
+
return [result, { status: "complete", request: req, response }];
|
|
63389
|
+
}
|
|
63390
|
+
var init_voiceGroupsCreate = __esm(() => {
|
|
63391
|
+
init_encodings();
|
|
63392
|
+
init_matchers();
|
|
63393
|
+
init_primitives();
|
|
63394
|
+
init_schemas();
|
|
63395
|
+
init_security();
|
|
63396
|
+
init_url();
|
|
63397
|
+
init_components();
|
|
63398
|
+
init_errors2();
|
|
63399
|
+
init_async();
|
|
63400
|
+
});
|
|
63401
|
+
|
|
63402
|
+
// src/mcp-server/tools/voiceGroupsCreate.ts
|
|
63403
|
+
var args130, tool$voiceGroupsCreate;
|
|
63404
|
+
var init_voiceGroupsCreate2 = __esm(() => {
|
|
63405
|
+
init_voiceGroupsCreate();
|
|
63406
|
+
init_components();
|
|
63407
|
+
init_tools();
|
|
63408
|
+
args130 = {
|
|
63409
|
+
request: VoiceGroupCreateRequest$inboundSchema
|
|
63410
|
+
};
|
|
63411
|
+
tool$voiceGroupsCreate = {
|
|
63412
|
+
name: "voice-groups-create",
|
|
63413
|
+
description: `Create Voice Group
|
|
63414
|
+
|
|
63415
|
+
Create a new voice group.`,
|
|
63416
|
+
args: args130,
|
|
63417
|
+
tool: async (client, args131, ctx) => {
|
|
63418
|
+
const [result, apiCall] = await voiceGroupsCreate(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63419
|
+
if (!result.ok) {
|
|
63420
|
+
return {
|
|
63421
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63422
|
+
isError: true
|
|
63423
|
+
};
|
|
63424
|
+
}
|
|
63425
|
+
const value = result.value;
|
|
63426
|
+
return formatResult(value, apiCall);
|
|
63427
|
+
}
|
|
63428
|
+
};
|
|
63429
|
+
});
|
|
63430
|
+
|
|
63431
|
+
// src/funcs/voiceGroupsDelete.ts
|
|
63432
|
+
function voiceGroupsDelete(client, request, options) {
|
|
63433
|
+
return new APIPromise($do147(client, request, options));
|
|
63434
|
+
}
|
|
63435
|
+
async function $do147(client, request, options) {
|
|
63436
|
+
const parsed = safeParse(request, (value) => VoiceGroupsDeleteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63437
|
+
if (!parsed.ok) {
|
|
63438
|
+
return [parsed, { status: "invalid" }];
|
|
63439
|
+
}
|
|
63440
|
+
const payload = parsed.value;
|
|
63441
|
+
const body = null;
|
|
63442
|
+
const pathParams = {
|
|
63443
|
+
voice_group_id: encodeSimple("voice_group_id", payload.voice_group_id, {
|
|
63444
|
+
explode: false,
|
|
63445
|
+
charEncoding: "percent"
|
|
63446
|
+
})
|
|
63447
|
+
};
|
|
63448
|
+
const path = pathToFunc("/api/v1/voice_groups/{voice_group_id}")(pathParams);
|
|
63449
|
+
const query = encodeFormQuery({
|
|
63450
|
+
reason: payload.reason
|
|
63451
|
+
});
|
|
63452
|
+
const headers = new Headers(compactMap({
|
|
63453
|
+
Accept: "application/json"
|
|
63454
|
+
}));
|
|
63455
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63456
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63457
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63458
|
+
const context = {
|
|
63459
|
+
options: client._options,
|
|
63460
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63461
|
+
operationID: "voice_groups_delete",
|
|
63462
|
+
oAuth2Scopes: null,
|
|
63463
|
+
resolvedSecurity: requestSecurity,
|
|
63464
|
+
securitySource: client._options.apiKeyHeader,
|
|
63465
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63466
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63467
|
+
};
|
|
63468
|
+
const requestRes = client._createRequest(context, {
|
|
63469
|
+
security: requestSecurity,
|
|
63470
|
+
method: "DELETE",
|
|
63471
|
+
baseURL: options?.serverURL,
|
|
63472
|
+
path,
|
|
63473
|
+
headers,
|
|
63474
|
+
query,
|
|
63475
|
+
body,
|
|
63476
|
+
userAgent: client._options.userAgent,
|
|
63477
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63478
|
+
}, options);
|
|
63479
|
+
if (!requestRes.ok) {
|
|
63480
|
+
return [requestRes, { status: "invalid" }];
|
|
63481
|
+
}
|
|
63482
|
+
const req = requestRes.value;
|
|
63483
|
+
const doResult = await client._do(req, {
|
|
63484
|
+
context,
|
|
63485
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63486
|
+
retryConfig: context.retryConfig,
|
|
63487
|
+
retryCodes: context.retryCodes
|
|
63488
|
+
});
|
|
63489
|
+
if (!doResult.ok) {
|
|
63490
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63491
|
+
}
|
|
63492
|
+
const response = doResult.value;
|
|
63493
|
+
const responseFields = {
|
|
63494
|
+
HttpMeta: { Response: response, Request: req }
|
|
63495
|
+
};
|
|
63496
|
+
const [result] = await match(json(200, anyType()), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63497
|
+
if (!result.ok) {
|
|
63498
|
+
return [result, { status: "complete", request: req, response }];
|
|
63499
|
+
}
|
|
63500
|
+
return [result, { status: "complete", request: req, response }];
|
|
63501
|
+
}
|
|
63502
|
+
var init_voiceGroupsDelete = __esm(() => {
|
|
63503
|
+
init_zod();
|
|
63504
|
+
init_encodings();
|
|
63505
|
+
init_matchers();
|
|
63506
|
+
init_primitives();
|
|
63507
|
+
init_schemas();
|
|
63508
|
+
init_security();
|
|
63509
|
+
init_url();
|
|
63510
|
+
init_errors2();
|
|
63511
|
+
init_operations();
|
|
63512
|
+
init_async();
|
|
63513
|
+
});
|
|
63514
|
+
|
|
63515
|
+
// src/mcp-server/tools/voiceGroupsDelete.ts
|
|
63516
|
+
var args131, tool$voiceGroupsDelete;
|
|
63517
|
+
var init_voiceGroupsDelete2 = __esm(() => {
|
|
63518
|
+
init_voiceGroupsDelete();
|
|
63519
|
+
init_operations();
|
|
63520
|
+
init_tools();
|
|
63521
|
+
args131 = {
|
|
63522
|
+
request: VoiceGroupsDeleteRequest$inboundSchema
|
|
63523
|
+
};
|
|
63524
|
+
tool$voiceGroupsDelete = {
|
|
63525
|
+
name: "voice-groups-delete",
|
|
63526
|
+
description: `Delete Voice Group
|
|
63527
|
+
|
|
63528
|
+
Delete a voice group.`,
|
|
63529
|
+
args: args131,
|
|
63530
|
+
tool: async (client, args132, ctx) => {
|
|
63531
|
+
const [result, apiCall] = await voiceGroupsDelete(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63532
|
+
if (!result.ok) {
|
|
63533
|
+
return {
|
|
63534
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63535
|
+
isError: true
|
|
63536
|
+
};
|
|
63537
|
+
}
|
|
63538
|
+
const value = result.value;
|
|
63539
|
+
return formatResult(value, apiCall);
|
|
63540
|
+
}
|
|
63541
|
+
};
|
|
63542
|
+
});
|
|
63543
|
+
|
|
63544
|
+
// src/funcs/voiceGroupsGetById.ts
|
|
63545
|
+
function voiceGroupsGetById(client, request, options) {
|
|
63546
|
+
return new APIPromise($do148(client, request, options));
|
|
63547
|
+
}
|
|
63548
|
+
async function $do148(client, request, options) {
|
|
63549
|
+
const parsed = safeParse(request, (value) => VoiceGroupsGetByIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63550
|
+
if (!parsed.ok) {
|
|
63551
|
+
return [parsed, { status: "invalid" }];
|
|
63552
|
+
}
|
|
63553
|
+
const payload = parsed.value;
|
|
63554
|
+
const body = null;
|
|
63555
|
+
const pathParams = {
|
|
63556
|
+
voice_group_id: encodeSimple("voice_group_id", payload.voice_group_id, {
|
|
63557
|
+
explode: false,
|
|
63558
|
+
charEncoding: "percent"
|
|
63559
|
+
})
|
|
63560
|
+
};
|
|
63561
|
+
const path = pathToFunc("/api/v1/voice_groups/{voice_group_id}")(pathParams);
|
|
63562
|
+
const headers = new Headers(compactMap({
|
|
63563
|
+
Accept: "application/json"
|
|
63564
|
+
}));
|
|
63565
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63566
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63567
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63568
|
+
const context = {
|
|
63569
|
+
options: client._options,
|
|
63570
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63571
|
+
operationID: "voice_groups_get_by_id",
|
|
63572
|
+
oAuth2Scopes: null,
|
|
63573
|
+
resolvedSecurity: requestSecurity,
|
|
63574
|
+
securitySource: client._options.apiKeyHeader,
|
|
63575
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63576
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63577
|
+
};
|
|
63578
|
+
const requestRes = client._createRequest(context, {
|
|
63579
|
+
security: requestSecurity,
|
|
63580
|
+
method: "GET",
|
|
63581
|
+
baseURL: options?.serverURL,
|
|
63582
|
+
path,
|
|
63583
|
+
headers,
|
|
63584
|
+
body,
|
|
63585
|
+
userAgent: client._options.userAgent,
|
|
63586
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63587
|
+
}, options);
|
|
63588
|
+
if (!requestRes.ok) {
|
|
63589
|
+
return [requestRes, { status: "invalid" }];
|
|
63590
|
+
}
|
|
63591
|
+
const req = requestRes.value;
|
|
63592
|
+
const doResult = await client._do(req, {
|
|
63593
|
+
context,
|
|
63594
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63595
|
+
retryConfig: context.retryConfig,
|
|
63596
|
+
retryCodes: context.retryCodes
|
|
63597
|
+
});
|
|
63598
|
+
if (!doResult.ok) {
|
|
63599
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63600
|
+
}
|
|
63601
|
+
const response = doResult.value;
|
|
63602
|
+
const responseFields = {
|
|
63603
|
+
HttpMeta: { Response: response, Request: req }
|
|
63604
|
+
};
|
|
63605
|
+
const [result] = await match(json(200, VoiceGroupResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63606
|
+
if (!result.ok) {
|
|
63607
|
+
return [result, { status: "complete", request: req, response }];
|
|
63608
|
+
}
|
|
63609
|
+
return [result, { status: "complete", request: req, response }];
|
|
63610
|
+
}
|
|
63611
|
+
var init_voiceGroupsGetById = __esm(() => {
|
|
63612
|
+
init_encodings();
|
|
63613
|
+
init_matchers();
|
|
63614
|
+
init_primitives();
|
|
63615
|
+
init_schemas();
|
|
63616
|
+
init_security();
|
|
63617
|
+
init_url();
|
|
63618
|
+
init_components();
|
|
63619
|
+
init_errors2();
|
|
63620
|
+
init_operations();
|
|
63621
|
+
init_async();
|
|
63622
|
+
});
|
|
63623
|
+
|
|
63624
|
+
// src/mcp-server/tools/voiceGroupsGetById.ts
|
|
63625
|
+
var args132, tool$voiceGroupsGetById;
|
|
63626
|
+
var init_voiceGroupsGetById2 = __esm(() => {
|
|
63627
|
+
init_voiceGroupsGetById();
|
|
63628
|
+
init_operations();
|
|
63629
|
+
init_tools();
|
|
63630
|
+
args132 = {
|
|
63631
|
+
request: VoiceGroupsGetByIdRequest$inboundSchema
|
|
63632
|
+
};
|
|
63633
|
+
tool$voiceGroupsGetById = {
|
|
63634
|
+
name: "voice-groups-get-by-id",
|
|
63635
|
+
description: `Get Voice Group
|
|
63636
|
+
|
|
63637
|
+
Fetch a given voice group.`,
|
|
63638
|
+
args: args132,
|
|
63639
|
+
tool: async (client, args133, ctx) => {
|
|
63640
|
+
const [result, apiCall] = await voiceGroupsGetById(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63641
|
+
if (!result.ok) {
|
|
63642
|
+
return {
|
|
63643
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63644
|
+
isError: true
|
|
63645
|
+
};
|
|
63646
|
+
}
|
|
63647
|
+
const value = result.value;
|
|
63648
|
+
return formatResult(value, apiCall);
|
|
63649
|
+
}
|
|
63650
|
+
};
|
|
63651
|
+
});
|
|
63652
|
+
|
|
63653
|
+
// src/funcs/voiceGroupsList.ts
|
|
63654
|
+
function voiceGroupsList(client, request, options) {
|
|
63655
|
+
return new APIPromise($do149(client, request, options));
|
|
63656
|
+
}
|
|
63657
|
+
async function $do149(client, request, options) {
|
|
63658
|
+
const parsed = safeParse(request, (value) => VoiceGroupsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63659
|
+
if (!parsed.ok) {
|
|
63660
|
+
return [parsed, { status: "invalid" }];
|
|
63661
|
+
}
|
|
63662
|
+
const payload = parsed.value;
|
|
63663
|
+
const body = null;
|
|
63664
|
+
const path = pathToFunc("/api/v1/voice_groups/")();
|
|
63665
|
+
const query = encodeFormQuery({
|
|
63666
|
+
end_datetime: payload.end_datetime,
|
|
63667
|
+
fields: payload.fields,
|
|
63668
|
+
limit: payload.limit,
|
|
63669
|
+
order_by: payload.order_by,
|
|
63670
|
+
order_by_direction: payload.order_by_direction,
|
|
63671
|
+
page: payload.page,
|
|
63672
|
+
search_field_values: payload.search_field_values,
|
|
63673
|
+
search_fields: payload.search_fields,
|
|
63674
|
+
start_datetime: payload.start_datetime
|
|
63675
|
+
});
|
|
63676
|
+
const headers = new Headers(compactMap({
|
|
63677
|
+
Accept: "application/json"
|
|
63678
|
+
}));
|
|
63679
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63680
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63681
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63682
|
+
const context = {
|
|
63683
|
+
options: client._options,
|
|
63684
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63685
|
+
operationID: "voice_groups_list",
|
|
63686
|
+
oAuth2Scopes: null,
|
|
63687
|
+
resolvedSecurity: requestSecurity,
|
|
63688
|
+
securitySource: client._options.apiKeyHeader,
|
|
63689
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63690
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63691
|
+
};
|
|
63692
|
+
const requestRes = client._createRequest(context, {
|
|
63693
|
+
security: requestSecurity,
|
|
63694
|
+
method: "GET",
|
|
63695
|
+
baseURL: options?.serverURL,
|
|
63696
|
+
path,
|
|
63697
|
+
headers,
|
|
63698
|
+
query,
|
|
63699
|
+
body,
|
|
63700
|
+
userAgent: client._options.userAgent,
|
|
63701
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63702
|
+
}, options);
|
|
63703
|
+
if (!requestRes.ok) {
|
|
63704
|
+
return [requestRes, { status: "invalid" }];
|
|
63705
|
+
}
|
|
63706
|
+
const req = requestRes.value;
|
|
63707
|
+
const doResult = await client._do(req, {
|
|
63708
|
+
context,
|
|
63709
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63710
|
+
retryConfig: context.retryConfig,
|
|
63711
|
+
retryCodes: context.retryCodes
|
|
63712
|
+
});
|
|
63713
|
+
if (!doResult.ok) {
|
|
63714
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63715
|
+
}
|
|
63716
|
+
const response = doResult.value;
|
|
63717
|
+
const responseFields = {
|
|
63718
|
+
HttpMeta: { Response: response, Request: req }
|
|
63719
|
+
};
|
|
63720
|
+
const [result] = await match(json(200, ListResponseVoiceGroupResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63721
|
+
if (!result.ok) {
|
|
63722
|
+
return [result, { status: "complete", request: req, response }];
|
|
63723
|
+
}
|
|
63724
|
+
return [result, { status: "complete", request: req, response }];
|
|
63725
|
+
}
|
|
63726
|
+
var init_voiceGroupsList = __esm(() => {
|
|
63727
|
+
init_encodings();
|
|
63728
|
+
init_matchers();
|
|
63729
|
+
init_primitives();
|
|
63730
|
+
init_schemas();
|
|
63731
|
+
init_security();
|
|
63732
|
+
init_url();
|
|
63733
|
+
init_components();
|
|
63734
|
+
init_errors2();
|
|
63735
|
+
init_operations();
|
|
63736
|
+
init_async();
|
|
63737
|
+
});
|
|
63738
|
+
|
|
63739
|
+
// src/mcp-server/tools/voiceGroupsList.ts
|
|
63740
|
+
var args133, tool$voiceGroupsList;
|
|
63741
|
+
var init_voiceGroupsList2 = __esm(() => {
|
|
63742
|
+
init_voiceGroupsList();
|
|
63743
|
+
init_operations();
|
|
63744
|
+
init_tools();
|
|
63745
|
+
args133 = {
|
|
63746
|
+
request: VoiceGroupsListRequest$inboundSchema
|
|
63747
|
+
};
|
|
63748
|
+
tool$voiceGroupsList = {
|
|
63749
|
+
name: "voice-groups-list",
|
|
63750
|
+
description: `List Voice Groups
|
|
63751
|
+
|
|
63752
|
+
Fetch voice groups.`,
|
|
63753
|
+
args: args133,
|
|
63754
|
+
tool: async (client, args134, ctx) => {
|
|
63755
|
+
const [result, apiCall] = await voiceGroupsList(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63756
|
+
if (!result.ok) {
|
|
63757
|
+
return {
|
|
63758
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63759
|
+
isError: true
|
|
63760
|
+
};
|
|
63761
|
+
}
|
|
63762
|
+
const value = result.value;
|
|
63763
|
+
return formatResult(value, apiCall);
|
|
63764
|
+
}
|
|
63765
|
+
};
|
|
63766
|
+
});
|
|
63767
|
+
|
|
63768
|
+
// src/funcs/voiceGroupsUpdate.ts
|
|
63769
|
+
function voiceGroupsUpdate(client, request, options) {
|
|
63770
|
+
return new APIPromise($do150(client, request, options));
|
|
63771
|
+
}
|
|
63772
|
+
async function $do150(client, request, options) {
|
|
63773
|
+
const parsed = safeParse(request, (value) => VoiceGroupUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63774
|
+
if (!parsed.ok) {
|
|
63775
|
+
return [parsed, { status: "invalid" }];
|
|
63776
|
+
}
|
|
63777
|
+
const payload = parsed.value;
|
|
63778
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
63779
|
+
const path = pathToFunc("/api/v1/voice_groups/")();
|
|
63780
|
+
const headers = new Headers(compactMap({
|
|
63781
|
+
"Content-Type": "application/json",
|
|
63782
|
+
Accept: "application/json"
|
|
63783
|
+
}));
|
|
63784
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63785
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63786
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63787
|
+
const context = {
|
|
63788
|
+
options: client._options,
|
|
63789
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63790
|
+
operationID: "voice_groups_update",
|
|
63791
|
+
oAuth2Scopes: null,
|
|
63792
|
+
resolvedSecurity: requestSecurity,
|
|
63793
|
+
securitySource: client._options.apiKeyHeader,
|
|
63794
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63795
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63796
|
+
};
|
|
63797
|
+
const requestRes = client._createRequest(context, {
|
|
63798
|
+
security: requestSecurity,
|
|
63799
|
+
method: "PUT",
|
|
63800
|
+
baseURL: options?.serverURL,
|
|
63801
|
+
path,
|
|
63802
|
+
headers,
|
|
63803
|
+
body,
|
|
63804
|
+
userAgent: client._options.userAgent,
|
|
63805
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63806
|
+
}, options);
|
|
63807
|
+
if (!requestRes.ok) {
|
|
63808
|
+
return [requestRes, { status: "invalid" }];
|
|
63809
|
+
}
|
|
63810
|
+
const req = requestRes.value;
|
|
63811
|
+
const doResult = await client._do(req, {
|
|
63812
|
+
context,
|
|
63813
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63814
|
+
retryConfig: context.retryConfig,
|
|
63815
|
+
retryCodes: context.retryCodes
|
|
63816
|
+
});
|
|
63817
|
+
if (!doResult.ok) {
|
|
63818
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63819
|
+
}
|
|
63820
|
+
const response = doResult.value;
|
|
63821
|
+
const responseFields = {
|
|
63822
|
+
HttpMeta: { Response: response, Request: req }
|
|
63823
|
+
};
|
|
63824
|
+
const [result] = await match(json(200, VoiceGroupResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63825
|
+
if (!result.ok) {
|
|
63826
|
+
return [result, { status: "complete", request: req, response }];
|
|
63827
|
+
}
|
|
63828
|
+
return [result, { status: "complete", request: req, response }];
|
|
63829
|
+
}
|
|
63830
|
+
var init_voiceGroupsUpdate = __esm(() => {
|
|
63831
|
+
init_encodings();
|
|
63832
|
+
init_matchers();
|
|
63833
|
+
init_primitives();
|
|
63834
|
+
init_schemas();
|
|
63835
|
+
init_security();
|
|
63836
|
+
init_url();
|
|
63837
|
+
init_components();
|
|
63838
|
+
init_errors2();
|
|
63839
|
+
init_async();
|
|
63840
|
+
});
|
|
63841
|
+
|
|
63842
|
+
// src/mcp-server/tools/voiceGroupsUpdate.ts
|
|
63843
|
+
var args134, tool$voiceGroupsUpdate;
|
|
63844
|
+
var init_voiceGroupsUpdate2 = __esm(() => {
|
|
63845
|
+
init_voiceGroupsUpdate();
|
|
63846
|
+
init_components();
|
|
63847
|
+
init_tools();
|
|
63848
|
+
args134 = {
|
|
63849
|
+
request: VoiceGroupUpdateRequest$inboundSchema
|
|
63850
|
+
};
|
|
63851
|
+
tool$voiceGroupsUpdate = {
|
|
63852
|
+
name: "voice-groups-update",
|
|
63853
|
+
description: `Update Voice Group
|
|
63854
|
+
|
|
63855
|
+
Update an existing voice group`,
|
|
63856
|
+
args: args134,
|
|
63857
|
+
tool: async (client, args135, ctx) => {
|
|
63858
|
+
const [result, apiCall] = await voiceGroupsUpdate(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63859
|
+
if (!result.ok) {
|
|
63860
|
+
return {
|
|
63861
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63862
|
+
isError: true
|
|
63863
|
+
};
|
|
63864
|
+
}
|
|
63865
|
+
const value = result.value;
|
|
63866
|
+
return formatResult(value, apiCall);
|
|
63867
|
+
}
|
|
63868
|
+
};
|
|
63869
|
+
});
|
|
63870
|
+
|
|
63871
|
+
// src/funcs/voiceGroupsVoiceGroupsCreateVoiceSample.ts
|
|
63872
|
+
function voiceGroupsVoiceGroupsCreateVoiceSample(client, request, options) {
|
|
63873
|
+
return new APIPromise($do151(client, request, options));
|
|
63874
|
+
}
|
|
63875
|
+
async function $do151(client, request, options) {
|
|
63876
|
+
const parsed = safeParse(request, (value) => VoiceSampleCreateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63877
|
+
if (!parsed.ok) {
|
|
63878
|
+
return [parsed, { status: "invalid" }];
|
|
63879
|
+
}
|
|
63880
|
+
const payload = parsed.value;
|
|
63881
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
63882
|
+
const path = pathToFunc("/api/v1/voice_groups/voices/sample")();
|
|
63883
|
+
const headers = new Headers(compactMap({
|
|
63884
|
+
"Content-Type": "application/json",
|
|
63885
|
+
Accept: "application/octet-stream"
|
|
63886
|
+
}));
|
|
63887
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63888
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63889
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63890
|
+
const context = {
|
|
63891
|
+
options: client._options,
|
|
63892
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63893
|
+
operationID: "voice_groups_create_voice_sample",
|
|
63894
|
+
oAuth2Scopes: null,
|
|
63895
|
+
resolvedSecurity: requestSecurity,
|
|
63896
|
+
securitySource: client._options.apiKeyHeader,
|
|
63897
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63898
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63899
|
+
};
|
|
63900
|
+
const requestRes = client._createRequest(context, {
|
|
63901
|
+
security: requestSecurity,
|
|
63902
|
+
method: "POST",
|
|
63903
|
+
baseURL: options?.serverURL,
|
|
63904
|
+
path,
|
|
63905
|
+
headers,
|
|
63906
|
+
body,
|
|
63907
|
+
userAgent: client._options.userAgent,
|
|
63908
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63909
|
+
}, options);
|
|
63910
|
+
if (!requestRes.ok) {
|
|
63911
|
+
return [requestRes, { status: "invalid" }];
|
|
63912
|
+
}
|
|
63913
|
+
const req = requestRes.value;
|
|
63914
|
+
const doResult = await client._do(req, {
|
|
63915
|
+
context,
|
|
63916
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63917
|
+
retryConfig: context.retryConfig,
|
|
63918
|
+
retryCodes: context.retryCodes
|
|
63919
|
+
});
|
|
63920
|
+
if (!doResult.ok) {
|
|
63921
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63922
|
+
}
|
|
63923
|
+
const response = doResult.value;
|
|
63924
|
+
const responseFields = {
|
|
63925
|
+
HttpMeta: { Response: response, Request: req }
|
|
63926
|
+
};
|
|
63927
|
+
const [result] = await match(stream(200, instanceOfType(ReadableStream)), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63928
|
+
if (!result.ok) {
|
|
63929
|
+
return [result, { status: "complete", request: req, response }];
|
|
63930
|
+
}
|
|
63931
|
+
return [result, { status: "complete", request: req, response }];
|
|
63932
|
+
}
|
|
63933
|
+
var init_voiceGroupsVoiceGroupsCreateVoiceSample = __esm(() => {
|
|
63934
|
+
init_zod();
|
|
63935
|
+
init_encodings();
|
|
63936
|
+
init_matchers();
|
|
63937
|
+
init_primitives();
|
|
63938
|
+
init_schemas();
|
|
63939
|
+
init_security();
|
|
63940
|
+
init_url();
|
|
63941
|
+
init_components();
|
|
63942
|
+
init_errors2();
|
|
63943
|
+
init_async();
|
|
63944
|
+
});
|
|
63945
|
+
|
|
63946
|
+
// src/mcp-server/tools/voiceGroupsVoiceGroupsCreateVoiceSample.ts
|
|
63947
|
+
var args135, tool$voiceGroupsVoiceGroupsCreateVoiceSample;
|
|
63948
|
+
var init_voiceGroupsVoiceGroupsCreateVoiceSample2 = __esm(() => {
|
|
63949
|
+
init_voiceGroupsVoiceGroupsCreateVoiceSample();
|
|
63950
|
+
init_components();
|
|
63951
|
+
init_tools();
|
|
63952
|
+
args135 = {
|
|
63953
|
+
request: VoiceSampleCreateRequest$inboundSchema
|
|
63954
|
+
};
|
|
63955
|
+
tool$voiceGroupsVoiceGroupsCreateVoiceSample = {
|
|
63956
|
+
name: "voice-groups-voice-groups-create-voice-sample",
|
|
63957
|
+
description: `Create Voice Sample
|
|
63958
|
+
|
|
63959
|
+
Generate voice sample.`,
|
|
63960
|
+
args: args135,
|
|
63961
|
+
tool: async (client, args136, ctx) => {
|
|
63962
|
+
const [result, apiCall] = await voiceGroupsVoiceGroupsCreateVoiceSample(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63963
|
+
if (!result.ok) {
|
|
63964
|
+
return {
|
|
63965
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63966
|
+
isError: true
|
|
63967
|
+
};
|
|
63968
|
+
}
|
|
63969
|
+
const value = result.value;
|
|
63970
|
+
return formatResult(value, apiCall);
|
|
63971
|
+
}
|
|
63972
|
+
};
|
|
63973
|
+
});
|
|
63974
|
+
|
|
62969
63975
|
// src/mcp-server/server.ts
|
|
62970
63976
|
function createMCPServer(deps) {
|
|
62971
63977
|
const server = new McpServer({
|
|
62972
63978
|
name: "SyllableSDK",
|
|
62973
|
-
version: "1.0.4
|
|
63979
|
+
version: "1.0.4"
|
|
62974
63980
|
});
|
|
62975
63981
|
const client = new SyllableSDKCore({
|
|
62976
63982
|
apiKeyHeader: deps.apiKeyHeader,
|
|
@@ -63067,6 +64073,12 @@ function createMCPServer(deps) {
|
|
|
63067
64073
|
tool(tool$languageGroupsGetById);
|
|
63068
64074
|
tool(tool$languageGroupsDelete);
|
|
63069
64075
|
tool(tool$languageGroupsLanguageGroupsCreateVoiceSample);
|
|
64076
|
+
tool(tool$voiceGroupsList);
|
|
64077
|
+
tool(tool$voiceGroupsCreate);
|
|
64078
|
+
tool(tool$voiceGroupsUpdate);
|
|
64079
|
+
tool(tool$voiceGroupsGetById);
|
|
64080
|
+
tool(tool$voiceGroupsDelete);
|
|
64081
|
+
tool(tool$voiceGroupsVoiceGroupsCreateVoiceSample);
|
|
63070
64082
|
tool(tool$takeoutsCreate);
|
|
63071
64083
|
tool(tool$takeoutsTakeoutsGetByJobId);
|
|
63072
64084
|
tool(tool$takeoutsTakeoutsGetFile);
|
|
@@ -63281,6 +64293,12 @@ var init_server2 = __esm(() => {
|
|
|
63281
64293
|
init_usersUsersDeleteAccount2();
|
|
63282
64294
|
init_usersUsersGetByEmail2();
|
|
63283
64295
|
init_usersUsersSendEmail2();
|
|
64296
|
+
init_voiceGroupsCreate2();
|
|
64297
|
+
init_voiceGroupsDelete2();
|
|
64298
|
+
init_voiceGroupsGetById2();
|
|
64299
|
+
init_voiceGroupsList2();
|
|
64300
|
+
init_voiceGroupsUpdate2();
|
|
64301
|
+
init_voiceGroupsVoiceGroupsCreateVoiceSample2();
|
|
63284
64302
|
});
|
|
63285
64303
|
|
|
63286
64304
|
// src/mcp-server/cli/start/impl.ts
|
|
@@ -64476,7 +65494,7 @@ var routes = ln({
|
|
|
64476
65494
|
var app = _e(routes, {
|
|
64477
65495
|
name: "mcp",
|
|
64478
65496
|
versionInfo: {
|
|
64479
|
-
currentVersion: "1.0.4
|
|
65497
|
+
currentVersion: "1.0.4"
|
|
64480
65498
|
}
|
|
64481
65499
|
});
|
|
64482
65500
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -64484,5 +65502,5 @@ export {
|
|
|
64484
65502
|
app
|
|
64485
65503
|
};
|
|
64486
65504
|
|
|
64487
|
-
//# debugId=
|
|
65505
|
+
//# debugId=6A7DE5F9310A660164756E2164756E21
|
|
64488
65506
|
//# sourceMappingURL=mcp-server.js.map
|