@alwaysai/device-agent-schemas 1.2.0 → 2.0.0

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.
Files changed (292) hide show
  1. package/README.md +8 -4
  2. package/development.md +37 -0
  3. package/docs/README.md +81 -0
  4. package/docs/agent-message-schema-defs-toclient.md +25 -0
  5. package/docs/agent-message-schema-defs-tocloud.md +25 -0
  6. package/docs/agent-message-schema-defs.md +15 -0
  7. package/docs/agent-message-schema-properties-deviceid.md +15 -0
  8. package/docs/agent-message-schema-properties-payload-oneof-app_install_status.md +66 -0
  9. package/docs/agent-message-schema-properties-payload-oneof-app_logs.md +66 -0
  10. package/docs/agent-message-schema-properties-payload-oneof-app_state.md +66 -0
  11. package/docs/agent-message-schema-properties-payload-oneof-device_stats.md +66 -0
  12. package/docs/agent-message-schema-properties-payload-oneof-signed_urls_request.md +85 -0
  13. package/docs/agent-message-schema-properties-payload.md +27 -0
  14. package/docs/agent-message-schema-properties-timestamp.md +15 -0
  15. package/docs/agent-message-schema-properties-topic-oneof-0.md +25 -0
  16. package/docs/agent-message-schema-properties-topic-oneof-1.md +25 -0
  17. package/docs/agent-message-schema-properties-topic.md +21 -0
  18. package/docs/agent-message-schema.md +138 -0
  19. package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-appinstallpayload-properties-appsignedurl.md +15 -0
  20. package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-appinstallpayload.md +39 -0
  21. package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-appreleasehash.md +25 -0
  22. package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-models_install_payload.md +15 -0
  23. package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-projectid.md +25 -0
  24. package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse.md +116 -0
  25. package/docs/app-install-cloud-response-schema-properties-messagetype.md +23 -0
  26. package/docs/app-install-cloud-response-schema.md +66 -0
  27. package/docs/app-install-schema-properties-appreleasehash.md +25 -0
  28. package/docs/app-install-schema-properties-basecommand.md +23 -0
  29. package/docs/app-install-schema-properties-projectid.md +25 -0
  30. package/docs/app-install-schema.md +105 -0
  31. package/docs/app-install-status-schema-properties-appinstallstatus-properties-appreleasehash.md +25 -0
  32. package/docs/app-install-status-schema-properties-appinstallstatus-properties-message.md +15 -0
  33. package/docs/app-install-status-schema-properties-appinstallstatus-properties-status.md +26 -0
  34. package/docs/app-install-status-schema-properties-appinstallstatus.md +98 -0
  35. package/docs/app-install-status-schema-properties-messagetype.md +23 -0
  36. package/docs/app-install-status-schema.md +66 -0
  37. package/docs/app-logs-schema-properties-applogs-properties-logchunk.md +15 -0
  38. package/docs/app-logs-schema-properties-applogs-properties-projectid.md +25 -0
  39. package/docs/app-logs-schema-properties-applogs.md +68 -0
  40. package/docs/app-logs-schema-properties-messagetype.md +23 -0
  41. package/docs/app-logs-schema.md +66 -0
  42. package/docs/app-state-control-schema-properties-appstatecontrol-properties-basecommand.md +25 -0
  43. package/docs/app-state-control-schema-properties-appstatecontrol-properties-projectid.md +25 -0
  44. package/docs/app-state-control-schema-properties-appstatecontrol.md +78 -0
  45. package/docs/app-state-control-schema-properties-messagetype.md +23 -0
  46. package/docs/app-state-control-schema.md +66 -0
  47. package/docs/app-state-schema-properties-appstate-items-properties-appdetails-properties-projectid.md +25 -0
  48. package/docs/app-state-schema-properties-appstate-items-properties-appdetails-properties-version.md +25 -0
  49. package/docs/app-state-schema-properties-appstate-items-properties-appdetails.md +78 -0
  50. package/docs/app-state-schema-properties-appstate-items-properties-services-items-properties-name.md +15 -0
  51. package/docs/app-state-schema-properties-appstate-items-properties-services-items-properties-state.md +25 -0
  52. package/docs/app-state-schema-properties-appstate-items-properties-services-items.md +68 -0
  53. package/docs/app-state-schema-properties-appstate-items-properties-services.md +15 -0
  54. package/docs/app-state-schema-properties-appstate-items.md +58 -0
  55. package/docs/app-state-schema-properties-appstate.md +15 -0
  56. package/docs/app-state-schema-properties-messagetype.md +23 -0
  57. package/docs/app-state-schema.md +66 -0
  58. package/docs/app-uninstall-schema-properties-basecommand.md +23 -0
  59. package/docs/app-uninstall-schema-properties-projectid.md +25 -0
  60. package/docs/app-uninstall-schema.md +76 -0
  61. package/docs/app-version-control-schema-properties-appversioncontrol.md +21 -0
  62. package/docs/app-version-control-schema-properties-messagetype.md +23 -0
  63. package/docs/app-version-control-schema.md +72 -0
  64. package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse-properties-appinstallpayload-properties-appsignedurl.md +15 -0
  65. package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse-properties-appinstallpayload.md +39 -0
  66. package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse-properties-appreleasehash.md +25 -0
  67. package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse-properties-modelsinstallpayload.md +15 -0
  68. package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse-properties-projectid.md +25 -0
  69. package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse.md +116 -0
  70. package/docs/app_install_cloud_response_schema-properties-messagetype.md +23 -0
  71. package/docs/app_install_cloud_response_schema.md +66 -0
  72. package/docs/app_install_schema-properties-appreleasehash.md +25 -0
  73. package/docs/app_install_schema-properties-basecommand.md +23 -0
  74. package/docs/app_install_schema-properties-projectid.md +25 -0
  75. package/docs/app_install_schema.md +105 -0
  76. package/docs/app_state_control_schema-properties-appstatecontrol-properties-basecommand.md +25 -0
  77. package/docs/app_state_control_schema-properties-appstatecontrol-properties-projectid.md +25 -0
  78. package/docs/app_state_control_schema-properties-appstatecontrol.md +78 -0
  79. package/docs/app_state_control_schema-properties-messagetype.md +23 -0
  80. package/docs/app_state_control_schema.md +66 -0
  81. package/docs/app_uninstall_schema-properties-basecommand.md +23 -0
  82. package/docs/app_uninstall_schema-properties-projectid.md +25 -0
  83. package/docs/app_uninstall_schema.md +76 -0
  84. package/docs/app_version_control_schema-properties-appversioncontrol.md +21 -0
  85. package/docs/app_version_control_schema-properties-messagetype.md +23 -0
  86. package/docs/app_version_control_schema.md +72 -0
  87. package/docs/client-message-schema-defs-message.md +25 -0
  88. package/docs/client-message-schema-defs.md +15 -0
  89. package/docs/client-message-schema-properties-payload-oneof-live_state_updates.md +66 -0
  90. package/docs/client-message-schema-properties-payload-oneof-models_install_cloud_response.md +66 -0
  91. package/docs/client-message-schema-properties-payload.md +27 -0
  92. package/docs/client-message-schema-properties-timestamp.md +15 -0
  93. package/docs/client-message-schema-properties-topic.md +25 -0
  94. package/docs/client-message-schema.md +112 -0
  95. package/docs/client_message_schema-defs-message.md +25 -0
  96. package/docs/client_message_schema-defs.md +15 -0
  97. package/docs/client_message_schema-properties-payload-oneof-3.md +66 -0
  98. package/docs/client_message_schema-properties-payload-oneof-4.md +66 -0
  99. package/docs/client_message_schema-properties-payload.md +27 -0
  100. package/docs/client_message_schema-properties-timestamp.md +15 -0
  101. package/docs/client_message_schema-properties-topic.md +25 -0
  102. package/docs/client_message_schema.md +112 -0
  103. package/docs/common-schema-defs-appreleasehash.md +25 -0
  104. package/docs/common-schema-defs-modelid.md +25 -0
  105. package/docs/common-schema-defs-projectid.md +25 -0
  106. package/docs/common-schema-defs.md +15 -0
  107. package/docs/common-schema.md +50 -0
  108. package/docs/device-status-schema-properties-devicestats-properties-cpuusage.md +15 -0
  109. package/docs/device-status-schema-properties-devicestats-properties-diskutil.md +15 -0
  110. package/docs/device-status-schema-properties-devicestats-properties-usedmemorypercentage.md +15 -0
  111. package/docs/device-status-schema-properties-devicestats.md +77 -0
  112. package/docs/device-status-schema-properties-messagetype.md +23 -0
  113. package/docs/device-status-schema.md +66 -0
  114. package/docs/live-updates-toggle-schema-properties-liveupdatestoggles-properties-applogs-properties-projectid.md +25 -0
  115. package/docs/live-updates-toggle-schema-properties-liveupdatestoggles-properties-applogs-properties-toggle.md +15 -0
  116. package/docs/live-updates-toggle-schema-properties-liveupdatestoggles-properties-applogs.md +68 -0
  117. package/docs/live-updates-toggle-schema-properties-liveupdatestoggles-properties-appstate.md +15 -0
  118. package/docs/live-updates-toggle-schema-properties-liveupdatestoggles-properties-devicestats.md +15 -0
  119. package/docs/live-updates-toggle-schema-properties-liveupdatestoggles.md +77 -0
  120. package/docs/live-updates-toggle-schema-properties-messagetype.md +23 -0
  121. package/docs/live-updates-toggle-schema.md +66 -0
  122. package/docs/live_updates_toggle_schema-properties-liveupdatestoggles-properties-applogs-properties-projectid.md +25 -0
  123. package/docs/live_updates_toggle_schema-properties-liveupdatestoggles-properties-applogs-properties-toggle.md +15 -0
  124. package/docs/live_updates_toggle_schema-properties-liveupdatestoggles-properties-applogs.md +68 -0
  125. package/docs/live_updates_toggle_schema-properties-liveupdatestoggles-properties-appstate.md +15 -0
  126. package/docs/live_updates_toggle_schema-properties-liveupdatestoggles-properties-devicestats.md +15 -0
  127. package/docs/live_updates_toggle_schema-properties-liveupdatestoggles.md +77 -0
  128. package/docs/live_updates_toggle_schema-properties-messagetype.md +23 -0
  129. package/docs/live_updates_toggle_schema.md +66 -0
  130. package/docs/models-install-cloud-response-schema-properties-messagetype.md +23 -0
  131. package/docs/models-install-cloud-response-schema-properties-modelsinstallcloudresponse-properties-projectid.md +25 -0
  132. package/docs/models-install-cloud-response-schema-properties-modelsinstallcloudresponse.md +68 -0
  133. package/docs/models-install-cloud-response-schema.md +66 -0
  134. package/docs/models-install-payload-schema-items-properties-id.md +25 -0
  135. package/docs/models-install-payload-schema-items-properties-modelsignedurl.md +15 -0
  136. package/docs/models-install-payload-schema-items-properties-version.md +15 -0
  137. package/docs/models-install-payload-schema-items.md +87 -0
  138. package/docs/models-install-payload-schema.md +15 -0
  139. package/docs/models_install_cloud_response_schema-properties-messagetype.md +23 -0
  140. package/docs/models_install_cloud_response_schema-properties-modelsinstallcloudresponse-properties-projectid.md +25 -0
  141. package/docs/models_install_cloud_response_schema-properties-modelsinstallcloudresponse.md +68 -0
  142. package/docs/models_install_cloud_response_schema.md +66 -0
  143. package/docs/models_install_payload_schema-items-properties-id.md +25 -0
  144. package/docs/models_install_payload_schema-items-properties-modelsignedurl.md +15 -0
  145. package/docs/models_install_payload_schema-items-properties-version.md +15 -0
  146. package/docs/models_install_payload_schema-items.md +87 -0
  147. package/docs/models_install_payload_schema.md +15 -0
  148. package/docs/signed-urls-request-schema-properties-messagetype.md +23 -0
  149. package/docs/signed-urls-request-schema-properties-modelsonlyurlsrequest-properties-models-patternproperties-a-za-z0-9_.md +15 -0
  150. package/docs/signed-urls-request-schema-properties-modelsonlyurlsrequest-properties-models-patternproperties.md +15 -0
  151. package/docs/signed-urls-request-schema-properties-modelsonlyurlsrequest-properties-models.md +39 -0
  152. package/docs/signed-urls-request-schema-properties-modelsonlyurlsrequest-properties-projectid.md +25 -0
  153. package/docs/signed-urls-request-schema-properties-modelsonlyurlsrequest.md +68 -0
  154. package/docs/signed-urls-request-schema-properties-signedurlsrequest-properties-appreleasehash.md +25 -0
  155. package/docs/signed-urls-request-schema-properties-signedurlsrequest-properties-projectid.md +25 -0
  156. package/docs/signed-urls-request-schema-properties-signedurlsrequest.md +78 -0
  157. package/docs/signed-urls-request-schema.md +85 -0
  158. package/lib/app-action-schema.d.ts +54 -0
  159. package/lib/app-action-schema.d.ts.map +1 -0
  160. package/lib/app-action-schema.js +3 -0
  161. package/lib/app-action-schema.js.map +1 -0
  162. package/lib/app-logs-schema.d.ts +11 -0
  163. package/lib/app-logs-schema.d.ts.map +1 -0
  164. package/lib/app-logs-schema.js +3 -0
  165. package/lib/app-logs-schema.js.map +1 -0
  166. package/lib/app-state-schema.d.ts +22 -0
  167. package/lib/app-state-schema.d.ts.map +1 -0
  168. package/lib/app-state-schema.js +3 -0
  169. package/lib/app-state-schema.js.map +1 -0
  170. package/lib/constants.d.ts +39 -14
  171. package/lib/constants.d.ts.map +1 -1
  172. package/lib/constants.js +10 -10
  173. package/lib/constants.js.map +1 -1
  174. package/lib/constants.test.d.ts +2 -0
  175. package/lib/constants.test.d.ts.map +1 -0
  176. package/lib/constants.test.js +21 -0
  177. package/lib/constants.test.js.map +1 -0
  178. package/lib/device-agent-action-schema.d.ts +15 -0
  179. package/lib/device-agent-action-schema.d.ts.map +1 -0
  180. package/lib/device-agent-action-schema.js +3 -0
  181. package/lib/device-agent-action-schema.js.map +1 -0
  182. package/lib/device-stats-schema.d.ts +12 -0
  183. package/lib/device-stats-schema.d.ts.map +1 -0
  184. package/lib/device-stats-schema.js +4 -0
  185. package/lib/device-stats-schema.js.map +1 -0
  186. package/lib/index.d.ts +10 -10
  187. package/lib/index.d.ts.map +1 -1
  188. package/lib/index.js.map +1 -1
  189. package/lib/schemas/app-install-cloud-response-schema.json +41 -0
  190. package/lib/schemas/app-install-schema.json +20 -0
  191. package/lib/schemas/app-logs-schema.json +23 -0
  192. package/lib/schemas/app-state-control-schema.json +24 -0
  193. package/lib/schemas/app-state-schema.json +49 -0
  194. package/lib/schemas/app-uninstall-schema.json +17 -0
  195. package/lib/schemas/app-version-control-schema.json +20 -0
  196. package/lib/schemas/client-message-schema.json +117 -0
  197. package/lib/schemas/common-schema.json +27 -0
  198. package/lib/schemas/device-agent-message-schema.json +106 -0
  199. package/lib/schemas/device-stats-schema.json +29 -0
  200. package/lib/schemas/live-updates-toggle-schema.json +35 -0
  201. package/lib/schemas/models-install-cloud-response-schema.json +23 -0
  202. package/lib/schemas/models-install-payload-schema.json +22 -0
  203. package/lib/schemas/signed-urls-request-schema.json +42 -0
  204. package/lib/schemas/status-response-schema.json +23 -0
  205. package/lib/signed-urls-request-schema.d.ts +21 -0
  206. package/lib/signed-urls-request-schema.d.ts.map +1 -0
  207. package/lib/signed-urls-request-schema.js +3 -0
  208. package/lib/signed-urls-request-schema.js.map +1 -0
  209. package/lib/status-response-schema.d.ts +11 -0
  210. package/lib/status-response-schema.d.ts.map +1 -0
  211. package/lib/status-response-schema.js +3 -0
  212. package/lib/status-response-schema.js.map +1 -0
  213. package/lib/types.d.ts +20 -20
  214. package/lib/types.d.ts.map +1 -1
  215. package/lib/types.js +37 -91
  216. package/lib/types.js.map +1 -1
  217. package/lib/types.test.js +130 -41
  218. package/lib/types.test.js.map +1 -1
  219. package/lib/utils.d.ts +1 -0
  220. package/lib/utils.d.ts.map +1 -1
  221. package/lib/utils.js +6 -1
  222. package/lib/utils.js.map +1 -1
  223. package/package.json +6 -3
  224. package/src/app-action-schema.ts +71 -0
  225. package/src/app-logs-schema.ts +13 -0
  226. package/src/app-state-schema.ts +27 -0
  227. package/src/constants.test.ts +35 -0
  228. package/src/constants.ts +33 -12
  229. package/src/device-agent-action-schema.ts +16 -0
  230. package/src/device-stats-schema.ts +15 -0
  231. package/src/index.ts +67 -34
  232. package/src/schemas/app-install-cloud-response-schema.json +41 -0
  233. package/src/schemas/app-install-schema.json +20 -0
  234. package/src/schemas/app-logs-schema.json +23 -0
  235. package/src/schemas/app-state-control-schema.json +24 -0
  236. package/src/schemas/app-state-schema.json +49 -0
  237. package/src/schemas/app-uninstall-schema.json +17 -0
  238. package/src/schemas/app-version-control-schema.json +20 -0
  239. package/src/schemas/client-message-schema.json +117 -0
  240. package/src/schemas/common-schema.json +27 -0
  241. package/src/schemas/device-agent-message-schema.json +107 -0
  242. package/src/schemas/device-stats-schema.json +29 -0
  243. package/src/schemas/live-updates-toggle-schema.json +35 -0
  244. package/src/schemas/models-install-cloud-response-schema.json +23 -0
  245. package/src/schemas/models-install-payload-schema.json +22 -0
  246. package/src/schemas/signed-urls-request-schema.json +42 -0
  247. package/src/schemas/status-response-schema.json +23 -0
  248. package/src/signed-urls-request-schema.ts +22 -0
  249. package/src/status-response-schema.ts +12 -0
  250. package/src/types.test.ts +130 -43
  251. package/src/types.ts +109 -143
  252. package/src/utils.ts +6 -0
  253. package/lib/schemas/agent/app-install-status-schema.d.ts +0 -38
  254. package/lib/schemas/agent/app-install-status-schema.d.ts.map +0 -1
  255. package/lib/schemas/agent/app-install-status-schema.js +0 -32
  256. package/lib/schemas/agent/app-install-status-schema.js.map +0 -1
  257. package/lib/schemas/agent/application-logs-schema.d.ts +0 -34
  258. package/lib/schemas/agent/application-logs-schema.d.ts.map +0 -1
  259. package/lib/schemas/agent/application-logs-schema.js +0 -29
  260. package/lib/schemas/agent/application-logs-schema.js.map +0 -1
  261. package/lib/schemas/agent/application-state-schema.d.ts +0 -68
  262. package/lib/schemas/agent/application-state-schema.d.ts.map +0 -1
  263. package/lib/schemas/agent/application-state-schema.js +0 -56
  264. package/lib/schemas/agent/application-state-schema.js.map +0 -1
  265. package/lib/schemas/agent/device-status-schema.d.ts +0 -41
  266. package/lib/schemas/agent/device-status-schema.d.ts.map +0 -1
  267. package/lib/schemas/agent/device-status-schema.js +0 -35
  268. package/lib/schemas/agent/device-status-schema.js.map +0 -1
  269. package/lib/schemas/agent/request-data-from-cloud.d.ts +0 -60
  270. package/lib/schemas/agent/request-data-from-cloud.d.ts.map +0 -1
  271. package/lib/schemas/agent/request-data-from-cloud.js +0 -48
  272. package/lib/schemas/agent/request-data-from-cloud.js.map +0 -1
  273. package/lib/schemas/client/application-action-schema.d.ts +0 -247
  274. package/lib/schemas/client/application-action-schema.d.ts.map +0 -1
  275. package/lib/schemas/client/application-action-schema.js +0 -161
  276. package/lib/schemas/client/application-action-schema.js.map +0 -1
  277. package/lib/schemas/client/device-agent-action-schema.d.ts +0 -50
  278. package/lib/schemas/client/device-agent-action-schema.d.ts.map +0 -1
  279. package/lib/schemas/client/device-agent-action-schema.js +0 -41
  280. package/lib/schemas/client/device-agent-action-schema.js.map +0 -1
  281. package/lib/schemas/common-schema.d.ts +0 -22
  282. package/lib/schemas/common-schema.d.ts.map +0 -1
  283. package/lib/schemas/common-schema.js +0 -26
  284. package/lib/schemas/common-schema.js.map +0 -1
  285. package/src/schemas/agent/app-install-status-schema.ts +0 -39
  286. package/src/schemas/agent/application-logs-schema.ts +0 -37
  287. package/src/schemas/agent/application-state-schema.ts +0 -74
  288. package/src/schemas/agent/device-status-schema.ts +0 -44
  289. package/src/schemas/agent/request-data-from-cloud.ts +0 -61
  290. package/src/schemas/client/application-action-schema.ts +0 -225
  291. package/src/schemas/client/device-agent-action-schema.ts +0 -52
  292. package/src/schemas/common-schema.ts +0 -23
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # alwaysAI Device Agent Schemas
2
2
 
