@ohm_studio/sdk 0.9.0 → 0.10.0
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/dist/http2.d.ts +31 -0
- package/dist/http2.d.ts.map +1 -0
- package/dist/http2.js +59 -0
- package/dist/http2.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/http2.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opt-in HTTP/2 dispatcher for Node-side OHM clients.
|
|
3
|
+
*
|
|
4
|
+
* Node 18+ ships `undici` as the fetch engine. By default the global
|
|
5
|
+
* dispatcher uses HTTP/1.1 with connection pooling — fine for most
|
|
6
|
+
* workloads. When a single process makes many concurrent OHM calls
|
|
7
|
+
* (server proxies, batch CLIs, background workers), switching to
|
|
8
|
+
* HTTP/2 multiplexing saves 50–100 ms on each parallel call.
|
|
9
|
+
*
|
|
10
|
+
* Browsers + React Native already use the platform's HTTP/2 stack;
|
|
11
|
+
* this helper is Node-only.
|
|
12
|
+
*
|
|
13
|
+
* import { enableHttp2 } from "@ohm_studio/sdk/http2";
|
|
14
|
+
* enableHttp2(); // call once at process start
|
|
15
|
+
*
|
|
16
|
+
* // ... all `new OHM(...)` clients from this point on multiplex
|
|
17
|
+
* // over HTTP/2 to api.ohm.doctor.
|
|
18
|
+
*
|
|
19
|
+
* Safe to call repeatedly — the dispatcher is set globally on the
|
|
20
|
+
* first call and ignored on subsequent ones.
|
|
21
|
+
*
|
|
22
|
+
* Caveats:
|
|
23
|
+
* • This swaps the GLOBAL fetch dispatcher. If your app also calls
|
|
24
|
+
* a non-OHM HTTP/2-hostile origin, scope this with `new Agent`
|
|
25
|
+
* attached to specific URLs via `connect: { allowH2 }` on a
|
|
26
|
+
* per-client dispatcher instead.
|
|
27
|
+
* • Requires Node 18.5+ (undici 5.16+).
|
|
28
|
+
* • Silently no-ops in non-Node runtimes.
|
|
29
|
+
*/
|
|
30
|
+
export declare function enableHttp2(): void;
|
|
31
|
+
//# sourceMappingURL=http2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http2.d.ts","sourceRoot":"","sources":["../src/http2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,WAAW,IAAI,IAAI,CA4BlC"}
|
package/dist/http2.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opt-in HTTP/2 dispatcher for Node-side OHM clients.
|
|
3
|
+
*
|
|
4
|
+
* Node 18+ ships `undici` as the fetch engine. By default the global
|
|
5
|
+
* dispatcher uses HTTP/1.1 with connection pooling — fine for most
|
|
6
|
+
* workloads. When a single process makes many concurrent OHM calls
|
|
7
|
+
* (server proxies, batch CLIs, background workers), switching to
|
|
8
|
+
* HTTP/2 multiplexing saves 50–100 ms on each parallel call.
|
|
9
|
+
*
|
|
10
|
+
* Browsers + React Native already use the platform's HTTP/2 stack;
|
|
11
|
+
* this helper is Node-only.
|
|
12
|
+
*
|
|
13
|
+
* import { enableHttp2 } from "@ohm_studio/sdk/http2";
|
|
14
|
+
* enableHttp2(); // call once at process start
|
|
15
|
+
*
|
|
16
|
+
* // ... all `new OHM(...)` clients from this point on multiplex
|
|
17
|
+
* // over HTTP/2 to api.ohm.doctor.
|
|
18
|
+
*
|
|
19
|
+
* Safe to call repeatedly — the dispatcher is set globally on the
|
|
20
|
+
* first call and ignored on subsequent ones.
|
|
21
|
+
*
|
|
22
|
+
* Caveats:
|
|
23
|
+
* • This swaps the GLOBAL fetch dispatcher. If your app also calls
|
|
24
|
+
* a non-OHM HTTP/2-hostile origin, scope this with `new Agent`
|
|
25
|
+
* attached to specific URLs via `connect: { allowH2 }` on a
|
|
26
|
+
* per-client dispatcher instead.
|
|
27
|
+
* • Requires Node 18.5+ (undici 5.16+).
|
|
28
|
+
* • Silently no-ops in non-Node runtimes.
|
|
29
|
+
*/
|
|
30
|
+
export function enableHttp2() {
|
|
31
|
+
// Bail in non-Node runtimes (browser, RN, Bun without process).
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
|
+
const proc = typeof globalThis.process !== "undefined"
|
|
34
|
+
? globalThis.process
|
|
35
|
+
: undefined;
|
|
36
|
+
if (!proc?.versions?.node)
|
|
37
|
+
return;
|
|
38
|
+
try {
|
|
39
|
+
// Dynamic require to avoid bundlers pulling undici into browser builds.
|
|
40
|
+
// Node 18+ ships undici as a hidden dep of the global fetch.
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
42
|
+
const undici = require("undici");
|
|
43
|
+
if (!undici?.setGlobalDispatcher || !undici?.Agent)
|
|
44
|
+
return;
|
|
45
|
+
undici.setGlobalDispatcher(new undici.Agent({
|
|
46
|
+
allowH2: true,
|
|
47
|
+
// Keep-alive these so the H2 multiplex actually has connections
|
|
48
|
+
// to reuse.
|
|
49
|
+
keepAliveTimeout: 30_000,
|
|
50
|
+
keepAliveMaxTimeout: 600_000,
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
// undici might not be present (e.g. Cloudflare Workers, Deno).
|
|
55
|
+
// Silently ignore — the customer's fetch keeps using whatever
|
|
56
|
+
// global dispatcher it had.
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=http2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http2.js","sourceRoot":"","sources":["../src/http2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,WAAW;IACzB,gEAAgE;IAChE,8DAA8D;IAC9D,MAAM,IAAI,GAAG,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW;QAC7D,CAAC,CAAE,UAAkB,CAAC,OAAO;QAC7B,CAAC,CAAC,SAAS,CAAC;IACd,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI;QAAE,OAAO;IAElC,IAAI,CAAC;QACH,wEAAwE;QACxE,6DAA6D;QAC7D,iEAAiE;QACjE,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;QACjC,IAAI,CAAC,MAAM,EAAE,mBAAmB,IAAI,CAAC,MAAM,EAAE,KAAK;YAAE,OAAO;QAC3D,MAAM,CAAC,mBAAmB,CACxB,IAAI,MAAM,CAAC,KAAK,CAAC;YACf,OAAO,EAAE,IAAI;YACb,gEAAgE;YAChE,YAAY;YACZ,gBAAgB,EAAE,MAAM;YACxB,mBAAmB,EAAE,OAAO;SAC7B,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,+DAA+D;QAC/D,8DAA8D;QAC9D,4BAA4B;IAC9B,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { Recorder, RecorderError, isRecordingSupported } from "./recorder";
|
|
|
5
5
|
export type { RecorderOptions, RecorderState, RecorderErrorCode, MicrophoneInfo, } from "./recorder";
|
|
6
6
|
export { saveRecording, getRecording, listRecordings, removeRecording, clearRecordings, isPersistenceSupported, } from "./persist";
|
|
7
7
|
export type { PersistedRecording } from "./persist";
|
|
8
|
+
export { enableHttp2 } from "./http2";
|
|
8
9
|
/**
|
|
9
10
|
* OHM Studio SDK for JavaScript / TypeScript.
|
|
10
11
|
*
|
|
@@ -48,7 +49,7 @@ export declare class OHM extends OHMCoreClient {
|
|
|
48
49
|
* - Node-style `{ buffer, name?, type? }`
|
|
49
50
|
*
|
|
50
51
|
* Used by both `runMultipart` (one-shot) and the streaming path
|
|
51
|
-
* (`audio.
|
|
52
|
+
* (`audio.extractStream`).
|
|
52
53
|
*/
|
|
53
54
|
protected buildMultipartBody(file: unknown, fields?: Record<string, string>): Promise<FormData>;
|
|
54
55
|
}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAId,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,OAAO,EACP,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAE9B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC3E,YAAY,EACV,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAId,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,OAAO,EACP,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAE9B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC3E,YAAY,EACV,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,GAAI,SAAQ,aAAa;gBACxB,IAAI,EAAE,OAAO;cAIT,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE;QACpC,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,GAAG,CAAC;QACV,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAChC,MAAM,CAAC,EAAE,WAAW,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;KACnD,GAAG,OAAO,CAAC,CAAC,CAAC;IAwBd;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAuFvB;;;;;;;;OAQG;cACa,kBAAkB,CAChC,IAAI,EAAE,OAAO,EACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,OAAO,CAAC,QAAQ,CAAC;CAuBrB;AAED,eAAe,GAAG,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { OHMAbortError, OHMAuthError, OHMCoreClient, OHMRateLimitError, OHMServe
|
|
|
2
2
|
export * from "@ohm_studio/sdk-core";
|
|
3
3
|
export { Recorder, RecorderError, isRecordingSupported } from "./recorder";
|
|
4
4
|
export { saveRecording, getRecording, listRecordings, removeRecording, clearRecordings, isPersistenceSupported, } from "./persist";
|
|
5
|
+
export { enableHttp2 } from "./http2";
|
|
5
6
|
/**
|
|
6
7
|
* OHM Studio SDK for JavaScript / TypeScript.
|
|
7
8
|
*
|
|
@@ -133,7 +134,7 @@ export class OHM extends OHMCoreClient {
|
|
|
133
134
|
* - Node-style `{ buffer, name?, type? }`
|
|
134
135
|
*
|
|
135
136
|
* Used by both `runMultipart` (one-shot) and the streaming path
|
|
136
|
-
* (`audio.
|
|
137
|
+
* (`audio.extractStream`).
|
|
137
138
|
*/
|
|
138
139
|
async buildMultipartBody(file, fields) {
|
|
139
140
|
const fd = new FormData();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAM9B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAO3E,OAAO,EACL,aAAa,EACb,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,sBAAsB,GACvB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAM9B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAO3E,OAAO,EACL,aAAa,EACb,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,sBAAsB,GACvB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,GAAI,SAAQ,aAAa;IACpC,YAAY,IAAa;QACvB,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAES,KAAK,CAAC,YAAY,CAAI,IAO/B;QACC,MAAM,EAAE,GAAG,CAAC,MAAM,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAa,CAAC;QAC/E,gEAAgE;QAChE,kEAAkE;QAClE,8DAA8D;QAC9D,oEAAoE;QACpE,gBAAgB;QAChB,IAAI,IAAI,CAA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yEAAyE,CAC1E,CAAC;QACJ,CAAC;QACD,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,CAAC;YAClD,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClB,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAED,eAAe,GAAG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohm_studio/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "OHM Studio SDK for JavaScript / TypeScript / React. Voice-to-structured-JSON clinical extraction APIs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"fix-webm-duration": "^1.0.6",
|
|
45
45
|
"idb-keyval": "^6.2.2",
|
|
46
|
-
"@ohm_studio/sdk-core": "0.
|
|
46
|
+
"@ohm_studio/sdk-core": "0.8.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": ">=17"
|