# quest.cozysky.getSuggestions

> People worth linking to a cairn, for a player with no (or few) frens: first players with an indexed quest.cozysky.save (most recently played first), then anyone with an actor.rpg.sprite (by DID, a stable order). Each is flagged with the kind of character sprite they have. Served by getSuggestions.lua; needs no follow graph.

- Kind: query
- Authority: cozysky.quest
- Lexicon: 1
- Published by [cozysky.quest](https://lexicon.garden/identity/did:plc:r3t343mn4ksrkgzustdwj5iv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:r3t343mn4ksrkgzustdwj5iv/quest.cozysky.getSuggestions)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:r3t343mn4ksrkgzustdwj5iv/quest.cozysky.getSuggestions/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:r3t343mn4ksrkgzustdwj5iv/quest.cozysky.getSuggestions/analytics)

## Query (`quest.cozysky.getSuggestions`)

Type: query · GET

### Parameters (query string)

- `did` (string · did): The asking player, left out of the results.
- `exclude` (string): Comma-separated DIDs to leave out too (frens already shown, accounts already linked).
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 30
- `source` (string): players: only those with a Cozysky save. sprites: only those with an rpg.actor sprite (and no save).
  - Constraints: default: "all", knownValues: all | players | sprites

### Output (application/json)

- `suggestions` (array, required)
  - `items` (ref)
    - Reference: `#suggestion`

## #suggestion (`quest.cozysky.getSuggestions#suggestion`)

Type: object

### Properties

- `day` (integer): Their in-game day, for a player.
- `did` (string · did, required)
- `player` (boolean): They have a Cozysky save.
- `sprite` (string): Which character sprite they have, if any (cozysky wins when both exist).
  - Constraints: knownValues: cozysky | rpg
- `updatedAt` (string · datetime): When their save last changed, for a player.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "People worth linking to a cairn, for a player with no (or few) frens: first players with an indexed quest.cozysky.save (most recently played first), then anyone with an actor.rpg.sprite (by DID, a stable order). Each is flagged with the kind of character sprite they have. Served by getSuggestions.lua; needs no follow graph.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "suggestions": {
              "items": {
                "ref": "#suggestion",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "suggestions"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "The asking player, left out of the results.",
            "format": "did",
            "type": "string"
          },
          "exclude": {
            "description": "Comma-separated DIDs to leave out too (frens already shown, accounts already linked).",
            "type": "string"
          },
          "limit": {
            "default": 30,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "source": {
            "default": "all",
            "description": "players: only those with a Cozysky save. sprites: only those with an rpg.actor sprite (and no save).",
            "knownValues": [
              "all",
              "players",
              "sprites"
            ],
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "suggestion": {
      "properties": {
        "day": {
          "description": "Their in-game day, for a player.",
          "type": "integer"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "player": {
          "description": "They have a Cozysky save.",
          "type": "boolean"
        },
        "sprite": {
          "description": "Which character sprite they have, if any (cozysky wins when both exist).",
          "knownValues": [
            "cozysky",
            "rpg"
          ],
          "type": "string"
        },
        "updatedAt": {
          "description": "When their save last changed, for a player.",
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    }
  },
  "id": "quest.cozysky.getSuggestions",
  "lexicon": 1
}
```
