@hsuite/smart-engines-sdk 4.1.0 → 4.2.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/CHANGELOG.md +9 -0
- package/dist/index.d.ts +4 -0
- package/dist/nestjs/index.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.2.0 — 2026-06-26
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **Two-phase EXECUTABLE-agent surface (additive, non-breaking).** Reflects the host change that promotes a payer-funded XRPL agent into an executable AGENT record during the execute-create/finalize half. Lets the app-as-proxy consumer drive the full prepare → fund → execute agent flow type-safely.
|
|
8
|
+
- **`EntityCreationResult.agentId?: string` + `status?: string`.** The host now merges `{ agentId, status }` additively onto the execute-create envelope once the funded entity is promoted to an agent record (`executeCreateAgent`, and the convenience `createAgent` on payer-funded chains). Present ONLY on the agent execute/finalize path; undefined for non-agent entity types and on the prepare half. Field names + `string` types match the host controller's `executeCreate` return (`apps/smart-host/.../entities.controller.ts`) verbatim.
|
|
9
|
+
- **`CreateAgentRequest.rulesConfig?: Record<string, unknown>` + `capabilities?: string[]`.** Carried through `prepareCreateAgent` (which already forwards the whole request body) so the host can stash them VERBATIM on the PENDING registry row at prepare and recover them at execute to mint the agent record — avoiding a `rulesHash` divergence from re-deriving them from the bound rule. Field names + types mirror the host `PrepareCreateDto` / `entity-registry.schema.ts` verbatim. Optional/additive; ignored by the legacy synchronous `createAgent` and by non-agent entity types.
|
|
10
|
+
- **App-as-payer `fundWith` documented.** `CreateAgentRequest.fundWith` now documents that a smart-app may supply a SERVER-SIDE `fundWith` that signs the prepared payer `Payment` with the app's OWN treasury key and sets `payerAccountId` to that treasury account. No new method — the existing `prepareCreateAgent` → `fundWith` → `executeCreateAgent` sequence already supports an app funding an agent on a customer's behalf.
|
|
11
|
+
|
|
3
12
|
## 4.1.0 — 2026-06-25
|
|
4
13
|
|
|
5
14
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -25329,6 +25329,8 @@ export type CreateAgentRequest = {
|
|
|
25329
25329
|
agentType?: string;
|
|
25330
25330
|
securityMode?: EntitySecurityMode;
|
|
25331
25331
|
payerAccountId?: string;
|
|
25332
|
+
rulesConfig?: Record<string, unknown>;
|
|
25333
|
+
capabilities?: string[];
|
|
25332
25334
|
fundWith?: FundWith;
|
|
25333
25335
|
};
|
|
25334
25336
|
export type EntityCreationResult = {
|
|
@@ -25336,6 +25338,8 @@ export type EntityCreationResult = {
|
|
|
25336
25338
|
ruleRef: RuleRef;
|
|
25337
25339
|
chainAccounts: Record<string, string>;
|
|
25338
25340
|
transactionId?: string;
|
|
25341
|
+
agentId?: string;
|
|
25342
|
+
status?: string;
|
|
25339
25343
|
};
|
|
25340
25344
|
export type EntityInfo = {
|
|
25341
25345
|
entityId: string;
|
package/dist/nestjs/index.d.ts
CHANGED
|
@@ -12384,6 +12384,8 @@ export type CreateAgentRequest = {
|
|
|
12384
12384
|
agentType?: string;
|
|
12385
12385
|
securityMode?: EntitySecurityMode;
|
|
12386
12386
|
payerAccountId?: string;
|
|
12387
|
+
rulesConfig?: Record<string, unknown>;
|
|
12388
|
+
capabilities?: string[];
|
|
12387
12389
|
fundWith?: FundWith;
|
|
12388
12390
|
};
|
|
12389
12391
|
export type EntityCreationResult = {
|
|
@@ -12391,6 +12393,8 @@ export type EntityCreationResult = {
|
|
|
12391
12393
|
ruleRef: RuleRef;
|
|
12392
12394
|
chainAccounts: Record<string, string>;
|
|
12393
12395
|
transactionId?: string;
|
|
12396
|
+
agentId?: string;
|
|
12397
|
+
status?: string;
|
|
12394
12398
|
};
|
|
12395
12399
|
export type EntityInfo = {
|
|
12396
12400
|
entityId: string;
|