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,139 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { SyllableSDKCore } from "../core.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/httpclienterrors.js";
19
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import { SyllableSDKError } from "../models/errors/syllablesdkerror.js";
22
+ import { APICall, APIPromise } from "../types/async.js";
23
+ import { Result } from "../types/fp.js";
24
+
25
+ /**
26
+ * Download Pronunciations Csv
27
+ */
28
+ export function pronunciationsPronunciationsDownloadCsv(
29
+ client: SyllableSDKCore,
30
+ options?: RequestOptions,
31
+ ): APIPromise<
32
+ Result<
33
+ void,
34
+ | SyllableSDKError
35
+ | ResponseValidationError
36
+ | ConnectionError
37
+ | RequestAbortedError
38
+ | RequestTimeoutError
39
+ | InvalidRequestError
40
+ | UnexpectedClientError
41
+ | SDKValidationError
42
+ >
43
+ > {
44
+ return new APIPromise($do(
45
+ client,
46
+ options,
47
+ ));
48
+ }
49
+
50
+ async function $do(
51
+ client: SyllableSDKCore,
52
+ options?: RequestOptions,
53
+ ): Promise<
54
+ [
55
+ Result<
56
+ void,
57
+ | SyllableSDKError
58
+ | ResponseValidationError
59
+ | ConnectionError
60
+ | RequestAbortedError
61
+ | RequestTimeoutError
62
+ | InvalidRequestError
63
+ | UnexpectedClientError
64
+ | SDKValidationError
65
+ >,
66
+ APICall,
67
+ ]
68
+ > {
69
+ const path = pathToFunc("/api/v1/pronunciations/csv")();
70
+
71
+ const headers = new Headers(compactMap({
72
+ Accept: "*/*",
73
+ }));
74
+
75
+ const secConfig = await extractSecurity(client._options.apiKeyHeader);
76
+ const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
77
+ const requestSecurity = resolveGlobalSecurity(securityInput);
78
+
79
+ const context = {
80
+ options: client._options,
81
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
82
+ operationID: "pronunciations_download_csv",
83
+ oAuth2Scopes: null,
84
+
85
+ resolvedSecurity: requestSecurity,
86
+
87
+ securitySource: client._options.apiKeyHeader,
88
+ retryConfig: options?.retries
89
+ || client._options.retryConfig
90
+ || { strategy: "none" },
91
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
92
+ };
93
+
94
+ const requestRes = client._createRequest(context, {
95
+ security: requestSecurity,
96
+ method: "GET",
97
+ baseURL: options?.serverURL,
98
+ path: path,
99
+ headers: headers,
100
+ userAgent: client._options.userAgent,
101
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
102
+ }, options);
103
+ if (!requestRes.ok) {
104
+ return [requestRes, { status: "invalid" }];
105
+ }
106
+ const req = requestRes.value;
107
+
108
+ const doResult = await client._do(req, {
109
+ context,
110
+ errorCodes: ["4XX", "5XX"],
111
+ retryConfig: context.retryConfig,
112
+ retryCodes: context.retryCodes,
113
+ });
114
+ if (!doResult.ok) {
115
+ return [doResult, { status: "request-error", request: req }];
116
+ }
117
+ const response = doResult.value;
118
+
119
+ const [result] = await M.match<
120
+ void,
121
+ | SyllableSDKError
122
+ | ResponseValidationError
123
+ | ConnectionError
124
+ | RequestAbortedError
125
+ | RequestTimeoutError
126
+ | InvalidRequestError
127
+ | UnexpectedClientError
128
+ | SDKValidationError
129
+ >(
130
+ M.nil(200, z.void()),
131
+ M.fail("4XX"),
132
+ M.fail("5XX"),
133
+ )(response, req);
134
+ if (!result.ok) {
135
+ return [result, { status: "complete", request: req, response }];
136
+ }
137
+
138
+ return [result, { status: "complete", request: req, response }];
139
+ }
@@ -0,0 +1,139 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SyllableSDKCore } from "../core.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { RequestOptions } from "../lib/sdks.js";
9
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import * as components from "../models/components/index.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/httpclienterrors.js";
19
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import { SyllableSDKError } from "../models/errors/syllablesdkerror.js";
22
+ import { APICall, APIPromise } from "../types/async.js";
23
+ import { Result } from "../types/fp.js";
24
+
25
+ /**
26
+ * Get Pronunciations Dictionary
27
+ */
28
+ export function pronunciationsPronunciationsGet(
29
+ client: SyllableSDKCore,
30
+ options?: RequestOptions,
31
+ ): APIPromise<
32
+ Result<
33
+ components.PronunciationOverridesDictionary,
34
+ | SyllableSDKError
35
+ | ResponseValidationError
36
+ | ConnectionError
37
+ | RequestAbortedError
38
+ | RequestTimeoutError
39
+ | InvalidRequestError
40
+ | UnexpectedClientError
41
+ | SDKValidationError
42
+ >
43
+ > {
44
+ return new APIPromise($do(
45
+ client,
46
+ options,
47
+ ));
48
+ }
49
+
50
+ async function $do(
51
+ client: SyllableSDKCore,
52
+ options?: RequestOptions,
53
+ ): Promise<
54
+ [
55
+ Result<
56
+ components.PronunciationOverridesDictionary,
57
+ | SyllableSDKError
58
+ | ResponseValidationError
59
+ | ConnectionError
60
+ | RequestAbortedError
61
+ | RequestTimeoutError
62
+ | InvalidRequestError
63
+ | UnexpectedClientError
64
+ | SDKValidationError
65
+ >,
66
+ APICall,
67
+ ]
68
+ > {
69
+ const path = pathToFunc("/api/v1/pronunciations")();
70
+
71
+ const headers = new Headers(compactMap({
72
+ Accept: "application/json",
73
+ }));
74
+
75
+ const secConfig = await extractSecurity(client._options.apiKeyHeader);
76
+ const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
77
+ const requestSecurity = resolveGlobalSecurity(securityInput);
78
+
79
+ const context = {
80
+ options: client._options,
81
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
82
+ operationID: "pronunciations_get",
83
+ oAuth2Scopes: null,
84
+
85
+ resolvedSecurity: requestSecurity,
86
+
87
+ securitySource: client._options.apiKeyHeader,
88
+ retryConfig: options?.retries
89
+ || client._options.retryConfig
90
+ || { strategy: "none" },
91
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
92
+ };
93
+
94
+ const requestRes = client._createRequest(context, {
95
+ security: requestSecurity,
96
+ method: "GET",
97
+ baseURL: options?.serverURL,
98
+ path: path,
99
+ headers: headers,
100
+ userAgent: client._options.userAgent,
101
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
102
+ }, options);
103
+ if (!requestRes.ok) {
104
+ return [requestRes, { status: "invalid" }];
105
+ }
106
+ const req = requestRes.value;
107
+
108
+ const doResult = await client._do(req, {
109
+ context,
110
+ errorCodes: ["4XX", "5XX"],
111
+ retryConfig: context.retryConfig,
112
+ retryCodes: context.retryCodes,
113
+ });
114
+ if (!doResult.ok) {
115
+ return [doResult, { status: "request-error", request: req }];
116
+ }
117
+ const response = doResult.value;
118
+
119
+ const [result] = await M.match<
120
+ components.PronunciationOverridesDictionary,
121
+ | SyllableSDKError
122
+ | ResponseValidationError
123
+ | ConnectionError
124
+ | RequestAbortedError
125
+ | RequestTimeoutError
126
+ | InvalidRequestError
127
+ | UnexpectedClientError
128
+ | SDKValidationError
129
+ >(
130
+ M.json(200, components.PronunciationOverridesDictionary$inboundSchema),
131
+ M.fail("4XX"),
132
+ M.fail("5XX"),
133
+ )(response, req);
134
+ if (!result.ok) {
135
+ return [result, { status: "complete", request: req, response }];
136
+ }
137
+
138
+ return [result, { status: "complete", request: req, response }];
139
+ }
@@ -0,0 +1,139 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SyllableSDKCore } from "../core.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { RequestOptions } from "../lib/sdks.js";
9
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import * as components from "../models/components/index.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/httpclienterrors.js";
19
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import { SyllableSDKError } from "../models/errors/syllablesdkerror.js";
22
+ import { APICall, APIPromise } from "../types/async.js";
23
+ import { Result } from "../types/fp.js";
24
+
25
+ /**
26
+ * Get Pronunciations Metadata
27
+ */
28
+ export function pronunciationsPronunciationsGetMetadata(
29
+ client: SyllableSDKCore,
30
+ options?: RequestOptions,
31
+ ): APIPromise<
32
+ Result<
33
+ components.DictionaryMetadata,
34
+ | SyllableSDKError
35
+ | ResponseValidationError
36
+ | ConnectionError
37
+ | RequestAbortedError
38
+ | RequestTimeoutError
39
+ | InvalidRequestError
40
+ | UnexpectedClientError
41
+ | SDKValidationError
42
+ >
43
+ > {
44
+ return new APIPromise($do(
45
+ client,
46
+ options,
47
+ ));
48
+ }
49
+
50
+ async function $do(
51
+ client: SyllableSDKCore,
52
+ options?: RequestOptions,
53
+ ): Promise<
54
+ [
55
+ Result<
56
+ components.DictionaryMetadata,
57
+ | SyllableSDKError
58
+ | ResponseValidationError
59
+ | ConnectionError
60
+ | RequestAbortedError
61
+ | RequestTimeoutError
62
+ | InvalidRequestError
63
+ | UnexpectedClientError
64
+ | SDKValidationError
65
+ >,
66
+ APICall,
67
+ ]
68
+ > {
69
+ const path = pathToFunc("/api/v1/pronunciations/metadata")();
70
+
71
+ const headers = new Headers(compactMap({
72
+ Accept: "application/json",
73
+ }));
74
+
75
+ const secConfig = await extractSecurity(client._options.apiKeyHeader);
76
+ const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
77
+ const requestSecurity = resolveGlobalSecurity(securityInput);
78
+
79
+ const context = {
80
+ options: client._options,
81
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
82
+ operationID: "pronunciations_get_metadata",
83
+ oAuth2Scopes: null,
84
+
85
+ resolvedSecurity: requestSecurity,
86
+
87
+ securitySource: client._options.apiKeyHeader,
88
+ retryConfig: options?.retries
89
+ || client._options.retryConfig
90
+ || { strategy: "none" },
91
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
92
+ };
93
+
94
+ const requestRes = client._createRequest(context, {
95
+ security: requestSecurity,
96
+ method: "GET",
97
+ baseURL: options?.serverURL,
98
+ path: path,
99
+ headers: headers,
100
+ userAgent: client._options.userAgent,
101
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
102
+ }, options);
103
+ if (!requestRes.ok) {
104
+ return [requestRes, { status: "invalid" }];
105
+ }
106
+ const req = requestRes.value;
107
+
108
+ const doResult = await client._do(req, {
109
+ context,
110
+ errorCodes: ["4XX", "5XX"],
111
+ retryConfig: context.retryConfig,
112
+ retryCodes: context.retryCodes,
113
+ });
114
+ if (!doResult.ok) {
115
+ return [doResult, { status: "request-error", request: req }];
116
+ }
117
+ const response = doResult.value;
118
+
119
+ const [result] = await M.match<
120
+ components.DictionaryMetadata,
121
+ | SyllableSDKError
122
+ | ResponseValidationError
123
+ | ConnectionError
124
+ | RequestAbortedError
125
+ | RequestTimeoutError
126
+ | InvalidRequestError
127
+ | UnexpectedClientError
128
+ | SDKValidationError
129
+ >(
130
+ M.json(200, components.DictionaryMetadata$inboundSchema),
131
+ M.fail("4XX"),
132
+ M.fail("5XX"),
133
+ )(response, req);
134
+ if (!result.ok) {
135
+ return [result, { status: "complete", request: req, response }];
136
+ }
137
+
138
+ return [result, { status: "complete", request: req, response }];
139
+ }
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.1",
65
- genVersion: "2.723.2",
66
- userAgent: "speakeasy-sdk/typescript 1.0.1 2.723.2 0.0.2 syllable-sdk",
64
+ sdkVersion: "1.0.2-rc.1",
65
+ genVersion: "2.723.4",
66
+ userAgent: "speakeasy-sdk/typescript 1.0.2-rc.1 2.723.4 0.0.2 syllable-sdk",
67
67
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "1.0.1",
22
+ currentVersion: "1.0.2-rc.1",
23
23
  },
