@bpmsoftwaresolutions/ai-engine-client 1.1.6 → 1.1.7
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/README.md +1 -0
- package/package.json +1 -1
- package/src/index.js +4 -0
package/README.md
CHANGED
|
@@ -335,6 +335,7 @@ const packet = await client.downloadExternalWorkflowRunArtifact('run-123', 'pack
|
|
|
335
335
|
|---|---|
|
|
336
336
|
| `ping()` | Health check + current workflow name/status. |
|
|
337
337
|
| `startSessionGovernance(body)` | Start a governed external session and return the `session_key` required for mutation-capable assistant turns. |
|
|
338
|
+
| `claimWorkItem(body)` | Bind an oriented, claim-locked context session to a concrete work item and return the active claim envelope. |
|
|
338
339
|
| `persistAssistantTurn(body)` | Persist an assistant turn to durable SQL through the API and return refreshed status projections. |
|
|
339
340
|
| `createExternalAudioRender({ text, voice, model, speed, file })` | Create a client-scoped external audio render using inline text or multipart upload. |
|
|
340
341
|
| `getExternalAudioRender(audioRenderRunId)` | Read external audio render status for the authenticated client. |
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -351,6 +351,10 @@ export class AIEngineClient {
|
|
|
351
351
|
return this._request('/api/work/start', { method: 'POST', body });
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
+
async claimWorkItem(body = {}) {
|
|
355
|
+
return this._request('/api/governance/claims/claim-work-item', { method: 'POST', body });
|
|
356
|
+
}
|
|
357
|
+
|
|
354
358
|
async completeTurn(body = {}) {
|
|
355
359
|
return this._request('/api/turns/complete', { method: 'POST', body });
|
|
356
360
|
}
|