@bpmsoftwaresolutions/ai-engine-client 1.1.26 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +37 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmsoftwaresolutions/ai-engine-client",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "Thin npm client for the AI Engine operator and retrieval APIs",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
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.26';
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',
@@ -675,6 +675,42 @@ export class AIEngineClient {
675
675
  return this._request('/api/charters/run', { method: 'POST', body });
676
676
  }
677
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
+
678
714
  async persistAssistantTurn(body) {
679
715
  return this._request('/api/v1/assistant-turns', { method: 'POST', body });
680
716
  }