UNPKG

746 BJavaScriptView Raw
1/**
2 * @module schemas
3 */
4
5exports.message = {
6 title: 'message',
7 description: 'piece of information envelope into a conversation',
8 type: 'object',
9 properties: {
10 from: {type: 'string'},
11 to: {type: 'string'},
12 err: {},
13 content: {},
14 id: {type: 'string'},
15 date: {type: 'integer'},
16 timeout: {type: 'integer'},
17 cb: {type: 'boolean'},
18 headers: {type: 'object'}
19 },
20 required: ['from', 'to', 'id'],
21 additionalProperties: false
22};
23
24exports.startParams = {
25 title: 'start parameters',
26 description: 'start parameters',
27 type: 'object',
28 properties: {
29 discoveryAddr: {type: 'string'},
30 discoveryPort: {type: 'number'},
31 ip: {type: 'string'}
32 },
33 required: [],
34 additionalProperties: false
35};