3
+ ## Contents
4
+ * [Documentation](docs/README.md)
5
+ * [Schemas](src/schemas)
6
+
3
7
  The alwaysAI Device Agent Schemas package provides interfaces that represent the messaging interface for communication with the alwaysAI Device Agent, as well as functions for validating JSON data that are being used as device agent messages.
4
8
 
5
9
  ## Use in Development
@@ -8,23 +12,23 @@ Use the provided interfaces as type guards in your development to ensure that pr
8
12
  The provided interfaces are:
9
13
 
10
14
  - DeviceStats,
11
- - DeviceStatsMessage,
15
+ - DeviceStatsPayload,
12
16
  - AppState,
13
17
  - AppStateValue,
14
18
  - ServiceStatus,
15
19
  - AppDetails,
16
- - AppStateMessage,
20
+ - AppStatePayload,
17
21
  - InstallationStatus,
18
22
  - InstallationStatusMessage,
19
23
  - AppLogs,
20
- - AppLogsMessage,
24
+ - AppLogsPayload,
21
25
  - AppStateControlValue,
22
26
  - AppVersionControlValue,
23
27
  - AppStateControl,
24
28
  - AppVersionControl,
25
29
  - AppActionMessage,
26
30
  - AgentActionValue,
27
- - LiveUpdatesToggle,
31
+ - LiveUpdatesToggles,
28
32
  - DeviceAgentMessage,
