syllable-sdk 1.0.16-rc.3 → 1.0.16-rc.7

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 (55) hide show
  1. package/bin/mcp-server.js +30 -49
  2. package/bin/mcp-server.js.map +12 -13
  3. package/examples/package-lock.json +1 -1
  4. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts +1 -1
  5. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -1
  6. package/funcs/pronunciationsPronunciationsGetMetadata.js +1 -1
  7. package/funcs/pronunciationsPronunciationsGetMetadata.js.map +1 -1
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +3 -3
  10. package/lib/config.js +3 -3
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/server.js +1 -1
  13. package/models/components/agentsttprovider.d.ts +1 -0
  14. package/models/components/agentsttprovider.d.ts.map +1 -1
  15. package/models/components/agentsttprovider.js +1 -0
  16. package/models/components/agentsttprovider.js.map +1 -1
  17. package/models/components/bridgephrasesconfig.d.ts +0 -6
  18. package/models/components/bridgephrasesconfig.d.ts.map +1 -1
  19. package/models/components/bridgephrasesconfig.js +0 -5
  20. package/models/components/bridgephrasesconfig.js.map +1 -1
  21. package/models/components/dictionarymetadata.d.ts +24 -0
  22. package/models/components/dictionarymetadata.d.ts.map +1 -0
  23. package/models/components/{schemasttsv1pronunciationsdictionarymetadata.js → dictionarymetadata.js} +10 -10
  24. package/models/components/dictionarymetadata.js.map +1 -0
  25. package/models/components/index.d.ts +1 -2
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +1 -2
  28. package/models/components/index.js.map +1 -1
  29. package/models/components/pronunciationoverridesdictionary.d.ts +3 -3
  30. package/models/components/pronunciationoverridesdictionary.d.ts.map +1 -1
  31. package/models/components/pronunciationoverridesdictionary.js +3 -3
  32. package/models/components/pronunciationoverridesdictionary.js.map +1 -1
  33. package/openapi.json +64 -101
  34. package/package.json +1 -1
  35. package/sdk/pronunciations.d.ts +1 -1
  36. package/sdk/pronunciations.d.ts.map +1 -1
  37. package/src/funcs/pronunciationsPronunciationsGetMetadata.ts +4 -7
  38. package/src/lib/config.ts +3 -3
  39. package/src/mcp-server/mcp-server.ts +1 -1
  40. package/src/mcp-server/server.ts +1 -1
  41. package/src/models/components/agentsttprovider.ts +1 -0
  42. package/src/models/components/bridgephrasesconfig.ts +0 -17
  43. package/src/models/components/dictionarymetadata.ts +62 -0
  44. package/src/models/components/index.ts +1 -2
  45. package/src/models/components/pronunciationoverridesdictionary.ts +10 -10
  46. package/src/sdk/pronunciations.ts +1 -1
  47. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.d.ts +0 -33
  48. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.d.ts.map +0 -1
  49. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.js +0 -62
  50. package/models/components/schemascortexv1bridgephrasesdictionarymetadata.js.map +0 -1
  51. package/models/components/schemasttsv1pronunciationsdictionarymetadata.d.ts +0 -24
  52. package/models/components/schemasttsv1pronunciationsdictionarymetadata.d.ts.map +0 -1
  53. package/models/components/schemasttsv1pronunciationsdictionarymetadata.js.map +0 -1
  54. package/src/models/components/schemascortexv1bridgephrasesdictionarymetadata.ts +0 -82
  55. package/src/models/components/schemasttsv1pronunciationsdictionarymetadata.ts +0 -73
@@ -6,18 +6,18 @@ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ DictionaryMetadata,
11
+ DictionaryMetadata$inboundSchema,
12
+ DictionaryMetadata$Outbound,
13
+ DictionaryMetadata$outboundSchema,
14
+ } from "./dictionarymetadata.js";
9
15
  import {
10
16
  PronunciationOverride,
11
17
  PronunciationOverride$inboundSchema,
12
18
  PronunciationOverride$Outbound,
13
19
  PronunciationOverride$outboundSchema,
14
20
  } from "./pronunciationoverride.js";
