# com.suibari.nagi.drawGuestCard

> Published by [suibari.com](https://lexicon.garden/identity/did:plc:uixgxpiqf4i63p6rgpu7ytmx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.drawGuestCard)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.drawGuestCard/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.drawGuestCard/examples)

## Definitions

### `com.suibari.nagi.drawGuestCard`

**Type**: `procedure`

未サインイン端末が今日の全肯定カードを1枚引く。同じ端末秘密・同じ日付では同じカードを返す。JST 4:00 が日付境界。

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `deviceToken` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `card` | `unknown` | Yes |  |
| `isNew` | `boolean` | Yes |  |
| `source` | `string` | Yes |  |
| `expiresAt` | `string` (datetime) | Yes |  |
| `drawStatus` | `unknown` | Yes |  |
| `alreadyDrawn` | `boolean` | Yes |  |
| `commentPending` | `boolean` | Yes |  |

## Raw Schema

```json
{
  "id": "com.suibari.nagi.drawGuestCard",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "deviceToken"
          ],
          "properties": {
            "deviceToken": {
              "type": "string",
              "maxLength": 128,
              "minLength": 32
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "card",
            "source",
            "alreadyDrawn",
            "isNew",
            "commentPending",
            "drawStatus",
            "expiresAt"
          ],
          "properties": {
            "card": {
              "type": "unknown"
            },
            "isNew": {
              "type": "boolean"
            },
            "source": {
              "type": "string",
              "knownValues": [
                "my_nagi"
              ]
            },
            "expiresAt": {
              "type": "string",
              "format": "datetime"
            },
            "drawStatus": {
              "type": "unknown"
            },
            "alreadyDrawn": {
              "type": "boolean"
            },
            "commentPending": {
              "type": "boolean"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "未サインイン端末が今日の全肯定カードを1枚引く。同じ端末秘密・同じ日付では同じカードを返す。JST 4:00 が日付境界。"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
