party.whey.writeproxy.defs

Shared shapes for the write delegation proxy control plane. The NSID authority is a placeholder.

Repository @whey.party did:plc:mn45tewwnse5btfftvd3powc namespace authority
Details · defs
Kinddefs
Authoritywriteproxy.whey.party
Commit rev3n3mi6k7lhs2w
Indexed

#auditEntry

object

Properties

actor

requiredstring · did

caller

string · did
  • maxLength: 128

error

string
  • maxLength: 128

event

requiredstring
  • maxLength: 64

id

requiredinteger
  • minimum: 0

reason

string
  • maxLength: 256

role

requiredstring
  • enum: delegator | caller | operator | system | legacy

space

string · space-ref

status

requiredinteger
  • minimum: 100
  • maximum: 599

ts

requiredstring · datetime

via

string
  • enum: xrpc | rest

#blobPolicy

object

The delegation's blob upload policy.

Properties

accept

array

Allowed MIME types or globs. Omit to use the profile/service default.

  • maxLength: 20
itemsstring
  • maxLength: 255

allowed

requiredboolean

maxBytes

integer

Maximum bytes per blob for this delegation.

  • minimum: 1

#blocklistEntry

object

Properties

createdAt

requiredstring · datetime

createdBy

string · did

expiresAt

string · datetime

kind

requiredstring
  • enum: did | pds | ip | cidr | asn | domain | nsid

reason

string
  • maxLength: 256

value

requiredstring
  • maxLength: 512

#callerDelegation

object

A delegation as seen by an authorized caller, with effective limits.

Properties

actions

requiredarray
  • minLength: 1
itemsstring
  • enum: create | update | delete

blob

ref
Reference

collections

requiredarray
  • minLength: 1
itemsstring · nsid

delegation

requiredstring
  • maxLength: 128
Reference
Reference

repoDID

requiredstring · did

resetAt

string · datetime

space

requiredstring · space-ref
Reference

#callerRegistration

object

Properties

  • minimum: 0

mode

requiredstring
  • enum: none | open | approval | allowlist | closed

#callerRequest

object

Properties

caller

requiredstring · did

createdAt

requiredstring · datetime

delegation

requiredstring
  • maxLength: 128

id

requiredstring
  • maxLength: 128

message

string
  • maxLength: 1000

resolvedAt

string · datetime

resolvedBy

string · did

status

requiredstring
  • enum: pending | approved | rejected

#counts

object

Properties

  • minimum: 0

blocked

integer
  • minimum: 0

callers

integer
  • minimum: 0
  • minimum: 0
  • minimum: 0
  • minimum: 0

#credentialHealth

object

Properties

delegation

requiredstring
  • maxLength: 128

expiresAt

string · datetime

lastError

string
  • maxLength: 256

lastRefreshAt

string · datetime

mode

string
  • enum: oauth

pdsUrl

string · uri

refreshState

requiredstring
  • enum: pending | ok | refreshing | failed

repoDID

requiredstring · did

space

string · space-ref

#credentialStatus

object

Credential health for a delegation. Never contains tokens or DPoP keys.

Properties

expiresAt

string · datetime

lastError

string
  • maxLength: 256

lastRefreshAt

string · datetime

mode

requiredstring
  • enum: oauth

pdsUrl

string · uri

refreshState

requiredstring
  • enum: pending | ok | refreshing | failed

#delegation

object

One write delegation. It binds exactly one (space, repo) pair and has an immutable scope.

Properties

actions

requiredarray
  • minLength: 1
  • maxLength: 3
itemsstring
  • enum: create | update | delete

activatedAt

string · datetime

blob

ref
Reference

callerCount

requiredinteger
  • minimum: 0

callerRevision

requiredinteger

Compare-and-swap token for the caller allowlist.

  • minimum: 0

collections

requiredarray
  • minLength: 1
  • maxLength: 100
itemsstring · nsid

createdAt

requiredstring · datetime

id

requiredstring
  • maxLength: 128

label

string
  • maxLength: 128

repoDID

