@spoketech/hub-client 0.1.25 → 0.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.
package/README.md CHANGED
@@ -484,3 +484,24 @@ original file as an attachment and expires after five minutes. Missing files ret
484
484
  404. The SDK method is
485
485
  `spoke.memberSources.initialMembershipUploads.download({ organizationId, uploadId })`.
486
486
  The SST policy also grants `s3:GetObject` for the initial upload prefix.
487
+
488
+ ### Retryable automatic points awards (0.1.26)
489
+
490
+ `posPoints.requestAdd` accepts optional `idempotencyKey` and
491
+ `payload.expectedProviderId`. Retry with the exact original terms to retrieve the
492
+ same command/current status; changed terms return 409. Omit the key for legacy
493
+ behavior. `posPoints.getProvider` adds optional typed `readiness`, including
494
+ concrete configured accounts/default, amount limits, caller access, durable
495
+ request deduplication and recent onsite execution/recovery support. Older Hub
496
+ responses may omit readiness and must not enable automatic awards.
497
+
498
+ Submission still requires `vouchers:write`; provider reads and
499
+ `pointProviders.getOrganizationPointCommand` require `vouchers:read`, with access
500
+ to the target organization. Stored payloads now preserve a supplied Hub
501
+ `memberId`; historical records may omit it. Before accepting completion, verify
502
+ the organization, provider ID, kind, Member, amount and concrete account, and
503
+ require `status === "completed"` with `executionEvidence.outcome === "confirmed"`.
504
+ An `accepted` command with `uncertain` evidence requires reconciliation, never
505
+ another automatic award. Deploy Hub safety protocol 1 and a capable onsite agent
506
+ before enabling keyed awards. See the repository's
507
+ `docs/points-addition-rollout.md` for provider validation and rollout requirements.