pet.trezy.getStats

trezy.pet

Documentation

main query

No description available.

Parameters

did string did Required

A decentralized identifier (DID).

pet string at-uri Required

An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).

Output

Encodingapplication/json
error string Optional

No description available.

feedCooldownRemaining integer Optional

Seconds until this pet can be fed again, or 0 if it can be now. Reported so the client can show a countdown and disable the button on the real rule, rather than on a copy of the cooldown it keeps itself and discovers is wrong by being refused.

happiness integer Optional

No description available.

happinessPips array Optional

No description available.

hunger integer Optional

No description available.

hungerPips array Optional

No description available.

interactionCooldown integer Optional

The full cooldown length in seconds, from pet.trezy.gameConfig. Lets a client start a countdown the instant it acts, without waiting a round trip and without hardcoding the number.

level integer Optional

No description available.

petCooldownRemaining integer Optional

Seconds until this pet can be petted again, or 0 if it can be now.

totalInteractions integer Optional

No description available.

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
A decentralized identifier (DID).
An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).
View raw schema
{
  "type": "query",
  "output": {
    "schema": {
      "type": "object",
      "properties": {
        "error": {
          "type": "string"
        },
        "level": {
          "type": "integer"
        },
        "hunger": {
          "type": "integer"
        },
        "happiness": {
          "type": "integer"
        },
        "hungerPips": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "happinessPips": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "totalInteractions": {
          "type": "integer"
        },
        "interactionCooldown": {
          "type": "integer",
          "minimum": 1,
          "description": "The full cooldown length in seconds, from pet.trezy.gameConfig. Lets a client start a countdown the instant it acts, without waiting a round trip and without hardcoding the number."
        },
        "petCooldownRemaining": {
          "type": "integer",
          "minimum": 0,
          "description": "Seconds until this pet can be petted again, or 0 if it can be now."
        },
        "feedCooldownRemaining": {
          "type": "integer",
          "minimum": 0,
          "description": "Seconds until this pet can be fed again, or 0 if it can be now. Reported so the client can show a countdown and disable the button on the real rule, rather than on a copy of the cooldown it keeps itself and discovers is wrong by being refused."
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": {
    "type": "params",
    "required": [
      "did",
      "pet"
    ],
    "properties": {
      "did": {
        "type": "string",
        "format": "did"
      },
      "pet": {
        "type": "string",
        "format": "at-uri"
      }
    }
  }
}

Lexicon Garden

@