15
- import {
16
- SchemasTtsV1PronunciationsDictionaryMetadata,
17
- SchemasTtsV1PronunciationsDictionaryMetadata$inboundSchema,
18
- SchemasTtsV1PronunciationsDictionaryMetadata$Outbound,
19
- SchemasTtsV1PronunciationsDictionaryMetadata$outboundSchema,
20
- } from "./schemasttsv1pronunciationsdictionarymetadata.js";
21
21
  import {
22
22
  VoiceDisplayInfo,
23
23
  VoiceDisplayInfo$inboundSchema,
@@ -55,7 +55,7 @@ export type PronunciationOverridesDictionary = {
55
55
  /**
56
56
  * Audit metadata associated with a dictionary.
57
57
  */
58
- metadata: SchemasTtsV1PronunciationsDictionaryMetadata;
58
+ metadata: DictionaryMetadata;
59
59
  };
60
60
 
61
61
  /** @internal */
@@ -67,14 +67,14 @@ export const PronunciationOverridesDictionary$inboundSchema: z.ZodType<
67
67
  type: z.string().default("pronunciations_v1"),
68
68
  pronunciations: z.array(PronunciationOverride$inboundSchema),
69
69
  voices: z.record(VoiceDisplayInfo$inboundSchema).optional(),
70
- metadata: SchemasTtsV1PronunciationsDictionaryMetadata$inboundSchema,
70
+ metadata: DictionaryMetadata$inboundSchema,
71
71
  });
72
72
  /** @internal */
73
73
  export type PronunciationOverridesDictionary$Outbound = {
74
74
  type: string;
75
75
  pronunciations: Array<PronunciationOverride$Outbound>;
76
76
  voices?: { [k: string]: VoiceDisplayInfo$Outbound } | undefined;
77
- metadata: SchemasTtsV1PronunciationsDictionaryMetadata$Outbound;
77
+ metadata: DictionaryMetadata$Outbound;
78
78
  };
79
79
 
80
80
  /** @internal */
@@ -86,7 +86,7 @@ export const PronunciationOverridesDictionary$outboundSchema: z.ZodType<
86
86
  type: z.string().default("pronunciations_v1"),
87
87
  pronunciations: z.array(PronunciationOverride$outboundSchema),
88
88
  voices: z.record(VoiceDisplayInfo$outboundSchema).optional(),
89
- metadata: SchemasTtsV1PronunciationsDictionaryMetadata$outboundSchema,
89
+ metadata: DictionaryMetadata$outboundSchema,
90
90
  });
91
91
 