24
24
  });
25
25
 
@@ -115,6 +115,9 @@ 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$pronunciationsPronunciationsDownloadCsv } from "./tools/pronunciationsPronunciationsDownloadCsv.js";
119
+ import { tool$pronunciationsPronunciationsGet } from "./tools/pronunciationsPronunciationsGet.js";
120
+ import { tool$pronunciationsPronunciationsGetMetadata } from "./tools/pronunciationsPronunciationsGetMetadata.js";
118
121
  import { tool$pronunciationsPronunciationsUploadCsv } from "./tools/pronunciationsPronunciationsUploadCsv.js";
119
122
  import { tool$rolesCreate } from "./tools/rolesCreate.js";
120
123
  import { tool$rolesDelete } from "./tools/rolesDelete.js";
@@ -165,7 +168,7 @@ export function createMCPServer(deps: {
165
168
  }) {
166
169
  const server = new McpServer({
167
170
  name: "SyllableSDK",
168
- version: "1.0.1",
171
+ version: "1.0.2-rc.1",
169
172
  });
170
173
 
171
174
  const client = new SyllableSDKCore({
@@ -232,6 +235,9 @@ export function createMCPServer(deps: {
232
235
  tool(tool$promptsDelete);
233
236
  tool(tool$promptsPromptsHistory);
234
237
  tool(tool$promptsPromptGetSupportedLlms);
238
+ tool(tool$pronunciationsPronunciationsGet);
239
+ tool(tool$pronunciationsPronunciationsGetMetadata);
240
+ tool(tool$pronunciationsPronunciationsDownloadCsv);
235
241
  tool(tool$pronunciationsPronunciationsUploadCsv);
236
242
  tool(tool$rolesList);
237
243
  tool(tool$rolesCreate);
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { pronunciationsPronunciationsDownloadCsv } from "../../funcs/pronunciationsPronunciationsDownloadCsv.js";
6
+ import { formatResult, ToolDefinition } from "../tools.js";
7
+
8
+ export const tool$pronunciationsPronunciationsDownloadCsv: ToolDefinition = {
9
+ name: "pronunciations-pronunciations-download-csv",
10
+ description: `Download Pronunciations Csv`,
11
+ tool: async (client, ctx) => {
12
+ const [result, apiCall] = await pronunciationsPronunciationsDownloadCsv(
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
+ };
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { pronunciationsPronunciationsGet } from "../../funcs/pronunciationsPronunciationsGet.js";
6
+ import { formatResult, ToolDefinition } from "../tools.js";
7
+
8
+ export const tool$pronunciationsPronunciationsGet: ToolDefinition = {
9
+ name: "pronunciations-pronunciations-get",
10
+ description: `Get Pronunciations Dictionary`,
11
+ tool: async (client, ctx) => {
12
+ const [result, apiCall] = await pronunciationsPronunciationsGet(
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
+ const value = result.value;
25
+
26
+ return formatResult(value, apiCall);
27
+ },
28
+ };
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { pronunciationsPronunciationsGetMetadata } from "../../funcs/pronunciationsPronunciationsGetMetadata.js";
6
+ import { formatResult, ToolDefinition } from "../tools.js";
7
+
8
+ export const tool$pronunciationsPronunciationsGetMetadata: ToolDefinition = {
9
+ name: "pronunciations-pronunciations-get-metadata",
10
+ description: `Get Pronunciations Metadata`,
11
+ tool: async (client, ctx) => {
12
+ const [result, apiCall] = await pronunciationsPronunciationsGetMetadata(
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
+ const value = result.value;
25
+
26
+ return formatResult(value, apiCall);
27
+ },
28
+ };
@@ -0,0 +1,77 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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 DictionaryMetadata = {
14
+ entries: number;
15
+ hash: string;
16
+ source?: string | null | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const DictionaryMetadata$inboundSchema: z.ZodType<
21
+ DictionaryMetadata,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ entries: z.number().int(),
26
+ hash: z.string(),
27
+ source: z.nullable(z.string()).optional(),
28
+ });
29
+
30
+ /** @internal */
31
+ export type DictionaryMetadata$Outbound = {
32
+ entries: number;
33
+ hash: string;
34
+ source?: string | null | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const DictionaryMetadata$outboundSchema: z.ZodType<
39
+ DictionaryMetadata$Outbound,
40
+ z.ZodTypeDef,
41
+ DictionaryMetadata
42
+ > = z.object({
43
+ entries: z.number().int(),
44
+ hash: z.string(),
45
+ source: z.nullable(z.string()).optional(),
46
+ });
47
+
48
+ /**
49
+ * @internal
50
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
+ */
52
+ export namespace DictionaryMetadata$ {
53
+ /** @deprecated use `DictionaryMetadata$inboundSchema` instead. */
54
+ export const inboundSchema = DictionaryMetadata$inboundSchema;
55
+ /** @deprecated use `DictionaryMetadata$outboundSchema` instead. */
56
+ export const outboundSchema = DictionaryMetadata$outboundSchema;
57
+ /** @deprecated use `DictionaryMetadata$Outbound` instead. */
58
+ export type Outbound = DictionaryMetadata$Outbound;
59
+ }
60
+
61
+ export function dictionaryMetadataToJSON(
62
+ dictionaryMetadata: DictionaryMetadata,
63
+ ): string {
64
+ return JSON.stringify(
65
+ DictionaryMetadata$outboundSchema.parse(dictionaryMetadata),
66
+ );
67
+ }
68
+
69
+ export function dictionaryMetadataFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<DictionaryMetadata, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => DictionaryMetadata$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'DictionaryMetadata' from JSON`,
76
+ );
77
+ }
@@ -64,6 +64,7 @@ export * from "./daysofweek.js";
64
64
  export * from "./dialogmessage.js";
65
65
  export * from "./dialogrole.js";
66
66
  export * from "./dialogtoolcall.js";
67
+ export * from "./dictionarymetadata.js";
67
68
  export * from "./event.js";
68
69
  export * from "./eventproperties.js";
69
70
  export * from "./folderdetails.js";
@@ -130,6 +131,7 @@ export * from "./listresponsesessionlabel.js";
130
131
  export * from "./listresponsetoolresponse.js";
131
132
  export * from "./listresponseuserresponse.js";
132
133
  export * from "./logintype.js";
134
+ export * from "./matchtype.js";
133
135
  export * from "./orderbydirection.js";
134
136
  export * from "./organizationchannelconfig.js";
135
137
  export * from "./organizationchannelcreaterequest.js";
@@ -147,6 +149,8 @@ export * from "./promptllmprovider.js";
147
149
  export * from "./promptproperties.js";
148
150
  export * from "./promptresponse.js";
149
151
  export * from "./promptupdaterequest.js";
152
+ export * from "./pronunciationoverride.js";
153
+ export * from "./pronunciationoverridesdictionary.js";
150
154
  export * from "./pronunciationscsvuploadresponse.js";
151
155
  export * from "./requeststatus.js";
152
156
  export * from "./rolecreaterequest.js";
@@ -216,4 +220,5 @@ export * from "./userproperties.js";
216
220
  export * from "./userresponse.js";
217
221
  export * from "./userupdaterequest.js";
218
222
  export * from "./validationerror.js";
223
+ export * from "./voicedisplayinfo.js";
219
224
  export * from "./voicesamplecreaterequest.js";