syllable-sdk 1.0.32-rc.8 → 1.0.32
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/bin/mcp-server.js +31 -17
- package/bin/mcp-server.js.map +8 -8
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/security.d.ts +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +19 -8
- package/lib/security.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/components/channelconfigview.d.ts +9 -0
- package/models/components/channelconfigview.d.ts.map +1 -1
- package/models/components/channelconfigview.js +2 -0
- package/models/components/channelconfigview.js.map +1 -1
- package/models/components/channelproperties.d.ts +1 -0
- package/models/components/channelproperties.d.ts.map +1 -1
- package/models/components/channelproperties.js +1 -0
- package/models/components/channelproperties.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +14 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/channelconfigview.ts +7 -0
- package/src/models/components/channelproperties.ts +1 -0
package/bin/mcp-server.js
CHANGED
|
@@ -53072,9 +53072,9 @@ var init_config = __esm(() => {
|
|
|
53072
53072
|
SDK_METADATA = {
|
|
53073
53073
|
language: "typescript",
|
|
53074
53074
|
openapiDocVersion: "0.0.3",
|
|
53075
|
-
sdkVersion: "1.0.32
|
|
53076
|
-
genVersion: "2.
|
|
53077
|
-
userAgent: "speakeasy-sdk/typescript 1.0.32
|
|
53075
|
+
sdkVersion: "1.0.32",
|
|
53076
|
+
genVersion: "2.873.1",
|
|
53077
|
+
userAgent: "speakeasy-sdk/typescript 1.0.32 2.873.1 0.0.3 syllable-sdk"
|
|
53078
53078
|
};
|
|
53079
53079
|
});
|
|
53080
53080
|
|
|
@@ -54569,14 +54569,25 @@ function applyBearer(state, spec) {
|
|
|
54569
54569
|
state.headers[spec.fieldName] = value;
|
|
54570
54570
|
}
|
|
54571
54571
|
}
|
|
54572
|
-
function resolveGlobalSecurity(security) {
|
|
54573
|
-
|
|
54574
|
-
|
|
54575
|
-
|
|
54576
|
-
|
|
54577
|
-
|
|
54578
|
-
|
|
54579
|
-
|
|
54572
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
54573
|
+
let inputs = [
|
|
54574
|
+
[
|
|
54575
|
+
{
|
|
54576
|
+
fieldName: "Syllable-API-Key",
|
|
54577
|
+
type: "apiKey:header",
|
|
54578
|
+
value: security?.apiKeyHeader ?? env().SYLLABLESDK_API_KEY_HEADER
|
|
54579
|
+
}
|
|
54580
|
+
]
|
|
54581
|
+
];
|
|
54582
|
+
if (allowedFields) {
|
|
54583
|
+
inputs = allowedFields.map((i) => {
|
|
54584
|
+
if (i < 0 || i >= inputs.length) {
|
|
54585
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
54586
|
+
}
|
|
54587
|
+
return inputs[i];
|
|
54588
|
+
});
|
|
54589
|
+
}
|
|
54590
|
+
return resolveSecurity(...inputs);
|
|
54580
54591
|
}
|
|
54581
54592
|
async function extractSecurity(sec) {
|
|
54582
54593
|
if (sec == null) {
|
|
@@ -58334,11 +58345,13 @@ var init_channelconfigview = __esm(() => {
|
|
|
58334
58345
|
init_telephonyconfigurations();
|
|
58335
58346
|
ChannelConfigView$inboundSchema = objectType({
|
|
58336
58347
|
telephony: nullableType(TelephonyConfigurations$inboundSchema).optional(),
|
|
58337
|
-
email: nullableType(EmailConfigurations$inboundSchema).optional()
|
|
58348
|
+
email: nullableType(EmailConfigurations$inboundSchema).optional(),
|
|
58349
|
+
credentials: nullableType(recordType(stringType())).optional()
|
|
58338
58350
|
});
|
|
58339
58351
|
ChannelConfigView$outboundSchema = objectType({
|
|
58340
58352
|
telephony: nullableType(TelephonyConfigurations$outboundSchema).optional(),
|
|
58341
|
-
email: nullableType(EmailConfigurations$outboundSchema).optional()
|
|
58353
|
+
email: nullableType(EmailConfigurations$outboundSchema).optional(),
|
|
58354
|
+
credentials: nullableType(recordType(stringType())).optional()
|
|
58342
58355
|
});
|
|
58343
58356
|
});
|
|
58344
58357
|
|
|
@@ -58404,7 +58417,8 @@ var init_channelproperties = __esm(() => {
|
|
|
58404
58417
|
Name: "name",
|
|
58405
58418
|
NameExact: "name_exact",
|
|
58406
58419
|
ChannelService: "channel_service",
|
|
58407
|
-
SupportedModes: "supported_modes"
|
|
58420
|
+
SupportedModes: "supported_modes",
|
|
58421
|
+
Config: "config"
|
|
58408
58422
|
};
|
|
58409
58423
|
ChannelProperties$inboundSchema = nativeEnumType(ChannelProperties);
|
|
58410
58424
|
ChannelProperties$outboundSchema = ChannelProperties$inboundSchema;
|
|
@@ -85226,7 +85240,7 @@ Generate voice sample.`,
|
|
|
85226
85240
|
function createMCPServer(deps) {
|
|
85227
85241
|
const server = new McpServer({
|
|
85228
85242
|
name: "SyllableSDK",
|
|
85229
|
-
version: "1.0.32
|
|
85243
|
+
version: "1.0.32"
|
|
85230
85244
|
});
|
|
85231
85245
|
const client = new SyllableSDKCore({
|
|
85232
85246
|
apiKeyHeader: deps.apiKeyHeader,
|
|
@@ -86768,7 +86782,7 @@ var routes = ln({
|
|
|
86768
86782
|
var app = _e(routes, {
|
|
86769
86783
|
name: "mcp",
|
|
86770
86784
|
versionInfo: {
|
|
86771
|
-
currentVersion: "1.0.32
|
|
86785
|
+
currentVersion: "1.0.32"
|
|
86772
86786
|
}
|
|
86773
86787
|
});
|
|
86774
86788
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -86776,5 +86790,5 @@ export {
|
|
|
86776
86790
|
app
|
|
86777
86791
|
};
|
|
86778
86792
|
|
|
86779
|
-
//# debugId=
|
|
86793
|
+
//# debugId=A0543E447128852564756E2164756E21
|
|
86780
86794
|
//# sourceMappingURL=mcp-server.js.map
|