Cotton code
193 lines · 5.9 KB · JSONRaw
{  "views": [    {      "id": "all",      "label": "All",      "visibility": "owner",      "is_default": true,      "read": {        "table": "passkey",        "empty": {          "line": "empty_views.keys.all",          "table": true        }      },      "sort": {        "column": "rp_id",        "descending": false,        "tie": "user_name",        "tie_descending": false      }    },    {      "id": "recent",      "label": "Recent",      "visibility": "owner",      "is_default": false,      "read": {        "table": "passkey",        "empty": {          "line": "empty_views.keys.recent",          "table": true        }      },      "sort": {        "column": "last_used_at",        "descending": true      }    },    {      "id": "by_site",      "label": "By site",      "visibility": "owner",      "is_default": false,      "read": {        "table": "passkey",        "empty": {          "line": "empty_views.keys.by_site",          "table": true        }      },      "sort": {        "column": "rp_id",        "descending": false,        "tie": "last_used_at",        "tie_descending": true      }    },    {      "id": "devices",      "label": "Devices",      "visibility": "owner",      "is_default": false,      "read": {        "table": "vault_key",        "empty": {          "line": "empty_views.keys.devices",          "table": true        }      },      "sort": {        "column": "vmk_version",        "descending": false,        "tie": "created_at",        "tie_descending": false      }    }  ],  "id": "keys",  "name": "Keys",  "purpose": "The passkeys you keep for the sites you sign in to, in your own database.",  "picture": {    "photo": "photo:3485bc7f726643a724a61ed3bf6954642e04592b99ed907c0becaf09b45029f1"  },  "card_stock": "grey",  "fan_tile": {    "stock": {      "photo": "photo:e98cd20fc62bdaf870299f8f048675cd0b675df0851a7f54b74032d030542bdd"    },    "type": "letterboard",    "words": {      "ink": "#211a12",      "name_baseline": 430,      "count_baseline_one": 516,      "count_baseline_two": 574    },    "pictures": {      "list": {        "photo": "photo:729cb0635c62ec2ac553ac381a53b982bf84a2fb96f303169c2e1d941d7679f4"      },      "more": {        "photo": "photo:25be3944e04b62280ba8b18d6b18fbacc5721e028a626673540442dccacef4b2"      },      "new_list": {        "photo": "photo:b9d587128af4fa5e0685d7e4c758796f012907cdd5f215d2d69a5f6a98be2cd2"      }    },    "views": {      "all": {        "photo": "photo:25a7bcdcdc4271296aa65034007d5ade675414aebe79bb275288aeaa6a1b3691"      },      "by_site": {        "photo": "photo:419886b22ae7a6cd81e0710e42dcfbefe60abe6d51e67650b175439652399406"      },      "devices": {        "photo": "photo:7028eaf8ca1d1bda11ef15608ed10c8430db1779c0dbad18a442a57c813b0967"      },      "recent": {        "photo": "photo:35ca205c16910deea0a357c455df5dab81e0a66bfdf78e2ee1e5b0a13524490f"      }    },    "acts": {      "approve": {        "photo": "photo:4ed5d7b5ec61938845628b69bc2e630e6cc9980c0eb7bdca08983bf87e83cb98"      },      "bin": {        "photo": "photo:2956556ec736e017d10e5943fe646ae9fe383b650232da50d62499a8b89cf839"      },      "face": {        "photo": "photo:bc0aeccaba7db41e35f4f5313a8644677ed8ddb97e3a184d907b05dc448f7d1d"      },      "group": {        "photo": "photo:1011d4bef861c60353d4bab1b5e3285224453647d1a125f4366632fa7aa26a27"      },      "list_member_earlier": {        "photo": "photo:595f66f1fbd77cd5053d7ab394745e712447bbb17d69951d5035a5c17fd70d68"      },      "list_member_later": {        "photo": "photo:595f66f1fbd77cd5053d7ab394745e712447bbb17d69951d5035a5c17fd70d68"      },      "list_member_remove": {        "photo": "photo:2956556ec736e017d10e5943fe646ae9fe383b650232da50d62499a8b89cf839"      },      "list_move_earlier": {        "photo": "photo:595f66f1fbd77cd5053d7ab394745e712447bbb17d69951d5035a5c17fd70d68"      },      "list_move_later": {        "photo": "photo:595f66f1fbd77cd5053d7ab394745e712447bbb17d69951d5035a5c17fd70d68"      },      "list_remove": {        "photo": "photo:2956556ec736e017d10e5943fe646ae9fe383b650232da50d62499a8b89cf839"      },      "list_remove_picture": {        "photo": "photo:07de5151344b7d49695aa0b83b2ed66850b368d2c7e515f71226073683c426eb"      },      "list_rename": {        "photo": "photo:729cb0635c62ec2ac553ac381a53b982bf84a2fb96f303169c2e1d941d7679f4"      },      "list_set_picture": {        "photo": "photo:a3d13e769d7ab4b67917d837bb989b24b1f845d9683e4b9b35aefced7079e95f"      },      "refuse": {        "photo": "photo:8d4f2034fd2d45ca8a5eb60f78ab09d1c8c09ed1553bd3623acb67ab313549f9"      },      "repeat": {        "photo": "photo:595f66f1fbd77cd5053d7ab394745e712447bbb17d69951d5035a5c17fd70d68"      },      "status": {        "photo": "photo:87f6ca98e1705356f21a3f030a2cb4db1611c64f32721e3dcfa274418eb9c640"      },      "when": {        "photo": "photo:2791e7409c97d92a8412ef776a035430517bd7f12b82e972126bc8890b41d163"      }    }  },  "tables": [    "passkey",    "vault_key"  ],  "instructions": "Keys keeps the owner's passkeys: one passkey row per key pair a site made for one of their accounts, kept in their own database so their devices can sign in with it. All is every passkey by site, then account; Recent the last used first; By site every passkey by site, the last used first within each. Lists are record groups of passkeys. Cotton Vault makes each passkey and signs with it; never make, change or copy one by hand, and never read or repeat a private key. Remove deletes a passkey, and the site then refuses it. Devices is every Mac or phone that asked to open the owner's vault, the ones waiting first: Approve lets one in, Refuse turns it away.",  "automations": [],  "acts": [    {      "id": "keys_turn_on",      "label": "Turn on Cotton Vault",      "object": "open"    }  ],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null}