{ "format_version": 1, "id": "unlock.card", "name": "Unlock request", "purpose": "An assistant asks to read sealed tables for a while. The card says who asks, what it can read (everything asked, or the groups a person knows they pick under Choose what: ask.groups) and for how long. The owner allows it for what they chose and as long as they choose (15 minutes, 1 hour, 1 day, or until they turn it off), or says not now. It stands from the shell in every Cotton app.", "read": { "method": "unlock.card" }, "slots": [ { "slot": "title", "field": "title" }, { "slot": "asker", "field": "client", "also": ["tokenName"] }, { "slot": "reason", "field": "reason" }, { "slot": "toggles", "field": "tables", "label": "label", "value": "on", "key": "table" }, { "slot": "minutes", "field": "minutes" }, { "slot": "durations", "field": "durations", "label": "label", "value": "on", "key": "minutes", "choice": "one" }, { "slot": "expires", "field": "expiresAt" }, { "slot": "queue", "field": "behind" } ], "acts": [ { "id": "allow", "label": "Allow", "method": "unlock.allow", "bindings": { "requestId": "requestId", "everything": "ask.everything", "groups": "ask.groups[on].id", "minutes": "durations[on].minutes" }, "presence": true, "receipt": "Allowed", "object": "key" }, { "id": "decline", "label": "Not now", "method": "unlock.decline", "bindings": { "requestId": "requestId" }, "receipt": "Not now", "object": "tray" } ], "reads": { "read": { "method": "unlock.reads" } }, "window": { "read": { "method": "unlock.windows" }, "acts": [ { "id": "end", "label": "End", "method": "unlock.end", "bindings": { "grantId": "grantId" }, "receipt": "Ended", "object": "slip" } ] } }