syllable-sdk 1.0.4-rc.1 → 1.0.4-rc.2
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 +1019 -13
- package/bin/mcp-server.js.map +45 -24
- 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 +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +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 +2 -2
- 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-rc.
|
|
34417
|
+
sdkVersion: "1.0.4-rc.2",
|
|
34418
34418
|
genVersion: "2.723.11",
|
|
34419
|
-
userAgent: "speakeasy-sdk/typescript 1.0.4-rc.
|
|
34419
|
+
userAgent: "speakeasy-sdk/typescript 1.0.4-rc.2 2.723.11 0.0.2 syllable-sdk"
|
|
34420
34420
|
};
|
|
34421
34421
|
});
|
|
34422
34422
|
|
|
@@ -40559,6 +40559,56 @@ var init_languagegroupupdaterequest = __esm(() => {
|
|
|
40559
40559
|
})(LanguageGroupUpdateRequest$ ||= {});
|
|
40560
40560
|
});
|
|
40561
40561
|
|
|
40562
|
+
// src/models/components/languagesamplecreaterequest.ts
|
|
40563
|
+
var LanguageSampleCreateRequest$inboundSchema, LanguageSampleCreateRequest$outboundSchema, LanguageSampleCreateRequest$;
|
|
40564
|
+
var init_languagesamplecreaterequest = __esm(() => {
|
|
40565
|
+
init_zod();
|
|
40566
|
+
init_primitives();
|
|
40567
|
+
init_agentvoicedisplayname();
|
|
40568
|
+
init_languagecode();
|
|
40569
|
+
init_ttsprovider();
|
|
40570
|
+
LanguageSampleCreateRequest$inboundSchema = objectType({
|
|
40571
|
+
language_code: LanguageCode$inboundSchema,
|
|
40572
|
+
voice_provider: TtsProvider$inboundSchema,
|
|
40573
|
+
voice_display_name: AgentVoiceDisplayName$inboundSchema,
|
|
40574
|
+
voice_speed: nullableType(numberType()).optional(),
|
|
40575
|
+
voice_pitch: nullableType(numberType()).optional(),
|
|
40576
|
+
text: stringType().default(""),
|
|
40577
|
+
apply_pronunciation_overrides: booleanType().default(false)
|
|
40578
|
+
}).transform((v2) => {
|
|
40579
|
+
return remap(v2, {
|
|
40580
|
+
language_code: "languageCode",
|
|
40581
|
+
voice_provider: "voiceProvider",
|
|
40582
|
+
voice_display_name: "voiceDisplayName",
|
|
40583
|
+
voice_speed: "voiceSpeed",
|
|
40584
|
+
voice_pitch: "voicePitch",
|
|
40585
|
+
apply_pronunciation_overrides: "applyPronunciationOverrides"
|
|
40586
|
+
});
|
|
40587
|
+
});
|
|
40588
|
+
LanguageSampleCreateRequest$outboundSchema = objectType({
|
|
40589
|
+
languageCode: LanguageCode$outboundSchema,
|
|
40590
|
+
voiceProvider: TtsProvider$outboundSchema,
|
|
40591
|
+
voiceDisplayName: AgentVoiceDisplayName$outboundSchema,
|
|
40592
|
+
voiceSpeed: nullableType(numberType()).optional(),
|
|
40593
|
+
voicePitch: nullableType(numberType()).optional(),
|
|
40594
|
+
text: stringType().default(""),
|
|
40595
|
+
applyPronunciationOverrides: booleanType().default(false)
|
|
40596
|
+
}).transform((v2) => {
|
|
40597
|
+
return remap(v2, {
|
|
40598
|
+
languageCode: "language_code",
|
|
40599
|
+
voiceProvider: "voice_provider",
|
|
40600
|
+
voiceDisplayName: "voice_display_name",
|
|
40601
|
+
voiceSpeed: "voice_speed",
|
|
40602
|
+
voicePitch: "voice_pitch",
|
|
40603
|
+
applyPronunciationOverrides: "apply_pronunciation_overrides"
|
|
40604
|
+
});
|
|
40605
|
+
});
|
|
40606
|
+
((LanguageSampleCreateRequest$) => {
|
|
40607
|
+
LanguageSampleCreateRequest$.inboundSchema = LanguageSampleCreateRequest$inboundSchema;
|
|
40608
|
+
LanguageSampleCreateRequest$.outboundSchema = LanguageSampleCreateRequest$outboundSchema;
|
|
40609
|
+
})(LanguageSampleCreateRequest$ ||= {});
|
|
40610
|
+
});
|
|
40611
|
+
|
|
40562
40612
|
// src/models/components/listresponseagentresponse.ts
|
|
40563
40613
|
var ListResponseAgentResponse$inboundSchema, ListResponseAgentResponse$outboundSchema, ListResponseAgentResponse$;
|
|
40564
40614
|
var init_listresponseagentresponse = __esm(() => {
|
|
@@ -41935,6 +41985,97 @@ var init_listresponseuserresponse = __esm(() => {
|
|
|
41935
41985
|
})(ListResponseUserResponse$ ||= {});
|
|
41936
41986
|
});
|
|
41937
41987
|
|
|
41988
|
+
// src/models/components/voicegroupresponse.ts
|
|
41989
|
+
var VoiceGroupResponse$inboundSchema, VoiceGroupResponse$outboundSchema, VoiceGroupResponse$;
|
|
41990
|
+
var init_voicegroupresponse = __esm(() => {
|
|
41991
|
+
init_zod();
|
|
41992
|
+
init_primitives();
|
|
41993
|
+
init_languageconfig();
|
|
41994
|
+
init_languagegroupagentinfo();
|
|
41995
|
+
VoiceGroupResponse$inboundSchema = objectType({
|
|
41996
|
+
name: stringType(),
|
|
41997
|
+
description: nullableType(stringType()).optional(),
|
|
41998
|
+
language_configs: arrayType(LanguageConfig$inboundSchema),
|
|
41999
|
+
skip_current_language_in_message: booleanType(),
|
|
42000
|
+
id: numberType().int(),
|
|
42001
|
+
edit_comments: nullableType(stringType()).optional(),
|
|
42002
|
+
agents_info: nullableType(arrayType(LanguageGroupAgentInfo$inboundSchema)).optional(),
|
|
42003
|
+
updated_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
42004
|
+
last_updated_by: stringType()
|
|
42005
|
+
}).transform((v2) => {
|
|
42006
|
+
return remap(v2, {
|
|
42007
|
+
language_configs: "languageConfigs",
|
|
42008
|
+
skip_current_language_in_message: "skipCurrentLanguageInMessage",
|
|
42009
|
+
edit_comments: "editComments",
|
|
42010
|
+
agents_info: "agentsInfo",
|
|
42011
|
+
updated_at: "updatedAt",
|
|
42012
|
+
last_updated_by: "lastUpdatedBy"
|
|
42013
|
+
});
|
|
42014
|
+
});
|
|
42015
|
+
VoiceGroupResponse$outboundSchema = objectType({
|
|
42016
|
+
name: stringType(),
|
|
42017
|
+
description: nullableType(stringType()).optional(),
|
|
42018
|
+
languageConfigs: arrayType(LanguageConfig$outboundSchema),
|
|
42019
|
+
skipCurrentLanguageInMessage: booleanType(),
|
|
42020
|
+
id: numberType().int(),
|
|
42021
|
+
editComments: nullableType(stringType()).optional(),
|
|
42022
|
+
agentsInfo: nullableType(arrayType(LanguageGroupAgentInfo$outboundSchema)).optional(),
|
|
42023
|
+
updatedAt: dateType().transform((v2) => v2.toISOString()),
|
|
42024
|
+
lastUpdatedBy: stringType()
|
|
42025
|
+
}).transform((v2) => {
|
|
42026
|
+
return remap(v2, {
|
|
42027
|
+
languageConfigs: "language_configs",
|
|
42028
|
+
skipCurrentLanguageInMessage: "skip_current_language_in_message",
|
|
42029
|
+
editComments: "edit_comments",
|
|
42030
|
+
agentsInfo: "agents_info",
|
|
42031
|
+
updatedAt: "updated_at",
|
|
42032
|
+
lastUpdatedBy: "last_updated_by"
|
|
42033
|
+
});
|
|
42034
|
+
});
|
|
42035
|
+
((VoiceGroupResponse$) => {
|
|
42036
|
+
VoiceGroupResponse$.inboundSchema = VoiceGroupResponse$inboundSchema;
|
|
42037
|
+
VoiceGroupResponse$.outboundSchema = VoiceGroupResponse$outboundSchema;
|
|
42038
|
+
})(VoiceGroupResponse$ ||= {});
|
|
42039
|
+
});
|
|
42040
|
+
|
|
42041
|
+
// src/models/components/listresponsevoicegroupresponse.ts
|
|
42042
|
+
var ListResponseVoiceGroupResponse$inboundSchema, ListResponseVoiceGroupResponse$outboundSchema, ListResponseVoiceGroupResponse$;
|
|
42043
|
+
var init_listresponsevoicegroupresponse = __esm(() => {
|
|
42044
|
+
init_zod();
|
|
42045
|
+
init_primitives();
|
|
42046
|
+
init_voicegroupresponse();
|
|
42047
|
+
ListResponseVoiceGroupResponse$inboundSchema = objectType({
|
|
42048
|
+
items: arrayType(VoiceGroupResponse$inboundSchema),
|
|
42049
|
+
page: numberType().int(),
|
|
42050
|
+
page_size: numberType().int(),
|
|
42051
|
+
total_pages: nullableType(numberType().int()).optional(),
|
|
42052
|
+
total_count: nullableType(numberType().int()).optional()
|
|
42053
|
+
}).transform((v2) => {
|
|
42054
|
+
return remap(v2, {
|
|
42055
|
+
page_size: "pageSize",
|
|
42056
|
+
total_pages: "totalPages",
|
|
42057
|
+
total_count: "totalCount"
|
|
42058
|
+
});
|
|
42059
|
+
});
|
|
42060
|
+
ListResponseVoiceGroupResponse$outboundSchema = objectType({
|
|
42061
|
+
items: arrayType(VoiceGroupResponse$outboundSchema),
|
|
42062
|
+
page: numberType().int(),
|
|
42063
|
+
pageSize: numberType().int(),
|
|
42064
|
+
totalPages: nullableType(numberType().int()).optional(),
|
|
42065
|
+
totalCount: nullableType(numberType().int()).optional()
|
|
42066
|
+
}).transform((v2) => {
|
|
42067
|
+
return remap(v2, {
|
|
42068
|
+
pageSize: "page_size",
|
|
42069
|
+
totalPages: "total_pages",
|
|
42070
|
+
totalCount: "total_count"
|
|
42071
|
+
});
|
|
42072
|
+
});
|
|
42073
|
+
((ListResponseVoiceGroupResponse$) => {
|
|
42074
|
+
ListResponseVoiceGroupResponse$.inboundSchema = ListResponseVoiceGroupResponse$inboundSchema;
|
|
42075
|
+
ListResponseVoiceGroupResponse$.outboundSchema = ListResponseVoiceGroupResponse$outboundSchema;
|
|
42076
|
+
})(ListResponseVoiceGroupResponse$ ||= {});
|
|
42077
|
+
});
|
|
42078
|
+
|
|
41938
42079
|
// src/models/components/logintype.ts
|
|
41939
42080
|
var LoginType, LoginType$inboundSchema, LoginType$outboundSchema, LoginType$;
|
|
41940
42081
|
var init_logintype = __esm(() => {
|
|
@@ -43888,6 +44029,99 @@ var init_validationerror = __esm(() => {
|
|
|
43888
44029
|
})(ValidationError$ ||= {});
|
|
43889
44030
|
});
|
|
43890
44031
|
|
|
44032
|
+
// src/models/components/voicegroupcreaterequest.ts
|
|
44033
|
+
var VoiceGroupCreateRequest$inboundSchema, VoiceGroupCreateRequest$outboundSchema, VoiceGroupCreateRequest$;
|
|
44034
|
+
var init_voicegroupcreaterequest = __esm(() => {
|
|
44035
|
+
init_zod();
|
|
44036
|
+
init_primitives();
|
|
44037
|
+
init_languageconfig();
|
|
44038
|
+
VoiceGroupCreateRequest$inboundSchema = objectType({
|
|
44039
|
+
name: stringType(),
|
|
44040
|
+
description: nullableType(stringType()).optional(),
|
|
44041
|
+
language_configs: arrayType(LanguageConfig$inboundSchema),
|
|
44042
|
+
skip_current_language_in_message: booleanType()
|
|
44043
|
+
}).transform((v2) => {
|
|
44044
|
+
return remap(v2, {
|
|
44045
|
+
language_configs: "languageConfigs",
|
|
44046
|
+
skip_current_language_in_message: "skipCurrentLanguageInMessage"
|
|
44047
|
+
});
|
|
44048
|
+
});
|
|
44049
|
+
VoiceGroupCreateRequest$outboundSchema = objectType({
|
|
44050
|
+
name: stringType(),
|
|
44051
|
+
description: nullableType(stringType()).optional(),
|
|
44052
|
+
languageConfigs: arrayType(LanguageConfig$outboundSchema),
|
|
44053
|
+
skipCurrentLanguageInMessage: booleanType()
|
|
44054
|
+
}).transform((v2) => {
|
|
44055
|
+
return remap(v2, {
|
|
44056
|
+
languageConfigs: "language_configs",
|
|
44057
|
+
skipCurrentLanguageInMessage: "skip_current_language_in_message"
|
|
44058
|
+
});
|
|
44059
|
+
});
|
|
44060
|
+
((VoiceGroupCreateRequest$) => {
|
|
44061
|
+
VoiceGroupCreateRequest$.inboundSchema = VoiceGroupCreateRequest$inboundSchema;
|
|
44062
|
+
VoiceGroupCreateRequest$.outboundSchema = VoiceGroupCreateRequest$outboundSchema;
|
|
44063
|
+
})(VoiceGroupCreateRequest$ ||= {});
|
|
44064
|
+
});
|
|
44065
|
+
|
|
44066
|
+
// src/models/components/voicegroupproperties.ts
|
|
44067
|
+
var VoiceGroupProperties, VoiceGroupProperties$inboundSchema, VoiceGroupProperties$outboundSchema, VoiceGroupProperties$;
|
|
44068
|
+
var init_voicegroupproperties = __esm(() => {
|
|
44069
|
+
init_zod();
|
|
44070
|
+
VoiceGroupProperties = {
|
|
44071
|
+
Name: "name",
|
|
44072
|
+
Description: "description",
|
|
44073
|
+
SkipCurrentLanguageInMessage: "skip_current_language_in_message",
|
|
44074
|
+
UpdatedAt: "updated_at",
|
|
44075
|
+
LastUpdatedBy: "last_updated_by"
|
|
44076
|
+
};
|
|
44077
|
+
VoiceGroupProperties$inboundSchema = nativeEnumType(VoiceGroupProperties);
|
|
44078
|
+
VoiceGroupProperties$outboundSchema = VoiceGroupProperties$inboundSchema;
|
|
44079
|
+
((VoiceGroupProperties$) => {
|
|
44080
|
+
VoiceGroupProperties$.inboundSchema = VoiceGroupProperties$inboundSchema;
|
|
44081
|
+
VoiceGroupProperties$.outboundSchema = VoiceGroupProperties$outboundSchema;
|
|
44082
|
+
})(VoiceGroupProperties$ ||= {});
|
|
44083
|
+
});
|
|
44084
|
+
|
|
44085
|
+
// src/models/components/voicegroupupdaterequest.ts
|
|
44086
|
+
var VoiceGroupUpdateRequest$inboundSchema, VoiceGroupUpdateRequest$outboundSchema, VoiceGroupUpdateRequest$;
|
|
44087
|
+
var init_voicegroupupdaterequest = __esm(() => {
|
|
44088
|
+
init_zod();
|
|
44089
|
+
init_primitives();
|
|
44090
|
+
init_languageconfig();
|
|
44091
|
+
VoiceGroupUpdateRequest$inboundSchema = objectType({
|
|
44092
|
+
name: stringType(),
|
|
44093
|
+
description: nullableType(stringType()).optional(),
|
|
44094
|
+
language_configs: arrayType(LanguageConfig$inboundSchema),
|
|
44095
|
+
skip_current_language_in_message: booleanType(),
|
|
44096
|
+
id: numberType().int(),
|
|
44097
|
+
edit_comments: nullableType(stringType()).optional()
|
|
44098
|
+
}).transform((v2) => {
|
|
44099
|
+
return remap(v2, {
|
|
44100
|
+
language_configs: "languageConfigs",
|
|
44101
|
+
skip_current_language_in_message: "skipCurrentLanguageInMessage",
|
|
44102
|
+
edit_comments: "editComments"
|
|
44103
|
+
});
|
|
44104
|
+
});
|
|
44105
|
+
VoiceGroupUpdateRequest$outboundSchema = objectType({
|
|
44106
|
+
name: stringType(),
|
|
44107
|
+
description: nullableType(stringType()).optional(),
|
|
44108
|
+
languageConfigs: arrayType(LanguageConfig$outboundSchema),
|
|
44109
|
+
skipCurrentLanguageInMessage: booleanType(),
|
|
44110
|
+
id: numberType().int(),
|
|
44111
|
+
editComments: nullableType(stringType()).optional()
|
|
44112
|
+
}).transform((v2) => {
|
|
44113
|
+
return remap(v2, {
|
|
44114
|
+
languageConfigs: "language_configs",
|
|
44115
|
+
skipCurrentLanguageInMessage: "skip_current_language_in_message",
|
|
44116
|
+
editComments: "edit_comments"
|
|
44117
|
+
});
|
|
44118
|
+
});
|
|
44119
|
+
((VoiceGroupUpdateRequest$) => {
|
|
44120
|
+
VoiceGroupUpdateRequest$.inboundSchema = VoiceGroupUpdateRequest$inboundSchema;
|
|
44121
|
+
VoiceGroupUpdateRequest$.outboundSchema = VoiceGroupUpdateRequest$outboundSchema;
|
|
44122
|
+
})(VoiceGroupUpdateRequest$ ||= {});
|
|
44123
|
+
});
|
|
44124
|
+
|
|
43891
44125
|
// src/models/components/voicesamplecreaterequest.ts
|
|
43892
44126
|
var VoiceSampleCreateRequest$inboundSchema, VoiceSampleCreateRequest$outboundSchema, VoiceSampleCreateRequest$;
|
|
43893
44127
|
var init_voicesamplecreaterequest = __esm(() => {
|
|
@@ -44040,6 +44274,7 @@ var init_components = __esm(() => {
|
|
|
44040
44274
|
init_languagegroupproperties();
|
|
44041
44275
|
init_languagegroupresponse();
|
|
44042
44276
|
init_languagegroupupdaterequest();
|
|
44277
|
+
init_languagesamplecreaterequest();
|
|
44043
44278
|
init_latencycategory();
|
|
44044
44279
|
init_latencyentry();
|
|
44045
44280
|
init_latencyunittype();
|
|
@@ -44068,6 +44303,7 @@ var init_components = __esm(() => {
|
|
|
44068
44303
|
init_listresponsesessionlabel();
|
|
44069
44304
|
init_listresponsetoolresponse();
|
|
44070
44305
|
init_listresponseuserresponse();
|
|
44306
|
+
init_listresponsevoicegroupresponse();
|
|
44071
44307
|
init_logintype();
|
|
44072
44308
|
init_matchtype();
|
|
44073
44309
|
init_orderbydirection();
|
|
@@ -44159,6 +44395,10 @@ var init_components = __esm(() => {
|
|
|
44159
44395
|
init_userupdaterequest();
|
|
44160
44396
|
init_validationerror();
|
|
44161
44397
|
init_voicedisplayinfo();
|
|
44398
|
+
init_voicegroupcreaterequest();
|
|
44399
|
+
init_voicegroupproperties();
|
|
44400
|
+
init_voicegroupresponse();
|
|
44401
|
+
init_voicegroupupdaterequest();
|
|
44162
44402
|
init_voicesamplecreaterequest();
|
|
44163
44403
|
});
|
|
44164
44404
|
|
|
@@ -47537,6 +47777,110 @@ var init_userssendemail = __esm(() => {
|
|
|
47537
47777
|
})(UsersSendEmailRequest$ ||= {});
|
|
47538
47778
|
});
|
|
47539
47779
|
|
|
47780
|
+
// src/models/operations/voicegroupsdelete.ts
|
|
47781
|
+
var VoiceGroupsDeleteRequest$inboundSchema, VoiceGroupsDeleteRequest$outboundSchema, VoiceGroupsDeleteRequest$;
|
|
47782
|
+
var init_voicegroupsdelete = __esm(() => {
|
|
47783
|
+
init_zod();
|
|
47784
|
+
init_primitives();
|
|
47785
|
+
VoiceGroupsDeleteRequest$inboundSchema = objectType({
|
|
47786
|
+
voice_group_id: numberType().int(),
|
|
47787
|
+
reason: stringType()
|
|
47788
|
+
}).transform((v2) => {
|
|
47789
|
+
return remap(v2, {
|
|
47790
|
+
voice_group_id: "voiceGroupId"
|
|
47791
|
+
});
|
|
47792
|
+
});
|
|
47793
|
+
VoiceGroupsDeleteRequest$outboundSchema = objectType({
|
|
47794
|
+
voiceGroupId: numberType().int(),
|
|
47795
|
+
reason: stringType()
|
|
47796
|
+
}).transform((v2) => {
|
|
47797
|
+
return remap(v2, {
|
|
47798
|
+
voiceGroupId: "voice_group_id"
|
|
47799
|
+
});
|
|
47800
|
+
});
|
|
47801
|
+
((VoiceGroupsDeleteRequest$) => {
|
|
47802
|
+
VoiceGroupsDeleteRequest$.inboundSchema = VoiceGroupsDeleteRequest$inboundSchema;
|
|
47803
|
+
VoiceGroupsDeleteRequest$.outboundSchema = VoiceGroupsDeleteRequest$outboundSchema;
|
|
47804
|
+
})(VoiceGroupsDeleteRequest$ ||= {});
|
|
47805
|
+
});
|
|
47806
|
+
|
|
47807
|
+
// src/models/operations/voicegroupsgetbyid.ts
|
|
47808
|
+
var VoiceGroupsGetByIdRequest$inboundSchema, VoiceGroupsGetByIdRequest$outboundSchema, VoiceGroupsGetByIdRequest$;
|
|
47809
|
+
var init_voicegroupsgetbyid = __esm(() => {
|
|
47810
|
+
init_zod();
|
|
47811
|
+
init_primitives();
|
|
47812
|
+
VoiceGroupsGetByIdRequest$inboundSchema = objectType({
|
|
47813
|
+
voice_group_id: numberType().int()
|
|
47814
|
+
}).transform((v2) => {
|
|
47815
|
+
return remap(v2, {
|
|
47816
|
+
voice_group_id: "voiceGroupId"
|
|
47817
|
+
});
|
|
47818
|
+
});
|
|
47819
|
+
VoiceGroupsGetByIdRequest$outboundSchema = objectType({
|
|
47820
|
+
voiceGroupId: numberType().int()
|
|
47821
|
+
}).transform((v2) => {
|
|
47822
|
+
return remap(v2, {
|
|
47823
|
+
voiceGroupId: "voice_group_id"
|
|
47824
|
+
});
|
|
47825
|
+
});
|
|
47826
|
+
((VoiceGroupsGetByIdRequest$) => {
|
|
47827
|
+
VoiceGroupsGetByIdRequest$.inboundSchema = VoiceGroupsGetByIdRequest$inboundSchema;
|
|
47828
|
+
VoiceGroupsGetByIdRequest$.outboundSchema = VoiceGroupsGetByIdRequest$outboundSchema;
|
|
47829
|
+
})(VoiceGroupsGetByIdRequest$ ||= {});
|
|
47830
|
+
});
|
|
47831
|
+
|
|
47832
|
+
// src/models/operations/voicegroupslist.ts
|
|
47833
|
+
var VoiceGroupsListRequest$inboundSchema, VoiceGroupsListRequest$outboundSchema, VoiceGroupsListRequest$;
|
|
47834
|
+
var init_voicegroupslist = __esm(() => {
|
|
47835
|
+
init_zod();
|
|
47836
|
+
init_primitives();
|
|
47837
|
+
init_components();
|
|
47838
|
+
VoiceGroupsListRequest$inboundSchema = objectType({
|
|
47839
|
+
page: nullableType(numberType().int()).optional(),
|
|
47840
|
+
limit: numberType().int().default(25),
|
|
47841
|
+
search_fields: arrayType(VoiceGroupProperties$inboundSchema).optional(),
|
|
47842
|
+
search_field_values: arrayType(stringType()).optional(),
|
|
47843
|
+
order_by: nullableType(VoiceGroupProperties$inboundSchema).optional(),
|
|
47844
|
+
order_by_direction: nullableType(OrderByDirection$inboundSchema).optional(),
|
|
47845
|
+
fields: nullableType(arrayType(VoiceGroupProperties$inboundSchema)).optional(),
|
|
47846
|
+
start_datetime: nullableType(stringType()).optional(),
|
|
47847
|
+
end_datetime: nullableType(stringType()).optional()
|
|
47848
|
+
}).transform((v2) => {
|
|
47849
|
+
return remap(v2, {
|
|
47850
|
+
search_fields: "searchFields",
|
|
47851
|
+
search_field_values: "searchFieldValues",
|
|
47852
|
+
order_by: "orderBy",
|
|
47853
|
+
order_by_direction: "orderByDirection",
|
|
47854
|
+
start_datetime: "startDatetime",
|
|
47855
|
+
end_datetime: "endDatetime"
|
|
47856
|
+
});
|
|
47857
|
+
});
|
|
47858
|
+
VoiceGroupsListRequest$outboundSchema = objectType({
|
|
47859
|
+
page: nullableType(numberType().int()).optional(),
|
|
47860
|
+
limit: numberType().int().default(25),
|
|
47861
|
+
searchFields: arrayType(VoiceGroupProperties$outboundSchema).optional(),
|
|
47862
|
+
searchFieldValues: arrayType(stringType()).optional(),
|
|
47863
|
+
orderBy: nullableType(VoiceGroupProperties$outboundSchema).optional(),
|
|
47864
|
+
orderByDirection: nullableType(OrderByDirection$outboundSchema).optional(),
|
|
47865
|
+
fields: nullableType(arrayType(VoiceGroupProperties$outboundSchema)).optional(),
|
|
47866
|
+
startDatetime: nullableType(stringType()).optional(),
|
|
47867
|
+
endDatetime: nullableType(stringType()).optional()
|
|
47868
|
+
}).transform((v2) => {
|
|
47869
|
+
return remap(v2, {
|
|
47870
|
+
searchFields: "search_fields",
|
|
47871
|
+
searchFieldValues: "search_field_values",
|
|
47872
|
+
orderBy: "order_by",
|
|
47873
|
+
orderByDirection: "order_by_direction",
|
|
47874
|
+
startDatetime: "start_datetime",
|
|
47875
|
+
endDatetime: "end_datetime"
|
|
47876
|
+
});
|
|
47877
|
+
});
|
|
47878
|
+
((VoiceGroupsListRequest$) => {
|
|
47879
|
+
VoiceGroupsListRequest$.inboundSchema = VoiceGroupsListRequest$inboundSchema;
|
|
47880
|
+
VoiceGroupsListRequest$.outboundSchema = VoiceGroupsListRequest$outboundSchema;
|
|
47881
|
+
})(VoiceGroupsListRequest$ ||= {});
|
|
47882
|
+
});
|
|
47883
|
+
|
|
47540
47884
|
// src/models/operations/index.ts
|
|
47541
47885
|
var init_operations = __esm(() => {
|
|
47542
47886
|
init_agentdelete();
|
|
@@ -47630,6 +47974,9 @@ var init_operations = __esm(() => {
|
|
|
47630
47974
|
init_usersgetbyemail();
|
|
47631
47975
|
init_userslist();
|
|
47632
47976
|
init_userssendemail();
|
|
47977
|
+
init_voicegroupsdelete();
|
|
47978
|
+
init_voicegroupsgetbyid();
|
|
47979
|
+
init_voicegroupslist();
|
|
47633
47980
|
});
|
|
47634
47981
|
|
|
47635
47982
|
// src/funcs/agentsDelete.ts
|
|
@@ -55104,7 +55451,7 @@ var init_languageGroupsCreate2 = __esm(() => {
|
|
|
55104
55451
|
name: "language-groups-create",
|
|
55105
55452
|
description: `Create Language Group
|
|
55106
55453
|
|
|
55107
|
-
|
|
55454
|
+
Deprecated alias for \`POST /api/v1/voice_groups/\`.`,
|
|
55108
55455
|
args: args64,
|
|
55109
55456
|
tool: async (client, args65, ctx) => {
|
|
55110
55457
|
const [result, apiCall] = await languageGroupsCreate(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -55214,7 +55561,7 @@ var init_languageGroupsDelete2 = __esm(() => {
|
|
|
55214
55561
|
name: "language-groups-delete",
|
|
55215
55562
|
description: `Delete Language Group
|
|
55216
55563
|
|
|
55217
|
-
|
|
55564
|
+
Deprecated alias for \`DELETE /api/v1/voice_groups/{voice_group_id}\`.`,
|
|
55218
55565
|
args: args65,
|
|
55219
55566
|
tool: async (client, args66, ctx) => {
|
|
55220
55567
|
const [result, apiCall] = await languageGroupsDelete(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -55320,7 +55667,7 @@ var init_languageGroupsGetById2 = __esm(() => {
|
|
|
55320
55667
|
name: "language-groups-get-by-id",
|
|
55321
55668
|
description: `Get Language Group
|
|
55322
55669
|
|
|
55323
|
-
|
|
55670
|
+
Deprecated alias for \`GET /api/v1/voice_groups/{voice_group_id}\`.`,
|
|
55324
55671
|
args: args66,
|
|
55325
55672
|
tool: async (client, args67, ctx) => {
|
|
55326
55673
|
const [result, apiCall] = await languageGroupsGetById(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -55341,7 +55688,7 @@ function languageGroupsLanguageGroupsCreateVoiceSample(client, request, options)
|
|
|
55341
55688
|
return new APIPromise($do74(client, request, options));
|
|
55342
55689
|
}
|
|
55343
55690
|
async function $do74(client, request, options) {
|
|
55344
|
-
const parsed = safeParse(request, (value) =>
|
|
55691
|
+
const parsed = safeParse(request, (value) => LanguageSampleCreateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55345
55692
|
if (!parsed.ok) {
|
|
55346
55693
|
return [parsed, { status: "invalid" }];
|
|
55347
55694
|
}
|
|
@@ -55418,13 +55765,13 @@ var init_languageGroupsLanguageGroupsCreateVoiceSample2 = __esm(() => {
|
|
|
55418
55765
|
init_components();
|
|
55419
55766
|
init_tools();
|
|
55420
55767
|
args67 = {
|
|
55421
|
-
request:
|
|
55768
|
+
request: LanguageSampleCreateRequest$inboundSchema
|
|
55422
55769
|
};
|
|
55423
55770
|
tool$languageGroupsLanguageGroupsCreateVoiceSample = {
|
|
55424
55771
|
name: "language-groups-language-groups-create-voice-sample",
|
|
55425
55772
|
description: `Create Voice Sample
|
|
55426
55773
|
|
|
55427
|
-
|
|
55774
|
+
Deprecated alias for \`POST /api/v1/voice_groups/voices/sample\`.`,
|
|
55428
55775
|
args: args67,
|
|
55429
55776
|
tool: async (client, args68, ctx) => {
|
|
55430
55777
|
const [result, apiCall] = await languageGroupsLanguageGroupsCreateVoiceSample(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -55539,7 +55886,7 @@ var init_languageGroupsList2 = __esm(() => {
|
|
|
55539
55886
|
name: "language-groups-list",
|
|
55540
55887
|
description: `List Language Groups
|
|
55541
55888
|
|
|
55542
|
-
|
|
55889
|
+
Deprecated alias for \`GET /api/v1/voice_groups/\`.`,
|
|
55543
55890
|
args: args68,
|
|
55544
55891
|
tool: async (client, args69, ctx) => {
|
|
55545
55892
|
const [result, apiCall] = await languageGroupsList(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -55642,7 +55989,7 @@ var init_languageGroupsUpdate2 = __esm(() => {
|
|
|
55642
55989
|
name: "language-groups-update",
|
|
55643
55990
|
description: `Update Language Group
|
|
55644
55991
|
|
|
55645
|
-
|
|
55992
|
+
Deprecated alias for \`PUT /api/v1/voice_groups/\`.`,
|
|
55646
55993
|
args: args69,
|
|
55647
55994
|
tool: async (client, args70, ctx) => {
|
|
55648
55995
|
const [result, apiCall] = await languageGroupsUpdate(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -62966,11 +63313,658 @@ Send a welcome email to a user.`,
|
|
|
62966
63313
|
};
|
|
62967
63314
|
});
|
|
62968
63315
|
|
|
63316
|
+
// src/funcs/voiceGroupsCreate.ts
|
|
63317
|
+
function voiceGroupsCreate(client, request, options) {
|
|
63318
|
+
return new APIPromise($do146(client, request, options));
|
|
63319
|
+
}
|
|
63320
|
+
async function $do146(client, request, options) {
|
|
63321
|
+
const parsed = safeParse(request, (value) => VoiceGroupCreateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63322
|
+
if (!parsed.ok) {
|
|
63323
|
+
return [parsed, { status: "invalid" }];
|
|
63324
|
+
}
|
|
63325
|
+
const payload = parsed.value;
|
|
63326
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
63327
|
+
const path = pathToFunc("/api/v1/voice_groups/")();
|
|
63328
|
+
const headers = new Headers(compactMap({
|
|
63329
|
+
"Content-Type": "application/json",
|
|
63330
|
+
Accept: "application/json"
|
|
63331
|
+
}));
|
|
63332
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63333
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63334
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63335
|
+
const context = {
|
|
63336
|
+
options: client._options,
|
|
63337
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63338
|
+
operationID: "voice_groups_create",
|
|
63339
|
+
oAuth2Scopes: null,
|
|
63340
|
+
resolvedSecurity: requestSecurity,
|
|
63341
|
+
securitySource: client._options.apiKeyHeader,
|
|
63342
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63343
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63344
|
+
};
|
|
63345
|
+
const requestRes = client._createRequest(context, {
|
|
63346
|
+
security: requestSecurity,
|
|
63347
|
+
method: "POST",
|
|
63348
|
+
baseURL: options?.serverURL,
|
|
63349
|
+
path,
|
|
63350
|
+
headers,
|
|
63351
|
+
body,
|
|
63352
|
+
userAgent: client._options.userAgent,
|
|
63353
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63354
|
+
}, options);
|
|
63355
|
+
if (!requestRes.ok) {
|
|
63356
|
+
return [requestRes, { status: "invalid" }];
|
|
63357
|
+
}
|
|
63358
|
+
const req = requestRes.value;
|
|
63359
|
+
const doResult = await client._do(req, {
|
|
63360
|
+
context,
|
|
63361
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63362
|
+
retryConfig: context.retryConfig,
|
|
63363
|
+
retryCodes: context.retryCodes
|
|
63364
|
+
});
|
|
63365
|
+
if (!doResult.ok) {
|
|
63366
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63367
|
+
}
|
|
63368
|
+
const response = doResult.value;
|
|
63369
|
+
const responseFields = {
|
|
63370
|
+
HttpMeta: { Response: response, Request: req }
|
|
63371
|
+
};
|
|
63372
|
+
const [result] = await match(json(200, VoiceGroupResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63373
|
+
if (!result.ok) {
|
|
63374
|
+
return [result, { status: "complete", request: req, response }];
|
|
63375
|
+
}
|
|
63376
|
+
return [result, { status: "complete", request: req, response }];
|
|
63377
|
+
}
|
|
63378
|
+
var init_voiceGroupsCreate = __esm(() => {
|
|
63379
|
+
init_encodings();
|
|
63380
|
+
init_matchers();
|
|
63381
|
+
init_primitives();
|
|
63382
|
+
init_schemas();
|
|
63383
|
+
init_security();
|
|
63384
|
+
init_url();
|
|
63385
|
+
init_components();
|
|
63386
|
+
init_errors2();
|
|
63387
|
+
init_async();
|
|
63388
|
+
});
|
|
63389
|
+
|
|
63390
|
+
// src/mcp-server/tools/voiceGroupsCreate.ts
|
|
63391
|
+
var args130, tool$voiceGroupsCreate;
|
|
63392
|
+
var init_voiceGroupsCreate2 = __esm(() => {
|
|
63393
|
+
init_voiceGroupsCreate();
|
|
63394
|
+
init_components();
|
|
63395
|
+
init_tools();
|
|
63396
|
+
args130 = {
|
|
63397
|
+
request: VoiceGroupCreateRequest$inboundSchema
|
|
63398
|
+
};
|
|
63399
|
+
tool$voiceGroupsCreate = {
|
|
63400
|
+
name: "voice-groups-create",
|
|
63401
|
+
description: `Create Voice Group
|
|
63402
|
+
|
|
63403
|
+
Create a new voice group.`,
|
|
63404
|
+
args: args130,
|
|
63405
|
+
tool: async (client, args131, ctx) => {
|
|
63406
|
+
const [result, apiCall] = await voiceGroupsCreate(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63407
|
+
if (!result.ok) {
|
|
63408
|
+
return {
|
|
63409
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63410
|
+
isError: true
|
|
63411
|
+
};
|
|
63412
|
+
}
|
|
63413
|
+
const value = result.value;
|
|
63414
|
+
return formatResult(value, apiCall);
|
|
63415
|
+
}
|
|
63416
|
+
};
|
|
63417
|
+
});
|
|
63418
|
+
|
|
63419
|
+
// src/funcs/voiceGroupsDelete.ts
|
|
63420
|
+
function voiceGroupsDelete(client, request, options) {
|
|
63421
|
+
return new APIPromise($do147(client, request, options));
|
|
63422
|
+
}
|
|
63423
|
+
async function $do147(client, request, options) {
|
|
63424
|
+
const parsed = safeParse(request, (value) => VoiceGroupsDeleteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63425
|
+
if (!parsed.ok) {
|
|
63426
|
+
return [parsed, { status: "invalid" }];
|
|
63427
|
+
}
|
|
63428
|
+
const payload = parsed.value;
|
|
63429
|
+
const body = null;
|
|
63430
|
+
const pathParams = {
|
|
63431
|
+
voice_group_id: encodeSimple("voice_group_id", payload.voice_group_id, {
|
|
63432
|
+
explode: false,
|
|
63433
|
+
charEncoding: "percent"
|
|
63434
|
+
})
|
|
63435
|
+
};
|
|
63436
|
+
const path = pathToFunc("/api/v1/voice_groups/{voice_group_id}")(pathParams);
|
|
63437
|
+
const query = encodeFormQuery({
|
|
63438
|
+
reason: payload.reason
|
|
63439
|
+
});
|
|
63440
|
+
const headers = new Headers(compactMap({
|
|
63441
|
+
Accept: "application/json"
|
|
63442
|
+
}));
|
|
63443
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63444
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63445
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63446
|
+
const context = {
|
|
63447
|
+
options: client._options,
|
|
63448
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63449
|
+
operationID: "voice_groups_delete",
|
|
63450
|
+
oAuth2Scopes: null,
|
|
63451
|
+
resolvedSecurity: requestSecurity,
|
|
63452
|
+
securitySource: client._options.apiKeyHeader,
|
|
63453
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63454
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63455
|
+
};
|
|
63456
|
+
const requestRes = client._createRequest(context, {
|
|
63457
|
+
security: requestSecurity,
|
|
63458
|
+
method: "DELETE",
|
|
63459
|
+
baseURL: options?.serverURL,
|
|
63460
|
+
path,
|
|
63461
|
+
headers,
|
|
63462
|
+
query,
|
|
63463
|
+
body,
|
|
63464
|
+
userAgent: client._options.userAgent,
|
|
63465
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63466
|
+
}, options);
|
|
63467
|
+
if (!requestRes.ok) {
|
|
63468
|
+
return [requestRes, { status: "invalid" }];
|
|
63469
|
+
}
|
|
63470
|
+
const req = requestRes.value;
|
|
63471
|
+
const doResult = await client._do(req, {
|
|
63472
|
+
context,
|
|
63473
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63474
|
+
retryConfig: context.retryConfig,
|
|
63475
|
+
retryCodes: context.retryCodes
|
|
63476
|
+
});
|
|
63477
|
+
if (!doResult.ok) {
|
|
63478
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63479
|
+
}
|
|
63480
|
+
const response = doResult.value;
|
|
63481
|
+
const responseFields = {
|
|
63482
|
+
HttpMeta: { Response: response, Request: req }
|
|
63483
|
+
};
|
|
63484
|
+
const [result] = await match(json(200, anyType()), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63485
|
+
if (!result.ok) {
|
|
63486
|
+
return [result, { status: "complete", request: req, response }];
|
|
63487
|
+
}
|
|
63488
|
+
return [result, { status: "complete", request: req, response }];
|
|
63489
|
+
}
|
|
63490
|
+
var init_voiceGroupsDelete = __esm(() => {
|
|
63491
|
+
init_zod();
|
|
63492
|
+
init_encodings();
|
|
63493
|
+
init_matchers();
|
|
63494
|
+
init_primitives();
|
|
63495
|
+
init_schemas();
|
|
63496
|
+
init_security();
|
|
63497
|
+
init_url();
|
|
63498
|
+
init_errors2();
|
|
63499
|
+
init_operations();
|
|
63500
|
+
init_async();
|
|
63501
|
+
});
|
|
63502
|
+
|
|
63503
|
+
// src/mcp-server/tools/voiceGroupsDelete.ts
|
|
63504
|
+
var args131, tool$voiceGroupsDelete;
|
|
63505
|
+
var init_voiceGroupsDelete2 = __esm(() => {
|
|
63506
|
+
init_voiceGroupsDelete();
|
|
63507
|
+
init_operations();
|
|
63508
|
+
init_tools();
|
|
63509
|
+
args131 = {
|
|
63510
|
+
request: VoiceGroupsDeleteRequest$inboundSchema
|
|
63511
|
+
};
|
|
63512
|
+
tool$voiceGroupsDelete = {
|
|
63513
|
+
name: "voice-groups-delete",
|
|
63514
|
+
description: `Delete Voice Group
|
|
63515
|
+
|
|
63516
|
+
Delete a voice group.`,
|
|
63517
|
+
args: args131,
|
|
63518
|
+
tool: async (client, args132, ctx) => {
|
|
63519
|
+
const [result, apiCall] = await voiceGroupsDelete(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63520
|
+
if (!result.ok) {
|
|
63521
|
+
return {
|
|
63522
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63523
|
+
isError: true
|
|
63524
|
+
};
|
|
63525
|
+
}
|
|
63526
|
+
const value = result.value;
|
|
63527
|
+
return formatResult(value, apiCall);
|
|
63528
|
+
}
|
|
63529
|
+
};
|
|
63530
|
+
});
|
|
63531
|
+
|
|
63532
|
+
// src/funcs/voiceGroupsGetById.ts
|
|
63533
|
+
function voiceGroupsGetById(client, request, options) {
|
|
63534
|
+
return new APIPromise($do148(client, request, options));
|
|
63535
|
+
}
|
|
63536
|
+
async function $do148(client, request, options) {
|
|
63537
|
+
const parsed = safeParse(request, (value) => VoiceGroupsGetByIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63538
|
+
if (!parsed.ok) {
|
|
63539
|
+
return [parsed, { status: "invalid" }];
|
|
63540
|
+
}
|
|
63541
|
+
const payload = parsed.value;
|
|
63542
|
+
const body = null;
|
|
63543
|
+
const pathParams = {
|
|
63544
|
+
voice_group_id: encodeSimple("voice_group_id", payload.voice_group_id, {
|
|
63545
|
+
explode: false,
|
|
63546
|
+
charEncoding: "percent"
|
|
63547
|
+
})
|
|
63548
|
+
};
|
|
63549
|
+
const path = pathToFunc("/api/v1/voice_groups/{voice_group_id}")(pathParams);
|
|
63550
|
+
const headers = new Headers(compactMap({
|
|
63551
|
+
Accept: "application/json"
|
|
63552
|
+
}));
|
|
63553
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63554
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63555
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63556
|
+
const context = {
|
|
63557
|
+
options: client._options,
|
|
63558
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63559
|
+
operationID: "voice_groups_get_by_id",
|
|
63560
|
+
oAuth2Scopes: null,
|
|
63561
|
+
resolvedSecurity: requestSecurity,
|
|
63562
|
+
securitySource: client._options.apiKeyHeader,
|
|
63563
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63564
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63565
|
+
};
|
|
63566
|
+
const requestRes = client._createRequest(context, {
|
|
63567
|
+
security: requestSecurity,
|
|
63568
|
+
method: "GET",
|
|
63569
|
+
baseURL: options?.serverURL,
|
|
63570
|
+
path,
|
|
63571
|
+
headers,
|
|
63572
|
+
body,
|
|
63573
|
+
userAgent: client._options.userAgent,
|
|
63574
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63575
|
+
}, options);
|
|
63576
|
+
if (!requestRes.ok) {
|
|
63577
|
+
return [requestRes, { status: "invalid" }];
|
|
63578
|
+
}
|
|
63579
|
+
const req = requestRes.value;
|
|
63580
|
+
const doResult = await client._do(req, {
|
|
63581
|
+
context,
|
|
63582
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63583
|
+
retryConfig: context.retryConfig,
|
|
63584
|
+
retryCodes: context.retryCodes
|
|
63585
|
+
});
|
|
63586
|
+
if (!doResult.ok) {
|
|
63587
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63588
|
+
}
|
|
63589
|
+
const response = doResult.value;
|
|
63590
|
+
const responseFields = {
|
|
63591
|
+
HttpMeta: { Response: response, Request: req }
|
|
63592
|
+
};
|
|
63593
|
+
const [result] = await match(json(200, VoiceGroupResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63594
|
+
if (!result.ok) {
|
|
63595
|
+
return [result, { status: "complete", request: req, response }];
|
|
63596
|
+
}
|
|
63597
|
+
return [result, { status: "complete", request: req, response }];
|
|
63598
|
+
}
|
|
63599
|
+
var init_voiceGroupsGetById = __esm(() => {
|
|
63600
|
+
init_encodings();
|
|
63601
|
+
init_matchers();
|
|
63602
|
+
init_primitives();
|
|
63603
|
+
init_schemas();
|
|
63604
|
+
init_security();
|
|
63605
|
+
init_url();
|
|
63606
|
+
init_components();
|
|
63607
|
+
init_errors2();
|
|
63608
|
+
init_operations();
|
|
63609
|
+
init_async();
|
|
63610
|
+
});
|
|
63611
|
+
|
|
63612
|
+
// src/mcp-server/tools/voiceGroupsGetById.ts
|
|
63613
|
+
var args132, tool$voiceGroupsGetById;
|
|
63614
|
+
var init_voiceGroupsGetById2 = __esm(() => {
|
|
63615
|
+
init_voiceGroupsGetById();
|
|
63616
|
+
init_operations();
|
|
63617
|
+
init_tools();
|
|
63618
|
+
args132 = {
|
|
63619
|
+
request: VoiceGroupsGetByIdRequest$inboundSchema
|
|
63620
|
+
};
|
|
63621
|
+
tool$voiceGroupsGetById = {
|
|
63622
|
+
name: "voice-groups-get-by-id",
|
|
63623
|
+
description: `Get Voice Group
|
|
63624
|
+
|
|
63625
|
+
Fetch a given voice group.`,
|
|
63626
|
+
args: args132,
|
|
63627
|
+
tool: async (client, args133, ctx) => {
|
|
63628
|
+
const [result, apiCall] = await voiceGroupsGetById(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63629
|
+
if (!result.ok) {
|
|
63630
|
+
return {
|
|
63631
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63632
|
+
isError: true
|
|
63633
|
+
};
|
|
63634
|
+
}
|
|
63635
|
+
const value = result.value;
|
|
63636
|
+
return formatResult(value, apiCall);
|
|
63637
|
+
}
|
|
63638
|
+
};
|
|
63639
|
+
});
|
|
63640
|
+
|
|
63641
|
+
// src/funcs/voiceGroupsList.ts
|
|
63642
|
+
function voiceGroupsList(client, request, options) {
|
|
63643
|
+
return new APIPromise($do149(client, request, options));
|
|
63644
|
+
}
|
|
63645
|
+
async function $do149(client, request, options) {
|
|
63646
|
+
const parsed = safeParse(request, (value) => VoiceGroupsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63647
|
+
if (!parsed.ok) {
|
|
63648
|
+
return [parsed, { status: "invalid" }];
|
|
63649
|
+
}
|
|
63650
|
+
const payload = parsed.value;
|
|
63651
|
+
const body = null;
|
|
63652
|
+
const path = pathToFunc("/api/v1/voice_groups/")();
|
|
63653
|
+
const query = encodeFormQuery({
|
|
63654
|
+
end_datetime: payload.end_datetime,
|
|
63655
|
+
fields: payload.fields,
|
|
63656
|
+
limit: payload.limit,
|
|
63657
|
+
order_by: payload.order_by,
|
|
63658
|
+
order_by_direction: payload.order_by_direction,
|
|
63659
|
+
page: payload.page,
|
|
63660
|
+
search_field_values: payload.search_field_values,
|
|
63661
|
+
search_fields: payload.search_fields,
|
|
63662
|
+
start_datetime: payload.start_datetime
|
|
63663
|
+
});
|
|
63664
|
+
const headers = new Headers(compactMap({
|
|
63665
|
+
Accept: "application/json"
|
|
63666
|
+
}));
|
|
63667
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63668
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63669
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63670
|
+
const context = {
|
|
63671
|
+
options: client._options,
|
|
63672
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63673
|
+
operationID: "voice_groups_list",
|
|
63674
|
+
oAuth2Scopes: null,
|
|
63675
|
+
resolvedSecurity: requestSecurity,
|
|
63676
|
+
securitySource: client._options.apiKeyHeader,
|
|
63677
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63678
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63679
|
+
};
|
|
63680
|
+
const requestRes = client._createRequest(context, {
|
|
63681
|
+
security: requestSecurity,
|
|
63682
|
+
method: "GET",
|
|
63683
|
+
baseURL: options?.serverURL,
|
|
63684
|
+
path,
|
|
63685
|
+
headers,
|
|
63686
|
+
query,
|
|
63687
|
+
body,
|
|
63688
|
+
userAgent: client._options.userAgent,
|
|
63689
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63690
|
+
}, options);
|
|
63691
|
+
if (!requestRes.ok) {
|
|
63692
|
+
return [requestRes, { status: "invalid" }];
|
|
63693
|
+
}
|
|
63694
|
+
const req = requestRes.value;
|
|
63695
|
+
const doResult = await client._do(req, {
|
|
63696
|
+
context,
|
|
63697
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63698
|
+
retryConfig: context.retryConfig,
|
|
63699
|
+
retryCodes: context.retryCodes
|
|
63700
|
+
});
|
|
63701
|
+
if (!doResult.ok) {
|
|
63702
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63703
|
+
}
|
|
63704
|
+
const response = doResult.value;
|
|
63705
|
+
const responseFields = {
|
|
63706
|
+
HttpMeta: { Response: response, Request: req }
|
|
63707
|
+
};
|
|
63708
|
+
const [result] = await match(json(200, ListResponseVoiceGroupResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63709
|
+
if (!result.ok) {
|
|
63710
|
+
return [result, { status: "complete", request: req, response }];
|
|
63711
|
+
}
|
|
63712
|
+
return [result, { status: "complete", request: req, response }];
|
|
63713
|
+
}
|
|
63714
|
+
var init_voiceGroupsList = __esm(() => {
|
|
63715
|
+
init_encodings();
|
|
63716
|
+
init_matchers();
|
|
63717
|
+
init_primitives();
|
|
63718
|
+
init_schemas();
|
|
63719
|
+
init_security();
|
|
63720
|
+
init_url();
|
|
63721
|
+
init_components();
|
|
63722
|
+
init_errors2();
|
|
63723
|
+
init_operations();
|
|
63724
|
+
init_async();
|
|
63725
|
+
});
|
|
63726
|
+
|
|
63727
|
+
// src/mcp-server/tools/voiceGroupsList.ts
|
|
63728
|
+
var args133, tool$voiceGroupsList;
|
|
63729
|
+
var init_voiceGroupsList2 = __esm(() => {
|
|
63730
|
+
init_voiceGroupsList();
|
|
63731
|
+
init_operations();
|
|
63732
|
+
init_tools();
|
|
63733
|
+
args133 = {
|
|
63734
|
+
request: VoiceGroupsListRequest$inboundSchema
|
|
63735
|
+
};
|
|
63736
|
+
tool$voiceGroupsList = {
|
|
63737
|
+
name: "voice-groups-list",
|
|
63738
|
+
description: `List Voice Groups
|
|
63739
|
+
|
|
63740
|
+
Fetch voice groups.`,
|
|
63741
|
+
args: args133,
|
|
63742
|
+
tool: async (client, args134, ctx) => {
|
|
63743
|
+
const [result, apiCall] = await voiceGroupsList(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63744
|
+
if (!result.ok) {
|
|
63745
|
+
return {
|
|
63746
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63747
|
+
isError: true
|
|
63748
|
+
};
|
|
63749
|
+
}
|
|
63750
|
+
const value = result.value;
|
|
63751
|
+
return formatResult(value, apiCall);
|
|
63752
|
+
}
|
|
63753
|
+
};
|
|
63754
|
+
});
|
|
63755
|
+
|
|
63756
|
+
// src/funcs/voiceGroupsUpdate.ts
|
|
63757
|
+
function voiceGroupsUpdate(client, request, options) {
|
|
63758
|
+
return new APIPromise($do150(client, request, options));
|
|
63759
|
+
}
|
|
63760
|
+
async function $do150(client, request, options) {
|
|
63761
|
+
const parsed = safeParse(request, (value) => VoiceGroupUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63762
|
+
if (!parsed.ok) {
|
|
63763
|
+
return [parsed, { status: "invalid" }];
|
|
63764
|
+
}
|
|
63765
|
+
const payload = parsed.value;
|
|
63766
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
63767
|
+
const path = pathToFunc("/api/v1/voice_groups/")();
|
|
63768
|
+
const headers = new Headers(compactMap({
|
|
63769
|
+
"Content-Type": "application/json",
|
|
63770
|
+
Accept: "application/json"
|
|
63771
|
+
}));
|
|
63772
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63773
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63774
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63775
|
+
const context = {
|
|
63776
|
+
options: client._options,
|
|
63777
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63778
|
+
operationID: "voice_groups_update",
|
|
63779
|
+
oAuth2Scopes: null,
|
|
63780
|
+
resolvedSecurity: requestSecurity,
|
|
63781
|
+
securitySource: client._options.apiKeyHeader,
|
|
63782
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63783
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63784
|
+
};
|
|
63785
|
+
const requestRes = client._createRequest(context, {
|
|
63786
|
+
security: requestSecurity,
|
|
63787
|
+
method: "PUT",
|
|
63788
|
+
baseURL: options?.serverURL,
|
|
63789
|
+
path,
|
|
63790
|
+
headers,
|
|
63791
|
+
body,
|
|
63792
|
+
userAgent: client._options.userAgent,
|
|
63793
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63794
|
+
}, options);
|
|
63795
|
+
if (!requestRes.ok) {
|
|
63796
|
+
return [requestRes, { status: "invalid" }];
|
|
63797
|
+
}
|
|
63798
|
+
const req = requestRes.value;
|
|
63799
|
+
const doResult = await client._do(req, {
|
|
63800
|
+
context,
|
|
63801
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63802
|
+
retryConfig: context.retryConfig,
|
|
63803
|
+
retryCodes: context.retryCodes
|
|
63804
|
+
});
|
|
63805
|
+
if (!doResult.ok) {
|
|
63806
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63807
|
+
}
|
|
63808
|
+
const response = doResult.value;
|
|
63809
|
+
const responseFields = {
|
|
63810
|
+
HttpMeta: { Response: response, Request: req }
|
|
63811
|
+
};
|
|
63812
|
+
const [result] = await match(json(200, VoiceGroupResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63813
|
+
if (!result.ok) {
|
|
63814
|
+
return [result, { status: "complete", request: req, response }];
|
|
63815
|
+
}
|
|
63816
|
+
return [result, { status: "complete", request: req, response }];
|
|
63817
|
+
}
|
|
63818
|
+
var init_voiceGroupsUpdate = __esm(() => {
|
|
63819
|
+
init_encodings();
|
|
63820
|
+
init_matchers();
|
|
63821
|
+
init_primitives();
|
|
63822
|
+
init_schemas();
|
|
63823
|
+
init_security();
|
|
63824
|
+
init_url();
|
|
63825
|
+
init_components();
|
|
63826
|
+
init_errors2();
|
|
63827
|
+
init_async();
|
|
63828
|
+
});
|
|
63829
|
+
|
|
63830
|
+
// src/mcp-server/tools/voiceGroupsUpdate.ts
|
|
63831
|
+
var args134, tool$voiceGroupsUpdate;
|
|
63832
|
+
var init_voiceGroupsUpdate2 = __esm(() => {
|
|
63833
|
+
init_voiceGroupsUpdate();
|
|
63834
|
+
init_components();
|
|
63835
|
+
init_tools();
|
|
63836
|
+
args134 = {
|
|
63837
|
+
request: VoiceGroupUpdateRequest$inboundSchema
|
|
63838
|
+
};
|
|
63839
|
+
tool$voiceGroupsUpdate = {
|
|
63840
|
+
name: "voice-groups-update",
|
|
63841
|
+
description: `Update Voice Group
|
|
63842
|
+
|
|
63843
|
+
Update an existing voice group`,
|
|
63844
|
+
args: args134,
|
|
63845
|
+
tool: async (client, args135, ctx) => {
|
|
63846
|
+
const [result, apiCall] = await voiceGroupsUpdate(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63847
|
+
if (!result.ok) {
|
|
63848
|
+
return {
|
|
63849
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63850
|
+
isError: true
|
|
63851
|
+
};
|
|
63852
|
+
}
|
|
63853
|
+
const value = result.value;
|
|
63854
|
+
return formatResult(value, apiCall);
|
|
63855
|
+
}
|
|
63856
|
+
};
|
|
63857
|
+
});
|
|
63858
|
+
|
|
63859
|
+
// src/funcs/voiceGroupsVoiceGroupsCreateVoiceSample.ts
|
|
63860
|
+
function voiceGroupsVoiceGroupsCreateVoiceSample(client, request, options) {
|
|
63861
|
+
return new APIPromise($do151(client, request, options));
|
|
63862
|
+
}
|
|
63863
|
+
async function $do151(client, request, options) {
|
|
63864
|
+
const parsed = safeParse(request, (value) => VoiceSampleCreateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63865
|
+
if (!parsed.ok) {
|
|
63866
|
+
return [parsed, { status: "invalid" }];
|
|
63867
|
+
}
|
|
63868
|
+
const payload = parsed.value;
|
|
63869
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
63870
|
+
const path = pathToFunc("/api/v1/voice_groups/voices/sample")();
|
|
63871
|
+
const headers = new Headers(compactMap({
|
|
63872
|
+
"Content-Type": "application/json",
|
|
63873
|
+
Accept: "application/octet-stream"
|
|
63874
|
+
}));
|
|
63875
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
63876
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
63877
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63878
|
+
const context = {
|
|
63879
|
+
options: client._options,
|
|
63880
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63881
|
+
operationID: "voice_groups_create_voice_sample",
|
|
63882
|
+
oAuth2Scopes: null,
|
|
63883
|
+
resolvedSecurity: requestSecurity,
|
|
63884
|
+
securitySource: client._options.apiKeyHeader,
|
|
63885
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
63886
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
63887
|
+
};
|
|
63888
|
+
const requestRes = client._createRequest(context, {
|
|
63889
|
+
security: requestSecurity,
|
|
63890
|
+
method: "POST",
|
|
63891
|
+
baseURL: options?.serverURL,
|
|
63892
|
+
path,
|
|
63893
|
+
headers,
|
|
63894
|
+
body,
|
|
63895
|
+
userAgent: client._options.userAgent,
|
|
63896
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63897
|
+
}, options);
|
|
63898
|
+
if (!requestRes.ok) {
|
|
63899
|
+
return [requestRes, { status: "invalid" }];
|
|
63900
|
+
}
|
|
63901
|
+
const req = requestRes.value;
|
|
63902
|
+
const doResult = await client._do(req, {
|
|
63903
|
+
context,
|
|
63904
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
63905
|
+
retryConfig: context.retryConfig,
|
|
63906
|
+
retryCodes: context.retryCodes
|
|
63907
|
+
});
|
|
63908
|
+
if (!doResult.ok) {
|
|
63909
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63910
|
+
}
|
|
63911
|
+
const response = doResult.value;
|
|
63912
|
+
const responseFields = {
|
|
63913
|
+
HttpMeta: { Response: response, Request: req }
|
|
63914
|
+
};
|
|
63915
|
+
const [result] = await match(stream(200, instanceOfType(ReadableStream)), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
63916
|
+
if (!result.ok) {
|
|
63917
|
+
return [result, { status: "complete", request: req, response }];
|
|
63918
|
+
}
|
|
63919
|
+
return [result, { status: "complete", request: req, response }];
|
|
63920
|
+
}
|
|
63921
|
+
var init_voiceGroupsVoiceGroupsCreateVoiceSample = __esm(() => {
|
|
63922
|
+
init_zod();
|
|
63923
|
+
init_encodings();
|
|
63924
|
+
init_matchers();
|
|
63925
|
+
init_primitives();
|
|
63926
|
+
init_schemas();
|
|
63927
|
+
init_security();
|
|
63928
|
+
init_url();
|
|
63929
|
+
init_components();
|
|
63930
|
+
init_errors2();
|
|
63931
|
+
init_async();
|
|
63932
|
+
});
|
|
63933
|
+
|
|
63934
|
+
// src/mcp-server/tools/voiceGroupsVoiceGroupsCreateVoiceSample.ts
|
|
63935
|
+
var args135, tool$voiceGroupsVoiceGroupsCreateVoiceSample;
|
|
63936
|
+
var init_voiceGroupsVoiceGroupsCreateVoiceSample2 = __esm(() => {
|
|
63937
|
+
init_voiceGroupsVoiceGroupsCreateVoiceSample();
|
|
63938
|
+
init_components();
|
|
63939
|
+
init_tools();
|
|
63940
|
+
args135 = {
|
|
63941
|
+
request: VoiceSampleCreateRequest$inboundSchema
|
|
63942
|
+
};
|
|
63943
|
+
tool$voiceGroupsVoiceGroupsCreateVoiceSample = {
|
|
63944
|
+
name: "voice-groups-voice-groups-create-voice-sample",
|
|
63945
|
+
description: `Create Voice Sample
|
|
63946
|
+
|
|
63947
|
+
Generate voice sample.`,
|
|
63948
|
+
args: args135,
|
|
63949
|
+
tool: async (client, args136, ctx) => {
|
|
63950
|
+
const [result, apiCall] = await voiceGroupsVoiceGroupsCreateVoiceSample(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63951
|
+
if (!result.ok) {
|
|
63952
|
+
return {
|
|
63953
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63954
|
+
isError: true
|
|
63955
|
+
};
|
|
63956
|
+
}
|
|
63957
|
+
const value = result.value;
|
|
63958
|
+
return formatResult(value, apiCall);
|
|
63959
|
+
}
|
|
63960
|
+
};
|
|
63961
|
+
});
|
|
63962
|
+
|
|
62969
63963
|
// src/mcp-server/server.ts
|
|
62970
63964
|
function createMCPServer(deps) {
|
|
62971
63965
|
const server = new McpServer({
|
|
62972
63966
|
name: "SyllableSDK",
|
|
62973
|
-
version: "1.0.4-rc.
|
|
63967
|
+
version: "1.0.4-rc.2"
|
|
62974
63968
|
});
|
|
62975
63969
|
const client = new SyllableSDKCore({
|
|
62976
63970
|
apiKeyHeader: deps.apiKeyHeader,
|
|
@@ -63067,6 +64061,12 @@ function createMCPServer(deps) {
|
|
|
63067
64061
|
tool(tool$languageGroupsGetById);
|
|
63068
64062
|
tool(tool$languageGroupsDelete);
|
|
63069
64063
|
tool(tool$languageGroupsLanguageGroupsCreateVoiceSample);
|
|
64064
|
+
tool(tool$voiceGroupsList);
|
|
64065
|
+
tool(tool$voiceGroupsCreate);
|
|
64066
|
+
tool(tool$voiceGroupsUpdate);
|
|
64067
|
+
tool(tool$voiceGroupsGetById);
|
|
64068
|
+
tool(tool$voiceGroupsDelete);
|
|
64069
|
+
tool(tool$voiceGroupsVoiceGroupsCreateVoiceSample);
|
|
63070
64070
|
tool(tool$takeoutsCreate);
|
|
63071
64071
|
tool(tool$takeoutsTakeoutsGetByJobId);
|
|
63072
64072
|
tool(tool$takeoutsTakeoutsGetFile);
|
|
@@ -63281,6 +64281,12 @@ var init_server2 = __esm(() => {
|
|
|
63281
64281
|
init_usersUsersDeleteAccount2();
|
|
63282
64282
|
init_usersUsersGetByEmail2();
|
|
63283
64283
|
init_usersUsersSendEmail2();
|
|
64284
|
+
init_voiceGroupsCreate2();
|
|
64285
|
+
init_voiceGroupsDelete2();
|
|
64286
|
+
init_voiceGroupsGetById2();
|
|
64287
|
+
init_voiceGroupsList2();
|
|
64288
|
+
init_voiceGroupsUpdate2();
|
|
64289
|
+
init_voiceGroupsVoiceGroupsCreateVoiceSample2();
|
|
63284
64290
|
});
|
|
63285
64291
|
|
|
63286
64292
|
// src/mcp-server/cli/start/impl.ts
|
|
@@ -64476,7 +65482,7 @@ var routes = ln({
|
|
|
64476
65482
|
var app = _e(routes, {
|
|
64477
65483
|
name: "mcp",
|
|
64478
65484
|
versionInfo: {
|
|
64479
|
-
currentVersion: "1.0.4-rc.
|
|
65485
|
+
currentVersion: "1.0.4-rc.2"
|
|
64480
65486
|
}
|
|
64481
65487
|
});
|
|
64482
65488
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -64484,5 +65490,5 @@ export {
|
|
|
64484
65490
|
app
|
|
64485
65491
|
};
|
|
64486
65492
|
|
|
64487
|
-
//# debugId=
|
|
65493
|
+
//# debugId=9B9D161D2382F4F964756E2164756E21
|
|
64488
65494
|
//# sourceMappingURL=mcp-server.js.map
|