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.
- package/.claude/settings.local.json +4 -1
- package/Client.d.ts +1 -0
- package/api/resources/empathicVoice/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chat/client/Client.js +3 -28
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -20
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chats/client/Client.js +9 -15
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/configs/client/Client.js +29 -52
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +29 -52
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/tools/client/Client.js +27 -46
- package/api/resources/expressionMeasurement/client/Client.d.ts +1 -0
- package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +1 -0
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +18 -30
- package/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +1 -0
- package/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Socket.js +0 -4
- package/api/resources/tts/client/Client.d.ts +1 -0
- package/api/resources/tts/client/Client.js +16 -34
- package/api/resources/tts/index.d.ts +1 -1
- package/api/resources/tts/index.js +1 -1
- package/api/resources/tts/resources/index.d.ts +0 -1
- package/api/resources/tts/resources/index.js +0 -1
- package/api/resources/tts/resources/streamInput/client/Client.d.ts +4 -3
- package/api/resources/tts/resources/streamInput/client/Client.js +14 -15
- package/api/resources/tts/resources/streamInput/client/Socket.d.ts +1 -1
- package/api/resources/tts/resources/streamInput/client/Socket.js +0 -4
- package/api/resources/tts/resources/streamInput/index.d.ts +0 -1
- package/api/resources/tts/resources/streamInput/index.js +0 -1
- package/api/resources/tts/resources/streamInput/types/index.js +26 -14
- package/api/resources/tts/resources/voices/client/Client.d.ts +1 -0
- package/api/resources/tts/resources/voices/client/Client.js +10 -19
- package/api/resources/tts/types/index.d.ts +2 -2
- package/api/resources/tts/types/index.js +2 -2
- package/changes.md +843 -0
- package/comment_changes.txt +0 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +37 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +37 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/file.d.ts +11 -0
- package/diff.txt +18143 -0
- package/dist/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chat/client/Client.js +3 -28
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -20
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +9 -15
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +29 -52
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +29 -52
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +27 -46
- package/dist/api/resources/expressionMeasurement/client/Client.d.ts +1 -0
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +1 -0
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +18 -30
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +1 -0
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Socket.js +0 -4
- package/dist/api/resources/tts/client/Client.d.ts +1 -0
- package/dist/api/resources/tts/client/Client.js +16 -34
- package/dist/api/resources/tts/index.d.ts +1 -1
- package/dist/api/resources/tts/index.js +1 -1
- package/dist/api/resources/tts/resources/index.d.ts +0 -1
- package/dist/api/resources/tts/resources/index.js +0 -1
- package/dist/api/resources/tts/resources/streamInput/client/Client.d.ts +4 -3
- package/dist/api/resources/tts/resources/streamInput/client/Client.js +14 -15
- package/dist/api/resources/tts/resources/streamInput/client/Socket.d.ts +1 -1
- package/dist/api/resources/tts/resources/streamInput/client/Socket.js +0 -4
- package/dist/api/resources/tts/resources/streamInput/index.d.ts +0 -1
- package/dist/api/resources/tts/resources/streamInput/index.js +0 -1
- package/dist/api/resources/tts/resources/streamInput/types/index.js +26 -14
- package/dist/api/resources/tts/resources/voices/client/Client.d.ts +1 -0
- package/dist/api/resources/tts/resources/voices/client/Client.js +10 -19
- package/dist/api/resources/tts/types/index.d.ts +2 -2
- package/dist/api/resources/tts/types/index.js +2 -2
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +37 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +37 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/file.d.ts +11 -0
- package/dist/main.js +40944 -0
- package/dist/serialization/resources/tts/resources/index.d.ts +0 -1
- package/dist/serialization/resources/tts/resources/index.js +0 -1
- package/dist/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.d.ts +3 -3
- package/dist/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.js +2 -2
- package/dist/serialization/resources/tts/resources/streamInput/index.d.ts +0 -1
- package/dist/serialization/resources/tts/resources/streamInput/index.js +0 -1
- package/dist/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.d.ts +4 -1
- package/dist/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.js +55 -33
- package/dist/serialization/resources/tts/resources/streamInput/types/index.js +26 -14
- package/dist/serialization/resources/tts/types/index.d.ts +2 -2
- package/dist/serialization/resources/tts/types/index.js +2 -2
- package/dist/wrapper/HumeClient.d.ts +1 -1
- package/dist/wrapper/HumeClient.js +27 -20
- package/hume-v0.14.2-beta.6.tgz +0 -0
- package/js_changes.txt +2610 -0
- package/main.js +40944 -0
- package/package.json +1 -1
- package/serialization/resources/tts/resources/index.d.ts +0 -1
- package/serialization/resources/tts/resources/index.js +0 -1
- package/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.d.ts +3 -3
- package/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.js +2 -2
- package/serialization/resources/tts/resources/streamInput/index.d.ts +0 -1
- package/serialization/resources/tts/resources/streamInput/index.js +0 -1
- package/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.d.ts +4 -1
- package/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.js +55 -33
- package/serialization/resources/tts/resources/streamInput/types/index.js +26 -14
- package/serialization/resources/tts/types/index.d.ts +2 -2
- package/serialization/resources/tts/types/index.js +2 -2
- package/tts-audio/tts-74f0e855-cd7e-46e7-9657-c9bdf4b60693.wav +0 -0
- package/tts-audio/tts-8d0d6c9c-f54d-4ffa-880a-556f3a77eb99.wav +0 -0
- package/tts-audio/tts-f2a1d9fa-8f28-4011-9c02-08364592d0a9.wav +0 -0
- package/wrapper/HumeClient.d.ts +1 -1
- package/wrapper/HumeClient.js +27 -20
- package/hume-v0.14.2-beta.2.tgz +0 -0
- package/hume-v0.14.2-beta.4.tgz +0 -0
- 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;
|