@meetkai/mka1 0.48.41 → 0.48.42

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 (64) hide show
  1. package/bin/mcp-server.js +7 -6
  2. package/bin/mcp-server.js.map +9 -9
  3. package/dist/commonjs/funcs/llmSpeechSpeak.d.ts +1 -1
  4. package/dist/commonjs/funcs/llmSpeechSpeak.js +1 -1
  5. package/dist/commonjs/funcs/llmSpeechSpeakStreaming.d.ts +1 -0
  6. package/dist/commonjs/funcs/llmSpeechSpeakStreaming.d.ts.map +1 -1
  7. package/dist/commonjs/funcs/llmSpeechSpeakStreaming.js +1 -0
  8. package/dist/commonjs/funcs/llmSpeechSpeakStreaming.js.map +1 -1
  9. package/dist/commonjs/lib/config.d.ts +2 -2
  10. package/dist/commonjs/lib/config.js +2 -2
  11. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  12. package/dist/commonjs/mcp-server/server.js +1 -1
  13. package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.js +1 -1
  14. package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.js.map +1 -1
  15. package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.d.ts.map +1 -1
  16. package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.js +1 -0
  17. package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.js.map +1 -1
  18. package/dist/commonjs/react-query/llmSpeechSpeak.d.ts +1 -1
  19. package/dist/commonjs/react-query/llmSpeechSpeak.js +1 -1
  20. package/dist/commonjs/react-query/llmSpeechSpeakStreaming.d.ts +1 -0
  21. package/dist/commonjs/react-query/llmSpeechSpeakStreaming.d.ts.map +1 -1
  22. package/dist/commonjs/react-query/llmSpeechSpeakStreaming.js +1 -0
  23. package/dist/commonjs/react-query/llmSpeechSpeakStreaming.js.map +1 -1
  24. package/dist/commonjs/sdk/speech.d.ts +2 -1
  25. package/dist/commonjs/sdk/speech.d.ts.map +1 -1
  26. package/dist/commonjs/sdk/speech.js +2 -1
  27. package/dist/commonjs/sdk/speech.js.map +1 -1
  28. package/dist/esm/funcs/llmSpeechSpeak.d.ts +1 -1
  29. package/dist/esm/funcs/llmSpeechSpeak.js +1 -1
  30. package/dist/esm/funcs/llmSpeechSpeakStreaming.d.ts +1 -0
  31. package/dist/esm/funcs/llmSpeechSpeakStreaming.d.ts.map +1 -1
  32. package/dist/esm/funcs/llmSpeechSpeakStreaming.js +1 -0
  33. package/dist/esm/funcs/llmSpeechSpeakStreaming.js.map +1 -1
  34. package/dist/esm/lib/config.d.ts +2 -2
  35. package/dist/esm/lib/config.js +2 -2
  36. package/dist/esm/mcp-server/mcp-server.js +1 -1
  37. package/dist/esm/mcp-server/server.js +1 -1
  38. package/dist/esm/mcp-server/tools/llmSpeechSpeak.js +1 -1
  39. package/dist/esm/mcp-server/tools/llmSpeechSpeak.js.map +1 -1
  40. package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.d.ts.map +1 -1
  41. package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.js +1 -0
  42. package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.js.map +1 -1
  43. package/dist/esm/react-query/llmSpeechSpeak.d.ts +1 -1
  44. package/dist/esm/react-query/llmSpeechSpeak.js +1 -1
  45. package/dist/esm/react-query/llmSpeechSpeakStreaming.d.ts +1 -0
  46. package/dist/esm/react-query/llmSpeechSpeakStreaming.d.ts.map +1 -1
  47. package/dist/esm/react-query/llmSpeechSpeakStreaming.js +1 -0
  48. package/dist/esm/react-query/llmSpeechSpeakStreaming.js.map +1 -1
  49. package/dist/esm/sdk/speech.d.ts +2 -1
  50. package/dist/esm/sdk/speech.d.ts.map +1 -1
  51. package/dist/esm/sdk/speech.js +2 -1
  52. package/dist/esm/sdk/speech.js.map +1 -1
  53. package/jsr.json +1 -1
  54. package/package.json +1 -1
  55. package/src/funcs/llmSpeechSpeak.ts +1 -1
  56. package/src/funcs/llmSpeechSpeakStreaming.ts +1 -0
  57. package/src/lib/config.ts +2 -2
  58. package/src/mcp-server/mcp-server.ts +1 -1
  59. package/src/mcp-server/server.ts +1 -1
  60. package/src/mcp-server/tools/llmSpeechSpeak.ts +1 -1
  61. package/src/mcp-server/tools/llmSpeechSpeakStreaming.ts +1 -0
  62. package/src/react-query/llmSpeechSpeak.ts +1 -1
  63. package/src/react-query/llmSpeechSpeakStreaming.ts +1 -0
  64. package/src/sdk/speech.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetkai/mka1",
3
- "version": "0.48.41",
3
+ "version": "0.48.42",
4
4
  "author": "Daniel Wilder <dauncy@gmail.com>",
5
5
  "homepage": "https://docs.mka1.com",
