@alwaysai/device-agent-schemas 2.1.8 → 2.1.10

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.
@@ -17,7 +17,8 @@
17
17
  "app_install_response",
18
18
  "models_install_response",
19
19
  "live_state_updates",
20
- "device_action"
20
+ "device_action",
21
+ "status_response"
21
22
  ]
22
23
  },
23
24
  "txId": {
@@ -30,7 +31,8 @@
30
31
  { "$ref": "https://alwaysai.co/app-install-response-schema.json" },
31
32
  { "$ref": "https://alwaysai.co/models-install-response-schema.json" },
32
33
  { "$ref": "https://alwaysai.co/live-updates-toggle-schema.json" },
33
- { "$ref": "https://alwaysai.co/device-action-schema.json" }
34
+ { "$ref": "https://alwaysai.co/device-action-schema.json" },
35
+ { "$ref": "https://alwaysai.co/status-response-schema.json" }
34
36
  ]
35
37
  }
36
38
  },
@@ -106,6 +108,18 @@
106
108
  "payload": { "$ref": "https://alwaysai.co/device-action-schema.json" }
107
109
  }
108
110
  }
111
+ },
112
+ {
113
+ "if": {
114
+ "properties": {
115
+ "messageType": { "const": "status_response" }
116
+ }
117
+ },
118
+ "then": {
119
+ "properties": {
120
+ "payload": { "$ref": "https://alwaysai.co/status-response-schema.json" }
121
+ }
122
+ }
109
123
  }
110
124
  ],
111
125
  "required": ["timestamp", "txId", "payload", "messageType"],
@@ -29,7 +29,7 @@ export interface SystemInformationPayload {
29
29
  manufacturer?: string;
30
30
  model?: string;
31
31
  version?: string;
32
- serial?: number;
32
+ serial?: string;
33
33
  virtual?: boolean;
34
34
  };
35
35
  network?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alwaysai/device-agent-schemas",
3
3
  "description": "alwaysAI schemas",
4
- "version": "2.1.8",
4
+ "version": "2.1.10",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "engines": {
@@ -18,7 +18,8 @@
18
18
  "app_install_response",
19
19
  "models_install_response",
20
20
  "live_state_updates",
21
- "device_action"
21
+ "device_action",
22
+ "status_response"
22
23
  ]
23
24
  },
24
25
  "txId": {
@@ -31,7 +32,8 @@
31
32
  { "$ref": "https://alwaysai.co/app-install-response-schema.json" },
32
33
  { "$ref": "https://alwaysai.co/models-install-response-schema.json" },
33
34
  { "$ref": "https://alwaysai.co/live-updates-toggle-schema.json" },
34
- { "$ref": "https://alwaysai.co/device-action-schema.json" }
35
+ { "$ref": "https://alwaysai.co/device-action-schema.json" },
36
+ { "$ref": "https://alwaysai.co/status-response-schema.json" }
35
37
  ]
36
38
  }
37
39
  },
@@ -107,6 +109,18 @@
107
109
  "payload": {"$ref": "https://alwaysai.co/device-action-schema.json"}
108
110
  }
109
111
  }
112
+ },
113
+ {
114
+ "if": {
115
+ "properties": {
116
+ "messageType": { "const": "status_response" }
117
+ }
118
+ },
119
+ "then": {
120
+ "properties": {
121
+ "payload": {"$ref": "https://alwaysai.co/status-response-schema.json"}
122
+ }
123
+ }
110
124
  }
111
125
  ],
112
126
  "required": ["timestamp", "txId", "payload", "messageType"],
@@ -29,7 +29,7 @@ export interface SystemInformationPayload {
29
29
  manufacturer?: string;
30
30
  model?: string;
31
31
  version?: string;
32
- serial?: number;
32
+ serial?: string;
33
33
  virtual?: boolean;
34
34
  };
35
35
  network?: {