@indra.ai/deva 1.1.29 → 1.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,57 +35,80 @@
35
35
  },
36
36
  "states": {},
37
37
  "messages": {},
38
- "security": {
39
- "hash": "md5",
40
- "cipher": {
41
- "encrypt": true,
42
- "algorithm": "aes-256-cbc",
43
- "password": "generic password for encryption test"
38
+ "features": {
39
+ "security": {
40
+ "hash": "md5",
41
+ "cipher": {
42
+ "encrypt": true,
43
+ "algorithm": "aes-256-cbc",
44
+ "password": "generic password for encryption test"
45
+ },
46
+ "concerns": [],
47
+ "global": {},
48
+ "devas": {
49
+ "hello": {}
50
+ }
44
51
  },
45
- "concerns": [],
46
- "global": {},
47
- "devas": {
48
- "hello": {}
49
- }
50
- },
51
- "support": {
52
- "concerns": [],
53
- "global": {},
54
- "devas": {
55
- "hello": {}
56
- }
57
- },
58
- "services": {
59
- "concerns": [],
60
- "global": {
61
- "indra": "https://indra.ai",
62
- "world": "https://deva.world",
63
- "space": "https://deva.space",
64
- "cloud": "https://deva.cloud"
52
+ "support": {
53
+ "concerns": [],
54
+ "global": {},
55
+ "devas": {
56
+ "hello": {}
57
+ }
65
58
  },
66
- "devas": {
67
- "hello": {}
68
- }
69
- },
70
- "systems": {
71
- "concerns": [],
72
- "global": {},
73
- "devas": {
74
- "hello": {}
75
- }
76
- },
77
- "solutions": {
78
- "concerns": [],
79
- "global": {},
80
- "devas": {
81
- "hello": {}
82
- }
83
- },
84
- "development": {
85
- "concerns": [],
86
- "global": {},
87
- "devas": {
88
- "hello": {}
59
+ "services": {
60
+ "concerns": [],
61
+ "global": {
62
+ "indra": "https://indra.ai",
63
+ "world": "https://deva.world",
64
+ "space": "https://deva.space",
65
+ "cloud": "https://deva.cloud"
66
+ },
67
+ "devas": {
68
+ "hello": {}
69
+ }
70
+ },
71
+ "systems": {
72
+ "concerns": [],
73
+ "global": {},
74
+ "devas": {
75
+ "hello": {}
76
+ }
77
+ },
78
+ "solutions": {
79
+ "concerns": [],
80
+ "global": {},
81
+ "devas": {
82
+ "hello": {}
83
+ }
84
+ },
85
+ "development": {
86
+ "concerns": [],
87
+ "global": {},
88
+ "devas": {
89
+ "hello": {}
90
+ }
91
+ },
92
+ "assistant": {
93
+ "concerns": [],
94
+ "global": {},
95
+ "devas": {
96
+ "hello": {}
97
+ }
98
+ },
99
+ "business": {
100
+ "concerns": [],
101
+ "global": {},
102
+ "devas": {
103
+ "hello": {}
104
+ }
105
+ },
106
+ "legal": {
107
+ "concerns": [],
108
+ "global": {},
109
+ "devas": {
110
+ "hello": {}
111
+ }
89
112
  }
90
113
  }
91
114
  }
@@ -58,21 +58,18 @@ const HelloWorld = new Deva({
58
58
  const id = this.uid();
59
59
  const uuid = this.uid(true);
60
60
 
61
- const created = this.formatDate(Date.now(), 'long', true)
62
- const md5 = this.hash(JSON.stringify(packet));
63
- const sha256 = this.hash(JSON.stringify(packet), 'sha256');
64
- const sha512 = this.hash(JSON.stringify(packet), 'sha512');
65
61
  const cipher = this.cipher(JSON.stringify(packet));
66
62
  const decipher = this.decipher(cipher);
67
63
 
68
64
  const data = {
69
65
  id,
70
66
  uuid,
67
+ text,
71
68
  hash: {
72
- md5,
73
- sha256,
74
- sha512,
75
- created,
69
+ md5: this.hash(JSON.stringify(packet)),
70
+ sha256: this.hash(JSON.stringify(packet), 'sha256'),
71
+ sha512: this.hash(JSON.stringify(packet), 'sha512'),
72
+ created: this.formatDate(Date.now(), 'long'),
76
73
  },
77
74
  cipher,
78
75
  decipher