6
6
  "publishConfig": {
@@ -36,7 +36,7 @@ import { Result } from "../types/fp.js";
36
36
  * - `language`: Language code (default: "auto") - "auto" for automatic detection, or ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur
37
37
  * - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
38
38
  *
39
- * **Response:** Returns audio file in WAV format with X-Language-Code header
39
+ * **Response:** Returns audio file in WAV format with X-Language-Code header. When `store` is `true`, the generation is persisted before the response returns and the new history record id is included in the X-Tts-Id header.
40
40
  */
41
41
  export function llmSpeechSpeak(
42
42
  client: SDKCore,
@@ -52,6 +52,7 @@ export enum SpeakStreamingAcceptEnum {
52
52
  * - Streams audio chunks in real-time
53
53
  * - Returns `X-Language-Code` header with detected/used language
54
54
  * - Content-Type: `audio/mpeg` (MP3) or `audio/wav` (PCM)
55
+ * - When `store` is `true`, returns the `X-Tts-Id` header with the id the history record will be stored under; persistence is best-effort and completes shortly after the stream ends
55
56
  *
56
57
  * **Use Cases:**
57
58
  * - Real-time applications requiring immediate audio playback
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.48.41",
68
+ sdkVersion: "0.48.42",
69
69
  genVersion: "2.916.4",
70
- userAgent: "speakeasy-sdk/typescript 0.48.41 2.916.4 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.48.42 2.916.4 1.1.0 @meetkai/mka1",
71
71
  } 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: "0.48.41",
22
+ currentVersion: "0.48.42",
23
23
  },
24
24
  });
25
25
 
@@ -357,7 +357,7 @@ export function createMCPServer(deps: {
357
357
  }) {
358
358
  const server = new McpServer({
359
359
  name: "SDK",
360
- version: "0.48.41",
360
+ version: "0.48.42",
361
361
  });
362
362
 
363
363
  const client = new SDKCore({
@@ -21,7 +21,7 @@ Convert text to speech with automatic language detection.
21
21
  - \`language\`: Language code (default: "auto") - "auto" for automatic detection, or ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur
22
22
  - \`model\`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
23
23
 
24
- **Response:** Returns audio file in WAV format with X-Language-Code header`,
24
+ **Response:** Returns audio file in WAV format with X-Language-Code header. When \`store\` is \`true\`, the generation is persisted before the response returns and the new history record id is included in the X-Tts-Id header.`,
25
25
  args,
26
26
  tool: async (client, args, ctx) => {
27
27
  const [result, apiCall] = await llmSpeechSpeak(
@@ -32,6 +32,7 @@ Convert text to speech with real-time streaming audio delivery.
32
32
  - Streams audio chunks in real-time
33
33
  - Returns \`X-Language-Code\` header with detected/used language
34
34
  - Content-Type: \`audio/mpeg\` (MP3) or \`audio/wav\` (PCM)
35
+ - When \`store\` is \`true\`, returns the \`X-Tts-Id\` header with the id the history record will be stored under; persistence is best-effort and completes shortly after the stream ends
35
36
 
36
37
  **Use Cases:**
37
38
  - Real-time applications requiring immediate audio playback
@@ -54,7 +54,7 @@ export type LlmSpeechSpeakMutationError =
54
54
  * - `language`: Language code (default: "auto") - "auto" for automatic detection, or ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur
55
55
  * - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
56
56
  *
57
- * **Response:** Returns audio file in WAV format with X-Language-Code header
57
+ * **Response:** Returns audio file in WAV format with X-Language-Code header. When `store` is `true`, the generation is persisted before the response returns and the new history record id is included in the X-Tts-Id header.
58
58
  */
59
59
  export function useLlmSpeechSpeakMutation(
60
60
  options?: MutationHookOptions<
@@ -73,6 +73,7 @@ export type LlmSpeechSpeakStreamingMutationError =
73
73
  * - Streams audio chunks in real-time
74
74
  * - Returns `X-Language-Code` header with detected/used language
75
75
  * - Content-Type: `audio/mpeg` (MP3) or `audio/wav` (PCM)
76
+ * - When `store` is `true`, returns the `X-Tts-Id` header with the id the history record will be stored under; persistence is best-effort and completes shortly after the stream ends
76
77
  *
77
78
  * **Use Cases:**
78
79
  * - Real-time applications requiring immediate audio playback
package/src/sdk/speech.ts CHANGED
@@ -89,7 +89,7 @@ export class Speech extends ClientSDK {
89
89
  * - `language`: Language code (default: "auto") - "auto" for automatic detection, or ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur
90
90
  * - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
91
91
  *
92
- * **Response:** Returns audio file in WAV format with X-Language-Code header
92
+ * **Response:** Returns audio file in WAV format with X-Language-Code header. When `store` is `true`, the generation is persisted before the response returns and the new history record id is included in the X-Tts-Id header.
93
93
  */
94
94
  async speak(
95
95
  request: operations.TextToSpeechRequest,
@@ -124,6 +124,7 @@ export class Speech extends ClientSDK {
124
124
  * - Streams audio chunks in real-time
125
125
  * - Returns `X-Language-Code` header with detected/used language
126
126
  * - Content-Type: `audio/mpeg` (MP3) or `audio/wav` (PCM)
127
+ * - When `store` is `true`, returns the `X-Tts-Id` header with the id the history record will be stored under; persistence is best-effort and completes shortly after the stream ends
127
128
  *
128
129
  * **Use Cases:**
129
130
  * - Real-time applications requiring immediate audio playback