@opengeni/sdk 0.41.0 → 0.44.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.
@@ -5,7 +5,7 @@ import {
5
5
  OpenGeniStreamError,
6
6
  isAbortError,
7
7
  isRetryableStreamError
8
- } from "./chunk-OINSI33U.js";
8
+ } from "./chunk-UD2DNDSS.js";
9
9
 
10
10
  // src/sse.ts
11
11
  async function* parseSseStream(stream) {
@@ -471,7 +471,7 @@ var OpenGeniClient = class {
471
471
  this.fetchImpl = options.fetch ?? ((input, init) => fetch(input, init));
472
472
  }
473
473
  // --- Session lifecycle ---------------------------------------------------
474
- /** Upload one ephemeral browser recording. This method never retries. */
474
+ /** Make one finalization attempt for a recording; callers may retry retained audio. */
475
475
  async transcribeAudio(workspaceId, input) {
476
476
  const correlationId = crypto.randomUUID();
477
477
  const form = new FormData();
@@ -1527,6 +1527,16 @@ var OpenGeniClient = class {
1527
1527
  `/v1/workspaces/${workspaceId}/workspace-state${query}`
1528
1528
  );
1529
1529
  }
1530
+ /** Download the canonical, explicitly sanitized Workspace State export. */
1531
+ async exportWorkspaceState(workspaceId, options = {}) {
1532
+ const params = new URLSearchParams();
1533
+ if (options.attemptId) params.set("attemptId", options.attemptId);
1534
+ const query = params.size > 0 ? `?${params.toString()}` : "";
1535
+ return await this.requestJson(
1536
+ "GET",
1537
+ `/v1/workspaces/${workspaceId}/workspace-state/export${query}`
1538
+ );
1539
+ }
1530
1540
  async updateWorkspace(workspaceId, request) {
1531
1541
  return await this.requestJson("PATCH", `/v1/workspaces/${workspaceId}`, request);
1532
1542
  }
@@ -3068,4 +3078,4 @@ export {
3068
3078
  authorizeTranscriptionAdapter,
3069
3079
  createTranscriptionSessionRequest
3070
3080
  };
3071
- //# sourceMappingURL=chunk-DKNW4WMJ.js.map
3081
+ //# sourceMappingURL=chunk-74LY67W7.js.map