@bpmsoftwaresolutions/ai-engine-client 1.1.25 → 1.1.27
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/package.json +1 -1
- package/src/index.js +42 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const DEFAULT_TIMEOUT_MS = 30000;
|
|
2
|
-
export const AI_ENGINE_CLIENT_VERSION = '1.1.
|
|
2
|
+
export const AI_ENGINE_CLIENT_VERSION = '1.1.27';
|
|
3
3
|
export const GOVERNED_MUTATION_REQUIRED_CAPABILITIES = [
|
|
4
4
|
'executeVerifiedMutation',
|
|
5
5
|
'post_mutation_verification',
|
|
@@ -455,6 +455,11 @@ export class AIEngineClient {
|
|
|
455
455
|
return this._request('/api/governance/claims/claim-work-item', { method: 'POST', body });
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
+
async getClaim(claimId) {
|
|
459
|
+
if (!claimId) throw new Error('claimId is required.');
|
|
460
|
+
return this._request(`/api/governance/claims/${encodeURIComponent(claimId)}`);
|
|
461
|
+
}
|
|
462
|
+
|
|
458
463
|
async getExecutionEligibility(body = {}) {
|
|
459
464
|
return this._request('/api/governance/execution-eligibility', {
|
|
460
465
|
method: 'POST',
|
|
@@ -670,6 +675,42 @@ export class AIEngineClient {
|
|
|
670
675
|
return this._request('/api/charters/run', { method: 'POST', body });
|
|
671
676
|
}
|
|
672
677
|
|
|
678
|
+
async createProjectDelivery(body = {}) {
|
|
679
|
+
return this._request('/api/project-delivery', { method: 'POST', body });
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
async approveProjectCharterIntent(projectId, body = {}) {
|
|
683
|
+
if (!projectId) throw new Error('projectId is required.');
|
|
684
|
+
return this._request(`/api/project-delivery/${encodeURIComponent(projectId)}/approve-charter-intent`, {
|
|
685
|
+
method: 'POST',
|
|
686
|
+
body,
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
async approveImplementationRoadmap(projectId, body = {}) {
|
|
691
|
+
if (!projectId) throw new Error('projectId is required.');
|
|
692
|
+
return this._request(`/api/project-delivery/${encodeURIComponent(projectId)}/approve-roadmap`, {
|
|
693
|
+
method: 'POST',
|
|
694
|
+
body,
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
async runProjectCharter(projectId, body = {}) {
|
|
699
|
+
if (!projectId) throw new Error('projectId is required.');
|
|
700
|
+
return this._request(`/api/project-delivery/${encodeURIComponent(projectId)}/run-charter`, {
|
|
701
|
+
method: 'POST',
|
|
702
|
+
body,
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
async beginImplementationRoadmap(projectId, body = {}) {
|
|
707
|
+
if (!projectId) throw new Error('projectId is required.');
|
|
708
|
+
return this._request(`/api/project-delivery/${encodeURIComponent(projectId)}/begin-roadmap`, {
|
|
709
|
+
method: 'POST',
|
|
710
|
+
body,
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
|
|
673
714
|
async persistAssistantTurn(body) {
|
|
674
715
|
return this._request('/api/v1/assistant-turns', { method: 'POST', body });
|
|
675
716
|
}
|