Transport, one file per concern under typescript/src/client/. Every one of them documents, in its own header comment, what it explicitly does not do — a pattern worth reading literally, since it reflects real separation of concerns in this codebase, not just style.
HealthApi
health() → GET /healthExecutionApi
health(), execute(transaction) → POST /executeVerificationApi
verify(id) → GET /verification/:idReplayApi
replay(id) → POST /replayReceiptApi
generate(id) → POST /receiptTransactionApi
get(id), list(page, pageSize) → GET /transactions[/:id]TrustRecordApi
get(id) → GET /trust-records/:idPolicyApi
validate(policy) → POST /policies/validateExecutionApi
typescript/src/client/ExecutionApi.ts. Duplicates health() (also on HealthApi) alongside execute():
VerificationApi
typescript/src/client/VerificationApi.ts. Exactly one method, and it’s a read, not a trigger:
ReplayApi
typescript/src/client/ReplayApi.ts:
ReceiptApi
typescript/src/client/ReceiptApi.ts. Its header comment explicitly disclaims verification, execution, and replay — and true to that, it also has no method for reading back a previously generated Receipt:
TransactionApi
typescript/src/client/TransactionApi.ts:
TrustRecordApi
typescript/src/client/TrustRecordApi.ts:
PolicyApi
typescript/src/client/PolicyApi.ts. Defines its own PolicyValidationResult interface locally rather than importing one from models/:
HealthApi
typescript/src/client/HealthApi.ts:
HealthStatus models optional version and timestamp fields that the real GET /health handler never returns — see REST API → System for what the server actually sends back ({ "status": "UP" } only).Related
ParmanaClient
The facade composing all of these.
Models
Request/response types used above.
Errors
What each of these throws on failure — and what they don’t.
REST API
The HTTP surface these classes wrap.