syllable-sdk 1.0.2-rc.1 → 1.0.2-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 +2 -0
- package/bin/mcp-server.js +173 -90
- package/bin/mcp-server.js.map +8 -6
- package/docs/sdks/pronunciations/README.md +70 -1
- package/examples/package-lock.json +1 -1
- package/funcs/pronunciationsPronunciationsDeleteCsv.d.ts +13 -0
- package/funcs/pronunciationsPronunciationsDeleteCsv.d.ts.map +1 -0
- package/funcs/pronunciationsPronunciationsDeleteCsv.js +101 -0
- package/funcs/pronunciationsPronunciationsDeleteCsv.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.d.ts +3 -0
- package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.d.ts.map +1 -0
- package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.js +23 -0
- package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.js.map +1 -0
- package/openapi.json +17 -0
- package/package.json +1 -1
- package/sdk/pronunciations.d.ts +4 -0
- package/sdk/pronunciations.d.ts.map +1 -1
- package/sdk/pronunciations.js +7 -0
- package/sdk/pronunciations.js.map +1 -1
- package/src/funcs/pronunciationsPronunciationsDeleteCsv.ts +139 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.ts +26 -0
- package/src/sdk/pronunciations.ts +13 -0
package/src/mcp-server/server.ts
CHANGED
|
@@ -115,6 +115,7 @@ import { tool$promptsList } from "./tools/promptsList.js";
|
|
|
115
115
|
import { tool$promptsPromptGetSupportedLlms } from "./tools/promptsPromptGetSupportedLlms.js";
|
|
116
116
|
import { tool$promptsPromptsHistory } from "./tools/promptsPromptsHistory.js";
|
|
117
117
|
import { tool$promptsUpdate } from "./tools/promptsUpdate.js";
|
|
118
|
+
import { tool$pronunciationsPronunciationsDeleteCsv } from "./tools/pronunciationsPronunciationsDeleteCsv.js";
|
|
118
119
|
import { tool$pronunciationsPronunciationsDownloadCsv } from "./tools/pronunciationsPronunciationsDownloadCsv.js";
|
|
119
120
|
import { tool$pronunciationsPronunciationsGet } from "./tools/pronunciationsPronunciationsGet.js";
|
|
120
121
|
import { tool$pronunciationsPronunciationsGetMetadata } from "./tools/pronunciationsPronunciationsGetMetadata.js";
|
|
@@ -168,7 +169,7 @@ export function createMCPServer(deps: {
|
|
|
168
169
|
}) {
|
|
169
170
|
const server = new McpServer({
|
|
170
171
|
name: "SyllableSDK",
|
|
171
|
-
version: "1.0.2-rc.
|
|
172
|
+
version: "1.0.2-rc.2",
|
|
172
173
|
});
|
|
173
174
|
|
|
174
175
|
const client = new SyllableSDKCore({
|
|
@@ -239,6 +240,7 @@ export function createMCPServer(deps: {
|
|
|
239
240
|
tool(tool$pronunciationsPronunciationsGetMetadata);
|
|
240
241
|
tool(tool$pronunciationsPronunciationsDownloadCsv);
|
|
241
242
|
tool(tool$pronunciationsPronunciationsUploadCsv);
|
|
243
|
+
tool(tool$pronunciationsPronunciationsDeleteCsv);
|
|
242
244
|
tool(tool$rolesList);
|
|
243
245
|
tool(tool$rolesCreate);
|
|
244
246
|
tool(tool$rolesUpdate);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { pronunciationsPronunciationsDeleteCsv } from "../../funcs/pronunciationsPronunciationsDeleteCsv.js";
|
|
6
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
7
|
+
|
|
8
|
+
export const tool$pronunciationsPronunciationsDeleteCsv: ToolDefinition = {
|
|
9
|
+
name: "pronunciations-pronunciations-delete-csv",
|
|
10
|
+
description: `Delete Pronunciations Dictionary`,
|
|
11
|
+
tool: async (client, ctx) => {
|
|
12
|
+
const [result, apiCall] = await pronunciationsPronunciationsDeleteCsv(
|
|
13
|
+
client,
|
|
14
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
15
|
+
).$inspect();
|
|
16
|
+
|
|
17
|
+
if (!result.ok) {
|
|
18
|
+
return {
|
|
19
|
+
content: [{ type: "text", text: result.error.message }],
|
|
20
|
+
isError: true,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return formatResult(void 0, apiCall);
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { pronunciationsPronunciationsDeleteCsv } from "../funcs/pronunciationsPronunciationsDeleteCsv.js";
|
|
5
6
|
import { pronunciationsPronunciationsDownloadCsv } from "../funcs/pronunciationsPronunciationsDownloadCsv.js";
|
|
6
7
|
import { pronunciationsPronunciationsGet } from "../funcs/pronunciationsPronunciationsGet.js";
|
|
7
8
|
import { pronunciationsPronunciationsGetMetadata } from "../funcs/pronunciationsPronunciationsGetMetadata.js";
|
|
@@ -60,4 +61,16 @@ export class Pronunciations extends ClientSDK {
|
|
|
60
61
|
options,
|
|
61
62
|
));
|
|
62
63
|
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Delete Pronunciations Dictionary
|
|
67
|
+
*/
|
|
68
|
+
async pronunciationsDeleteCsv(
|
|
69
|
+
options?: RequestOptions,
|
|
70
|
+
): Promise<void> {
|
|
71
|
+
return unwrapAsync(pronunciationsPronunciationsDeleteCsv(
|
|
72
|
+
this,
|
|
73
|
+
options,
|
|
74
|
+
));
|
|
75
|
+
}
|
|
63
76
|
}
|