syllable-sdk 1.0.74-rc.5 → 1.0.74-rc.7
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 +2 -1
- package/bin/mcp-server.js +315 -9
- package/bin/mcp-server.js.map +20 -14
- package/funcs/outboundBatchesUpload.d.ts +12 -1
- package/funcs/outboundBatchesUpload.d.ts.map +1 -1
- package/funcs/outboundBatchesUpload.js +16 -2
- package/funcs/outboundBatchesUpload.js.map +1 -1
- 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.js +1 -1
- package/mcp-server/tools/outboundBatchesUpload.d.ts.map +1 -1
- package/mcp-server/tools/outboundBatchesUpload.js +10 -1
- package/mcp-server/tools/outboundBatchesUpload.js.map +1 -1
- package/models/components/agentvoicedisplayname.d.ts +18 -0
- package/models/components/agentvoicedisplayname.d.ts.map +1 -1
- package/models/components/agentvoicedisplayname.js +18 -0
- package/models/components/agentvoicedisplayname.js.map +1 -1
- package/models/components/agentvoicemodel.d.ts +1 -0
- package/models/components/agentvoicemodel.d.ts.map +1 -1
- package/models/components/agentvoicemodel.js +1 -0
- package/models/components/agentvoicemodel.js.map +1 -1
- package/models/components/agentvoicevarname.d.ts +18 -0
- package/models/components/agentvoicevarname.d.ts.map +1 -1
- package/models/components/agentvoicevarname.js +18 -0
- package/models/components/agentvoicevarname.js.map +1 -1
- package/models/components/batchfilecheckresult.d.ts +76 -0
- package/models/components/batchfilecheckresult.d.ts.map +1 -0
- package/models/components/batchfilecheckresult.js +104 -0
- package/models/components/batchfilecheckresult.js.map +1 -0
- package/models/components/batchfileproblem.d.ts +21 -0
- package/models/components/batchfileproblem.d.ts.map +1 -0
- package/models/components/batchfileproblem.js +55 -0
- package/models/components/batchfileproblem.js.map +1 -0
- package/models/components/batchfileproblemcount.d.ts +39 -0
- package/models/components/batchfileproblemcount.d.ts.map +1 -0
- package/models/components/batchfileproblemcount.js +65 -0
- package/models/components/batchfileproblemcount.js.map +1 -0
- package/models/components/batchfileproblemrow.d.ts +39 -0
- package/models/components/batchfileproblemrow.d.ts.map +1 -0
- package/models/components/batchfileproblemrow.js +76 -0
- package/models/components/batchfileproblemrow.js.map +1 -0
- package/models/components/batchfilesamplerow.d.ts +37 -0
- package/models/components/batchfilesamplerow.d.ts.map +1 -0
- package/models/components/batchfilesamplerow.js +73 -0
- package/models/components/batchfilesamplerow.js.map +1 -0
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/errors/batchfilecheckresult.d.ts +127 -0
- package/models/errors/batchfilecheckresult.d.ts.map +1 -0
- package/models/errors/batchfilecheckresult.js +131 -0
- package/models/errors/batchfilecheckresult.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/outboundbatchupload.d.ts +5 -0
- package/models/operations/outboundbatchupload.d.ts.map +1 -1
- package/models/operations/outboundbatchupload.js +4 -0
- package/models/operations/outboundbatchupload.js.map +1 -1
- package/package.json +1 -1
- package/sdk/batches.d.ts +12 -2
- package/sdk/batches.d.ts.map +1 -1
- package/sdk/batches.js +10 -0
- package/sdk/batches.js.map +1 -1
- package/src/funcs/outboundBatchesUpload.ts +30 -6
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/outboundBatchesUpload.ts +10 -1
- package/src/models/components/agentvoicedisplayname.ts +18 -0
- package/src/models/components/agentvoicemodel.ts +1 -0
- package/src/models/components/agentvoicevarname.ts +25 -0
- package/src/models/components/batchfilecheckresult.ts +168 -0
- package/src/models/components/batchfileproblem.ts +30 -0
- package/src/models/components/batchfileproblemcount.ts +83 -0
- package/src/models/components/batchfileproblemrow.ts +94 -0
- package/src/models/components/batchfilesamplerow.ts +82 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/errors/batchfilecheckresult.ts +224 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/outboundbatchupload.ts +9 -0
- package/src/sdk/batches.ts +11 -1
package/README.md
CHANGED
|
@@ -998,7 +998,7 @@ run();
|
|
|
998
998
|
* [`SyllableSDKError`](./src/models/errors/syllablesdkerror.ts): The base class for HTTP error responses.
|
|
999
999
|
* [`HTTPValidationError`](./src/models/errors/httpvalidationerror.ts): Validation Error. Status code `422`. *
|
|
1000
1000
|
|
|
1001
|
-
<details><summary>Less common errors (
|
|
1001
|
+
<details><summary>Less common errors (17)</summary>
|
|
1002
1002
|
|
|
1003
1003
|
<br />
|
|
1004
1004
|
|
|
@@ -1018,6 +1018,7 @@ run();
|
|
|
1018
1018
|
* [`SessionLabelsListResponseBody`](./src/models/errors/sessionlabelslistresponsebody.ts): Bad request, including malformed datetime query parameters. Status code `400`. Applicable to 1 of 208 methods.*
|
|
1019
1019
|
* [`SessionsListSessionsResponseBody`](./src/models/errors/sessionslistsessionsresponsebody.ts): Bad request, including malformed datetime query parameters. Status code `400`. Applicable to 1 of 208 methods.*
|
|
1020
1020
|
* [`DirectoryMemberListResponseBody`](./src/models/errors/directorymemberlistresponsebody.ts): Bad request, including malformed datetime query parameters. Status code `400`. Applicable to 1 of 208 methods.*
|
|
1021
|
+
* [`BatchFileCheckResult`](./src/models/errors/batchfilecheckresult.ts): Results of the check of a batch file. The check runs before any request is created. Status code `400`. Applicable to 1 of 208 methods.*
|
|
1021
1022
|
* [`OutboundCampaignListResponseBody`](./src/models/errors/outboundcampaignlistresponsebody.ts): Bad request, including malformed datetime query parameters. Status code `400`. Applicable to 1 of 208 methods.*
|
|
1022
1023
|
* [`SessionSummaryErrorResponse`](./src/models/errors/sessionsummaryerrorresponse.ts): Summary service unavailable or returned an invalid response. Applicable to 1 of 208 methods.*
|
|
1023
1024
|
* [`SessionsListResponseBody`](./src/models/errors/sessionslistresponsebody.ts): The request timed out. Status code `504`. Applicable to 1 of 208 methods.*
|
package/bin/mcp-server.js
CHANGED
|
@@ -72051,9 +72051,9 @@ var init_config = __esm(() => {
|
|
|
72051
72051
|
SDK_METADATA = {
|
|
72052
72052
|
language: "typescript",
|
|
72053
72053
|
openapiDocVersion: "0.0.3",
|
|
72054
|
-
sdkVersion: "1.0.74-rc.
|
|
72054
|
+
sdkVersion: "1.0.74-rc.7",
|
|
72055
72055
|
genVersion: "2.961.1",
|
|
72056
|
-
userAgent: "speakeasy-sdk/typescript 1.0.74-rc.
|
|
72056
|
+
userAgent: "speakeasy-sdk/typescript 1.0.74-rc.7 2.961.1 0.0.3 syllable-sdk"
|
|
72057
72057
|
};
|
|
72058
72058
|
});
|
|
72059
72059
|
|
|
@@ -80956,7 +80956,25 @@ var init_agentvoicedisplayname = __esm(() => {
|
|
|
80956
80956
|
Angus: "Angus",
|
|
80957
80957
|
Helios: "Helios",
|
|
80958
80958
|
Perseus: "Perseus",
|
|
80959
|
-
Stella: "Stella"
|
|
80959
|
+
Stella: "Stella",
|
|
80960
|
+
WyattSeasonedMentor: "Wyatt - Seasoned Mentor",
|
|
80961
|
+
FlorenceAtmosphericStoryteller: "Florence - Atmospheric Storyteller",
|
|
80962
|
+
FinleyArticulateAnchor: "Finley - Articulate Anchor",
|
|
80963
|
+
SawyerMidnightStoryteller: "Sawyer - Midnight Storyteller",
|
|
80964
|
+
EddieNaturalAndHelpful: "Eddie - Natural and Helpful",
|
|
80965
|
+
JadeUpbeatAndNatural: "Jade - Upbeat and Natural",
|
|
80966
|
+
WarrenEffortlessAndCool: "Warren - Effortless and Cool",
|
|
80967
|
+
MaisieFriendlyCasualNeighbor: "Maisie - Friendly Casual Neighbor",
|
|
80968
|
+
AliciaPolishedGlobalAnchor: "Alicia - Polished Global Anchor",
|
|
80969
|
+
LawrenceBrightAndInformative: "Lawrence - Bright and Informative",
|
|
80970
|
+
KaelenAmateurWarrior: "Kaelen - Amateur Warrior",
|
|
80971
|
+
ElowenUpbeatModernNarrator: "Elowen - Upbeat Modern Narrator",
|
|
80972
|
+
EldrinCrispBritishBaritone: "Eldrin - Crisp British Baritone",
|
|
80973
|
+
BaxterDryCalmAussie: "Baxter - Dry Calm Aussie",
|
|
80974
|
+
ElaraCrispProNarrator: "Elara - Crisp Pro Narrator",
|
|
80975
|
+
TaliaWarmSoftGuide: "Talia - Warm Soft Guide",
|
|
80976
|
+
DarianWarmGroundedStoryteller: "Darian - Warm Grounded Storyteller",
|
|
80977
|
+
CalebTrustedGuide: "Caleb - Trusted Guide"
|
|
80960
80978
|
};
|
|
80961
80979
|
AgentVoiceDisplayName$inboundSchema = nativeEnumType(AgentVoiceDisplayName);
|
|
80962
80980
|
AgentVoiceDisplayName$outboundSchema = AgentVoiceDisplayName$inboundSchema;
|
|
@@ -84238,6 +84256,7 @@ var init_agentvoicemodel = __esm(() => {
|
|
|
84238
84256
|
AgentVoiceModel = {
|
|
84239
84257
|
Chirp3HD: "Chirp 3 HD",
|
|
84240
84258
|
ElevenFlashV25: "eleven_flash_v2_5",
|
|
84259
|
+
ElevenTurboV25: "eleven_turbo_v2_5",
|
|
84241
84260
|
Neural2: "Neural2",
|
|
84242
84261
|
Standard: "Standard",
|
|
84243
84262
|
Studio: "Studio",
|
|
@@ -84285,6 +84304,24 @@ var init_agentvoicevarname = __esm(() => {
|
|
|
84285
84304
|
ElevenlabsRoger: "elevenlabs:Roger",
|
|
84286
84305
|
ElevenlabsSarah: "elevenlabs:Sarah",
|
|
84287
84306
|
ElevenlabsWill: "elevenlabs:Will",
|
|
84307
|
+
ElevenlabsWyattSeasonedMentor: "elevenlabs:Wyatt-Seasoned_Mentor",
|
|
84308
|
+
ElevenlabsFlorenceAtmosphericStoryteller: "elevenlabs:Florence-Atmospheric_Storyteller",
|
|
84309
|
+
ElevenlabsFinleyArticulateAnchor: "elevenlabs:Finley-Articulate_Anchor",
|
|
84310
|
+
ElevenlabsSawyerMidnightStoryteller: "elevenlabs:Sawyer-Midnight_Storyteller",
|
|
84311
|
+
ElevenlabsEddieNaturalAndHelpful: "elevenlabs:Eddie-Natural_and_Helpful",
|
|
84312
|
+
ElevenlabsJadeUpbeatAndNatural: "elevenlabs:Jade-Upbeat_and_Natural",
|
|
84313
|
+
ElevenlabsWarrenEffortlessAndCool: "elevenlabs:Warren-Effortless_and_Cool",
|
|
84314
|
+
ElevenlabsMaisieFriendlyCasualNeighbor: "elevenlabs:Maisie-Friendly_Casual_Neighbor",
|
|
84315
|
+
ElevenlabsAliciaPolishedGlobalAnchor: "elevenlabs:Alicia-Polished_Global_Anchor",
|
|
84316
|
+
ElevenlabsLawrenceBrightAndInformative: "elevenlabs:Lawrence-Bright_and_Informative",
|
|
84317
|
+
ElevenlabsKaelenAmateurWarrior: "elevenlabs:Kaelen-Amateur_Warrior",
|
|
84318
|
+
ElevenlabsElowenUpbeatModernNarrator: "elevenlabs:Elowen-Upbeat_Modern_Narrator",
|
|
84319
|
+
ElevenlabsEldrinCrispBritishBaritone: "elevenlabs:Eldrin-Crisp_British_Baritone",
|
|
84320
|
+
ElevenlabsBaxterDryCalmAussie: "elevenlabs:Baxter-Dry_Calm_Aussie",
|
|
84321
|
+
ElevenlabsElaraCrispProNarrator: "elevenlabs:Elara-Crisp_Pro_Narrator",
|
|
84322
|
+
ElevenlabsTaliaWarmSoftGuide: "elevenlabs:Talia-Warm_Soft_Guide",
|
|
84323
|
+
ElevenlabsDarianWarmGroundedStoryteller: "elevenlabs:Darian-Warm_Grounded_Storyteller",
|
|
84324
|
+
ElevenlabsCalebTrustedGuide: "elevenlabs:Caleb-Trusted_Guide",
|
|
84288
84325
|
WavenetFemaleEnUSChirp3HDAchernar: "wavenet:female/en-US-Chirp3-HD-Achernar",
|
|
84289
84326
|
WavenetFemaleGuINChirp3HDAchernar: "wavenet:female/gu-IN-Chirp3-HD-Achernar",
|
|
84290
84327
|
WavenetFemaleArXAChirp3HDAchernar: "wavenet:female/ar-XA-Chirp3-HD-Achernar",
|
|
@@ -84774,6 +84811,155 @@ var init_batchdetails = __esm(() => {
|
|
|
84774
84811
|
});
|
|
84775
84812
|
});
|
|
84776
84813
|
|
|
84814
|
+
// src/models/components/batchfileproblem.ts
|
|
84815
|
+
var BatchFileProblem, BatchFileProblem$inboundSchema, BatchFileProblem$outboundSchema;
|
|
84816
|
+
var init_batchfileproblem = __esm(() => {
|
|
84817
|
+
init_v3();
|
|
84818
|
+
BatchFileProblem = {
|
|
84819
|
+
InvalidTarget: "invalid_target",
|
|
84820
|
+
MissingTarget: "missing_target",
|
|
84821
|
+
DuplicateTarget: "duplicate_target",
|
|
84822
|
+
DuplicateReferenceId: "duplicate_reference_id",
|
|
84823
|
+
MissingOpId: "missing_op_id"
|
|
84824
|
+
};
|
|
84825
|
+
BatchFileProblem$inboundSchema = nativeEnumType(BatchFileProblem);
|
|
84826
|
+
BatchFileProblem$outboundSchema = BatchFileProblem$inboundSchema;
|
|
84827
|
+
});
|
|
84828
|
+
|
|
84829
|
+
// src/models/components/batchfileproblemcount.ts
|
|
84830
|
+
var BatchFileProblemCount$inboundSchema, BatchFileProblemCount$outboundSchema;
|
|
84831
|
+
var init_batchfileproblemcount = __esm(() => {
|
|
84832
|
+
init_v3();
|
|
84833
|
+
init_batchfileproblem();
|
|
84834
|
+
BatchFileProblemCount$inboundSchema = objectType({
|
|
84835
|
+
problem: BatchFileProblem$inboundSchema,
|
|
84836
|
+
count: numberType().int(),
|
|
84837
|
+
called: booleanType(),
|
|
84838
|
+
outcome: stringType()
|
|
84839
|
+
});
|
|
84840
|
+
BatchFileProblemCount$outboundSchema = objectType({
|
|
84841
|
+
problem: BatchFileProblem$outboundSchema,
|
|
84842
|
+
count: numberType().int(),
|
|
84843
|
+
called: booleanType(),
|
|
84844
|
+
outcome: stringType()
|
|
84845
|
+
});
|
|
84846
|
+
});
|
|
84847
|
+
|
|
84848
|
+
// src/models/components/batchfileproblemrow.ts
|
|
84849
|
+
var BatchFileProblemRow$inboundSchema, BatchFileProblemRow$outboundSchema;
|
|
84850
|
+
var init_batchfileproblemrow = __esm(() => {
|
|
84851
|
+
init_v3();
|
|
84852
|
+
init_primitives();
|
|
84853
|
+
init_batchfileproblem();
|
|
84854
|
+
BatchFileProblemRow$inboundSchema = objectType({
|
|
84855
|
+
row_number: numberType().int(),
|
|
84856
|
+
reference_id: nullableType(stringType()).optional(),
|
|
84857
|
+
problem: BatchFileProblem$inboundSchema,
|
|
84858
|
+
reason: stringType()
|
|
84859
|
+
}).transform((v2) => {
|
|
84860
|
+
return remap(v2, {
|
|
84861
|
+
row_number: "rowNumber",
|
|
84862
|
+
reference_id: "referenceId"
|
|
84863
|
+
});
|
|
84864
|
+
});
|
|
84865
|
+
BatchFileProblemRow$outboundSchema = objectType({
|
|
84866
|
+
rowNumber: numberType().int(),
|
|
84867
|
+
referenceId: nullableType(stringType()).optional(),
|
|
84868
|
+
problem: BatchFileProblem$outboundSchema,
|
|
84869
|
+
reason: stringType()
|
|
84870
|
+
}).transform((v2) => {
|
|
84871
|
+
return remap(v2, {
|
|
84872
|
+
rowNumber: "row_number",
|
|
84873
|
+
referenceId: "reference_id"
|
|
84874
|
+
});
|
|
84875
|
+
});
|
|
84876
|
+
});
|
|
84877
|
+
|
|
84878
|
+
// src/models/components/batchfilesamplerow.ts
|
|
84879
|
+
var BatchFileSampleRow$inboundSchema, BatchFileSampleRow$outboundSchema;
|
|
84880
|
+
var init_batchfilesamplerow = __esm(() => {
|
|
84881
|
+
init_v3();
|
|
84882
|
+
init_primitives();
|
|
84883
|
+
BatchFileSampleRow$inboundSchema = objectType({
|
|
84884
|
+
reference_id: stringType(),
|
|
84885
|
+
target: stringType(),
|
|
84886
|
+
request_variables: recordType(stringType())
|
|
84887
|
+
}).transform((v2) => {
|
|
84888
|
+
return remap(v2, {
|
|
84889
|
+
reference_id: "referenceId",
|
|
84890
|
+
request_variables: "requestVariables"
|
|
84891
|
+
});
|
|
84892
|
+
});
|
|
84893
|
+
BatchFileSampleRow$outboundSchema = objectType({
|
|
84894
|
+
referenceId: stringType(),
|
|
84895
|
+
target: stringType(),
|
|
84896
|
+
requestVariables: recordType(stringType())
|
|
84897
|
+
}).transform((v2) => {
|
|
84898
|
+
return remap(v2, {
|
|
84899
|
+
referenceId: "reference_id",
|
|
84900
|
+
requestVariables: "request_variables"
|
|
84901
|
+
});
|
|
84902
|
+
});
|
|
84903
|
+
});
|
|
84904
|
+
|
|
84905
|
+
// src/models/components/batchfilecheckresult.ts
|
|
84906
|
+
var BatchFileCheckResult$inboundSchema, BatchFileCheckResult$outboundSchema;
|
|
84907
|
+
var init_batchfilecheckresult = __esm(() => {
|
|
84908
|
+
init_v3();
|
|
84909
|
+
init_primitives();
|
|
84910
|
+
init_batchfileproblemcount();
|
|
84911
|
+
init_batchfileproblemrow();
|
|
84912
|
+
init_batchfilesamplerow();
|
|
84913
|
+
BatchFileCheckResult$inboundSchema = objectType({
|
|
84914
|
+
accepted: booleanType(),
|
|
84915
|
+
error_message: nullableType(stringType()).optional(),
|
|
84916
|
+
columns: arrayType(stringType()),
|
|
84917
|
+
reference_id_column: booleanType(),
|
|
84918
|
+
request_variable_columns: arrayType(stringType()),
|
|
84919
|
+
total_rows: numberType().int(),
|
|
84920
|
+
rows_to_call: numberType().int(),
|
|
84921
|
+
problem_counts: arrayType(BatchFileProblemCount$inboundSchema),
|
|
84922
|
+
warnings: arrayType(stringType()),
|
|
84923
|
+
problem_rows: arrayType(BatchFileProblemRow$inboundSchema),
|
|
84924
|
+
sample_rows: arrayType(BatchFileSampleRow$inboundSchema)
|
|
84925
|
+
}).transform((v2) => {
|
|
84926
|
+
return remap(v2, {
|
|
84927
|
+
error_message: "errorMessage",
|
|
84928
|
+
reference_id_column: "referenceIdColumn",
|
|
84929
|
+
request_variable_columns: "requestVariableColumns",
|
|
84930
|
+
total_rows: "totalRows",
|
|
84931
|
+
rows_to_call: "rowsToCall",
|
|
84932
|
+
problem_counts: "problemCounts",
|
|
84933
|
+
problem_rows: "problemRows",
|
|
84934
|
+
sample_rows: "sampleRows"
|
|
84935
|
+
});
|
|
84936
|
+
});
|
|
84937
|
+
BatchFileCheckResult$outboundSchema = objectType({
|
|
84938
|
+
accepted: booleanType(),
|
|
84939
|
+
errorMessage: nullableType(stringType()).optional(),
|
|
84940
|
+
columns: arrayType(stringType()),
|
|
84941
|
+
referenceIdColumn: booleanType(),
|
|
84942
|
+
requestVariableColumns: arrayType(stringType()),
|
|
84943
|
+
totalRows: numberType().int(),
|
|
84944
|
+
rowsToCall: numberType().int(),
|
|
84945
|
+
problemCounts: arrayType(BatchFileProblemCount$outboundSchema),
|
|
84946
|
+
warnings: arrayType(stringType()),
|
|
84947
|
+
problemRows: arrayType(BatchFileProblemRow$outboundSchema),
|
|
84948
|
+
sampleRows: arrayType(BatchFileSampleRow$outboundSchema)
|
|
84949
|
+
}).transform((v2) => {
|
|
84950
|
+
return remap(v2, {
|
|
84951
|
+
errorMessage: "error_message",
|
|
84952
|
+
referenceIdColumn: "reference_id_column",
|
|
84953
|
+
requestVariableColumns: "request_variable_columns",
|
|
84954
|
+
totalRows: "total_rows",
|
|
84955
|
+
rowsToCall: "rows_to_call",
|
|
84956
|
+
problemCounts: "problem_counts",
|
|
84957
|
+
problemRows: "problem_rows",
|
|
84958
|
+
sampleRows: "sample_rows"
|
|
84959
|
+
});
|
|
84960
|
+
});
|
|
84961
|
+
});
|
|
84962
|
+
|
|
84777
84963
|
// src/models/components/batchproperties.ts
|
|
84778
84964
|
var BatchProperties, BatchProperties$inboundSchema, BatchProperties$outboundSchema;
|
|
84779
84965
|
var init_batchproperties = __esm(() => {
|
|
@@ -93890,6 +94076,11 @@ var init_components = __esm(() => {
|
|
|
93890
94076
|
init_availabletarget();
|
|
93891
94077
|
init_availabletargetproperties();
|
|
93892
94078
|
init_batchdetails();
|
|
94079
|
+
init_batchfilecheckresult();
|
|
94080
|
+
init_batchfileproblem();
|
|
94081
|
+
init_batchfileproblemcount();
|
|
94082
|
+
init_batchfileproblemrow();
|
|
94083
|
+
init_batchfilesamplerow();
|
|
93893
94084
|
init_batchproperties();
|
|
93894
94085
|
init_batchstatus();
|
|
93895
94086
|
init_bodydirectorymemberbulkload();
|
|
@@ -94276,6 +94467,103 @@ var init_agenterrorresponse = __esm(() => {
|
|
|
94276
94467
|
}));
|
|
94277
94468
|
});
|
|
94278
94469
|
|
|
94470
|
+
// src/models/errors/batchfilecheckresult.ts
|
|
94471
|
+
var BatchFileCheckResult, BatchFileCheckResult$inboundSchema2, BatchFileCheckResult$outboundSchema2;
|
|
94472
|
+
var init_batchfilecheckresult2 = __esm(() => {
|
|
94473
|
+
init_v3();
|
|
94474
|
+
init_primitives();
|
|
94475
|
+
init_components();
|
|
94476
|
+
init_syllablesdkerror();
|
|
94477
|
+
BatchFileCheckResult = class BatchFileCheckResult extends SyllableSDKError {
|
|
94478
|
+
accepted;
|
|
94479
|
+
errorMessage;
|
|
94480
|
+
columns;
|
|
94481
|
+
referenceIdColumn;
|
|
94482
|
+
requestVariableColumns;
|
|
94483
|
+
totalRows;
|
|
94484
|
+
rowsToCall;
|
|
94485
|
+
problemCounts;
|
|
94486
|
+
warnings;
|
|
94487
|
+
problemRows;
|
|
94488
|
+
sampleRows;
|
|
94489
|
+
data$;
|
|
94490
|
+
constructor(err, httpMeta) {
|
|
94491
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
94492
|
+
super(message, httpMeta);
|
|
94493
|
+
this.data$ = err;
|
|
94494
|
+
this.accepted = err.accepted;
|
|
94495
|
+
if (err.errorMessage != null)
|
|
94496
|
+
this.errorMessage = err.errorMessage;
|
|
94497
|
+
this.columns = err.columns;
|
|
94498
|
+
this.referenceIdColumn = err.referenceIdColumn;
|
|
94499
|
+
this.requestVariableColumns = err.requestVariableColumns;
|
|
94500
|
+
this.totalRows = err.totalRows;
|
|
94501
|
+
this.rowsToCall = err.rowsToCall;
|
|
94502
|
+
this.problemCounts = err.problemCounts;
|
|
94503
|
+
this.warnings = err.warnings;
|
|
94504
|
+
this.problemRows = err.problemRows;
|
|
94505
|
+
this.sampleRows = err.sampleRows;
|
|
94506
|
+
this.name = "BatchFileCheckResult";
|
|
94507
|
+
}
|
|
94508
|
+
};
|
|
94509
|
+
BatchFileCheckResult$inboundSchema2 = objectType({
|
|
94510
|
+
accepted: booleanType(),
|
|
94511
|
+
error_message: nullableType(stringType()).optional(),
|
|
94512
|
+
columns: arrayType(stringType()),
|
|
94513
|
+
reference_id_column: booleanType(),
|
|
94514
|
+
request_variable_columns: arrayType(stringType()),
|
|
94515
|
+
total_rows: numberType().int(),
|
|
94516
|
+
rows_to_call: numberType().int(),
|
|
94517
|
+
problem_counts: arrayType(BatchFileProblemCount$inboundSchema),
|
|
94518
|
+
warnings: arrayType(stringType()),
|
|
94519
|
+
problem_rows: arrayType(BatchFileProblemRow$inboundSchema),
|
|
94520
|
+
sample_rows: arrayType(BatchFileSampleRow$inboundSchema),
|
|
94521
|
+
request$: instanceOfType(Request),
|
|
94522
|
+
response$: instanceOfType(Response),
|
|
94523
|
+
body$: stringType()
|
|
94524
|
+
}).transform((v2) => {
|
|
94525
|
+
const remapped = remap(v2, {
|
|
94526
|
+
error_message: "errorMessage",
|
|
94527
|
+
reference_id_column: "referenceIdColumn",
|
|
94528
|
+
request_variable_columns: "requestVariableColumns",
|
|
94529
|
+
total_rows: "totalRows",
|
|
94530
|
+
rows_to_call: "rowsToCall",
|
|
94531
|
+
problem_counts: "problemCounts",
|
|
94532
|
+
problem_rows: "problemRows",
|
|
94533
|
+
sample_rows: "sampleRows"
|
|
94534
|
+
});
|
|
94535
|
+
return new BatchFileCheckResult(remapped, {
|
|
94536
|
+
request: v2.request$,
|
|
94537
|
+
response: v2.response$,
|
|
94538
|
+
body: v2.body$
|
|
94539
|
+
});
|
|
94540
|
+
});
|
|
94541
|
+
BatchFileCheckResult$outboundSchema2 = instanceOfType(BatchFileCheckResult).transform((v2) => v2.data$).pipe(objectType({
|
|
94542
|
+
accepted: booleanType(),
|
|
94543
|
+
errorMessage: nullableType(stringType()).optional(),
|
|
94544
|
+
columns: arrayType(stringType()),
|
|
94545
|
+
referenceIdColumn: booleanType(),
|
|
94546
|
+
requestVariableColumns: arrayType(stringType()),
|
|
94547
|
+
totalRows: numberType().int(),
|
|
94548
|
+
rowsToCall: numberType().int(),
|
|
94549
|
+
problemCounts: arrayType(BatchFileProblemCount$outboundSchema),
|
|
94550
|
+
warnings: arrayType(stringType()),
|
|
94551
|
+
problemRows: arrayType(BatchFileProblemRow$outboundSchema),
|
|
94552
|
+
sampleRows: arrayType(BatchFileSampleRow$outboundSchema)
|
|
94553
|
+
}).transform((v2) => {
|
|
94554
|
+
return remap(v2, {
|
|
94555
|
+
errorMessage: "error_message",
|
|
94556
|
+
referenceIdColumn: "reference_id_column",
|
|
94557
|
+
requestVariableColumns: "request_variable_columns",
|
|
94558
|
+
totalRows: "total_rows",
|
|
94559
|
+
rowsToCall: "rows_to_call",
|
|
94560
|
+
problemCounts: "problem_counts",
|
|
94561
|
+
problemRows: "problem_rows",
|
|
94562
|
+
sampleRows: "sample_rows"
|
|
94563
|
+
});
|
|
94564
|
+
}));
|
|
94565
|
+
});
|
|
94566
|
+
|
|
94279
94567
|
// src/models/errors/custommessageerrorresponse.ts
|
|
94280
94568
|
var CustomMessageErrorResponse, CustomMessageErrorResponse$inboundSchema, CustomMessageErrorResponse$outboundSchema;
|
|
94281
94569
|
var init_custommessageerrorresponse = __esm(() => {
|
|
@@ -94687,6 +94975,7 @@ var init_sessionsummaryerrorresponse = __esm(() => {
|
|
|
94687
94975
|
// src/models/errors/index.ts
|
|
94688
94976
|
var init_errors10 = __esm(() => {
|
|
94689
94977
|
init_agenterrorresponse();
|
|
94978
|
+
init_batchfilecheckresult2();
|
|
94690
94979
|
init_custommessageerrorresponse();
|
|
94691
94980
|
init_directorymemberlist();
|
|
94692
94981
|
init_httpclienterrors();
|
|
@@ -97631,19 +97920,23 @@ var init_outboundbatchupload = __esm(() => {
|
|
|
97631
97920
|
init_components();
|
|
97632
97921
|
OutboundBatchUploadRequest$inboundSchema = objectType({
|
|
97633
97922
|
batch_id: stringType(),
|
|
97923
|
+
validate_only: booleanType().default(false),
|
|
97634
97924
|
Body_outbound_batch_upload: BodyOutboundBatchUpload$inboundSchema.optional()
|
|
97635
97925
|
}).transform((v2) => {
|
|
97636
97926
|
return remap(v2, {
|
|
97637
97927
|
batch_id: "batchId",
|
|
97928
|
+
validate_only: "validateOnly",
|
|
97638
97929
|
Body_outbound_batch_upload: "bodyOutboundBatchUpload"
|
|
97639
97930
|
});
|
|
97640
97931
|
});
|
|
97641
97932
|
OutboundBatchUploadRequest$outboundSchema = objectType({
|
|
97642
97933
|
batchId: stringType(),
|
|
97934
|
+
validateOnly: booleanType().default(false),
|
|
97643
97935
|
bodyOutboundBatchUpload: BodyOutboundBatchUpload$outboundSchema.optional()
|
|
97644
97936
|
}).transform((v2) => {
|
|
97645
97937
|
return remap(v2, {
|
|
97646
97938
|
batchId: "batch_id",
|
|
97939
|
+
validateOnly: "validate_only",
|
|
97647
97940
|
bodyOutboundBatchUpload: "Body_outbound_batch_upload"
|
|
97648
97941
|
});
|
|
97649
97942
|
});
|
|
@@ -113906,6 +114199,9 @@ async function $do136(client, request, options) {
|
|
|
113906
114199
|
})
|
|
113907
114200
|
};
|
|
113908
114201
|
const path = pathToFunc("/api/v1/outbound/batches/{batch_id}/upload_batch")(pathParams);
|
|
114202
|
+
const query = encodeFormQuery({
|
|
114203
|
+
validate_only: payload.validate_only
|
|
114204
|
+
});
|
|
113909
114205
|
const headers = new Headers(compactMap({
|
|
113910
114206
|
Accept: "application/json"
|
|
113911
114207
|
}));
|
|
@@ -113928,6 +114224,7 @@ async function $do136(client, request, options) {
|
|
|
113928
114224
|
baseURL: options?.serverURL,
|
|
113929
114225
|
path,
|
|
113930
114226
|
headers,
|
|
114227
|
+
query,
|
|
113931
114228
|
body,
|
|
113932
114229
|
userAgent: client._options.userAgent,
|
|
113933
114230
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -113949,14 +114246,13 @@ async function $do136(client, request, options) {
|
|
|
113949
114246
|
const responseFields = {
|
|
113950
114247
|
HttpMeta: { Response: response, Request: req }
|
|
113951
114248
|
};
|
|
113952
|
-
const [result] = await match(json(200,
|
|
114249
|
+
const [result] = await match(json(200, BatchFileCheckResult$inboundSchema), jsonErr(400, BatchFileCheckResult$inboundSchema2), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
113953
114250
|
if (!result.ok) {
|
|
113954
114251
|
return [result, { status: "complete", request: req, response }];
|
|
113955
114252
|
}
|
|
113956
114253
|
return [result, { status: "complete", request: req, response }];
|
|
113957
114254
|
}
|
|
113958
114255
|
var init_outboundBatchesUpload = __esm(() => {
|
|
113959
|
-
init_v3();
|
|
113960
114256
|
init_encodings();
|
|
113961
114257
|
init_http();
|
|
113962
114258
|
init_matchers();
|
|
@@ -113964,6 +114260,7 @@ var init_outboundBatchesUpload = __esm(() => {
|
|
|
113964
114260
|
init_schemas9();
|
|
113965
114261
|
init_security();
|
|
113966
114262
|
init_url();
|
|
114263
|
+
init_components();
|
|
113967
114264
|
init_errors10();
|
|
113968
114265
|
init_operations();
|
|
113969
114266
|
init_async();
|
|
@@ -113981,7 +114278,16 @@ var init_outboundBatchesUpload2 = __esm(() => {
|
|
|
113981
114278
|
};
|
|
113982
114279
|
tool$outboundBatchesUpload = {
|
|
113983
114280
|
name: "outbound-batches-upload",
|
|
113984
|
-
description: `Upload Outbound Communication Batch
|
|
114281
|
+
description: `Upload Outbound Communication Batch
|
|
114282
|
+
|
|
114283
|
+
Check a batch file, then create a request for each row that can be called.
|
|
114284
|
+
|
|
114285
|
+
The check runs before the response, so the response contains the results. A file with a problem
|
|
114286
|
+
that stops the whole file returns 400, and the batch is marked FAILED with the reason. Requests
|
|
114287
|
+
are created in the background after the response.
|
|
114288
|
+
|
|
114289
|
+
In validate-only mode, the response is always 200: the check itself succeeded, and accepted tells
|
|
114290
|
+
whether the file would be accepted.`,
|
|
113985
114291
|
args: args125,
|
|
113986
114292
|
tool: async (client, args126, ctx) => {
|
|
113987
114293
|
const [result, apiCall] = await outboundBatchesUpload(client, args126.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
|
|
@@ -120926,7 +121232,7 @@ Generate voice sample.`,
|
|
|
120926
121232
|
function createMCPServer(deps) {
|
|
120927
121233
|
const server = new McpServer({
|
|
120928
121234
|
name: "SyllableSDK",
|
|
120929
|
-
version: "1.0.74-rc.
|
|
121235
|
+
version: "1.0.74-rc.7"
|
|
120930
121236
|
});
|
|
120931
121237
|
const client = new SyllableSDKCore({
|
|
120932
121238
|
apiKeyHeader: deps.apiKeyHeader,
|
|
@@ -122547,7 +122853,7 @@ var routes = ln({
|
|
|
122547
122853
|
var app = _e(routes, {
|
|
122548
122854
|
name: "mcp",
|
|
122549
122855
|
versionInfo: {
|
|
122550
|
-
currentVersion: "1.0.74-rc.
|
|
122856
|
+
currentVersion: "1.0.74-rc.7"
|
|
122551
122857
|
}
|
|
122552
122858
|
});
|
|
122553
122859
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -122555,5 +122861,5 @@ export {
|
|
|
122555
122861
|
app
|
|
122556
122862
|
};
|
|
122557
122863
|
|
|
122558
|
-
//# debugId=
|
|
122864
|
+
//# debugId=735B4B1BD6F9E04E64756E2164756E21
|
|
122559
122865
|
//# sourceMappingURL=mcp-server.js.map
|