@heyanon-arp/sdk 0.0.30 → 0.0.32
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/dist/types/index.d.ts +1 -1
- package/dist/types/read-model.d.ts +31 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type { InboxBlockScope, InboxBlock, BlockInboxBody } from './inbox';
|
|
|
16
16
|
export { INBOX_BLOCK_SCOPES, InboxBlockScopes, isInboxBlockScope } from './inbox';
|
|
17
17
|
export type { CliSessionCreated, CliTokenIssued, CliWhoami, MyAgentSummary, CliLoginSessionStoredState, CliLoginSessionWireState, } from './cli-auth';
|
|
18
18
|
export { CLI_LOGIN_SESSION_STORED_STATES, CLI_LOGIN_SESSION_STATES, CliLoginSessionStates, isCliLoginSessionWireState } from './cli-auth';
|
|
19
|
-
export type { AssetIdentifierWire, DelegationPublic, ReceiptPublic, RelationshipPublic, WorkLogPublic, EventPublic, IngestResult, SenderSequenceResponse, InboxUnblockResult, ListRelationshipsQuery, ListInboxQuery, ListEventsQuery, ListDelegationsQuery, ListWorkLogsQuery, ListReceiptsQuery, } from './read-model';
|
|
19
|
+
export type { AssetIdentifierWire, DelegationPublic, DisputeResolutionPublic, ReceiptPublic, RelationshipPublic, WorkLogPublic, EventPublic, IngestResult, SenderSequenceResponse, InboxUnblockResult, ListRelationshipsQuery, ListInboxQuery, ListEventsQuery, ListDelegationsQuery, ListWorkLogsQuery, ListReceiptsQuery, } from './read-model';
|
|
20
20
|
export type { AcceptPrefs, AcceptCurrency, AgentRegisteredResponse, AgentPublic, UpdateAgentBody, RegisterAgentRequest, ChallengeResponse, ReputationScores, ReputationCounters, AgentReputation, } from './agent';
|
|
21
21
|
export { AGENT_TAG_REGEX, AGENT_NAME_REGEX, RESERVED_NAMES, isReservedName, isValidAgentName, normalizeName } from './agent';
|
|
22
22
|
export type { OwnerSigningMethod, KeyLinkPayload, ScryptPasswordAttestation } from './identity';
|
|
@@ -217,3 +217,34 @@ export interface ListReceiptsQuery {
|
|
|
217
217
|
after?: string;
|
|
218
218
|
limit?: number;
|
|
219
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* Public projection of an autonomous dispute resolution — the arbiter's
|
|
222
|
+
* verdict for a disputed delegation. Returned by signed
|
|
223
|
+
* `GET /v1/escrow/disputes/:delegationId` (parties only); the server's
|
|
224
|
+
* DisputeReadService maps the `dispute_resolutions` row to this shape and the
|
|
225
|
+
* CLI consumes it. `winnerRole`/`winnerDid` are derived (payer = buyer/offerer,
|
|
226
|
+
* payee = worker/recipient); `verdictSource` is `llm` | `objective_fallback`;
|
|
227
|
+
* `solanaSignature` is the on-chain `resolve_dispute` tx. `status` /
|
|
228
|
+
* `verdictSource` are carried as strings here — they are the server-side
|
|
229
|
+
* worker-queue enums, not shared on-chain wire vocab.
|
|
230
|
+
*/
|
|
231
|
+
export interface DisputeResolutionPublic {
|
|
232
|
+
delegationId: string;
|
|
233
|
+
lockId: string;
|
|
234
|
+
status: string;
|
|
235
|
+
disputeId: string | null;
|
|
236
|
+
isPayerWinner: boolean | null;
|
|
237
|
+
winnerRole: 'payer' | 'payee' | null;
|
|
238
|
+
winnerDid: string | null;
|
|
239
|
+
verdictSource: string | null;
|
|
240
|
+
reasoning: string | null;
|
|
241
|
+
policyId: string | null;
|
|
242
|
+
snapshotHash: string | null;
|
|
243
|
+
reasonHashHex: string | null;
|
|
244
|
+
solanaSignature: string | null;
|
|
245
|
+
attempts: number;
|
|
246
|
+
lastError: string | null;
|
|
247
|
+
deadlineAt: string | null;
|
|
248
|
+
createdAt: string | null;
|
|
249
|
+
updatedAt: string | null;
|
|
250
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heyanon-arp/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32",
|
|
4
4
|
"description": "TypeScript SDK for the Agent Relationship Protocol — canonical JSON, Ed25519 envelope sign/verify, did:arp identity, scrypt key attestation, chain-audit helpers.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|