syllable-sdk 1.0.2-rc.3 → 1.0.2-rc.4
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 +47 -9
- package/bin/mcp-server.js.map +10 -9
- package/docs/sdks/pronunciations/README.md +4 -4
- package/examples/package-lock.json +1 -1
- package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts +2 -1
- package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -1
- package/funcs/pronunciationsPronunciationsDownloadCsv.js +10 -3
- package/funcs/pronunciationsPronunciationsDownloadCsv.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/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -1
- package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js +2 -1
- package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/pronunciationsdownloadcsv.d.ts +35 -0
- package/models/operations/pronunciationsdownloadcsv.d.ts.map +1 -0
- package/models/operations/pronunciationsdownloadcsv.js +82 -0
- package/models/operations/pronunciationsdownloadcsv.js.map +1 -0
- package/openapi.json +16 -1
- package/package.json +1 -1
- package/sdk/pronunciations.d.ts +2 -1
- package/sdk/pronunciations.d.ts.map +1 -1
- package/sdk/pronunciations.js.map +1 -1
- package/src/funcs/pronunciationsPronunciationsDownloadCsv.ts +15 -7
- 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/pronunciationsPronunciationsDownloadCsv.ts +3 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/pronunciationsdownloadcsv.ts +84 -0
- package/src/sdk/pronunciations.ts +2 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type PronunciationsDownloadCsvResponse = {
|
|
12
|
+
headers: { [k: string]: Array<string> };
|
|
13
|
+
result: ReadableStream<Uint8Array>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const PronunciationsDownloadCsvResponse$inboundSchema: z.ZodType<
|
|
18
|
+
PronunciationsDownloadCsvResponse,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
Headers: z.record(z.array(z.string())),
|
|
23
|
+
Result: z.instanceof(ReadableStream<Uint8Array>),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"Headers": "headers",
|
|
27
|
+
"Result": "result",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type PronunciationsDownloadCsvResponse$Outbound = {
|
|
33
|
+
Headers: { [k: string]: Array<string> };
|
|
34
|
+
Result: ReadableStream<Uint8Array>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const PronunciationsDownloadCsvResponse$outboundSchema: z.ZodType<
|
|
39
|
+
PronunciationsDownloadCsvResponse$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
PronunciationsDownloadCsvResponse
|
|
42
|
+
> = z.object({
|
|
43
|
+
headers: z.record(z.array(z.string())),
|
|
44
|
+
result: z.instanceof(ReadableStream<Uint8Array>),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
headers: "Headers",
|
|
48
|
+
result: "Result",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace PronunciationsDownloadCsvResponse$ {
|
|
57
|
+
/** @deprecated use `PronunciationsDownloadCsvResponse$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = PronunciationsDownloadCsvResponse$inboundSchema;
|
|
59
|
+
/** @deprecated use `PronunciationsDownloadCsvResponse$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema =
|
|
61
|
+
PronunciationsDownloadCsvResponse$outboundSchema;
|
|
62
|
+
/** @deprecated use `PronunciationsDownloadCsvResponse$Outbound` instead. */
|
|
63
|
+
export type Outbound = PronunciationsDownloadCsvResponse$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function pronunciationsDownloadCsvResponseToJSON(
|
|
67
|
+
pronunciationsDownloadCsvResponse: PronunciationsDownloadCsvResponse,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
PronunciationsDownloadCsvResponse$outboundSchema.parse(
|
|
71
|
+
pronunciationsDownloadCsvResponse,
|
|
72
|
+
),
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function pronunciationsDownloadCsvResponseFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<PronunciationsDownloadCsvResponse, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => PronunciationsDownloadCsvResponse$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'PronunciationsDownloadCsvResponse' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -9,6 +9,7 @@ import { pronunciationsPronunciationsGetMetadata } from "../funcs/pronunciations
|
|
|
9
9
|
import { pronunciationsPronunciationsUploadCsv } from "../funcs/pronunciationsPronunciationsUploadCsv.js";
|
|
10
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
11
|
import * as components from "../models/components/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
12
13
|
import { unwrapAsync } from "../types/fp.js";
|
|
13
14
|
|
|
14
15
|
export class Pronunciations extends ClientSDK {
|
|
@@ -41,7 +42,7 @@ export class Pronunciations extends ClientSDK {
|
|
|
41
42
|
*/
|
|
42
43
|
async pronunciationsDownloadCsv(
|
|
43
44
|
options?: RequestOptions,
|
|
44
|
-
): Promise<
|
|
45
|
+
): Promise<operations.PronunciationsDownloadCsvResponse> {
|
|
45
46
|
return unwrapAsync(pronunciationsPronunciationsDownloadCsv(
|
|
46
47
|
this,
|
|
47
48
|
options,
|