syllable-sdk 1.0.11 → 1.0.12-rc.1
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 +11 -42
- package/bin/mcp-server.js.map +9 -10
- package/examples/package-lock.json +2 -10
- package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts +1 -2
- package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -1
- package/funcs/pronunciationsPronunciationsDownloadCsv.js +3 -8
- package/funcs/pronunciationsPronunciationsDownloadCsv.js.map +1 -1
- 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/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/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js +1 -1
- package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js.map +1 -1
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/openapi.json +36 -42
- package/package.json +3 -6
- package/sdk/pronunciations.d.ts +1 -2
- package/sdk/pronunciations.d.ts.map +1 -1
- package/sdk/pronunciations.js.map +1 -1
- package/src/funcs/pronunciationsPronunciationsDownloadCsv.ts +6 -12
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.ts +1 -1
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/pronunciations.ts +1 -2
- package/models/operations/pronunciationsdownloadcsv.d.ts +0 -23
- package/models/operations/pronunciationsdownloadcsv.d.ts.map +0 -1
- package/models/operations/pronunciationsdownloadcsv.js +0 -71
- package/models/operations/pronunciationsdownloadcsv.js.map +0 -1
- package/src/models/operations/pronunciationsdownloadcsv.ts +0 -68
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pronunciations.d.ts","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"pronunciations.d.ts","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,cAAe,SAAQ,SAAS;IAC3C;;OAEG;IACG,iBAAiB,CACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAOvD;;OAEG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAOzC;;OAEG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAOtC;;OAEG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQtD;;OAEG;IACG,uBAAuB,CAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;CAMjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pronunciations.js","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gHAA0G;AAC1G,oHAA8G;AAC9G,oGAA8F;AAC9F,oHAA8G;AAC9G,gHAA0G;AAC1G,4CAA2D;
|
|
1
|
+
{"version":3,"file":"pronunciations.js","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gHAA0G;AAC1G,oHAA8G;AAC9G,oGAA8F;AAC9F,oHAA8G;AAC9G,gHAA0G;AAC1G,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,cAAe,SAAQ,mBAAS;IAC3C;;OAEG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oFAAuC,EACxD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oFAAuC,EACxD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gFAAqC,EACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gFAAqC,EACtD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA9DD,wCA8DC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import * as z from "zod/v3";
|
|
5
6
|
import { SyllableSDKCore } from "../core.js";
|
|
6
7
|
import * as M from "../lib/matchers.js";
|
|
7
8
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -18,7 +19,6 @@ import {
|
|
|
18
19
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
19
20
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
20
21
|
import { SyllableSDKError } from "../models/errors/syllablesdkerror.js";
|
|
21
|
-
import * as operations from "../models/operations/index.js";
|
|
22
22
|
import { APICall, APIPromise } from "../types/async.js";
|
|
23
23
|
import { Result } from "../types/fp.js";
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ export function pronunciationsPronunciationsDownloadCsv(
|
|
|
30
30
|
options?: RequestOptions,
|
|
31
31
|
): APIPromise<
|
|
32
32
|
Result<
|
|
33
|
-
|
|
33
|
+
ReadableStream<Uint8Array>,
|
|
34
34
|
| SyllableSDKError
|
|
35
35
|
| ResponseValidationError
|
|
36
36
|
| ConnectionError
|
|
@@ -53,7 +53,7 @@ async function $do(
|
|
|
53
53
|
): Promise<
|
|
54
54
|
[
|
|
55
55
|
Result<
|
|
56
|
-
|
|
56
|
+
ReadableStream<Uint8Array>,
|
|
57
57
|
| SyllableSDKError
|
|
58
58
|
| ResponseValidationError
|
|
59
59
|
| ConnectionError
|
|
@@ -116,12 +116,8 @@ async function $do(
|
|
|
116
116
|
}
|
|
117
117
|
const response = doResult.value;
|
|
118
118
|
|
|
119
|
-
const responseFields = {
|
|
120
|
-
HttpMeta: { Response: response, Request: req },
|
|
121
|
-
};
|
|
122
|
-
|
|
123
119
|
const [result] = await M.match<
|
|
124
|
-
|
|
120
|
+
ReadableStream<Uint8Array>,
|
|
125
121
|
| SyllableSDKError
|
|
126
122
|
| ResponseValidationError
|
|
127
123
|
| ConnectionError
|
|
@@ -131,14 +127,12 @@ async function $do(
|
|
|
131
127
|
| UnexpectedClientError
|
|
132
128
|
| SDKValidationError
|
|
133
129
|
>(
|
|
134
|
-
M.stream(200,
|
|
130
|
+
M.stream(200, z.instanceof(ReadableStream<Uint8Array>), {
|
|
135
131
|
ctype: "text/csv",
|
|
136
|
-
hdrs: true,
|
|
137
|
-
key: "Result",
|
|
138
132
|
}),
|
|
139
133
|
M.fail("4XX"),
|
|
140
134
|
M.fail("5XX"),
|
|
141
|
-
)(response, req
|
|
135
|
+
)(response, req);
|
|
142
136
|
if (!result.ok) {
|
|
143
137
|
return [result, { status: "complete", request: req, response }];
|
|
144
138
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.2",
|
|
64
|
-
sdkVersion: "1.0.
|
|
65
|
-
genVersion: "2.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
64
|
+
sdkVersion: "1.0.12-rc.1",
|
|
65
|
+
genVersion: "2.755.0",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.12-rc.1 2.755.0 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -75,7 +75,6 @@ export * from "./promptsdelete.js";
|
|
|
75
75
|
export * from "./promptsgetbyid.js";
|
|
76
76
|
export * from "./promptshistory.js";
|
|
77
77
|
export * from "./promptslist.js";
|
|
78
|
-
export * from "./pronunciationsdownloadcsv.js";
|
|
79
78
|
export * from "./rolesdelete.js";
|
|
80
79
|
export * from "./rolesgetbyid.js";
|
|
81
80
|
export * from "./roleslist.js";
|
|
@@ -9,7 +9,6 @@ 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";
|
|
13
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
14
13
|
|
|
15
14
|
export class Pronunciations extends ClientSDK {
|
|
@@ -42,7 +41,7 @@ export class Pronunciations extends ClientSDK {
|
|
|
42
41
|
*/
|
|
43
42
|
async pronunciationsDownloadCsv(
|
|
44
43
|
options?: RequestOptions,
|
|
45
|
-
): Promise<
|
|
44
|
+
): Promise<ReadableStream<Uint8Array>> {
|
|
46
45
|
return unwrapAsync(pronunciationsPronunciationsDownloadCsv(
|
|
47
46
|
this,
|
|
48
47
|
options,
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type PronunciationsDownloadCsvResponse = {
|
|
5
|
-
headers: {
|
|
6
|
-
[k: string]: Array<string>;
|
|
7
|
-
};
|
|
8
|
-
result: ReadableStream<Uint8Array>;
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const PronunciationsDownloadCsvResponse$inboundSchema: z.ZodType<PronunciationsDownloadCsvResponse, z.ZodTypeDef, unknown>;
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type PronunciationsDownloadCsvResponse$Outbound = {
|
|
14
|
-
Headers: {
|
|
15
|
-
[k: string]: Array<string>;
|
|
16
|
-
};
|
|
17
|
-
Result: ReadableStream<Uint8Array>;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const PronunciationsDownloadCsvResponse$outboundSchema: z.ZodType<PronunciationsDownloadCsvResponse$Outbound, z.ZodTypeDef, PronunciationsDownloadCsvResponse>;
|
|
21
|
-
export declare function pronunciationsDownloadCsvResponseToJSON(pronunciationsDownloadCsvResponse: PronunciationsDownloadCsvResponse): string;
|
|
22
|
-
export declare function pronunciationsDownloadCsvResponseFromJSON(jsonString: string): SafeParseResult<PronunciationsDownloadCsvResponse, SDKValidationError>;
|
|
23
|
-
//# sourceMappingURL=pronunciationsdownloadcsv.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pronunciationsdownloadcsv.d.ts","sourceRoot":"","sources":["../../src/models/operations/pronunciationsdownloadcsv.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,0CAA0C,EAC1C,CAAC,CAAC,UAAU,EACZ,iCAAiC,CASjC,CAAC;AAEH,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR;AACD,wBAAgB,yCAAyC,CACvD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iCAAiC,EAAE,kBAAkB,CAAC,CAMxE"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.PronunciationsDownloadCsvResponse$outboundSchema = exports.PronunciationsDownloadCsvResponse$inboundSchema = void 0;
|
|
40
|
-
exports.pronunciationsDownloadCsvResponseToJSON = pronunciationsDownloadCsvResponseToJSON;
|
|
41
|
-
exports.pronunciationsDownloadCsvResponseFromJSON = pronunciationsDownloadCsvResponseFromJSON;
|
|
42
|
-
const z = __importStar(require("zod/v3"));
|
|
43
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.PronunciationsDownloadCsvResponse$inboundSchema = z.object({
|
|
47
|
-
Headers: z.record(z.array(z.string())).default({}),
|
|
48
|
-
Result: z.instanceof((ReadableStream)),
|
|
49
|
-
}).transform((v) => {
|
|
50
|
-
return (0, primitives_js_1.remap)(v, {
|
|
51
|
-
"Headers": "headers",
|
|
52
|
-
"Result": "result",
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
/** @internal */
|
|
56
|
-
exports.PronunciationsDownloadCsvResponse$outboundSchema = z.object({
|
|
57
|
-
headers: z.record(z.array(z.string())),
|
|
58
|
-
result: z.instanceof((ReadableStream)),
|
|
59
|
-
}).transform((v) => {
|
|
60
|
-
return (0, primitives_js_1.remap)(v, {
|
|
61
|
-
headers: "Headers",
|
|
62
|
-
result: "Result",
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
function pronunciationsDownloadCsvResponseToJSON(pronunciationsDownloadCsvResponse) {
|
|
66
|
-
return JSON.stringify(exports.PronunciationsDownloadCsvResponse$outboundSchema.parse(pronunciationsDownloadCsvResponse));
|
|
67
|
-
}
|
|
68
|
-
function pronunciationsDownloadCsvResponseFromJSON(jsonString) {
|
|
69
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PronunciationsDownloadCsvResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PronunciationsDownloadCsvResponse' from JSON`);
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=pronunciationsdownloadcsv.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pronunciationsdownloadcsv.js","sourceRoot":"","sources":["../../src/models/operations/pronunciationsdownloadcsv.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDH,0FAQC;AACD,8FAQC;AA/DD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AASjD,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClD,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAA,cAA0B,CAAA,CAAC;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAA,cAA0B,CAAA,CAAC;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uCAAuC,CACrD,iCAAoE;IAEpE,OAAO,IAAI,CAAC,SAAS,CACnB,wDAAgD,CAAC,KAAK,CACpD,iCAAiC,CAClC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,yCAAyC,CACvD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uDAA+C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,+DAA+D,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
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())).default({}),
|
|
23
|
-
Result: z.instanceof(ReadableStream<Uint8Array>),
|
|
24
|
-
}).transform((v) => {
|
|
25
|
-
return remap$(v, {
|
|
26
|
-
"Headers": "headers",
|
|
27
|
-
"Result": "result",
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
/** @internal */
|
|
31
|
-
export type PronunciationsDownloadCsvResponse$Outbound = {
|
|
32
|
-
Headers: { [k: string]: Array<string> };
|
|
33
|
-
Result: ReadableStream<Uint8Array>;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const PronunciationsDownloadCsvResponse$outboundSchema: z.ZodType<
|
|
38
|
-
PronunciationsDownloadCsvResponse$Outbound,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
PronunciationsDownloadCsvResponse
|
|
41
|
-
> = z.object({
|
|
42
|
-
headers: z.record(z.array(z.string())),
|
|
43
|
-
result: z.instanceof(ReadableStream<Uint8Array>),
|
|
44
|
-
}).transform((v) => {
|
|
45
|
-
return remap$(v, {
|
|
46
|
-
headers: "Headers",
|
|
47
|
-
result: "Result",
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export function pronunciationsDownloadCsvResponseToJSON(
|
|
52
|
-
pronunciationsDownloadCsvResponse: PronunciationsDownloadCsvResponse,
|
|
53
|
-
): string {
|
|
54
|
-
return JSON.stringify(
|
|
55
|
-
PronunciationsDownloadCsvResponse$outboundSchema.parse(
|
|
56
|
-
pronunciationsDownloadCsvResponse,
|
|
57
|
-
),
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
export function pronunciationsDownloadCsvResponseFromJSON(
|
|
61
|
-
jsonString: string,
|
|
62
|
-
): SafeParseResult<PronunciationsDownloadCsvResponse, SDKValidationError> {
|
|
63
|
-
return safeParse(
|
|
64
|
-
jsonString,
|
|
65
|
-
(x) => PronunciationsDownloadCsvResponse$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
-
`Failed to parse 'PronunciationsDownloadCsvResponse' from JSON`,
|
|
67
|
-
);
|
|
68
|
-
}
|