92
92
  export function pronunciationOverridesDictionaryToJSON(
@@ -29,7 +29,7 @@ export class Pronunciations extends ClientSDK {
29
29
  */
30
30
  async pronunciationsGetMetadata(
31
31
  options?: RequestOptions,
32
- ): Promise<components.SchemasTtsV1PronunciationsDictionaryMetadata> {
32
+ ): Promise<components.DictionaryMetadata> {
33
33
  return unwrapAsync(pronunciationsPronunciationsGetMetadata(
34
34
  this,
35
35
  options,
@@ -1,33 +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
- /**
5
- * Metadata for the bridge phrases dictionary.
6
- */
7
- export type SchemasCortexV1BridgePhrasesDictionaryMetadata = {
8
- /**
9
- * Hash of the dictionary content.
10
- */
11
- hash?: string | null | undefined;
12
- /**
13
- * Source of the dictionary (e.g. filename).
14
- */
15
- source?: string | null | undefined;
16
- /**
17
- * Number of entries in the dictionary.
18
- */
19
- entries?: number | undefined;
20
- };
21
- /** @internal */
22
- export declare const SchemasCortexV1BridgePhrasesDictionaryMetadata$inboundSchema: z.ZodType<SchemasCortexV1BridgePhrasesDictionaryMetadata, z.ZodTypeDef, unknown>;
23
- /** @internal */
24
- export type SchemasCortexV1BridgePhrasesDictionaryMetadata$Outbound = {
25
- hash?: string | null | undefined;
26
- source?: string | null | undefined;
27
- entries: number;
28
- };
29
- /** @internal */
30
- export declare const SchemasCortexV1BridgePhrasesDictionaryMetadata$outboundSchema: z.ZodType<SchemasCortexV1BridgePhrasesDictionaryMetadata$Outbound, z.ZodTypeDef, SchemasCortexV1BridgePhrasesDictionaryMetadata>;
31
- export declare function schemasCortexV1BridgePhrasesDictionaryMetadataToJSON(schemasCortexV1BridgePhrasesDictionaryMetadata: SchemasCortexV1BridgePhrasesDictionaryMetadata): string;
32
- export declare function schemasCortexV1BridgePhrasesDictionaryMetadataFromJSON(jsonString: string): SafeParseResult<SchemasCortexV1BridgePhrasesDictionaryMetadata, SDKValidationError>;
33
- //# sourceMappingURL=schemascortexv1bridgephrasesdictionarymetadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemascortexv1bridgephrasesdictionarymetadata.d.ts","sourceRoot":"","sources":["../../src/models/components/schemascortexv1bridgephrasesdictionarymetadata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,8CAA8C,GAAG;IAC3D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4DAA4D,EACvE,CAAC,CAAC,OAAO,CACP,8CAA8C,EAC9C,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACL,gBAAgB;AAChB,MAAM,MAAM,uDAAuD,GAAG;IACpE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6DAA6D,EACxE,CAAC,CAAC,OAAO,CACP,uDAAuD,EACvD,CAAC,CAAC,UAAU,EACZ,8CAA8C,CAK9C,CAAC;AAEL,wBAAgB,oDAAoD,CAClE,8CAA8C,EAC5C,8CAA8C,GAC/C,MAAM,CAMR;AACD,wBAAgB,sDAAsD,CACpE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,8CAA8C,EAC9C,kBAAkB,CACnB,CASA"}
@@ -1,62 +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.SchemasCortexV1BridgePhrasesDictionaryMetadata$outboundSchema = exports.SchemasCortexV1BridgePhrasesDictionaryMetadata$inboundSchema = void 0;
40
- exports.schemasCortexV1BridgePhrasesDictionaryMetadataToJSON = schemasCortexV1BridgePhrasesDictionaryMetadataToJSON;
41
- exports.schemasCortexV1BridgePhrasesDictionaryMetadataFromJSON = schemasCortexV1BridgePhrasesDictionaryMetadataFromJSON;
42
- const z = __importStar(require("zod/v3"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- /** @internal */
45
- exports.SchemasCortexV1BridgePhrasesDictionaryMetadata$inboundSchema = z.object({
46
- hash: z.nullable(z.string()).optional(),
47
- source: z.nullable(z.string()).optional(),
48
- entries: z.number().int().default(0),
49
- });
50
- /** @internal */
51
- exports.SchemasCortexV1BridgePhrasesDictionaryMetadata$outboundSchema = z.object({
52
- hash: z.nullable(z.string()).optional(),
53
- source: z.nullable(z.string()).optional(),
54
- entries: z.number().int().default(0),
55
- });
56
- function schemasCortexV1BridgePhrasesDictionaryMetadataToJSON(schemasCortexV1BridgePhrasesDictionaryMetadata) {
57
- return JSON.stringify(exports.SchemasCortexV1BridgePhrasesDictionaryMetadata$outboundSchema.parse(schemasCortexV1BridgePhrasesDictionaryMetadata));
58
- }
59
- function schemasCortexV1BridgePhrasesDictionaryMetadataFromJSON(jsonString) {
60
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SchemasCortexV1BridgePhrasesDictionaryMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SchemasCortexV1BridgePhrasesDictionaryMetadata' from JSON`);
61
- }
62
- //# sourceMappingURL=schemascortexv1bridgephrasesdictionarymetadata.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemascortexv1bridgephrasesdictionarymetadata.js","sourceRoot":"","sources":["../../src/models/components/schemascortexv1bridgephrasesdictionarymetadata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDH,oHASC;AACD,wHAcC;AA7ED,0CAA4B;AAC5B,qDAAiD;AAsBjD,gBAAgB;AACH,QAAA,4DAA4D,GAKnE,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACrC,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,6DAA6D,GAKpE,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACrC,CAAC,CAAC;AAEL,SAAgB,oDAAoD,CAClE,8CACgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,qEAA6D,CAAC,KAAK,CACjE,8CAA8C,CAC/C,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,sDAAsD,CACpE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,oEAA4D,CAAC,KAAK,CAChE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,4EAA4E,CAC7E,CAAC;AACJ,CAAC"}
@@ -1,24 +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
- /**
5
- * Audit metadata associated with a dictionary.
6
- */
7
- export type SchemasTtsV1PronunciationsDictionaryMetadata = {
8
- entries: number;
9
- hash: string;
10
- source?: string | undefined;
11
- };
12
- /** @internal */
13
- export declare const SchemasTtsV1PronunciationsDictionaryMetadata$inboundSchema: z.ZodType<SchemasTtsV1PronunciationsDictionaryMetadata, z.ZodTypeDef, unknown>;
14
- /** @internal */
15
- export type SchemasTtsV1PronunciationsDictionaryMetadata$Outbound = {
16
- entries: number;
17
- hash: string;
18
- source: string;
19
- };
20
- /** @internal */
21
- export declare const SchemasTtsV1PronunciationsDictionaryMetadata$outboundSchema: z.ZodType<SchemasTtsV1PronunciationsDictionaryMetadata$Outbound, z.ZodTypeDef, SchemasTtsV1PronunciationsDictionaryMetadata>;
22
- export declare function schemasTtsV1PronunciationsDictionaryMetadataToJSON(schemasTtsV1PronunciationsDictionaryMetadata: SchemasTtsV1PronunciationsDictionaryMetadata): string;
23
- export declare function schemasTtsV1PronunciationsDictionaryMetadataFromJSON(jsonString: string): SafeParseResult<SchemasTtsV1PronunciationsDictionaryMetadata, SDKValidationError>;
24
- //# sourceMappingURL=schemasttsv1pronunciationsdictionarymetadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemasttsv1pronunciationsdictionarymetadata.d.ts","sourceRoot":"","sources":["../../src/models/components/schemasttsv1pronunciationsdictionarymetadata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0DAA0D,EACrE,CAAC,CAAC,OAAO,CACP,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACL,gBAAgB;AAChB,MAAM,MAAM,qDAAqD,GAAG;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2DAA2D,EACtE,CAAC,CAAC,OAAO,CACP,qDAAqD,EACrD,CAAC,CAAC,UAAU,EACZ,4CAA4C,CAK5C,CAAC;AAEL,wBAAgB,kDAAkD,CAChE,4CAA4C,EAC1C,4CAA4C,GAC7C,MAAM,CAMR;AACD,wBAAgB,oDAAoD,CAClE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,4CAA4C,EAC5C,kBAAkB,CACnB,CASA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemasttsv1pronunciationsdictionarymetadata.js","sourceRoot":"","sources":["../../src/models/components/schemasttsv1pronunciationsdictionarymetadata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CH,gHASC;AACD,oHAcC;AApED,0CAA4B;AAC5B,qDAAiD;AAajD,gBAAgB;AACH,QAAA,0DAA0D,GAKjE,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACzB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CAC/B,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,2DAA2D,GAKlE,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACzB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEL,SAAgB,kDAAkD,CAChE,4CAC8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,mEAA2D,CAAC,KAAK,CAC/D,4CAA4C,CAC7C,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,oDAAoD,CAClE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,kEAA0D,CAAC,KAAK,CAC9D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,0EAA0E,CAC3E,CAAC;AACJ,CAAC"}
@@ -1,82 +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 { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- /**
11
- * Metadata for the bridge phrases dictionary.
12
- */
13
- export type SchemasCortexV1BridgePhrasesDictionaryMetadata = {
14
- /**
15
- * Hash of the dictionary content.
16
- */
17
- hash?: string | null | undefined;
18
- /**
19
- * Source of the dictionary (e.g. filename).
20
- */
21
- source?: string | null | undefined;
22
- /**
23
- * Number of entries in the dictionary.
24
- */
25
- entries?: number | undefined;
26
- };
27
-
28
- /** @internal */
29
- export const SchemasCortexV1BridgePhrasesDictionaryMetadata$inboundSchema:
30
- z.ZodType<
31
- SchemasCortexV1BridgePhrasesDictionaryMetadata,
32
- z.ZodTypeDef,
33
- unknown
34
- > = z.object({
35
- hash: z.nullable(z.string()).optional(),
36
- source: z.nullable(z.string()).optional(),
37
- entries: z.number().int().default(0),
38
- });
39
- /** @internal */
40
- export type SchemasCortexV1BridgePhrasesDictionaryMetadata$Outbound = {
41
- hash?: string | null | undefined;
42
- source?: string | null | undefined;
43
- entries: number;
44
- };
45
-
46
- /** @internal */
47
- export const SchemasCortexV1BridgePhrasesDictionaryMetadata$outboundSchema:
48
- z.ZodType<
49
- SchemasCortexV1BridgePhrasesDictionaryMetadata$Outbound,
50
- z.ZodTypeDef,
51
- SchemasCortexV1BridgePhrasesDictionaryMetadata
52
- > = z.object({
53
- hash: z.nullable(z.string()).optional(),
54
- source: z.nullable(z.string()).optional(),
55
- entries: z.number().int().default(0),
56
- });
57
-
58
- export function schemasCortexV1BridgePhrasesDictionaryMetadataToJSON(
59
- schemasCortexV1BridgePhrasesDictionaryMetadata:
60
- SchemasCortexV1BridgePhrasesDictionaryMetadata,
61
- ): string {
62
- return JSON.stringify(
63
- SchemasCortexV1BridgePhrasesDictionaryMetadata$outboundSchema.parse(
64
- schemasCortexV1BridgePhrasesDictionaryMetadata,
65
- ),
66
- );
67
- }
68
- export function schemasCortexV1BridgePhrasesDictionaryMetadataFromJSON(
69
- jsonString: string,
70
- ): SafeParseResult<
71
- SchemasCortexV1BridgePhrasesDictionaryMetadata,
72
- SDKValidationError
73
- > {
74
- return safeParse(
75
- jsonString,
76
- (x) =>
77
- SchemasCortexV1BridgePhrasesDictionaryMetadata$inboundSchema.parse(
78
- JSON.parse(x),
79
- ),
80
- `Failed to parse 'SchemasCortexV1BridgePhrasesDictionaryMetadata' from JSON`,
81
- );
82
- }
@@ -1,73 +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 { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- /**
11
- * Audit metadata associated with a dictionary.
12
- */
13
- export type SchemasTtsV1PronunciationsDictionaryMetadata = {
14
- entries: number;
15
- hash: string;
16
- source?: string | undefined;
17
- };
18
-
19
- /** @internal */
20
- export const SchemasTtsV1PronunciationsDictionaryMetadata$inboundSchema:
21
- z.ZodType<
22
- SchemasTtsV1PronunciationsDictionaryMetadata,
23
- z.ZodTypeDef,
24
- unknown
25
- > = z.object({
26
- entries: z.number().int(),
27
- hash: z.string(),
28
- source: z.string().default(""),
29
- });
30
- /** @internal */
31
- export type SchemasTtsV1PronunciationsDictionaryMetadata$Outbound = {
32
- entries: number;
33
- hash: string;
34
- source: string;
35
- };
36
-
37
- /** @internal */
38
- export const SchemasTtsV1PronunciationsDictionaryMetadata$outboundSchema:
39
- z.ZodType<
40
- SchemasTtsV1PronunciationsDictionaryMetadata$Outbound,
41
- z.ZodTypeDef,
42
- SchemasTtsV1PronunciationsDictionaryMetadata
43
- > = z.object({
44
- entries: z.number().int(),
45
- hash: z.string(),
46
- source: z.string().default(""),
47
- });
48
-
49
- export function schemasTtsV1PronunciationsDictionaryMetadataToJSON(
50
- schemasTtsV1PronunciationsDictionaryMetadata:
51
- SchemasTtsV1PronunciationsDictionaryMetadata,
52
- ): string {
53
- return JSON.stringify(
54
- SchemasTtsV1PronunciationsDictionaryMetadata$outboundSchema.parse(
55
- schemasTtsV1PronunciationsDictionaryMetadata,
56
- ),
57
- );
58
- }
59
- export function schemasTtsV1PronunciationsDictionaryMetadataFromJSON(
60
- jsonString: string,
61
- ): SafeParseResult<
62
- SchemasTtsV1PronunciationsDictionaryMetadata,
63
- SDKValidationError
64
- > {
65
- return safeParse(
66
- jsonString,
67
- (x) =>
68
- SchemasTtsV1PronunciationsDictionaryMetadata$inboundSchema.parse(
69
- JSON.parse(x),
70
- ),
71
- `Failed to parse 'SchemasTtsV1PronunciationsDictionaryMetadata' from JSON`,
72
- );
73
- }