29
33
  - ClientMessage,
30
34
 
package/development.md CHANGED
@@ -1,6 +1,43 @@
1
1
  # Overview
2
2
  The interfaces and schemas for each sub-packet can be found in `src/schemas`. The schemas are imported into `types.ts` and the overall JSONSchemaType as well as the sub-types are created, as are the validation methods. Validation methods are used to type-guard incoming messages, while the interfaces are used to type-guard at development time. This repository is configured as an `npm` package -- while under local development you can use `npm instal --save` along with the path to this repo to use it with the device agent.
3
3
 
4
+ # Naming Conventions
5
+ Below is an outline of the general interface structure.
6
+
7
+ const message: xxxxMessage = {
8
+ ....,
9
+ messageType: [`DeviceAgentMessageTypeValue` or `ClientMessageTypeValue`],
10
+ payload: xxxxMessagePayload : {
11
+ [type lowercase]: [type is the mirror of the key (uppercase)]
12
+ }
13
+ }
14
+
15
+
16
+ ## Upper Level
17
+ The upper level content has the suffix `Message`. This is in keeping with the convention of having the content delivered on MQTT be the 'message'.
18
+
19
+ ## Message Payload
20
+ Each of the `Message` packets have a 'payload', and these sub-packets are one of the following for `DeviceAgentMessage`:
21
+ - AppStateControlPayload
22
+ - AppVersionControlPayload
23
+ - LiveUpdatesTogglePayload
24
+ - AppInstallCloudResponsePayload
25
+ - ModelsInstallCloudResponsePayload
26
+
27
+ For `ClientMessage`, the 'payload' field must be one of the following:
28
+ - AppLogsPayload
29
+ - StatusResponsePayload
30
+ - AppStatePayload
31
+ - DeviceStatsPayload
32
+ - SignedUrlsRequestPayload
33
+
34
+ For all packets, there is a `messageType` field, whose entry helps identify the contents. This field can be used to distinguish which message has been sent, such as in a conditional block. For `ClientMessage`packets, this field is one of `ClientMessageTypeValue` entries and for `DeviceAgentMessage` packets, it is one of `DeviceAgentMessageTypeValue` entries.
35
+
36
+ ## Message Payload Contents
37
+ Additionally, each 'payload' object contains a key that corresponds to the actual useful contents of the 'payload'. The name of the key indicates what type of contents these are.
38
+
39
+ For instance, the `AppLogsPayload` type has a `messageType`, which is of type `app_logs`, as well as a key `appLogs`, which is of type `AppLogs`.
40
+
4
41
  # To Create New Schemas and Validation Methods
