Cotton code
1 line · 2.9 KB · JSONRaw
{"format_version":1,"id":"message_import","name":"Export import","plural":"Export imports","picture":null,"builtin":true,"engine":"messages","columns":[{"key":"name","name":"Export","type":"text","readonly":true},{"key":"receipt","name":"Result","type":"longtext","readonly":true},{"key":"media_receipt","name":"Pictures and files","type":"longtext","readonly":true},{"key":"thread_id","name":"Chat","type":"link","link_to":"thread","readonly":true},{"key":"state","name":"Import state","type":"text","readonly":true,"fact":true,"reading":"{value}"},{"key":"senders","name":"Senders in this export","type":"longtext","readonly":true}],"title":"name","date":null,"project":null,"order":null,"slip":{"title":"name","subtitle":"receipt","trailing":null,"photo":null,"toggle":null},"tile":{"face":"slip-list"},"page":[{"heading":null,"columns":["name","receipt","media_receipt","thread_id"]}],"empty":{"title":"Import an export","message":"For WhatsApp, choose Export chat and share it to Cotton, or choose it from Files here. For Instagram, request Download your information in JSON format and choose its ZIP from Imports. A shared ZIP asks which service made it; importing it again adds only what is new."},"instructions":"An export import reads a WhatsApp chat or an Instagram Download your information ZIP on this device. It is made by sharing the export to Cotton or by choosing the file; nothing is typed. When the export does not say which sender is the owner, the import's page asks. The list holds the imports made since the app opened; the chats themselves are in Chats. Nothing is ever sent.","tables":[],"add":true,"parts":{"shape":"desk","head":{"facts":["state"]},"links":[],"lists":[],"acts":{"main":"choose","more":["whatsapp","instagram","retry","owner","thread"]},"body":"receipt","strip":[{"column":"media_receipt"}]},"delete":false,"commands":[{"id":"choose","label":"Choose an export","kind":"create","method":"message.import.choose","form":true,"receipt":"Choosing an export","object":"file"},{"id":"whatsapp","label":"Import from WhatsApp","kind":"update","method":"message.import.run","data":{"source":"whatsapp"},"bindings":{"id":"$id"},"when":{"state":"choosing"},"receipt":"Importing from WhatsApp","object":"message"},{"id":"instagram","label":"Import from Instagram","kind":"update","method":"message.import.run","data":{"source":"instagram"},"bindings":{"id":"$id"},"when":{"state":"choosing"},"receipt":"Importing from Instagram","object":"picture"},{"id":"retry","label":"Try again","kind":"update","method":"message.import.retry","bindings":{"id":"$id"},"when":{"state":"failed"},"receipt":"Trying again","object":"retry"},{"id":"owner","label":"Choose me","kind":"update","method":"message.import.owner","bindings":{"id":"$id"},"pick":{"argument":"ownerName","kind":"text","choices_from":"senders"},"when":{"state":"asking"},"receipt":"Importing this chat","object":"person"},{"id":"thread","label":"Open chat","kind":"open","opens":"thread_id"}]}