Update examples to include one for receiving and requesting device verification
This commit is contained in:
92
examples/request-device-verification.json
Normal file
92
examples/request-device-verification.json
Normal file
@@ -0,0 +1,92 @@
|
||||
[
|
||||
{
|
||||
"id": "9345e8c42e327dba",
|
||||
"type": "matrix-device-verification",
|
||||
"z": "f025a8b9fbd1b054",
|
||||
"name": "",
|
||||
"server": null,
|
||||
"mode": "request",
|
||||
"inputs": 1,
|
||||
"outputs": 2,
|
||||
"x": 480,
|
||||
"y": 1660,
|
||||
"wires": [
|
||||
[
|
||||
"b676082d56430aec"
|
||||
],
|
||||
[]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "b676082d56430aec",
|
||||
"type": "matrix-device-verification",
|
||||
"z": "f025a8b9fbd1b054",
|
||||
"name": "",
|
||||
"server": null,
|
||||
"mode": "start",
|
||||
"inputs": 1,
|
||||
"outputs": 1,
|
||||
"x": 740,
|
||||
"y": 1660,
|
||||
"wires": [
|
||||
[
|
||||
"23a0225f2f2615a3"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "23a0225f2f2615a3",
|
||||
"type": "matrix-device-verification",
|
||||
"z": "f025a8b9fbd1b054",
|
||||
"name": "",
|
||||
"server": null,
|
||||
"mode": "accept",
|
||||
"inputs": 1,
|
||||
"outputs": 1,
|
||||
"x": 970,
|
||||
"y": 1660,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "3eced60b58c999eb",
|
||||
"type": "inject",
|
||||
"z": "f025a8b9fbd1b054",
|
||||
"name": "",
|
||||
"props": [
|
||||
{
|
||||
"p": "userId",
|
||||
"v": "@bot:example.com",
|
||||
"vt": "str"
|
||||
},
|
||||
{
|
||||
"p": "devices",
|
||||
"v": "[\"ZRRJKASJDUK\"]",
|
||||
"vt": "json"
|
||||
}
|
||||
],
|
||||
"repeat": "",
|
||||
"crontab": "",
|
||||
"once": false,
|
||||
"onceDelay": 0.1,
|
||||
"topic": "",
|
||||
"x": 290,
|
||||
"y": 1660,
|
||||
"wires": [
|
||||
[
|
||||
"9345e8c42e327dba"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "f58ceba2a8819c09",
|
||||
"type": "comment",
|
||||
"z": "f025a8b9fbd1b054",
|
||||
"name": "Request verification from a specific userId and device",
|
||||
"info": "",
|
||||
"x": 440,
|
||||
"y": 1620,
|
||||
"wires": []
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user