# family.pardy.familytime.card

> A card: a tree of blocks bound to named sources, optionally with a sandboxed module. Public, so any board can add it by its AT URI; each board's settings for it live in a private cardInstance.

- Kind: record
- Record key: tid
- Authority: familytime.pardy.family
- Lexicon: 1
- Published by [pardy.at](https://lexicon.garden/identity/did:plc:dp7v5b5kejmmzzpwmqyf5wj6), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/family.pardy.familytime.card)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/family.pardy.familytime.card/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/family.pardy.familytime.card/analytics)

## Record (`family.pardy.familytime.card`)

Type: record · key tid

### Properties

- `blocks` (array, required)
  - Constraints: minLength: 1, maxLength: 50
  - `items` (union)
    - One of: `family.pardy.familytime.card.defs#stack`, `family.pardy.familytime.card.defs#row`, `family.pardy.familytime.card.defs#section`, `family.pardy.familytime.card.defs#heading`, `family.pardy.familytime.card.defs#list`, `family.pardy.familytime.card.defs#item`
- `createdAt` (string · datetime, required)
- `description` (string)
  - Constraints: maxLength: 1000
- `module` (ref)
  - Reference: `#module`
- `network` (array): The only places the module may fetch from.
  - Constraints: maxLength: 8
  - `items` (ref)
    - Reference: `#network`
- `properties` (array): Settings each board fills in when it adds the card.
  - Constraints: maxLength: 32
  - `items` (ref)
    - Reference: `#property`
- `sources` (array)
  - Constraints: maxLength: 20
  - `items` (ref)
    - Reference: `family.pardy.familytime.card.defs#source`
- `title` (string, required)
  - Constraints: maxLength: 100

## #module (`family.pardy.familytime.card#module`)

Type: object

JavaScript defining view(ctx), run sandboxed on the server (QuickJS in wasm). fetch() inside it is an effect the host carries out.

### Properties

- `source` (string, required)
  - Constraints: maxLength: 64000

## #network (`family.pardy.familytime.card#network`)

Type: object

### Properties

- `baseUrl` (string · uri, required)
  - Constraints: maxLength: 500
- `name` (string, required)
  - Constraints: maxLength: 100

## #property (`family.pardy.familytime.card#property`)

Type: object

### Properties

- `description` (string)
  - Constraints: maxLength: 500
- `hosts` (array): For secrets: the only hosts the value may be sent to (by the host, never the module).
  - `items` (string)
    - Constraints: maxLength: 253
- `label` (string, required)
  - Constraints: maxLength: 100
- `name` (string, required)
  - Constraints: maxLength: 32
- `required` (boolean)
- `type` (string, required)
  - Constraints: knownValues: text | number | datetime | secret

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A card: a tree of blocks bound to named sources, optionally with a sandboxed module. Public, so any board can add it by its AT URI; each board's settings for it live in a private cardInstance.",
      "key": "tid",
      "record": {
        "properties": {
          "blocks": {
            "items": {
              "refs": [
                "family.pardy.familytime.card.defs#stack",
                "family.pardy.familytime.card.defs#row",
                "family.pardy.familytime.card.defs#section",
                "family.pardy.familytime.card.defs#heading",
                "family.pardy.familytime.card.defs#list",
                "family.pardy.familytime.card.defs#item"
              ],
              "type": "union"
            },
            "maxLength": 50,
            "minLength": 1,
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxLength": 1000,
            "type": "string"
          },
          "module": {
            "ref": "#module",
            "type": "ref"
          },
          "network": {
            "description": "The only places the module may fetch from.",
            "items": {
              "ref": "#network",
              "type": "ref"
            },
            "maxLength": 8,
            "type": "array"
          },
          "properties": {
            "description": "Settings each board fills in when it adds the card.",
            "items": {
              "ref": "#property",
              "type": "ref"
            },
            "maxLength": 32,
            "type": "array"
          },
          "sources": {
            "items": {
              "ref": "family.pardy.familytime.card.defs#source",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "title": {
            "maxLength": 100,
            "type": "string"
          }
        },
        "required": [
          "title",
          "blocks",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "module": {
      "description": "JavaScript defining view(ctx), run sandboxed on the server (QuickJS in wasm). fetch() inside it is an effect the host carries out.",
      "properties": {
        "source": {
          "maxLength": 64000,
          "type": "string"
        }
      },
      "required": [
        "source"
      ],
      "type": "object"
    },
    "network": {
      "properties": {
        "baseUrl": {
          "format": "uri",
          "maxLength": 500,
          "type": "string"
        },
        "name": {
          "maxLength": 100,
          "type": "string"
        }
      },
      "required": [
        "baseUrl",
        "name"
      ],
      "type": "object"
    },
    "property": {
      "properties": {
        "description": {
          "maxLength": 500,
          "type": "string"
        },
        "hosts": {
          "description": "For secrets: the only hosts the value may be sent to (by the host, never the module).",
          "items": {
            "maxLength": 253,
            "type": "string"
          },
          "type": "array"
        },
        "label": {
          "maxLength": 100,
          "type": "string"
        },
        "name": {
          "maxLength": 32,
          "type": "string"
        },
        "required": {
          "type": "boolean"
        },
        "type": {
          "knownValues": [
            "text",
            "number",
            "datetime",
            "secret"
          ],
          "type": "string"
        }
      },
      "required": [
        "name",
        "label",
        "type"
      ],
      "type": "object"
    }
  },
  "id": "family.pardy.familytime.card",
  "lexicon": 1
}
```
