hume 0.14.2-beta.4 → 0.14.2-beta.6

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 (123) hide show
  1. package/.claude/settings.local.json +4 -1
  2. package/Client.d.ts +1 -0
  3. package/api/resources/empathicVoice/client/Client.d.ts +1 -0
  4. package/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -1
  5. package/api/resources/empathicVoice/resources/chat/client/Client.js +3 -28
  6. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -0
  7. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -20
  8. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -0
  9. package/api/resources/empathicVoice/resources/chats/client/Client.js +9 -15
  10. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +1 -0
  11. package/api/resources/empathicVoice/resources/configs/client/Client.js +29 -52
  12. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -0
  13. package/api/resources/empathicVoice/resources/prompts/client/Client.js +29 -52
  14. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -0
  15. package/api/resources/empathicVoice/resources/tools/client/Client.js +27 -46
  16. package/api/resources/expressionMeasurement/client/Client.d.ts +1 -0
  17. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +1 -0
  18. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +18 -30
  19. package/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +1 -0
  20. package/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Socket.js +0 -4
  21. package/api/resources/tts/client/Client.d.ts +1 -0
  22. package/api/resources/tts/client/Client.js +16 -34
  23. package/api/resources/tts/index.d.ts +1 -1
  24. package/api/resources/tts/index.js +1 -1
  25. package/api/resources/tts/resources/index.d.ts +0 -1
  26. package/api/resources/tts/resources/index.js +0 -1
  27. package/api/resources/tts/resources/streamInput/client/Client.d.ts +4 -3
  28. package/api/resources/tts/resources/streamInput/client/Client.js +14 -15
  29. package/api/resources/tts/resources/streamInput/client/Socket.d.ts +1 -1
  30. package/api/resources/tts/resources/streamInput/client/Socket.js +0 -4
  31. package/api/resources/tts/resources/streamInput/index.d.ts +0 -1
  32. package/api/resources/tts/resources/streamInput/index.js +0 -1
  33. package/api/resources/tts/resources/streamInput/types/index.js +26 -14
  34. package/api/resources/tts/resources/voices/client/Client.d.ts +1 -0
  35. package/api/resources/tts/resources/voices/client/Client.js +10 -19
  36. package/api/resources/tts/types/index.d.ts +2 -2
  37. package/api/resources/tts/types/index.js +2 -2
  38. package/changes.md +843 -0
  39. package/comment_changes.txt +0 -0
  40. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +37 -0
  41. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  42. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +37 -0
  43. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  44. package/core/file.d.ts +11 -0
  45. package/diff.txt +18143 -0
  46. package/dist/Client.d.ts +1 -0
  47. package/dist/api/resources/empathicVoice/client/Client.d.ts +1 -0
  48. package/dist/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -1
  49. package/dist/api/resources/empathicVoice/resources/chat/client/Client.js +3 -28
  50. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -0
  51. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -20
  52. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -0
  53. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +9 -15
  54. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +1 -0
  55. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +29 -52
  56. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -0
  57. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +29 -52
  58. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -0
  59. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +27 -46
  60. package/dist/api/resources/expressionMeasurement/client/Client.d.ts +1 -0
  61. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +1 -0
  62. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +18 -30
  63. package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +1 -0
  64. package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Socket.js +0 -4
  65. package/dist/api/resources/tts/client/Client.d.ts +1 -0
  66. package/dist/api/resources/tts/client/Client.js +16 -34
  67. package/dist/api/resources/tts/index.d.ts +1 -1
  68. package/dist/api/resources/tts/index.js +1 -1
  69. package/dist/api/resources/tts/resources/index.d.ts +0 -1
  70. package/dist/api/resources/tts/resources/index.js +0 -1
  71. package/dist/api/resources/tts/resources/streamInput/client/Client.d.ts +4 -3
  72. package/dist/api/resources/tts/resources/streamInput/client/Client.js +14 -15
  73. package/dist/api/resources/tts/resources/streamInput/client/Socket.d.ts +1 -1
  74. package/dist/api/resources/tts/resources/streamInput/client/Socket.js +0 -4
  75. package/dist/api/resources/tts/resources/streamInput/index.d.ts +0 -1
  76. package/dist/api/resources/tts/resources/streamInput/index.js +0 -1
  77. package/dist/api/resources/tts/resources/streamInput/types/index.js +26 -14
  78. package/dist/api/resources/tts/resources/voices/client/Client.d.ts +1 -0
  79. package/dist/api/resources/tts/resources/voices/client/Client.js +10 -19
  80. package/dist/api/resources/tts/types/index.d.ts +2 -2
  81. package/dist/api/resources/tts/types/index.js +2 -2
  82. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +37 -0
  83. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  84. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +37 -0
  85. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  86. package/dist/core/file.d.ts +11 -0
  87. package/dist/main.js +40944 -0
  88. package/dist/serialization/resources/tts/resources/index.d.ts +0 -1
  89. package/dist/serialization/resources/tts/resources/index.js +0 -1
  90. package/dist/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.d.ts +3 -3
  91. package/dist/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.js +2 -2
  92. package/dist/serialization/resources/tts/resources/streamInput/index.d.ts +0 -1
  93. package/dist/serialization/resources/tts/resources/streamInput/index.js +0 -1
  94. package/dist/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.d.ts +4 -1
  95. package/dist/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.js +55 -33
  96. package/dist/serialization/resources/tts/resources/streamInput/types/index.js +26 -14
  97. package/dist/serialization/resources/tts/types/index.d.ts +2 -2
  98. package/dist/serialization/resources/tts/types/index.js +2 -2
  99. package/dist/wrapper/HumeClient.d.ts +1 -1
  100. package/dist/wrapper/HumeClient.js +27 -20
  101. package/hume-v0.14.2-beta.6.tgz +0 -0
  102. package/js_changes.txt +2610 -0
  103. package/main.js +40944 -0
  104. package/package.json +1 -1
  105. package/serialization/resources/tts/resources/index.d.ts +0 -1
  106. package/serialization/resources/tts/resources/index.js +0 -1
  107. package/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.d.ts +3 -3
  108. package/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.js +2 -2
  109. package/serialization/resources/tts/resources/streamInput/index.d.ts +0 -1
  110. package/serialization/resources/tts/resources/streamInput/index.js +0 -1
  111. package/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.d.ts +4 -1
  112. package/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.js +55 -33
  113. package/serialization/resources/tts/resources/streamInput/types/index.js +26 -14
  114. package/serialization/resources/tts/types/index.d.ts +2 -2
  115. package/serialization/resources/tts/types/index.js +2 -2
  116. package/tts-audio/tts-74f0e855-cd7e-46e7-9657-c9bdf4b60693.wav +0 -0
  117. package/tts-audio/tts-8d0d6c9c-f54d-4ffa-880a-556f3a77eb99.wav +0 -0
  118. package/tts-audio/tts-f2a1d9fa-8f28-4011-9c02-08364592d0a9.wav +0 -0
  119. package/wrapper/HumeClient.d.ts +1 -1
  120. package/wrapper/HumeClient.js +27 -20
  121. package/hume-v0.14.2-beta.2.tgz +0 -0
  122. package/hume-v0.14.2-beta.4.tgz +0 -0
  123. package/hume-v0.14.2-beta1.tgz +0 -0
