cswap-bend-cli
Releases (1)
-
0.1.0.0 indexed
Definitions (4,210)
usage/cred.bend
- def has_profile
- def scopes.check
- def inference_only`scopes` present and non-empty without user:profile: a setup-token.
- def exp.secs
- def exp.check
- def exp.int
- def exp.num
- def expiredis_oauth_token_expired: now + 5 min >= expiresAt (ms).
- def set.rt
- def scopes.cons
- def scopes.list
- def set.sc
- def refresh.fieldsThe credential's oauth object after a grant: accessToken, expiresAt (ms), then refreshToken and scopes when the response carries them.
- def token.org
- def token.acct3
- def token.acct2
- def token.acct1
- def token.account
- def refresh.build
- def grant.ok
- def grant.parse
- def grant.err.kindThe verdict is the body's top-level `error`, only on 400/401/403: a dead lineage (invalid_grant) or a rejected client (invalid_client); everything else is transient.
- def grant.err.pick
- def grant.err.body
- def rejects
- def grant.err
- def grant.reply.pick
- def grant.reply
- def grant.result
- def refresh.postrefresh: the token endpoint POST of try_refresh_oauth_credentials.
- def refresh.rt
- def refresh.top
- def refresh.parsed
- def refresh_acct`refresh` with the account identity the token endpoint optionally names.
- def granted.cred
- def refresh
usage/gate.bend
- type Gated
- type Gate
- def enc.path
- def consume.path
- def fp.pick
- def fpLineage identity, as the reference's credential_fingerprint (refresh token when there is one, else the whole credential), kept as text: it is only ever compared for equality, so no hash is needed.
- def gated.err
- def gated.ok
- def gated.ok_a
- def done.g
- def stored
- def adopt.pickThe world moved past the caller's snapshot and the current generation is fresh: the refresh the caller wanted has happened.
- def adopt
- def write.back
- def cas.pickCAS on the lineage: write the successor only when the store still holds the generation we consumed; a moved store keeps its newer lineage.
- def cas.store
- def act.post
- def act.decide
- def act.cur
- def act.read
- def gate.act
- def busy.err
- def locked.fail
- def locked.res
- def timeout.of
- def gated.locked
- def gated.go
- def gated.env2
- def gated.env
- def refresh_gatedconsume_backup_grant: refresh the slot's credential under its consume lock.
- def plain.pick
- def refresh_viaGate or direct POST, by the caller's choice.
usage/norm.bend
- def months
- def hhmm
- def clock.date2
- def clock.date
- def clock.text"20:39" on the same local day as now, else "Jul 5 08:59".
- def countdown
- def remaining
- def nonempty
- def resets_of
- def with_reset.atresets_at, then countdown and clock when the stamp parses.
- def with_reset
- def put
- def window.pctfive_hour / seven_day: {pct, resets_at, countdown, clock}.
- def window.of
- def window.in
- def window
- def num.text
- def nonnull
- def num.field
- def float.fieldfloat(field) as Python prints it.
- def spend.mk
- def spend.fields
- def spend.on
- def spend.add
- def scoped.entryOne `limits[]` entry with scope.model.display_name and a numeric percent.
- def scoped.name
- def scoped.of
- def scoped.one
- def scoped.cons
- def scoped.go
- def scoped.put
- def result.fin