syllable-sdk 1.0.1 → 1.0.2-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.
Files changed (86) hide show
  1. package/README.md +6 -0
  2. package/bin/mcp-server.js +480 -84
  3. package/bin/mcp-server.js.map +18 -7
  4. package/docs/sdks/batches/README.md +4 -4
  5. package/docs/sdks/pronunciations/README.md +207 -0
  6. package/docs/sdks/workflows/README.md +8 -8
  7. package/examples/package-lock.json +1 -1
  8. package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts +13 -0
  9. package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -0
  10. package/funcs/pronunciationsPronunciationsDownloadCsv.js +101 -0
  11. package/funcs/pronunciationsPronunciationsDownloadCsv.js.map +1 -0
  12. package/funcs/pronunciationsPronunciationsGet.d.ts +14 -0
  13. package/funcs/pronunciationsPronunciationsGet.d.ts.map +1 -0
  14. package/funcs/pronunciationsPronunciationsGet.js +101 -0
  15. package/funcs/pronunciationsPronunciationsGet.js.map +1 -0
  16. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts +14 -0
  17. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -0
  18. package/funcs/pronunciationsPronunciationsGetMetadata.js +101 -0
  19. package/funcs/pronunciationsPronunciationsGetMetadata.js.map +1 -0
  20. package/jsr.json +1 -1
  21. package/lib/config.d.ts +3 -3
  22. package/lib/config.js +3 -3
  23. package/lib/config.js.map +1 -1
  24. package/mcp-server/mcp-server.js +1 -1
  25. package/mcp-server/mcp-server.js.map +1 -1
  26. package/mcp-server/server.d.ts.map +1 -1
  27. package/mcp-server/server.js +7 -1
  28. package/mcp-server/server.js.map +1 -1
  29. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts +3 -0
  30. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -0
  31. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js +23 -0
  32. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js.map +1 -0
  33. package/mcp-server/tools/pronunciationsPronunciationsGet.d.ts +3 -0
  34. package/mcp-server/tools/pronunciationsPronunciationsGet.d.ts.map +1 -0
  35. package/mcp-server/tools/pronunciationsPronunciationsGet.js +24 -0
  36. package/mcp-server/tools/pronunciationsPronunciationsGet.js.map +1 -0
  37. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.d.ts +3 -0
  38. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -0
  39. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.js +24 -0
  40. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.js.map +1 -0
  41. package/models/components/dictionarymetadata.d.ts +36 -0
  42. package/models/components/dictionarymetadata.d.ts.map +1 -0
  43. package/models/components/dictionarymetadata.js +73 -0
  44. package/models/components/dictionarymetadata.js.map +1 -0
  45. package/models/components/index.d.ts +5 -0
  46. package/models/components/index.d.ts.map +1 -1
  47. package/models/components/index.js +5 -0
  48. package/models/components/index.js.map +1 -1
  49. package/models/components/matchtype.d.ts +31 -0
  50. package/models/components/matchtype.d.ts.map +1 -0
  51. package/models/components/matchtype.js +63 -0
  52. package/models/components/matchtype.js.map +1 -0
  53. package/models/components/pronunciationoverride.d.ts +73 -0
  54. package/models/components/pronunciationoverride.d.ts.map +1 -0
  55. package/models/components/pronunciationoverride.js +120 -0
  56. package/models/components/pronunciationoverride.js.map +1 -0
  57. package/models/components/pronunciationoverridesdictionary.d.ts +68 -0
  58. package/models/components/pronunciationoverridesdictionary.d.ts.map +1 -0
  59. package/models/components/pronunciationoverridesdictionary.js +78 -0
  60. package/models/components/pronunciationoverridesdictionary.js.map +1 -0
  61. package/models/components/voicedisplayinfo.d.ts +34 -0
  62. package/models/components/voicedisplayinfo.d.ts.map +1 -0
  63. package/models/components/voicedisplayinfo.js +80 -0
  64. package/models/components/voicedisplayinfo.js.map +1 -0
  65. package/openapi.json +284 -33
  66. package/package.json +1 -1
  67. package/sdk/pronunciations.d.ts +12 -0
  68. package/sdk/pronunciations.d.ts.map +1 -1
  69. package/sdk/pronunciations.js +21 -0
  70. package/sdk/pronunciations.js.map +1 -1
  71. package/src/funcs/pronunciationsPronunciationsDownloadCsv.ts +139 -0
  72. package/src/funcs/pronunciationsPronunciationsGet.ts +139 -0
  73. package/src/funcs/pronunciationsPronunciationsGetMetadata.ts +139 -0
  74. package/src/lib/config.ts +3 -3
  75. package/src/mcp-server/mcp-server.ts +1 -1
  76. package/src/mcp-server/server.ts +7 -1
  77. package/src/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.ts +26 -0
  78. package/src/mcp-server/tools/pronunciationsPronunciationsGet.ts +28 -0
  79. package/src/mcp-server/tools/pronunciationsPronunciationsGetMetadata.ts +28 -0
  80. package/src/models/components/dictionarymetadata.ts +77 -0
  81. package/src/models/components/index.ts +5 -0
  82. package/src/models/components/matchtype.ts +36 -0
  83. package/src/models/components/pronunciationoverride.ts +166 -0
  84. package/src/models/components/pronunciationoverridesdictionary.ts +124 -0
  85. package/src/models/components/voicedisplayinfo.ts +82 -0
  86. package/src/sdk/pronunciations.ts +39 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchtype.d.ts","sourceRoot":"","sources":["../../src/models/components/matchtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,SAAS;;CAEZ,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAErD,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,SAAS,CAC9C,CAAC;AAEzB,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,SAAS,CAC9C,CAAC;AAE1B;;;GAGG;AACH,yBAAiB,UAAU,CAAC;IAC1B,yDAAyD;IAClD,MAAM,aAAa;;MAA0B,CAAC;IACrD,0DAA0D;IACnD,MAAM,cAAc;;MAA2B,CAAC;CACxD"}
