syllable-sdk 1.0.74-rc.4 → 1.0.74-rc.6
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 +281 -10
- package/bin/mcp-server.js.map +21 -15
- 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/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/components/outboundcampaign.d.ts +1 -1
- package/models/components/outboundcampaigninput.d.ts +1 -1
- package/models/components/outreachoverriderules.d.ts +16 -7
- package/models/components/outreachoverriderules.d.ts.map +1 -1
- package/models/components/outreachoverriderules.js +2 -0
- package/models/components/outreachoverriderules.js.map +1 -1
- package/models/components/scheduleoverride.d.ts +5 -6
- package/models/components/scheduleoverride.d.ts.map +1 -1
- package/models/components/scheduleoverride.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/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/components/outboundcampaign.ts +1 -1
- package/src/models/components/outboundcampaigninput.ts +1 -1
- package/src/models/components/outreachoverriderules.ts +14 -7
- package/src/models/components/scheduleoverride.ts +5 -6
- 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.6",
|
|
72055
72055
|
genVersion: "2.961.1",
|
|
72056
|
-
userAgent: "speakeasy-sdk/typescript 1.0.74-rc.
|
|
72056
|
+
userAgent: "speakeasy-sdk/typescript 1.0.74-rc.6 2.961.1 0.0.3 syllable-sdk"
|
|
72057
72057
|
};
|
|
72058
72058
|
});
|
|
72059
72059
|
|
|
@@ -84774,6 +84774,155 @@ var init_batchdetails = __esm(() => {
|
|
|
84774
84774
|
});
|
|
84775
84775
|
});
|
|
84776
84776
|
|
|
84777
|
+
// src/models/components/batchfileproblem.ts
|
|
84778
|
+
var BatchFileProblem, BatchFileProblem$inboundSchema, BatchFileProblem$outboundSchema;
|
|
84779
|
+
var init_batchfileproblem = __esm(() => {
|
|
84780
|
+
init_v3();
|
|
84781
|
+
BatchFileProblem = {
|
|
84782
|
+
InvalidTarget: "invalid_target",
|
|
84783
|
+
MissingTarget: "missing_target",
|
|
84784
|
+
DuplicateTarget: "duplicate_target",
|
|
84785
|
+
DuplicateReferenceId: "duplicate_reference_id",
|
|
84786
|
+
MissingOpId: "missing_op_id"
|
|
84787
|
+
};
|
|
84788
|
+
BatchFileProblem$inboundSchema = nativeEnumType(BatchFileProblem);
|
|
84789
|
+
BatchFileProblem$outboundSchema = BatchFileProblem$inboundSchema;
|
|
84790
|
+
});
|
|
84791
|
+
|
|
84792
|
+
// src/models/components/batchfileproblemcount.ts
|
|
84793
|
+
var BatchFileProblemCount$inboundSchema, BatchFileProblemCount$outboundSchema;
|
|
84794
|
+
var init_batchfileproblemcount = __esm(() => {
|
|
84795
|
+
init_v3();
|
|
84796
|
+
init_batchfileproblem();
|
|
84797
|
+
BatchFileProblemCount$inboundSchema = objectType({
|
|
84798
|
+
problem: BatchFileProblem$inboundSchema,
|
|
84799
|
+
count: numberType().int(),
|
|
84800
|
+
called: booleanType(),
|
|
84801
|
+
outcome: stringType()
|
|
84802
|
+
});
|
|
84803
|
+
BatchFileProblemCount$outboundSchema = objectType({
|
|
84804
|
+
problem: BatchFileProblem$outboundSchema,
|
|
84805
|
+
count: numberType().int(),
|
|
84806
|
+
called: booleanType(),
|
|
84807
|
+
outcome: stringType()
|
|
84808
|
+
});
|
|
84809
|
+
});
|
|
84810
|
+
|
|
84811
|
+
// src/models/components/batchfileproblemrow.ts
|
|
84812
|
+
var BatchFileProblemRow$inboundSchema, BatchFileProblemRow$outboundSchema;
|
|
84813
|
+
var init_batchfileproblemrow = __esm(() => {
|
|
84814
|
+
init_v3();
|
|
84815
|
+
init_primitives();
|
|
84816
|
+
init_batchfileproblem();
|
|
84817
|
+
BatchFileProblemRow$inboundSchema = objectType({
|
|
84818
|
+
row_number: numberType().int(),
|
|
84819
|
+
reference_id: nullableType(stringType()).optional(),
|
|
84820
|
+
problem: BatchFileProblem$inboundSchema,
|
|
84821
|
+
reason: stringType()
|
|
84822
|
+
}).transform((v2) => {
|
|
84823
|
+
return remap(v2, {
|
|
84824
|
+
row_number: "rowNumber",
|
|
84825
|
+
reference_id: "referenceId"
|
|
84826
|
+
});
|
|
84827
|
+
});
|
|
84828
|
+
BatchFileProblemRow$outboundSchema = objectType({
|
|
84829
|
+
rowNumber: numberType().int(),
|
|
84830
|
+
referenceId: nullableType(stringType()).optional(),
|
|
84831
|
+
problem: BatchFileProblem$outboundSchema,
|
|
84832
|
+
reason: stringType()
|
|
84833
|
+
}).transform((v2) => {
|
|
84834
|
+
return remap(v2, {
|
|
84835
|
+
rowNumber: "row_number",
|
|
84836
|
+
referenceId: "reference_id"
|
|
84837
|
+
});
|
|
84838
|
+
});
|
|
84839
|
+
});
|
|
84840
|
+
|
|
84841
|
+
// src/models/components/batchfilesamplerow.ts
|
|
84842
|
+
var BatchFileSampleRow$inboundSchema, BatchFileSampleRow$outboundSchema;
|
|
84843
|
+
var init_batchfilesamplerow = __esm(() => {
|
|
84844
|
+
init_v3();
|
|
84845
|
+
init_primitives();
|
|
84846
|
+
BatchFileSampleRow$inboundSchema = objectType({
|
|
84847
|
+
reference_id: stringType(),
|
|
84848
|
+
target: stringType(),
|
|
84849
|
+
request_variables: recordType(stringType())
|
|
84850
|
+
}).transform((v2) => {
|
|
84851
|
+
return remap(v2, {
|
|
84852
|
+
reference_id: "referenceId",
|
|
84853
|
+
request_variables: "requestVariables"
|
|
84854
|
+
});
|
|
84855
|
+
});
|
|
84856
|
+
BatchFileSampleRow$outboundSchema = objectType({
|
|
84857
|
+
referenceId: stringType(),
|
|
84858
|
+
target: stringType(),
|
|
84859
|
+
requestVariables: recordType(stringType())
|
|
84860
|
+
}).transform((v2) => {
|
|
84861
|
+
return remap(v2, {
|
|
84862
|
+
referenceId: "reference_id",
|
|
84863
|
+
requestVariables: "request_variables"
|
|
84864
|
+
});
|
|
84865
|
+
});
|
|
84866
|
+
});
|
|
84867
|
+
|
|
84868
|
+
// src/models/components/batchfilecheckresult.ts
|
|
84869
|
+
var BatchFileCheckResult$inboundSchema, BatchFileCheckResult$outboundSchema;
|
|
84870
|
+
var init_batchfilecheckresult = __esm(() => {
|
|
84871
|
+
init_v3();
|
|
84872
|
+
init_primitives();
|
|
84873
|
+
init_batchfileproblemcount();
|
|
84874
|
+
init_batchfileproblemrow();
|
|
84875
|
+
init_batchfilesamplerow();
|
|
84876
|
+
BatchFileCheckResult$inboundSchema = objectType({
|
|
84877
|
+
accepted: booleanType(),
|
|
84878
|
+
error_message: nullableType(stringType()).optional(),
|
|
84879
|
+
columns: arrayType(stringType()),
|
|
84880
|
+
reference_id_column: booleanType(),
|
|
84881
|
+
request_variable_columns: arrayType(stringType()),
|
|
84882
|
+
total_rows: numberType().int(),
|
|
84883
|
+
rows_to_call: numberType().int(),
|
|
84884
|
+
problem_counts: arrayType(BatchFileProblemCount$inboundSchema),
|
|
84885
|
+
warnings: arrayType(stringType()),
|
|
84886
|
+
problem_rows: arrayType(BatchFileProblemRow$inboundSchema),
|
|
84887
|
+
sample_rows: arrayType(BatchFileSampleRow$inboundSchema)
|
|
84888
|
+
}).transform((v2) => {
|
|
84889
|
+
return remap(v2, {
|
|
84890
|
+
error_message: "errorMessage",
|
|
84891
|
+
reference_id_column: "referenceIdColumn",
|
|
84892
|
+
request_variable_columns: "requestVariableColumns",
|
|
84893
|
+
total_rows: "totalRows",
|
|
84894
|
+
rows_to_call: "rowsToCall",
|
|
84895
|
+
problem_counts: "problemCounts",
|
|
84896
|
+
problem_rows: "problemRows",
|
|
84897
|
+
sample_rows: "sampleRows"
|
|
84898
|
+
});
|
|
84899
|
+
});
|
|
84900
|
+
BatchFileCheckResult$outboundSchema = objectType({
|
|
84901
|
+
accepted: booleanType(),
|
|
84902
|
+
errorMessage: nullableType(stringType()).optional(),
|
|
84903
|
+
columns: arrayType(stringType()),
|
|
84904
|
+
referenceIdColumn: booleanType(),
|
|
84905
|
+
requestVariableColumns: arrayType(stringType()),
|
|
84906
|
+
totalRows: numberType().int(),
|
|
84907
|
+
rowsToCall: numberType().int(),
|
|
84908
|
+
problemCounts: arrayType(BatchFileProblemCount$outboundSchema),
|
|
84909
|
+
warnings: arrayType(stringType()),
|
|
84910
|
+
problemRows: arrayType(BatchFileProblemRow$outboundSchema),
|
|
84911
|
+
sampleRows: arrayType(BatchFileSampleRow$outboundSchema)
|
|
84912
|
+
}).transform((v2) => {
|
|
84913
|
+
return remap(v2, {
|
|
84914
|
+
errorMessage: "error_message",
|
|
84915
|
+
referenceIdColumn: "reference_id_column",
|
|
84916
|
+
requestVariableColumns: "request_variable_columns",
|
|
84917
|
+
totalRows: "total_rows",
|
|
84918
|
+
rowsToCall: "rows_to_call",
|
|
84919
|
+
problemCounts: "problem_counts",
|
|
84920
|
+
problemRows: "problem_rows",
|
|
84921
|
+
sampleRows: "sample_rows"
|
|
84922
|
+
});
|
|
84923
|
+
});
|
|
84924
|
+
});
|
|
84925
|
+
|
|
84777
84926
|
// src/models/components/batchproperties.ts
|
|
84778
84927
|
var BatchProperties, BatchProperties$inboundSchema, BatchProperties$outboundSchema;
|
|
84779
84928
|
var init_batchproperties = __esm(() => {
|
|
@@ -90160,11 +90309,13 @@ var init_outreachoverriderules = __esm(() => {
|
|
|
90160
90309
|
init_scheduleoverride();
|
|
90161
90310
|
OutreachOverrideRules$inboundSchema = objectType({
|
|
90162
90311
|
days: recordType(ScheduleOverride$inboundSchema).optional(),
|
|
90163
|
-
dates: recordType(ScheduleOverride$inboundSchema).optional()
|
|
90312
|
+
dates: recordType(ScheduleOverride$inboundSchema).optional(),
|
|
90313
|
+
holidays: recordType(ScheduleOverride$inboundSchema).optional()
|
|
90164
90314
|
});
|
|
90165
90315
|
OutreachOverrideRules$outboundSchema = objectType({
|
|
90166
90316
|
days: recordType(ScheduleOverride$outboundSchema).optional(),
|
|
90167
|
-
dates: recordType(ScheduleOverride$outboundSchema).optional()
|
|
90317
|
+
dates: recordType(ScheduleOverride$outboundSchema).optional(),
|
|
90318
|
+
holidays: recordType(ScheduleOverride$outboundSchema).optional()
|
|
90168
90319
|
});
|
|
90169
90320
|
});
|
|
90170
90321
|
|
|
@@ -93888,6 +94039,11 @@ var init_components = __esm(() => {
|
|
|
93888
94039
|
init_availabletarget();
|
|
93889
94040
|
init_availabletargetproperties();
|
|
93890
94041
|
init_batchdetails();
|
|
94042
|
+
init_batchfilecheckresult();
|
|
94043
|
+
init_batchfileproblem();
|
|
94044
|
+
init_batchfileproblemcount();
|
|
94045
|
+
init_batchfileproblemrow();
|
|
94046
|
+
init_batchfilesamplerow();
|
|
93891
94047
|
init_batchproperties();
|
|
93892
94048
|
init_batchstatus();
|
|
93893
94049
|
init_bodydirectorymemberbulkload();
|
|
@@ -94274,6 +94430,103 @@ var init_agenterrorresponse = __esm(() => {
|
|
|
94274
94430
|
}));
|
|
94275
94431
|
});
|
|
94276
94432
|
|
|
94433
|
+
// src/models/errors/batchfilecheckresult.ts
|
|
94434
|
+
var BatchFileCheckResult, BatchFileCheckResult$inboundSchema2, BatchFileCheckResult$outboundSchema2;
|
|
94435
|
+
var init_batchfilecheckresult2 = __esm(() => {
|
|
94436
|
+
init_v3();
|
|
94437
|
+
init_primitives();
|
|
94438
|
+
init_components();
|
|
94439
|
+
init_syllablesdkerror();
|
|
94440
|
+
BatchFileCheckResult = class BatchFileCheckResult extends SyllableSDKError {
|
|
94441
|
+
accepted;
|
|
94442
|
+
errorMessage;
|
|
94443
|
+
columns;
|
|
94444
|
+
referenceIdColumn;
|
|
94445
|
+
requestVariableColumns;
|
|
94446
|
+
totalRows;
|
|
94447
|
+
rowsToCall;
|
|
94448
|
+
problemCounts;
|
|
94449
|
+
warnings;
|
|
94450
|
+
problemRows;
|
|
94451
|
+
sampleRows;
|
|
94452
|
+
data$;
|
|
94453
|
+
constructor(err, httpMeta) {
|
|
94454
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
94455
|
+
super(message, httpMeta);
|
|
94456
|
+
this.data$ = err;
|
|
94457
|
+
this.accepted = err.accepted;
|
|
94458
|
+
if (err.errorMessage != null)
|
|
94459
|
+
this.errorMessage = err.errorMessage;
|
|
94460
|
+
this.columns = err.columns;
|
|
94461
|
+
this.referenceIdColumn = err.referenceIdColumn;
|
|
94462
|
+
this.requestVariableColumns = err.requestVariableColumns;
|
|
94463
|
+
this.totalRows = err.totalRows;
|
|
94464
|
+
this.rowsToCall = err.rowsToCall;
|
|
94465
|
+
this.problemCounts = err.problemCounts;
|
|
94466
|
+
this.warnings = err.warnings;
|
|
94467
|
+
this.problemRows = err.problemRows;
|
|
94468
|
+
this.sampleRows = err.sampleRows;
|
|
94469
|
+
this.name = "BatchFileCheckResult";
|
|
94470
|
+
}
|
|
94471
|
+
};
|
|
94472
|
+
BatchFileCheckResult$inboundSchema2 = objectType({
|
|
94473
|
+
accepted: booleanType(),
|
|
94474
|
+
error_message: nullableType(stringType()).optional(),
|
|
94475
|
+
columns: arrayType(stringType()),
|
|
94476
|
+
reference_id_column: booleanType(),
|
|
94477
|
+
request_variable_columns: arrayType(stringType()),
|
|
94478
|
+
total_rows: numberType().int(),
|
|
94479
|
+
rows_to_call: numberType().int(),
|
|
94480
|
+
problem_counts: arrayType(BatchFileProblemCount$inboundSchema),
|
|
94481
|
+
warnings: arrayType(stringType()),
|
|
94482
|
+
problem_rows: arrayType(BatchFileProblemRow$inboundSchema),
|
|
94483
|
+
sample_rows: arrayType(BatchFileSampleRow$inboundSchema),
|
|
94484
|
+
request$: instanceOfType(Request),
|
|
94485
|
+
response$: instanceOfType(Response),
|
|
94486
|
+
body$: stringType()
|
|
94487
|
+
}).transform((v2) => {
|
|
94488
|
+
const remapped = remap(v2, {
|
|
94489
|
+
error_message: "errorMessage",
|
|
94490
|
+
reference_id_column: "referenceIdColumn",
|
|
94491
|
+
request_variable_columns: "requestVariableColumns",
|
|
94492
|
+
total_rows: "totalRows",
|
|
94493
|
+
rows_to_call: "rowsToCall",
|
|
94494
|
+
problem_counts: "problemCounts",
|
|
94495
|
+
problem_rows: "problemRows",
|
|
94496
|
+
sample_rows: "sampleRows"
|
|
94497
|
+
});
|
|
94498
|
+
return new BatchFileCheckResult(remapped, {
|
|
94499
|
+
request: v2.request$,
|
|
94500
|
+
response: v2.response$,
|
|
94501
|
+
body: v2.body$
|
|
94502
|
+
});
|
|
94503
|
+
});
|
|
94504
|
+
BatchFileCheckResult$outboundSchema2 = instanceOfType(BatchFileCheckResult).transform((v2) => v2.data$).pipe(objectType({
|
|
94505
|
+
accepted: booleanType(),
|
|
94506
|
+
errorMessage: nullableType(stringType()).optional(),
|
|
94507
|
+
columns: arrayType(stringType()),
|
|
94508
|
+
referenceIdColumn: booleanType(),
|
|
94509
|
+
requestVariableColumns: arrayType(stringType()),
|
|
94510
|
+
totalRows: numberType().int(),
|
|
94511
|
+
rowsToCall: numberType().int(),
|
|
94512
|
+
problemCounts: arrayType(BatchFileProblemCount$outboundSchema),
|
|
94513
|
+
warnings: arrayType(stringType()),
|
|
94514
|
+
problemRows: arrayType(BatchFileProblemRow$outboundSchema),
|
|
94515
|
+
sampleRows: arrayType(BatchFileSampleRow$outboundSchema)
|
|
94516
|
+
}).transform((v2) => {
|
|
94517
|
+
return remap(v2, {
|
|
94518
|
+
errorMessage: "error_message",
|
|
94519
|
+
referenceIdColumn: "reference_id_column",
|
|
94520
|
+
requestVariableColumns: "request_variable_columns",
|
|
94521
|
+
totalRows: "total_rows",
|
|
94522
|
+
rowsToCall: "rows_to_call",
|
|
94523
|
+
problemCounts: "problem_counts",
|
|
94524
|
+
problemRows: "problem_rows",
|
|
94525
|
+
sampleRows: "sample_rows"
|
|
94526
|
+
});
|
|
94527
|
+
}));
|
|
94528
|
+
});
|
|
94529
|
+
|
|
94277
94530
|
// src/models/errors/custommessageerrorresponse.ts
|
|
94278
94531
|
var CustomMessageErrorResponse, CustomMessageErrorResponse$inboundSchema, CustomMessageErrorResponse$outboundSchema;
|
|
94279
94532
|
var init_custommessageerrorresponse = __esm(() => {
|
|
@@ -94685,6 +94938,7 @@ var init_sessionsummaryerrorresponse = __esm(() => {
|
|
|
94685
94938
|
// src/models/errors/index.ts
|
|
94686
94939
|
var init_errors10 = __esm(() => {
|
|
94687
94940
|
init_agenterrorresponse();
|
|
94941
|
+
init_batchfilecheckresult2();
|
|
94688
94942
|
init_custommessageerrorresponse();
|
|
94689
94943
|
init_directorymemberlist();
|
|
94690
94944
|
init_httpclienterrors();
|
|
@@ -97629,19 +97883,23 @@ var init_outboundbatchupload = __esm(() => {
|
|
|
97629
97883
|
init_components();
|
|
97630
97884
|
OutboundBatchUploadRequest$inboundSchema = objectType({
|
|
97631
97885
|
batch_id: stringType(),
|
|
97886
|
+
validate_only: booleanType().default(false),
|
|
97632
97887
|
Body_outbound_batch_upload: BodyOutboundBatchUpload$inboundSchema.optional()
|
|
97633
97888
|
}).transform((v2) => {
|
|
97634
97889
|
return remap(v2, {
|
|
97635
97890
|
batch_id: "batchId",
|
|
97891
|
+
validate_only: "validateOnly",
|
|
97636
97892
|
Body_outbound_batch_upload: "bodyOutboundBatchUpload"
|
|
97637
97893
|
});
|
|
97638
97894
|
});
|
|
97639
97895
|
OutboundBatchUploadRequest$outboundSchema = objectType({
|
|
97640
97896
|
batchId: stringType(),
|
|
97897
|
+
validateOnly: booleanType().default(false),
|
|
97641
97898
|
bodyOutboundBatchUpload: BodyOutboundBatchUpload$outboundSchema.optional()
|
|
97642
97899
|
}).transform((v2) => {
|
|
97643
97900
|
return remap(v2, {
|
|
97644
97901
|
batchId: "batch_id",
|
|
97902
|
+
validateOnly: "validate_only",
|
|
97645
97903
|
bodyOutboundBatchUpload: "Body_outbound_batch_upload"
|
|
97646
97904
|
});
|
|
97647
97905
|
});
|
|
@@ -113904,6 +114162,9 @@ async function $do136(client, request, options) {
|
|
|
113904
114162
|
})
|
|
113905
114163
|
};
|
|
113906
114164
|
const path = pathToFunc("/api/v1/outbound/batches/{batch_id}/upload_batch")(pathParams);
|
|
114165
|
+
const query = encodeFormQuery({
|
|
114166
|
+
validate_only: payload.validate_only
|
|
114167
|
+
});
|
|
113907
114168
|
const headers = new Headers(compactMap({
|
|
113908
114169
|
Accept: "application/json"
|
|
113909
114170
|
}));
|
|
@@ -113926,6 +114187,7 @@ async function $do136(client, request, options) {
|
|
|
113926
114187
|
baseURL: options?.serverURL,
|
|
113927
114188
|
path,
|
|
113928
114189
|
headers,
|
|
114190
|
+
query,
|
|
113929
114191
|
body,
|
|
113930
114192
|
userAgent: client._options.userAgent,
|
|
113931
114193
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -113947,14 +114209,13 @@ async function $do136(client, request, options) {
|
|
|
113947
114209
|
const responseFields = {
|
|
113948
114210
|
HttpMeta: { Response: response, Request: req }
|
|
113949
114211
|
};
|
|
113950
|
-
const [result] = await match(json(200,
|
|
114212
|
+
const [result] = await match(json(200, BatchFileCheckResult$inboundSchema), jsonErr(400, BatchFileCheckResult$inboundSchema2), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
113951
114213
|
if (!result.ok) {
|
|
113952
114214
|
return [result, { status: "complete", request: req, response }];
|
|
113953
114215
|
}
|
|
113954
114216
|
return [result, { status: "complete", request: req, response }];
|
|
113955
114217
|
}
|
|
113956
114218
|
var init_outboundBatchesUpload = __esm(() => {
|
|
113957
|
-
init_v3();
|
|
113958
114219
|
init_encodings();
|
|
113959
114220
|
init_http();
|
|
113960
114221
|
init_matchers();
|
|
@@ -113962,6 +114223,7 @@ var init_outboundBatchesUpload = __esm(() => {
|
|
|
113962
114223
|
init_schemas9();
|
|
113963
114224
|
init_security();
|
|
113964
114225
|
init_url();
|
|
114226
|
+
init_components();
|
|
113965
114227
|
init_errors10();
|
|
113966
114228
|
init_operations();
|
|
113967
114229
|
init_async();
|
|
@@ -113979,7 +114241,16 @@ var init_outboundBatchesUpload2 = __esm(() => {
|
|
|
113979
114241
|
};
|
|
113980
114242
|
tool$outboundBatchesUpload = {
|
|
113981
114243
|
name: "outbound-batches-upload",
|
|
113982
|
-
description: `Upload Outbound Communication Batch
|
|
114244
|
+
description: `Upload Outbound Communication Batch
|
|
114245
|
+
|
|
114246
|
+
Check a batch file, then create a request for each row that can be called.
|
|
114247
|
+
|
|
114248
|
+
The check runs before the response, so the response contains the results. A file with a problem
|
|
114249
|
+
that stops the whole file returns 400, and the batch is marked FAILED with the reason. Requests
|
|
114250
|
+
are created in the background after the response.
|
|
114251
|
+
|
|
114252
|
+
In validate-only mode, the response is always 200: the check itself succeeded, and accepted tells
|
|
114253
|
+
whether the file would be accepted.`,
|
|
113983
114254
|
args: args125,
|
|
113984
114255
|
tool: async (client, args126, ctx) => {
|
|
113985
114256
|
const [result, apiCall] = await outboundBatchesUpload(client, args126.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
|
|
@@ -120924,7 +121195,7 @@ Generate voice sample.`,
|
|
|
120924
121195
|
function createMCPServer(deps) {
|
|
120925
121196
|
const server = new McpServer({
|
|
120926
121197
|
name: "SyllableSDK",
|
|
120927
|
-
version: "1.0.74-rc.
|
|
121198
|
+
version: "1.0.74-rc.6"
|
|
120928
121199
|
});
|
|
120929
121200
|
const client = new SyllableSDKCore({
|
|
120930
121201
|
apiKeyHeader: deps.apiKeyHeader,
|
|
@@ -122545,7 +122816,7 @@ var routes = ln({
|
|
|
122545
122816
|
var app = _e(routes, {
|
|
122546
122817
|
name: "mcp",
|
|
122547
122818
|
versionInfo: {
|
|
122548
|
-
currentVersion: "1.0.74-rc.
|
|
122819
|
+
currentVersion: "1.0.74-rc.6"
|
|
122549
122820
|
}
|
|
122550
122821
|
});
|
|
122551
122822
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -122553,5 +122824,5 @@ export {
|
|
|
122553
122824
|
app
|
|
122554
122825
|
};
|
|
122555
122826
|
|
|
122556
|
-
//# debugId=
|
|
122827
|
+
//# debugId=C138938EC4DBD39564756E2164756E21
|
|
122557
122828
|
//# sourceMappingURL=mcp-server.js.map
|