5
42
  To create a new message type, create a new `.ts` file in `src/schemas` and create the sub-schema and a corresponding `interface`. If you are using patterns or enums, you can add these to the `src/constants` file and import them as needed. You can them import the schemas into `types.ts` and modify the main schema's `payload` property's `oneOf` list to include the new type. You can then compile a new validation method against the new schema using your newly defined type. You may need to add the schema to the `ajv` instance, however this shouldn't be necessary if the main schema is referencing the new sub-schema. More notes on the development of this repo can be found here: https://alwaysai.atlassian.net/l/c/RdjVyG1d
6
43
 
package/docs/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # README
2
+
3
+ ## Top-level Schemas
4
+
5
+ * [agent\_message](./agent-message-schema.md "The messaging payload structure for messages sent from device agent to clients") – `https://alwaysai.co/agent-message-schema.json`
6
+
7
+ * [app\_install](./app-install-schema.md) – `https://alwaysai.co/app-install-schema.json`
8
+
9
+ * [app\_install\_cloud\_response](./app-install-cloud-response-schema.md) – `https://alwaysai.co/app-install-cloud-response-schema.json`
10
+
11
+ * [app\_install\_status](./app-install-status-schema.md) – `https://alwaysai.co/app-install-status-schema.json`
12
+
13
+ * [app\_logs](./app-logs-schema.md) – `https://alwaysai.co/app-logs-schema.json`
14
+
15
+ * [app\_state](./app-state-schema.md) – `https://alwaysai.co/app-state-schema.json`
16
+
17
+ * [app\_state\_control](./app-state-control-schema.md) – `https://alwaysai.co/app-state-control-schema.json`
18
+
19
+ * [app\_uninstall](./app-uninstall-schema.md) – `https://alwaysai.co/app-uninstall-schema.json`
20
+
21
+ * [app\_version\_control](./app-version-control-schema.md) – `https://alwaysai.co/app-version-control-schema.json`
22
+
23
+ * [client\_message](./client-message-schema.md "A schema that describes the message payload structure for messages sent from clients to device agent") – `https://alwaysai.co/client-message-schema.json`
24
+
25
+ * [common](./common-schema.md) – `https://alwaysai.co/common-schema.json`
26
+
27
+ * [device\_stats](./device-status-schema.md) – `https://alwaysai.co/device-status-schema.json`
28
+
29
+ * [live\_state\_updates](./live-updates-toggle-schema.md) – `https://alwaysai.co/live-updates-toggle-schema.json`
30
+
31
+ * [models\_install\_cloud\_response](./models-install-cloud-response-schema.md) – `https://alwaysai.co/models-install-cloud-response-schema.json`
32
+
33
+ * [models\_install\_payload](./models-install-payload-schema.md) – `https://alwaysai.co/models-install-payload-schema.json`
34
+
35
+ * [signed\_urls\_request](./signed-urls-request-schema.md) – `https://alwaysai.co/signed-urls-request-schema.json`
36
+
37
+ ## Other Schemas
38
+
39
+ ### Objects
40
+
41
+ * [Untitled object in app\_install\_cloud\_response](./app-install-cloud-response-schema-properties-appinstallcloudresponse.md) – `https://alwaysai.co/app-install-cloud-response-schema.json#/properties/appInstallCloudResponse`
42
+
43
+ * [Untitled object in app\_install\_cloud\_response](./app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-appinstallpayload.md) – `https://alwaysai.co/app-install-cloud-response-schema.json#/properties/appInstallCloudResponse/properties/appInstallPayload`
44
+
45
+ * [Untitled object in app\_install\_status](./app-install-status-schema-properties-appinstallstatus.md) – `https://alwaysai.co/app-install-status-schema.json#/properties/appInstallStatus`
46
+
47
+ * [Untitled object in app\_logs](./app-logs-schema-properties-applogs.md) – `https://alwaysai.co/app-logs-schema.json#/properties/appLogs`
48
+
49
+ * [Untitled object in app\_state](./app-state-schema-properties-appstate-items.md) – `https://alwaysai.co/app-state-schema.json#/properties/appState/items`
50
+
51
+ * [Untitled object in app\_state](./app-state-schema-properties-appstate-items-properties-appdetails.md) – `https://alwaysai.co/app-state-schema.json#/properties/appState/items/properties/appDetails`
52
+
53
+ * [Untitled object in app\_state](./app-state-schema-properties-appstate-items-properties-services-items.md) – `https://alwaysai.co/app-state-schema.json#/properties/appState/items/properties/services/items`
54
+
55
+ * [Untitled object in app\_state\_control](./app-state-control-schema-properties-appstatecontrol.md) – `https://alwaysai.co/app-state-control-schema.json#/properties/appStateControl`
56
+
57
+ * [Untitled object in device\_stats](./device-status-schema-properties-devicestats.md) – `https://alwaysai.co/device-status-schema.json#/properties/deviceStats`
58
+
59
+ * [Untitled object in live\_state\_updates](./live-updates-toggle-schema-properties-liveupdatestoggles.md) – `https://alwaysai.co/live-updates-toggle-schema.json#/properties/liveUpdatesToggles`
60
+
61
+ * [Untitled object in live\_state\_updates](./live-updates-toggle-schema-properties-liveupdatestoggles-properties-applogs.md) – `https://alwaysai.co/live-updates-toggle-schema.json#/properties/liveUpdatesToggles/properties/appLogs`
62
+
63
+ * [Untitled object in models\_install\_cloud\_response](./models-install-cloud-response-schema-properties-modelsinstallcloudresponse.md) – `https://alwaysai.co/models-install-cloud-response-schema.json#/properties/modelsInstallCloudResponse`
64
+
65
+ * [Untitled object in models\_install\_payload](./models-install-payload-schema-items.md) – `https://alwaysai.co/models-install-payload-schema.json#/items`
66
+
67
+ * [Untitled object in signed\_urls\_request](./signed-urls-request-schema-properties-signedurlsrequest.md) – `https://alwaysai.co/signed-urls-request-schema.json#/properties/signedUrlsRequest`
68
+
69
+ * [Untitled object in signed\_urls\_request](./signed-urls-request-schema-properties-modelsonlyurlsrequest.md) – `https://alwaysai.co/signed-urls-request-schema.json#/properties/modelsOnlyUrlsRequest`
70
+
71
+ * [Untitled object in signed\_urls\_request](./signed-urls-request-schema-properties-modelsonlyurlsrequest-properties-models.md) – `https://alwaysai.co/signed-urls-request-schema.json#/properties/modelsOnlyUrlsRequest/properties/models`
72
+
73
+ ### Arrays
74
+
75
+ * [Untitled array in app\_state](./app-state-schema-properties-appstate.md) – `https://alwaysai.co/app-state-schema.json#/properties/appState`
76
+
77
+ * [Untitled array in app\_state](./app-state-schema-properties-appstate-items-properties-services.md) – `https://alwaysai.co/app-state-schema.json#/properties/appState/items/properties/services`
78
+
79
+ ## Version Note
80
+
81
+ The schemas linked above follow the JSON Schema Spec version: `https://json-schema.org/draft/2019-09/schema`
@@ -0,0 +1,25 @@
1
+ # Untitled string in agent\_message Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/agent-message-schema.json#/$defs/toClient
5
+ ```
6
+
7
+ Messages sent from the agent itself to console client
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## toClient Type
14
+
15
+ `string`
16
+
17
+ ## toClient Constraints
18
+
19
+ **pattern**: the string must match the following regular expression: 
20
+
21
+ ```regexp
22
+ to-client/aai-device/([0-9a-z]+-+)+([0-9a-z])+
23
+ ```
24
+
25
+ [try pattern](https://regexr.com/?expression=to-client%2Faai-device%2F\(%5B0-9a-z%5D%2B-%2B\)%2B\(%5B0-9a-z%5D\)%2B "try regular expression with regexr.com")
@@ -0,0 +1,25 @@
1
+ # Untitled string in agent\_message Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/agent-message-schema.json#/$defs/toCloud
5
+ ```
6
+
7
+ Messages sent from the agent itself to cloud backend
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## toCloud Type
14
+
15
+ `string`
16
+
17
+ ## toCloud Constraints
18
+
19
+ **pattern**: the string must match the following regular expression: 
20
+
21
+ ```regexp
22
+ to-cloud/aai-device/([0-9a-z]+-+)+([0-9a-z])+
23
+ ```
24
+
25
+ [try pattern](https://regexr.com/?expression=to-cloud%2Faai-device%2F\(%5B0-9a-z%5D%2B-%2B\)%2B\(%5B0-9a-z%5D\)%2B "try regular expression with regexr.com")
@@ -0,0 +1,15 @@
1
+ # Untitled undefined type in agent\_message Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/agent-message-schema.json#/$defs
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## $defs Type
14
+
15
+ unknown
@@ -0,0 +1,15 @@
1
+ # Untitled string in agent\_message Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/agent-message-schema.json#/properties/deviceId
5
+ ```
6
+
7
+ Device UUID of device sending the message
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## deviceId Type
14
+
15
+ `string`
@@ -0,0 +1,66 @@
1
+ # app\_install\_status Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/app-install-status-schema.json#/properties/payload/oneOf/3
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## 3 Type
14
+
15
+ `object` ([app\_install\_status](agent-message-schema-properties-payload-oneof-app_install_status.md))
16
+
17
+ # 3 Properties
18
+
19
+ | Property | Type | Required | Nullable | Defined by |
20
+ | :------------------------------------ | :------------ | :------- | :------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | [messageType](#messagetype) | Not specified | Required | cannot be null | [app\_install\_status](app-install-status-schema-properties-messagetype.md "https://alwaysai.co/app-install-status-schema.json#/properties/messageType") |
22
+ | [appInstallStatus](#appinstallstatus) | `object` | Required | cannot be null | [app\_install\_status](app-install-status-schema-properties-appinstallstatus.md "https://alwaysai.co/app-install-status-schema.json#/properties/appInstallStatus") |
23
+
24
+ ## messageType
25
+
26
+
27
+
28
+ `messageType`
29
+
30
+ * is required
31
+
32
+ * Type: unknown
33
+
34
+ * cannot be null
35
+
36
+ * defined in: [app\_install\_status](app-install-status-schema-properties-messagetype.md "https://alwaysai.co/app-install-status-schema.json#/properties/messageType")
37
+
38
+ ### messageType Type
39
+
40
+ unknown
41
+
42
+ ### messageType Constraints
43
+
44
+ **constant**: the value of this property must be equal to:
45
+
46
+ ```json
47
+ "app_install_status"
48
+ ```
49
+
50
+ ## appInstallStatus
51
+
52
+
53
+
54
+ `appInstallStatus`
55
+
56
+ * is required
57
+
58
+ * Type: `object` ([Details](app-install-status-schema-properties-appinstallstatus.md))
59
+
60
+ * cannot be null
61
+
62
+ * defined in: [app\_install\_status](app-install-status-schema-properties-appinstallstatus.md "https://alwaysai.co/app-install-status-schema.json#/properties/appInstallStatus")
63
+
64
+ ### appInstallStatus Type
65
+
66
+ `object` ([Details](app-install-status-schema-properties-appinstallstatus.md))
@@ -0,0 +1,66 @@
1
+ # app\_logs Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/app-logs-schema.json#/properties/payload/oneOf/2
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## 2 Type
14
+
15
+ `object` ([app\_logs](agent-message-schema-properties-payload-oneof-app_logs.md))
16
+
17
+ # 2 Properties
18
+
19
+ | Property | Type | Required | Nullable | Defined by |
20
+ | :-------------------------- | :------------ | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------ |
21
+ | [messageType](#messagetype) | Not specified | Required | cannot be null | [app\_logs](app-logs-schema-properties-messagetype.md "https://alwaysai.co/app-logs-schema.json#/properties/messageType") |
22
+ | [appLogs](#applogs) | `object` | Required | cannot be null | [app\_logs](app-logs-schema-properties-applogs.md "https://alwaysai.co/app-logs-schema.json#/properties/appLogs") |
23
+
24
+ ## messageType
25
+
26
+
27
+
28
+ `messageType`
29
+
30
+ * is required
31
+
32
+ * Type: unknown
33
+
34
+ * cannot be null
35
+
36
+ * defined in: [app\_logs](app-logs-schema-properties-messagetype.md "https://alwaysai.co/app-logs-schema.json#/properties/messageType")
37
+
38
+ ### messageType Type
39
+
40
+ unknown
41
+
42
+ ### messageType Constraints
43
+
44
+ **constant**: the value of this property must be equal to:
45
+
46
+ ```json
47
+ "app_logs"
48
+ ```
49
+
50
+ ## appLogs
51
+
52
+
53
+
54
+ `appLogs`
55
+
56
+ * is required
57
+
58
+ * Type: `object` ([Details](app-logs-schema-properties-applogs.md))
59
+
60
+ * cannot be null
61
+
62
+ * defined in: [app\_logs](app-logs-schema-properties-applogs.md "https://alwaysai.co/app-logs-schema.json#/properties/appLogs")
63
+
64
+ ### appLogs Type
65
+
66
+ `object` ([Details](app-logs-schema-properties-applogs.md))
@@ -0,0 +1,66 @@
1
+ # app\_state Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/app-state-schema.json#/properties/payload/oneOf/1
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## 1 Type
14
+
15
+ `object` ([app\_state](agent-message-schema-properties-payload-oneof-app_state.md))
16
+
17
+ # 1 Properties
18
+
19
+ | Property | Type | Required | Nullable | Defined by |
20
+ | :-------------------------- | :------------ | :------- | :------------- | :--------------------------------------------------------------------------------------------------------------------------- |
21
+ | [messageType](#messagetype) | Not specified | Required | cannot be null | [app\_state](app-state-schema-properties-messagetype.md "https://alwaysai.co/app-state-schema.json#/properties/messageType") |
22
+ | [appState](#appstate) | `array` | Required | cannot be null | [app\_state](app-state-schema-properties-appstate.md "https://alwaysai.co/app-state-schema.json#/properties/appState") |
23
+
24
+ ## messageType
25
+
26
+
27
+
28
+ `messageType`
29
+
30
+ * is required
31
+
32
+ * Type: unknown
33
+
34
+ * cannot be null
35
+
36
+ * defined in: [app\_state](app-state-schema-properties-messagetype.md "https://alwaysai.co/app-state-schema.json#/properties/messageType")
37
+
38
+ ### messageType Type
39
+
40
+ unknown
41
+
42
+ ### messageType Constraints
43
+
44
+ **constant**: the value of this property must be equal to:
45
+
46
+ ```json
47
+ "app_state"
48
+ ```
49
+
50
+ ## appState
51
+
52
+
53
+
54
+ `appState`
55
+
56
+ * is required
57
+
58
+ * Type: `object[]` ([Details](app-state-schema-properties-appstate-items.md))
59
+
60
+ * cannot be null
61
+
62
+ * defined in: [app\_state](app-state-schema-properties-appstate.md "https://alwaysai.co/app-state-schema.json#/properties/appState")
63
+
64
+ ### appState Type
65
+
66
+ `object[]` ([Details](app-state-schema-properties-appstate-items.md))
@@ -0,0 +1,66 @@
1
+ # device\_stats Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/device-status-schema.json#/properties/payload/oneOf/0
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## 0 Type
14
+
15
+ `object` ([device\_stats](agent-message-schema-properties-payload-oneof-device_stats.md))
16
+
17
+ # 0 Properties
18
+
19
+ | Property | Type | Required | Nullable | Defined by |
20
+ | :-------------------------- | :------------ | :------- | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | [messageType](#messagetype) | Not specified | Required | cannot be null | [device\_stats](device-status-schema-properties-messagetype.md "https://alwaysai.co/device-status-schema.json#/properties/messageType") |
22
+ | [deviceStats](#devicestats) | `object` | Required | cannot be null | [device\_stats](device-status-schema-properties-devicestats.md "https://alwaysai.co/device-status-schema.json#/properties/deviceStats") |
23
+
24
+ ## messageType
25
+
26
+
27
+
28
+ `messageType`
29
+
30
+ * is required
31
+
32
+ * Type: unknown
33
+
34
+ * cannot be null
35
+
36
+ * defined in: [device\_stats](device-status-schema-properties-messagetype.md "https://alwaysai.co/device-status-schema.json#/properties/messageType")
37
+
38
+ ### messageType Type
39
+
40
+ unknown
41
+
42
+ ### messageType Constraints
43
+
44
+ **constant**: the value of this property must be equal to:
45
+
46
+ ```json
47
+ "device_stats"
48
+ ```
49
+
50
+ ## deviceStats
51
+
52
+
53
+
54
+ `deviceStats`
55
+
56
+ * is required
57
+
58
+ * Type: `object` ([Details](device-status-schema-properties-devicestats.md))
59
+
60
+ * cannot be null
61
+
62
+ * defined in: [device\_stats](device-status-schema-properties-devicestats.md "https://alwaysai.co/device-status-schema.json#/properties/deviceStats")
63
+
64
+ ### deviceStats Type
65
+
66
+ `object` ([Details](device-status-schema-properties-devicestats.md))
@@ -0,0 +1,85 @@
1
+ # signed\_urls\_request Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/signed-urls-request-schema.json#/properties/payload/oneOf/4
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## 4 Type
14
+
15
+ `object` ([signed\_urls\_request](agent-message-schema-properties-payload-oneof-signed_urls_request.md))
16
+
17
+ # 4 Properties
18
+
19
+ | Property | Type | Required | Nullable | Defined by |
20
+ | :---------------------------------------------- | :------------ | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
21
+ | [messageType](#messagetype) | Not specified | Required | cannot be null | [signed\_urls\_request](signed-urls-request-schema-properties-messagetype.md "https://alwaysai.co/signed-urls-request-schema.json#/properties/messageType") |
22
+ | [signedUrlsRequest](#signedurlsrequest) | `object` | Optional | cannot be null | [signed\_urls\_request](signed-urls-request-schema-properties-signedurlsrequest.md "https://alwaysai.co/signed-urls-request-schema.json#/properties/signedUrlsRequest") |
23
+ | [modelsOnlyUrlsRequest](#modelsonlyurlsrequest) | `object` | Optional | cannot be null | [signed\_urls\_request](signed-urls-request-schema-properties-modelsonlyurlsrequest.md "https://alwaysai.co/signed-urls-request-schema.json#/properties/modelsOnlyUrlsRequest") |
24
+
25
+ ## messageType
26
+
27
+
28
+
29
+ `messageType`
30
+
31
+ * is required
32
+
33
+ * Type: unknown
34
+
35
+ * cannot be null
36
+
37
+ * defined in: [signed\_urls\_request](signed-urls-request-schema-properties-messagetype.md "https://alwaysai.co/signed-urls-request-schema.json#/properties/messageType")
38
+
39
+ ### messageType Type
40
+
41
+ unknown
42
+
43
+ ### messageType Constraints
44
+
45
+ **constant**: the value of this property must be equal to:
46
+
47
+ ```json
48
+ "signed_urls_request"
49
+ ```
50
+
51
+ ## signedUrlsRequest
52
+
53
+
54
+
55
+ `signedUrlsRequest`
56
+
57
+ * is optional
58
+
59
+ * Type: `object` ([Details](signed-urls-request-schema-properties-signedurlsrequest.md))
60
+
61
+ * cannot be null
62
+
63
+ * defined in: [signed\_urls\_request](signed-urls-request-schema-properties-signedurlsrequest.md "https://alwaysai.co/signed-urls-request-schema.json#/properties/signedUrlsRequest")
64
+
65
+ ### signedUrlsRequest Type
66
+
67
+ `object` ([Details](signed-urls-request-schema-properties-signedurlsrequest.md))
68
+
69
+ ## modelsOnlyUrlsRequest
70
+
71
+
72
+
73
+ `modelsOnlyUrlsRequest`
74
+
75
+ * is optional
76
+
77
+ * Type: `object` ([Details](signed-urls-request-schema-properties-modelsonlyurlsrequest.md))
78
+
79
+ * cannot be null
80
+
81
+ * defined in: [signed\_urls\_request](signed-urls-request-schema-properties-modelsonlyurlsrequest.md "https://alwaysai.co/signed-urls-request-schema.json#/properties/modelsOnlyUrlsRequest")
82
+
83
+ ### modelsOnlyUrlsRequest Type
84
+
85
+ `object` ([Details](signed-urls-request-schema-properties-modelsonlyurlsrequest.md))
@@ -0,0 +1,27 @@
1
+ # Untitled undefined type in agent\_message Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/agent-message-schema.json#/properties/payload
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## payload Type
14
+
15
+ merged type ([Details](agent-message-schema-properties-payload.md))
16
+
17
+ one (and only one) of
18
+
19
+ * [device_stats](agent-message-schema-properties-payload-oneof-device_stats.md "check type definition")
20
+
21
+ * [app_state](agent-message-schema-properties-payload-oneof-app_state.md "check type definition")
22
+
23
+ * [app_logs](agent-message-schema-properties-payload-oneof-app_logs.md "check type definition")
24
+
25
+ * [app_install_status](agent-message-schema-properties-payload-oneof-app_install_status.md "check type definition")
26
+
27
+ * [signed_urls_request](agent-message-schema-properties-payload-oneof-signed_urls_request.md "check type definition")
@@ -0,0 +1,15 @@
1
+ # Untitled string in agent\_message Schema
2
+
3
+ ```txt
4
+ https://alwaysai.co/agent-message-schema.json#/properties/timestamp
5
+ ```
6
+
7
+
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [agent-message-schema.json\*](../out/agent-message-schema.json "open original schema") |
12
+
13
+ ## timestamp Type
14
+
15
+ `string`