Cotton code
102 lines · 2.3 KB · JSONRaw
{  "views": [    {      "id": "all",      "label": "Recent",      "visibility": "owner",      "is_default": true,      "read": {        "table": "media"      }    },    {      "id": "albums",      "label": "Albums",      "visibility": "owner",      "is_default": false,      "read": {        "table": "album"      }    },    {      "id": "favourites",      "label": "Favourites",      "visibility": "owner",      "is_default": false,      "read": {        "table": "media",        "where": {          "favourite": true        },        "empty": {          "line": "empty_views.photos.favourites",          "table": true        }      }    },    {      "id": "videos",      "label": "Videos",      "visibility": "owner",      "is_default": false,      "read": {        "table": "media",        "where": {          "kind": "video"        },        "empty": {          "line": "empty_views.photos.videos",          "table": true        }      }    },    {      "id": "on_phone",      "label": "On this phone",      "visibility": "owner",      "is_default": false,      "read": {        "table": "media",        "where": {          "on_phone": [            "kept"          ]        },        "empty": {          "line": "empty_views.photos.on_phone",          "table": true        }      }    }  ],  "id": "photos",  "name": "Photos",  "purpose": "Your photos and the moments they capture.",  "picture": {    "photo": "photo:cd1fef04863a8c429257401e6b4da235458215a00395ffecd58b3eda10ab3172",    "object": "tool-photos"  },  "card_stock": "slate",  "tables": [    "media",    "photo",    "video",    "album",    "album_item",    "duplicate",    "sighting",    "face",    "vault_key"  ],  "instructions": "A state column — the one a table's slip names as its status, its caption's status or its answers column, like an album's state — is said in a receipt as the verb under the record's name (\"Kept Lake trip\", \"Dismissed Lake trip\"), so its labels are verbs; any other choice column is said of the record (\"Marked Ada Tamil\").",  "automations": [],  "server": {    "needs": true,    "line": "Plus brings pictures in from this phone. Signed in, they sync to your account, where your Mac's library arrives too."  },  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null}