File without changes
@@ -0,0 +1,37 @@
1
+ import type { Writable } from "readable-stream";
2
+ import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";
3
+ export declare class Node18UniversalStreamWrapper<ReadFormat extends Uint8Array | Uint16Array | Uint32Array>
4
+ implements
5
+ StreamWrapper<Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>, ReadFormat>
6
+ {
7
+ private readableStream;
8
+ private reader;
9
+ private events;
10
+ private paused;
11
+ private resumeCallback;
12
+ private encoding;
13
+ constructor(readableStream: ReadableStream<ReadFormat>);
14
+ on(event: string, callback: EventCallback): void;
15
+ off(event: string, callback: EventCallback): void;
16
+ pipe(
17
+ dest: Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>
18
+ ): Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>;
19
+ pipeTo(
20
+ dest: Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>
21
+ ): Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>;
22
+ unpipe(dest: Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>): void;
23
+ destroy(error?: Error): void;
24
+ pause(): void;
25
+ resume(): void;
26
+ get isPaused(): boolean;
27
+ read(): Promise<ReadFormat | undefined>;
28
+ setEncoding(encoding: string): void;
29
+ text(): Promise<string>;
30
+ json<T>(): Promise<T>;
31
+ private _write;
32
+ private _end;
33
+ private _error;
34
+ private _emit;
35
+ private _startReading;
36
+ [Symbol.asyncIterator](): AsyncIterableIterator<ReadFormat>;
37
+ }
@@ -0,0 +1,21 @@
1
+ import type { Readable, Writable } from "readable-stream";
2
+ import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";
3
+ export declare class NodePre18StreamWrapper implements StreamWrapper<Writable, Buffer> {
4
+ private readableStream;
5
+ private encoding;
6
+ constructor(readableStream: Readable);
7
+ on(event: string, callback: EventCallback): void;
8
+ off(event: string, callback: EventCallback): void;
9
+ pipe(dest: Writable): Writable;
10
+ pipeTo(dest: Writable): Writable;
11
+ unpipe(dest?: Writable): void;
12
+ destroy(error?: Error): void;
13
+ pause(): void;
14
+ resume(): void;
15
+ get isPaused(): boolean;
16
+ read(): Promise<Buffer | undefined>;
17
+ setEncoding(encoding?: string): void;
18
+ text(): Promise<string>;
19
+ json<T>(): Promise<T>;
20
+ [Symbol.asyncIterator](): AsyncIterableIterator<Buffer>;
21
+ }
@@ -0,0 +1,37 @@
1
+ import { StreamWrapper } from "./chooseStreamWrapper";
2
+ type EventCallback = (data?: any) => void;
3
+ export declare class UndiciStreamWrapper<ReadFormat extends Uint8Array | Uint16Array | Uint32Array>
4
+ implements StreamWrapper<UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>, ReadFormat>
5
+ {
6
+ private readableStream;
7
+ private reader;
8
+ private events;
9
+ private paused;
10
+ private resumeCallback;
11
+ private encoding;
12
+ constructor(readableStream: ReadableStream<ReadFormat>);
13
+ on(event: string, callback: EventCallback): void;
14
+ off(event: string, callback: EventCallback): void;
15
+ pipe(
16
+ dest: UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>
17
+ ): UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>;
18
+ pipeTo(
19
+ dest: UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>
20
+ ): UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>;
21
+ unpipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream): void;
22
+ destroy(error?: Error): void;
23
+ pause(): void;
24
+ resume(): void;
25
+ get isPaused(): boolean;
26
+ read(): Promise<ReadFormat | undefined>;
27
+ setEncoding(encoding: string): void;
28
+ text(): Promise<string>;
29
+ json<T>(): Promise<T>;
30
+ private _write;
31
+ private _end;
32
+ private _error;
33
+ private _emit;
34
+ private _startReading;
35
+ [Symbol.asyncIterator](): AsyncIterableIterator<ReadFormat>;
36
+ }
37
+ export {};
@@ -0,0 +1,18 @@
1
+ export type EventCallback = (data?: any) => void;
2
+ export interface StreamWrapper<WritableStream, ReadFormat> {
3
+ setEncoding(encoding?: string): void;
4
+ on(event: string, callback: EventCallback): void;
5
+ off(event: string, callback: EventCallback): void;
6
+ pipe(dest: WritableStream): WritableStream;
7
+ pipeTo(dest: WritableStream): WritableStream;
8
+ unpipe(dest?: WritableStream): void;
9
+ destroy(error?: Error): void;
10
+ pause(): void;
11
+ resume(): void;
12
+ get isPaused(): boolean;
13
+ read(): Promise<ReadFormat | undefined>;
14
+ text(): Promise<string>;
15
+ json<T>(): Promise<T>;
16
+ [Symbol.asyncIterator](): AsyncIterableIterator<ReadFormat>;
17
+ }
18
+ export declare function chooseStreamWrapper(responseBody: any): Promise<Promise<StreamWrapper<any, any>>>;
package/core/file.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ export type FileLike =
2
+ | ArrayBuffer
3
+ | Uint8Array
4
+ | import("buffer").Buffer
5
+ | import("buffer").Blob
6
+ | import("buffer").File
7
+ | import("stream").Readable
8
+ | import("stream/web").ReadableStream
9
+ | globalThis.Blob
10
+ | globalThis.File
11
+ | ReadableStream;