pet.trezy.getPets
The at-uris of a player's pets, newest first, optionally filtered by state. Returns IDs only by default.
Details · query
| Kind | query |
|---|---|
| Authority | trezy.pet |
| Indexed |
Query
query · GETParameters
query stringcursor
stringTher owner for whom to retrieve pets.
direction
stringWhether to sort ascending or descending.
default: "desc"knownValues: asc | desc
hydrate
booleanWhether to return the pet's full record.
default: false
limit
integerminimum: 1maximum: 100default: 50
sort
stringdefault: "age"knownValues: rarity | name | price | age | attention
state
arrayFilter on state.
knownValues: active | inactive | retired
Output
application/jsoncursor
stringAbsent if there are no more results.
error
stringThe type of error encountered.
knownValues: bad-did | unknown-state | unknown-sort | unknown-direction | bad-cursor | unavailable
message
stringpets
arraySorted list of pet AT URIs.
records
arrayPet records (only present if `hydrate` is true).
#hydratedPet
objectSimilar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
pet.trezy.getPet
query -
pet.trezy.getNewPets
queryThe pets adopted in the 7 days before asOf, for the weekly arrivals post. Live pets only: a pet retired inside the same week is not an arrival any more. ⚠ `total` IS THE TRUE COUNT AND `pets` IS ONLY WHAT FITS ON STAGE — the post's number must be how many animals arrived, not how many the renderer could draw. Carries no keeper DID and no pet name, because the post says neither — `#pet` carries `rkey` rather than the at-URI so the caller never even receives the keeper's DID, which sits in the URI