@@ -0,0 +1,63 @@
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.MatchType$ = exports.MatchType$outboundSchema = exports.MatchType$inboundSchema = exports.MatchType = void 0;
40
+ const z = __importStar(require("zod"));
41
+ /**
42
+ * Matching strategy for override text.
43
+ */
44
+ exports.MatchType = {
45
+ Exact: "exact",
46
+ };
47
+ /** @internal */
48
+ exports.MatchType$inboundSchema = z
49
+ .nativeEnum(exports.MatchType);
50
+ /** @internal */
51
+ exports.MatchType$outboundSchema = exports.MatchType$inboundSchema;
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
+ var MatchType$;
57
+ (function (MatchType$) {
58
+ /** @deprecated use `MatchType$inboundSchema` instead. */
59
+ MatchType$.inboundSchema = exports.MatchType$inboundSchema;
60
+ /** @deprecated use `MatchType$outboundSchema` instead. */
61
+ MatchType$.outboundSchema = exports.MatchType$outboundSchema;
62
+ })(MatchType$ || (exports.MatchType$ = MatchType$ = {}));
63
+ //# sourceMappingURL=matchtype.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchtype.js","sourceRoot":"","sources":["../../src/models/components/matchtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,KAAK,EAAE,OAAO;CACN,CAAC;AAMX,gBAAgB;AACH,QAAA,uBAAuB,GAAsC,CAAC;KACxE,UAAU,CAAC,iBAAS,CAAC,CAAC;AAEzB,gBAAgB;AACH,QAAA,wBAAwB,GACnC,+BAAuB,CAAC;AAE1B;;;GAGG;AACH,IAAiB,UAAU,CAK1B;AALD,WAAiB,UAAU;IACzB,yDAAyD;IAC5C,wBAAa,GAAG,+BAAuB,CAAC;IACrD,0DAA0D;IAC7C,yBAAc,GAAG,gCAAwB,CAAC;AACzD,CAAC,EALgB,UAAU,0BAAV,UAAU,QAK1B"}
@@ -0,0 +1,73 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { MatchType } from "./matchtype.js";
5
+ export type Language = string | Array<string>;
6
+ /**
7
+ * A single text replacement rule.
8
+ */
9
+ export type PronunciationOverride = {
10
+ text: string;
11
+ replacement: string;
12
+ language?: string | Array<string> | null | undefined;
13
+ provider?: string | null | undefined;
14
+ voice?: string | null | undefined;
15
+ /**
16
+ * Matching strategy for override text.
17
+ */
18
+ matchType?: MatchType | undefined;
19
+ matchOptions?: Array<string> | undefined;
20
+ enabled?: boolean | undefined;
21
+ notes?: string | null | undefined;
22
+ };
23
+ /** @internal */
24
+ export declare const Language$inboundSchema: z.ZodType<Language, z.ZodTypeDef, unknown>;
25
+ /** @internal */
26
+ export type Language$Outbound = string | Array<string>;
27
+ /** @internal */
28
+ export declare const Language$outboundSchema: z.ZodType<Language$Outbound, z.ZodTypeDef, Language>;
29
+ /**
30
+ * @internal
31
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
32
+ */
33
+ export declare namespace Language$ {
34
+ /** @deprecated use `Language$inboundSchema` instead. */
35
+ const inboundSchema: z.ZodType<Language, z.ZodTypeDef, unknown>;
36
+ /** @deprecated use `Language$outboundSchema` instead. */
37
+ const outboundSchema: z.ZodType<Language$Outbound, z.ZodTypeDef, Language>;
38
+ /** @deprecated use `Language$Outbound` instead. */
39
+ type Outbound = Language$Outbound;
40
+ }
41
+ export declare function languageToJSON(language: Language): string;
42
+ export declare function languageFromJSON(jsonString: string): SafeParseResult<Language, SDKValidationError>;
43
+ /** @internal */
44
+ export declare const PronunciationOverride$inboundSchema: z.ZodType<PronunciationOverride, z.ZodTypeDef, unknown>;
45
+ /** @internal */
46
+ export type PronunciationOverride$Outbound = {
47
+ text: string;
48
+ replacement: string;
49
+ language?: string | Array<string> | null | undefined;
50
+ provider?: string | null | undefined;
51
+ voice?: string | null | undefined;
52
+ match_type?: string | undefined;
53
+ match_options?: Array<string> | undefined;
54
+ enabled: boolean;
55
+ notes?: string | null | undefined;
56
+ };
57
+ /** @internal */
58
+ export declare const PronunciationOverride$outboundSchema: z.ZodType<PronunciationOverride$Outbound, z.ZodTypeDef, PronunciationOverride>;
59
+ /**
60
+ * @internal
61
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
+ */
63
+ export declare namespace PronunciationOverride$ {
64
+ /** @deprecated use `PronunciationOverride$inboundSchema` instead. */
65
+ const inboundSchema: z.ZodType<PronunciationOverride, z.ZodTypeDef, unknown>;
66
+ /** @deprecated use `PronunciationOverride$outboundSchema` instead. */
67
+ const outboundSchema: z.ZodType<PronunciationOverride$Outbound, z.ZodTypeDef, PronunciationOverride>;
68
+ /** @deprecated use `PronunciationOverride$Outbound` instead. */
69
+ type Outbound = PronunciationOverride$Outbound;
70
+ }
71
+ export declare function pronunciationOverrideToJSON(pronunciationOverride: PronunciationOverride): string;
72
+ export declare function pronunciationOverrideFromJSON(jsonString: string): SafeParseResult<PronunciationOverride, SDKValidationError>;
73
+ //# sourceMappingURL=pronunciationoverride.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pronunciationoverride.d.ts","sourceRoot":"","sources":["../../src/models/components/pronunciationoverride.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,IAA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AAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAgBrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -0,0 +1,120 @@
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.PronunciationOverride$ = exports.PronunciationOverride$outboundSchema = exports.PronunciationOverride$inboundSchema = exports.Language$ = exports.Language$outboundSchema = exports.Language$inboundSchema = void 0;
40
+ exports.languageToJSON = languageToJSON;
41
+ exports.languageFromJSON = languageFromJSON;
42
+ exports.pronunciationOverrideToJSON = pronunciationOverrideToJSON;
43
+ exports.pronunciationOverrideFromJSON = pronunciationOverrideFromJSON;
44
+ const z = __importStar(require("zod"));
45
+ const primitives_js_1 = require("../../lib/primitives.js");
46
+ const schemas_js_1 = require("../../lib/schemas.js");
47
+ const matchtype_js_1 = require("./matchtype.js");
48
+ /** @internal */
49
+ exports.Language$inboundSchema = z.union([z.string(), z.array(z.string())]);
50
+ /** @internal */
51
+ exports.Language$outboundSchema = z.union([z.string(), z.array(z.string())]);
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
+ var Language$;
57
+ (function (Language$) {
58
+ /** @deprecated use `Language$inboundSchema` instead. */
59
+ Language$.inboundSchema = exports.Language$inboundSchema;
60
+ /** @deprecated use `Language$outboundSchema` instead. */
61
+ Language$.outboundSchema = exports.Language$outboundSchema;
62
+ })(Language$ || (exports.Language$ = Language$ = {}));
63
+ function languageToJSON(language) {
64
+ return JSON.stringify(exports.Language$outboundSchema.parse(language));
65
+ }
66
+ function languageFromJSON(jsonString) {
67
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Language$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Language' from JSON`);
68
+ }
69
+ /** @internal */
70
+ exports.PronunciationOverride$inboundSchema = z.object({
71
+ text: z.string(),
72
+ replacement: z.string(),
73
+ language: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
74
+ provider: z.nullable(z.string()).optional(),
75
+ voice: z.nullable(z.string()).optional(),
76
+ match_type: matchtype_js_1.MatchType$inboundSchema.optional(),
77
+ match_options: z.array(z.string()).optional(),
78
+ enabled: z.boolean().default(true),
79
+ notes: z.nullable(z.string()).optional(),
80
+ }).transform((v) => {
81
+ return (0, primitives_js_1.remap)(v, {
82
+ "match_type": "matchType",
83
+ "match_options": "matchOptions",
84
+ });
85
+ });
86
+ /** @internal */
87
+ exports.PronunciationOverride$outboundSchema = z.object({
88
+ text: z.string(),
89
+ replacement: z.string(),
90
+ language: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
91
+ provider: z.nullable(z.string()).optional(),
92
+ voice: z.nullable(z.string()).optional(),
93
+ matchType: matchtype_js_1.MatchType$outboundSchema.optional(),
94
+ matchOptions: z.array(z.string()).optional(),
95
+ enabled: z.boolean().default(true),
96
+ notes: z.nullable(z.string()).optional(),
97
+ }).transform((v) => {
98
+ return (0, primitives_js_1.remap)(v, {
99
+ matchType: "match_type",
100
+ matchOptions: "match_options",
101
+ });
102
+ });
103
+ /**
104
+ * @internal
105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
106
+ */
107
+ var PronunciationOverride$;
108
+ (function (PronunciationOverride$) {
109
+ /** @deprecated use `PronunciationOverride$inboundSchema` instead. */
110
+ PronunciationOverride$.inboundSchema = exports.PronunciationOverride$inboundSchema;
111
+ /** @deprecated use `PronunciationOverride$outboundSchema` instead. */
112
+ PronunciationOverride$.outboundSchema = exports.PronunciationOverride$outboundSchema;
113
+ })(PronunciationOverride$ || (exports.PronunciationOverride$ = PronunciationOverride$ = {}));
114
+ function pronunciationOverrideToJSON(pronunciationOverride) {
115
+ return JSON.stringify(exports.PronunciationOverride$outboundSchema.parse(pronunciationOverride));
116
+ }
117
+ function pronunciationOverrideFromJSON(jsonString) {
118
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PronunciationOverride$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PronunciationOverride' from JSON`);
119
+ }
120
+ //# sourceMappingURL=pronunciationoverride.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pronunciationoverride.js","sourceRoot":"","sources":["../../src/models/components/pronunciationoverride.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DH,wCAEC;AAED,4CAQC;AAwED,kEAMC;AAED,sEAQC;AAjKD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iDAIwB;AAsBxB,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AAK/C,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AAE/C;;;GAGG;AACH,IAAiB,SAAS,CAOzB;AAPD,WAAiB,SAAS;I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AAY;QACvB,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,68 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { DictionaryMetadata, DictionaryMetadata$Outbound } from "./dictionarymetadata.js";
5
+ import { PronunciationOverride, PronunciationOverride$Outbound } from "./pronunciationoverride.js";
6
+ import { VoiceDisplayInfo, VoiceDisplayInfo$Outbound } from "./voicedisplayinfo.js";
7
+ /**
8
+ * Container for all TTS pronunciation overrides belonging to the sub-organisation.
9
+ *
10
+ * @remarks
11
+ *
12
+ * Stored in the `config_values` table via ConfigDao. The Syllable API persists uploaded CSV
13
+ * pronunciation rules, and Bubblegum's PronunciationOverridesPlugin reads them to apply text
14
+ * replacements before TTS processing.
15
+ *
16
+ * Example:
17
+ * dao = ConfigDao(db_session)
18
+ * await dao.register_model('tts.pronunciations', PronunciationOverridesDictionary)
19
+ *
20
+ * pod = PronunciationOverridesDictionary(
21
+ * pronunciations=[...],
22
+ * metadata=DictionaryMetadata(entries=10, hash='sha256:...'),
23
+ * )
24
+ * result = await dao.upsert('pronunciations_v1', pod)
25
+ *
26
+ * record = await dao.get('pronunciations_v1', PronunciationOverridesDictionary)
27
+ * if record:
28
+ * pronunciations = record.value.pronunciations
29
+ */
30
+ export type PronunciationOverridesDictionary = {
31
+ type?: string | undefined;
32
+ pronunciations: Array<PronunciationOverride>;
33
+ voices?: {
34
+ [k: string]: VoiceDisplayInfo;
35
+ } | undefined;
36
+ /**
37
+ * Audit metadata associated with a dictionary.
38
+ */
39
+ metadata: DictionaryMetadata;
40
+ };
41
+ /** @internal */
42
+ export declare const PronunciationOverridesDictionary$inboundSchema: z.ZodType<PronunciationOverridesDictionary, z.ZodTypeDef, unknown>;
43
+ /** @internal */
44
+ export type PronunciationOverridesDictionary$Outbound = {
45
+ type: string;
46
+ pronunciations: Array<PronunciationOverride$Outbound>;
47
+ voices?: {
48
+ [k: string]: VoiceDisplayInfo$Outbound;
49
+ } | undefined;
50
+ metadata: DictionaryMetadata$Outbound;
51
+ };
52
+ /** @internal */
53
+ export declare const PronunciationOverridesDictionary$outboundSchema: z.ZodType<PronunciationOverridesDictionary$Outbound, z.ZodTypeDef, PronunciationOverridesDictionary>;
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export declare namespace PronunciationOverridesDictionary$ {
59
+ /** @deprecated use `PronunciationOverridesDictionary$inboundSchema` instead. */
60
+ const inboundSchema: z.ZodType<PronunciationOverridesDictionary, z.ZodTypeDef, unknown>;
61
+ /** @deprecated use `PronunciationOverridesDictionary$outboundSchema` instead. */
62
+ const outboundSchema: z.ZodType<PronunciationOverridesDictionary$Outbound, z.ZodTypeDef, PronunciationOverridesDictionary>;
63
+ /** @deprecated use `PronunciationOverridesDictionary$Outbound` instead. */
64
+ type Outbound = PronunciationOverridesDictionary$Outbound;
65
+ }
66
+ export declare function pronunciationOverridesDictionaryToJSON(pronunciationOverridesDictionary: PronunciationOverridesDictionary): string;
67
+ export declare function pronunciationOverridesDictionaryFromJSON(jsonString: string): SafeParseResult<PronunciationOverridesDictionary, SDKValidationError>;
68
+ //# sourceMappingURL=pronunciationoverridesdictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pronunciationoverridesdictionary.d.ts","sourceRoot":"","sources":["../../src/models/components/pronunciationoverridesdictionary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,cAAc,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC7C,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,GAAG,SAAS,CAAC;IACvD;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,yCAAyC,GAAG;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;IACtD,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,yBAAyB,CAAA;KAAE,GAAG,SAAS,CAAC;IAChE,QAAQ,EAAE,2BAA2B,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAMhC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iCAAiC,CAAC;IACjD,gFAAgF;IACzE,MAAM,aAAa,oEAAiD,CAAC;IAC5E,iFAAiF;IAC1E,MAAM,cAAc,sGAAkD,CAAC;IAC9E,2EAA2E;IAC3E,KAAY,QAAQ,GAAG,yCAAyC,CAAC;CAClE;AAED,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR;AAED,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
@@ -0,0 +1,78 @@
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.PronunciationOverridesDictionary$ = exports.PronunciationOverridesDictionary$outboundSchema = exports.PronunciationOverridesDictionary$inboundSchema = void 0;
40
+ exports.pronunciationOverridesDictionaryToJSON = pronunciationOverridesDictionaryToJSON;
41
+ exports.pronunciationOverridesDictionaryFromJSON = pronunciationOverridesDictionaryFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const dictionarymetadata_js_1 = require("./dictionarymetadata.js");
45
+ const pronunciationoverride_js_1 = require("./pronunciationoverride.js");
46
+ const voicedisplayinfo_js_1 = require("./voicedisplayinfo.js");
47
+ /** @internal */
48
+ exports.PronunciationOverridesDictionary$inboundSchema = z.object({
49
+ type: z.string().default("pronunciations_v1"),
50
+ pronunciations: z.array(pronunciationoverride_js_1.PronunciationOverride$inboundSchema),
51
+ voices: z.record(voicedisplayinfo_js_1.VoiceDisplayInfo$inboundSchema).optional(),
52
+ metadata: dictionarymetadata_js_1.DictionaryMetadata$inboundSchema,
53
+ });
54
+ /** @internal */
55
+ exports.PronunciationOverridesDictionary$outboundSchema = z.object({
56
+ type: z.string().default("pronunciations_v1"),
57
+ pronunciations: z.array(pronunciationoverride_js_1.PronunciationOverride$outboundSchema),
58
+ voices: z.record(voicedisplayinfo_js_1.VoiceDisplayInfo$outboundSchema).optional(),
59
+ metadata: dictionarymetadata_js_1.DictionaryMetadata$outboundSchema,
60
+ });
61
+ /**
62
+ * @internal
63
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
+ */
65
+ var PronunciationOverridesDictionary$;
66
+ (function (PronunciationOverridesDictionary$) {
67
+ /** @deprecated use `PronunciationOverridesDictionary$inboundSchema` instead. */
68
+ PronunciationOverridesDictionary$.inboundSchema = exports.PronunciationOverridesDictionary$inboundSchema;
69
+ /** @deprecated use `PronunciationOverridesDictionary$outboundSchema` instead. */
70
+ PronunciationOverridesDictionary$.outboundSchema = exports.PronunciationOverridesDictionary$outboundSchema;
71
+ })(PronunciationOverridesDictionary$ || (exports.PronunciationOverridesDictionary$ = PronunciationOverridesDictionary$ = {}));
72
+ function pronunciationOverridesDictionaryToJSON(pronunciationOverridesDictionary) {
73
+ return JSON.stringify(exports.PronunciationOverridesDictionary$outboundSchema.parse(pronunciationOverridesDictionary));
74
+ }
75
+ function pronunciationOverridesDictionaryFromJSON(jsonString) {
76
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PronunciationOverridesDictionary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PronunciationOverridesDictionary' from JSON`);
77
+ }
78
+ //# sourceMappingURL=pronunciationoverridesdictionary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pronunciationoverridesdictionary.js","sourceRoot":"","sources":["../../src/models/components/pronunciationoverridesdictionary.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGH,wFAQC;AAED,4FAQC;AAvHD,uCAAyB;AACzB,qDAAiD;AAGjD,mEAKiC;AACjC,yEAKoC;AACpC,+DAK+B;AAmC/B,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC;IAC7C,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,8DAAmC,CAAC;IAC5D,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,oDAA8B,CAAC,CAAC,QAAQ,EAAE;IAC3D,QAAQ,EAAE,wDAAgC;CAC3C,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC;IAC7C,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,+DAAoC,CAAC;IAC7D,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,qDAA+B,CAAC,CAAC,QAAQ,EAAE;IAC5D,QAAQ,EAAE,yDAAiC;CAC5C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iCAAiC,CAOjD;AAPD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,sDAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,uDAA+C,CAAC;AAGhF,CAAC,EAPgB,iCAAiC,iDAAjC,iCAAiC,QAOjD;AAED,SAAgB,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,uDAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,wCAAwC,CACtD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sDAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ /**
5
+ * Display metadata for a canonical voice identifier.
6
+ */
7
+ export type VoiceDisplayInfo = {
8
+ displayName: string;
9
+ provider: string;
10
+ };
11
+ /** @internal */
12
+ export declare const VoiceDisplayInfo$inboundSchema: z.ZodType<VoiceDisplayInfo, z.ZodTypeDef, unknown>;
13
+ /** @internal */
14
+ export type VoiceDisplayInfo$Outbound = {
15
+ display_name: string;
16
+ provider: string;
17
+ };
18
+ /** @internal */
19
+ export declare const VoiceDisplayInfo$outboundSchema: z.ZodType<VoiceDisplayInfo$Outbound, z.ZodTypeDef, VoiceDisplayInfo>;
20
+ /**
21
+ * @internal
22
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
23
+ */
24
+ export declare namespace VoiceDisplayInfo$ {
25
+ /** @deprecated use `VoiceDisplayInfo$inboundSchema` instead. */
26
+ const inboundSchema: z.ZodType<VoiceDisplayInfo, z.ZodTypeDef, unknown>;
27
+ /** @deprecated use `VoiceDisplayInfo$outboundSchema` instead. */
28
+ const outboundSchema: z.ZodType<VoiceDisplayInfo$Outbound, z.ZodTypeDef, VoiceDisplayInfo>;
29
+ /** @deprecated use `VoiceDisplayInfo$Outbound` instead. */
30
+ type Outbound = VoiceDisplayInfo$Outbound;
31
+ }
32
+ export declare function voiceDisplayInfoToJSON(voiceDisplayInfo: VoiceDisplayInfo): string;
33
+ export declare function voiceDisplayInfoFromJSON(jsonString: string): SafeParseResult<VoiceDisplayInfo, SDKValidationError>;
34
+ //# sourceMappingURL=voicedisplayinfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voicedisplayinfo.d.ts","sourceRoot":"","sources":["../../src/models/components/voicedisplayinfo.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAQhB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -0,0 +1,80 @@
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.VoiceDisplayInfo$ = exports.VoiceDisplayInfo$outboundSchema = exports.VoiceDisplayInfo$inboundSchema = void 0;
40
+ exports.voiceDisplayInfoToJSON = voiceDisplayInfoToJSON;
41
+ exports.voiceDisplayInfoFromJSON = voiceDisplayInfoFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ /** @internal */
46
+ exports.VoiceDisplayInfo$inboundSchema = z.object({
47
+ display_name: z.string(),
48
+ provider: z.string(),
49
+ }).transform((v) => {
50
+ return (0, primitives_js_1.remap)(v, {
51
+ "display_name": "displayName",
52
+ });
53
+ });
54
+ /** @internal */
55
+ exports.VoiceDisplayInfo$outboundSchema = z.object({
56
+ displayName: z.string(),
57
+ provider: z.string(),
58
+ }).transform((v) => {
59
+ return (0, primitives_js_1.remap)(v, {
60
+ displayName: "display_name",
61
+ });
62
+ });
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ var VoiceDisplayInfo$;
68
+ (function (VoiceDisplayInfo$) {
69
+ /** @deprecated use `VoiceDisplayInfo$inboundSchema` instead. */
70
+ VoiceDisplayInfo$.inboundSchema = exports.VoiceDisplayInfo$inboundSchema;
71
+ /** @deprecated use `VoiceDisplayInfo$outboundSchema` instead. */
72
+ VoiceDisplayInfo$.outboundSchema = exports.VoiceDisplayInfo$outboundSchema;
73
+ })(VoiceDisplayInfo$ || (exports.VoiceDisplayInfo$ = VoiceDisplayInfo$ = {}));
74
+ function voiceDisplayInfoToJSON(voiceDisplayInfo) {
75
+ return JSON.stringify(exports.VoiceDisplayInfo$outboundSchema.parse(voiceDisplayInfo));
76
+ }
77
+ function voiceDisplayInfoFromJSON(jsonString) {
78
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VoiceDisplayInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VoiceDisplayInfo' from JSON`);
79
+ }
80
+ //# sourceMappingURL=voicedisplayinfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voicedisplayinfo.js","sourceRoot":"","sources":["../../src/models/components/voicedisplayinfo.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DH,wDAMC;AAED,4DAQC;AA7ED,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAYjD,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC,SA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