Liking cljdoc? Tell your friends :D
Clojure only.

ankusa.sdk.claim-ref

A claim-check ref: urn:ankusa:claim:v1:<tenant>:<claim_id>, or the signed, expiring urn:ankusa:claim:v2:<tenant>:<claim_id>:<exp_unix>:<signature>; the string a queue message carries in its "claim" field once its body outgrows the sink's inline limit.

The claim id is a Crockford base32 ULID: 26 characters, no I, L, O or U, and a first character in 0..7 so the timestamp stays in range. exp_unix is a decimal of 1-12 digits with no leading zero and signature 43 unpadded base64url characters. The gateway checks the signature and the expiry; the SDK only carries them in the path.

A claim-check ref: `urn:ankusa:claim:v1:<tenant>:<claim_id>`, or the signed,
expiring `urn:ankusa:claim:v2:<tenant>:<claim_id>:<exp_unix>:<signature>`; the
string a queue message carries in its `"claim"` field once its body outgrows
the sink's inline limit.

The claim id is a Crockford base32 ULID: 26 characters, no `I`, `L`, `O` or
`U`, and a first character in `0`..`7` so the timestamp stays in range.
`exp_unix` is a decimal of 1-12 digits with no leading zero and `signature`
43 unpadded base64url characters. The gateway checks the signature and the
expiry; the SDK only carries them in the path.
raw docstring

parseclj

(parse ref)

Parse ref into {:tenant-id :claim-id :path}, where :path is the gateway path /v1/claims/<tenant>/<claim_id>, followed by ?exp=<exp_unix>&sig=<signature> for a v2 ref. Anything that is not a string in that form throws an :ankusa.sdk/InvalidClaimRefError.

Parse `ref` into `{:tenant-id :claim-id :path}`, where `:path` is the
gateway path `/v1/claims/<tenant>/<claim_id>`, followed by
`?exp=<exp_unix>&sig=<signature>` for a v2 ref. Anything that is not a string
in that form throws an `:ankusa.sdk/InvalidClaimRefError`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close