@bpmsoftwaresolutions/ai-engine-client 1.1.25 → 1.1.26

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 +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmsoftwaresolutions/ai-engine-client",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
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.25';
2
+ export const AI_ENGINE_CLIENT_VERSION = '1.1.26';
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',