requiredstring · did

The repo owner and OAuth subject. Equal to the delegator DID.

returnTo

string · uri
  • maxLength: 2048

revision

requiredinteger

Compare-and-swap token for delegation metadata.

  • minimum: 0

revokedAt

string · datetime

skey

requiredstring · record-key

space

requiredstring · space-ref

spaceAuthority

requiredstring · did

spaceType

requiredstring · nsid

status

requiredstring
  • enum: pending | active | degraded | suspended | revoked | expired

updatedAt

requiredstring · datetime

#delegatorOnboarding

object

Properties

  • minimum: 0

mode

requiredstring
  • enum: open | approval | allowlist | closed | disabled

#limits

object

Effective limits for a service, caller, or delegation scope. Values are integers; units are in the property name or description.

Properties

  • minimum: 0
  • minimum: 0
  • minimum: 0
  • minimum: 1
  • minimum: 1
  • minimum: 0
  • minimum: 1
  • minimum: 0
  • minimum: 0
  • minimum: 1
  • minimum: 0
  • minimum: 1
  • minimum: 0
  • minimum: 0

#limitsView

object

Properties

limits

requiredref
Reference
Reference

resetAt

string · datetime

scope

requiredstring
  • enum: service | caller | delegation
Reference

#oauthClientMetadata

object

Properties

baseUrl

string · uri

jwksUrl

string · uri

mode

requiredstring

v0 MUST use per-delegation. shared is reserved for a post-v0 revision.

  • enum: per-delegation | shared

sharedClientId

string · uri

Only for mode=shared; not used in v0.

template

string

Template for the per-delegation client metadata URL. The {delegation} placeholder is replaced with the delegation ID.

  • maxLength: 512

#queue

object

Properties

pending

integer
  • minimum: 0

spaces

integer
  • minimum: 0

#quotas

object

Properties

  • minimum: 0
  • minimum: 0

concurrent

integer
  • minimum: 0
  • minimum: 0

#registration

object

Properties

approvedAt

string · datetime

approvedBy

string · did

createdAt

requiredstring · datetime

did

requiredstring · did

handle

string
  • maxLength: 253

pdsUrl

string · uri
Reference

reason

string
  • maxLength: 256

role

requiredstring
  • enum: delegator | caller

status

requiredstring
  • enum: pending | approved | rejected | suspended
  • maxLength: 64

#remaining

object

Remaining counters for a caller or delegation in the current window.

Properties

blobsToday

integer
  • minimum: 0

bytesToday

integer
  • minimum: 0
  • minimum: 0
  • minimum: 0

#serviceMode

object

Properties

writesEnabled

requiredboolean

#serviceStatus

object

Properties

counts

requiredref
Reference

did

requiredstring · did

endpoint

requiredstring · uri

limits

requiredref
Reference
Reference

service

requiredstring
  • maxLength: 128

updatedAt

requiredstring · datetime

uptimeMs

requiredinteger
  • minimum: 0

version

requiredstring
  • maxLength: 64

#usage

object

Usage counters for a caller or delegation in the current window.

Properties

blobsToday

integer
  • minimum: 0

bytesToday

integer
  • minimum: 0
  • minimum: 0
  • minimum: 0

#writeAudit

object

Properties

action

requiredstring
  • enum: create | update | delete

caller

requiredstring · did

cid

string
  • maxLength: 128

collection

string · nsid

error

string
  • maxLength: 128

id

requiredinteger
  • minimum: 0

latencyMs

integer
  • minimum: 0

rkey

string · record-key

size

integer
  • minimum: 0

status

requiredinteger
  • minimum: 100
  • maximum: 599

ts

requiredstring · datetime

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • party.whey.writeproxy.getServiceDescription

    query not from the namespace authority

    Unauthenticated service description: service identity and endpoint, methods, onboarding modes, OAuth client-metadata policy, limits, terms, and abuse contact. The same schema is served at /.well-known/write-proxy.json. There is no shared OAuth clientId in v0; delegator grants use per-delegation client metadata and callers use service auth.