Repository navigation
sdk-php-v0.5.0
·
109 commits
to main
since this release
Added
Webhook\Signature::verify($headers, $body, $secrets, $toleranceSeconds = 300, $now = null)
verifies the Standard Webhooks signature an HTTP sink with asecretadds,
comparing withhash_equals; failures throw
Webhook\InvalidSignatureError($errorCode,$field, never retryable).Message::$idempotencyKeyandHookHeaders::$idempotencyKey, the key Ankusa
ships (the message'sidempotency_key, thex-ankusa-idempotency-key
header).idempotencyKey()on both returns it, and for a message or
delivery that predates it computestenant:source_id:dedupe_key(tenant
defaultwhen there is none) when a dedupe key is set, else the id, plus
#replay:<replay_id>withincludeReplay: true.AdminClient::createReplay(array $spec),getReplay(string $id),
listReplays()andupdateReplay(string $id, array $patch)for replay jobs
(kinddlq,archiveorquarantine).Ankusa\Message\Message::decode(string $data)andInvalidMessageError
($errorCode,$field,isRetryable()always false) for the v1 queue
message (inline or claim body,sha256,dedupeKey,replayId,
headers).HookHeaders::$dedupeKeyand$replayId, fromx-ankusa-dedupe-keyand
x-ankusa-replay-id.
Changed
ClaimCheckClient::redeem()throwsClaimCheckUnavailableError
(retryable) for a gateway408or429instead ofClaimRejectedError.
Removed
AdminClient::replayDeadLetters():POST /v1/dlq/replayno longer exists.