@opengeni/sdk 0.40.0 → 0.41.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-SSQPCFEN.js → chunk-DKNW4WMJ.js} +19 -1
- package/dist/chunk-DKNW4WMJ.js.map +1 -0
- package/dist/client.d.ts +5 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/workspace-instruction-policies.d.ts +50 -0
- package/package.json +1 -1
- package/src/client.ts +30 -0
- package/src/index.ts +12 -1
- package/src/workspace-instruction-policies.ts +62 -0
- package/dist/chunk-SSQPCFEN.js.map +0 -1
|
@@ -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-DKNW4WMJ.js.map
|