# pet.trezy.getFeatureStatus

> Published by [trezy.pet](https://lexicon.garden/identity/did:plc:ollch4g7tes2reb5eceiwuol)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ollch4g7tes2reb5eceiwuol/pet.trezy.getFeatureStatus)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ollch4g7tes2reb5eceiwuol/pet.trezy.getFeatureStatus/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ollch4g7tes2reb5eceiwuol/pet.trezy.getFeatureStatus/examples)

## Definitions

### `pet.trezy.getFeatureStatus#current`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `pet` | `string` (at-uri) | Yes |  |
| `petName` | `string` | No | Absent when the pet's name can't be read — its trezy_pet_pets row is missing or hasn't caught up with the feature record yet. Requiring it would fail response validation and turn a valid answer into a 500 on that lag. |
| `replied` | `boolean` | Yes |  |
| `week` | `string` | Yes |  |

### `pet.trezy.getFeatureStatus`

**Type**: `query`

The caller's own Pet of the Week state: consent, the account-wide interaction count, this week's pick and the last posted feature. ⚠ IT ONLY EVER DESCRIBES THE CALLER; there is no parameter that names anybody else.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `consenting` | `boolean` | No |  |
| `current` | `ref` → `#current` | No |  |
| `error` | `string` | No |  |
| `interactions` | `integer` | No | Account-wide, not per pet. |
| `lastPosted` | `ref` → `#posted` | No |  |
| `message` | `string` | No |  |

### `pet.trezy.getFeatureStatus#posted`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `post` | `string` (at-uri) | Yes |  |
| `week` | `string` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "current": {
      "properties": {
        "pet": {
          "format": "at-uri",
          "type": "string"
        },
        "petName": {
          "description": "Absent when the pet's name can't be read — its trezy_pet_pets row is missing or hasn't caught up with the feature record yet. Requiring it would fail response validation and turn a valid answer into a 500 on that lag.",
          "type": "string"
        },
        "replied": {
          "type": "boolean"
        },
        "week": {
          "maxLength": 8,
          "type": "string"
        }
      },
      "required": [
        "week",
        "pet",
        "replied"
      ],
      "type": "object"
    },
    "main": {
      "description": "The caller's own Pet of the Week state: consent, the account-wide interaction count, this week's pick and the last posted feature. ⚠ IT ONLY EVER DESCRIBES THE CALLER; there is no parameter that names anybody else.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "consenting": {
              "type": "boolean"
            },
            "current": {
              "ref": "#current",
              "type": "ref"
            },
            "error": {
              "knownValues": [
                "not-authenticated"
              ],
              "type": "string"
            },
            "interactions": {
              "description": "Account-wide, not per pet.",
              "minimum": 0,
              "type": "integer"
            },
            "lastPosted": {
              "ref": "#posted",
              "type": "ref"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [],
          "type": "object"
        }
      },
      "type": "query"
    },
    "posted": {
      "properties": {
        "post": {
          "format": "at-uri",
          "type": "string"
        },
        "week": {
          "maxLength": 8,
          "type": "string"
        }
      },
      "required": [
        "week",
        "post"
      ],
      "type": "object"
    }
  },
  "id": "pet.trezy.getFeatureStatus",
  "lexicon": 1
}
```
