yunkong2.js-controller/io-package.json

322 lines
12 KiB
JSON
Raw Permalink Normal View History

2018-09-22 20:52:46 +08:00
{
"common": {
"name": "js-controller",
"version": "1.4.2",
"platform": "Javascript/Node.js",
"controller": true,
"title": "JS controller",
"titleLang": {
"en": "JS controller"
},
"desc": {
"en": "Javascript/Node.js implementation of yunkong2 controller"
},
"messagebox": true,
"readme": "https://git.spacen.net/yunkong2/yunkong2.js-controller/blob/master/README.md",
"authors": [
"bluefox <bluefox@gmail.com>",
"hobbyquaker <hq@ccu.io>"
],
"license": "MIT",
"type": "general",
"unsafePerm": true
},
"objects": [
{
"_id": "_design/system",
"language": "javascript",
"common": {
"dontDelete": true
},
"views": {
"host": {
"map": "function(doc) { if (doc.type === 'host') emit(doc._id, doc) }"
},
"adapter": {
"map": "function(doc) { if (doc.type === 'adapter') emit(doc._id, doc) }"
},
"instance": {
"map": "function(doc) { if (doc.type === 'instance') emit(doc._id, doc) }"
},
"instanceStats": {
"map": "function(doc) { if (doc.type === 'instance') emit(doc._id, parseInt(doc._id.split('.').pop(), 10)) }",
"reduce": "_stats"
},
"meta": {
"map": "function(doc) { if (doc.type === 'meta') emit(doc._id, doc) }"
},
"device": {
"map": "function(doc) { if (doc.type === 'device') emit(doc._id, doc) }"
},
"channel": {
"map": "function(doc) { if (doc.type === 'channel') emit(doc._id, doc) }"
},
"state": {
"map": "function(doc) { if (doc.type === 'state') emit(doc._id, doc) }"
},
"enum": {
"map": "function(doc) { if (doc.type === 'enum') emit(doc._id, doc) }"
},
"script": {
"map": "function(doc) { if (doc.type === 'script') emit(doc._id, doc) }"
},
"group": {
"map": "function(doc) { if (doc.type === 'group') emit(doc.common.name, doc) }"
},
"user": {
"map": "function(doc) { if (doc.type === 'user') emit(doc.common.name, doc) }"
},
"config": {
"map": "function(doc) { if (doc.type === 'config') emit(doc.common.name, doc) }"
}
},
"acl": {
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"object": 1092
}
},
{
"_id": "system.group.administrator",
"type": "group",
"common": {
"name": {
"en": "Administrator"
},
"description": {
"en": "Can do everything with System"
},
"members": [
"system.user.admin"
],
"dontDelete": true,
"acl": {
"object": {
"list": true,
"read": true,
"write": true,
"delete": true
},
"state": {
"list": true,
"read": true,
"write": true,
"create": true,
"delete": true
},
"users": {
"list": true,
"read": true,
"write": true,
"create": true,
"delete": true
},
"other": {
"execute": true,
"http": true,
"sendto": true
},
"file": {
"list": true,
"read": true,
"write": true,
"create": true,
"delete": true
}
}
},
"acl": {
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"object": 1604
}
},
{
"_id": "system.group.user",
"type": "group",
"common": {
"name": {
"en": "User"
},
"description": {
"en": "Cannot modify everything"
},
"members": [],
"dontDelete": true,
"url": "https://git.spacen.net/yunkong2/yunkong2.js-controller/archive/master.zip",
"meta": "https://git.spacen.net/yunkong2/yunkong2.js-controller/raw/master/io-package.json",
"acl": {
"object": {
"list": true,
"read": true,
"write": false,
"delete": false
},
"state": {
"list": true,
"read": true,
"write": true,
"create": true,
"delete": false
},
"users": {
"list": true,
"read": true,
"write": false,
"create": false,
"delete": false
},
"other": {
"execute": false,
"http": true,
"sendto": false
},
"file": {
"list": true,
"read": true,
"write": false,
"create": false,
"delete": false
}
}
},
"acl": {
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"object": 1604
}
},
{
"_id": "enum.rooms",
"common": {
"icon": "home",
"name": {
"en": "Rooms"
},
"desc": {
"en": "List of the rooms"
},
"members": [],
"dontDelete": true
},
"type": "enum",
"acl": {
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"permissions": 1911
}
},
{
"_id": "enum.functions",
"common": {
"icon": "lightbulb_outline",
"name": {
"en": "Functions"
},
"desc": {
"en": "List of the functions"
},
"members": [],
"dontDelete": true
},
"type": "enum",
"acl": {
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"permissions": 1911
}
},
{
"_id": "system.config",
"type": "config",
"common": {
"name": "System configuration",
"city": "",
"country": "",
"longitude": "",
"latitude": "",
"language": "",
"tempUnit": "°C",
"currency": "",
"dontDelete": true,
"dateFormat": "DD.MM.YYYY",
"isFloatComma": true,
"licenseConfirmed": false,
"defaultHistory": "",
"activeRepo": "default",
"diag": "extended",
"tabs": [
"tab-intro",
"tab-adapters",
"tab-instances",
"tab-objects",
"tab-log",
"tab-scenes",
"tab-javascript",
"tab-text2command-0",
"tab-node-red-0"
]
},
"native": {},
"acl": {
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"permissions": 1604
}
},
{
"_id": "system.repositories",
"type": "config",
"common": {
"name": "System repositories",
"dontDelete": true
},
"native": {
"repositories": {
"default": {
"link": "http://download.yunkong2.net/sources-dist.json",
"json": null
},
"latest": {
"link": "http://download.yunkong2.net/sources-dist-latest.json",
"json": null
}
},
"oldRepositories": {
"sources": {
"link": "conf/sources-dist.json",
"json": null
},
"online": {
"link": "https://raw.githubusercontent.com/yunkong2/yunkong2.repositories/master/sources-dist.json",
"json": null
}
}
},
"acl": {
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"permissions": 1604
}
},
{
"_id": "system.certificates",
"type": "config",
"common": {
"name": "System certificates"
},
"native": {
"certificates": {
"defaultPrivate": "-----BEGIN RSA PRIVATE KEY-----\r\nMIICXQIBAAKBgQDFNHQmcPu5y9ngID3YUCr2NUY/eBceEKdFcEwgZBjp1DM52d/9JYFSrQGHQMvLopG5uiQXVip0mR95rZxaF0mo5wdTAhM1pcxThGeCghZVm9PoLbrakvl9+gSHoYbNVxfv9fi0cPYc7CbeiluhWWS0hm1VpWPM8PX6rkdz5r9OIwIDAQABAoGBAJVSWoChHHpa+ObUgv+/9Efpnv+AF0EUqxPRLFN6d8LWgtNTPl+YfovzpCydy7KtrlpLr/hbrloLd+HSq4ksCQEfJ7Le/4fjc2lt3Ib/K9qSr3bnmIWAK00VU+fFmN1NTFJTV0O2+ctCOY9ZRwue5ehTp9eqPjsGwdeldii1WbSBAkEA6Z0YjMg+04z1M8FEUWSdPf6AHWB45hDJ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AAOBgQBVhdIg59lHKtdpv5O0icvqD4f0tbqMvhWJ/7fhzr1fdjb5OK74g2G90KMhYnzOk0aZu4pgEoXHugpBLb+ndxJnG41pIYe2qg4tp6AjR/uFswdrBLRUhW63yls3FiTEJjKCrGNEdjZoqsTEfwhXab3EoT7tWu+st1V0yiHlsvRGTg==\r\n-----END CERTIFICATE-----\r\n"
}
},
"acl": {
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"permissions": 1536
}
}
]
}