@opengeni/sdk 0.42.1 → 0.44.3
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-XBBPYTI5.js → chunk-KIHGPM7H.js} +2 -2
- package/dist/{chunk-M7TPZ3ED.js → chunk-UZNQOMWX.js} +12 -2
- package/dist/chunk-UZNQOMWX.js.map +1 -0
- package/dist/{chunk-OINSI33U.js → chunk-V5F253OG.js} +23 -4
- package/dist/chunk-V5F253OG.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 +6 -0
- package/dist/workspace-state.d.ts +26 -0
- package/package.json +1 -1
- package/src/client.ts +19 -1
- package/src/errors.ts +23 -2
- package/src/index.ts +3 -0
- package/src/types.ts +6 -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-KIHGPM7H.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniApiError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5F253OG.js";
|
|
4
4
|
|
|
5
5
|
// src/codex-realtime-v3-wire.ts
|
|
6
6
|
var CODEX_REALTIME_INITIAL_ITEMS_MAX_COUNT = 128;
|
|
@@ -2015,4 +2015,4 @@ export {
|
|
|
2015
2015
|
hasStoredSessionRealtimeOwnerProof,
|
|
2016
2016
|
createCodexRealtimeController
|
|
2017
2017
|
};
|
|
2018
|
-
//# sourceMappingURL=chunk-
|
|
2018
|
+
//# sourceMappingURL=chunk-KIHGPM7H.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
OpenGeniStreamError,
|
|
6
6
|
isAbortError,
|
|
7
7
|
isRetryableStreamError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V5F253OG.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-UZNQOMWX.js.map
|