@opengeni/sdk 0.40.0 → 0.42.1
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-SSQPCFEN.js → chunk-M7TPZ3ED.js} +20 -2
- package/dist/chunk-M7TPZ3ED.js.map +1 -0
- package/dist/client.d.ts +6 -2
- package/dist/core.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +17 -2
- package/dist/workspace-instruction-policies.d.ts +50 -0
- package/package.json +1 -1
- package/src/client.ts +31 -1
- package/src/index.ts +18 -1
- package/src/types.ts +17 -2
- package/src/workspace-instruction-policies.ts +62 -0
- package/dist/chunk-SSQPCFEN.js.map +0 -1
|
@@ -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
|
-
/**
|
|
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();
|
|
@@ -1559,6 +1559,24 @@ var OpenGeniClient = class {
|
|
|
1559
1559
|
request
|
|
1560
1560
|
);
|
|
1561
1561
|
}
|
|
1562
|
+
/** List the newest immutable onboarding proposals and their inactive policy drafts. */
|
|
1563
|
+
async listWorkspaceInstructionPolicyOnboardingProposals(workspaceId, options = {}) {
|
|
1564
|
+
const params = new URLSearchParams();
|
|
1565
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
1566
|
+
const query = params.toString();
|
|
1567
|
+
return await this.requestJson(
|
|
1568
|
+
"GET",
|
|
1569
|
+
`/v1/workspaces/${workspaceId}/instruction-policies/onboarding-proposals${query ? `?${query}` : ""}`
|
|
1570
|
+
);
|
|
1571
|
+
}
|
|
1572
|
+
/** Create one draft-only proposal against an exact active-policy baseline. */
|
|
1573
|
+
async createWorkspaceInstructionPolicyOnboardingProposal(workspaceId, request) {
|
|
1574
|
+
return await this.requestJson(
|
|
1575
|
+
"POST",
|
|
1576
|
+
`/v1/workspaces/${workspaceId}/instruction-policies/onboarding-proposals`,
|
|
1577
|
+
request
|
|
1578
|
+
);
|
|
1579
|
+
}
|
|
1562
1580
|
/** Import the stored legacy workspace override as an inactive charter draft. */
|
|
1563
1581
|
async importLegacyWorkspaceInstructionPolicyDraft(workspaceId, request = {}) {
|
|
1564
1582
|
return await this.requestJson(
|
|
@@ -3050,4 +3068,4 @@ export {
|
|
|
3050
3068
|
authorizeTranscriptionAdapter,
|
|
3051
3069
|
createTranscriptionSessionRequest
|
|
3052
3070
|
};
|
|
3053
|
-
//# sourceMappingURL=chunk-
|
|
3071
|
+
//# sourceMappingURL=chunk-M7TPZ3ED.js.map
|