@opengeni/sdk 0.42.1 → 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.
- package/dist/{chunk-M7TPZ3ED.js → chunk-74LY67W7.js} +12 -2
- package/dist/chunk-74LY67W7.js.map +1 -0
- package/dist/{chunk-XBBPYTI5.js → chunk-SLJ33Y7V.js} +2 -2
- package/dist/{chunk-OINSI33U.js → chunk-UD2DNDSS.js} +22 -3
- package/dist/chunk-UD2DNDSS.js.map +1 -0
- package/dist/client.d.ts +3 -1
- package/dist/codex-realtime-controller.js +2 -2
- package/dist/core.js +2 -2
- package/dist/errors.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/realtime.js +2 -2
- package/dist/types.d.ts +4 -0
- package/dist/workspace-state.d.ts +26 -0
- package/package.json +1 -1
- package/src/client.ts +19 -1
- package/src/errors.ts +22 -1
- package/src/index.ts +3 -0
- package/src/types.ts +4 -0
- package/src/workspace-state.ts +32 -0
- package/dist/chunk-M7TPZ3ED.js.map +0 -1
- package/dist/chunk-OINSI33U.js.map +0 -1
- /package/dist/{chunk-XBBPYTI5.js.map → chunk-SLJ33Y7V.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
OpenGeniStreamError,
|
|
6
6
|
isAbortError,
|
|
7
7
|
isRetryableStreamError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UD2DNDSS.js";
|
|
9
9
|
|
|
10
10
|
// src/sse.ts
|
|
11
11
|
async function* parseSseStream(stream) {
|
|
@@ -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-
|
|
3081
|
+
//# sourceMappingURL=chunk-74LY67W7.js.map
|