Cotton code
231 lines · 4.6 KB · JSONRaw
{  "format_version": 1,  "id": "secret",  "name": "Password",  "plural": "Passwords",  "picture": {"photo": "photo:3485bc7f726643a724a61ed3bf6954642e04592b99ed907c0becaf09b45029f1", "object": "tool-passwords"},  "builtin": true,  "engine": "vault",  "record_route": "/passwords/[id]",  "sealed": true,  "columns": [    {      "key": "name",      "type": "text",      "required": true    },    {      "key": "kind",      "type": "choice",      "choices": [        "login",        "api_key",        "note",        "card",        "identity",        "document"      ],      "readonly": true,      "choice_names": {        "login": "Login",        "api_key": "API key",        "note": "Note",        "card": "Card",        "identity": "ID",        "document": "Document password"      }    },    {      "key": "username",      "type": "text",      "shown_when": {        "column": "kind",        "values": [          "login"        ]      }    },    {      "key": "site",      "name": "Website",      "type": "text",      "shown_when": {        "column": "kind",        "values": [          "login",          "api_key"        ]      }    },    {      "key": "service",      "type": "text",      "shown_when": {        "column": "kind",        "values": [          "api_key"        ]      }    },    {      "key": "expires_at",      "name": "Runs out",      "type": "date",      "month": true    },    {      "key": "last_used_at",      "name": "Last used",      "type": "date",      "readonly": true    },    {      "key": "updated_at",      "name": "Updated",      "type": "date",      "readonly": true    },    {      "key": "trashed_at",      "name": "Binned",      "type": "date",      "readonly": true    }  ],  "title": "name",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "name",    "subtitle": [      "site",      "service"    ],    "subtitle_first": true,    "trailing": "kind",    "photo": null,    "toggle": null  },  "tile": {    "face": "card-grid"  },  "page": [    {      "heading": null,      "columns": [        "name",        "kind"      ]    },    {      "heading": "Where it is used",      "columns": [        "username",        "site",        "service"      ]    },    {      "heading": "Dates",      "columns": [        "expires_at",        "last_used_at",        "updated_at",        "trashed_at"      ]    }  ],  "readonly_when": "trashed_at",  "group": {    "column": "kind",    "sections": [      {        "heading": "Logins",        "values": [          "login"        ]      },      {        "heading": "API keys",        "values": [          "api_key"        ]      },      {        "heading": "Notes",        "values": [          "note"        ]      },      {        "heading": "Cards",        "values": [          "card"        ]      },      {        "heading": "IDs",        "values": [          "identity"        ]      }    ]  },  "empty": {    "title": "Nothing kept yet",    "message": "Passwords, keys, cards and IDs, sealed with this database’s key, which only the devices in it hold."  },  "instructions": "A password record holds a login, an API key, a card, an identity or a secure note, sealed so only the devices in this database can open it — your own, or the people you share it with. Assistants can create, list, update and bin passwords, but never read one back. Never repeat a secret the owner typed into a conversation anywhere else.",  "parts": {    "shape": "sheet",    "head": {      "facts": [        "kind",        "username"      ]    },    "links": [],    "lists": [],    "acts": {      "main": "copy_password",      "more": [],      "away": "delete"    },    "cards": [      {"column": "kind"},      {"column": "username"},      {"column": "site"},      {"column": "service"},      {"column": "expires_at"},      {"column": "last_used_at"}    ],    "strip": []  },  "commands": [    {      "id": "copy_password",      "label": "Copy",      "kind": "copy",      "copies": "$sealed"    },    {      "id": "delete",      "label": "Delete",      "kind": "delete",      "verb": "delete_record",      "data": {        "table": "secret"      },      "bindings": {        "id": "$id"      },      "confirm": "Undo on the receipt brings it back.",      "receipt": "Deleted",      "does": "destroys"    }  ],  "tool": {"name":"Passwords","key":"passwords","card_stock":"grey","icon":"key-round","route":"/passwords","tables":["secret","placement_proposal"],"purpose":"Passwords and other private secrets."},  "tables": []}