family.pardy.familytime.card

pardy.at

Documentation

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.

main record

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.

Record Key tid Timestamp-based ID

Properties

createdAt string datetime Required

An RFC 3339 formatted timestamp.

description string Optional

No description available.

maxLength: 1000 bytes
module ref #module Optional

No description available.

network array of ref #network Optional

The only places the module may fetch from.

maxLength: 8 items
properties array of ref #property Optional

Settings each board fills in when it adds the card.

maxLength: 32 items
title string Required

No description available.

maxLength: 100 bytes
View raw schema
{
  "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 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

No description available.

maxLength: 64000 bytes
View raw schema
{
  "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 object

No description available.

Properties

baseUrl string uri Required

A valid URI.

maxLength: 500 bytes
name string Required

No description available.

maxLength: 100 bytes
View raw schema
{
  "properties": {
    "baseUrl": {
      "format": "uri",
      "maxLength": 500,
      "type": "string"
    },
    "name": {
      "maxLength": 100,
      "type": "string"
    }
  },
  "required": [
    "baseUrl",
    "name"
  ],
  "type": "object"
}
property object

No description available.

Properties

description string Optional

No description available.

maxLength: 500 bytes
hosts array of string Optional

For secrets: the only hosts the value may be sent to (by the host, never the module).

label string Required

No description available.

maxLength: 100 bytes
name string Required

No description available.

maxLength: 32 bytes
required boolean Optional

No description available.

type string Required

No description available.

Known values: text, number, datetime, secret
View raw schema
{
  "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"
}

Lexicon Garden

@